blob: abc76cb90d60043611c39fe7ececf5043e2ae937 [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
hp.com!davidm75f19902004-04-28 04:43:25 +00003# Generated by GNU Autoconf 2.59 for libunwind 0.97.
hp.com!davidmb1d369a2003-11-26 18:59:24 +00004#
5# Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00006#
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00008# 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
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000024DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000025
26# Support unset when possible.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000028 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.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000041for 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
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000045do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000047 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
hp.com!davidm01b02dd2003-09-24 21:51:53 +000090 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
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000094 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000098 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000099fi
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
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000223 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000231
232# Sed expression to map a string onto a valid variable name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000234
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
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000265 # 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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000276$*
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000311 for dir in $PATH /usr/ucb; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000312 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000313 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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000321 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000322
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
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000424PACKAGE_NAME='libunwind'
425PACKAGE_TARNAME='libunwind'
hp.com!davidm75f19902004-04-28 04:43:25 +0000426PACKAGE_VERSION='0.97'
427PACKAGE_STRING='libunwind 0.97'
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000428PACKAGE_BUGREPORT='libunwind@linux.hpl.hp.com'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000429
hp.com!davidm2de17682004-04-20 16:53:44 +0000430ac_unique_file="src/mi/backtrace.c"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
mostang.com!davidm542e0262004-05-05 01:58:44 +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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS LIBOBJS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE OS_LINUX_TRUE OS_LINUX_FALSE OS_HPUX_TRUE OS_HPUX_FALSE build_arch arch ARCH LDFLAGS_STATIC_LIBCXA LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +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 \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000827 localstatedir libdir includedir oldincludedir infodir mandir
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000828do
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\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000871echo 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
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000925ac_env_CXX_set=${CXX+set}
926ac_env_CXX_value=$CXX
927ac_cv_env_CXX_set=${CXX+set}
928ac_cv_env_CXX_value=$CXX
929ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930ac_env_CXXFLAGS_value=$CXXFLAGS
931ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_cv_env_CXXFLAGS_value=$CXXFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
hp.com!davidm75f19902004-04-28 04:43:25 +0000957\`configure' configures libunwind 0.97 to adapt to many kinds of systems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000982 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +0000984 [PREFIX]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010Program names:
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
1015System types:
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001023 case $ac_init_help in
hp.com!davidm75f19902004-04-28 04:43:25 +00001024 short | recursive ) echo "Configuration of libunwind 0.97:";;
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001025 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001026 cat <<\_ACEOF
1027
1028Optional Features:
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001031 --enable-maintainer-mode enable make rules and dependencies not useful
1032 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001033 --disable-dependency-tracking Speeds up one-time builds
1034 --enable-dependency-tracking Do not reject slow dependency extractors
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-debug turn on debug support (slows down execution)
1043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001052
1053Some influential environment variables:
1054 CC C compiler command
1055 CFLAGS C compiler flags
1056 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1057 nonstandard directory <lib dir>
1058 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001060 CXX C++ compiler command
1061 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001062 CPP C preprocessor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001063 CXXCPP C++ preprocessor
1064 F77 Fortran 77 compiler command
1065 FFLAGS Fortran 77 compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001070Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001071_ACEOF
1072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
1088
1089case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001104
1105# Do not use `cd foo && pwd` to compute absolute paths, because
1106# the directories may not exist.
1107case `pwd` in
1108.) ac_abs_builddir="$ac_dir";;
1109*)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_top_builddir=${ac_top_builddir}.;;
1118*)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_srcdir=$ac_srcdir;;
1127*)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_srcdir=$ac_top_srcdir;;
1136*)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001153 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001159 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001160 done
1161fi
1162
1163test -n "$ac_init_help" && exit 0
1164if $ac_init_version; then
1165 cat <<\_ACEOF
hp.com!davidm75f19902004-04-28 04:43:25 +00001166libunwind configure 0.97
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001167generated by GNU Autoconf 2.59
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001168
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001169Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001170This configure script is free software; the Free Software Foundation
1171gives unlimited permission to copy, distribute and modify it.
1172_ACEOF
1173 exit 0
1174fi
1175exec 5>config.log
1176cat >&5 <<_ACEOF
1177This file contains any messages produced by compilers while
1178running configure, to aid debugging if configure makes a mistake.
1179
hp.com!davidm75f19902004-04-28 04:43:25 +00001180It was created by libunwind $as_me 0.97, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001181generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001182
1183 $ $0 $@
1184
1185_ACEOF
1186{
1187cat <<_ASUNAME
1188## --------- ##
1189## Platform. ##
1190## --------- ##
1191
1192hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209_ASUNAME
1210
1211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212for as_dir in $PATH
1213do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217done
1218
1219} >&5
1220
1221cat >&5 <<_ACEOF
1222
1223
1224## ----------- ##
1225## Core tests. ##
1226## ----------- ##
1227
1228_ACEOF
1229
1230
1231# Keep a trace of the command line.
1232# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001233# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001234# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001235# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001236ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001237ac_configure_args0=
1238ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001239ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001240ac_must_keep_next=false
1241for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001242do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001258 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001259 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001278done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001279$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001281
1282# When interrupted or exit'd, cleanup temporary files, and complete
1283# config.log. We remove comments because anyway the quotes in there
1284# would cause problems or look ugly.
1285# WARNING: Be sure not to use single quotes in there, as some shells,
1286# such as our DU 5.0 friend, will then `close' the trap.
1287trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293## ---------------- ##
1294## Cache variables. ##
1295## ---------------- ##
1296_ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299{
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001306 ;;
1307 *)
1308 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001310 ;;
1311 esac;
1312}
1313 echo
1314
1315 cat <<\_ASBOX
1316## ----------------- ##
1317## Output variables. ##
1318## ----------------- ##
1319_ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330## ------------- ##
1331## Output files. ##
1332## ------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001338 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345## ----------- ##
1346## confdefs.h. ##
1347## ----------- ##
1348_ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001357 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363done
1364ac_signal=0
1365
1366# confdefs.h avoids OS command line length limits that DEFS can exceed.
1367rm -rf conftest* confdefs.h
1368# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369echo >confdefs.h
1370
1371# Predefined preprocessor variables.
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_NAME "$PACKAGE_NAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_VERSION "$PACKAGE_VERSION"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_STRING "$PACKAGE_STRING"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395_ACEOF
1396
1397
1398# Let the site file select an alternate cache file if it wants to.
1399# Prefer explicitly selected file to automatically selected ones.
1400if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406fi
1407for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414done
1415
1416if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431fi
1432
1433# Check that the precious variables saved in the cache have kept the same
1434# value.
1435ac_cache_corrupted=false
1436for ac_var in `(set) 2>&1 |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001455echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001457echo "$as_me: former value: $ac_old_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001459echo "$as_me: current value: $ac_new_val" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001460 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475done
1476if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482fi
1483
1484ac_ext=c
1485ac_cpp='$CPP $CPPFLAGS'
1486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001508
1509
1510
1511
1512
1513
1514
1515
1516
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001517ac_aux_dir=
1518for ac_dir in aux $srcdir/aux; do
1519 if test -f $ac_dir/install-sh; then
1520 ac_aux_dir=$ac_dir
1521 ac_install_sh="$ac_aux_dir/install-sh -c"
1522 break
1523 elif test -f $ac_dir/install.sh; then
1524 ac_aux_dir=$ac_dir
1525 ac_install_sh="$ac_aux_dir/install.sh -c"
1526 break
1527 elif test -f $ac_dir/shtool; then
1528 ac_aux_dir=$ac_dir
1529 ac_install_sh="$ac_aux_dir/shtool install -c"
1530 break
1531 fi
1532done
1533if test -z "$ac_aux_dir"; then
1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1535echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1536 { (exit 1); exit 1; }; }
1537fi
1538ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542# Make sure we can run config.sub.
1543$ac_config_sub sun4 >/dev/null 2>&1 ||
1544 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1545echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1546 { (exit 1); exit 1; }; }
1547
1548echo "$as_me:$LINENO: checking build system type" >&5
1549echo $ECHO_N "checking build system type... $ECHO_C" >&6
1550if test "${ac_cv_build+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553 ac_cv_build_alias=$build_alias
1554test -z "$ac_cv_build_alias" &&
1555 ac_cv_build_alias=`$ac_config_guess`
1556test -z "$ac_cv_build_alias" &&
1557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1558echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1559 { (exit 1); exit 1; }; }
1560ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1562echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565fi
1566echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1567echo "${ECHO_T}$ac_cv_build" >&6
1568build=$ac_cv_build
1569build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
1573
1574echo "$as_me:$LINENO: checking host system type" >&5
1575echo $ECHO_N "checking host system type... $ECHO_C" >&6
1576if test "${ac_cv_host+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 ac_cv_host_alias=$host_alias
1580test -z "$ac_cv_host_alias" &&
1581 ac_cv_host_alias=$ac_cv_build_alias
1582ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1583 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1584echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1585 { (exit 1); exit 1; }; }
1586
1587fi
1588echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1589echo "${ECHO_T}$ac_cv_host" >&6
1590host=$ac_cv_host
1591host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
1595
1596echo "$as_me:$LINENO: checking target system type" >&5
1597echo $ECHO_N "checking target system type... $ECHO_C" >&6
1598if test "${ac_cv_target+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_target_alias=$target_alias
1602test "x$ac_cv_target_alias" = "x" &&
1603 ac_cv_target_alias=$ac_cv_host_alias
1604ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1605 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1606echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1607 { (exit 1); exit 1; }; }
1608
1609fi
1610echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1611echo "${ECHO_T}$ac_cv_target" >&6
1612target=$ac_cv_target
1613target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1614target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1615target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1616
1617
1618# The aliases save the names the user supplied, while $host etc.
1619# will get canonicalized.
1620test -n "$target_alias" &&
1621 test "$program_prefix$program_suffix$program_transform_name" = \
1622 NONENONEs,x,x, &&
1623 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001624am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001625# Find a good install program. We prefer a C program (faster),
1626# so one script is as good as another. But avoid the broken or
1627# incompatible versions:
1628# SysV /etc/install, /usr/sbin/install
1629# SunOS /usr/etc/install
1630# IRIX /sbin/install
1631# AIX /bin/install
1632# AmigaOS /C/install, which installs bootblocks on floppy discs
1633# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1634# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1635# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001636# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001637# ./install, which can be erroneously created by make from ./install.sh.
1638echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1639echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1640if test -z "$INSTALL"; then
1641if test "${ac_cv_path_install+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 # Account for people who put trailing slashes in PATH elements.
1650case $as_dir/ in
1651 ./ | .// | /cC/* | \
1652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001654 /usr/ucb/* ) ;;
1655 *)
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 # Don't use installbsd from OSF since it installs stuff as root
1658 # by default.
1659 for ac_prog in ginstall scoinst install; do
1660 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001661 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662 if test $ac_prog = install &&
1663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664 # AIX install. It has an incompatible calling convention.
1665 :
1666 elif test $ac_prog = install &&
1667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668 # program-specific install script used by HP pwplus--don't use.
1669 :
1670 else
1671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1672 break 3
1673 fi
1674 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001675 done
1676 done
1677 ;;
1678esac
1679done
1680
1681
1682fi
1683 if test "${ac_cv_path_install+set}" = set; then
1684 INSTALL=$ac_cv_path_install
1685 else
1686 # As a last resort, use the slow shell script. We don't cache a
1687 # path for INSTALL within a source directory, because that will
1688 # break other packages using the cache if that directory is
1689 # removed, or if the path is relative.
1690 INSTALL=$ac_install_sh
1691 fi
1692fi
1693echo "$as_me:$LINENO: result: $INSTALL" >&5
1694echo "${ECHO_T}$INSTALL" >&6
1695
1696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697# It thinks the first close brace ends the variable substitution.
1698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1699
1700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1701
1702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1703
1704echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706# Just in case
1707sleep 1
1708echo timestamp > conftest.file
1709# Do `set' in a subshell so we don't clobber the current shell's
1710# arguments. Must try -L first in case configure is actually a
1711# symlink; some systems play weird games with the mod time of symlinks
1712# (eg FreeBSD returns the mod time of the symlink's containing
1713# directory).
1714if (
1715 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716 if test "$*" = "X"; then
1717 # -L didn't work.
1718 set X `ls -t $srcdir/configure conftest.file`
1719 fi
1720 rm -f conftest.file
1721 if test "$*" != "X $srcdir/configure conftest.file" \
1722 && test "$*" != "X conftest.file $srcdir/configure"; then
1723
1724 # If neither matched, then we have a broken ls. This can happen
1725 # if, for instance, CONFIG_SHELL is bash and it inherits a
1726 # broken ls alias from the environment. This has actually
1727 # happened. Such a system could not be considered "sane".
1728 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1729alias in your environment" >&5
1730echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1731alias in your environment" >&2;}
1732 { (exit 1); exit 1; }; }
1733 fi
1734
1735 test "$2" = conftest.file
1736 )
1737then
1738 # Ok.
1739 :
1740else
1741 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742Check your system clock" >&5
1743echo "$as_me: error: newly created file is older than distributed files!
1744Check your system clock" >&2;}
1745 { (exit 1); exit 1; }; }
1746fi
1747echo "$as_me:$LINENO: result: yes" >&5
1748echo "${ECHO_T}yes" >&6
1749test "$program_prefix" != NONE &&
1750 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751# Use a double $ so make ignores it.
1752test "$program_suffix" != NONE &&
1753 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754# Double any \ or $. echo might interpret backslashes.
1755# By default was `s,x,x', remove it if useless.
1756cat <<\_ACEOF >conftest.sed
1757s/[\\$]/&&/g;s/;s,x,x,$//
1758_ACEOF
1759program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760rm conftest.sed
1761
1762
1763# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001764am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001765
1766test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1767# Use eval to expand $SHELL
1768if eval "$MISSING --run true"; then
1769 am_missing_run="$MISSING --run "
1770else
1771 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001772 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1773echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001774fi
1775
1776for ac_prog in gawk mawk nawk awk
1777do
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo "$as_me:$LINENO: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_AWK+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 if test -n "$AWK"; then
1786 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1787else
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_AWK="$ac_prog"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1798 fi
1799done
1800done
1801
1802fi
1803fi
1804AWK=$ac_cv_prog_AWK
1805if test -n "$AWK"; then
1806 echo "$as_me:$LINENO: result: $AWK" >&5
1807echo "${ECHO_T}$AWK" >&6
1808else
1809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813 test -n "$AWK" && break
1814done
1815
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00001818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 cat >conftest.make <<\_ACEOF
1823all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001824 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001825_ACEOF
1826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1827eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1828if test -n "$ac_maketemp"; then
1829 eval ac_cv_prog_make_${ac_make}_set=yes
1830else
1831 eval ac_cv_prog_make_${ac_make}_set=no
1832fi
1833rm -f conftest.make
1834fi
1835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1836 echo "$as_me:$LINENO: result: yes" >&5
1837echo "${ECHO_T}yes" >&6
1838 SET_MAKE=
1839else
1840 echo "$as_me:$LINENO: result: no" >&5
1841echo "${ECHO_T}no" >&6
1842 SET_MAKE="MAKE=${MAKE-make}"
1843fi
1844
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001845 # test to see if srcdir already configured
1846if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001847 test -f $srcdir/config.status; then
1848 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1849echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1850 { (exit 1); exit 1; }; }
1851fi
1852
1853# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001854 PACKAGE=libunwind
hp.com!davidm75f19902004-04-28 04:43:25 +00001855 VERSION=0.97
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001856
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001857
1858cat >>confdefs.h <<_ACEOF
1859#define PACKAGE "$PACKAGE"
1860_ACEOF
1861
1862
1863cat >>confdefs.h <<_ACEOF
1864#define VERSION "$VERSION"
1865_ACEOF
1866
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001867# Some tools Automake needs.
1868
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001870
1871
1872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1873
1874
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001876
1877
1878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1879
1880
1881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1882
1883
1884AMTAR=${AMTAR-"${am_missing_run}tar"}
1885
1886install_sh=${install_sh-"$am_aux_dir/install-sh"}
1887
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001888# Installed binaries are usually stripped using `strip' when the user
1889# run `make install-strip'. However `strip' might not be the right
1890# tool to use in cross-compilation environments, therefore Automake
1891# will honor the `STRIP' environment variable to overrule this program.
1892if test "$cross_compiling" != no; then
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1895set dummy ${ac_tool_prefix}strip; ac_word=$2
1896echo "$as_me:$LINENO: checking for $ac_word" >&5
1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898if test "${ac_cv_prog_STRIP+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 if test -n "$STRIP"; then
1902 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1903else
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1914 fi
1915done
1916done
1917
1918fi
1919fi
1920STRIP=$ac_cv_prog_STRIP
1921if test -n "$STRIP"; then
1922 echo "$as_me:$LINENO: result: $STRIP" >&5
1923echo "${ECHO_T}$STRIP" >&6
1924else
1925 echo "$as_me:$LINENO: result: no" >&5
1926echo "${ECHO_T}no" >&6
1927fi
1928
1929fi
1930if test -z "$ac_cv_prog_STRIP"; then
1931 ac_ct_STRIP=$STRIP
1932 # Extract the first word of "strip", so it can be a program name with args.
1933set dummy strip; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 if test -n "$ac_ct_STRIP"; then
1940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_STRIP="strip"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1957fi
1958fi
1959ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1960if test -n "$ac_ct_STRIP"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1962echo "${ECHO_T}$ac_ct_STRIP" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 STRIP=$ac_ct_STRIP
1969else
1970 STRIP="$ac_cv_prog_STRIP"
1971fi
1972
1973fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001974INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1975
1976# We need awk for the "check" target. The system "awk" is bad on
1977# some platforms.
1978
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001979
1980
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001981echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1982echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1983 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1984if test "${enable_maintainer_mode+set}" = set; then
1985 enableval="$enable_maintainer_mode"
1986 USE_MAINTAINER_MODE=$enableval
1987else
1988 USE_MAINTAINER_MODE=no
1989fi;
1990 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1991echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1992
1993
1994if test $USE_MAINTAINER_MODE = yes; then
1995 MAINTAINER_MODE_TRUE=
1996 MAINTAINER_MODE_FALSE='#'
1997else
1998 MAINTAINER_MODE_TRUE='#'
1999 MAINTAINER_MODE_FALSE=
2000fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002001
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002002 MAINT=$MAINTAINER_MODE_TRUE
2003
2004
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002005# Add the stamp file to the list of files AC keeps track of,
2006# along with our hook.
2007 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002008
2009
2010
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002011
2012ac_ext=c
2013ac_cpp='$CPP $CPPFLAGS'
2014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2019set dummy ${ac_tool_prefix}gcc; ac_word=$2
2020echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041
2042fi
2043fi
2044CC=$ac_cv_prog_CC
2045if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047echo "${ECHO_T}$CC" >&6
2048else
2049 echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6
2051fi
2052
2053fi
2054if test -z "$ac_cv_prog_CC"; then
2055 ac_ct_CC=$CC
2056 # Extract the first word of "gcc", so it can be a program name with args.
2057set dummy gcc; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_ac_ct_CC="gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2076 fi
2077done
2078done
2079
2080fi
2081fi
2082ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083if test -n "$ac_ct_CC"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085echo "${ECHO_T}$ac_ct_CC" >&6
2086else
2087 echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091 CC=$ac_ct_CC
2092else
2093 CC="$ac_cv_prog_CC"
2094fi
2095
2096if test -z "$CC"; then
2097 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2099set dummy ${ac_tool_prefix}cc; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_CC+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 if test -n "$CC"; then
2106 ac_cv_prog_CC="$CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111 IFS=$as_save_IFS
2112 test -z "$as_dir" && as_dir=.
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115 ac_cv_prog_CC="${ac_tool_prefix}cc"
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 break 2
2118 fi
2119done
2120done
2121
2122fi
2123fi
2124CC=$ac_cv_prog_CC
2125if test -n "$CC"; then
2126 echo "$as_me:$LINENO: result: $CC" >&5
2127echo "${ECHO_T}$CC" >&6
2128else
2129 echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133fi
2134if test -z "$ac_cv_prog_CC"; then
2135 ac_ct_CC=$CC
2136 # Extract the first word of "cc", so it can be a program name with args.
2137set dummy cc; ac_word=$2
2138echo "$as_me:$LINENO: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145else
2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147for as_dir in $PATH
2148do
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_ac_ct_CC="cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2156 fi
2157done
2158done
2159
2160fi
2161fi
2162ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163if test -n "$ac_ct_CC"; then
2164 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165echo "${ECHO_T}$ac_ct_CC" >&6
2166else
2167 echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6
2169fi
2170
2171 CC=$ac_ct_CC
2172else
2173 CC="$ac_cv_prog_CC"
2174fi
2175
2176fi
2177if test -z "$CC"; then
2178 # Extract the first word of "cc", so it can be a program name with args.
2179set dummy cc; ac_word=$2
2180echo "$as_me:$LINENO: checking for $ac_word" >&5
2181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2187else
2188 ac_prog_rejected=no
2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190for as_dir in $PATH
2191do
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2197 ac_prog_rejected=yes
2198 continue
2199 fi
2200 ac_cv_prog_CC="cc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205done
2206
2207if test $ac_prog_rejected = yes; then
2208 # We found a bogon in the path, so make sure we never use it.
2209 set dummy $ac_cv_prog_CC
2210 shift
2211 if test $# != 0; then
2212 # We chose a different compiler from the bogus one.
2213 # However, it has the same basename, so the bogon will be chosen
2214 # first if we set CC to just the basename; use the full file name.
2215 shift
2216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2217 fi
2218fi
2219fi
2220fi
2221CC=$ac_cv_prog_CC
2222if test -n "$CC"; then
2223 echo "$as_me:$LINENO: result: $CC" >&5
2224echo "${ECHO_T}$CC" >&6
2225else
2226 echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6
2228fi
2229
2230fi
2231if test -z "$CC"; then
2232 if test -n "$ac_tool_prefix"; then
2233 for ac_prog in cl
2234 do
2235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2237echo "$as_me:$LINENO: checking for $ac_word" >&5
2238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239if test "${ac_cv_prog_CC+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256done
2257done
2258
2259fi
2260fi
2261CC=$ac_cv_prog_CC
2262if test -n "$CC"; then
2263 echo "$as_me:$LINENO: result: $CC" >&5
2264echo "${ECHO_T}$CC" >&6
2265else
2266 echo "$as_me:$LINENO: result: no" >&5
2267echo "${ECHO_T}no" >&6
2268fi
2269
2270 test -n "$CC" && break
2271 done
2272fi
2273if test -z "$CC"; then
2274 ac_ct_CC=$CC
2275 for ac_prog in cl
2276do
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278set dummy $ac_prog; ac_word=$2
2279echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284 if test -n "$ac_ct_CC"; then
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_ac_ct_CC="$ac_prog"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298done
2299done
2300
2301fi
2302fi
2303ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304if test -n "$ac_ct_CC"; then
2305 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306echo "${ECHO_T}$ac_ct_CC" >&6
2307else
2308 echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6
2310fi
2311
2312 test -n "$ac_ct_CC" && break
2313done
2314
2315 CC=$ac_ct_CC
2316fi
2317
2318fi
2319
2320
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002321test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2322See \`config.log' for more details." >&5
2323echo "$as_me: error: no acceptable C compiler found in \$PATH
2324See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002325 { (exit 1); exit 1; }; }
2326
2327# Provide some information about the compiler.
2328echo "$as_me:$LINENO:" \
2329 "checking for C compiler version" >&5
2330ac_compiler=`set X $ac_compile; echo $2`
2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2332 (eval $ac_compiler --version </dev/null >&5) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2337 (eval $ac_compiler -v </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2342 (eval $ac_compiler -V </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346
2347cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002348/* confdefs.h. */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002353
2354int
2355main ()
2356{
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002363ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002364# Try to create an executable without -o first, disregard a.out.
2365# It will help us diagnose broken compilers, and finding out an intuition
2366# of exeext.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002367echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2368echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002369ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2370if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2371 (eval $ac_link_default) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; then
2375 # Find the output, starting from the most likely. This scheme is
2376# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2377# resort.
2378
2379# Be careful to initialize this variable, since it used to be cached.
2380# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2381ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002382# b.out is created by i960 compilers.
2383for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2384do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002385 test -f "$ac_file" || continue
2386 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002388 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002389 conftest.$ac_ext )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002390 # This is the source file.
2391 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002392 [ab].out )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002393 # We found the default executable, but exeext='' is most
2394 # certainly right.
2395 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002396 *.* )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2398 # FIXME: I believe we export ac_cv_exeext for Libtool,
2399 # but it would be cool to find out if it's true. Does anybody
2400 # maintain Libtool? --akim.
2401 export ac_cv_exeext
2402 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002403 * )
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002404 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002405 esac
2406done
2407else
2408 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002411{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002412See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002413echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002414See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002415 { (exit 77); exit 77; }; }
2416fi
2417
2418ac_exeext=$ac_cv_exeext
2419echo "$as_me:$LINENO: result: $ac_file" >&5
2420echo "${ECHO_T}$ac_file" >&6
2421
2422# Check the compiler produces executables we can run. If not, either
2423# the compiler is broken, or we cross compile.
2424echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2425echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2426# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2427# If not cross compiling, check that we can run a simple program.
2428if test "$cross_compiling" != yes; then
2429 if { ac_try='./$ac_file'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 cross_compiling=no
2436 else
2437 if test "$cross_compiling" = maybe; then
2438 cross_compiling=yes
2439 else
2440 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002441If you meant to cross compile, use \`--host'.
2442See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002443echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002444If you meant to cross compile, use \`--host'.
2445See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002446 { (exit 1); exit 1; }; }
2447 fi
2448 fi
2449fi
2450echo "$as_me:$LINENO: result: yes" >&5
2451echo "${ECHO_T}yes" >&6
2452
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002453rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002454ac_clean_files=$ac_clean_files_save
2455# Check the compiler produces executables we can run. If not, either
2456# the compiler is broken, or we cross compile.
2457echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2458echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2459echo "$as_me:$LINENO: result: $cross_compiling" >&5
2460echo "${ECHO_T}$cross_compiling" >&6
2461
2462echo "$as_me:$LINENO: checking for suffix of executables" >&5
2463echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2465 (eval $ac_link) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2470# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2471# work properly (i.e., refer to `conftest.exe'), while it won't with
2472# `rm'.
2473for ac_file in conftest.exe conftest conftest.*; do
2474 test -f "$ac_file" || continue
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002478 export ac_cv_exeext
2479 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002480 * ) break;;
2481 esac
2482done
2483else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002484 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002488 { (exit 1); exit 1; }; }
2489fi
2490
2491rm -f conftest$ac_cv_exeext
2492echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493echo "${ECHO_T}$ac_cv_exeext" >&6
2494
2495rm -f conftest.$ac_ext
2496EXEEXT=$ac_cv_exeext
2497ac_exeext=$EXEEXT
2498echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2500if test "${ac_cv_objext+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002509
2510int
2511main ()
2512{
2513
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518rm -f conftest.o conftest.obj
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2525 case $ac_file in
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2528 break;;
2529 esac
2530done
2531else
2532 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2536See \`config.log' for more details." >&5
2537echo "$as_me: error: cannot compute suffix of object files: cannot compile
2538See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002539 { (exit 1); exit 1; }; }
2540fi
2541
2542rm -f conftest.$ac_cv_objext conftest.$ac_ext
2543fi
2544echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2545echo "${ECHO_T}$ac_cv_objext" >&6
2546OBJEXT=$ac_cv_objext
2547ac_objext=$OBJEXT
2548echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002554/* confdefs.h. */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002559
2560int
2561main ()
2562{
2563#ifndef __GNUC__
2564 choke me
2565#endif
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext
2572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002573 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002574 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002575 grep -v '^ *+' conftest.er1 >conftest.err
2576 rm -f conftest.er1
2577 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 (eval $ac_try) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_compiler_gnu=yes
2593else
2594 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002595sed 's/^/| /' conftest.$ac_ext >&5
2596
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002597ac_compiler_gnu=no
2598fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002600ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601
2602fi
2603echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2604echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2605GCC=`test $ac_compiler_gnu = yes && echo yes`
2606ac_test_CFLAGS=${CFLAGS+set}
2607ac_save_CFLAGS=$CFLAGS
2608CFLAGS="-g"
2609echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2610echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2611if test "${ac_cv_prog_cc_g+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002620
2621int
2622main ()
2623{
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002631 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002632 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002633 grep -v '^ *+' conftest.er1 >conftest.err
2634 rm -f conftest.er1
2635 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 (eval $ac_try) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; } &&
2644 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 ac_cv_prog_cc_g=yes
2651else
2652 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002653sed 's/^/| /' conftest.$ac_ext >&5
2654
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002655ac_cv_prog_cc_g=no
2656fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002658fi
2659echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2660echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2661if test "$ac_test_CFLAGS" = set; then
2662 CFLAGS=$ac_save_CFLAGS
2663elif test $ac_cv_prog_cc_g = yes; then
2664 if test "$GCC" = yes; then
2665 CFLAGS="-g -O2"
2666 else
2667 CFLAGS="-g"
2668 fi
2669else
2670 if test "$GCC" = yes; then
2671 CFLAGS="-O2"
2672 else
2673 CFLAGS=
2674 fi
2675fi
2676echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2677echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2678if test "${ac_cv_prog_cc_stdc+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 ac_cv_prog_cc_stdc=no
2682ac_save_CC=$CC
2683cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002689#include <stdarg.h>
2690#include <stdio.h>
2691#include <sys/types.h>
2692#include <sys/stat.h>
2693/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2694struct buf { int x; };
2695FILE * (*rcsopen) (struct buf *, struct stat *, int);
2696static char *e (p, i)
2697 char **p;
2698 int i;
2699{
2700 return p[i];
2701}
2702static char *f (char * (*g) (char **, int), char **p, ...)
2703{
2704 char *s;
2705 va_list v;
2706 va_start (v,p);
2707 s = g (p, va_arg (v,int));
2708 va_end (v);
2709 return s;
2710}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002711
2712/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2713 function prototypes and stuff, but not '\xHH' hex character constants.
2714 These don't provoke an error unfortunately, instead are silently treated
2715 as 'x'. The following induces an error, until -std1 is added to get
2716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2717 array size at least. It's necessary to write '\x00'==0 to get something
2718 that's true only with -std1. */
2719int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2720
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002721int test (int i, double x);
2722struct s1 {int (*f) (int a);};
2723struct s2 {int (*f) (double a);};
2724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725int argc;
2726char **argv;
2727int
2728main ()
2729{
2730return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735# Don't try gcc -ansi; that turns off useful extensions and
2736# breaks some systems' header files.
2737# AIX -qlanglvl=ansi
2738# Ultrix and OSF/1 -std1
2739# HP-UX 10.20 and later -Ae
2740# HP-UX older versions -Aa -D_HPUX_SOURCE
2741# SVR4 -Xc -D__EXTENSIONS__
2742for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743do
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002747 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002748 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002749 grep -v '^ *+' conftest.er1 >conftest.err
2750 rm -f conftest.er1
2751 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_prog_cc_stdc=$ac_arg
2767break
2768else
2769 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002770sed 's/^/| /' conftest.$ac_ext >&5
2771
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002772fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002773rm -f conftest.err conftest.$ac_objext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002774done
2775rm -f conftest.$ac_ext conftest.$ac_objext
2776CC=$ac_save_CC
2777
2778fi
2779
2780case "x$ac_cv_prog_cc_stdc" in
2781 x|xno)
2782 echo "$as_me:$LINENO: result: none needed" >&5
2783echo "${ECHO_T}none needed" >&6 ;;
2784 *)
2785 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2786echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2787 CC="$CC $ac_cv_prog_cc_stdc" ;;
2788esac
2789
2790# Some people use a C++ compiler to compile C. Since we use `exit',
2791# in C++ we need to declare it. In case someone uses the same compiler
2792# for both compiling C and C++ we need to have the C++ compiler decide
2793# the declaration of exit, since it's the most demanding environment.
2794cat >conftest.$ac_ext <<_ACEOF
2795#ifndef __cplusplus
2796 choke me
2797#endif
2798_ACEOF
2799rm -f conftest.$ac_objext
2800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002801 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002802 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002821 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002822 'extern "C" void std::exit (int) throw (); using std::exit;' \
2823 'extern "C" void std::exit (int); using std::exit;' \
2824 'extern "C" void exit (int) throw ();' \
2825 'extern "C" void exit (int);' \
2826 'void exit (int);'
2827do
2828 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002834$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002835#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002836int
2837main ()
2838{
2839exit (42);
2840 ;
2841 return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext
2845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002846 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002847 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 :
2866else
2867 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002870continue
2871fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002873 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002874/* confdefs.h. */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002879$ac_declaration
2880int
2881main ()
2882{
2883exit (42);
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002890 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002891 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 break
2910else
2911 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002912sed 's/^/| /' conftest.$ac_ext >&5
2913
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002914fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002916done
2917rm -f conftest*
2918if test -n "$ac_declaration"; then
2919 echo '#ifdef __cplusplus' >>confdefs.h
2920 echo $ac_declaration >>confdefs.h
2921 echo '#endif' >>confdefs.h
2922fi
2923
2924else
2925 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002928fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00002929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002930ac_ext=c
2931ac_cpp='$CPP $CPPFLAGS'
2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002935rm -f .deps 2>/dev/null
2936mkdir .deps 2>/dev/null
2937if test -d .deps; then
2938 DEPDIR=.deps
2939else
2940 # MS-DOS does not allow filenames that begin with a dot.
2941 DEPDIR=_deps
2942fi
2943rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002944
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002945
2946 ac_config_commands="$ac_config_commands depfiles"
2947
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002948
2949am_make=${MAKE-make}
2950cat > confinc << 'END'
2951doit:
2952 @echo done
2953END
2954# If we don't find an include directive, just comment out the code.
2955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002957am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
2962# We grep out `Entering directory' and `Leaving directory'
2963# messages which can occur if `w' ends up in MAKEFLAGS.
2964# In particular we don't look at `^make:' because GNU make might
2965# be invoked under some other name (usually "gmake"), in which
2966# case it prints its new name instead of `make'.
2967if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2968 am__include=include
2969 am__quote=
2970 _am_result=GNU
2971fi
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974 echo '.include "confinc"' > confmf
2975 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2976 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002977 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002978 _am_result=BSD
2979 fi
2980fi
2981
2982
2983echo "$as_me:$LINENO: result: $_am_result" >&5
2984echo "${ECHO_T}$_am_result" >&6
2985rm -f confinc confmf
2986
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2988if test "${enable_dependency_tracking+set}" = set; then
2989 enableval="$enable_dependency_tracking"
2990
2991fi;
2992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
2996
2997
2998if test "x$enable_dependency_tracking" != xno; then
2999 AMDEP_TRUE=
3000 AMDEP_FALSE='#'
3001else
3002 AMDEP_TRUE='#'
3003 AMDEP_FALSE=
3004fi
3005
3006
3007
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003008
3009depcc="$CC" am_compiler_list=
3010
3011echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3012echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3017 # We make a subdir and do the tests there. Otherwise we can end up
3018 # making bogus files that we don't know about and never remove. For
3019 # instance it was reported that on HP-UX the gcc test will end up
3020 # making a dummy file named `D' -- because `-MD' means `put the output
3021 # in D'.
3022 mkdir conftest.dir
3023 # Copy depcomp to subdir because otherwise we won't find it if we're
3024 # using a relative directory.
3025 cp "$am_depcomp" conftest.dir
3026 cd conftest.dir
3027
3028 am_cv_CC_dependencies_compiler_type=none
3029 if test "$am_compiler_list" = ""; then
3030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3031 fi
3032 for depmode in $am_compiler_list; do
3033 # We need to recreate these files for each test, as the compiler may
3034 # overwrite some of them when testing with obscure command lines.
3035 # This happens at least with the AIX C compiler.
3036 echo '#include "conftest.h"' > conftest.c
3037 echo 'int i;' > conftest.h
3038 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3039
3040 case $depmode in
3041 nosideeffect)
3042 # after this tag, mechanisms are not by side-effect, so they'll
3043 # only be used when explicitly requested
3044 if test "x$enable_dependency_tracking" = xyes; then
3045 continue
3046 else
3047 break
3048 fi
3049 ;;
3050 none) break ;;
3051 esac
3052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3053 # mode. It turns out that the SunPro C++ compiler does not properly
3054 # handle `-M -o', and we need to detect this.
3055 if depmode=$depmode \
3056 source=conftest.c object=conftest.o \
3057 depfile=conftest.Po tmpdepfile=conftest.TPo \
3058 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3059 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3061 am_cv_CC_dependencies_compiler_type=$depmode
3062 break
3063 fi
3064 done
3065
3066 cd ..
3067 rm -rf conftest.dir
3068else
3069 am_cv_CC_dependencies_compiler_type=none
3070fi
3071
3072fi
3073echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3074echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00003075CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003076
3077
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003078ac_ext=cc
3079ac_cpp='$CXXCPP $CPPFLAGS'
3080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3083if test -n "$ac_tool_prefix"; then
3084 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3085 do
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088echo "$as_me:$LINENO: checking for $ac_word" >&5
3089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090if test "${ac_cv_prog_CXX+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3092else
3093 if test -n "$CXX"; then
3094 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108done
3109
3110fi
3111fi
3112CXX=$ac_cv_prog_CXX
3113if test -n "$CXX"; then
3114 echo "$as_me:$LINENO: result: $CXX" >&5
3115echo "${ECHO_T}$CXX" >&6
3116else
3117 echo "$as_me:$LINENO: result: no" >&5
3118echo "${ECHO_T}no" >&6
3119fi
3120
3121 test -n "$CXX" && break
3122 done
3123fi
3124if test -z "$CXX"; then
3125 ac_ct_CXX=$CXX
3126 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3127do
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129set dummy $ac_prog; ac_word=$2
3130echo "$as_me:$LINENO: checking for $ac_word" >&5
3131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 if test -n "$ac_ct_CXX"; then
3136 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_CXX="$ac_prog"
3146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149done
3150done
3151
3152fi
3153fi
3154ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3155if test -n "$ac_ct_CXX"; then
3156 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3157echo "${ECHO_T}$ac_ct_CXX" >&6
3158else
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161fi
3162
3163 test -n "$ac_ct_CXX" && break
3164done
3165test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3166
3167 CXX=$ac_ct_CXX
3168fi
3169
3170
3171# Provide some information about the compiler.
3172echo "$as_me:$LINENO:" \
3173 "checking for C++ compiler version" >&5
3174ac_compiler=`set X $ac_compile; echo $2`
3175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3176 (eval $ac_compiler --version </dev/null >&5) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3181 (eval $ac_compiler -v </dev/null >&5) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3186 (eval $ac_compiler -V </dev/null >&5) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190
3191echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003202
3203int
3204main ()
3205{
3206#ifndef __GNUC__
3207 choke me
3208#endif
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
3214rm -f conftest.$ac_objext
3215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003216 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003217 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; } &&
3229 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_compiler_gnu=yes
3236else
3237 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003238sed 's/^/| /' conftest.$ac_ext >&5
3239
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003240ac_compiler_gnu=no
3241fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244
3245fi
3246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3248GXX=`test $ac_compiler_gnu = yes && echo yes`
3249ac_test_CXXFLAGS=${CXXFLAGS+set}
3250ac_save_CXXFLAGS=$CXXFLAGS
3251CXXFLAGS="-g"
3252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3254if test "${ac_cv_prog_cxx_g+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003263
3264int
3265main ()
3266{
3267
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272rm -f conftest.$ac_objext
3273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003274 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003275 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_prog_cxx_g=yes
3294else
3295 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003298ac_cv_prog_cxx_g=no
3299fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003301fi
3302echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3303echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3304if test "$ac_test_CXXFLAGS" = set; then
3305 CXXFLAGS=$ac_save_CXXFLAGS
3306elif test $ac_cv_prog_cxx_g = yes; then
3307 if test "$GXX" = yes; then
3308 CXXFLAGS="-g -O2"
3309 else
3310 CXXFLAGS="-g"
3311 fi
3312else
3313 if test "$GXX" = yes; then
3314 CXXFLAGS="-O2"
3315 else
3316 CXXFLAGS=
3317 fi
3318fi
3319for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003320 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003321 'extern "C" void std::exit (int) throw (); using std::exit;' \
3322 'extern "C" void std::exit (int); using std::exit;' \
3323 'extern "C" void exit (int) throw ();' \
3324 'extern "C" void exit (int);' \
3325 'void exit (int);'
3326do
3327 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003333$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003334#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003335int
3336main ()
3337{
3338exit (42);
3339 ;
3340 return 0;
3341}
3342_ACEOF
3343rm -f conftest.$ac_objext
3344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003345 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003346 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 :
3365else
3366 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003367sed 's/^/| /' conftest.$ac_ext >&5
3368
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003369continue
3370fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003372 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003378$ac_declaration
3379int
3380main ()
3381{
3382exit (42);
3383 ;
3384 return 0;
3385}
3386_ACEOF
3387rm -f conftest.$ac_objext
3388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003389 (eval $ac_compile) 2>conftest.er1
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003390 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; } &&
3402 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 (eval $ac_try) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 break
3409else
3410 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003411sed 's/^/| /' conftest.$ac_ext >&5
3412
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003413fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003415done
3416rm -f conftest*
3417if test -n "$ac_declaration"; then
3418 echo '#ifdef __cplusplus' >>confdefs.h
3419 echo $ac_declaration >>confdefs.h
3420 echo '#endif' >>confdefs.h
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429depcc="$CXX" am_compiler_list=
3430
3431echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3432echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3433if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435else
3436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3437 # We make a subdir and do the tests there. Otherwise we can end up
3438 # making bogus files that we don't know about and never remove. For
3439 # instance it was reported that on HP-UX the gcc test will end up
3440 # making a dummy file named `D' -- because `-MD' means `put the output
3441 # in D'.
3442 mkdir conftest.dir
3443 # Copy depcomp to subdir because otherwise we won't find it if we're
3444 # using a relative directory.
3445 cp "$am_depcomp" conftest.dir
3446 cd conftest.dir
3447
3448 am_cv_CXX_dependencies_compiler_type=none
3449 if test "$am_compiler_list" = ""; then
3450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451 fi
3452 for depmode in $am_compiler_list; do
3453 # We need to recreate these files for each test, as the compiler may
3454 # overwrite some of them when testing with obscure command lines.
3455 # This happens at least with the AIX C compiler.
3456 echo '#include "conftest.h"' > conftest.c
3457 echo 'int i;' > conftest.h
3458 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3459
3460 case $depmode in
3461 nosideeffect)
3462 # after this tag, mechanisms are not by side-effect, so they'll
3463 # only be used when explicitly requested
3464 if test "x$enable_dependency_tracking" = xyes; then
3465 continue
3466 else
3467 break
3468 fi
3469 ;;
3470 none) break ;;
3471 esac
3472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473 # mode. It turns out that the SunPro C++ compiler does not properly
3474 # handle `-M -o', and we need to detect this.
3475 if depmode=$depmode \
3476 source=conftest.c object=conftest.o \
3477 depfile=conftest.Po tmpdepfile=conftest.TPo \
3478 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3479 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3481 am_cv_CXX_dependencies_compiler_type=$depmode
3482 break
3483 fi
3484 done
3485
3486 cd ..
3487 rm -rf conftest.dir
3488else
3489 am_cv_CXX_dependencies_compiler_type=none
3490fi
3491
3492fi
3493echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3494echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3495CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3496
3497
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003498# Find a good install program. We prefer a C program (faster),
3499# so one script is as good as another. But avoid the broken or
3500# incompatible versions:
3501# SysV /etc/install, /usr/sbin/install
3502# SunOS /usr/etc/install
3503# IRIX /sbin/install
3504# AIX /bin/install
3505# AmigaOS /C/install, which installs bootblocks on floppy discs
3506# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3507# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3508# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003509# OS/2's system install, which has a completely different semantic
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003510# ./install, which can be erroneously created by make from ./install.sh.
3511echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3512echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3513if test -z "$INSTALL"; then
3514if test "${ac_cv_path_install+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 # Account for people who put trailing slashes in PATH elements.
3523case $as_dir/ in
3524 ./ | .// | /cC/* | \
3525 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003526 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003527 /usr/ucb/* ) ;;
3528 *)
3529 # OSF1 and SCO ODT 3.0 have their own names for install.
3530 # Don't use installbsd from OSF since it installs stuff as root
3531 # by default.
3532 for ac_prog in ginstall scoinst install; do
3533 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003534 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3535 if test $ac_prog = install &&
3536 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3537 # AIX install. It has an incompatible calling convention.
3538 :
3539 elif test $ac_prog = install &&
3540 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3541 # program-specific install script used by HP pwplus--don't use.
3542 :
3543 else
3544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3545 break 3
3546 fi
3547 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003548 done
3549 done
3550 ;;
3551esac
3552done
3553
3554
3555fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3558 else
3559 # As a last resort, use the slow shell script. We don't cache a
3560 # path for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the path is relative.
3563 INSTALL=$ac_install_sh
3564 fi
3565fi
3566echo "$as_me:$LINENO: result: $INSTALL" >&5
3567echo "${ECHO_T}$INSTALL" >&6
3568
3569# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570# It thinks the first close brace ends the variable substitution.
3571test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003577echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3578echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003579set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003580if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 cat >conftest.make <<\_ACEOF
3584all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003585 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003586_ACEOF
3587# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3588eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3589if test -n "$ac_maketemp"; then
3590 eval ac_cv_prog_make_${ac_make}_set=yes
3591else
3592 eval ac_cv_prog_make_${ac_make}_set=no
3593fi
3594rm -f conftest.make
3595fi
3596if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 SET_MAKE=
3600else
3601 echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603 SET_MAKE="MAKE=${MAKE-make}"
3604fi
3605
3606# Check whether --enable-shared or --disable-shared was given.
3607if test "${enable_shared+set}" = set; then
3608 enableval="$enable_shared"
3609 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003610 case $enableval in
3611 yes) enable_shared=yes ;;
3612 no) enable_shared=no ;;
3613 *)
3614 enable_shared=no
3615 # Look at the argument we got. We use all the common list separators.
3616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617 for pkg in $enableval; do
3618 IFS="$lt_save_ifs"
3619 if test "X$pkg" = "X$p"; then
3620 enable_shared=yes
3621 fi
3622 done
3623 IFS="$lt_save_ifs"
3624 ;;
3625 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003626else
3627 enable_shared=yes
3628fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003629
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003630# Check whether --enable-static or --disable-static was given.
3631if test "${enable_static+set}" = set; then
3632 enableval="$enable_static"
3633 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003634 case $enableval in
3635 yes) enable_static=yes ;;
3636 no) enable_static=no ;;
3637 *)
3638 enable_static=no
3639 # Look at the argument we got. We use all the common list separators.
3640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3641 for pkg in $enableval; do
3642 IFS="$lt_save_ifs"
3643 if test "X$pkg" = "X$p"; then
3644 enable_static=yes
3645 fi
3646 done
3647 IFS="$lt_save_ifs"
3648 ;;
3649 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003650else
3651 enable_static=yes
3652fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003653
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003654# Check whether --enable-fast-install or --disable-fast-install was given.
3655if test "${enable_fast_install+set}" = set; then
3656 enableval="$enable_fast_install"
3657 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003658 case $enableval in
3659 yes) enable_fast_install=yes ;;
3660 no) enable_fast_install=no ;;
3661 *)
3662 enable_fast_install=no
3663 # Look at the argument we got. We use all the common list separators.
3664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3665 for pkg in $enableval; do
3666 IFS="$lt_save_ifs"
3667 if test "X$pkg" = "X$p"; then
3668 enable_fast_install=yes
3669 fi
3670 done
3671 IFS="$lt_save_ifs"
3672 ;;
3673 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003674else
3675 enable_fast_install=yes
3676fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003677
3678echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3679echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3680if test "${lt_cv_path_SED+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 # Loop through the user's path and test for sed and gsed.
3684# Then use that list of sed's as ones to test for truncation.
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for lt_ac_prog in sed gsed; do
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3693 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3694 fi
3695 done
3696 done
3697done
3698lt_ac_max=0
3699lt_ac_count=0
3700# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3701# along with /bin/sed that truncates output.
3702for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3703 test ! -f $lt_ac_sed && break
3704 cat /dev/null > conftest.in
3705 lt_ac_count=0
3706 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3707 # Check for GNU sed and select it if it is found.
3708 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3709 lt_cv_path_SED=$lt_ac_sed
3710 break
3711 fi
3712 while true; do
3713 cat conftest.in conftest.in >conftest.tmp
3714 mv conftest.tmp conftest.in
3715 cp conftest.in conftest.nl
3716 echo >>conftest.nl
3717 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3718 cmp -s conftest.out conftest.nl || break
3719 # 10000 chars as input seems more than enough
3720 test $lt_ac_count -gt 10 && break
3721 lt_ac_count=`expr $lt_ac_count + 1`
3722 if test $lt_ac_count -gt $lt_ac_max; then
3723 lt_ac_max=$lt_ac_count
3724 lt_cv_path_SED=$lt_ac_sed
3725 fi
3726 done
3727done
3728SED=$lt_cv_path_SED
3729
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003730fi
3731
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003732echo "$as_me:$LINENO: result: $SED" >&5
3733echo "${ECHO_T}$SED" >&6
3734
3735echo "$as_me:$LINENO: checking for egrep" >&5
3736echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3737if test "${ac_cv_prog_egrep+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3741 then ac_cv_prog_egrep='grep -E'
3742 else ac_cv_prog_egrep='egrep'
3743 fi
3744fi
3745echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3746echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3747 EGREP=$ac_cv_prog_egrep
3748
3749
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003750
3751# Check whether --with-gnu-ld or --without-gnu-ld was given.
3752if test "${with_gnu_ld+set}" = set; then
3753 withval="$with_gnu_ld"
3754 test "$withval" = no || with_gnu_ld=yes
3755else
3756 with_gnu_ld=no
3757fi;
3758ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003759if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003760 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003761 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3762echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003763 case $host in
3764 *-*-mingw*)
3765 # gcc leaves a trailing carriage return which upsets mingw
3766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3767 *)
3768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3769 esac
3770 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003771 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003772 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003773 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003774 # Canonicalize the pathname of ld
3775 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003776 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003777 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003778 done
3779 test -z "$LD" && LD="$ac_prog"
3780 ;;
3781 "")
3782 # If it fails, then pretend we aren't using GCC.
3783 ac_prog=ld
3784 ;;
3785 *)
3786 # If it is relative, then search for the first ld in PATH.
3787 with_gnu_ld=unknown
3788 ;;
3789 esac
3790elif test "$with_gnu_ld" = yes; then
3791 echo "$as_me:$LINENO: checking for GNU ld" >&5
3792echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3793else
3794 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3795echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3796fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003797if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003802 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003803 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003804 test -z "$ac_dir" && ac_dir=.
3805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003806 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003807 # Check to see if the program is GNU ld. I'd rather use --version,
3808 # but apparently some GNU ld's only accept -v.
3809 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3811 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003812 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003813 ;;
3814 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003815 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003816 ;;
3817 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003818 fi
3819 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003820 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003821else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003823fi
3824fi
3825
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003826LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003827if test -n "$LD"; then
3828 echo "$as_me:$LINENO: result: $LD" >&5
3829echo "${ECHO_T}$LD" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3835echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3836 { (exit 1); exit 1; }; }
3837echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3838echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003839if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003840 echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003843case `$LD -v 2>&1 </dev/null` in
3844*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003845 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003846 ;;
3847*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003848 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003849 ;;
3850esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003851fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003852echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3853echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3854with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003855
3856
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003857echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3858echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3859if test "${lt_cv_ld_reload_flag+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 lt_cv_ld_reload_flag='-r'
3863fi
3864echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3865echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3866reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003867case $reload_flag in
3868"" | " "*) ;;
3869*) reload_flag=" $reload_flag" ;;
3870esac
3871reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003872
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003873echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3874echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003875if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 if test -n "$NM"; then
3879 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003880 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003881else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003883 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003884 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003885 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003886 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003888 # Check to see if the nm accepts a BSD-compat flag.
3889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3890 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003891 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3893 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003894 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003895 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003896 ;;
3897 *)
3898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3899 */dev/null*)
3900 lt_cv_path_NM="$tmp_nm -p"
3901 break
3902 ;;
3903 *)
3904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3905 continue # so that we can try to find one that supports BSD flags
3906 ;;
3907 esac
3908 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003909 fi
3910 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003911 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003912 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003913fi
3914fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003915echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3916echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003917NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003918
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003919echo "$as_me:$LINENO: checking whether ln -s works" >&5
3920echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3921LN_S=$as_ln_s
3922if test "$LN_S" = "ln -s"; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925else
3926 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3927echo "${ECHO_T}no, using $LN_S" >&6
3928fi
3929
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003930echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3931echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3932if test "${lt_cv_deplibs_check_method+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 lt_cv_file_magic_cmd='$MAGIC_CMD'
3936lt_cv_file_magic_test_file=
3937lt_cv_deplibs_check_method='unknown'
3938# Need to set the preceding variable on all platforms that support
3939# interlibrary dependencies.
3940# 'none' -- dependencies not supported.
3941# `unknown' -- same as none, but documents that we really don't know.
3942# 'pass_all' -- all dependencies passed with no checks.
3943# 'test_compile' -- check by making test program.
3944# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003945# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003946# If you have `file' or equivalent on your system and you're not sure
3947# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003948
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003949case $host_os in
3950aix4* | aix5*)
3951 lt_cv_deplibs_check_method=pass_all
3952 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003953
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003954beos*)
3955 lt_cv_deplibs_check_method=pass_all
3956 ;;
3957
3958bsdi4*)
3959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3960 lt_cv_file_magic_cmd='/usr/bin/file -L'
3961 lt_cv_file_magic_test_file=/shlib/libc.so
3962 ;;
3963
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003964cygwin*)
hp.com!davidm2de17682004-04-20 16:53:44 +00003965 # func_win32_libid is a shell function defined in ltmain.sh
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
hp.com!davidm2de17682004-04-20 16:53:44 +00003967 lt_cv_file_magic_cmd='func_win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003968 ;;
3969
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003970mingw* | pw32*)
3971 # Base MSYS/MinGW do not provide the 'file' command needed by
hp.com!davidm2de17682004-04-20 16:53:44 +00003972 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00003973 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3974 lt_cv_file_magic_cmd='$OBJDUMP -f'
3975 ;;
3976
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003977darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003978 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003979 ;;
3980
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003981freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003982 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3983 case $host_cpu in
3984 i*86 )
3985 # Not sure whether the presence of OpenBSD here was a mistake.
3986 # Let's accept both of them until this is cleared up.
3987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3988 lt_cv_file_magic_cmd=/usr/bin/file
3989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3990 ;;
3991 esac
3992 else
3993 lt_cv_deplibs_check_method=pass_all
3994 fi
3995 ;;
3996
3997gnu*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004001hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004002 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004003 case "$host_cpu" in
4004 ia64*)
4005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4006 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4007 ;;
4008 hppa*64*)
4009 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]'
4010 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4011 ;;
4012 *)
4013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4014 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4015 ;;
4016 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004017 ;;
4018
4019irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004020 case $LD in
4021 *-32|*"-32 ") libmagic=32-bit;;
4022 *-n32|*"-n32 ") libmagic=N32;;
4023 *-64|*"-64 ") libmagic=64-bit;;
4024 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004025 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004026 lt_cv_deplibs_check_method=pass_all
4027 ;;
4028
4029# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004030linux*)
4031 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004032 ;;
4033
hp.com!davidm2de17682004-04-20 16:53:44 +00004034netbsd* | knetbsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004037 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004039 fi
4040 ;;
4041
4042newos6*)
4043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4046 ;;
4047
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004048nto-qnx*)
4049 lt_cv_deplibs_check_method=unknown
4050 ;;
4051
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004052openbsd*)
4053 lt_cv_file_magic_cmd=/usr/bin/file
4054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4057 else
4058 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4059 fi
4060 ;;
4061
4062osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066sco3.2v5*)
4067 lt_cv_deplibs_check_method=pass_all
4068 ;;
4069
4070solaris*)
4071 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004072 ;;
4073
4074sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4075 case $host_vendor in
4076 motorola)
4077 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]'
4078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4079 ;;
4080 ncr)
4081 lt_cv_deplibs_check_method=pass_all
4082 ;;
4083 sequent)
4084 lt_cv_file_magic_cmd='/bin/file'
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4086 ;;
4087 sni)
4088 lt_cv_file_magic_cmd='/bin/file'
4089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4090 lt_cv_file_magic_test_file=/lib/libc.so
4091 ;;
4092 siemens)
4093 lt_cv_deplibs_check_method=pass_all
4094 ;;
4095 esac
4096 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004097
4098sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4099 lt_cv_deplibs_check_method=pass_all
4100 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004101esac
4102
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004103fi
4104echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4105echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4106file_magic_cmd=$lt_cv_file_magic_cmd
4107deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004108test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004109
4110
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004111
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004112
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004113# If no C compiler was specified, use CC.
4114LTCC=${LTCC-"$CC"}
4115
4116# Allow CC to be a program name with arguments.
4117compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004118
4119
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004120# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4121if test "${enable_libtool_lock+set}" = set; then
4122 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004123
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004124fi;
4125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004126
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004127# Some flags need to be propagated to the compiler or linker for good
4128# libtool support.
4129case $host in
4130ia64-*-hpux*)
4131 # Find out which ABI we are using.
4132 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004138 case `/usr/bin/file conftest.$ac_objext` in
4139 *ELF-32*)
4140 HPUX_IA64_MODE="32"
4141 ;;
4142 *ELF-64*)
4143 HPUX_IA64_MODE="64"
4144 ;;
4145 esac
4146 fi
4147 rm -rf conftest*
4148 ;;
4149*-*-irix6*)
4150 # Find out which ABI we are using.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004151 echo '#line 4151 "configure"' > conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4153 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004156 (exit $ac_status); }; then
4157 if test "$lt_cv_prog_gnu_ld" = yes; then
4158 case `/usr/bin/file conftest.$ac_objext` in
4159 *32-bit*)
4160 LD="${LD-ld} -melf32bsmip"
4161 ;;
4162 *N32*)
4163 LD="${LD-ld} -melf32bmipn32"
4164 ;;
4165 *64-bit*)
4166 LD="${LD-ld} -melf64bmip"
4167 ;;
4168 esac
4169 else
4170 case `/usr/bin/file conftest.$ac_objext` in
4171 *32-bit*)
4172 LD="${LD-ld} -32"
4173 ;;
4174 *N32*)
4175 LD="${LD-ld} -n32"
4176 ;;
4177 *64-bit*)
4178 LD="${LD-ld} -64"
4179 ;;
4180 esac
4181 fi
4182 fi
4183 rm -rf conftest*
4184 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004185
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004186x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4187 # Find out which ABI we are using.
4188 echo 'int i;' > conftest.$ac_ext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190 (eval $ac_compile) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; then
4194 case "`/usr/bin/file conftest.o`" in
4195 *32-bit*)
4196 case $host in
4197 x86_64-*linux*)
4198 LD="${LD-ld} -m elf_i386"
4199 ;;
4200 ppc64-*linux*|powerpc64-*linux*)
4201 LD="${LD-ld} -m elf32ppclinux"
4202 ;;
4203 s390x-*linux*)
4204 LD="${LD-ld} -m elf_s390"
4205 ;;
4206 sparc64-*linux*)
4207 LD="${LD-ld} -m elf32_sparc"
4208 ;;
4209 esac
4210 ;;
4211 *64-bit*)
4212 case $host in
4213 x86_64-*linux*)
4214 LD="${LD-ld} -m elf_x86_64"
4215 ;;
4216 ppc*-*linux*|powerpc*-*linux*)
4217 LD="${LD-ld} -m elf64ppc"
4218 ;;
4219 s390*-*linux*)
4220 LD="${LD-ld} -m elf64_s390"
4221 ;;
4222 sparc*-*linux*)
4223 LD="${LD-ld} -m elf64_sparc"
4224 ;;
4225 esac
4226 ;;
4227 esac
4228 fi
4229 rm -rf conftest*
4230 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004231
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004232*-*-sco3.2v5*)
4233 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4234 SAVE_CFLAGS="$CFLAGS"
4235 CFLAGS="$CFLAGS -belf"
4236 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4237echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4238if test "${lt_cv_cc_needs_belf+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241 ac_ext=c
4242ac_cpp='$CPP $CPPFLAGS'
4243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004246
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004253
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004254int
4255main ()
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004256{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004257
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004258 ;
4259 return 0;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004260}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004261_ACEOF
4262rm -f conftest.$ac_objext conftest$ac_exeext
4263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004264 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004265 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; } &&
4277 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4283 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004284else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004285 echo "$as_me: failed program was:" >&5
4286sed 's/^/| /' conftest.$ac_ext >&5
4287
4288lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004289fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004290rm -f conftest.err conftest.$ac_objext \
4291 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004292 ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004298fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004299echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4300echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4301 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4302 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4303 CFLAGS="$SAVE_CFLAGS"
4304 fi
4305 ;;
4306
4307esac
4308
4309need_locks="$enable_libtool_lock"
4310
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004311
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4319# On Suns, sometimes $CPP names a directory.
4320if test -n "$CPP" && test -d "$CPP"; then
4321 CPP=
4322fi
4323if test -z "$CPP"; then
4324 if test "${ac_cv_prog_CPP+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 do
4330 ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004350 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004373sed 's/^/| /' conftest.$ac_ext >&5
4374
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
4379
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004412sed 's/^/| /' conftest.$ac_ext >&5
4413
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
4419
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 break
4425fi
4426
4427 done
4428 ac_cv_prog_CPP=$CPP
4429
4430fi
4431 CPP=$ac_cv_prog_CPP
4432else
4433 ac_cv_prog_CPP=$CPP
4434fi
4435echo "$as_me:$LINENO: result: $CPP" >&5
4436echo "${ECHO_T}$CPP" >&6
4437ac_preproc_ok=false
4438for ac_c_preproc_warn_flag in '' yes
4439do
4440 # Use a header file that comes with gcc, so configuring glibc
4441 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004444 # On the NeXT, cc -E runs the code through the compiler's parser,
4445 # not just through cpp. "Syntax error" is here to catch this case.
4446 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452#ifdef __STDC__
4453# include <limits.h>
4454#else
4455# include <assert.h>
4456#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004457 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004458_ACEOF
4459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004470 else
4471 ac_cpp_err=
4472 fi
4473else
4474 ac_cpp_err=yes
4475fi
4476if test -z "$ac_cpp_err"; then
4477 :
4478else
4479 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004480sed 's/^/| /' conftest.$ac_ext >&5
4481
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004482 # Broken: fails on valid input.
4483continue
4484fi
4485rm -f conftest.err conftest.$ac_ext
4486
4487 # OK, works on sane cases. Now check whether non-existent headers
4488 # can be detected and how.
4489 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004490/* confdefs.h. */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004495#include <ac_nonexistent.h>
4496_ACEOF
4497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev/null; then
4505 if test -s conftest.err; then
4506 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004508 else
4509 ac_cpp_err=
4510 fi
4511else
4512 ac_cpp_err=yes
4513fi
4514if test -z "$ac_cpp_err"; then
4515 # Broken: success on invalid input.
4516continue
4517else
4518 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004519sed 's/^/| /' conftest.$ac_ext >&5
4520
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004521 # Passes both tests.
4522ac_preproc_ok=:
4523break
4524fi
4525rm -f conftest.err conftest.$ac_ext
4526
4527done
4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529rm -f conftest.err conftest.$ac_ext
4530if $ac_preproc_ok; then
4531 :
4532else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4534See \`config.log' for more details." >&5
4535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4536See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004537 { (exit 1); exit 1; }; }
4538fi
4539
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004547echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4549if test "${ac_cv_header_stdc+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004558#include <stdlib.h>
4559#include <stdarg.h>
4560#include <string.h>
4561#include <float.h>
4562
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004563int
4564main ()
4565{
4566
4567 ;
4568 return 0;
4569}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004570_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004571rm -f conftest.$ac_objext
4572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004573 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004574 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004575 grep -v '^ *+' conftest.er1 >conftest.err
4576 rm -f conftest.er1
4577 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004579 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004592 ac_cv_header_stdc=yes
4593else
4594 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004598fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004600
4601if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004604/* confdefs.h. */
4605_ACEOF
4606cat confdefs.h >>conftest.$ac_ext
4607cat >>conftest.$ac_ext <<_ACEOF
4608/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004609#include <string.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then
4614 :
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004630#include <stdlib.h>
4631
4632_ACEOF
4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then
4635 :
4636else
4637 ac_cv_header_stdc=no
4638fi
4639rm -f conftest*
4640
4641fi
4642
4643if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then
4646 :
4647else
4648 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004654#include <ctype.h>
4655#if ((' ' & 0x0FF) == 0x020)
4656# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004659# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004663# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664#endif
4665
4666#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667int
4668main ()
4669{
4670 int i;
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004673 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004674 exit(2);
4675 exit (0);
4676}
4677_ACEOF
4678rm -f conftest$ac_exeext
4679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 :
4690else
4691 echo "$as_me: program exited with status $ac_status" >&5
4692echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004693sed 's/^/| /' conftest.$ac_ext >&5
4694
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004695( exit $ac_status )
4696ac_cv_header_stdc=no
4697fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004699fi
4700fi
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4703echo "${ECHO_T}$ac_cv_header_stdc" >&6
4704if test $ac_cv_header_stdc = yes; then
4705
4706cat >>confdefs.h <<\_ACEOF
4707#define STDC_HEADERS 1
4708_ACEOF
4709
4710fi
4711
4712# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004723 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004724do
4725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726echo "$as_me:$LINENO: checking for $ac_header" >&5
4727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4728if eval "test \"\${$as_ac_Header+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004737$ac_includes_default
4738
4739#include <$ac_header>
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004743 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004744 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +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); }; }; then
4762 eval "$as_ac_Header=yes"
4763else
4764 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004767eval "$as_ac_Header=no"
4768fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004770fi
4771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779
4780done
4781
4782
4783
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004784for ac_header in dlfcn.h
4785do
4786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792fi
4793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795else
4796 # Is the header compilable?
4797echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004800/* confdefs.h. */
4801_ACEOF
4802cat confdefs.h >>conftest.$ac_ext
4803cat >>conftest.$ac_ext <<_ACEOF
4804/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004805$ac_includes_default
4806#include <$ac_header>
4807_ACEOF
4808rm -f conftest.$ac_objext
4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004810 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004811 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_header_compiler=yes
4830else
4831 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004832sed 's/^/| /' conftest.$ac_ext >&5
4833
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004834ac_header_compiler=no
4835fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838echo "${ECHO_T}$ac_header_compiler" >&6
4839
4840# Is the header present?
4841echo "$as_me:$LINENO: checking $ac_header presence" >&5
4842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4843cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004849#include <$ac_header>
4850_ACEOF
4851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null; then
4859 if test -s conftest.err; then
4860 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004862 else
4863 ac_cpp_err=
4864 fi
4865else
4866 ac_cpp_err=yes
4867fi
4868if test -z "$ac_cpp_err"; then
4869 ac_header_preproc=yes
4870else
4871 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004874 ac_header_preproc=no
4875fi
4876rm -f conftest.err conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4878echo "${ECHO_T}$ac_header_preproc" >&6
4879
4880# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 yes:no: )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4887 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +00004888 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004889 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +00004890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00004898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00004902 (
4903 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004904## ----------------------------------------- ##
4905## Report this to libunwind@linux.hpl.hp.com ##
4906## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004907_ASBOX
4908 ) |
4909 sed "s/^/$as_me: WARNING: /" >&2
4910 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004911esac
4912echo "$as_me:$LINENO: checking for $ac_header" >&5
4913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4914if eval "test \"\${$as_ac_Header+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004917 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004918fi
4919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921
4922fi
4923if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926_ACEOF
4927
4928fi
4929
4930done
4931
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004932ac_ext=cc
4933ac_cpp='$CXXCPP $CPPFLAGS'
4934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4938echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4939if test -z "$CXXCPP"; then
4940 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004943 # Double quotes because CXXCPP needs to be expanded
4944 for CXXCPP in "$CXX -E" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947for ac_cxx_preproc_warn_flag in '' yes
4948do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#ifdef __STDC__
4962# include <limits.h>
4963#else
4964# include <assert.h>
4965#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004966 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004967_ACEOF
4968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } >/dev/null; then
4976 if test -s conftest.err; then
4977 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00004978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004979 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004980 ac_cpp_err=
4981 fi
4982else
4983 ac_cpp_err=yes
4984fi
4985if test -z "$ac_cpp_err"; then
4986 :
4987else
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 # Broken: fails on valid input.
4992continue
4993fi
4994rm -f conftest.err conftest.$ac_ext
4995
4996 # OK, works on sane cases. Now check whether non-existent headers
4997 # can be detected and how.
4998 cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h. */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h. */
5004#include <ac_nonexistent.h>
5005_ACEOF
5006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null; then
5014 if test -s conftest.err; then
5015 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005017 else
5018 ac_cpp_err=
5019 fi
5020else
5021 ac_cpp_err=yes
5022fi
5023if test -z "$ac_cpp_err"; then
5024 # Broken: success on invalid input.
5025continue
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Passes both tests.
5031ac_preproc_ok=:
5032break
5033fi
5034rm -f conftest.err conftest.$ac_ext
5035
5036done
5037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038rm -f conftest.err conftest.$ac_ext
5039if $ac_preproc_ok; then
5040 break
5041fi
5042
5043 done
5044 ac_cv_prog_CXXCPP=$CXXCPP
5045
5046fi
5047 CXXCPP=$ac_cv_prog_CXXCPP
5048else
5049 ac_cv_prog_CXXCPP=$CXXCPP
5050fi
5051echo "$as_me:$LINENO: result: $CXXCPP" >&5
5052echo "${ECHO_T}$CXXCPP" >&6
5053ac_preproc_ok=false
5054for ac_cxx_preproc_warn_flag in '' yes
5055do
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
5058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
5060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#ifdef __STDC__
5069# include <limits.h>
5070#else
5071# include <assert.h>
5072#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005073 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005074_ACEOF
5075if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null; then
5083 if test -s conftest.err; then
5084 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005085 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005086 else
5087 ac_cpp_err=
5088 fi
5089else
5090 ac_cpp_err=yes
5091fi
5092if test -z "$ac_cpp_err"; then
5093 :
5094else
5095 echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether non-existent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <ac_nonexistent.h>
5112_ACEOF
5113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } >/dev/null; then
5121 if test -s conftest.err; then
5122 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141rm -f conftest.err conftest.$ac_ext
5142
5143done
5144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145rm -f conftest.err conftest.$ac_ext
5146if $ac_preproc_ok; then
5147 :
5148else
5149 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150See \`config.log' for more details." >&5
5151echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }
5154fi
5155
5156ac_ext=cc
5157ac_cpp='$CXXCPP $CPPFLAGS'
5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163ac_ext=f
5164ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5165ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5167if test -n "$ac_tool_prefix"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005168 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005169 do
5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_F77+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177 if test -n "$F77"; then
5178 ac_cv_prog_F77="$F77" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192done
5193
5194fi
5195fi
5196F77=$ac_cv_prog_F77
5197if test -n "$F77"; then
5198 echo "$as_me:$LINENO: result: $F77" >&5
5199echo "${ECHO_T}$F77" >&6
5200else
5201 echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205 test -n "$F77" && break
5206 done
5207fi
5208if test -z "$F77"; then
5209 ac_ct_F77=$F77
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005210 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005211do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214echo "$as_me:$LINENO: checking for $ac_word" >&5
5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219 if test -n "$ac_ct_F77"; then
5220 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_F77="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234done
5235
5236fi
5237fi
5238ac_ct_F77=$ac_cv_prog_ac_ct_F77
5239if test -n "$ac_ct_F77"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5241echo "${ECHO_T}$ac_ct_F77" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 test -n "$ac_ct_F77" && break
5248done
5249
5250 F77=$ac_ct_F77
5251fi
5252
5253
5254# Provide some information about the compiler.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005255echo "$as_me:5255:" \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005256 "checking for Fortran 77 compiler version" >&5
5257ac_compiler=`set X $ac_compile; echo $2`
5258{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5259 (eval $ac_compiler --version </dev/null >&5) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }
5263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5264 (eval $ac_compiler -v </dev/null >&5) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5269 (eval $ac_compiler -V </dev/null >&5) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005273rm -f a.out
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005274
5275# If we don't use `.F' as extension, the preprocessor is not run on the
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005276# input file. (Note that this only needs to work for GNU compilers.)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005277ac_save_ext=$ac_ext
5278ac_ext=F
5279echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5280echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5281if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 cat >conftest.$ac_ext <<_ACEOF
5285 program main
5286#ifndef __GNUC__
5287 choke me
5288#endif
5289
5290 end
5291_ACEOF
5292rm -f conftest.$ac_objext
5293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005294 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005295 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005301 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_compiler_gnu=yes
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318ac_compiler_gnu=no
5319fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005321ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5322
5323fi
5324echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5325echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5326ac_ext=$ac_save_ext
5327ac_test_FFLAGS=${FFLAGS+set}
5328ac_save_FFLAGS=$FFLAGS
5329FFLAGS=
5330echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5331echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5332if test "${ac_cv_prog_f77_g+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 FFLAGS=-g
5336cat >conftest.$ac_ext <<_ACEOF
5337 program main
5338
5339 end
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005343 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005344 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005350 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 ac_cv_prog_f77_g=yes
5363else
5364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367ac_cv_prog_f77_g=no
5368fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005370
5371fi
5372echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5373echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5374if test "$ac_test_FFLAGS" = set; then
5375 FFLAGS=$ac_save_FFLAGS
5376elif test $ac_cv_prog_f77_g = yes; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005377 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005378 FFLAGS="-g -O2"
5379 else
5380 FFLAGS="-g"
5381 fi
5382else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005383 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005384 FFLAGS="-O2"
5385 else
5386 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005387 fi
5388fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00005389
5390G77=`test $ac_compiler_gnu = yes && echo yes`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005391ac_ext=c
5392ac_cpp='$CPP $CPPFLAGS'
5393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398
5399# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5400
5401# find the maximum length of command line arguments
5402echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5403echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5404if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5406else
5407 i=0
hp.com!davidm2de17682004-04-20 16:53:44 +00005408 teststring="ABCD"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005409
5410 case $build_os in
5411 msdosdjgpp*)
5412 # On DJGPP, this test can blow up pretty badly due to problems in libc
5413 # (any single argument exceeding 2000 bytes causes a buffer overrun
5414 # during glob expansion). Even if it were fixed, the result of this
5415 # check would be larger than it should be.
5416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5417 ;;
5418
5419 gnu*)
5420 # Under GNU Hurd, this test is not required because there is
5421 # no limit to the length of command line arguments.
5422 # Libtool will interpret -1 as no limit whatsoever
5423 lt_cv_sys_max_cmd_len=-1;
5424 ;;
5425
5426 cygwin* | mingw*)
5427 # On Win9x/ME, this test blows up -- it succeeds, but takes
5428 # about 5 minutes as the teststring grows exponentially.
5429 # Worse, since 9x/ME are not pre-emptively multitasking,
5430 # you end up with a "frozen" computer, even though with patience
5431 # the test eventually succeeds (with a max line length of 256k).
5432 # Instead, let's just punt: use the minimum linelength reported by
5433 # all of the supported platforms: 8192 (on NT/2K/XP).
5434 lt_cv_sys_max_cmd_len=8192;
5435 ;;
5436
5437 amigaos*)
5438 # On AmigaOS with pdksh, this test takes hours, literally.
5439 # So we just punt and use a minimum line length of 8192.
5440 lt_cv_sys_max_cmd_len=8192;
5441 ;;
5442
5443 *)
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
hp.com!davidm2de17682004-04-20 16:53:44 +00005447 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5448 = "XX$teststring") >/dev/null 2>&1 &&
5449 new_result=`expr "X$teststring" : ".*" 2>&1` &&
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005450 lt_cv_sys_max_cmd_len=$new_result &&
5451 test $i != 17 # 1/2 MB should be enough
5452 do
5453 i=`expr $i + 1`
hp.com!davidm2de17682004-04-20 16:53:44 +00005454 teststring=$teststring$teststring
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005455 done
hp.com!davidm2de17682004-04-20 16:53:44 +00005456 teststring=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005457 # Add a significant safety factor because C++ compilers can tack on massive
5458 # amounts of additional arguments before passing them to the linker.
5459 # It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461 ;;
5462 esac
5463
5464fi
5465
5466if test -n $lt_cv_sys_max_cmd_len ; then
5467 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5468echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5469else
5470 echo "$as_me:$LINENO: result: none" >&5
5471echo "${ECHO_T}none" >&6
5472fi
5473
5474
5475
5476
5477# Check for command to grab the raw symbol name followed by C symbol from nm.
5478echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483
5484# These are sane defaults that work on at least a few old systems.
5485# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5486
5487# Character class describing NM global symbol codes.
5488symcode='[BCDEGRST]'
5489
5490# Regexp to match symbols that can be accessed directly from C.
5491sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5492
5493# Transform the above into a raw symbol and a C symbol.
5494symxfrm='\1 \2\3 \3'
5495
5496# Transform an extracted symbol line into a proper C declaration
5497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5498
5499# Transform an extracted symbol line into symbol name and symbol address
5500lt_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'"
5501
5502# Define system-specific variables.
5503case $host_os in
5504aix*)
5505 symcode='[BCDT]'
5506 ;;
5507cygwin* | mingw* | pw32*)
5508 symcode='[ABCDGISTW]'
5509 ;;
5510hpux*) # Its linker distinguishes data from code symbols
5511 if test "$host_cpu" = ia64; then
5512 symcode='[ABCDEGRST]'
5513 fi
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515 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'"
5516 ;;
5517irix* | nonstopux*)
5518 symcode='[BCDEGRST]'
5519 ;;
5520osf*)
5521 symcode='[BCDEGQRST]'
5522 ;;
5523solaris* | sysv5*)
5524 symcode='[BDRT]'
5525 ;;
5526sysv4)
5527 symcode='[DFNSTU]'
5528 ;;
5529esac
5530
5531# Handle CRLF in mingw tool chain
5532opt_cr=
5533case $build_os in
5534mingw*)
5535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536 ;;
5537esac
5538
5539# If we're using GNU nm, then use its standard symbol codes.
5540case `$NM -V 2>&1` in
5541*GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5543esac
5544
5545# Try without a prefix undercore, then with it.
5546for ac_symprfx in "" "_"; do
5547
5548 # Write the raw and C identifiers.
5549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5550
5551 # Check to see that the pipe works correctly.
5552 pipe_works=no
5553
5554 rm -f conftest*
5555 cat > conftest.$ac_ext <<EOF
5556#ifdef __cplusplus
5557extern "C" {
5558#endif
5559char nm_test_var;
5560void nm_test_func(){}
5561#ifdef __cplusplus
5562}
5563#endif
5564int main(){nm_test_var='a';nm_test_func();return(0);}
5565EOF
5566
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 # Now try to grab the symbols.
5573 nlist=conftest.nm
5574 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5575 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && test -s "$nlist"; then
5579 # Try sorting and uniquifying the output.
5580 if sort "$nlist" | uniq > "$nlist"T; then
5581 mv -f "$nlist"T "$nlist"
5582 else
5583 rm -f "$nlist"T
5584 fi
5585
5586 # Make sure that we snagged all the symbols we need.
5587 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5588 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5589 cat <<EOF > conftest.$ac_ext
5590#ifdef __cplusplus
5591extern "C" {
5592#endif
5593
5594EOF
5595 # Now generate the symbol file.
5596 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5597
5598 cat <<EOF >> conftest.$ac_ext
5599#if defined (__STDC__) && __STDC__
5600# define lt_ptr_t void *
5601#else
5602# define lt_ptr_t char *
5603# define const
5604#endif
5605
5606/* The mapping between symbol names and symbols. */
5607const struct {
5608 const char *name;
5609 lt_ptr_t address;
5610}
5611lt_preloaded_symbols[] =
5612{
5613EOF
5614 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5615 cat <<\EOF >> conftest.$ac_ext
5616 {0, (lt_ptr_t) 0}
5617};
5618
5619#ifdef __cplusplus
5620}
5621#endif
5622EOF
5623 # Now try linking the two files.
5624 mv conftest.$ac_objext conftstm.$ac_objext
5625 lt_save_LIBS="$LIBS"
5626 lt_save_CFLAGS="$CFLAGS"
5627 LIBS="conftstm.$ac_objext"
5628 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5634 pipe_works=yes
5635 fi
5636 LIBS="$lt_save_LIBS"
5637 CFLAGS="$lt_save_CFLAGS"
5638 else
5639 echo "cannot find nm_test_func in $nlist" >&5
5640 fi
5641 else
5642 echo "cannot find nm_test_var in $nlist" >&5
5643 fi
5644 else
5645 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5646 fi
5647 else
5648 echo "$progname: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5650 fi
5651 rm -f conftest* conftst*
5652
5653 # Do not use the global_symbol_pipe unless it works.
5654 if test "$pipe_works" = yes; then
5655 break
5656 else
5657 lt_cv_sys_global_symbol_pipe=
5658 fi
5659done
5660
5661fi
5662
5663if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664 lt_cv_sys_global_symbol_to_cdecl=
5665fi
5666if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 echo "$as_me:$LINENO: result: failed" >&5
5668echo "${ECHO_T}failed" >&6
5669else
5670 echo "$as_me:$LINENO: result: ok" >&5
5671echo "${ECHO_T}ok" >&6
5672fi
5673
5674echo "$as_me:$LINENO: checking for objdir" >&5
5675echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5676if test "${lt_cv_objdir+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 rm -f .libs 2>/dev/null
5680mkdir .libs 2>/dev/null
5681if test -d .libs; then
5682 lt_cv_objdir=.libs
5683else
5684 # MS-DOS does not allow filenames that begin with a dot.
5685 lt_cv_objdir=_libs
5686fi
5687rmdir .libs 2>/dev/null
5688fi
5689echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5690echo "${ECHO_T}$lt_cv_objdir" >&6
5691objdir=$lt_cv_objdir
5692
5693
5694
5695
5696
5697case $host_os in
5698aix3*)
5699 # AIX sometimes has problems with the GCC collect2 program. For some
5700 # reason, if we set the COLLECT_NAMES environment variable, the problems
5701 # vanish in a puff of smoke.
5702 if test "X${COLLECT_NAMES+set}" != Xset; then
5703 COLLECT_NAMES=
5704 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005705 fi
5706 ;;
5707esac
5708
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005709# Sed substitution that helps us do robust quoting. It backslashifies
5710# metacharacters that are still active within double-quoted strings.
5711Xsed='sed -e s/^X//'
5712sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5713
5714# Same as above, but do not quote variable references.
5715double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5716
5717# Sed substitution to delay expansion of an escaped shell variable in a
5718# double_quote_subst'ed string.
5719delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5720
5721# Sed substitution to avoid accidental globbing in evaled expressions
5722no_glob_subst='s/\*/\\\*/g'
5723
5724# Constants:
5725rm="rm -f"
5726
5727# Global variables:
5728default_ofile=libtool
5729can_build_shared=yes
5730
5731# All known linkers require a `.a' archive for static linking (except M$VC,
5732# which needs '.lib').
5733libext=a
5734ltmain="$ac_aux_dir/ltmain.sh"
5735ofile="$default_ofile"
5736with_gnu_ld="$lt_cv_prog_gnu_ld"
5737
5738if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$AR"; then
5747 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763fi
5764fi
5765AR=$ac_cv_prog_AR
5766if test -n "$AR"; then
5767 echo "$as_me:$LINENO: result: $AR" >&5
5768echo "${ECHO_T}$AR" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_AR"; then
5776 ac_ct_AR=$AR
5777 # Extract the first word of "ar", so it can be a program name with args.
5778set dummy ar; 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_AR+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 if test -n "$ac_ct_AR"; then
5785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR" && ac_cv_prog_ac_ct_AR="false"
5802fi
5803fi
5804ac_ct_AR=$ac_cv_prog_ac_ct_AR
5805if test -n "$ac_ct_AR"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5807echo "${ECHO_T}$ac_ct_AR" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813 AR=$ac_ct_AR
5814else
5815 AR="$ac_cv_prog_AR"
5816fi
5817
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005818if test -n "$ac_tool_prefix"; then
5819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_RANLIB+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826 if test -n "$RANLIB"; then
5827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841done
5842
5843fi
5844fi
5845RANLIB=$ac_cv_prog_RANLIB
5846if test -n "$RANLIB"; then
5847 echo "$as_me:$LINENO: result: $RANLIB" >&5
5848echo "${ECHO_T}$RANLIB" >&6
5849else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852fi
5853
5854fi
5855if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858set dummy ranlib; ac_word=$2
5859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879done
5880
5881 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5882fi
5883fi
5884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885if test -n "$ac_ct_RANLIB"; then
5886 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5887echo "${ECHO_T}$ac_ct_RANLIB" >&6
5888else
5889 echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892
5893 RANLIB=$ac_ct_RANLIB
5894else
5895 RANLIB="$ac_cv_prog_RANLIB"
5896fi
5897
5898if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}strip; ac_word=$2
5901echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903if test "${ac_cv_prog_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906 if test -n "$STRIP"; then
5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921done
5922
5923fi
5924fi
5925STRIP=$ac_cv_prog_STRIP
5926if test -n "$STRIP"; then
5927 echo "$as_me:$LINENO: result: $STRIP" >&5
5928echo "${ECHO_T}$STRIP" >&6
5929else
5930 echo "$as_me:$LINENO: result: no" >&5
5931echo "${ECHO_T}no" >&6
5932fi
5933
5934fi
5935if test -z "$ac_cv_prog_STRIP"; then
5936 ac_ct_STRIP=$STRIP
5937 # Extract the first word of "strip", so it can be a program name with args.
5938set dummy strip; ac_word=$2
5939echo "$as_me:$LINENO: checking for $ac_word" >&5
5940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944 if test -n "$ac_ct_STRIP"; then
5945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_STRIP="strip"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958done
5959done
5960
5961 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5962fi
5963fi
5964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5965if test -n "$ac_ct_STRIP"; then
5966 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5967echo "${ECHO_T}$ac_ct_STRIP" >&6
5968else
5969 echo "$as_me:$LINENO: result: no" >&5
5970echo "${ECHO_T}no" >&6
5971fi
5972
5973 STRIP=$ac_ct_STRIP
5974else
5975 STRIP="$ac_cv_prog_STRIP"
5976fi
5977
5978
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005979old_CC="$CC"
5980old_CFLAGS="$CFLAGS"
5981
5982# Set sane defaults for various variables
5983test -z "$AR" && AR=ar
5984test -z "$AR_FLAGS" && AR_FLAGS=cru
5985test -z "$AS" && AS=as
5986test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005987test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005988test -z "$DLLTOOL" && DLLTOOL=dlltool
5989test -z "$LD" && LD=ld
5990test -z "$LN_S" && LN_S="ln -s"
5991test -z "$MAGIC_CMD" && MAGIC_CMD=file
5992test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005993test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005994test -z "$OBJDUMP" && OBJDUMP=objdump
5995test -z "$RANLIB" && RANLIB=:
5996test -z "$STRIP" && STRIP=:
5997test -z "$ac_objext" && ac_objext=o
5998
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005999# Determine commands to create old-style static archives.
6000old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6001old_postinstall_cmds='chmod 644 $oldlib'
6002old_postuninstall_cmds=
6003
6004if test -n "$RANLIB"; then
6005 case $host_os in
6006 openbsd*)
6007 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6008 ;;
6009 *)
6010 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6011 ;;
6012 esac
6013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6014fi
6015
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006016# Only perform the check for file, if the check method requires it
6017case $deplibs_check_method in
6018file_magic*)
6019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6021echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006024else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006025 case $MAGIC_CMD in
6026[\\/*] | ?:[\\/]*)
6027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6028 ;;
6029*)
6030 lt_save_MAGIC_CMD="$MAGIC_CMD"
6031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6032 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6033 for ac_dir in $ac_dummy; do
6034 IFS="$lt_save_ifs"
6035 test -z "$ac_dir" && ac_dir=.
6036 if test -f $ac_dir/${ac_tool_prefix}file; then
6037 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6038 if test -n "$file_magic_test_file"; then
6039 case $deplibs_check_method in
6040 "file_magic "*)
6041 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6044 $EGREP "$file_magic_regex" > /dev/null; then
6045 :
6046 else
6047 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006048
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006049*** Warning: the command libtool uses to detect shared libraries,
6050*** $file_magic_cmd, produces output that libtool cannot recognize.
6051*** The result is that libtool may fail to recognize shared libraries
6052*** as such. This will affect the creation of libtool libraries that
6053*** depend on shared libraries, but programs linked with such libtool
6054*** libraries will work regardless of this problem. Nevertheless, you
6055*** may want to report the problem to your system manager and/or to
6056*** bug-libtool@gnu.org
6057
6058EOF
6059 fi ;;
6060 esac
6061 fi
6062 break
6063 fi
6064 done
6065 IFS="$lt_save_ifs"
6066 MAGIC_CMD="$lt_save_MAGIC_CMD"
6067 ;;
6068esac
6069fi
6070
6071MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072if test -n "$MAGIC_CMD"; then
6073 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6074echo "${ECHO_T}$MAGIC_CMD" >&6
6075else
6076 echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
6078fi
6079
6080if test -z "$lt_cv_path_MAGIC_CMD"; then
6081 if test -n "$ac_tool_prefix"; then
6082 echo "$as_me:$LINENO: checking for file" >&5
6083echo $ECHO_N "checking for file... $ECHO_C" >&6
6084if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 case $MAGIC_CMD in
6088[\\/*] | ?:[\\/]*)
6089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6090 ;;
6091*)
6092 lt_save_MAGIC_CMD="$MAGIC_CMD"
6093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6095 for ac_dir in $ac_dummy; do
6096 IFS="$lt_save_ifs"
6097 test -z "$ac_dir" && ac_dir=.
6098 if test -f $ac_dir/file; then
6099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6100 if test -n "$file_magic_test_file"; then
6101 case $deplibs_check_method in
6102 "file_magic "*)
6103 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6106 $EGREP "$file_magic_regex" > /dev/null; then
6107 :
6108 else
6109 cat <<EOF 1>&2
6110
6111*** Warning: the command libtool uses to detect shared libraries,
6112*** $file_magic_cmd, produces output that libtool cannot recognize.
6113*** The result is that libtool may fail to recognize shared libraries
6114*** as such. This will affect the creation of libtool libraries that
6115*** depend on shared libraries, but programs linked with such libtool
6116*** libraries will work regardless of this problem. Nevertheless, you
6117*** may want to report the problem to your system manager and/or to
6118*** bug-libtool@gnu.org
6119
6120EOF
6121 fi ;;
6122 esac
6123 fi
6124 break
6125 fi
6126 done
6127 IFS="$lt_save_ifs"
6128 MAGIC_CMD="$lt_save_MAGIC_CMD"
6129 ;;
6130esac
6131fi
6132
6133MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134if test -n "$MAGIC_CMD"; then
6135 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6136echo "${ECHO_T}$MAGIC_CMD" >&6
6137else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140fi
6141
6142 else
6143 MAGIC_CMD=:
6144 fi
6145fi
6146
6147 fi
6148 ;;
6149esac
6150
6151enable_dlopen=no
6152enable_win32_dll=no
6153
6154# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6155if test "${enable_libtool_lock+set}" = set; then
6156 enableval="$enable_libtool_lock"
6157
6158fi;
6159test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006160
6161
6162# Check whether --with-pic or --without-pic was given.
6163if test "${with_pic+set}" = set; then
6164 withval="$with_pic"
6165 pic_mode="$withval"
6166else
6167 pic_mode=default
6168fi;
6169test -z "$pic_mode" && pic_mode=default
6170
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006171# Use C for the default configuration in the libtool script
6172tagname=
6173lt_save_CC="$CC"
6174ac_ext=c
6175ac_cpp='$CPP $CPPFLAGS'
6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180
6181# Source file extension for C test sources.
6182ac_ext=c
6183
6184# Object file extension for compiled C test sources.
6185objext=o
6186objext=$objext
6187
6188# Code to be used in simple compile tests
6189lt_simple_compile_test_code="int some_variable = 0;\n"
6190
6191# Code to be used in simple link tests
6192lt_simple_link_test_code='int main(){return(0);}\n'
6193
6194
6195# If no C compiler was specified, use CC.
6196LTCC=${LTCC-"$CC"}
6197
6198# Allow CC to be a program name with arguments.
6199compiler=$CC
6200
6201
6202#
6203# Check for any special shared library compilation flags.
6204#
6205lt_prog_cc_shlib=
6206if test "$GCC" = no; then
6207 case $host_os in
6208 sco3.2v5*)
6209 lt_prog_cc_shlib='-belf'
6210 ;;
6211 esac
6212fi
6213if test -n "$lt_prog_cc_shlib"; then
6214 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6215echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6216 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6217 else
6218 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6219echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6220 lt_cv_prog_cc_can_build_shared=no
6221 fi
6222fi
6223
6224
6225#
6226# Check to make sure the static flag actually works.
6227#
6228echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6229echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6230if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006233 lt_prog_compiler_static_works=no
6234 save_LDFLAGS="$LDFLAGS"
6235 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6236 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6238 # The compiler can only warn and ignore the option if not recognized
6239 # So say no if there are warnings
6240 if test -s conftest.err; then
6241 # Append any errors to the config.log.
6242 cat conftest.err 1>&5
6243 else
6244 lt_prog_compiler_static_works=yes
6245 fi
6246 fi
6247 $rm conftest*
6248 LDFLAGS="$save_LDFLAGS"
6249
6250fi
6251echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6252echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6253
6254if test x"$lt_prog_compiler_static_works" = xyes; then
6255 :
6256else
6257 lt_prog_compiler_static=
6258fi
6259
6260
6261
6262
6263lt_prog_compiler_no_builtin_flag=
6264
6265if test "$GCC" = yes; then
6266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6267
6268
6269echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6270echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6271if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274 lt_cv_prog_compiler_rtti_exceptions=no
6275 ac_outfile=conftest.$ac_objext
6276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6277 lt_compiler_flag="-fno-rtti -fno-exceptions"
6278 # Insert the option either (1) after the last *FLAGS variable, or
6279 # (2) before a word containing "conftest.", or (3) at the end.
6280 # Note that $ac_compile itself does not contain backslashes and begins
6281 # with a dollar sign (not a hyphen), so the echo should work correctly.
6282 # The option is referenced via a variable to avoid confusing sed.
6283 lt_compile=`echo "$ac_compile" | $SED \
6284 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6286 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006287 (eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006288 (eval "$lt_compile" 2>conftest.err)
6289 ac_status=$?
6290 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006291 echo "$as_me:6291: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006292 if (exit $ac_status) && test -s "$ac_outfile"; then
6293 # The compiler can only warn and ignore the option if not recognized
6294 # So say no if there are warnings
6295 if test ! -s conftest.err; then
6296 lt_cv_prog_compiler_rtti_exceptions=yes
6297 fi
6298 fi
6299 $rm conftest*
6300
6301fi
6302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6303echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6304
6305if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6306 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6307else
6308 :
6309fi
6310
6311fi
6312
6313lt_prog_compiler_wl=
6314lt_prog_compiler_pic=
6315lt_prog_compiler_static=
6316
6317echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6318echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006319
6320 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006321 lt_prog_compiler_wl='-Wl,'
6322 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006323
6324 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006325 aix*)
6326 # All AIX code is PIC.
6327 if test "$host_cpu" = ia64; then
6328 # AIX 5 now supports IA64 processor
6329 lt_prog_compiler_static='-Bstatic'
6330 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006331 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006332
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006333 amigaos*)
6334 # FIXME: we need at least 68020 code to build shared libraries, but
6335 # adding the `-m68020' flag to GCC prevents building anything better,
6336 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006337 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006338 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006339
6340 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006341 # PIC is the default for these OSes.
6342 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006343
6344 mingw* | pw32* | os2*)
6345 # This hack is so that the source file can tell whether it is being
6346 # built for inclusion in a dll (and should export symbols for example).
6347 lt_prog_compiler_pic='-DDLL_EXPORT'
6348 ;;
6349
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006350 darwin* | rhapsody*)
6351 # PIC is the default on this platform
6352 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006353 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006354 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006355
6356 msdosdjgpp*)
6357 # Just because we use GCC doesn't mean we suddenly get shared libraries
6358 # on systems that don't support them.
6359 lt_prog_compiler_can_build_shared=no
6360 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006361 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006362
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006363 sysv4*MP*)
6364 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006365 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006366 fi
6367 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006368
6369 hpux*)
6370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6371 # not for PA HP-UX.
6372 case "$host_cpu" in
6373 hppa*64*|ia64*)
6374 # +Z the default
6375 ;;
6376 *)
6377 lt_prog_compiler_pic='-fPIC'
6378 ;;
6379 esac
6380 ;;
6381
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006382 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006383 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006384 ;;
6385 esac
6386 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006387 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006388 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006389 aix*)
6390 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006391 if test "$host_cpu" = ia64; then
6392 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006393 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006394 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006396 fi
6397 ;;
6398
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006399 mingw* | pw32* | os2*)
6400 # This hack is so that the source file can tell whether it is being
6401 # built for inclusion in a dll (and should export symbols for example).
6402 lt_prog_compiler_pic='-DDLL_EXPORT'
6403 ;;
6404
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006405 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006406 lt_prog_compiler_wl='-Wl,'
6407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6408 # not for PA HP-UX.
6409 case "$host_cpu" in
6410 hppa*64*|ia64*)
6411 # +Z the default
6412 ;;
6413 *)
6414 lt_prog_compiler_pic='+Z'
6415 ;;
6416 esac
6417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6418 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006419 ;;
6420
6421 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006422 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006423 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006424 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006425 ;;
6426
6427 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-Bstatic'
6430 ;;
6431
6432 linux*)
6433 case $CC in
6434 icc* | ecc*)
6435 lt_prog_compiler_wl='-Wl,'
6436 lt_prog_compiler_pic='-KPIC'
6437 lt_prog_compiler_static='-static'
6438 ;;
6439 ccc*)
6440 lt_prog_compiler_wl='-Wl,'
6441 # All Alpha code is PIC.
6442 lt_prog_compiler_static='-non_shared'
6443 ;;
6444 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006445 ;;
6446
6447 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006448 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006449 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006450 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006451 ;;
6452
6453 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006454 lt_prog_compiler_pic='-Kpic'
6455 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006456 ;;
6457
6458 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006462 ;;
6463
6464 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006465 lt_prog_compiler_wl='-Qoption ld '
6466 lt_prog_compiler_pic='-PIC'
6467 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006468 ;;
6469
6470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006471 lt_prog_compiler_wl='-Wl,'
6472 lt_prog_compiler_pic='-KPIC'
6473 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006474 ;;
6475
6476 sysv4*MP*)
6477 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006478 lt_prog_compiler_pic='-Kconform_pic'
6479 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006480 fi
6481 ;;
6482
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006483 uts4*)
6484 lt_prog_compiler_pic='-pic'
6485 lt_prog_compiler_static='-Bstatic'
6486 ;;
6487
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006488 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006489 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006490 ;;
6491 esac
6492 fi
6493
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6495echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006496
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006497#
6498# Check to make sure the PIC flag actually works.
6499#
6500if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006501
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006502echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6503echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6504if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006507 lt_prog_compiler_pic_works=no
6508 ac_outfile=conftest.$ac_objext
6509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6511 # Insert the option either (1) after the last *FLAGS variable, or
6512 # (2) before a word containing "conftest.", or (3) at the end.
6513 # Note that $ac_compile itself does not contain backslashes and begins
6514 # with a dollar sign (not a hyphen), so the echo should work correctly.
6515 # The option is referenced via a variable to avoid confusing sed.
6516 lt_compile=`echo "$ac_compile" | $SED \
6517 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6519 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006520 (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006521 (eval "$lt_compile" 2>conftest.err)
6522 ac_status=$?
6523 cat conftest.err >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006524 echo "$as_me:6524: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006525 if (exit $ac_status) && test -s "$ac_outfile"; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings
6528 if test ! -s conftest.err; then
6529 lt_prog_compiler_pic_works=yes
6530 fi
6531 fi
6532 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006533
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006534fi
6535echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6536echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006537
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006538if test x"$lt_prog_compiler_pic_works" = xyes; then
6539 case $lt_prog_compiler_pic in
6540 "" | " "*) ;;
6541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6542 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006543else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006544 lt_prog_compiler_pic=
6545 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006546fi
6547
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006548fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006549case "$host_os" in
6550 # For platforms which do not support PIC, -DPIC is meaningless:
6551 *djgpp*)
6552 lt_prog_compiler_pic=
6553 ;;
6554 *)
6555 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6556 ;;
6557esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006558
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006559echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6560echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006561if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006564 lt_cv_prog_compiler_c_o=no
6565 $rm -r conftest 2>/dev/null
6566 mkdir conftest
6567 cd conftest
6568 mkdir out
6569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006570
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006571 lt_compiler_flag="-o out/conftest2.$ac_objext"
6572 # Insert the option either (1) after the last *FLAGS variable, or
6573 # (2) before a word containing "conftest.", or (3) at the end.
6574 # Note that $ac_compile itself does not contain backslashes and begins
6575 # with a dollar sign (not a hyphen), so the echo should work correctly.
6576 lt_compile=`echo "$ac_compile" | $SED \
6577 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +00006580 (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006581 (eval "$lt_compile" 2>out/conftest.err)
6582 ac_status=$?
6583 cat out/conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +00006584 echo "$as_me:6584: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6586 then
6587 # The compiler can only warn and ignore the option if not recognized
6588 # So say no if there are warnings
6589 if test ! -s out/conftest.err; then
6590 lt_cv_prog_compiler_c_o=yes
6591 fi
6592 fi
6593 chmod u+w .
6594 $rm conftest*
6595 # SGI C++ compiler will create directory out/ii_files/ for
6596 # template instantiation
6597 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6598 $rm out/* && rmdir out
6599 cd ..
6600 rmdir conftest
6601 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006602
6603fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006604echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6605echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006606
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006607
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006608hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006609if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006610 # do not overwrite the value of need_locks provided by the user
6611 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6612echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6613 hard_links=yes
6614 $rm conftest*
6615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6616 touch conftest.a
6617 ln conftest.a conftest.b 2>&5 || hard_links=no
6618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6619 echo "$as_me:$LINENO: result: $hard_links" >&5
6620echo "${ECHO_T}$hard_links" >&6
6621 if test "$hard_links" = no; then
6622 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6623echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6624 need_locks=warn
6625 fi
6626else
6627 need_locks=no
6628fi
6629
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006630echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6631echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006632
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006633 runpath_var=
6634 allow_undefined_flag=
6635 enable_shared_with_static_runtimes=no
6636 archive_cmds=
6637 archive_expsym_cmds=
6638 old_archive_From_new_cmds=
6639 old_archive_from_expsyms_cmds=
6640 export_dynamic_flag_spec=
6641 whole_archive_flag_spec=
6642 thread_safe_flag_spec=
6643 hardcode_libdir_flag_spec=
6644 hardcode_libdir_flag_spec_ld=
6645 hardcode_libdir_separator=
6646 hardcode_direct=no
6647 hardcode_minus_L=no
6648 hardcode_shlibpath_var=unsupported
6649 link_all_deplibs=unknown
6650 hardcode_automatic=no
6651 module_cmds=
6652 module_expsym_cmds=
6653 always_export_symbols=no
6654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6655 # include_expsyms should be a list of space-separated symbols to be *always*
6656 # included in the symbol list
6657 include_expsyms=
6658 # exclude_expsyms can be an extended regexp of symbols to exclude
6659 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6660 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6661 # as well as any symbol that contains `d'.
6662 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6664 # platforms (ab)use it in PIC code, but their linkers get confused if
6665 # the symbol is explicitly referenced. Since portable code cannot
6666 # rely on this symbol name, it's probably fine to never include it in
6667 # preloaded symbol tables.
6668 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006669
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006670 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006671 cygwin* | mingw* | pw32*)
6672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6673 # When not using gcc, we currently assume that we are using
6674 # Microsoft Visual C++.
6675 if test "$GCC" != yes; then
6676 with_gnu_ld=no
6677 fi
6678 ;;
6679 openbsd*)
6680 with_gnu_ld=no
6681 ;;
6682 esac
6683
6684 ld_shlibs=yes
6685 if test "$with_gnu_ld" = yes; then
6686 # If archive_cmds runs LD, not CC, wlarc should be empty
6687 wlarc='${wl}'
6688
6689 # See if GNU ld supports shared libraries.
6690 case $host_os in
6691 aix3* | aix4* | aix5*)
6692 # On AIX/PPC, the GNU linker is very broken
6693 if test "$host_cpu" != ia64; then
6694 ld_shlibs=no
6695 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006696
6697*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6698*** to be unable to reliably create shared libraries on AIX.
6699*** Therefore, libtool is disabling shared libraries support. If you
6700*** really care for shared libraries, you may want to modify your PATH
6701*** so that a non-GNU linker is found, and then restart.
6702
6703EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006704 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006705 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006706
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006707 amigaos*)
6708 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)'
6709 hardcode_libdir_flag_spec='-L$libdir'
6710 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006711
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006712 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6713 # that the semantics of dynamic libraries on AmigaOS, at least up
6714 # to version 4, is to share data among multiple programs linked
6715 # with the same dynamic library. Since this doesn't match the
6716 # behavior of shared libraries on other platforms, we can't use
6717 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006718 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006719 ;;
6720
6721 beos*)
6722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6723 allow_undefined_flag=unsupported
6724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6725 # support --undefined. This deserves some investigation. FIXME
6726 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6727 else
6728 ld_shlibs=no
6729 fi
6730 ;;
6731
6732 cygwin* | mingw* | pw32*)
6733 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6734 # as there is no search path for DLLs.
6735 hardcode_libdir_flag_spec='-L$libdir'
6736 allow_undefined_flag=unsupported
6737 always_export_symbols=no
6738 enable_shared_with_static_runtimes=yes
6739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6740
6741 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6743 # If the export-symbols file already is a .def file (1st line
6744 # is EXPORTS), use it as is; otherwise, prepend...
6745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6746 cp $export_symbols $output_objdir/$soname.def;
6747 else
6748 echo EXPORTS > $output_objdir/$soname.def;
6749 cat $export_symbols >> $output_objdir/$soname.def;
6750 fi~
6751 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6752 else
6753 ld_shlibs=no
6754 fi
6755 ;;
6756
hp.com!davidm2de17682004-04-20 16:53:44 +00006757 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6760 wlarc=
6761 else
6762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6764 fi
6765 ;;
6766
6767 solaris* | sysv5*)
6768 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6769 ld_shlibs=no
6770 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006771
6772*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6773*** create shared libraries on Solaris systems. Therefore, libtool
6774*** is disabling shared libraries support. We urge you to upgrade GNU
6775*** binutils to release 2.9.1 or newer. Another option is to modify
6776*** your PATH or compiler configuration so that the native linker is
6777*** used, and then restart.
6778
6779EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006780 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006783 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006784 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006785 fi
6786 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006787
6788 sunos4*)
6789 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6790 wlarc=
6791 hardcode_direct=yes
6792 hardcode_shlibpath_var=no
6793 ;;
6794
6795 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +00006796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006797 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 archive_cmds="$tmp_archive_cmds"
6799 supports_anon_versioning=no
6800 case `$LD -v 2>/dev/null` in
6801 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6804 *\ 2.11.*) ;; # other 2.11 versions
6805 *) supports_anon_versioning=yes ;;
6806 esac
6807 if test $supports_anon_versioning = yes; then
6808 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6809cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6810$echo "local: *; };" >> $output_objdir/$libname.ver~
6811 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6812 else
6813 archive_expsym_cmds="$tmp_archive_cmds"
6814 fi
hp.com!davidm2de17682004-04-20 16:53:44 +00006815 link_all_deplibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006816 else
6817 ld_shlibs=no
6818 fi
6819 ;;
6820
6821 *)
6822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6825 else
6826 ld_shlibs=no
6827 fi
6828 ;;
6829 esac
6830
6831 if test "$ld_shlibs" = yes; then
6832 runpath_var=LD_RUN_PATH
6833 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6834 export_dynamic_flag_spec='${wl}--export-dynamic'
6835 # ancient GNU ld didn't support --whole-archive et. al.
6836 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6837 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6838 else
6839 whole_archive_flag_spec=
6840 fi
6841 fi
6842 else
6843 # PORTME fill in a description of your system's linker (not GNU ld)
6844 case $host_os in
6845 aix3*)
6846 allow_undefined_flag=unsupported
6847 always_export_symbols=yes
6848 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'
6849 # Note: this linker hardcodes the directories in LIBPATH if there
6850 # are no directories specified by -L.
6851 hardcode_minus_L=yes
6852 if test "$GCC" = yes && test -z "$link_static_flag"; then
6853 # Neither direct hardcoding nor static linking is supported with a
6854 # broken collect2.
6855 hardcode_direct=unsupported
6856 fi
6857 ;;
6858
6859 aix4* | aix5*)
6860 if test "$host_cpu" = ia64; then
6861 # On IA64, the linker does run time linking by default, so we don't
6862 # have to do anything special.
6863 aix_use_runtimelinking=no
6864 exp_sym_flag='-Bexport'
6865 no_entry_flag=""
6866 else
6867 # If we're using GNU nm, then we don't want the "-C" option.
6868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6869 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6870 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'
6871 else
6872 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'
6873 fi
6874 aix_use_runtimelinking=no
6875
6876 # Test if we are trying to use run time linking or normal
6877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6878 # need to do runtime linking.
6879 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6880 for ld_flag in $LDFLAGS; do
6881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6882 aix_use_runtimelinking=yes
6883 break
6884 fi
6885 done
6886 esac
6887
6888 exp_sym_flag='-bexport'
6889 no_entry_flag='-bnoentry'
6890 fi
6891
6892 # When large executables or shared objects are built, AIX ld can
6893 # have problems creating the table of contents. If linking a library
6894 # or program results in "error TOC overflow" add -mminimal-toc to
6895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6897
6898 archive_cmds=''
6899 hardcode_direct=yes
6900 hardcode_libdir_separator=':'
6901 link_all_deplibs=yes
6902
6903 if test "$GCC" = yes; then
6904 case $host_os in aix4.012|aix4.012.*)
6905 # We only want to do this on AIX 4.2 and lower, the check
6906 # below for broken collect2 doesn't work under 4.3+
6907 collect2name=`${CC} -print-prog-name=collect2`
6908 if test -f "$collect2name" && \
6909 strings "$collect2name" | grep resolve_lib_name >/dev/null
6910 then
6911 # We have reworked collect2
6912 hardcode_direct=yes
6913 else
6914 # We have old collect2
6915 hardcode_direct=unsupported
6916 # It fails to find uninstalled libraries when the uninstalled
6917 # path is not listed in the libpath. Setting hardcode_minus_L
6918 # to unsupported forces relinking
6919 hardcode_minus_L=yes
6920 hardcode_libdir_flag_spec='-L$libdir'
6921 hardcode_libdir_separator=
6922 fi
6923 esac
6924 shared_flag='-shared'
6925 else
6926 # not using gcc
6927 if test "$host_cpu" = ia64; then
6928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6929 # chokes on -Wl,-G. The following line is correct:
6930 shared_flag='-G'
6931 else
6932 if test "$aix_use_runtimelinking" = yes; then
6933 shared_flag='${wl}-G'
6934 else
6935 shared_flag='${wl}-bM:SRE'
6936 fi
6937 fi
6938 fi
6939
6940 # It seems that -bexpall does not export symbols beginning with
6941 # underscore (_), so it is better to generate a list of symbols to export.
6942 always_export_symbols=yes
6943 if test "$aix_use_runtimelinking" = yes; then
6944 # Warning - without using the other runtime loading flags (-brtl),
6945 # -berok will link without error, but may produce a broken library.
6946 allow_undefined_flag='-berok'
6947 # Determine the default libpath from the value encoded in an empty executable.
6948 cat >conftest.$ac_ext <<_ACEOF
6949/* confdefs.h. */
6950_ACEOF
6951cat confdefs.h >>conftest.$ac_ext
6952cat >>conftest.$ac_ext <<_ACEOF
6953/* end confdefs.h. */
6954
6955int
6956main ()
6957{
6958
6959 ;
6960 return 0;
6961}
6962_ACEOF
6963rm -f conftest.$ac_objext conftest$ac_exeext
6964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006965 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006966 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984
6985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6986}'`
6987# Check for a 64-bit object if we didn't find anything.
6988if 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; }
6989}'`; fi
6990else
6991 echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00006995rm -f conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006997if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6998
6999 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7000 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7001 else
7002 if test "$host_cpu" = ia64; then
7003 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7004 allow_undefined_flag="-z nodefs"
7005 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7006 else
7007 # Determine the default libpath from the value encoded in an empty executable.
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014
7015int
7016main ()
7017{
7018
7019 ;
7020 return 0;
7021}
7022_ACEOF
7023rm -f conftest.$ac_objext conftest$ac_exeext
7024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007025 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007026 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044
7045aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7046}'`
7047# Check for a 64-bit object if we didn't find anything.
7048if 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; }
7049}'`; fi
7050else
7051 echo "$as_me: failed program was:" >&5
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
7054fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007055rm -f conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7058
7059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7060 # Warning - without using the other run time loading flags,
7061 # -berok will link without error, but may produce a broken library.
7062 no_undefined_flag=' ${wl}-bernotok'
7063 allow_undefined_flag=' ${wl}-berok'
7064 # -bexpall does not export symbols beginning with underscore (_)
7065 always_export_symbols=yes
7066 # Exported symbols can be pulled into shared objects from archives
7067 whole_archive_flag_spec=' '
7068 archive_cmds_need_lc=yes
7069 # This is similar to how AIX traditionally builds it's shared libraries.
7070 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7071 fi
7072 fi
7073 ;;
7074
7075 amigaos*)
7076 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)'
7077 hardcode_libdir_flag_spec='-L$libdir'
7078 hardcode_minus_L=yes
7079 # see comment about different semantics on the GNU ld section
7080 ld_shlibs=no
7081 ;;
7082
7083 bsdi4*)
7084 export_dynamic_flag_spec=-rdynamic
7085 ;;
7086
7087 cygwin* | mingw* | pw32*)
7088 # When not using gcc, we currently assume that we are using
7089 # Microsoft Visual C++.
7090 # hardcode_libdir_flag_spec is actually meaningless, as there is
7091 # no search path for DLLs.
7092 hardcode_libdir_flag_spec=' '
7093 allow_undefined_flag=unsupported
7094 # Tell ltmain to make .lib files, not .a files.
7095 libext=lib
7096 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +00007097 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007098 # FIXME: Setting linknames here is a bad hack.
7099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7100 # The linker will automatically build a .lib file if we build a DLL.
7101 old_archive_From_new_cmds='true'
7102 # FIXME: Should let the user specify the lib program.
7103 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7104 fix_srcfile_path='`cygpath -w "$srcfile"`'
7105 enable_shared_with_static_runtimes=yes
7106 ;;
7107
7108 darwin* | rhapsody*)
7109 if test "$GXX" = yes ; then
7110 archive_cmds_need_lc=no
7111 case "$host_os" in
7112 rhapsody* | darwin1.[012])
7113 allow_undefined_flag='-undefined suppress'
7114 ;;
7115 *) # Darwin 1.3 on
7116 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7117 allow_undefined_flag='-flat_namespace -undefined suppress'
7118 else
7119 case ${MACOSX_DEPLOYMENT_TARGET} in
7120 10.[012])
7121 allow_undefined_flag='-flat_namespace -undefined suppress'
7122 ;;
7123 10.*)
7124 allow_undefined_flag='-undefined dynamic_lookup'
7125 ;;
7126 esac
7127 fi
7128 ;;
7129 esac
7130 lt_int_apple_cc_single_mod=no
7131 output_verbose_link_cmd='echo'
7132 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7133 lt_int_apple_cc_single_mod=yes
7134 fi
7135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7136 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7137 else
7138 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7139 fi
7140 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7143 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7144 else
7145 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7146 fi
7147 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}'
7148 hardcode_direct=no
7149 hardcode_automatic=yes
7150 hardcode_shlibpath_var=unsupported
7151 whole_archive_flag_spec='-all_load $convenience'
7152 link_all_deplibs=yes
7153 else
7154 ld_shlibs=no
7155 fi
7156 ;;
7157
7158 dgux*)
7159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7160 hardcode_libdir_flag_spec='-L$libdir'
7161 hardcode_shlibpath_var=no
7162 ;;
7163
7164 freebsd1*)
7165 ld_shlibs=no
7166 ;;
7167
7168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7169 # support. Future versions do this automatically, but an explicit c++rt0.o
7170 # does not break anything, and helps significantly (at the cost of a little
7171 # extra space).
7172 freebsd2.2*)
7173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7174 hardcode_libdir_flag_spec='-R$libdir'
7175 hardcode_direct=yes
7176 hardcode_shlibpath_var=no
7177 ;;
7178
7179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7180 freebsd2*)
7181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7182 hardcode_direct=yes
7183 hardcode_minus_L=yes
7184 hardcode_shlibpath_var=no
7185 ;;
7186
7187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7188 freebsd* | kfreebsd*-gnu)
7189 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7190 hardcode_libdir_flag_spec='-R$libdir'
7191 hardcode_direct=yes
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 hpux9*)
7196 if test "$GCC" = yes; then
7197 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'
7198 else
7199 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'
7200 fi
7201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7202 hardcode_libdir_separator=:
7203 hardcode_direct=yes
7204
7205 # hardcode_minus_L: Not really in the search PATH,
7206 # but as the default location of the library.
7207 hardcode_minus_L=yes
7208 export_dynamic_flag_spec='${wl}-E'
7209 ;;
7210
7211 hpux10* | hpux11*)
7212 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7213 case "$host_cpu" in
7214 hppa*64*|ia64*)
7215 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7216 ;;
7217 *)
7218 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7219 ;;
7220 esac
7221 else
7222 case "$host_cpu" in
7223 hppa*64*|ia64*)
7224 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7225 ;;
7226 *)
7227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7228 ;;
7229 esac
7230 fi
7231 if test "$with_gnu_ld" = no; then
7232 case "$host_cpu" in
7233 hppa*64*)
7234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7235 hardcode_libdir_flag_spec_ld='+b $libdir'
7236 hardcode_libdir_separator=:
7237 hardcode_direct=no
7238 hardcode_shlibpath_var=no
7239 ;;
7240 ia64*)
7241 hardcode_libdir_flag_spec='-L$libdir'
7242 hardcode_direct=no
7243 hardcode_shlibpath_var=no
7244
7245 # hardcode_minus_L: Not really in the search PATH,
7246 # but as the default location of the library.
7247 hardcode_minus_L=yes
7248 ;;
7249 *)
7250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7251 hardcode_libdir_separator=:
7252 hardcode_direct=yes
7253 export_dynamic_flag_spec='${wl}-E'
7254
7255 # hardcode_minus_L: Not really in the search PATH,
7256 # but as the default location of the library.
7257 hardcode_minus_L=yes
7258 ;;
7259 esac
7260 fi
7261 ;;
7262
7263 irix5* | irix6* | nonstopux*)
7264 if test "$GCC" = yes; then
7265 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'
7266 else
7267 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'
7268 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7269 fi
7270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7271 hardcode_libdir_separator=:
7272 link_all_deplibs=yes
7273 ;;
7274
hp.com!davidm2de17682004-04-20 16:53:44 +00007275 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7278 else
7279 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7280 fi
7281 hardcode_libdir_flag_spec='-R$libdir'
7282 hardcode_direct=yes
7283 hardcode_shlibpath_var=no
7284 ;;
7285
7286 newsos6)
7287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288 hardcode_direct=yes
7289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7290 hardcode_libdir_separator=:
7291 hardcode_shlibpath_var=no
7292 ;;
7293
7294 openbsd*)
7295 hardcode_direct=yes
7296 hardcode_shlibpath_var=no
7297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7300 export_dynamic_flag_spec='${wl}-E'
7301 else
7302 case $host_os in
7303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7305 hardcode_libdir_flag_spec='-R$libdir'
7306 ;;
7307 *)
7308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7310 ;;
7311 esac
7312 fi
7313 ;;
7314
7315 os2*)
7316 hardcode_libdir_flag_spec='-L$libdir'
7317 hardcode_minus_L=yes
7318 allow_undefined_flag=unsupported
7319 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'
7320 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7321 ;;
7322
7323 osf3*)
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7327 else
7328 allow_undefined_flag=' -expect_unresolved \*'
7329 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'
7330 fi
7331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7332 hardcode_libdir_separator=:
7333 ;;
7334
7335 osf4* | osf5*) # as osf3* with the addition of -msym flag
7336 if test "$GCC" = yes; then
7337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7338 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'
7339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7340 else
7341 allow_undefined_flag=' -expect_unresolved \*'
7342 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'
7343 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7344 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7345
7346 # Both c and cxx compiler support -rpath directly
7347 hardcode_libdir_flag_spec='-rpath $libdir'
7348 fi
7349 hardcode_libdir_separator=:
7350 ;;
7351
7352 sco3.2v5*)
7353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7354 hardcode_shlibpath_var=no
7355 export_dynamic_flag_spec='${wl}-Bexport'
7356 runpath_var=LD_RUN_PATH
7357 hardcode_runpath_var=yes
7358 ;;
7359
7360 solaris*)
7361 no_undefined_flag=' -z text'
7362 if test "$GCC" = yes; then
7363 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7364 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7366 else
7367 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7370 fi
7371 hardcode_libdir_flag_spec='-R$libdir'
7372 hardcode_shlibpath_var=no
7373 case $host_os in
7374 solaris2.[0-5] | solaris2.[0-5].*) ;;
7375 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7376 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7377 esac
7378 link_all_deplibs=yes
7379 ;;
7380
7381 sunos4*)
7382 if test "x$host_vendor" = xsequent; then
7383 # Use $CC to link under sequent, because it throws in some extra .o
7384 # files that make .init and .fini sections work.
7385 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7386 else
7387 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7388 fi
7389 hardcode_libdir_flag_spec='-L$libdir'
7390 hardcode_direct=yes
7391 hardcode_minus_L=yes
7392 hardcode_shlibpath_var=no
7393 ;;
7394
7395 sysv4)
7396 case $host_vendor in
7397 sni)
7398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_direct=yes # is this really true???
7400 ;;
7401 siemens)
7402 ## LD is ld it makes a PLAMLIB
7403 ## CC just makes a GrossModule.
7404 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7405 reload_cmds='$CC -r -o $output$reload_objs'
7406 hardcode_direct=no
7407 ;;
7408 motorola)
7409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7411 ;;
7412 esac
7413 runpath_var='LD_RUN_PATH'
7414 hardcode_shlibpath_var=no
7415 ;;
7416
7417 sysv4.3*)
7418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419 hardcode_shlibpath_var=no
7420 export_dynamic_flag_spec='-Bexport'
7421 ;;
7422
7423 sysv4*MP*)
7424 if test -d /usr/nec; then
7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426 hardcode_shlibpath_var=no
7427 runpath_var=LD_RUN_PATH
7428 hardcode_runpath_var=yes
7429 ld_shlibs=yes
7430 fi
7431 ;;
7432
7433 sysv4.2uw2*)
7434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7435 hardcode_direct=yes
7436 hardcode_minus_L=no
7437 hardcode_shlibpath_var=no
7438 hardcode_runpath_var=yes
7439 runpath_var=LD_RUN_PATH
7440 ;;
7441
7442 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7443 no_undefined_flag='${wl}-z ${wl}text'
7444 if test "$GCC" = yes; then
7445 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446 else
7447 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7448 fi
7449 runpath_var='LD_RUN_PATH'
7450 hardcode_shlibpath_var=no
7451 ;;
7452
7453 sysv5*)
7454 no_undefined_flag=' -z text'
7455 # $CC -shared without GNU ld will not create a library from C++
7456 # object files and a static libstdc++, better avoid it by now
7457 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7458 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7459 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7460 hardcode_libdir_flag_spec=
7461 hardcode_shlibpath_var=no
7462 runpath_var='LD_RUN_PATH'
7463 ;;
7464
7465 uts4*)
7466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467 hardcode_libdir_flag_spec='-L$libdir'
7468 hardcode_shlibpath_var=no
7469 ;;
7470
7471 *)
7472 ld_shlibs=no
7473 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007474 esac
7475 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007476
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007477echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7478echo "${ECHO_T}$ld_shlibs" >&6
7479test "$ld_shlibs" = no && can_build_shared=no
7480
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007481variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7482if test "$GCC" = yes; then
7483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7484fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007485
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007486#
7487# Do we need to explicitly link libc?
7488#
7489case "x$archive_cmds_need_lc" in
7490x|xyes)
7491 # Assume -lc should be added
7492 archive_cmds_need_lc=yes
7493
7494 if test "$enable_shared" = yes && test "$GCC" = yes; then
7495 case $archive_cmds in
7496 *'~'*)
7497 # FIXME: we may have to deal with multi-command sequences.
7498 ;;
7499 '$CC '*)
7500 # Test whether the compiler implicitly links with -lc since on some
7501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7502 # to ld, don't add -lc before -lgcc.
7503 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7504echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7505 $rm conftest*
7506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } 2>conftest.err; then
7513 soname=conftest
7514 lib=conftest
7515 libobjs=conftest.$ac_objext
7516 deplibs=
7517 wl=$lt_prog_compiler_wl
7518 compiler_flags=-v
7519 linker_flags=-v
7520 verstring=
7521 output_objdir=.
7522 libname=conftest
7523 lt_save_allow_undefined_flag=$allow_undefined_flag
7524 allow_undefined_flag=
7525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7526 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }
7530 then
7531 archive_cmds_need_lc=no
7532 else
7533 archive_cmds_need_lc=yes
7534 fi
7535 allow_undefined_flag=$lt_save_allow_undefined_flag
7536 else
7537 cat conftest.err 1>&5
7538 fi
7539 $rm conftest*
7540 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7541echo "${ECHO_T}$archive_cmds_need_lc" >&6
7542 ;;
7543 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007544 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007545 ;;
7546esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007547
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007548echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7549echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7550library_names_spec=
7551libname_spec='lib$name'
7552soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +00007553shrext_cmds=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007554postinstall_cmds=
7555postuninstall_cmds=
7556finish_cmds=
7557finish_eval=
7558shlibpath_var=
7559shlibpath_overrides_runpath=unknown
7560version_type=none
7561dynamic_linker="$host_os ld.so"
7562sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007563if test "$GCC" = yes; then
7564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7565 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7566 # if the path contains ";" then we assume it to be the separator
7567 # otherwise default to the standard path separator (i.e. ":") - it is
7568 # assumed that no part of a normal pathname contains ";" but that should
7569 # okay in the real world where ";" in dirpaths is itself problematic.
7570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7571 else
7572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7573 fi
7574else
7575 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7576fi
7577need_lib_prefix=unknown
7578hardcode_into_libs=no
7579
7580# when you set need_version to no, make sure it does not cause -set_version
7581# flags to be left without arguments
7582need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007583
7584case $host_os in
7585aix3*)
7586 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007588 shlibpath_var=LIBPATH
7589
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007590 # AIX 3 has no versioning support, so we append a major version to the name.
7591 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007592 ;;
7593
7594aix4* | aix5*)
7595 version_type=linux
7596 need_lib_prefix=no
7597 need_version=no
7598 hardcode_into_libs=yes
7599 if test "$host_cpu" = ia64; then
7600 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007601 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007602 shlibpath_var=LD_LIBRARY_PATH
7603 else
7604 # With GCC up to 2.95.x, collect2 would create an import file
7605 # for dependence libraries. The import file would start with
7606 # the line `#! .'. This would cause the generated library to
7607 # depend on `.', always an invalid library. This was fixed in
7608 # development snapshots of GCC prior to 3.0.
7609 case $host_os in
7610 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7612 echo ' yes '
7613 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7614 :
7615 else
7616 can_build_shared=no
7617 fi
7618 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007619 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007620 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7621 # soname into executable. Probably we can add versioning support to
7622 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007623 if test "$aix_use_runtimelinking" = yes; then
7624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7625 # instead of lib<name>.a to let people know that these are not
7626 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007628 else
7629 # We preserve .a as extension for shared libraries through AIX4.2
7630 # and later when we are not doing run time linking.
7631 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007632 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007633 fi
7634 shlibpath_var=LIBPATH
7635 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007636 ;;
7637
7638amigaos*)
7639 library_names_spec='$libname.ixlibrary $libname.a'
7640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007641 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'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007642 ;;
7643
7644beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007645 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007646 dynamic_linker="$host_os ld.so"
7647 shlibpath_var=LIBRARY_PATH
7648 ;;
7649
7650bsdi4*)
7651 version_type=linux
7652 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7656 shlibpath_var=LD_LIBRARY_PATH
7657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007659 # the default ld.so.conf also contains /usr/contrib/lib and
7660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7661 # libtool to hard-code these into programs
7662 ;;
7663
7664cygwin* | mingw* | pw32*)
7665 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +00007666 shrext_cmds=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007667 need_version=no
7668 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007669
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007670 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007671 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007672 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7674 postinstall_cmds='base_file=`basename \${file}`~
7675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007676 dldir=$destdir/`dirname \$dlpath`~
7677 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007678 $install_prog $dir/$dlname \$dldir/$dlname'
7679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007680 dlpath=$dir/\$dldll~
7681 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007682 shlibpath_overrides_runpath=yes
7683
7684 case $host_os in
7685 cygwin*)
7686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7688 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7689 ;;
7690 mingw*)
7691 # MinGW DLLs use traditional 'lib' prefix
7692 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7693 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7694 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7695 # It is most probably a Windows format PATH printed by
7696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7697 # path with ; separators, and with drive letters. We can handle the
7698 # drive letters (cygwin fileutils understands them), so leave them,
7699 # especially as we might pass files found there to a mingw objdump,
7700 # which wouldn't understand a cygwinified path. Ahh.
7701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7702 else
7703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7704 fi
7705 ;;
7706 pw32*)
7707 # pw32 DLLs use 'pw' prefix rather than 'lib'
7708 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7709 ;;
7710 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007711 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007712
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007713 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007714 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007715 ;;
7716 esac
7717 dynamic_linker='Win32 ld.exe'
7718 # FIXME: first we should search . and the directory the executable is in
7719 shlibpath_var=PATH
7720 ;;
7721
7722darwin* | rhapsody*)
7723 dynamic_linker="$host_os dyld"
7724 version_type=darwin
7725 need_lib_prefix=no
7726 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007727 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7728 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007729 shlibpath_overrides_runpath=yes
7730 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +00007731 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007732 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7733 if test "$GCC" = yes; then
7734 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"`
7735 else
7736 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7737 fi
7738 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7739 ;;
7740
7741dgux*)
7742 version_type=linux
7743 need_lib_prefix=no
7744 need_version=no
7745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7746 soname_spec='${libname}${release}${shared_ext}$major'
7747 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007748 ;;
7749
7750freebsd1*)
7751 dynamic_linker=no
7752 ;;
7753
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007754kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007755 version_type=linux
7756 need_lib_prefix=no
7757 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7759 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007760 shlibpath_var=LD_LIBRARY_PATH
7761 shlibpath_overrides_runpath=no
7762 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007763 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007764 ;;
7765
7766freebsd*)
7767 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7768 version_type=freebsd-$objformat
7769 case $version_type in
7770 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007772 need_version=no
7773 need_lib_prefix=no
7774 ;;
7775 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007777 need_version=yes
7778 ;;
7779 esac
7780 shlibpath_var=LD_LIBRARY_PATH
7781 case $host_os in
7782 freebsd2*)
7783 shlibpath_overrides_runpath=yes
7784 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007785 freebsd3.01* | freebsdelf3.01*)
7786 shlibpath_overrides_runpath=yes
7787 hardcode_into_libs=yes
7788 ;;
7789 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007790 shlibpath_overrides_runpath=no
7791 hardcode_into_libs=yes
7792 ;;
7793 esac
7794 ;;
7795
7796gnu*)
7797 version_type=linux
7798 need_lib_prefix=no
7799 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7801 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007802 shlibpath_var=LD_LIBRARY_PATH
7803 hardcode_into_libs=yes
7804 ;;
7805
7806hpux9* | hpux10* | hpux11*)
7807 # Give a soname corresponding to the major version so that dld.sl refuses to
7808 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007809 version_type=sunos
7810 need_lib_prefix=no
7811 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007812 case "$host_cpu" in
7813 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +00007814 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007815 hardcode_into_libs=yes
7816 dynamic_linker="$host_os dld.so"
7817 shlibpath_var=LD_LIBRARY_PATH
7818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820 soname_spec='${libname}${release}${shared_ext}$major'
7821 if test "X$HPUX_IA64_MODE" = X32; then
7822 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7823 else
7824 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7825 fi
7826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7827 ;;
7828 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +00007829 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007830 hardcode_into_libs=yes
7831 dynamic_linker="$host_os dld.sl"
7832 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7836 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7838 ;;
7839 *)
hp.com!davidm2de17682004-04-20 16:53:44 +00007840 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007841 dynamic_linker="$host_os dld.sl"
7842 shlibpath_var=SHLIB_PATH
7843 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7845 soname_spec='${libname}${release}${shared_ext}$major'
7846 ;;
7847 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007848 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7849 postinstall_cmds='chmod 555 $lib'
7850 ;;
7851
7852irix5* | irix6* | nonstopux*)
7853 case $host_os in
7854 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007855 *)
7856 if test "$lt_cv_prog_gnu_ld" = yes; then
7857 version_type=linux
7858 else
7859 version_type=irix
7860 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007861 esac
7862 need_lib_prefix=no
7863 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007864 soname_spec='${libname}${release}${shared_ext}$major'
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007866 case $host_os in
7867 irix5* | nonstopux*)
7868 libsuff= shlibsuff=
7869 ;;
7870 *)
7871 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7873 libsuff= shlibsuff= libmagic=32-bit;;
7874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7875 libsuff=32 shlibsuff=N32 libmagic=N32;;
7876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007878 *) libsuff= shlibsuff= libmagic=never-match;;
7879 esac
7880 ;;
7881 esac
7882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7883 shlibpath_overrides_runpath=no
7884 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7885 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007886 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007887 ;;
7888
7889# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007890linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007891 dynamic_linker=no
7892 ;;
7893
7894# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007895linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007896 version_type=linux
7897 need_lib_prefix=no
7898 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7902 shlibpath_var=LD_LIBRARY_PATH
7903 shlibpath_overrides_runpath=no
7904 # This implies no fast_install, which is unacceptable.
7905 # Some rework will be needed to allow for fast_install
7906 # before this can be enabled.
7907 hardcode_into_libs=yes
7908
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007909 # Append ld.so.conf contents to the search path
7910 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +00007911 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7912 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00007913 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007914
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007915 # We used to test for /lib/ld.so.1 and disable shared libraries on
7916 # powerpc, because MkLinux only supported shared libraries with the
7917 # GNU dynamic linker. Since this was broken with cross compilers,
7918 # most powerpc-linux boxes support dynamic linking these days and
7919 # people can always --disable-shared, the test was removed, and we
7920 # assume the GNU/Linux dynamic linker is in use.
7921 dynamic_linker='GNU/Linux ld.so'
7922 ;;
7923
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007924knetbsd*-gnu)
7925 version_type=linux
7926 need_lib_prefix=no
7927 need_version=no
7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=no
7932 hardcode_into_libs=yes
7933 dynamic_linker='GNU ld.so'
7934 ;;
7935
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007936netbsd*)
7937 version_type=sunos
7938 need_lib_prefix=no
7939 need_version=no
7940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7943 dynamic_linker='NetBSD (a.out) ld.so'
7944 else
hp.com!davidm2de17682004-04-20 16:53:44 +00007945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007946 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007947 dynamic_linker='NetBSD ld.elf_so'
7948 fi
7949 shlibpath_var=LD_LIBRARY_PATH
7950 shlibpath_overrides_runpath=yes
7951 hardcode_into_libs=yes
7952 ;;
7953
7954newsos6)
7955 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=yes
7959 ;;
7960
7961nto-qnx*)
7962 version_type=linux
7963 need_lib_prefix=no
7964 need_version=no
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007967 shlibpath_var=LD_LIBRARY_PATH
7968 shlibpath_overrides_runpath=yes
7969 ;;
7970
7971openbsd*)
7972 version_type=sunos
7973 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007974 need_version=yes
7975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7977 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007978 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007979 case $host_os in
7980 openbsd2.[89] | openbsd2.[89].*)
7981 shlibpath_overrides_runpath=no
7982 ;;
7983 *)
7984 shlibpath_overrides_runpath=yes
7985 ;;
7986 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007987 else
7988 shlibpath_overrides_runpath=yes
7989 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007990 ;;
7991
7992os2*)
7993 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +00007994 shrext_cmds=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007995 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007996 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007997 dynamic_linker='OS/2 ld.exe'
7998 shlibpath_var=LIBPATH
7999 ;;
8000
8001osf3* | osf4* | osf5*)
8002 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008003 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008004 need_version=no
8005 soname_spec='${libname}${release}${shared_ext}$major'
8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008007 shlibpath_var=LD_LIBRARY_PATH
8008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008010 ;;
8011
8012sco3.2v5*)
8013 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008014 soname_spec='${libname}${release}${shared_ext}$major'
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008016 shlibpath_var=LD_LIBRARY_PATH
8017 ;;
8018
8019solaris*)
8020 version_type=linux
8021 need_lib_prefix=no
8022 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008025 shlibpath_var=LD_LIBRARY_PATH
8026 shlibpath_overrides_runpath=yes
8027 hardcode_into_libs=yes
8028 # ldd complains unless libraries are executable
8029 postinstall_cmds='chmod +x $lib'
8030 ;;
8031
8032sunos4*)
8033 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8036 shlibpath_var=LD_LIBRARY_PATH
8037 shlibpath_overrides_runpath=yes
8038 if test "$with_gnu_ld" = yes; then
8039 need_lib_prefix=no
8040 fi
8041 need_version=yes
8042 ;;
8043
8044sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8045 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008048 shlibpath_var=LD_LIBRARY_PATH
8049 case $host_vendor in
8050 sni)
8051 shlibpath_overrides_runpath=no
8052 need_lib_prefix=no
8053 export_dynamic_flag_spec='${wl}-Blargedynsym'
8054 runpath_var=LD_RUN_PATH
8055 ;;
8056 siemens)
8057 need_lib_prefix=no
8058 ;;
8059 motorola)
8060 need_lib_prefix=no
8061 need_version=no
8062 shlibpath_overrides_runpath=no
8063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8064 ;;
8065 esac
8066 ;;
8067
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008068sysv4*MP*)
8069 if test -d /usr/nec ;then
8070 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8072 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008073 shlibpath_var=LD_LIBRARY_PATH
8074 fi
8075 ;;
8076
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008077uts4*)
8078 version_type=linux
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080 soname_spec='${libname}${release}${shared_ext}$major'
8081 shlibpath_var=LD_LIBRARY_PATH
8082 ;;
8083
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008084*)
8085 dynamic_linker=no
8086 ;;
8087esac
8088echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8089echo "${ECHO_T}$dynamic_linker" >&6
8090test "$dynamic_linker" = no && can_build_shared=no
8091
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008092echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8093echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8094hardcode_action=
8095if test -n "$hardcode_libdir_flag_spec" || \
8096 test -n "$runpath_var " || \
8097 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008098
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008099 # We can hardcode non-existant directories.
8100 if test "$hardcode_direct" != no &&
8101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8102 # have to relink, otherwise we might link with an installed library
8103 # when we should be linking with a yet-to-be-installed one
8104 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8105 test "$hardcode_minus_L" != no; then
8106 # Linking always hardcodes the temporary library directory.
8107 hardcode_action=relink
8108 else
8109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8110 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008111 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008112else
8113 # We cannot hardcode anything, or else we can only hardcode existing
8114 # directories.
8115 hardcode_action=unsupported
8116fi
8117echo "$as_me:$LINENO: result: $hardcode_action" >&5
8118echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008119
8120if test "$hardcode_action" = relink; then
8121 # Fast installation is not supported
8122 enable_fast_install=no
8123elif test "$shlibpath_overrides_runpath" = yes ||
8124 test "$enable_shared" = no; then
8125 # Fast installation is not necessary
8126 enable_fast_install=needless
8127fi
8128
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008129striplib=
8130old_striplib=
8131echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8132echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8133if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8136 echo "$as_me:$LINENO: result: yes" >&5
8137echo "${ECHO_T}yes" >&6
8138else
8139# FIXME - insert some real tests, host_os isn't really good enough
8140 case $host_os in
8141 darwin*)
8142 if test -n "$STRIP" ; then
8143 striplib="$STRIP -x"
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
8146 else
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149fi
8150 ;;
8151 *)
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 ;;
8155 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008156fi
8157
8158if test "x$enable_dlopen" != xyes; then
8159 enable_dlopen=unknown
8160 enable_dlopen_self=unknown
8161 enable_dlopen_self_static=unknown
8162else
8163 lt_cv_dlopen=no
8164 lt_cv_dlopen_libs=
8165
8166 case $host_os in
8167 beos*)
8168 lt_cv_dlopen="load_add_on"
8169 lt_cv_dlopen_libs=
8170 lt_cv_dlopen_self=yes
8171 ;;
8172
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008173 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008174 lt_cv_dlopen="LoadLibrary"
8175 lt_cv_dlopen_libs=
8176 ;;
8177
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008178 cygwin*)
8179 lt_cv_dlopen="dlopen"
8180 lt_cv_dlopen_libs=
8181 ;;
8182
8183 darwin*)
8184 # if libdl is installed we need to link against it
8185 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8186echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8187if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 ac_check_lib_save_LIBS=$LIBS
8191LIBS="-ldl $LIBS"
8192cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h. */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h. */
8198
8199/* Override any gcc2 internal prototype to avoid an error. */
8200#ifdef __cplusplus
8201extern "C"
8202#endif
8203/* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8205char dlopen ();
8206int
8207main ()
8208{
8209dlopen ();
8210 ;
8211 return 0;
8212}
8213_ACEOF
8214rm -f conftest.$ac_objext conftest$ac_exeext
8215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008216 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008217 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; }; then
8235 ac_cv_lib_dl_dlopen=yes
8236else
8237 echo "$as_me: failed program was:" >&5
8238sed 's/^/| /' conftest.$ac_ext >&5
8239
8240ac_cv_lib_dl_dlopen=no
8241fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008242rm -f conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008244LIBS=$ac_check_lib_save_LIBS
8245fi
8246echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8247echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8248if test $ac_cv_lib_dl_dlopen = yes; then
8249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8250else
8251
8252 lt_cv_dlopen="dyld"
8253 lt_cv_dlopen_libs=
8254 lt_cv_dlopen_self=yes
8255
8256fi
8257
8258 ;;
8259
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008260 *)
8261 echo "$as_me:$LINENO: checking for shl_load" >&5
8262echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8263if test "${ac_cv_func_shl_load+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008272/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274#define shl_load innocuous_shl_load
8275
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008276/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008277 which can conflict with char shl_load (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008280
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008281#ifdef __STDC__
8282# include <limits.h>
8283#else
8284# include <assert.h>
8285#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008286
8287#undef shl_load
8288
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008289/* Override any gcc2 internal prototype to avoid an error. */
8290#ifdef __cplusplus
8291extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008292{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008293#endif
8294/* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008297/* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300#if defined (__stub_shl_load) || defined (__stub___shl_load)
8301choke me
8302#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008303char (*f) () = shl_load;
8304#endif
8305#ifdef __cplusplus
8306}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008307#endif
8308
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008309int
8310main ()
8311{
8312return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
8318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008319 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008320 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_func_shl_load=yes
8339else
8340 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008341sed 's/^/| /' conftest.$ac_ext >&5
8342
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008343ac_cv_func_shl_load=no
8344fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008345rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008347fi
8348echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8349echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8350if test $ac_cv_func_shl_load = yes; then
8351 lt_cv_dlopen="shl_load"
8352else
8353 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8354echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8355if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 ac_check_lib_save_LIBS=$LIBS
8359LIBS="-ldld $LIBS"
8360cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
8365/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008366
8367/* Override any gcc2 internal prototype to avoid an error. */
8368#ifdef __cplusplus
8369extern "C"
8370#endif
8371/* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373char shl_load ();
8374int
8375main ()
8376{
8377shl_load ();
8378 ;
8379 return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext conftest$ac_exeext
8383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008384 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008385 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_lib_dld_shl_load=yes
8404else
8405 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008406sed 's/^/| /' conftest.$ac_ext >&5
8407
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008408ac_cv_lib_dld_shl_load=no
8409fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008410rm -f conftest.err conftest.$ac_objext \
8411 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008412LIBS=$ac_check_lib_save_LIBS
8413fi
8414echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8415echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8416if test $ac_cv_lib_dld_shl_load = yes; then
8417 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8418else
8419 echo "$as_me:$LINENO: checking for dlopen" >&5
8420echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8421if test "${ac_cv_func_dlopen+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423else
8424 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008430/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8432#define dlopen innocuous_dlopen
8433
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008434/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008435 which can conflict with char dlopen (); below.
8436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8437 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008438
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008439#ifdef __STDC__
8440# include <limits.h>
8441#else
8442# include <assert.h>
8443#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008444
8445#undef dlopen
8446
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008447/* Override any gcc2 internal prototype to avoid an error. */
8448#ifdef __cplusplus
8449extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008450{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008451#endif
8452/* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8454char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008455/* The GNU C library defines this for functions which it implements
8456 to always fail with ENOSYS. Some functions are actually named
8457 something starting with __ and the normal name is an alias. */
8458#if defined (__stub_dlopen) || defined (__stub___dlopen)
8459choke me
8460#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008461char (*f) () = dlopen;
8462#endif
8463#ifdef __cplusplus
8464}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008465#endif
8466
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008467int
8468main ()
8469{
8470return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008471 ;
8472 return 0;
8473}
8474_ACEOF
8475rm -f conftest.$ac_objext conftest$ac_exeext
8476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008477 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008478 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008479 grep -v '^ *+' conftest.er1 >conftest.err
8480 rm -f conftest.er1
8481 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; }; then
8496 ac_cv_func_dlopen=yes
8497else
8498 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008499sed 's/^/| /' conftest.$ac_ext >&5
8500
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008501ac_cv_func_dlopen=no
8502fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008503rm -f conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008505fi
8506echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8507echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8508if test $ac_cv_func_dlopen = yes; then
8509 lt_cv_dlopen="dlopen"
8510else
8511 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8512echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8513if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515else
8516 ac_check_lib_save_LIBS=$LIBS
8517LIBS="-ldl $LIBS"
8518cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008519/* confdefs.h. */
8520_ACEOF
8521cat confdefs.h >>conftest.$ac_ext
8522cat >>conftest.$ac_ext <<_ACEOF
8523/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008524
8525/* Override any gcc2 internal prototype to avoid an error. */
8526#ifdef __cplusplus
8527extern "C"
8528#endif
8529/* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8531char dlopen ();
8532int
8533main ()
8534{
8535dlopen ();
8536 ;
8537 return 0;
8538}
8539_ACEOF
8540rm -f conftest.$ac_objext conftest$ac_exeext
8541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008542 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008543 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 (eval $ac_try) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; } &&
8555 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_lib_dl_dlopen=yes
8562else
8563 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008564sed 's/^/| /' conftest.$ac_ext >&5
8565
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008566ac_cv_lib_dl_dlopen=no
8567fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008568rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008570LIBS=$ac_check_lib_save_LIBS
8571fi
8572echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8573echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8574if test $ac_cv_lib_dl_dlopen = yes; then
8575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8576else
8577 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8578echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8579if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581else
8582 ac_check_lib_save_LIBS=$LIBS
8583LIBS="-lsvld $LIBS"
8584cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008585/* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008590
8591/* Override any gcc2 internal prototype to avoid an error. */
8592#ifdef __cplusplus
8593extern "C"
8594#endif
8595/* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8597char dlopen ();
8598int
8599main ()
8600{
8601dlopen ();
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext conftest$ac_exeext
8607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008608 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008609 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008610 grep -v '^ *+' conftest.er1 >conftest.err
8611 rm -f conftest.er1
8612 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 (eval $ac_try) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; } &&
8621 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_cv_lib_svld_dlopen=yes
8628else
8629 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008630sed 's/^/| /' conftest.$ac_ext >&5
8631
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008632ac_cv_lib_svld_dlopen=no
8633fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008634rm -f conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008636LIBS=$ac_check_lib_save_LIBS
8637fi
8638echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8639echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8640if test $ac_cv_lib_svld_dlopen = yes; then
8641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8642else
8643 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8644echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8645if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648 ac_check_lib_save_LIBS=$LIBS
8649LIBS="-ldld $LIBS"
8650cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008656
8657/* Override any gcc2 internal prototype to avoid an error. */
8658#ifdef __cplusplus
8659extern "C"
8660#endif
8661/* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8663char dld_link ();
8664int
8665main ()
8666{
8667dld_link ();
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext conftest$ac_exeext
8673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008674 (eval $ac_link) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008675 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_cv_lib_dld_dld_link=yes
8694else
8695 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008696sed 's/^/| /' conftest.$ac_ext >&5
8697
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008698ac_cv_lib_dld_dld_link=no
8699fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00008700rm -f conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008702LIBS=$ac_check_lib_save_LIBS
8703fi
8704echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8705echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8706if test $ac_cv_lib_dld_dld_link = yes; then
8707 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8708fi
8709
8710
8711fi
8712
8713
8714fi
8715
8716
8717fi
8718
8719
8720fi
8721
8722
8723fi
8724
8725 ;;
8726 esac
8727
8728 if test "x$lt_cv_dlopen" != xno; then
8729 enable_dlopen=yes
8730 else
8731 enable_dlopen=no
8732 fi
8733
8734 case $lt_cv_dlopen in
8735 dlopen)
8736 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008737 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008738
8739 save_LDFLAGS="$LDFLAGS"
8740 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8741
8742 save_LIBS="$LIBS"
8743 LIBS="$lt_cv_dlopen_libs $LIBS"
8744
8745 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8746echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8747if test "${lt_cv_dlopen_self+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 if test "$cross_compiling" = yes; then :
8751 lt_cv_dlopen_self=cross
8752else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008754 lt_status=$lt_dlunknown
8755 cat > conftest.$ac_ext <<EOF
hp.com!davidm2de17682004-04-20 16:53:44 +00008756#line 8756 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008757#include "confdefs.h"
8758
8759#if HAVE_DLFCN_H
8760#include <dlfcn.h>
8761#endif
8762
8763#include <stdio.h>
8764
8765#ifdef RTLD_GLOBAL
8766# define LT_DLGLOBAL RTLD_GLOBAL
8767#else
8768# ifdef DL_GLOBAL
8769# define LT_DLGLOBAL DL_GLOBAL
8770# else
8771# define LT_DLGLOBAL 0
8772# endif
8773#endif
8774
8775/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8776 find out it does not work in some platform. */
8777#ifndef LT_DLLAZY_OR_NOW
8778# ifdef RTLD_LAZY
8779# define LT_DLLAZY_OR_NOW RTLD_LAZY
8780# else
8781# ifdef DL_LAZY
8782# define LT_DLLAZY_OR_NOW DL_LAZY
8783# else
8784# ifdef RTLD_NOW
8785# define LT_DLLAZY_OR_NOW RTLD_NOW
8786# else
8787# ifdef DL_NOW
8788# define LT_DLLAZY_OR_NOW DL_NOW
8789# else
8790# define LT_DLLAZY_OR_NOW 0
8791# endif
8792# endif
8793# endif
8794# endif
8795#endif
8796
8797#ifdef __cplusplus
8798extern "C" void exit (int);
8799#endif
8800
8801void fnord() { int i=42;}
8802int main ()
8803{
8804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8805 int status = $lt_dlunknown;
8806
8807 if (self)
8808 {
8809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8811 /* dlclose (self); */
8812 }
8813
8814 exit (status);
8815}
8816EOF
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8822 (./conftest; exit; ) 2>/dev/null
8823 lt_status=$?
8824 case x$lt_status in
8825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8827 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8828 esac
8829 else :
8830 # compilation failed
8831 lt_cv_dlopen_self=no
8832 fi
8833fi
8834rm -fr conftest*
8835
8836
8837fi
8838echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8839echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8840
8841 if test "x$lt_cv_dlopen_self" = xyes; then
8842 LDFLAGS="$LDFLAGS $link_static_flag"
8843 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8844echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8845if test "${lt_cv_dlopen_self_static+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 if test "$cross_compiling" = yes; then :
8849 lt_cv_dlopen_self_static=cross
8850else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008852 lt_status=$lt_dlunknown
8853 cat > conftest.$ac_ext <<EOF
hp.com!davidm2de17682004-04-20 16:53:44 +00008854#line 8854 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008855#include "confdefs.h"
8856
8857#if HAVE_DLFCN_H
8858#include <dlfcn.h>
8859#endif
8860
8861#include <stdio.h>
8862
8863#ifdef RTLD_GLOBAL
8864# define LT_DLGLOBAL RTLD_GLOBAL
8865#else
8866# ifdef DL_GLOBAL
8867# define LT_DLGLOBAL DL_GLOBAL
8868# else
8869# define LT_DLGLOBAL 0
8870# endif
8871#endif
8872
8873/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8874 find out it does not work in some platform. */
8875#ifndef LT_DLLAZY_OR_NOW
8876# ifdef RTLD_LAZY
8877# define LT_DLLAZY_OR_NOW RTLD_LAZY
8878# else
8879# ifdef DL_LAZY
8880# define LT_DLLAZY_OR_NOW DL_LAZY
8881# else
8882# ifdef RTLD_NOW
8883# define LT_DLLAZY_OR_NOW RTLD_NOW
8884# else
8885# ifdef DL_NOW
8886# define LT_DLLAZY_OR_NOW DL_NOW
8887# else
8888# define LT_DLLAZY_OR_NOW 0
8889# endif
8890# endif
8891# endif
8892# endif
8893#endif
8894
8895#ifdef __cplusplus
8896extern "C" void exit (int);
8897#endif
8898
8899void fnord() { int i=42;}
8900int main ()
8901{
8902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8903 int status = $lt_dlunknown;
8904
8905 if (self)
8906 {
8907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8909 /* dlclose (self); */
8910 }
8911
8912 exit (status);
8913}
8914EOF
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8920 (./conftest; exit; ) 2>/dev/null
8921 lt_status=$?
8922 case x$lt_status in
8923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8925 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8926 esac
8927 else :
8928 # compilation failed
8929 lt_cv_dlopen_self_static=no
8930 fi
8931fi
8932rm -fr conftest*
8933
8934
8935fi
8936echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8937echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8938 fi
8939
8940 CPPFLAGS="$save_CPPFLAGS"
8941 LDFLAGS="$save_LDFLAGS"
8942 LIBS="$save_LIBS"
8943 ;;
8944 esac
8945
8946 case $lt_cv_dlopen_self in
8947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8948 *) enable_dlopen_self=unknown ;;
8949 esac
8950
8951 case $lt_cv_dlopen_self_static in
8952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8953 *) enable_dlopen_self_static=unknown ;;
8954 esac
8955fi
8956
8957
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008958# Report which librarie types wil actually be built
8959echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8960echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8961echo "$as_me:$LINENO: result: $can_build_shared" >&5
8962echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008963
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008964echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8965echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8966test "$can_build_shared" = "no" && enable_shared=no
8967
8968# On AIX, shared libraries and static libraries use the same namespace, and
8969# are all built from PIC.
8970case "$host_os" in
8971aix3*)
8972 test "$enable_shared" = yes && enable_static=no
8973 if test -n "$RANLIB"; then
8974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8975 postinstall_cmds='$RANLIB $lib'
8976 fi
8977 ;;
8978
hp.com!davidm2de17682004-04-20 16:53:44 +00008979aix4* | aix5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8981 test "$enable_shared" = yes && enable_static=no
8982 fi
8983 ;;
8984 darwin* | rhapsody*)
8985 if test "$GCC" = yes; then
8986 archive_cmds_need_lc=no
8987 case "$host_os" in
8988 rhapsody* | darwin1.[012])
8989 allow_undefined_flag='-undefined suppress'
8990 ;;
8991 *) # Darwin 1.3 on
8992 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8993 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008994 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008995 case ${MACOSX_DEPLOYMENT_TARGET} in
8996 10.[012])
8997 allow_undefined_flag='-flat_namespace -undefined suppress'
8998 ;;
8999 10.*)
9000 allow_undefined_flag='-undefined dynamic_lookup'
9001 ;;
9002 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009003 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009004 ;;
9005 esac
9006 output_verbose_link_cmd='echo'
9007 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9008 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9010 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}'
9011 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}'
9012 hardcode_direct=no
9013 hardcode_automatic=yes
9014 hardcode_shlibpath_var=unsupported
9015 whole_archive_flag_spec='-all_load $convenience'
9016 link_all_deplibs=yes
9017 else
9018 ld_shlibs=no
9019 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009020 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009021esac
9022echo "$as_me:$LINENO: result: $enable_shared" >&5
9023echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009024
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009025echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9026echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9027# Make sure either enable_shared or enable_static is yes.
9028test "$enable_shared" = yes || enable_static=yes
9029echo "$as_me:$LINENO: result: $enable_static" >&5
9030echo "${ECHO_T}$enable_static" >&6
9031
9032# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009033# libtool distribution, otherwise you forgot to ship ltmain.sh
9034# with your package, and you will get complaints that there are
9035# no rules to generate ltmain.sh.
9036if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009037 # See if we are running on zsh, and set the options which allow our commands through
9038 # without removal of \ escapes.
9039 if test -n "${ZSH_VERSION+set}" ; then
9040 setopt NO_GLOB_SUBST
9041 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009042 # Now quote all the things that may contain metacharacters while being
9043 # careful not to overquote the AC_SUBSTed values. We take copies of the
9044 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009045 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9046 SED SHELL STRIP \
9047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9049 deplibs_check_method reload_flag reload_cmds need_locks \
9050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9051 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009053 old_postinstall_cmds old_postuninstall_cmds \
9054 compiler \
9055 CC \
9056 LD \
9057 lt_prog_compiler_wl \
9058 lt_prog_compiler_pic \
9059 lt_prog_compiler_static \
9060 lt_prog_compiler_no_builtin_flag \
9061 export_dynamic_flag_spec \
9062 thread_safe_flag_spec \
9063 whole_archive_flag_spec \
9064 enable_shared_with_static_runtimes \
9065 old_archive_cmds \
9066 old_archive_from_new_cmds \
9067 predep_objects \
9068 postdep_objects \
9069 predeps \
9070 postdeps \
9071 compiler_lib_search_path \
9072 archive_cmds \
9073 archive_expsym_cmds \
9074 postinstall_cmds \
9075 postuninstall_cmds \
9076 old_archive_from_expsyms_cmds \
9077 allow_undefined_flag \
9078 no_undefined_flag \
9079 export_symbols_cmds \
9080 hardcode_libdir_flag_spec \
9081 hardcode_libdir_flag_spec_ld \
9082 hardcode_libdir_separator \
9083 hardcode_automatic \
9084 module_cmds \
9085 module_expsym_cmds \
9086 lt_cv_prog_compiler_c_o \
9087 exclude_expsyms \
9088 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009089
9090 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009091 old_archive_cmds | \
9092 old_archive_from_new_cmds | \
9093 archive_cmds | \
9094 archive_expsym_cmds | \
9095 module_cmds | \
9096 module_expsym_cmds | \
9097 old_archive_from_expsyms_cmds | \
9098 export_symbols_cmds | \
9099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009100 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009101 old_postinstall_cmds | old_postuninstall_cmds | \
9102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009103 # Double-quote double-evaled strings.
9104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9105 ;;
9106 *)
9107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9108 ;;
9109 esac
9110 done
9111
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009112 case $lt_echo in
9113 *'\$0 --fallback-echo"')
9114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9115 ;;
9116 esac
9117
9118cfgfile="${ofile}T"
9119 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9120 $rm -f "$cfgfile"
9121 { echo "$as_me:$LINENO: creating $ofile" >&5
9122echo "$as_me: creating $ofile" >&6;}
9123
9124 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009125#! $SHELL
9126
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009127# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009128# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9129# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9130#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009131# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9132# Free Software Foundation, Inc.
9133#
9134# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009135# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9136#
9137# This program is free software; you can redistribute it and/or modify
9138# it under the terms of the GNU General Public License as published by
9139# the Free Software Foundation; either version 2 of the License, or
9140# (at your option) any later version.
9141#
9142# This program is distributed in the hope that it will be useful, but
9143# WITHOUT ANY WARRANTY; without even the implied warranty of
9144# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9145# General Public License for more details.
9146#
9147# You should have received a copy of the GNU General Public License
9148# along with this program; if not, write to the Free Software
9149# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9150#
9151# As a special exception to the GNU General Public License, if you
9152# distribute this file as part of a program that contains a
9153# configuration script generated by Autoconf, you may include it under
9154# the same distribution terms that you use for the rest of that program.
9155
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009156# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009157SED=$lt_SED
9158
9159# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009160Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009161
9162# The HP-UX ksh and POSIX shell print the target directory to stdout
9163# if CDPATH is set.
9164if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9165
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009166# The names of the tagged configurations supported by this script.
9167available_tags=
9168
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009169# ### BEGIN LIBTOOL CONFIG
9170
9171# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9172
9173# Shell to use when invoking shell scripts.
9174SHELL=$lt_SHELL
9175
9176# Whether or not to build shared libraries.
9177build_libtool_libs=$enable_shared
9178
9179# Whether or not to build static libraries.
9180build_old_libs=$enable_static
9181
9182# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009183build_libtool_need_lc=$archive_cmds_need_lc
9184
9185# Whether or not to disallow shared libs when runtime libs are static
9186allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009187
9188# Whether or not to optimize for fast installation.
9189fast_install=$enable_fast_install
9190
9191# The host system.
9192host_alias=$host_alias
9193host=$host
9194
9195# An echo program that does not interpret backslashes.
9196echo=$lt_echo
9197
9198# The archiver.
9199AR=$lt_AR
9200AR_FLAGS=$lt_AR_FLAGS
9201
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009202# A C compiler.
9203LTCC=$lt_LTCC
9204
9205# A language-specific compiler.
9206CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009207
9208# Is the compiler the GNU C compiler?
9209with_gcc=$GCC
9210
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009211# An ERE matcher.
9212EGREP=$lt_EGREP
9213
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009214# The linker used to build libraries.
9215LD=$lt_LD
9216
9217# Whether we need hard or soft links.
9218LN_S=$lt_LN_S
9219
9220# A BSD-compatible nm program.
9221NM=$lt_NM
9222
9223# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009224STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009225
9226# Used to examine libraries when file_magic_cmd begins "file"
9227MAGIC_CMD=$MAGIC_CMD
9228
9229# Used on cygwin: DLL creation program.
9230DLLTOOL="$DLLTOOL"
9231
9232# Used on cygwin: object dumper.
9233OBJDUMP="$OBJDUMP"
9234
9235# Used on cygwin: assembler.
9236AS="$AS"
9237
9238# The name of the directory that contains temporary libtool files.
9239objdir=$objdir
9240
9241# How to create reloadable object files.
9242reload_flag=$lt_reload_flag
9243reload_cmds=$lt_reload_cmds
9244
9245# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009246wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009247
9248# Object file suffix (normally "o").
9249objext="$ac_objext"
9250
9251# Old archive suffix (normally "a").
9252libext="$libext"
9253
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009254# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +00009255shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009256
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009257# Executable file suffix (normally "").
9258exeext="$exeext"
9259
9260# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009261pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009262pic_mode=$pic_mode
9263
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009264# What is the maximum length of a command?
9265max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009266
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009267# Does compiler simultaneously support -c and -o options?
9268compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009269
9270# Must we lock files when doing compilation ?
9271need_locks=$lt_need_locks
9272
9273# Do we need the lib prefix for modules?
9274need_lib_prefix=$need_lib_prefix
9275
9276# Do we need a version for libraries?
9277need_version=$need_version
9278
9279# Whether dlopen is supported.
9280dlopen_support=$enable_dlopen
9281
9282# Whether dlopen of programs is supported.
9283dlopen_self=$enable_dlopen_self
9284
9285# Whether dlopen of statically linked programs is supported.
9286dlopen_self_static=$enable_dlopen_self_static
9287
9288# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009289link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009290
9291# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009293
9294# Compiler flag to allow reflexive dlopens.
9295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9296
9297# Compiler flag to generate shared objects directly from archives.
9298whole_archive_flag_spec=$lt_whole_archive_flag_spec
9299
9300# Compiler flag to generate thread-safe objects.
9301thread_safe_flag_spec=$lt_thread_safe_flag_spec
9302
9303# Library versioning type.
9304version_type=$version_type
9305
9306# Format of library name prefix.
9307libname_spec=$lt_libname_spec
9308
9309# List of archive names. First name is the real one, the rest are links.
9310# The last name is the one that the linker finds with -lNAME.
9311library_names_spec=$lt_library_names_spec
9312
9313# The coded name of the library, if different from the real name.
9314soname_spec=$lt_soname_spec
9315
9316# Commands used to build and install an old-style archive.
9317RANLIB=$lt_RANLIB
9318old_archive_cmds=$lt_old_archive_cmds
9319old_postinstall_cmds=$lt_old_postinstall_cmds
9320old_postuninstall_cmds=$lt_old_postuninstall_cmds
9321
9322# Create an old-style archive from a shared archive.
9323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9324
9325# Create a temporary old-style archive to link instead of a shared archive.
9326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9327
9328# Commands used to build and install a shared archive.
9329archive_cmds=$lt_archive_cmds
9330archive_expsym_cmds=$lt_archive_expsym_cmds
9331postinstall_cmds=$lt_postinstall_cmds
9332postuninstall_cmds=$lt_postuninstall_cmds
9333
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009334# Commands used to build a loadable module (assumed same as above if empty)
9335module_cmds=$lt_module_cmds
9336module_expsym_cmds=$lt_module_expsym_cmds
9337
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009338# Commands to strip libraries.
9339old_striplib=$lt_old_striplib
9340striplib=$lt_striplib
9341
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009342# Dependencies to place before the objects being linked to create a
9343# shared library.
9344predep_objects=$lt_predep_objects
9345
9346# Dependencies to place after the objects being linked to create a
9347# shared library.
9348postdep_objects=$lt_postdep_objects
9349
9350# Dependencies to place before the objects being linked to create a
9351# shared library.
9352predeps=$lt_predeps
9353
9354# Dependencies to place after the objects being linked to create a
9355# shared library.
9356postdeps=$lt_postdeps
9357
9358# The library search path used internally by the compiler when linking
9359# a shared library.
9360compiler_lib_search_path=$lt_compiler_lib_search_path
9361
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009362# Method to check whether dependent libraries are shared objects.
9363deplibs_check_method=$lt_deplibs_check_method
9364
9365# Command to use when deplibs_check_method == file_magic.
9366file_magic_cmd=$lt_file_magic_cmd
9367
9368# Flag that allows shared libraries with undefined symbols to be built.
9369allow_undefined_flag=$lt_allow_undefined_flag
9370
9371# Flag that forces no undefined symbols.
9372no_undefined_flag=$lt_no_undefined_flag
9373
9374# Commands used to finish a libtool library installation in a directory.
9375finish_cmds=$lt_finish_cmds
9376
9377# Same as above, but a single script fragment to be evaled but not shown.
9378finish_eval=$lt_finish_eval
9379
9380# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009382
9383# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009385
9386# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009388
9389# This is the shared library runtime path variable.
9390runpath_var=$runpath_var
9391
9392# This is the shared library path variable.
9393shlibpath_var=$shlibpath_var
9394
9395# Is shlibpath searched before the hard-coded library search path?
9396shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9397
9398# How to hardcode a shared library path into an executable.
9399hardcode_action=$hardcode_action
9400
9401# Whether we should hardcode library paths into libraries.
9402hardcode_into_libs=$hardcode_into_libs
9403
9404# Flag to hardcode \$libdir into a binary during linking.
9405# This must work even if \$libdir does not exist.
9406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9407
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009408# If ld is used when linking, flag to hardcode \$libdir into
9409# a binary during linking. This must work even if \$libdir does
9410# not exist.
9411hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9412
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009413# Whether we need a single -rpath flag with a separated argument.
9414hardcode_libdir_separator=$lt_hardcode_libdir_separator
9415
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009416# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009417# resulting binary.
9418hardcode_direct=$hardcode_direct
9419
9420# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9421# resulting binary.
9422hardcode_minus_L=$hardcode_minus_L
9423
9424# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9425# the resulting binary.
9426hardcode_shlibpath_var=$hardcode_shlibpath_var
9427
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009428# Set to yes if building a shared library automatically hardcodes DIR into the library
9429# and all subsequent libraries and executables linked against it.
9430hardcode_automatic=$hardcode_automatic
9431
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009432# Variables whose values should be saved in libtool wrapper scripts and
9433# restored at relink time.
9434variables_saved_for_relink="$variables_saved_for_relink"
9435
9436# Whether libtool must link a program against all its dependency libraries.
9437link_all_deplibs=$link_all_deplibs
9438
9439# Compile-time system search path for libraries
9440sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9441
9442# Run-time system search path for libraries
9443sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9444
9445# Fix the shell variable \$srcfile for the compiler.
9446fix_srcfile_path="$fix_srcfile_path"
9447
9448# Set to yes if exported symbols are required.
9449always_export_symbols=$always_export_symbols
9450
9451# The commands to list exported symbols.
9452export_symbols_cmds=$lt_export_symbols_cmds
9453
9454# The commands to extract the exported symbol list from a shared archive.
9455extract_expsyms_cmds=$lt_extract_expsyms_cmds
9456
9457# Symbols that should not be listed in the preloaded symbols.
9458exclude_expsyms=$lt_exclude_expsyms
9459
9460# Symbols that must always be exported.
9461include_expsyms=$lt_include_expsyms
9462
9463# ### END LIBTOOL CONFIG
9464
9465__EOF__
9466
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009467
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009468 case $host_os in
9469 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009470 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009471
9472# AIX sometimes has problems with the GCC collect2 program. For some
9473# reason, if we set the COLLECT_NAMES environment variable, the problems
9474# vanish in a puff of smoke.
9475if test "X${COLLECT_NAMES+set}" != Xset; then
9476 COLLECT_NAMES=
9477 export COLLECT_NAMES
9478fi
9479EOF
9480 ;;
9481 esac
9482
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009483 # We use sed instead of cat because bash on DJGPP gets confused if
9484 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9485 # text mode, it properly converts lines to CR/LF. This bash problem
9486 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009487 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009488
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009489 mv -f "$cfgfile" "$ofile" || \
9490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009491 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009492
9493else
9494 # If there is no Makefile yet, we rely on a make rule to execute
9495 # `config.status --recheck' to rerun these tests and create the
9496 # libtool script then.
9497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9498 if test -f "$ltmain_in"; then
9499 test -f Makefile && make "$ltmain"
9500 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009501fi
9502
9503
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009504ac_ext=c
9505ac_cpp='$CPP $CPPFLAGS'
9506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9508ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509
9510CC="$lt_save_CC"
9511
9512
9513# Check whether --with-tags or --without-tags was given.
9514if test "${with_tags+set}" = set; then
9515 withval="$with_tags"
9516 tagnames="$withval"
9517fi;
9518
9519if test -f "$ltmain" && test -n "$tagnames"; then
9520 if test ! -f "${ofile}"; then
9521 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9522echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9523 fi
9524
9525 if test -z "$LTCC"; then
9526 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9527 if test -z "$LTCC"; then
9528 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9529echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9530 else
9531 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9532echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9533 fi
9534 fi
9535
9536 # Extract list of available tagged configurations in $ofile.
9537 # Note that this assumes the entire list is on one line.
9538 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9539
9540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9541 for tagname in $tagnames; do
9542 IFS="$lt_save_ifs"
9543 # Check whether tagname contains only valid characters
9544 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9545 "") ;;
9546 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9547echo "$as_me: error: invalid tag name: $tagname" >&2;}
9548 { (exit 1); exit 1; }; }
9549 ;;
9550 esac
9551
9552 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9553 then
9554 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9555echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9556 { (exit 1); exit 1; }; }
9557 fi
9558
9559 # Update the list of available tags.
9560 if test -n "$tagname"; then
9561 echo appending configuration tag \"$tagname\" to $ofile
9562
9563 case $tagname in
9564 CXX)
9565 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9566 ac_ext=cc
9567ac_cpp='$CXXCPP $CPPFLAGS'
9568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9571
9572
9573
9574
9575archive_cmds_need_lc_CXX=no
9576allow_undefined_flag_CXX=
9577always_export_symbols_CXX=no
9578archive_expsym_cmds_CXX=
9579export_dynamic_flag_spec_CXX=
9580hardcode_direct_CXX=no
9581hardcode_libdir_flag_spec_CXX=
9582hardcode_libdir_flag_spec_ld_CXX=
9583hardcode_libdir_separator_CXX=
9584hardcode_minus_L_CXX=no
9585hardcode_automatic_CXX=no
9586module_cmds_CXX=
9587module_expsym_cmds_CXX=
9588link_all_deplibs_CXX=unknown
9589old_archive_cmds_CXX=$old_archive_cmds
9590no_undefined_flag_CXX=
9591whole_archive_flag_spec_CXX=
9592enable_shared_with_static_runtimes_CXX=no
9593
9594# Dependencies to place before and after the object being linked:
9595predep_objects_CXX=
9596postdep_objects_CXX=
9597predeps_CXX=
9598postdeps_CXX=
9599compiler_lib_search_path_CXX=
9600
9601# Source file extension for C++ test sources.
9602ac_ext=cc
9603
9604# Object file extension for compiled C++ test sources.
9605objext=o
9606objext_CXX=$objext
9607
9608# Code to be used in simple compile tests
9609lt_simple_compile_test_code="int some_variable = 0;\n"
9610
9611# Code to be used in simple link tests
9612lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9613
9614# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9615
9616# If no C compiler was specified, use CC.
9617LTCC=${LTCC-"$CC"}
9618
9619# Allow CC to be a program name with arguments.
9620compiler=$CC
9621
9622
9623# Allow CC to be a program name with arguments.
9624lt_save_CC=$CC
9625lt_save_LD=$LD
9626lt_save_GCC=$GCC
9627GCC=$GXX
9628lt_save_with_gnu_ld=$with_gnu_ld
9629lt_save_path_LD=$lt_cv_path_LD
9630if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9631 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9632else
9633 unset lt_cv_prog_gnu_ld
9634fi
9635if test -n "${lt_cv_path_LDCXX+set}"; then
9636 lt_cv_path_LD=$lt_cv_path_LDCXX
9637else
9638 unset lt_cv_path_LD
9639fi
9640test -z "${LDCXX+set}" || LD=$LDCXX
9641CC=${CXX-"c++"}
9642compiler=$CC
9643compiler_CXX=$CC
9644cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9645
9646# We don't want -fno-exception wen compiling C++ code, so set the
9647# no_builtin_flag separately
9648if test "$GXX" = yes; then
9649 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9650else
9651 lt_prog_compiler_no_builtin_flag_CXX=
9652fi
9653
9654if test "$GXX" = yes; then
9655 # Set up default GNU C++ configuration
9656
9657
9658# Check whether --with-gnu-ld or --without-gnu-ld was given.
9659if test "${with_gnu_ld+set}" = set; then
9660 withval="$with_gnu_ld"
9661 test "$withval" = no || with_gnu_ld=yes
9662else
9663 with_gnu_ld=no
9664fi;
9665ac_prog=ld
9666if test "$GCC" = yes; then
9667 # Check if gcc -print-prog-name=ld gives a path.
9668 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9669echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9670 case $host in
9671 *-*-mingw*)
9672 # gcc leaves a trailing carriage return which upsets mingw
9673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9674 *)
9675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9676 esac
9677 case $ac_prog in
9678 # Accept absolute paths.
9679 [\\/]* | ?:[\\/]*)
9680 re_direlt='/[^/][^/]*/\.\./'
9681 # Canonicalize the pathname of ld
9682 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9683 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9684 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9685 done
9686 test -z "$LD" && LD="$ac_prog"
9687 ;;
9688 "")
9689 # If it fails, then pretend we aren't using GCC.
9690 ac_prog=ld
9691 ;;
9692 *)
9693 # If it is relative, then search for the first ld in PATH.
9694 with_gnu_ld=unknown
9695 ;;
9696 esac
9697elif test "$with_gnu_ld" = yes; then
9698 echo "$as_me:$LINENO: checking for GNU ld" >&5
9699echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9700else
9701 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9702echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9703fi
9704if test "${lt_cv_path_LD+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706else
9707 if test -z "$LD"; then
9708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9709 for ac_dir in $PATH; do
9710 IFS="$lt_save_ifs"
9711 test -z "$ac_dir" && ac_dir=.
9712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9713 lt_cv_path_LD="$ac_dir/$ac_prog"
9714 # Check to see if the program is GNU ld. I'd rather use --version,
9715 # but apparently some GNU ld's only accept -v.
9716 # Break only if it was the GNU/non-GNU ld that we prefer.
9717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9718 *GNU* | *'with BFD'*)
9719 test "$with_gnu_ld" != no && break
9720 ;;
9721 *)
9722 test "$with_gnu_ld" != yes && break
9723 ;;
9724 esac
9725 fi
9726 done
9727 IFS="$lt_save_ifs"
9728else
9729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9730fi
9731fi
9732
9733LD="$lt_cv_path_LD"
9734if test -n "$LD"; then
9735 echo "$as_me:$LINENO: result: $LD" >&5
9736echo "${ECHO_T}$LD" >&6
9737else
9738 echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6
9740fi
9741test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9742echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9743 { (exit 1); exit 1; }; }
9744echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9745echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9746if test "${lt_cv_prog_gnu_ld+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748else
9749 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9750case `$LD -v 2>&1 </dev/null` in
9751*GNU* | *'with BFD'*)
9752 lt_cv_prog_gnu_ld=yes
9753 ;;
9754*)
9755 lt_cv_prog_gnu_ld=no
9756 ;;
9757esac
9758fi
9759echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9760echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9761with_gnu_ld=$lt_cv_prog_gnu_ld
9762
9763
9764
9765 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9766 # archiving commands below assume that GNU ld is being used.
9767 if test "$with_gnu_ld" = yes; then
9768 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9769 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'
9770
9771 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9773
9774 # If archive_cmds runs LD, not CC, wlarc should be empty
9775 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9776 # investigate it a little bit more. (MM)
9777 wlarc='${wl}'
9778
9779 # ancient GNU ld didn't support --whole-archive et. al.
9780 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9781 grep 'no-whole-archive' > /dev/null; then
9782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9783 else
9784 whole_archive_flag_spec_CXX=
9785 fi
9786 else
9787 with_gnu_ld=no
9788 wlarc=
9789
9790 # A generic and very simple default shared library creation
9791 # command for GNU C++ for the case where it uses the native
9792 # linker, instead of GNU ld. If possible, this setting should
9793 # overridden to take advantage of the native linker features on
9794 # the platform it is being used on.
9795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9796 fi
9797
9798 # Commands to make compiler produce verbose output that lists
9799 # what "hidden" libraries, object files and flags are used when
9800 # linking a shared library.
9801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9802
9803else
9804 GXX=no
9805 with_gnu_ld=no
9806 wlarc=
9807fi
9808
9809# PORTME: fill in a description of your system's C++ link characteristics
9810echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9811echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9812ld_shlibs_CXX=yes
9813case $host_os in
9814 aix3*)
9815 # FIXME: insert proper C++ library support
9816 ld_shlibs_CXX=no
9817 ;;
9818 aix4* | aix5*)
9819 if test "$host_cpu" = ia64; then
9820 # On IA64, the linker does run time linking by default, so we don't
9821 # have to do anything special.
9822 aix_use_runtimelinking=no
9823 exp_sym_flag='-Bexport'
9824 no_entry_flag=""
9825 else
9826 aix_use_runtimelinking=no
9827
9828 # Test if we are trying to use run time linking or normal
9829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9830 # need to do runtime linking.
9831 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9832 for ld_flag in $LDFLAGS; do
9833 case $ld_flag in
9834 *-brtl*)
9835 aix_use_runtimelinking=yes
9836 break
9837 ;;
9838 esac
9839 done
9840 esac
9841
9842 exp_sym_flag='-bexport'
9843 no_entry_flag='-bnoentry'
9844 fi
9845
9846 # When large executables or shared objects are built, AIX ld can
9847 # have problems creating the table of contents. If linking a library
9848 # or program results in "error TOC overflow" add -mminimal-toc to
9849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9851
9852 archive_cmds_CXX=''
9853 hardcode_direct_CXX=yes
9854 hardcode_libdir_separator_CXX=':'
9855 link_all_deplibs_CXX=yes
9856
9857 if test "$GXX" = yes; then
9858 case $host_os in aix4.012|aix4.012.*)
9859 # We only want to do this on AIX 4.2 and lower, the check
9860 # below for broken collect2 doesn't work under 4.3+
9861 collect2name=`${CC} -print-prog-name=collect2`
9862 if test -f "$collect2name" && \
9863 strings "$collect2name" | grep resolve_lib_name >/dev/null
9864 then
9865 # We have reworked collect2
9866 hardcode_direct_CXX=yes
9867 else
9868 # We have old collect2
9869 hardcode_direct_CXX=unsupported
9870 # It fails to find uninstalled libraries when the uninstalled
9871 # path is not listed in the libpath. Setting hardcode_minus_L
9872 # to unsupported forces relinking
9873 hardcode_minus_L_CXX=yes
9874 hardcode_libdir_flag_spec_CXX='-L$libdir'
9875 hardcode_libdir_separator_CXX=
9876 fi
9877 esac
9878 shared_flag='-shared'
9879 else
9880 # not using gcc
9881 if test "$host_cpu" = ia64; then
9882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9883 # chokes on -Wl,-G. The following line is correct:
9884 shared_flag='-G'
9885 else
9886 if test "$aix_use_runtimelinking" = yes; then
9887 shared_flag='${wl}-G'
9888 else
9889 shared_flag='${wl}-bM:SRE'
9890 fi
9891 fi
9892 fi
9893
9894 # It seems that -bexpall does not export symbols beginning with
9895 # underscore (_), so it is better to generate a list of symbols to export.
9896 always_export_symbols_CXX=yes
9897 if test "$aix_use_runtimelinking" = yes; then
9898 # Warning - without using the other runtime loading flags (-brtl),
9899 # -berok will link without error, but may produce a broken library.
9900 allow_undefined_flag_CXX='-berok'
9901 # Determine the default libpath from the value encoded in an empty executable.
9902 cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
9908
9909int
9910main ()
9911{
9912
9913 ;
9914 return 0;
9915}
9916_ACEOF
9917rm -f conftest.$ac_objext conftest$ac_exeext
9918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009919 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009920 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009921 grep -v '^ *+' conftest.er1 >conftest.err
9922 rm -f conftest.er1
9923 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938
9939aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9940}'`
9941# Check for a 64-bit object if we didn't find anything.
9942if 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; }
9943}'`; fi
9944else
9945 echo "$as_me: failed program was:" >&5
9946sed 's/^/| /' conftest.$ac_ext >&5
9947
9948fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009949rm -f conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9952
9953 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9954
9955 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9956 else
9957 if test "$host_cpu" = ia64; then
9958 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9959 allow_undefined_flag_CXX="-z nodefs"
9960 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9961 else
9962 # Determine the default libpath from the value encoded in an empty executable.
9963 cat >conftest.$ac_ext <<_ACEOF
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
9969
9970int
9971main ()
9972{
9973
9974 ;
9975 return 0;
9976}
9977_ACEOF
9978rm -f conftest.$ac_objext conftest$ac_exeext
9979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009980 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009981 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +00009987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999
10000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10001}'`
10002# Check for a 64-bit object if we didn't find anything.
10003if 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; }
10004}'`; fi
10005else
10006 echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000010010rm -f conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10013
10014 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10015 # Warning - without using the other run time loading flags,
10016 # -berok will link without error, but may produce a broken library.
10017 no_undefined_flag_CXX=' ${wl}-bernotok'
10018 allow_undefined_flag_CXX=' ${wl}-berok'
10019 # -bexpall does not export symbols beginning with underscore (_)
10020 always_export_symbols_CXX=yes
10021 # Exported symbols can be pulled into shared objects from archives
10022 whole_archive_flag_spec_CXX=' '
10023 archive_cmds_need_lc_CXX=yes
10024 # This is similar to how AIX traditionally builds it's shared libraries.
10025 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10026 fi
10027 fi
10028 ;;
10029 chorus*)
10030 case $cc_basename in
10031 *)
10032 # FIXME: insert proper C++ library support
10033 ld_shlibs_CXX=no
10034 ;;
10035 esac
10036 ;;
10037
10038 cygwin* | mingw* | pw32*)
10039 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10040 # as there is no search path for DLLs.
10041 hardcode_libdir_flag_spec_CXX='-L$libdir'
10042 allow_undefined_flag_CXX=unsupported
10043 always_export_symbols_CXX=no
10044 enable_shared_with_static_runtimes_CXX=yes
10045
10046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10048 # If the export-symbols file already is a .def file (1st line
10049 # is EXPORTS), use it as is; otherwise, prepend...
10050 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10051 cp $export_symbols $output_objdir/$soname.def;
10052 else
10053 echo EXPORTS > $output_objdir/$soname.def;
10054 cat $export_symbols >> $output_objdir/$soname.def;
10055 fi~
10056 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10057 else
10058 ld_shlibs_CXX=no
10059 fi
10060 ;;
10061
10062 darwin* | rhapsody*)
10063 if test "$GXX" = yes; then
10064 archive_cmds_need_lc_CXX=no
10065 case "$host_os" in
10066 rhapsody* | darwin1.[012])
10067 allow_undefined_flag_CXX='-undefined suppress'
10068 ;;
10069 *) # Darwin 1.3 on
10070 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10071 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10072 else
10073 case ${MACOSX_DEPLOYMENT_TARGET} in
10074 10.[012])
10075 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10076 ;;
10077 10.*)
10078 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10079 ;;
10080 esac
10081 fi
10082 ;;
10083 esac
10084 lt_int_apple_cc_single_mod=no
10085 output_verbose_link_cmd='echo'
10086 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10087 lt_int_apple_cc_single_mod=yes
10088 fi
10089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10090 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10091 else
10092 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10093 fi
10094 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10095
10096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10097 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10098 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}'
10099 else
10100 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10101 fi
10102 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}'
10103 hardcode_direct_CXX=no
10104 hardcode_automatic_CXX=yes
10105 hardcode_shlibpath_var_CXX=unsupported
10106 whole_archive_flag_spec_CXX='-all_load $convenience'
10107 link_all_deplibs_CXX=yes
10108 else
10109 ld_shlibs_CXX=no
10110 fi
10111 ;;
10112
10113 dgux*)
10114 case $cc_basename in
10115 ec++)
10116 # FIXME: insert proper C++ library support
10117 ld_shlibs_CXX=no
10118 ;;
10119 ghcx)
10120 # Green Hills C++ Compiler
10121 # FIXME: insert proper C++ library support
10122 ld_shlibs_CXX=no
10123 ;;
10124 *)
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128 esac
10129 ;;
10130 freebsd12*)
10131 # C++ shared libraries reported to be fairly broken before switch to ELF
10132 ld_shlibs_CXX=no
10133 ;;
10134 freebsd-elf*)
10135 archive_cmds_need_lc_CXX=no
10136 ;;
10137 freebsd* | kfreebsd*-gnu)
10138 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10139 # conventions
10140 ld_shlibs_CXX=yes
10141 ;;
10142 gnu*)
10143 ;;
10144 hpux9*)
10145 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10146 hardcode_libdir_separator_CXX=:
10147 export_dynamic_flag_spec_CXX='${wl}-E'
10148 hardcode_direct_CXX=yes
10149 hardcode_minus_L_CXX=yes # Not in the search PATH,
10150 # but as the default
10151 # location of the library.
10152
10153 case $cc_basename in
10154 CC)
10155 # FIXME: insert proper C++ library support
10156 ld_shlibs_CXX=no
10157 ;;
10158 aCC)
10159 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'
10160 # Commands to make compiler produce verbose output that lists
10161 # what "hidden" libraries, object files and flags are used when
10162 # linking a shared library.
10163 #
10164 # There doesn't appear to be a way to prevent this compiler from
10165 # explicitly linking system object files so we need to strip them
10166 # from the output so that they don't get included in the library
10167 # dependencies.
hp.com!davidm2de17682004-04-20 16:53:44 +000010168 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'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010169 ;;
10170 *)
10171 if test "$GXX" = yes; then
10172 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'
10173 else
10174 # FIXME: insert proper C++ library support
10175 ld_shlibs_CXX=no
10176 fi
10177 ;;
10178 esac
10179 ;;
10180 hpux10*|hpux11*)
10181 if test $with_gnu_ld = no; then
10182 case "$host_cpu" in
10183 hppa*64*)
10184 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10185 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10186 hardcode_libdir_separator_CXX=:
10187 ;;
10188 ia64*)
10189 hardcode_libdir_flag_spec_CXX='-L$libdir'
10190 ;;
10191 *)
10192 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10193 hardcode_libdir_separator_CXX=:
10194 export_dynamic_flag_spec_CXX='${wl}-E'
10195 ;;
10196 esac
10197 fi
10198 case "$host_cpu" in
10199 hppa*64*)
10200 hardcode_direct_CXX=no
10201 hardcode_shlibpath_var_CXX=no
10202 ;;
10203 ia64*)
10204 hardcode_direct_CXX=no
10205 hardcode_shlibpath_var_CXX=no
10206 hardcode_minus_L_CXX=yes # Not in the search PATH,
10207 # but as the default
10208 # location of the library.
10209 ;;
10210 *)
10211 hardcode_direct_CXX=yes
10212 hardcode_minus_L_CXX=yes # Not in the search PATH,
10213 # but as the default
10214 # location of the library.
10215 ;;
10216 esac
10217
10218 case $cc_basename in
10219 CC)
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10222 ;;
10223 aCC)
10224 case "$host_cpu" in
10225 hppa*64*|ia64*)
10226 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10227 ;;
10228 *)
10229 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10230 ;;
10231 esac
10232 # Commands to make compiler produce verbose output that lists
10233 # what "hidden" libraries, object files and flags are used when
10234 # linking a shared library.
10235 #
10236 # There doesn't appear to be a way to prevent this compiler from
10237 # explicitly linking system object files so we need to strip them
10238 # from the output so that they don't get included in the library
10239 # dependencies.
10240 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'
10241 ;;
10242 *)
10243 if test "$GXX" = yes; then
10244 if test $with_gnu_ld = no; then
10245 case "$host_cpu" in
10246 ia64*|hppa*64*)
10247 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10248 ;;
10249 *)
10250 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'
10251 ;;
10252 esac
10253 fi
10254 else
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 fi
10258 ;;
10259 esac
10260 ;;
10261 irix5* | irix6*)
10262 case $cc_basename in
10263 CC)
10264 # SGI C++
10265 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10266
10267 # Archives containing C++ object files must be created using
10268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10269 # necessary to make sure instantiated templates are included
10270 # in the archive.
10271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10272 ;;
10273 *)
10274 if test "$GXX" = yes; then
10275 if test "$with_gnu_ld" = no; then
10276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10277 else
10278 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'
10279 fi
10280 fi
10281 link_all_deplibs_CXX=yes
10282 ;;
10283 esac
10284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10285 hardcode_libdir_separator_CXX=:
10286 ;;
10287 linux*)
10288 case $cc_basename in
10289 KCC)
10290 # Kuck and Associates, Inc. (KAI) C++ Compiler
10291
10292 # KCC will only create a shared library if the output file
10293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10294 # to its proper name (with version) after linking.
10295 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'
10296 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'
10297 # Commands to make compiler produce verbose output that lists
10298 # what "hidden" libraries, object files and flags are used when
10299 # linking a shared library.
10300 #
10301 # There doesn't appear to be a way to prevent this compiler from
10302 # explicitly linking system object files so we need to strip them
10303 # from the output so that they don't get included in the library
10304 # dependencies.
10305 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'
10306
10307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10309
10310 # Archives containing C++ object files must be created using
10311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10313 ;;
10314 icpc)
10315 # Intel C++
10316 with_gnu_ld=yes
10317 archive_cmds_need_lc_CXX=no
10318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10319 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'
10320 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10321 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10322 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10323 ;;
10324 cxx)
10325 # Compaq C++
10326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327 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'
10328
10329 runpath_var=LD_RUN_PATH
10330 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10331 hardcode_libdir_separator_CXX=:
10332
10333 # Commands to make compiler produce verbose output that lists
10334 # what "hidden" libraries, object files and flags are used when
10335 # linking a shared library.
10336 #
10337 # There doesn't appear to be a way to prevent this compiler from
10338 # explicitly linking system object files so we need to strip them
10339 # from the output so that they don't get included in the library
10340 # dependencies.
10341 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'
10342 ;;
10343 esac
10344 ;;
10345 lynxos*)
10346 # FIXME: insert proper C++ library support
10347 ld_shlibs_CXX=no
10348 ;;
10349 m88k*)
10350 # FIXME: insert proper C++ library support
10351 ld_shlibs_CXX=no
10352 ;;
10353 mvs*)
10354 case $cc_basename in
10355 cxx)
10356 # FIXME: insert proper C++ library support
10357 ld_shlibs_CXX=no
10358 ;;
10359 *)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 esac
10364 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000010365 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10367 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10368 wlarc=
10369 hardcode_libdir_flag_spec_CXX='-R$libdir'
10370 hardcode_direct_CXX=yes
10371 hardcode_shlibpath_var_CXX=no
10372 fi
10373 # Workaround some broken pre-1.5 toolchains
10374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10375 ;;
10376 osf3*)
10377 case $cc_basename in
10378 KCC)
10379 # Kuck and Associates, Inc. (KAI) C++ Compiler
10380
10381 # KCC will only create a shared library if the output file
10382 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10383 # to its proper name (with version) after linking.
10384 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'
10385
10386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10387 hardcode_libdir_separator_CXX=:
10388
10389 # Archives containing C++ object files must be created using
10390 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10392
10393 ;;
10394 RCC)
10395 # Rational C++ 2.4.1
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10398 ;;
10399 cxx)
10400 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10401 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10402
10403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10404 hardcode_libdir_separator_CXX=:
10405
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10409 #
10410 # There doesn't appear to be a way to prevent this compiler from
10411 # explicitly linking system object files so we need to strip them
10412 # from the output so that they don't get included in the library
10413 # dependencies.
10414 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'
10415 ;;
10416 *)
10417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10419 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10420
10421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10422 hardcode_libdir_separator_CXX=:
10423
10424 # Commands to make compiler produce verbose output that lists
10425 # what "hidden" libraries, object files and flags are used when
10426 # linking a shared library.
10427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10428
10429 else
10430 # FIXME: insert proper C++ library support
10431 ld_shlibs_CXX=no
10432 fi
10433 ;;
10434 esac
10435 ;;
10436 osf4* | osf5*)
10437 case $cc_basename in
10438 KCC)
10439 # Kuck and Associates, Inc. (KAI) C++ Compiler
10440
10441 # KCC will only create a shared library if the output file
10442 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10443 # to its proper name (with version) after linking.
10444 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'
10445
10446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10447 hardcode_libdir_separator_CXX=:
10448
10449 # Archives containing C++ object files must be created using
10450 # the KAI C++ compiler.
10451 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10452 ;;
10453 RCC)
10454 # Rational C++ 2.4.1
10455 # FIXME: insert proper C++ library support
10456 ld_shlibs_CXX=no
10457 ;;
10458 cxx)
10459 allow_undefined_flag_CXX=' -expect_unresolved \*'
10460 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10461 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10462 echo "-hidden">> $lib.exp~
10463 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10464 $rm $lib.exp'
10465
10466 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10467 hardcode_libdir_separator_CXX=:
10468
10469 # Commands to make compiler produce verbose output that lists
10470 # what "hidden" libraries, object files and flags are used when
10471 # linking a shared library.
10472 #
10473 # There doesn't appear to be a way to prevent this compiler from
10474 # explicitly linking system object files so we need to strip them
10475 # from the output so that they don't get included in the library
10476 # dependencies.
10477 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'
10478 ;;
10479 *)
10480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10482 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10483
10484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10485 hardcode_libdir_separator_CXX=:
10486
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10491
10492 else
10493 # FIXME: insert proper C++ library support
10494 ld_shlibs_CXX=no
10495 fi
10496 ;;
10497 esac
10498 ;;
10499 psos*)
10500 # FIXME: insert proper C++ library support
10501 ld_shlibs_CXX=no
10502 ;;
10503 sco*)
10504 archive_cmds_need_lc_CXX=no
10505 case $cc_basename in
10506 CC)
10507 # FIXME: insert proper C++ library support
10508 ld_shlibs_CXX=no
10509 ;;
10510 *)
10511 # FIXME: insert proper C++ library support
10512 ld_shlibs_CXX=no
10513 ;;
10514 esac
10515 ;;
10516 sunos4*)
10517 case $cc_basename in
10518 CC)
10519 # Sun C++ 4.x
10520 # FIXME: insert proper C++ library support
10521 ld_shlibs_CXX=no
10522 ;;
10523 lcc)
10524 # Lucid
10525 # FIXME: insert proper C++ library support
10526 ld_shlibs_CXX=no
10527 ;;
10528 *)
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10531 ;;
10532 esac
10533 ;;
10534 solaris*)
10535 case $cc_basename in
10536 CC)
10537 # Sun C++ 4.2, 5.x and Centerline C++
10538 no_undefined_flag_CXX=' -zdefs'
10539 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10540 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10541 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10542
10543 hardcode_libdir_flag_spec_CXX='-R$libdir'
10544 hardcode_shlibpath_var_CXX=no
10545 case $host_os in
10546 solaris2.0-5 | solaris2.0-5.*) ;;
10547 *)
10548 # The C++ compiler is used as linker so we must use $wl
10549 # flag to pass the commands to the underlying system
10550 # linker.
10551 # Supported since Solaris 2.6 (maybe 2.5.1?)
10552 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10553 ;;
10554 esac
10555 link_all_deplibs_CXX=yes
10556
10557 # Commands to make compiler produce verbose output that lists
10558 # what "hidden" libraries, object files and flags are used when
10559 # linking a shared library.
10560 #
10561 # There doesn't appear to be a way to prevent this compiler from
10562 # explicitly linking system object files so we need to strip them
10563 # from the output so that they don't get included in the library
10564 # dependencies.
10565 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10566
10567 # Archives containing C++ object files must be created using
10568 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10569 # necessary to make sure instantiated templates are included
10570 # in the archive.
10571 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10572 ;;
10573 gcx)
10574 # Green Hills C++ Compiler
10575 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10576
10577 # The C++ compiler must be used to create the archive.
10578 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10579 ;;
10580 *)
10581 # GNU C++ compiler with Solaris linker
10582 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10583 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10584 if $CC --version | grep -v '^2\.7' > /dev/null; then
10585 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10586 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10587 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10588
10589 # Commands to make compiler produce verbose output that lists
10590 # what "hidden" libraries, object files and flags are used when
10591 # linking a shared library.
10592 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10593 else
10594 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10595 # platform.
10596 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10597 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10598 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10599
10600 # Commands to make compiler produce verbose output that lists
10601 # what "hidden" libraries, object files and flags are used when
10602 # linking a shared library.
10603 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10604 fi
10605
10606 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10607 fi
10608 ;;
10609 esac
10610 ;;
10611 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10612 archive_cmds_need_lc_CXX=no
10613 ;;
10614 tandem*)
10615 case $cc_basename in
10616 NCC)
10617 # NonStop-UX NCC 3.20
10618 # FIXME: insert proper C++ library support
10619 ld_shlibs_CXX=no
10620 ;;
10621 *)
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10624 ;;
10625 esac
10626 ;;
10627 vxworks*)
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10630 ;;
10631 *)
10632 # FIXME: insert proper C++ library support
10633 ld_shlibs_CXX=no
10634 ;;
10635esac
10636echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10637echo "${ECHO_T}$ld_shlibs_CXX" >&6
10638test "$ld_shlibs_CXX" = no && can_build_shared=no
10639
10640GCC_CXX="$GXX"
10641LD_CXX="$LD"
10642
10643
10644cat > conftest.$ac_ext <<EOF
10645class Foo
10646{
10647public:
10648 Foo (void) { a = 0; }
10649private:
10650 int a;
10651};
10652EOF
10653
10654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>&5
10656 ac_status=$?
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; then
10659 # Parse the compiler output and extract the necessary
10660 # objects, libraries and library flags.
10661
10662 # Sentinel used to keep track of whether or not we are before
10663 # the conftest object file.
10664 pre_test_object_deps_done=no
10665
10666 # The `*' in the case matches for architectures that use `case' in
10667 # $output_verbose_cmd can trigger glob expansion during the loop
10668 # eval without this substitution.
10669 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10670
10671 for p in `eval $output_verbose_link_cmd`; do
10672 case $p in
10673
10674 -L* | -R* | -l*)
10675 # Some compilers place space between "-{L,R}" and the path.
10676 # Remove the space.
10677 if test $p = "-L" \
10678 || test $p = "-R"; then
10679 prev=$p
10680 continue
10681 else
10682 prev=
10683 fi
10684
10685 if test "$pre_test_object_deps_done" = no; then
10686 case $p in
10687 -L* | -R*)
10688 # Internal compiler library paths should come after those
10689 # provided the user. The postdeps already come after the
10690 # user supplied libs so there is no need to process them.
10691 if test -z "$compiler_lib_search_path_CXX"; then
10692 compiler_lib_search_path_CXX="${prev}${p}"
10693 else
10694 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10695 fi
10696 ;;
10697 # The "-l" case would never come before the object being
10698 # linked, so don't bother handling this case.
10699 esac
10700 else
10701 if test -z "$postdeps_CXX"; then
10702 postdeps_CXX="${prev}${p}"
10703 else
10704 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10705 fi
10706 fi
10707 ;;
10708
10709 *.$objext)
10710 # This assumes that the test object file only shows up
10711 # once in the compiler output.
10712 if test "$p" = "conftest.$objext"; then
10713 pre_test_object_deps_done=yes
10714 continue
10715 fi
10716
10717 if test "$pre_test_object_deps_done" = no; then
10718 if test -z "$predep_objects_CXX"; then
10719 predep_objects_CXX="$p"
10720 else
10721 predep_objects_CXX="$predep_objects_CXX $p"
10722 fi
10723 else
10724 if test -z "$postdep_objects_CXX"; then
10725 postdep_objects_CXX="$p"
10726 else
10727 postdep_objects_CXX="$postdep_objects_CXX $p"
10728 fi
10729 fi
10730 ;;
10731
10732 *) ;; # Ignore the rest.
10733
10734 esac
10735 done
10736
10737 # Clean up.
10738 rm -f a.out a.exe
10739else
10740 echo "libtool.m4: error: problem compiling CXX test program"
10741fi
10742
10743$rm -f confest.$objext
10744
10745case " $postdeps_CXX " in
10746*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10747esac
10748
10749lt_prog_compiler_wl_CXX=
10750lt_prog_compiler_pic_CXX=
10751lt_prog_compiler_static_CXX=
10752
10753echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10754echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10755
10756 # C++ specific cases for pic, static, wl, etc.
10757 if test "$GXX" = yes; then
10758 lt_prog_compiler_wl_CXX='-Wl,'
10759 lt_prog_compiler_static_CXX='-static'
10760
10761 case $host_os in
10762 aix*)
10763 # All AIX code is PIC.
10764 if test "$host_cpu" = ia64; then
10765 # AIX 5 now supports IA64 processor
10766 lt_prog_compiler_static_CXX='-Bstatic'
10767 fi
10768 ;;
10769 amigaos*)
10770 # FIXME: we need at least 68020 code to build shared libraries, but
10771 # adding the `-m68020' flag to GCC prevents building anything better,
10772 # like `-m68040'.
10773 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10774 ;;
10775 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10776 # PIC is the default for these OSes.
10777 ;;
10778 mingw* | os2* | pw32*)
10779 # This hack is so that the source file can tell whether it is being
10780 # built for inclusion in a dll (and should export symbols for example).
10781 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10782 ;;
10783 darwin* | rhapsody*)
10784 # PIC is the default on this platform
10785 # Common symbols not allowed in MH_DYLIB files
10786 lt_prog_compiler_pic_CXX='-fno-common'
10787 ;;
10788 *djgpp*)
10789 # DJGPP does not support shared libraries at all
10790 lt_prog_compiler_pic_CXX=
10791 ;;
10792 sysv4*MP*)
10793 if test -d /usr/nec; then
10794 lt_prog_compiler_pic_CXX=-Kconform_pic
10795 fi
10796 ;;
10797 hpux*)
10798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10799 # not for PA HP-UX.
10800 case "$host_cpu" in
10801 hppa*64*|ia64*)
10802 ;;
10803 *)
10804 lt_prog_compiler_pic_CXX='-fPIC'
10805 ;;
10806 esac
10807 ;;
10808 *)
10809 lt_prog_compiler_pic_CXX='-fPIC'
10810 ;;
10811 esac
10812 else
10813 case $host_os in
10814 aix4* | aix5*)
10815 # All AIX code is PIC.
10816 if test "$host_cpu" = ia64; then
10817 # AIX 5 now supports IA64 processor
10818 lt_prog_compiler_static_CXX='-Bstatic'
10819 else
10820 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10821 fi
10822 ;;
10823 chorus*)
10824 case $cc_basename in
10825 cxch68)
10826 # Green Hills C++ Compiler
10827 # _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"
10828 ;;
10829 esac
10830 ;;
10831 dgux*)
10832 case $cc_basename in
10833 ec++)
10834 lt_prog_compiler_pic_CXX='-KPIC'
10835 ;;
10836 ghcx)
10837 # Green Hills C++ Compiler
10838 lt_prog_compiler_pic_CXX='-pic'
10839 ;;
10840 *)
10841 ;;
10842 esac
10843 ;;
10844 freebsd* | kfreebsd*-gnu)
10845 # FreeBSD uses GNU C++
10846 ;;
10847 hpux9* | hpux10* | hpux11*)
10848 case $cc_basename in
10849 CC)
10850 lt_prog_compiler_wl_CXX='-Wl,'
10851 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10852 if test "$host_cpu" != ia64; then
10853 lt_prog_compiler_pic_CXX='+Z'
10854 fi
10855 ;;
10856 aCC)
10857 lt_prog_compiler_wl_CXX='-Wl,'
10858 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10859 case "$host_cpu" in
10860 hppa*64*|ia64*)
10861 # +Z the default
10862 ;;
10863 *)
10864 lt_prog_compiler_pic_CXX='+Z'
10865 ;;
10866 esac
10867 ;;
10868 *)
10869 ;;
10870 esac
10871 ;;
10872 irix5* | irix6* | nonstopux*)
10873 case $cc_basename in
10874 CC)
10875 lt_prog_compiler_wl_CXX='-Wl,'
10876 lt_prog_compiler_static_CXX='-non_shared'
10877 # CC pic flag -KPIC is the default.
10878 ;;
10879 *)
10880 ;;
10881 esac
10882 ;;
10883 linux*)
10884 case $cc_basename in
10885 KCC)
10886 # KAI C++ Compiler
10887 lt_prog_compiler_wl_CXX='--backend -Wl,'
10888 lt_prog_compiler_pic_CXX='-fPIC'
10889 ;;
10890 icpc)
10891 # Intel C++
10892 lt_prog_compiler_wl_CXX='-Wl,'
10893 lt_prog_compiler_pic_CXX='-KPIC'
10894 lt_prog_compiler_static_CXX='-static'
10895 ;;
10896 cxx)
10897 # Compaq C++
10898 # Make sure the PIC flag is empty. It appears that all Alpha
10899 # Linux and Compaq Tru64 Unix objects are PIC.
10900 lt_prog_compiler_pic_CXX=
10901 lt_prog_compiler_static_CXX='-non_shared'
10902 ;;
10903 *)
10904 ;;
10905 esac
10906 ;;
10907 lynxos*)
10908 ;;
10909 m88k*)
10910 ;;
10911 mvs*)
10912 case $cc_basename in
10913 cxx)
10914 lt_prog_compiler_pic_CXX='-W c,exportall'
10915 ;;
10916 *)
10917 ;;
10918 esac
10919 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000010920 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010921 ;;
10922 osf3* | osf4* | osf5*)
10923 case $cc_basename in
10924 KCC)
10925 lt_prog_compiler_wl_CXX='--backend -Wl,'
10926 ;;
10927 RCC)
10928 # Rational C++ 2.4.1
10929 lt_prog_compiler_pic_CXX='-pic'
10930 ;;
10931 cxx)
10932 # Digital/Compaq C++
10933 lt_prog_compiler_wl_CXX='-Wl,'
10934 # Make sure the PIC flag is empty. It appears that all Alpha
10935 # Linux and Compaq Tru64 Unix objects are PIC.
10936 lt_prog_compiler_pic_CXX=
10937 lt_prog_compiler_static_CXX='-non_shared'
10938 ;;
10939 *)
10940 ;;
10941 esac
10942 ;;
10943 psos*)
10944 ;;
10945 sco*)
10946 case $cc_basename in
10947 CC)
10948 lt_prog_compiler_pic_CXX='-fPIC'
10949 ;;
10950 *)
10951 ;;
10952 esac
10953 ;;
10954 solaris*)
10955 case $cc_basename in
10956 CC)
10957 # Sun C++ 4.2, 5.x and Centerline C++
10958 lt_prog_compiler_pic_CXX='-KPIC'
10959 lt_prog_compiler_static_CXX='-Bstatic'
10960 lt_prog_compiler_wl_CXX='-Qoption ld '
10961 ;;
10962 gcx)
10963 # Green Hills C++ Compiler
10964 lt_prog_compiler_pic_CXX='-PIC'
10965 ;;
10966 *)
10967 ;;
10968 esac
10969 ;;
10970 sunos4*)
10971 case $cc_basename in
10972 CC)
10973 # Sun C++ 4.x
10974 lt_prog_compiler_pic_CXX='-pic'
10975 lt_prog_compiler_static_CXX='-Bstatic'
10976 ;;
10977 lcc)
10978 # Lucid
10979 lt_prog_compiler_pic_CXX='-pic'
10980 ;;
10981 *)
10982 ;;
10983 esac
10984 ;;
10985 tandem*)
10986 case $cc_basename in
10987 NCC)
10988 # NonStop-UX NCC 3.20
10989 lt_prog_compiler_pic_CXX='-KPIC'
10990 ;;
10991 *)
10992 ;;
10993 esac
10994 ;;
10995 unixware*)
10996 ;;
10997 vxworks*)
10998 ;;
10999 *)
11000 lt_prog_compiler_can_build_shared_CXX=no
11001 ;;
11002 esac
11003 fi
11004
11005echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11006echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11007
11008#
11009# Check to make sure the PIC flag actually works.
11010#
11011if test -n "$lt_prog_compiler_pic_CXX"; then
11012
11013echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11014echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11015if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017else
11018 lt_prog_compiler_pic_works_CXX=no
11019 ac_outfile=conftest.$ac_objext
11020 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11021 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11022 # Insert the option either (1) after the last *FLAGS variable, or
11023 # (2) before a word containing "conftest.", or (3) at the end.
11024 # Note that $ac_compile itself does not contain backslashes and begins
11025 # with a dollar sign (not a hyphen), so the echo should work correctly.
11026 # The option is referenced via a variable to avoid confusing sed.
11027 lt_compile=`echo "$ac_compile" | $SED \
11028 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11030 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000011031 (eval echo "\"\$as_me:11031: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011032 (eval "$lt_compile" 2>conftest.err)
11033 ac_status=$?
11034 cat conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000011035 echo "$as_me:11035: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011036 if (exit $ac_status) && test -s "$ac_outfile"; then
11037 # The compiler can only warn and ignore the option if not recognized
11038 # So say no if there are warnings
11039 if test ! -s conftest.err; then
11040 lt_prog_compiler_pic_works_CXX=yes
11041 fi
11042 fi
11043 $rm conftest*
11044
11045fi
11046echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11047echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11048
11049if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11050 case $lt_prog_compiler_pic_CXX in
11051 "" | " "*) ;;
11052 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11053 esac
11054else
11055 lt_prog_compiler_pic_CXX=
11056 lt_prog_compiler_can_build_shared_CXX=no
11057fi
11058
11059fi
11060case "$host_os" in
11061 # For platforms which do not support PIC, -DPIC is meaningless:
11062 *djgpp*)
11063 lt_prog_compiler_pic_CXX=
11064 ;;
11065 *)
11066 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11067 ;;
11068esac
11069
11070echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11071echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11072if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else
11075 lt_cv_prog_compiler_c_o_CXX=no
11076 $rm -r conftest 2>/dev/null
11077 mkdir conftest
11078 cd conftest
11079 mkdir out
11080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11081
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011082 lt_compiler_flag="-o out/conftest2.$ac_objext"
11083 # Insert the option either (1) after the last *FLAGS variable, or
11084 # (2) before a word containing "conftest.", or (3) at the end.
11085 # Note that $ac_compile itself does not contain backslashes and begins
11086 # with a dollar sign (not a hyphen), so the echo should work correctly.
11087 lt_compile=`echo "$ac_compile" | $SED \
11088 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11090 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000011091 (eval echo "\"\$as_me:11091: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011092 (eval "$lt_compile" 2>out/conftest.err)
11093 ac_status=$?
11094 cat out/conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000011095 echo "$as_me:11095: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11097 then
11098 # The compiler can only warn and ignore the option if not recognized
11099 # So say no if there are warnings
11100 if test ! -s out/conftest.err; then
11101 lt_cv_prog_compiler_c_o_CXX=yes
11102 fi
11103 fi
11104 chmod u+w .
11105 $rm conftest*
11106 # SGI C++ compiler will create directory out/ii_files/ for
11107 # template instantiation
11108 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11109 $rm out/* && rmdir out
11110 cd ..
11111 rmdir conftest
11112 $rm conftest*
11113
11114fi
11115echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11116echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11117
11118
11119hard_links="nottested"
11120if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11121 # do not overwrite the value of need_locks provided by the user
11122 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11123echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11124 hard_links=yes
11125 $rm conftest*
11126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11127 touch conftest.a
11128 ln conftest.a conftest.b 2>&5 || hard_links=no
11129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11130 echo "$as_me:$LINENO: result: $hard_links" >&5
11131echo "${ECHO_T}$hard_links" >&6
11132 if test "$hard_links" = no; then
11133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11134echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11135 need_locks=warn
11136 fi
11137else
11138 need_locks=no
11139fi
11140
11141echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11142echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11143
11144 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11145 case $host_os in
11146 aix4* | aix5*)
11147 # If we're using GNU nm, then we don't want the "-C" option.
11148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11149 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11150 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'
11151 else
11152 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'
11153 fi
11154 ;;
11155 pw32*)
11156 export_symbols_cmds_CXX="$ltdll_cmds"
11157 ;;
11158 cygwin* | mingw*)
11159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11160 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000011161 linux*)
11162 link_all_deplibs_CXX=no
11163 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011164 *)
11165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11166 ;;
11167 esac
11168
11169echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11170echo "${ECHO_T}$ld_shlibs_CXX" >&6
11171test "$ld_shlibs_CXX" = no && can_build_shared=no
11172
11173variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174if test "$GCC" = yes; then
11175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11176fi
11177
11178#
11179# Do we need to explicitly link libc?
11180#
11181case "x$archive_cmds_need_lc_CXX" in
11182x|xyes)
11183 # Assume -lc should be added
11184 archive_cmds_need_lc_CXX=yes
11185
11186 if test "$enable_shared" = yes && test "$GCC" = yes; then
11187 case $archive_cmds_CXX in
11188 *'~'*)
11189 # FIXME: we may have to deal with multi-command sequences.
11190 ;;
11191 '$CC '*)
11192 # Test whether the compiler implicitly links with -lc since on some
11193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11194 # to ld, don't add -lc before -lgcc.
11195 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11197 $rm conftest*
11198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11199
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201 (eval $ac_compile) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } 2>conftest.err; then
11205 soname=conftest
11206 lib=conftest
11207 libobjs=conftest.$ac_objext
11208 deplibs=
11209 wl=$lt_prog_compiler_wl_CXX
11210 compiler_flags=-v
11211 linker_flags=-v
11212 verstring=
11213 output_objdir=.
11214 libname=conftest
11215 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11216 allow_undefined_flag_CXX=
11217 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11218 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }
11222 then
11223 archive_cmds_need_lc_CXX=no
11224 else
11225 archive_cmds_need_lc_CXX=yes
11226 fi
11227 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11228 else
11229 cat conftest.err 1>&5
11230 fi
11231 $rm conftest*
11232 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11233echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11234 ;;
11235 esac
11236 fi
11237 ;;
11238esac
11239
11240echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11241echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11242library_names_spec=
11243libname_spec='lib$name'
11244soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000011245shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011246postinstall_cmds=
11247postuninstall_cmds=
11248finish_cmds=
11249finish_eval=
11250shlibpath_var=
11251shlibpath_overrides_runpath=unknown
11252version_type=none
11253dynamic_linker="$host_os ld.so"
11254sys_lib_dlsearch_path_spec="/lib /usr/lib"
11255if test "$GCC" = yes; then
11256 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11257 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11258 # if the path contains ";" then we assume it to be the separator
11259 # otherwise default to the standard path separator (i.e. ":") - it is
11260 # assumed that no part of a normal pathname contains ";" but that should
11261 # okay in the real world where ";" in dirpaths is itself problematic.
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11263 else
11264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11265 fi
11266else
11267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11268fi
11269need_lib_prefix=unknown
11270hardcode_into_libs=no
11271
11272# when you set need_version to no, make sure it does not cause -set_version
11273# flags to be left without arguments
11274need_version=unknown
11275
11276case $host_os in
11277aix3*)
11278 version_type=linux
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11280 shlibpath_var=LIBPATH
11281
11282 # AIX 3 has no versioning support, so we append a major version to the name.
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 ;;
11285
11286aix4* | aix5*)
11287 version_type=linux
11288 need_lib_prefix=no
11289 need_version=no
11290 hardcode_into_libs=yes
11291 if test "$host_cpu" = ia64; then
11292 # AIX 5 supports IA64
11293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 else
11296 # With GCC up to 2.95.x, collect2 would create an import file
11297 # for dependence libraries. The import file would start with
11298 # the line `#! .'. This would cause the generated library to
11299 # depend on `.', always an invalid library. This was fixed in
11300 # development snapshots of GCC prior to 3.0.
11301 case $host_os in
11302 aix4 | aix4.[01] | aix4.[01].*)
11303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11304 echo ' yes '
11305 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11306 :
11307 else
11308 can_build_shared=no
11309 fi
11310 ;;
11311 esac
11312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11313 # soname into executable. Probably we can add versioning support to
11314 # collect2, so additional links can be useful in future.
11315 if test "$aix_use_runtimelinking" = yes; then
11316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11317 # instead of lib<name>.a to let people know that these are not
11318 # typical AIX shared libraries.
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 else
11321 # We preserve .a as extension for shared libraries through AIX4.2
11322 # and later when we are not doing run time linking.
11323 library_names_spec='${libname}${release}.a $libname.a'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 fi
11326 shlibpath_var=LIBPATH
11327 fi
11328 ;;
11329
11330amigaos*)
11331 library_names_spec='$libname.ixlibrary $libname.a'
11332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11333 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'
11334 ;;
11335
11336beos*)
11337 library_names_spec='${libname}${shared_ext}'
11338 dynamic_linker="$host_os ld.so"
11339 shlibpath_var=LIBRARY_PATH
11340 ;;
11341
11342bsdi4*)
11343 version_type=linux
11344 need_version=no
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11351 # the default ld.so.conf also contains /usr/contrib/lib and
11352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11353 # libtool to hard-code these into programs
11354 ;;
11355
11356cygwin* | mingw* | pw32*)
11357 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000011358 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011359 need_version=no
11360 need_lib_prefix=no
11361
11362 case $GCC,$host_os in
11363 yes,cygwin* | yes,mingw* | yes,pw32*)
11364 library_names_spec='$libname.dll.a'
11365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11366 postinstall_cmds='base_file=`basename \${file}`~
11367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11368 dldir=$destdir/`dirname \$dlpath`~
11369 test -d \$dldir || mkdir -p \$dldir~
11370 $install_prog $dir/$dlname \$dldir/$dlname'
11371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11373 $rm \$dlpath'
11374 shlibpath_overrides_runpath=yes
11375
11376 case $host_os in
11377 cygwin*)
11378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11381 ;;
11382 mingw*)
11383 # MinGW DLLs use traditional 'lib' prefix
11384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11387 # It is most probably a Windows format PATH printed by
11388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11389 # path with ; separators, and with drive letters. We can handle the
11390 # drive letters (cygwin fileutils understands them), so leave them,
11391 # especially as we might pass files found there to a mingw objdump,
11392 # which wouldn't understand a cygwinified path. Ahh.
11393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11394 else
11395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11396 fi
11397 ;;
11398 pw32*)
11399 # pw32 DLLs use 'pw' prefix rather than 'lib'
11400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11401 ;;
11402 esac
11403 ;;
11404
11405 *)
11406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11407 ;;
11408 esac
11409 dynamic_linker='Win32 ld.exe'
11410 # FIXME: first we should search . and the directory the executable is in
11411 shlibpath_var=PATH
11412 ;;
11413
11414darwin* | rhapsody*)
11415 dynamic_linker="$host_os dyld"
11416 version_type=darwin
11417 need_lib_prefix=no
11418 need_version=no
11419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11420 soname_spec='${libname}${release}${major}$shared_ext'
11421 shlibpath_overrides_runpath=yes
11422 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000011423 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11425 if test "$GCC" = yes; then
11426 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"`
11427 else
11428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11429 fi
11430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11431 ;;
11432
11433dgux*)
11434 version_type=linux
11435 need_lib_prefix=no
11436 need_version=no
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 ;;
11441
11442freebsd1*)
11443 dynamic_linker=no
11444 ;;
11445
11446kfreebsd*-gnu)
11447 version_type=linux
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=no
11454 hardcode_into_libs=yes
11455 dynamic_linker='GNU ld.so'
11456 ;;
11457
11458freebsd*)
11459 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11460 version_type=freebsd-$objformat
11461 case $version_type in
11462 freebsd-elf*)
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11464 need_version=no
11465 need_lib_prefix=no
11466 ;;
11467 freebsd-*)
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11469 need_version=yes
11470 ;;
11471 esac
11472 shlibpath_var=LD_LIBRARY_PATH
11473 case $host_os in
11474 freebsd2*)
11475 shlibpath_overrides_runpath=yes
11476 ;;
11477 freebsd3.01* | freebsdelf3.01*)
11478 shlibpath_overrides_runpath=yes
11479 hardcode_into_libs=yes
11480 ;;
11481 *) # from 3.2 on
11482 shlibpath_overrides_runpath=no
11483 hardcode_into_libs=yes
11484 ;;
11485 esac
11486 ;;
11487
11488gnu*)
11489 version_type=linux
11490 need_lib_prefix=no
11491 need_version=no
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 hardcode_into_libs=yes
11496 ;;
11497
11498hpux9* | hpux10* | hpux11*)
11499 # Give a soname corresponding to the major version so that dld.sl refuses to
11500 # link against other versions.
11501 version_type=sunos
11502 need_lib_prefix=no
11503 need_version=no
11504 case "$host_cpu" in
11505 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000011506 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011507 hardcode_into_libs=yes
11508 dynamic_linker="$host_os dld.so"
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 if test "X$HPUX_IA64_MODE" = X32; then
11514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11515 else
11516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11517 fi
11518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11519 ;;
11520 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000011521 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011522 hardcode_into_libs=yes
11523 dynamic_linker="$host_os dld.sl"
11524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527 soname_spec='${libname}${release}${shared_ext}$major'
11528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11530 ;;
11531 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000011532 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011533 dynamic_linker="$host_os dld.sl"
11534 shlibpath_var=SHLIB_PATH
11535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 ;;
11539 esac
11540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11541 postinstall_cmds='chmod 555 $lib'
11542 ;;
11543
11544irix5* | irix6* | nonstopux*)
11545 case $host_os in
11546 nonstopux*) version_type=nonstopux ;;
11547 *)
11548 if test "$lt_cv_prog_gnu_ld" = yes; then
11549 version_type=linux
11550 else
11551 version_type=irix
11552 fi ;;
11553 esac
11554 need_lib_prefix=no
11555 need_version=no
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11558 case $host_os in
11559 irix5* | nonstopux*)
11560 libsuff= shlibsuff=
11561 ;;
11562 *)
11563 case $LD in # libtool.m4 will add one of these switches to LD
11564 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565 libsuff= shlibsuff= libmagic=32-bit;;
11566 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567 libsuff=32 shlibsuff=N32 libmagic=N32;;
11568 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570 *) libsuff= shlibsuff= libmagic=never-match;;
11571 esac
11572 ;;
11573 esac
11574 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575 shlibpath_overrides_runpath=no
11576 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11577 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11578 hardcode_into_libs=yes
11579 ;;
11580
11581# No shared lib support for Linux oldld, aout, or coff.
11582linux*oldld* | linux*aout* | linux*coff*)
11583 dynamic_linker=no
11584 ;;
11585
11586# This must be Linux ELF.
11587linux*)
11588 version_type=linux
11589 need_lib_prefix=no
11590 need_version=no
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=no
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11600
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011601 # Append ld.so.conf contents to the search path
11602 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000011603 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011605 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011606
11607 # We used to test for /lib/ld.so.1 and disable shared libraries on
11608 # powerpc, because MkLinux only supported shared libraries with the
11609 # GNU dynamic linker. Since this was broken with cross compilers,
11610 # most powerpc-linux boxes support dynamic linking these days and
11611 # people can always --disable-shared, the test was removed, and we
11612 # assume the GNU/Linux dynamic linker is in use.
11613 dynamic_linker='GNU/Linux ld.so'
11614 ;;
11615
11616knetbsd*-gnu)
11617 version_type=linux
11618 need_lib_prefix=no
11619 need_version=no
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 shlibpath_var=LD_LIBRARY_PATH
11623 shlibpath_overrides_runpath=no
11624 hardcode_into_libs=yes
11625 dynamic_linker='GNU ld.so'
11626 ;;
11627
11628netbsd*)
11629 version_type=sunos
11630 need_lib_prefix=no
11631 need_version=no
11632 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11635 dynamic_linker='NetBSD (a.out) ld.so'
11636 else
hp.com!davidm2de17682004-04-20 16:53:44 +000011637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011638 soname_spec='${libname}${release}${shared_ext}$major'
11639 dynamic_linker='NetBSD ld.elf_so'
11640 fi
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11644 ;;
11645
11646newsos6)
11647 version_type=linux
11648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 ;;
11652
11653nto-qnx*)
11654 version_type=linux
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=yes
11661 ;;
11662
11663openbsd*)
11664 version_type=sunos
11665 need_lib_prefix=no
11666 need_version=yes
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11671 case $host_os in
11672 openbsd2.[89] | openbsd2.[89].*)
11673 shlibpath_overrides_runpath=no
11674 ;;
11675 *)
11676 shlibpath_overrides_runpath=yes
11677 ;;
11678 esac
11679 else
11680 shlibpath_overrides_runpath=yes
11681 fi
11682 ;;
11683
11684os2*)
11685 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000011686 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011687 need_lib_prefix=no
11688 library_names_spec='$libname${shared_ext} $libname.a'
11689 dynamic_linker='OS/2 ld.exe'
11690 shlibpath_var=LIBPATH
11691 ;;
11692
11693osf3* | osf4* | osf5*)
11694 version_type=osf
11695 need_lib_prefix=no
11696 need_version=no
11697 soname_spec='${libname}${release}${shared_ext}$major'
11698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11701 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11702 ;;
11703
11704sco3.2v5*)
11705 version_type=osf
11706 soname_spec='${libname}${release}${shared_ext}$major'
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 ;;
11710
11711solaris*)
11712 version_type=linux
11713 need_lib_prefix=no
11714 need_version=no
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11720 # ldd complains unless libraries are executable
11721 postinstall_cmds='chmod +x $lib'
11722 ;;
11723
11724sunos4*)
11725 version_type=sunos
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 if test "$with_gnu_ld" = yes; then
11731 need_lib_prefix=no
11732 fi
11733 need_version=yes
11734 ;;
11735
11736sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11737 version_type=linux
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 case $host_vendor in
11742 sni)
11743 shlibpath_overrides_runpath=no
11744 need_lib_prefix=no
11745 export_dynamic_flag_spec='${wl}-Blargedynsym'
11746 runpath_var=LD_RUN_PATH
11747 ;;
11748 siemens)
11749 need_lib_prefix=no
11750 ;;
11751 motorola)
11752 need_lib_prefix=no
11753 need_version=no
11754 shlibpath_overrides_runpath=no
11755 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11756 ;;
11757 esac
11758 ;;
11759
11760sysv4*MP*)
11761 if test -d /usr/nec ;then
11762 version_type=linux
11763 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11764 soname_spec='$libname${shared_ext}.$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 fi
11767 ;;
11768
11769uts4*)
11770 version_type=linux
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 ;;
11775
11776*)
11777 dynamic_linker=no
11778 ;;
11779esac
11780echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11781echo "${ECHO_T}$dynamic_linker" >&6
11782test "$dynamic_linker" = no && can_build_shared=no
11783
11784echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11785echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11786hardcode_action_CXX=
11787if test -n "$hardcode_libdir_flag_spec_CXX" || \
11788 test -n "$runpath_var CXX" || \
11789 test "X$hardcode_automatic_CXX"="Xyes" ; then
11790
11791 # We can hardcode non-existant directories.
11792 if test "$hardcode_direct_CXX" != no &&
11793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11794 # have to relink, otherwise we might link with an installed library
11795 # when we should be linking with a yet-to-be-installed one
11796 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11797 test "$hardcode_minus_L_CXX" != no; then
11798 # Linking always hardcodes the temporary library directory.
11799 hardcode_action_CXX=relink
11800 else
11801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11802 hardcode_action_CXX=immediate
11803 fi
11804else
11805 # We cannot hardcode anything, or else we can only hardcode existing
11806 # directories.
11807 hardcode_action_CXX=unsupported
11808fi
11809echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11810echo "${ECHO_T}$hardcode_action_CXX" >&6
11811
11812if test "$hardcode_action_CXX" = relink; then
11813 # Fast installation is not supported
11814 enable_fast_install=no
11815elif test "$shlibpath_overrides_runpath" = yes ||
11816 test "$enable_shared" = no; then
11817 # Fast installation is not necessary
11818 enable_fast_install=needless
11819fi
11820
11821striplib=
11822old_striplib=
11823echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11824echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11825if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11826 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11827 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11828 echo "$as_me:$LINENO: result: yes" >&5
11829echo "${ECHO_T}yes" >&6
11830else
11831# FIXME - insert some real tests, host_os isn't really good enough
11832 case $host_os in
11833 darwin*)
11834 if test -n "$STRIP" ; then
11835 striplib="$STRIP -x"
11836 echo "$as_me:$LINENO: result: yes" >&5
11837echo "${ECHO_T}yes" >&6
11838 else
11839 echo "$as_me:$LINENO: result: no" >&5
11840echo "${ECHO_T}no" >&6
11841fi
11842 ;;
11843 *)
11844 echo "$as_me:$LINENO: result: no" >&5
11845echo "${ECHO_T}no" >&6
11846 ;;
11847 esac
11848fi
11849
11850if test "x$enable_dlopen" != xyes; then
11851 enable_dlopen=unknown
11852 enable_dlopen_self=unknown
11853 enable_dlopen_self_static=unknown
11854else
11855 lt_cv_dlopen=no
11856 lt_cv_dlopen_libs=
11857
11858 case $host_os in
11859 beos*)
11860 lt_cv_dlopen="load_add_on"
11861 lt_cv_dlopen_libs=
11862 lt_cv_dlopen_self=yes
11863 ;;
11864
11865 mingw* | pw32*)
11866 lt_cv_dlopen="LoadLibrary"
11867 lt_cv_dlopen_libs=
11868 ;;
11869
11870 cygwin*)
11871 lt_cv_dlopen="dlopen"
11872 lt_cv_dlopen_libs=
11873 ;;
11874
11875 darwin*)
11876 # if libdl is installed we need to link against it
11877 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11878echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11879if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 ac_check_lib_save_LIBS=$LIBS
11883LIBS="-ldl $LIBS"
11884cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890
11891/* Override any gcc2 internal prototype to avoid an error. */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895/* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11897char dlopen ();
11898int
11899main ()
11900{
11901dlopen ();
11902 ;
11903 return 0;
11904}
11905_ACEOF
11906rm -f conftest.$ac_objext conftest$ac_exeext
11907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011908 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011909 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_lib_dl_dlopen=yes
11928else
11929 echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
11932ac_cv_lib_dl_dlopen=no
11933fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011934rm -f conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011936LIBS=$ac_check_lib_save_LIBS
11937fi
11938echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11940if test $ac_cv_lib_dl_dlopen = yes; then
11941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11942else
11943
11944 lt_cv_dlopen="dyld"
11945 lt_cv_dlopen_libs=
11946 lt_cv_dlopen_self=yes
11947
11948fi
11949
11950 ;;
11951
11952 *)
11953 echo "$as_me:$LINENO: checking for shl_load" >&5
11954echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11955if test "${ac_cv_func_shl_load+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957else
11958 cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011964/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11966#define shl_load innocuous_shl_load
11967
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011968/* System header to define __stub macros and hopefully few prototypes,
11969 which can conflict with char shl_load (); below.
11970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11971 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011972
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011973#ifdef __STDC__
11974# include <limits.h>
11975#else
11976# include <assert.h>
11977#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000011978
11979#undef shl_load
11980
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011981/* Override any gcc2 internal prototype to avoid an error. */
11982#ifdef __cplusplus
11983extern "C"
11984{
11985#endif
11986/* We use char because int might match the return type of a gcc2
11987 builtin and then its argument prototype would still apply. */
11988char shl_load ();
11989/* The GNU C library defines this for functions which it implements
11990 to always fail with ENOSYS. Some functions are actually named
11991 something starting with __ and the normal name is an alias. */
11992#if defined (__stub_shl_load) || defined (__stub___shl_load)
11993choke me
11994#else
11995char (*f) () = shl_load;
11996#endif
11997#ifdef __cplusplus
11998}
11999#endif
12000
12001int
12002main ()
12003{
12004return f != shl_load;
12005 ;
12006 return 0;
12007}
12008_ACEOF
12009rm -f conftest.$ac_objext conftest$ac_exeext
12010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012011 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012012 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012013 grep -v '^ *+' conftest.er1 >conftest.err
12014 rm -f conftest.er1
12015 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; } &&
12024 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_cv_func_shl_load=yes
12031else
12032 echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035ac_cv_func_shl_load=no
12036fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012037rm -f conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012039fi
12040echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12041echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12042if test $ac_cv_func_shl_load = yes; then
12043 lt_cv_dlopen="shl_load"
12044else
12045 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12046echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12047if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 ac_check_lib_save_LIBS=$LIBS
12051LIBS="-ldld $LIBS"
12052cat >conftest.$ac_ext <<_ACEOF
12053/* confdefs.h. */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h. */
12058
12059/* Override any gcc2 internal prototype to avoid an error. */
12060#ifdef __cplusplus
12061extern "C"
12062#endif
12063/* We use char because int might match the return type of a gcc2
12064 builtin and then its argument prototype would still apply. */
12065char shl_load ();
12066int
12067main ()
12068{
12069shl_load ();
12070 ;
12071 return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext conftest$ac_exeext
12075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012076 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012077 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012083 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_lib_dld_shl_load=yes
12096else
12097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100ac_cv_lib_dld_shl_load=no
12101fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012102rm -f conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012104LIBS=$ac_check_lib_save_LIBS
12105fi
12106echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12107echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12108if test $ac_cv_lib_dld_shl_load = yes; then
12109 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12110else
12111 echo "$as_me:$LINENO: checking for dlopen" >&5
12112echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12113if test "${ac_cv_func_dlopen+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12115else
12116 cat >conftest.$ac_ext <<_ACEOF
12117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012122/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12124#define dlopen innocuous_dlopen
12125
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012126/* System header to define __stub macros and hopefully few prototypes,
12127 which can conflict with char dlopen (); below.
12128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12129 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012130
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012136
12137#undef dlopen
12138
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012139/* Override any gcc2 internal prototype to avoid an error. */
12140#ifdef __cplusplus
12141extern "C"
12142{
12143#endif
12144/* We use char because int might match the return type of a gcc2
12145 builtin and then its argument prototype would still apply. */
12146char dlopen ();
12147/* The GNU C library defines this for functions which it implements
12148 to always fail with ENOSYS. Some functions are actually named
12149 something starting with __ and the normal name is an alias. */
12150#if defined (__stub_dlopen) || defined (__stub___dlopen)
12151choke me
12152#else
12153char (*f) () = dlopen;
12154#endif
12155#ifdef __cplusplus
12156}
12157#endif
12158
12159int
12160main ()
12161{
12162return f != dlopen;
12163 ;
12164 return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext conftest$ac_exeext
12168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012169 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012170 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_func_dlopen=yes
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193ac_cv_func_dlopen=no
12194fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012195rm -f conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012197fi
12198echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12199echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12200if test $ac_cv_func_dlopen = yes; then
12201 lt_cv_dlopen="dlopen"
12202else
12203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 ac_check_lib_save_LIBS=$LIBS
12209LIBS="-ldl $LIBS"
12210cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216
12217/* Override any gcc2 internal prototype to avoid an error. */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221/* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12223char dlopen ();
12224int
12225main ()
12226{
12227dlopen ();
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext conftest$ac_exeext
12233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012234 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012235 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } &&
12247 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_lib_dl_dlopen=yes
12254else
12255 echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258ac_cv_lib_dl_dlopen=no
12259fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012260rm -f conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012262LIBS=$ac_check_lib_save_LIBS
12263fi
12264echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12265echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12266if test $ac_cv_lib_dl_dlopen = yes; then
12267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12268else
12269 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12270echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12271if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 ac_check_lib_save_LIBS=$LIBS
12275LIBS="-lsvld $LIBS"
12276cat >conftest.$ac_ext <<_ACEOF
12277/* confdefs.h. */
12278_ACEOF
12279cat confdefs.h >>conftest.$ac_ext
12280cat >>conftest.$ac_ext <<_ACEOF
12281/* end confdefs.h. */
12282
12283/* Override any gcc2 internal prototype to avoid an error. */
12284#ifdef __cplusplus
12285extern "C"
12286#endif
12287/* We use char because int might match the return type of a gcc2
12288 builtin and then its argument prototype would still apply. */
12289char dlopen ();
12290int
12291main ()
12292{
12293dlopen ();
12294 ;
12295 return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012300 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012301 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_lib_svld_dlopen=yes
12320else
12321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324ac_cv_lib_svld_dlopen=no
12325fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012326rm -f conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012328LIBS=$ac_check_lib_save_LIBS
12329fi
12330echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12331echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12332if test $ac_cv_lib_svld_dlopen = yes; then
12333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12334else
12335 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12336echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12337if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339else
12340 ac_check_lib_save_LIBS=$LIBS
12341LIBS="-ldld $LIBS"
12342cat >conftest.$ac_ext <<_ACEOF
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */
12348
12349/* Override any gcc2 internal prototype to avoid an error. */
12350#ifdef __cplusplus
12351extern "C"
12352#endif
12353/* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */
12355char dld_link ();
12356int
12357main ()
12358{
12359dld_link ();
12360 ;
12361 return 0;
12362}
12363_ACEOF
12364rm -f conftest.$ac_objext conftest$ac_exeext
12365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012366 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012367 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012368 grep -v '^ *+' conftest.er1 >conftest.err
12369 rm -f conftest.er1
12370 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_lib_dld_dld_link=yes
12386else
12387 echo "$as_me: failed program was:" >&5
12388sed 's/^/| /' conftest.$ac_ext >&5
12389
12390ac_cv_lib_dld_dld_link=no
12391fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000012392rm -f conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012394LIBS=$ac_check_lib_save_LIBS
12395fi
12396echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12397echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12398if test $ac_cv_lib_dld_dld_link = yes; then
12399 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12400fi
12401
12402
12403fi
12404
12405
12406fi
12407
12408
12409fi
12410
12411
12412fi
12413
12414
12415fi
12416
12417 ;;
12418 esac
12419
12420 if test "x$lt_cv_dlopen" != xno; then
12421 enable_dlopen=yes
12422 else
12423 enable_dlopen=no
12424 fi
12425
12426 case $lt_cv_dlopen in
12427 dlopen)
12428 save_CPPFLAGS="$CPPFLAGS"
12429 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12430
12431 save_LDFLAGS="$LDFLAGS"
12432 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12433
12434 save_LIBS="$LIBS"
12435 LIBS="$lt_cv_dlopen_libs $LIBS"
12436
12437 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12438echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12439if test "${lt_cv_dlopen_self+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 if test "$cross_compiling" = yes; then :
12443 lt_cv_dlopen_self=cross
12444else
12445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12446 lt_status=$lt_dlunknown
12447 cat > conftest.$ac_ext <<EOF
hp.com!davidm2de17682004-04-20 16:53:44 +000012448#line 12448 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012449#include "confdefs.h"
12450
12451#if HAVE_DLFCN_H
12452#include <dlfcn.h>
12453#endif
12454
12455#include <stdio.h>
12456
12457#ifdef RTLD_GLOBAL
12458# define LT_DLGLOBAL RTLD_GLOBAL
12459#else
12460# ifdef DL_GLOBAL
12461# define LT_DLGLOBAL DL_GLOBAL
12462# else
12463# define LT_DLGLOBAL 0
12464# endif
12465#endif
12466
12467/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12468 find out it does not work in some platform. */
12469#ifndef LT_DLLAZY_OR_NOW
12470# ifdef RTLD_LAZY
12471# define LT_DLLAZY_OR_NOW RTLD_LAZY
12472# else
12473# ifdef DL_LAZY
12474# define LT_DLLAZY_OR_NOW DL_LAZY
12475# else
12476# ifdef RTLD_NOW
12477# define LT_DLLAZY_OR_NOW RTLD_NOW
12478# else
12479# ifdef DL_NOW
12480# define LT_DLLAZY_OR_NOW DL_NOW
12481# else
12482# define LT_DLLAZY_OR_NOW 0
12483# endif
12484# endif
12485# endif
12486# endif
12487#endif
12488
12489#ifdef __cplusplus
12490extern "C" void exit (int);
12491#endif
12492
12493void fnord() { int i=42;}
12494int main ()
12495{
12496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12497 int status = $lt_dlunknown;
12498
12499 if (self)
12500 {
12501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12502 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12503 /* dlclose (self); */
12504 }
12505
12506 exit (status);
12507}
12508EOF
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510 (eval $ac_link) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12514 (./conftest; exit; ) 2>/dev/null
12515 lt_status=$?
12516 case x$lt_status in
12517 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12518 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12519 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12520 esac
12521 else :
12522 # compilation failed
12523 lt_cv_dlopen_self=no
12524 fi
12525fi
12526rm -fr conftest*
12527
12528
12529fi
12530echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12531echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12532
12533 if test "x$lt_cv_dlopen_self" = xyes; then
12534 LDFLAGS="$LDFLAGS $link_static_flag"
12535 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12536echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12537if test "${lt_cv_dlopen_self_static+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539else
12540 if test "$cross_compiling" = yes; then :
12541 lt_cv_dlopen_self_static=cross
12542else
12543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12544 lt_status=$lt_dlunknown
12545 cat > conftest.$ac_ext <<EOF
hp.com!davidm2de17682004-04-20 16:53:44 +000012546#line 12546 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012547#include "confdefs.h"
12548
12549#if HAVE_DLFCN_H
12550#include <dlfcn.h>
12551#endif
12552
12553#include <stdio.h>
12554
12555#ifdef RTLD_GLOBAL
12556# define LT_DLGLOBAL RTLD_GLOBAL
12557#else
12558# ifdef DL_GLOBAL
12559# define LT_DLGLOBAL DL_GLOBAL
12560# else
12561# define LT_DLGLOBAL 0
12562# endif
12563#endif
12564
12565/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12566 find out it does not work in some platform. */
12567#ifndef LT_DLLAZY_OR_NOW
12568# ifdef RTLD_LAZY
12569# define LT_DLLAZY_OR_NOW RTLD_LAZY
12570# else
12571# ifdef DL_LAZY
12572# define LT_DLLAZY_OR_NOW DL_LAZY
12573# else
12574# ifdef RTLD_NOW
12575# define LT_DLLAZY_OR_NOW RTLD_NOW
12576# else
12577# ifdef DL_NOW
12578# define LT_DLLAZY_OR_NOW DL_NOW
12579# else
12580# define LT_DLLAZY_OR_NOW 0
12581# endif
12582# endif
12583# endif
12584# endif
12585#endif
12586
12587#ifdef __cplusplus
12588extern "C" void exit (int);
12589#endif
12590
12591void fnord() { int i=42;}
12592int main ()
12593{
12594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12595 int status = $lt_dlunknown;
12596
12597 if (self)
12598 {
12599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12601 /* dlclose (self); */
12602 }
12603
12604 exit (status);
12605}
12606EOF
12607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12608 (eval $ac_link) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12612 (./conftest; exit; ) 2>/dev/null
12613 lt_status=$?
12614 case x$lt_status in
12615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12617 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12618 esac
12619 else :
12620 # compilation failed
12621 lt_cv_dlopen_self_static=no
12622 fi
12623fi
12624rm -fr conftest*
12625
12626
12627fi
12628echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12629echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12630 fi
12631
12632 CPPFLAGS="$save_CPPFLAGS"
12633 LDFLAGS="$save_LDFLAGS"
12634 LIBS="$save_LIBS"
12635 ;;
12636 esac
12637
12638 case $lt_cv_dlopen_self in
12639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12640 *) enable_dlopen_self=unknown ;;
12641 esac
12642
12643 case $lt_cv_dlopen_self_static in
12644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12645 *) enable_dlopen_self_static=unknown ;;
12646 esac
12647fi
12648
12649
12650# The else clause should only fire when bootstrapping the
12651# libtool distribution, otherwise you forgot to ship ltmain.sh
12652# with your package, and you will get complaints that there are
12653# no rules to generate ltmain.sh.
12654if test -f "$ltmain"; then
12655 # See if we are running on zsh, and set the options which allow our commands through
12656 # without removal of \ escapes.
12657 if test -n "${ZSH_VERSION+set}" ; then
12658 setopt NO_GLOB_SUBST
12659 fi
12660 # Now quote all the things that may contain metacharacters while being
12661 # careful not to overquote the AC_SUBSTed values. We take copies of the
12662 # variables and quote the copies for generation of the libtool script.
12663 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12664 SED SHELL STRIP \
12665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12667 deplibs_check_method reload_flag reload_cmds need_locks \
12668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12669 lt_cv_sys_global_symbol_to_c_name_address \
12670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12671 old_postinstall_cmds old_postuninstall_cmds \
12672 compiler_CXX \
12673 CC_CXX \
12674 LD_CXX \
12675 lt_prog_compiler_wl_CXX \
12676 lt_prog_compiler_pic_CXX \
12677 lt_prog_compiler_static_CXX \
12678 lt_prog_compiler_no_builtin_flag_CXX \
12679 export_dynamic_flag_spec_CXX \
12680 thread_safe_flag_spec_CXX \
12681 whole_archive_flag_spec_CXX \
12682 enable_shared_with_static_runtimes_CXX \
12683 old_archive_cmds_CXX \
12684 old_archive_from_new_cmds_CXX \
12685 predep_objects_CXX \
12686 postdep_objects_CXX \
12687 predeps_CXX \
12688 postdeps_CXX \
12689 compiler_lib_search_path_CXX \
12690 archive_cmds_CXX \
12691 archive_expsym_cmds_CXX \
12692 postinstall_cmds_CXX \
12693 postuninstall_cmds_CXX \
12694 old_archive_from_expsyms_cmds_CXX \
12695 allow_undefined_flag_CXX \
12696 no_undefined_flag_CXX \
12697 export_symbols_cmds_CXX \
12698 hardcode_libdir_flag_spec_CXX \
12699 hardcode_libdir_flag_spec_ld_CXX \
12700 hardcode_libdir_separator_CXX \
12701 hardcode_automatic_CXX \
12702 module_cmds_CXX \
12703 module_expsym_cmds_CXX \
12704 lt_cv_prog_compiler_c_o_CXX \
12705 exclude_expsyms_CXX \
12706 include_expsyms_CXX; do
12707
12708 case $var in
12709 old_archive_cmds_CXX | \
12710 old_archive_from_new_cmds_CXX | \
12711 archive_cmds_CXX | \
12712 archive_expsym_cmds_CXX | \
12713 module_cmds_CXX | \
12714 module_expsym_cmds_CXX | \
12715 old_archive_from_expsyms_cmds_CXX | \
12716 export_symbols_cmds_CXX | \
12717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12718 postinstall_cmds | postuninstall_cmds | \
12719 old_postinstall_cmds | old_postuninstall_cmds | \
12720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12721 # Double-quote double-evaled strings.
12722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12723 ;;
12724 *)
12725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12726 ;;
12727 esac
12728 done
12729
12730 case $lt_echo in
12731 *'\$0 --fallback-echo"')
12732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12733 ;;
12734 esac
12735
12736cfgfile="$ofile"
12737
12738 cat <<__EOF__ >> "$cfgfile"
12739# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12740
12741# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12742
12743# Shell to use when invoking shell scripts.
12744SHELL=$lt_SHELL
12745
12746# Whether or not to build shared libraries.
12747build_libtool_libs=$enable_shared
12748
12749# Whether or not to build static libraries.
12750build_old_libs=$enable_static
12751
12752# Whether or not to add -lc for building shared libraries.
12753build_libtool_need_lc=$archive_cmds_need_lc_CXX
12754
12755# Whether or not to disallow shared libs when runtime libs are static
12756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12757
12758# Whether or not to optimize for fast installation.
12759fast_install=$enable_fast_install
12760
12761# The host system.
12762host_alias=$host_alias
12763host=$host
12764
12765# An echo program that does not interpret backslashes.
12766echo=$lt_echo
12767
12768# The archiver.
12769AR=$lt_AR
12770AR_FLAGS=$lt_AR_FLAGS
12771
12772# A C compiler.
12773LTCC=$lt_LTCC
12774
12775# A language-specific compiler.
12776CC=$lt_compiler_CXX
12777
12778# Is the compiler the GNU C compiler?
12779with_gcc=$GCC_CXX
12780
12781# An ERE matcher.
12782EGREP=$lt_EGREP
12783
12784# The linker used to build libraries.
12785LD=$lt_LD_CXX
12786
12787# Whether we need hard or soft links.
12788LN_S=$lt_LN_S
12789
12790# A BSD-compatible nm program.
12791NM=$lt_NM
12792
12793# A symbol stripping program
12794STRIP=$lt_STRIP
12795
12796# Used to examine libraries when file_magic_cmd begins "file"
12797MAGIC_CMD=$MAGIC_CMD
12798
12799# Used on cygwin: DLL creation program.
12800DLLTOOL="$DLLTOOL"
12801
12802# Used on cygwin: object dumper.
12803OBJDUMP="$OBJDUMP"
12804
12805# Used on cygwin: assembler.
12806AS="$AS"
12807
12808# The name of the directory that contains temporary libtool files.
12809objdir=$objdir
12810
12811# How to create reloadable object files.
12812reload_flag=$lt_reload_flag
12813reload_cmds=$lt_reload_cmds
12814
12815# How to pass a linker flag through the compiler.
12816wl=$lt_lt_prog_compiler_wl_CXX
12817
12818# Object file suffix (normally "o").
12819objext="$ac_objext"
12820
12821# Old archive suffix (normally "a").
12822libext="$libext"
12823
12824# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000012825shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012826
12827# Executable file suffix (normally "").
12828exeext="$exeext"
12829
12830# Additional compiler flags for building library objects.
12831pic_flag=$lt_lt_prog_compiler_pic_CXX
12832pic_mode=$pic_mode
12833
12834# What is the maximum length of a command?
12835max_cmd_len=$lt_cv_sys_max_cmd_len
12836
12837# Does compiler simultaneously support -c and -o options?
12838compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12839
12840# Must we lock files when doing compilation ?
12841need_locks=$lt_need_locks
12842
12843# Do we need the lib prefix for modules?
12844need_lib_prefix=$need_lib_prefix
12845
12846# Do we need a version for libraries?
12847need_version=$need_version
12848
12849# Whether dlopen is supported.
12850dlopen_support=$enable_dlopen
12851
12852# Whether dlopen of programs is supported.
12853dlopen_self=$enable_dlopen_self
12854
12855# Whether dlopen of statically linked programs is supported.
12856dlopen_self_static=$enable_dlopen_self_static
12857
12858# Compiler flag to prevent dynamic linking.
12859link_static_flag=$lt_lt_prog_compiler_static_CXX
12860
12861# Compiler flag to turn off builtin functions.
12862no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12863
12864# Compiler flag to allow reflexive dlopens.
12865export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12866
12867# Compiler flag to generate shared objects directly from archives.
12868whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12869
12870# Compiler flag to generate thread-safe objects.
12871thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12872
12873# Library versioning type.
12874version_type=$version_type
12875
12876# Format of library name prefix.
12877libname_spec=$lt_libname_spec
12878
12879# List of archive names. First name is the real one, the rest are links.
12880# The last name is the one that the linker finds with -lNAME.
12881library_names_spec=$lt_library_names_spec
12882
12883# The coded name of the library, if different from the real name.
12884soname_spec=$lt_soname_spec
12885
12886# Commands used to build and install an old-style archive.
12887RANLIB=$lt_RANLIB
12888old_archive_cmds=$lt_old_archive_cmds_CXX
12889old_postinstall_cmds=$lt_old_postinstall_cmds
12890old_postuninstall_cmds=$lt_old_postuninstall_cmds
12891
12892# Create an old-style archive from a shared archive.
12893old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12894
12895# Create a temporary old-style archive to link instead of a shared archive.
12896old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12897
12898# Commands used to build and install a shared archive.
12899archive_cmds=$lt_archive_cmds_CXX
12900archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12901postinstall_cmds=$lt_postinstall_cmds
12902postuninstall_cmds=$lt_postuninstall_cmds
12903
12904# Commands used to build a loadable module (assumed same as above if empty)
12905module_cmds=$lt_module_cmds_CXX
12906module_expsym_cmds=$lt_module_expsym_cmds_CXX
12907
12908# Commands to strip libraries.
12909old_striplib=$lt_old_striplib
12910striplib=$lt_striplib
12911
12912# Dependencies to place before the objects being linked to create a
12913# shared library.
12914predep_objects=$lt_predep_objects_CXX
12915
12916# Dependencies to place after the objects being linked to create a
12917# shared library.
12918postdep_objects=$lt_postdep_objects_CXX
12919
12920# Dependencies to place before the objects being linked to create a
12921# shared library.
12922predeps=$lt_predeps_CXX
12923
12924# Dependencies to place after the objects being linked to create a
12925# shared library.
12926postdeps=$lt_postdeps_CXX
12927
12928# The library search path used internally by the compiler when linking
12929# a shared library.
12930compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12931
12932# Method to check whether dependent libraries are shared objects.
12933deplibs_check_method=$lt_deplibs_check_method
12934
12935# Command to use when deplibs_check_method == file_magic.
12936file_magic_cmd=$lt_file_magic_cmd
12937
12938# Flag that allows shared libraries with undefined symbols to be built.
12939allow_undefined_flag=$lt_allow_undefined_flag_CXX
12940
12941# Flag that forces no undefined symbols.
12942no_undefined_flag=$lt_no_undefined_flag_CXX
12943
12944# Commands used to finish a libtool library installation in a directory.
12945finish_cmds=$lt_finish_cmds
12946
12947# Same as above, but a single script fragment to be evaled but not shown.
12948finish_eval=$lt_finish_eval
12949
12950# Take the output of nm and produce a listing of raw symbols and C names.
12951global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12952
12953# Transform the output of nm in a proper C declaration
12954global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12955
12956# Transform the output of nm in a C name address pair
12957global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12958
12959# This is the shared library runtime path variable.
12960runpath_var=$runpath_var
12961
12962# This is the shared library path variable.
12963shlibpath_var=$shlibpath_var
12964
12965# Is shlibpath searched before the hard-coded library search path?
12966shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12967
12968# How to hardcode a shared library path into an executable.
12969hardcode_action=$hardcode_action_CXX
12970
12971# Whether we should hardcode library paths into libraries.
12972hardcode_into_libs=$hardcode_into_libs
12973
12974# Flag to hardcode \$libdir into a binary during linking.
12975# This must work even if \$libdir does not exist.
12976hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12977
12978# If ld is used when linking, flag to hardcode \$libdir into
12979# a binary during linking. This must work even if \$libdir does
12980# not exist.
12981hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12982
12983# Whether we need a single -rpath flag with a separated argument.
12984hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12985
12986# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12987# resulting binary.
12988hardcode_direct=$hardcode_direct_CXX
12989
12990# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12991# resulting binary.
12992hardcode_minus_L=$hardcode_minus_L_CXX
12993
12994# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12995# the resulting binary.
12996hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12997
12998# Set to yes if building a shared library automatically hardcodes DIR into the library
12999# and all subsequent libraries and executables linked against it.
13000hardcode_automatic=$hardcode_automatic_CXX
13001
13002# Variables whose values should be saved in libtool wrapper scripts and
13003# restored at relink time.
13004variables_saved_for_relink="$variables_saved_for_relink"
13005
13006# Whether libtool must link a program against all its dependency libraries.
13007link_all_deplibs=$link_all_deplibs_CXX
13008
13009# Compile-time system search path for libraries
13010sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13011
13012# Run-time system search path for libraries
13013sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13014
13015# Fix the shell variable \$srcfile for the compiler.
13016fix_srcfile_path="$fix_srcfile_path_CXX"
13017
13018# Set to yes if exported symbols are required.
13019always_export_symbols=$always_export_symbols_CXX
13020
13021# The commands to list exported symbols.
13022export_symbols_cmds=$lt_export_symbols_cmds_CXX
13023
13024# The commands to extract the exported symbol list from a shared archive.
13025extract_expsyms_cmds=$lt_extract_expsyms_cmds
13026
13027# Symbols that should not be listed in the preloaded symbols.
13028exclude_expsyms=$lt_exclude_expsyms_CXX
13029
13030# Symbols that must always be exported.
13031include_expsyms=$lt_include_expsyms_CXX
13032
13033# ### END LIBTOOL TAG CONFIG: $tagname
13034
13035__EOF__
13036
13037
13038else
13039 # If there is no Makefile yet, we rely on a make rule to execute
13040 # `config.status --recheck' to rerun these tests and create the
13041 # libtool script then.
13042 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13043 if test -f "$ltmain_in"; then
13044 test -f Makefile && make "$ltmain"
13045 fi
13046fi
13047
13048
13049ac_ext=c
13050ac_cpp='$CPP $CPPFLAGS'
13051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13053ac_compiler_gnu=$ac_cv_c_compiler_gnu
13054
13055CC=$lt_save_CC
13056LDCXX=$LD
13057LD=$lt_save_LD
13058GCC=$lt_save_GCC
13059with_gnu_ldcxx=$with_gnu_ld
13060with_gnu_ld=$lt_save_with_gnu_ld
13061lt_cv_path_LDCXX=$lt_cv_path_LD
13062lt_cv_path_LD=$lt_save_path_LD
13063lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13064lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13065
13066 else
13067 tagname=""
13068 fi
13069 ;;
13070
13071 F77)
13072 if test -n "$F77" && test "X$F77" != "Xno"; then
13073
13074ac_ext=f
13075ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13076ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13078
13079
13080archive_cmds_need_lc_F77=no
13081allow_undefined_flag_F77=
13082always_export_symbols_F77=no
13083archive_expsym_cmds_F77=
13084export_dynamic_flag_spec_F77=
13085hardcode_direct_F77=no
13086hardcode_libdir_flag_spec_F77=
13087hardcode_libdir_flag_spec_ld_F77=
13088hardcode_libdir_separator_F77=
13089hardcode_minus_L_F77=no
13090hardcode_automatic_F77=no
13091module_cmds_F77=
13092module_expsym_cmds_F77=
13093link_all_deplibs_F77=unknown
13094old_archive_cmds_F77=$old_archive_cmds
13095no_undefined_flag_F77=
13096whole_archive_flag_spec_F77=
13097enable_shared_with_static_runtimes_F77=no
13098
13099# Source file extension for f77 test sources.
13100ac_ext=f
13101
13102# Object file extension for compiled f77 test sources.
13103objext=o
13104objext_F77=$objext
13105
13106# Code to be used in simple compile tests
13107lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13108
13109# Code to be used in simple link tests
13110lt_simple_link_test_code=" program t\n end\n"
13111
13112# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13113
13114# If no C compiler was specified, use CC.
13115LTCC=${LTCC-"$CC"}
13116
13117# Allow CC to be a program name with arguments.
13118compiler=$CC
13119
13120
13121# Allow CC to be a program name with arguments.
13122lt_save_CC="$CC"
13123CC=${F77-"f77"}
13124compiler=$CC
13125compiler_F77=$CC
13126cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13127
13128echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13129echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13130echo "$as_me:$LINENO: result: $can_build_shared" >&5
13131echo "${ECHO_T}$can_build_shared" >&6
13132
13133echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13134echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13135test "$can_build_shared" = "no" && enable_shared=no
13136
13137# On AIX, shared libraries and static libraries use the same namespace, and
13138# are all built from PIC.
13139case "$host_os" in
13140aix3*)
13141 test "$enable_shared" = yes && enable_static=no
13142 if test -n "$RANLIB"; then
13143 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13144 postinstall_cmds='$RANLIB $lib'
13145 fi
13146 ;;
hp.com!davidm2de17682004-04-20 16:53:44 +000013147aix4* | aix5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013148 test "$enable_shared" = yes && enable_static=no
13149 ;;
13150esac
13151echo "$as_me:$LINENO: result: $enable_shared" >&5
13152echo "${ECHO_T}$enable_shared" >&6
13153
13154echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13155echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13156# Make sure either enable_shared or enable_static is yes.
13157test "$enable_shared" = yes || enable_static=yes
13158echo "$as_me:$LINENO: result: $enable_static" >&5
13159echo "${ECHO_T}$enable_static" >&6
13160
13161test "$ld_shlibs_F77" = no && can_build_shared=no
13162
13163GCC_F77="$G77"
13164LD_F77="$LD"
13165
13166lt_prog_compiler_wl_F77=
13167lt_prog_compiler_pic_F77=
13168lt_prog_compiler_static_F77=
13169
13170echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13171echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13172
13173 if test "$GCC" = yes; then
13174 lt_prog_compiler_wl_F77='-Wl,'
13175 lt_prog_compiler_static_F77='-static'
13176
13177 case $host_os in
13178 aix*)
13179 # All AIX code is PIC.
13180 if test "$host_cpu" = ia64; then
13181 # AIX 5 now supports IA64 processor
13182 lt_prog_compiler_static_F77='-Bstatic'
13183 fi
13184 ;;
13185
13186 amigaos*)
13187 # FIXME: we need at least 68020 code to build shared libraries, but
13188 # adding the `-m68020' flag to GCC prevents building anything better,
13189 # like `-m68040'.
13190 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13191 ;;
13192
13193 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13194 # PIC is the default for these OSes.
13195 ;;
13196
13197 mingw* | pw32* | os2*)
13198 # This hack is so that the source file can tell whether it is being
13199 # built for inclusion in a dll (and should export symbols for example).
13200 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13201 ;;
13202
13203 darwin* | rhapsody*)
13204 # PIC is the default on this platform
13205 # Common symbols not allowed in MH_DYLIB files
13206 lt_prog_compiler_pic_F77='-fno-common'
13207 ;;
13208
13209 msdosdjgpp*)
13210 # Just because we use GCC doesn't mean we suddenly get shared libraries
13211 # on systems that don't support them.
13212 lt_prog_compiler_can_build_shared_F77=no
13213 enable_shared=no
13214 ;;
13215
13216 sysv4*MP*)
13217 if test -d /usr/nec; then
13218 lt_prog_compiler_pic_F77=-Kconform_pic
13219 fi
13220 ;;
13221
13222 hpux*)
13223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13224 # not for PA HP-UX.
13225 case "$host_cpu" in
13226 hppa*64*|ia64*)
13227 # +Z the default
13228 ;;
13229 *)
13230 lt_prog_compiler_pic_F77='-fPIC'
13231 ;;
13232 esac
13233 ;;
13234
13235 *)
13236 lt_prog_compiler_pic_F77='-fPIC'
13237 ;;
13238 esac
13239 else
13240 # PORTME Check for flag to pass linker flags through the system compiler.
13241 case $host_os in
13242 aix*)
13243 lt_prog_compiler_wl_F77='-Wl,'
13244 if test "$host_cpu" = ia64; then
13245 # AIX 5 now supports IA64 processor
13246 lt_prog_compiler_static_F77='-Bstatic'
13247 else
13248 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13249 fi
13250 ;;
13251
13252 mingw* | pw32* | os2*)
13253 # This hack is so that the source file can tell whether it is being
13254 # built for inclusion in a dll (and should export symbols for example).
13255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13256 ;;
13257
13258 hpux9* | hpux10* | hpux11*)
13259 lt_prog_compiler_wl_F77='-Wl,'
13260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13261 # not for PA HP-UX.
13262 case "$host_cpu" in
13263 hppa*64*|ia64*)
13264 # +Z the default
13265 ;;
13266 *)
13267 lt_prog_compiler_pic_F77='+Z'
13268 ;;
13269 esac
13270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13271 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13272 ;;
13273
13274 irix5* | irix6* | nonstopux*)
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 # PIC (with -KPIC) is the default.
13277 lt_prog_compiler_static_F77='-non_shared'
13278 ;;
13279
13280 newsos6)
13281 lt_prog_compiler_pic_F77='-KPIC'
13282 lt_prog_compiler_static_F77='-Bstatic'
13283 ;;
13284
13285 linux*)
13286 case $CC in
13287 icc* | ecc*)
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 lt_prog_compiler_pic_F77='-KPIC'
13290 lt_prog_compiler_static_F77='-static'
13291 ;;
13292 ccc*)
13293 lt_prog_compiler_wl_F77='-Wl,'
13294 # All Alpha code is PIC.
13295 lt_prog_compiler_static_F77='-non_shared'
13296 ;;
13297 esac
13298 ;;
13299
13300 osf3* | osf4* | osf5*)
13301 lt_prog_compiler_wl_F77='-Wl,'
13302 # All OSF/1 code is PIC.
13303 lt_prog_compiler_static_F77='-non_shared'
13304 ;;
13305
13306 sco3.2v5*)
13307 lt_prog_compiler_pic_F77='-Kpic'
13308 lt_prog_compiler_static_F77='-dn'
13309 ;;
13310
13311 solaris*)
13312 lt_prog_compiler_wl_F77='-Wl,'
13313 lt_prog_compiler_pic_F77='-KPIC'
13314 lt_prog_compiler_static_F77='-Bstatic'
13315 ;;
13316
13317 sunos4*)
13318 lt_prog_compiler_wl_F77='-Qoption ld '
13319 lt_prog_compiler_pic_F77='-PIC'
13320 lt_prog_compiler_static_F77='-Bstatic'
13321 ;;
13322
13323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13324 lt_prog_compiler_wl_F77='-Wl,'
13325 lt_prog_compiler_pic_F77='-KPIC'
13326 lt_prog_compiler_static_F77='-Bstatic'
13327 ;;
13328
13329 sysv4*MP*)
13330 if test -d /usr/nec ;then
13331 lt_prog_compiler_pic_F77='-Kconform_pic'
13332 lt_prog_compiler_static_F77='-Bstatic'
13333 fi
13334 ;;
13335
13336 uts4*)
13337 lt_prog_compiler_pic_F77='-pic'
13338 lt_prog_compiler_static_F77='-Bstatic'
13339 ;;
13340
13341 *)
13342 lt_prog_compiler_can_build_shared_F77=no
13343 ;;
13344 esac
13345 fi
13346
13347echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13348echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13349
13350#
13351# Check to make sure the PIC flag actually works.
13352#
13353if test -n "$lt_prog_compiler_pic_F77"; then
13354
13355echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13356echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13357if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13359else
13360 lt_prog_compiler_pic_works_F77=no
13361 ac_outfile=conftest.$ac_objext
13362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13363 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13364 # Insert the option either (1) after the last *FLAGS variable, or
13365 # (2) before a word containing "conftest.", or (3) at the end.
13366 # Note that $ac_compile itself does not contain backslashes and begins
13367 # with a dollar sign (not a hyphen), so the echo should work correctly.
13368 # The option is referenced via a variable to avoid confusing sed.
13369 lt_compile=`echo "$ac_compile" | $SED \
13370 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13372 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000013373 (eval echo "\"\$as_me:13373: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013374 (eval "$lt_compile" 2>conftest.err)
13375 ac_status=$?
13376 cat conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000013377 echo "$as_me:13377: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013378 if (exit $ac_status) && test -s "$ac_outfile"; then
13379 # The compiler can only warn and ignore the option if not recognized
13380 # So say no if there are warnings
13381 if test ! -s conftest.err; then
13382 lt_prog_compiler_pic_works_F77=yes
13383 fi
13384 fi
13385 $rm conftest*
13386
13387fi
13388echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13389echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13390
13391if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13392 case $lt_prog_compiler_pic_F77 in
13393 "" | " "*) ;;
13394 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13395 esac
13396else
13397 lt_prog_compiler_pic_F77=
13398 lt_prog_compiler_can_build_shared_F77=no
13399fi
13400
13401fi
13402case "$host_os" in
13403 # For platforms which do not support PIC, -DPIC is meaningless:
13404 *djgpp*)
13405 lt_prog_compiler_pic_F77=
13406 ;;
13407 *)
13408 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13409 ;;
13410esac
13411
13412echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13413echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13414if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
13417 lt_cv_prog_compiler_c_o_F77=no
13418 $rm -r conftest 2>/dev/null
13419 mkdir conftest
13420 cd conftest
13421 mkdir out
13422 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13423
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013424 lt_compiler_flag="-o out/conftest2.$ac_objext"
13425 # Insert the option either (1) after the last *FLAGS variable, or
13426 # (2) before a word containing "conftest.", or (3) at the end.
13427 # Note that $ac_compile itself does not contain backslashes and begins
13428 # with a dollar sign (not a hyphen), so the echo should work correctly.
13429 lt_compile=`echo "$ac_compile" | $SED \
13430 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13432 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000013433 (eval echo "\"\$as_me:13433: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013434 (eval "$lt_compile" 2>out/conftest.err)
13435 ac_status=$?
13436 cat out/conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000013437 echo "$as_me:13437: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13439 then
13440 # The compiler can only warn and ignore the option if not recognized
13441 # So say no if there are warnings
13442 if test ! -s out/conftest.err; then
13443 lt_cv_prog_compiler_c_o_F77=yes
13444 fi
13445 fi
13446 chmod u+w .
13447 $rm conftest*
13448 # SGI C++ compiler will create directory out/ii_files/ for
13449 # template instantiation
13450 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13451 $rm out/* && rmdir out
13452 cd ..
13453 rmdir conftest
13454 $rm conftest*
13455
13456fi
13457echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13458echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13459
13460
13461hard_links="nottested"
13462if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13463 # do not overwrite the value of need_locks provided by the user
13464 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13465echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13466 hard_links=yes
13467 $rm conftest*
13468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13469 touch conftest.a
13470 ln conftest.a conftest.b 2>&5 || hard_links=no
13471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13472 echo "$as_me:$LINENO: result: $hard_links" >&5
13473echo "${ECHO_T}$hard_links" >&6
13474 if test "$hard_links" = no; then
13475 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13476echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13477 need_locks=warn
13478 fi
13479else
13480 need_locks=no
13481fi
13482
13483echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13485
13486 runpath_var=
13487 allow_undefined_flag_F77=
13488 enable_shared_with_static_runtimes_F77=no
13489 archive_cmds_F77=
13490 archive_expsym_cmds_F77=
13491 old_archive_From_new_cmds_F77=
13492 old_archive_from_expsyms_cmds_F77=
13493 export_dynamic_flag_spec_F77=
13494 whole_archive_flag_spec_F77=
13495 thread_safe_flag_spec_F77=
13496 hardcode_libdir_flag_spec_F77=
13497 hardcode_libdir_flag_spec_ld_F77=
13498 hardcode_libdir_separator_F77=
13499 hardcode_direct_F77=no
13500 hardcode_minus_L_F77=no
13501 hardcode_shlibpath_var_F77=unsupported
13502 link_all_deplibs_F77=unknown
13503 hardcode_automatic_F77=no
13504 module_cmds_F77=
13505 module_expsym_cmds_F77=
13506 always_export_symbols_F77=no
13507 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13508 # include_expsyms should be a list of space-separated symbols to be *always*
13509 # included in the symbol list
13510 include_expsyms_F77=
13511 # exclude_expsyms can be an extended regexp of symbols to exclude
13512 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13514 # as well as any symbol that contains `d'.
13515 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13517 # platforms (ab)use it in PIC code, but their linkers get confused if
13518 # the symbol is explicitly referenced. Since portable code cannot
13519 # rely on this symbol name, it's probably fine to never include it in
13520 # preloaded symbol tables.
13521 extract_expsyms_cmds=
13522
13523 case $host_os in
13524 cygwin* | mingw* | pw32*)
13525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13526 # When not using gcc, we currently assume that we are using
13527 # Microsoft Visual C++.
13528 if test "$GCC" != yes; then
13529 with_gnu_ld=no
13530 fi
13531 ;;
13532 openbsd*)
13533 with_gnu_ld=no
13534 ;;
13535 esac
13536
13537 ld_shlibs_F77=yes
13538 if test "$with_gnu_ld" = yes; then
13539 # If archive_cmds runs LD, not CC, wlarc should be empty
13540 wlarc='${wl}'
13541
13542 # See if GNU ld supports shared libraries.
13543 case $host_os in
13544 aix3* | aix4* | aix5*)
13545 # On AIX/PPC, the GNU linker is very broken
13546 if test "$host_cpu" != ia64; then
13547 ld_shlibs_F77=no
13548 cat <<EOF 1>&2
13549
13550*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13551*** to be unable to reliably create shared libraries on AIX.
13552*** Therefore, libtool is disabling shared libraries support. If you
13553*** really care for shared libraries, you may want to modify your PATH
13554*** so that a non-GNU linker is found, and then restart.
13555
13556EOF
13557 fi
13558 ;;
13559
13560 amigaos*)
13561 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)'
13562 hardcode_libdir_flag_spec_F77='-L$libdir'
13563 hardcode_minus_L_F77=yes
13564
13565 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13566 # that the semantics of dynamic libraries on AmigaOS, at least up
13567 # to version 4, is to share data among multiple programs linked
13568 # with the same dynamic library. Since this doesn't match the
13569 # behavior of shared libraries on other platforms, we can't use
13570 # them.
13571 ld_shlibs_F77=no
13572 ;;
13573
13574 beos*)
13575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13576 allow_undefined_flag_F77=unsupported
13577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13578 # support --undefined. This deserves some investigation. FIXME
13579 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580 else
13581 ld_shlibs_F77=no
13582 fi
13583 ;;
13584
13585 cygwin* | mingw* | pw32*)
13586 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13587 # as there is no search path for DLLs.
13588 hardcode_libdir_flag_spec_F77='-L$libdir'
13589 allow_undefined_flag_F77=unsupported
13590 always_export_symbols_F77=no
13591 enable_shared_with_static_runtimes_F77=yes
13592 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13593
13594 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13595 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13596 # If the export-symbols file already is a .def file (1st line
13597 # is EXPORTS), use it as is; otherwise, prepend...
13598 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13599 cp $export_symbols $output_objdir/$soname.def;
13600 else
13601 echo EXPORTS > $output_objdir/$soname.def;
13602 cat $export_symbols >> $output_objdir/$soname.def;
13603 fi~
13604 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13605 else
13606 ld_shlibs=no
13607 fi
13608 ;;
13609
hp.com!davidm2de17682004-04-20 16:53:44 +000013610 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013611 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13612 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13613 wlarc=
13614 else
13615 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13617 fi
13618 ;;
13619
13620 solaris* | sysv5*)
13621 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13622 ld_shlibs_F77=no
13623 cat <<EOF 1>&2
13624
13625*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13626*** create shared libraries on Solaris systems. Therefore, libtool
13627*** is disabling shared libraries support. We urge you to upgrade GNU
13628*** binutils to release 2.9.1 or newer. Another option is to modify
13629*** your PATH or compiler configuration so that the native linker is
13630*** used, and then restart.
13631
13632EOF
13633 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13636 else
13637 ld_shlibs_F77=no
13638 fi
13639 ;;
13640
13641 sunos4*)
13642 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643 wlarc=
13644 hardcode_direct_F77=yes
13645 hardcode_shlibpath_var_F77=no
13646 ;;
13647
13648 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +000013649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013650 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13651 archive_cmds_F77="$tmp_archive_cmds"
13652 supports_anon_versioning=no
13653 case `$LD -v 2>/dev/null` in
13654 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13657 *\ 2.11.*) ;; # other 2.11 versions
13658 *) supports_anon_versioning=yes ;;
13659 esac
13660 if test $supports_anon_versioning = yes; then
13661 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13662cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13663$echo "local: *; };" >> $output_objdir/$libname.ver~
13664 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13665 else
13666 archive_expsym_cmds_F77="$tmp_archive_cmds"
13667 fi
hp.com!davidm2de17682004-04-20 16:53:44 +000013668 link_all_deplibs_F77=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013669 else
13670 ld_shlibs_F77=no
13671 fi
13672 ;;
13673
13674 *)
13675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13676 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13677 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13678 else
13679 ld_shlibs_F77=no
13680 fi
13681 ;;
13682 esac
13683
13684 if test "$ld_shlibs_F77" = yes; then
13685 runpath_var=LD_RUN_PATH
13686 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13687 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13688 # ancient GNU ld didn't support --whole-archive et. al.
13689 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13690 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13691 else
13692 whole_archive_flag_spec_F77=
13693 fi
13694 fi
13695 else
13696 # PORTME fill in a description of your system's linker (not GNU ld)
13697 case $host_os in
13698 aix3*)
13699 allow_undefined_flag_F77=unsupported
13700 always_export_symbols_F77=yes
13701 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'
13702 # Note: this linker hardcodes the directories in LIBPATH if there
13703 # are no directories specified by -L.
13704 hardcode_minus_L_F77=yes
13705 if test "$GCC" = yes && test -z "$link_static_flag"; then
13706 # Neither direct hardcoding nor static linking is supported with a
13707 # broken collect2.
13708 hardcode_direct_F77=unsupported
13709 fi
13710 ;;
13711
13712 aix4* | aix5*)
13713 if test "$host_cpu" = ia64; then
13714 # On IA64, the linker does run time linking by default, so we don't
13715 # have to do anything special.
13716 aix_use_runtimelinking=no
13717 exp_sym_flag='-Bexport'
13718 no_entry_flag=""
13719 else
13720 # If we're using GNU nm, then we don't want the "-C" option.
13721 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13722 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13723 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'
13724 else
13725 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'
13726 fi
13727 aix_use_runtimelinking=no
13728
13729 # Test if we are trying to use run time linking or normal
13730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13731 # need to do runtime linking.
13732 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13733 for ld_flag in $LDFLAGS; do
13734 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13735 aix_use_runtimelinking=yes
13736 break
13737 fi
13738 done
13739 esac
13740
13741 exp_sym_flag='-bexport'
13742 no_entry_flag='-bnoentry'
13743 fi
13744
13745 # When large executables or shared objects are built, AIX ld can
13746 # have problems creating the table of contents. If linking a library
13747 # or program results in "error TOC overflow" add -mminimal-toc to
13748 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13749 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13750
13751 archive_cmds_F77=''
13752 hardcode_direct_F77=yes
13753 hardcode_libdir_separator_F77=':'
13754 link_all_deplibs_F77=yes
13755
13756 if test "$GCC" = yes; then
13757 case $host_os in aix4.012|aix4.012.*)
13758 # We only want to do this on AIX 4.2 and lower, the check
13759 # below for broken collect2 doesn't work under 4.3+
13760 collect2name=`${CC} -print-prog-name=collect2`
13761 if test -f "$collect2name" && \
13762 strings "$collect2name" | grep resolve_lib_name >/dev/null
13763 then
13764 # We have reworked collect2
13765 hardcode_direct_F77=yes
13766 else
13767 # We have old collect2
13768 hardcode_direct_F77=unsupported
13769 # It fails to find uninstalled libraries when the uninstalled
13770 # path is not listed in the libpath. Setting hardcode_minus_L
13771 # to unsupported forces relinking
13772 hardcode_minus_L_F77=yes
13773 hardcode_libdir_flag_spec_F77='-L$libdir'
13774 hardcode_libdir_separator_F77=
13775 fi
13776 esac
13777 shared_flag='-shared'
13778 else
13779 # not using gcc
13780 if test "$host_cpu" = ia64; then
13781 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13782 # chokes on -Wl,-G. The following line is correct:
13783 shared_flag='-G'
13784 else
13785 if test "$aix_use_runtimelinking" = yes; then
13786 shared_flag='${wl}-G'
13787 else
13788 shared_flag='${wl}-bM:SRE'
13789 fi
13790 fi
13791 fi
13792
13793 # It seems that -bexpall does not export symbols beginning with
13794 # underscore (_), so it is better to generate a list of symbols to export.
13795 always_export_symbols_F77=yes
13796 if test "$aix_use_runtimelinking" = yes; then
13797 # Warning - without using the other runtime loading flags (-brtl),
13798 # -berok will link without error, but may produce a broken library.
13799 allow_undefined_flag_F77='-berok'
13800 # Determine the default libpath from the value encoded in an empty executable.
13801 cat >conftest.$ac_ext <<_ACEOF
13802 program main
13803
13804 end
13805_ACEOF
13806rm -f conftest.$ac_objext conftest$ac_exeext
13807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013808 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013809 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013815 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827
13828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13829}'`
13830# Check for a 64-bit object if we didn't find anything.
13831if 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; }
13832}'`; fi
13833else
13834 echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013838rm -f conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13841
13842 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13843 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13844 else
13845 if test "$host_cpu" = ia64; then
13846 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13847 allow_undefined_flag_F77="-z nodefs"
13848 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13849 else
13850 # Determine the default libpath from the value encoded in an empty executable.
13851 cat >conftest.$ac_ext <<_ACEOF
13852 program main
13853
13854 end
13855_ACEOF
13856rm -f conftest.$ac_objext conftest$ac_exeext
13857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013858 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013859 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013865 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } &&
13871 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877
13878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13879}'`
13880# Check for a 64-bit object if we didn't find anything.
13881if 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; }
13882}'`; fi
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000013888rm -f conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13891
13892 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13893 # Warning - without using the other run time loading flags,
13894 # -berok will link without error, but may produce a broken library.
13895 no_undefined_flag_F77=' ${wl}-bernotok'
13896 allow_undefined_flag_F77=' ${wl}-berok'
13897 # -bexpall does not export symbols beginning with underscore (_)
13898 always_export_symbols_F77=yes
13899 # Exported symbols can be pulled into shared objects from archives
13900 whole_archive_flag_spec_F77=' '
13901 archive_cmds_need_lc_F77=yes
13902 # This is similar to how AIX traditionally builds it's shared libraries.
13903 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13904 fi
13905 fi
13906 ;;
13907
13908 amigaos*)
13909 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)'
13910 hardcode_libdir_flag_spec_F77='-L$libdir'
13911 hardcode_minus_L_F77=yes
13912 # see comment about different semantics on the GNU ld section
13913 ld_shlibs_F77=no
13914 ;;
13915
13916 bsdi4*)
13917 export_dynamic_flag_spec_F77=-rdynamic
13918 ;;
13919
13920 cygwin* | mingw* | pw32*)
13921 # When not using gcc, we currently assume that we are using
13922 # Microsoft Visual C++.
13923 # hardcode_libdir_flag_spec is actually meaningless, as there is
13924 # no search path for DLLs.
13925 hardcode_libdir_flag_spec_F77=' '
13926 allow_undefined_flag_F77=unsupported
13927 # Tell ltmain to make .lib files, not .a files.
13928 libext=lib
13929 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +000013930 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013931 # FIXME: Setting linknames here is a bad hack.
13932 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13933 # The linker will automatically build a .lib file if we build a DLL.
13934 old_archive_From_new_cmds_F77='true'
13935 # FIXME: Should let the user specify the lib program.
13936 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13937 fix_srcfile_path='`cygpath -w "$srcfile"`'
13938 enable_shared_with_static_runtimes_F77=yes
13939 ;;
13940
13941 darwin* | rhapsody*)
13942 if test "$GXX" = yes ; then
13943 archive_cmds_need_lc_F77=no
13944 case "$host_os" in
13945 rhapsody* | darwin1.[012])
13946 allow_undefined_flag_F77='-undefined suppress'
13947 ;;
13948 *) # Darwin 1.3 on
13949 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13950 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13951 else
13952 case ${MACOSX_DEPLOYMENT_TARGET} in
13953 10.[012])
13954 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13955 ;;
13956 10.*)
13957 allow_undefined_flag_F77='-undefined dynamic_lookup'
13958 ;;
13959 esac
13960 fi
13961 ;;
13962 esac
13963 lt_int_apple_cc_single_mod=no
13964 output_verbose_link_cmd='echo'
13965 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13966 lt_int_apple_cc_single_mod=yes
13967 fi
13968 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13969 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13970 else
13971 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13972 fi
13973 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13975 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13976 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13977 else
13978 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13979 fi
13980 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}'
13981 hardcode_direct_F77=no
13982 hardcode_automatic_F77=yes
13983 hardcode_shlibpath_var_F77=unsupported
13984 whole_archive_flag_spec_F77='-all_load $convenience'
13985 link_all_deplibs_F77=yes
13986 else
13987 ld_shlibs_F77=no
13988 fi
13989 ;;
13990
13991 dgux*)
13992 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13993 hardcode_libdir_flag_spec_F77='-L$libdir'
13994 hardcode_shlibpath_var_F77=no
13995 ;;
13996
13997 freebsd1*)
13998 ld_shlibs_F77=no
13999 ;;
14000
14001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14002 # support. Future versions do this automatically, but an explicit c++rt0.o
14003 # does not break anything, and helps significantly (at the cost of a little
14004 # extra space).
14005 freebsd2.2*)
14006 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14007 hardcode_libdir_flag_spec_F77='-R$libdir'
14008 hardcode_direct_F77=yes
14009 hardcode_shlibpath_var_F77=no
14010 ;;
14011
14012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14013 freebsd2*)
14014 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14015 hardcode_direct_F77=yes
14016 hardcode_minus_L_F77=yes
14017 hardcode_shlibpath_var_F77=no
14018 ;;
14019
14020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14021 freebsd* | kfreebsd*-gnu)
14022 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14023 hardcode_libdir_flag_spec_F77='-R$libdir'
14024 hardcode_direct_F77=yes
14025 hardcode_shlibpath_var_F77=no
14026 ;;
14027
14028 hpux9*)
14029 if test "$GCC" = yes; then
14030 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'
14031 else
14032 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'
14033 fi
14034 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14035 hardcode_libdir_separator_F77=:
14036 hardcode_direct_F77=yes
14037
14038 # hardcode_minus_L: Not really in the search PATH,
14039 # but as the default location of the library.
14040 hardcode_minus_L_F77=yes
14041 export_dynamic_flag_spec_F77='${wl}-E'
14042 ;;
14043
14044 hpux10* | hpux11*)
14045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14046 case "$host_cpu" in
14047 hppa*64*|ia64*)
14048 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14049 ;;
14050 *)
14051 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14052 ;;
14053 esac
14054 else
14055 case "$host_cpu" in
14056 hppa*64*|ia64*)
14057 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14058 ;;
14059 *)
14060 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14061 ;;
14062 esac
14063 fi
14064 if test "$with_gnu_ld" = no; then
14065 case "$host_cpu" in
14066 hppa*64*)
14067 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14069 hardcode_libdir_separator_F77=:
14070 hardcode_direct_F77=no
14071 hardcode_shlibpath_var_F77=no
14072 ;;
14073 ia64*)
14074 hardcode_libdir_flag_spec_F77='-L$libdir'
14075 hardcode_direct_F77=no
14076 hardcode_shlibpath_var_F77=no
14077
14078 # hardcode_minus_L: Not really in the search PATH,
14079 # but as the default location of the library.
14080 hardcode_minus_L_F77=yes
14081 ;;
14082 *)
14083 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14084 hardcode_libdir_separator_F77=:
14085 hardcode_direct_F77=yes
14086 export_dynamic_flag_spec_F77='${wl}-E'
14087
14088 # hardcode_minus_L: Not really in the search PATH,
14089 # but as the default location of the library.
14090 hardcode_minus_L_F77=yes
14091 ;;
14092 esac
14093 fi
14094 ;;
14095
14096 irix5* | irix6* | nonstopux*)
14097 if test "$GCC" = yes; then
14098 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'
14099 else
14100 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'
14101 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14102 fi
14103 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14104 hardcode_libdir_separator_F77=:
14105 link_all_deplibs_F77=yes
14106 ;;
14107
hp.com!davidm2de17682004-04-20 16:53:44 +000014108 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14110 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14111 else
14112 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14113 fi
14114 hardcode_libdir_flag_spec_F77='-R$libdir'
14115 hardcode_direct_F77=yes
14116 hardcode_shlibpath_var_F77=no
14117 ;;
14118
14119 newsos6)
14120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=yes
14122 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14123 hardcode_libdir_separator_F77=:
14124 hardcode_shlibpath_var_F77=no
14125 ;;
14126
14127 openbsd*)
14128 hardcode_direct_F77=yes
14129 hardcode_shlibpath_var_F77=no
14130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14131 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14132 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14133 export_dynamic_flag_spec_F77='${wl}-E'
14134 else
14135 case $host_os in
14136 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14137 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_libdir_flag_spec_F77='-R$libdir'
14139 ;;
14140 *)
14141 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14142 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14143 ;;
14144 esac
14145 fi
14146 ;;
14147
14148 os2*)
14149 hardcode_libdir_flag_spec_F77='-L$libdir'
14150 hardcode_minus_L_F77=yes
14151 allow_undefined_flag_F77=unsupported
14152 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'
14153 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14154 ;;
14155
14156 osf3*)
14157 if test "$GCC" = yes; then
14158 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14159 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'
14160 else
14161 allow_undefined_flag_F77=' -expect_unresolved \*'
14162 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'
14163 fi
14164 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14165 hardcode_libdir_separator_F77=:
14166 ;;
14167
14168 osf4* | osf5*) # as osf3* with the addition of -msym flag
14169 if test "$GCC" = yes; then
14170 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14171 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'
14172 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14173 else
14174 allow_undefined_flag_F77=' -expect_unresolved \*'
14175 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'
14176 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~
14177 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14178
14179 # Both c and cxx compiler support -rpath directly
14180 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14181 fi
14182 hardcode_libdir_separator_F77=:
14183 ;;
14184
14185 sco3.2v5*)
14186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187 hardcode_shlibpath_var_F77=no
14188 export_dynamic_flag_spec_F77='${wl}-Bexport'
14189 runpath_var=LD_RUN_PATH
14190 hardcode_runpath_var=yes
14191 ;;
14192
14193 solaris*)
14194 no_undefined_flag_F77=' -z text'
14195 if test "$GCC" = yes; then
14196 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14197 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14198 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14199 else
14200 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14203 fi
14204 hardcode_libdir_flag_spec_F77='-R$libdir'
14205 hardcode_shlibpath_var_F77=no
14206 case $host_os in
14207 solaris2.[0-5] | solaris2.[0-5].*) ;;
14208 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14209 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14210 esac
14211 link_all_deplibs_F77=yes
14212 ;;
14213
14214 sunos4*)
14215 if test "x$host_vendor" = xsequent; then
14216 # Use $CC to link under sequent, because it throws in some extra .o
14217 # files that make .init and .fini sections work.
14218 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14219 else
14220 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14221 fi
14222 hardcode_libdir_flag_spec_F77='-L$libdir'
14223 hardcode_direct_F77=yes
14224 hardcode_minus_L_F77=yes
14225 hardcode_shlibpath_var_F77=no
14226 ;;
14227
14228 sysv4)
14229 case $host_vendor in
14230 sni)
14231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232 hardcode_direct_F77=yes # is this really true???
14233 ;;
14234 siemens)
14235 ## LD is ld it makes a PLAMLIB
14236 ## CC just makes a GrossModule.
14237 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14238 reload_cmds_F77='$CC -r -o $output$reload_objs'
14239 hardcode_direct_F77=no
14240 ;;
14241 motorola)
14242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14243 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14244 ;;
14245 esac
14246 runpath_var='LD_RUN_PATH'
14247 hardcode_shlibpath_var_F77=no
14248 ;;
14249
14250 sysv4.3*)
14251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_shlibpath_var_F77=no
14253 export_dynamic_flag_spec_F77='-Bexport'
14254 ;;
14255
14256 sysv4*MP*)
14257 if test -d /usr/nec; then
14258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 hardcode_shlibpath_var_F77=no
14260 runpath_var=LD_RUN_PATH
14261 hardcode_runpath_var=yes
14262 ld_shlibs_F77=yes
14263 fi
14264 ;;
14265
14266 sysv4.2uw2*)
14267 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14268 hardcode_direct_F77=yes
14269 hardcode_minus_L_F77=no
14270 hardcode_shlibpath_var_F77=no
14271 hardcode_runpath_var=yes
14272 runpath_var=LD_RUN_PATH
14273 ;;
14274
14275 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14276 no_undefined_flag_F77='${wl}-z ${wl}text'
14277 if test "$GCC" = yes; then
14278 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 else
14280 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14281 fi
14282 runpath_var='LD_RUN_PATH'
14283 hardcode_shlibpath_var_F77=no
14284 ;;
14285
14286 sysv5*)
14287 no_undefined_flag_F77=' -z text'
14288 # $CC -shared without GNU ld will not create a library from C++
14289 # object files and a static libstdc++, better avoid it by now
14290 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14291 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14293 hardcode_libdir_flag_spec_F77=
14294 hardcode_shlibpath_var_F77=no
14295 runpath_var='LD_RUN_PATH'
14296 ;;
14297
14298 uts4*)
14299 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_libdir_flag_spec_F77='-L$libdir'
14301 hardcode_shlibpath_var_F77=no
14302 ;;
14303
14304 *)
14305 ld_shlibs_F77=no
14306 ;;
14307 esac
14308 fi
14309
14310echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14311echo "${ECHO_T}$ld_shlibs_F77" >&6
14312test "$ld_shlibs_F77" = no && can_build_shared=no
14313
14314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14315if test "$GCC" = yes; then
14316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14317fi
14318
14319#
14320# Do we need to explicitly link libc?
14321#
14322case "x$archive_cmds_need_lc_F77" in
14323x|xyes)
14324 # Assume -lc should be added
14325 archive_cmds_need_lc_F77=yes
14326
14327 if test "$enable_shared" = yes && test "$GCC" = yes; then
14328 case $archive_cmds_F77 in
14329 *'~'*)
14330 # FIXME: we may have to deal with multi-command sequences.
14331 ;;
14332 '$CC '*)
14333 # Test whether the compiler implicitly links with -lc since on some
14334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14335 # to ld, don't add -lc before -lgcc.
14336 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14337echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14338 $rm conftest*
14339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14340
14341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14342 (eval $ac_compile) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } 2>conftest.err; then
14346 soname=conftest
14347 lib=conftest
14348 libobjs=conftest.$ac_objext
14349 deplibs=
14350 wl=$lt_prog_compiler_wl_F77
14351 compiler_flags=-v
14352 linker_flags=-v
14353 verstring=
14354 output_objdir=.
14355 libname=conftest
14356 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14357 allow_undefined_flag_F77=
14358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14359 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }
14363 then
14364 archive_cmds_need_lc_F77=no
14365 else
14366 archive_cmds_need_lc_F77=yes
14367 fi
14368 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14369 else
14370 cat conftest.err 1>&5
14371 fi
14372 $rm conftest*
14373 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14374echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14375 ;;
14376 esac
14377 fi
14378 ;;
14379esac
14380
14381echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14382echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14383library_names_spec=
14384libname_spec='lib$name'
14385soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000014386shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014387postinstall_cmds=
14388postuninstall_cmds=
14389finish_cmds=
14390finish_eval=
14391shlibpath_var=
14392shlibpath_overrides_runpath=unknown
14393version_type=none
14394dynamic_linker="$host_os ld.so"
14395sys_lib_dlsearch_path_spec="/lib /usr/lib"
14396if test "$GCC" = yes; then
14397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14399 # if the path contains ";" then we assume it to be the separator
14400 # otherwise default to the standard path separator (i.e. ":") - it is
14401 # assumed that no part of a normal pathname contains ";" but that should
14402 # okay in the real world where ";" in dirpaths is itself problematic.
14403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14404 else
14405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14406 fi
14407else
14408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14409fi
14410need_lib_prefix=unknown
14411hardcode_into_libs=no
14412
14413# when you set need_version to no, make sure it does not cause -set_version
14414# flags to be left without arguments
14415need_version=unknown
14416
14417case $host_os in
14418aix3*)
14419 version_type=linux
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14421 shlibpath_var=LIBPATH
14422
14423 # AIX 3 has no versioning support, so we append a major version to the name.
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 ;;
14426
14427aix4* | aix5*)
14428 version_type=linux
14429 need_lib_prefix=no
14430 need_version=no
14431 hardcode_into_libs=yes
14432 if test "$host_cpu" = ia64; then
14433 # AIX 5 supports IA64
14434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 else
14437 # With GCC up to 2.95.x, collect2 would create an import file
14438 # for dependence libraries. The import file would start with
14439 # the line `#! .'. This would cause the generated library to
14440 # depend on `.', always an invalid library. This was fixed in
14441 # development snapshots of GCC prior to 3.0.
14442 case $host_os in
14443 aix4 | aix4.[01] | aix4.[01].*)
14444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14445 echo ' yes '
14446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14447 :
14448 else
14449 can_build_shared=no
14450 fi
14451 ;;
14452 esac
14453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14454 # soname into executable. Probably we can add versioning support to
14455 # collect2, so additional links can be useful in future.
14456 if test "$aix_use_runtimelinking" = yes; then
14457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14458 # instead of lib<name>.a to let people know that these are not
14459 # typical AIX shared libraries.
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 else
14462 # We preserve .a as extension for shared libraries through AIX4.2
14463 # and later when we are not doing run time linking.
14464 library_names_spec='${libname}${release}.a $libname.a'
14465 soname_spec='${libname}${release}${shared_ext}$major'
14466 fi
14467 shlibpath_var=LIBPATH
14468 fi
14469 ;;
14470
14471amigaos*)
14472 library_names_spec='$libname.ixlibrary $libname.a'
14473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14474 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'
14475 ;;
14476
14477beos*)
14478 library_names_spec='${libname}${shared_ext}'
14479 dynamic_linker="$host_os ld.so"
14480 shlibpath_var=LIBRARY_PATH
14481 ;;
14482
14483bsdi4*)
14484 version_type=linux
14485 need_version=no
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14492 # the default ld.so.conf also contains /usr/contrib/lib and
14493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14494 # libtool to hard-code these into programs
14495 ;;
14496
14497cygwin* | mingw* | pw32*)
14498 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000014499 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014500 need_version=no
14501 need_lib_prefix=no
14502
14503 case $GCC,$host_os in
14504 yes,cygwin* | yes,mingw* | yes,pw32*)
14505 library_names_spec='$libname.dll.a'
14506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14507 postinstall_cmds='base_file=`basename \${file}`~
14508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14509 dldir=$destdir/`dirname \$dlpath`~
14510 test -d \$dldir || mkdir -p \$dldir~
14511 $install_prog $dir/$dlname \$dldir/$dlname'
14512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14513 dlpath=$dir/\$dldll~
14514 $rm \$dlpath'
14515 shlibpath_overrides_runpath=yes
14516
14517 case $host_os in
14518 cygwin*)
14519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14522 ;;
14523 mingw*)
14524 # MinGW DLLs use traditional 'lib' prefix
14525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14526 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14527 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14528 # It is most probably a Windows format PATH printed by
14529 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14530 # path with ; separators, and with drive letters. We can handle the
14531 # drive letters (cygwin fileutils understands them), so leave them,
14532 # especially as we might pass files found there to a mingw objdump,
14533 # which wouldn't understand a cygwinified path. Ahh.
14534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14535 else
14536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14537 fi
14538 ;;
14539 pw32*)
14540 # pw32 DLLs use 'pw' prefix rather than 'lib'
14541 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14542 ;;
14543 esac
14544 ;;
14545
14546 *)
14547 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14548 ;;
14549 esac
14550 dynamic_linker='Win32 ld.exe'
14551 # FIXME: first we should search . and the directory the executable is in
14552 shlibpath_var=PATH
14553 ;;
14554
14555darwin* | rhapsody*)
14556 dynamic_linker="$host_os dyld"
14557 version_type=darwin
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14561 soname_spec='${libname}${release}${major}$shared_ext'
14562 shlibpath_overrides_runpath=yes
14563 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000014564 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014565 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14566 if test "$GCC" = yes; then
14567 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"`
14568 else
14569 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14570 fi
14571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14572 ;;
14573
14574dgux*)
14575 version_type=linux
14576 need_lib_prefix=no
14577 need_version=no
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 shlibpath_var=LD_LIBRARY_PATH
14581 ;;
14582
14583freebsd1*)
14584 dynamic_linker=no
14585 ;;
14586
14587kfreebsd*-gnu)
14588 version_type=linux
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=no
14595 hardcode_into_libs=yes
14596 dynamic_linker='GNU ld.so'
14597 ;;
14598
14599freebsd*)
14600 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14601 version_type=freebsd-$objformat
14602 case $version_type in
14603 freebsd-elf*)
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14605 need_version=no
14606 need_lib_prefix=no
14607 ;;
14608 freebsd-*)
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14610 need_version=yes
14611 ;;
14612 esac
14613 shlibpath_var=LD_LIBRARY_PATH
14614 case $host_os in
14615 freebsd2*)
14616 shlibpath_overrides_runpath=yes
14617 ;;
14618 freebsd3.01* | freebsdelf3.01*)
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14621 ;;
14622 *) # from 3.2 on
14623 shlibpath_overrides_runpath=no
14624 hardcode_into_libs=yes
14625 ;;
14626 esac
14627 ;;
14628
14629gnu*)
14630 version_type=linux
14631 need_lib_prefix=no
14632 need_version=no
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 hardcode_into_libs=yes
14637 ;;
14638
14639hpux9* | hpux10* | hpux11*)
14640 # Give a soname corresponding to the major version so that dld.sl refuses to
14641 # link against other versions.
14642 version_type=sunos
14643 need_lib_prefix=no
14644 need_version=no
14645 case "$host_cpu" in
14646 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000014647 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014648 hardcode_into_libs=yes
14649 dynamic_linker="$host_os dld.so"
14650 shlibpath_var=LD_LIBRARY_PATH
14651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 if test "X$HPUX_IA64_MODE" = X32; then
14655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14656 else
14657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14658 fi
14659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660 ;;
14661 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000014662 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014663 hardcode_into_libs=yes
14664 dynamic_linker="$host_os dld.sl"
14665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14671 ;;
14672 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000014673 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014674 dynamic_linker="$host_os dld.sl"
14675 shlibpath_var=SHLIB_PATH
14676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 ;;
14680 esac
14681 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14682 postinstall_cmds='chmod 555 $lib'
14683 ;;
14684
14685irix5* | irix6* | nonstopux*)
14686 case $host_os in
14687 nonstopux*) version_type=nonstopux ;;
14688 *)
14689 if test "$lt_cv_prog_gnu_ld" = yes; then
14690 version_type=linux
14691 else
14692 version_type=irix
14693 fi ;;
14694 esac
14695 need_lib_prefix=no
14696 need_version=no
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14699 case $host_os in
14700 irix5* | nonstopux*)
14701 libsuff= shlibsuff=
14702 ;;
14703 *)
14704 case $LD in # libtool.m4 will add one of these switches to LD
14705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706 libsuff= shlibsuff= libmagic=32-bit;;
14707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708 libsuff=32 shlibsuff=N32 libmagic=N32;;
14709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711 *) libsuff= shlibsuff= libmagic=never-match;;
14712 esac
14713 ;;
14714 esac
14715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716 shlibpath_overrides_runpath=no
14717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719 hardcode_into_libs=yes
14720 ;;
14721
14722# No shared lib support for Linux oldld, aout, or coff.
14723linux*oldld* | linux*aout* | linux*coff*)
14724 dynamic_linker=no
14725 ;;
14726
14727# This must be Linux ELF.
14728linux*)
14729 version_type=linux
14730 need_lib_prefix=no
14731 need_version=no
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 shlibpath_overrides_runpath=no
14737 # This implies no fast_install, which is unacceptable.
14738 # Some rework will be needed to allow for fast_install
14739 # before this can be enabled.
14740 hardcode_into_libs=yes
14741
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014742 # Append ld.so.conf contents to the search path
14743 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000014744 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000014746 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014747
14748 # We used to test for /lib/ld.so.1 and disable shared libraries on
14749 # powerpc, because MkLinux only supported shared libraries with the
14750 # GNU dynamic linker. Since this was broken with cross compilers,
14751 # most powerpc-linux boxes support dynamic linking these days and
14752 # people can always --disable-shared, the test was removed, and we
14753 # assume the GNU/Linux dynamic linker is in use.
14754 dynamic_linker='GNU/Linux ld.so'
14755 ;;
14756
14757knetbsd*-gnu)
14758 version_type=linux
14759 need_lib_prefix=no
14760 need_version=no
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=no
14765 hardcode_into_libs=yes
14766 dynamic_linker='GNU ld.so'
14767 ;;
14768
14769netbsd*)
14770 version_type=sunos
14771 need_lib_prefix=no
14772 need_version=no
14773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14776 dynamic_linker='NetBSD (a.out) ld.so'
14777 else
hp.com!davidm2de17682004-04-20 16:53:44 +000014778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014779 soname_spec='${libname}${release}${shared_ext}$major'
14780 dynamic_linker='NetBSD ld.elf_so'
14781 fi
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=yes
14784 hardcode_into_libs=yes
14785 ;;
14786
14787newsos6)
14788 version_type=linux
14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 shlibpath_var=LD_LIBRARY_PATH
14791 shlibpath_overrides_runpath=yes
14792 ;;
14793
14794nto-qnx*)
14795 version_type=linux
14796 need_lib_prefix=no
14797 need_version=no
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 shlibpath_overrides_runpath=yes
14802 ;;
14803
14804openbsd*)
14805 version_type=sunos
14806 need_lib_prefix=no
14807 need_version=yes
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14812 case $host_os in
14813 openbsd2.[89] | openbsd2.[89].*)
14814 shlibpath_overrides_runpath=no
14815 ;;
14816 *)
14817 shlibpath_overrides_runpath=yes
14818 ;;
14819 esac
14820 else
14821 shlibpath_overrides_runpath=yes
14822 fi
14823 ;;
14824
14825os2*)
14826 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000014827 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000014828 need_lib_prefix=no
14829 library_names_spec='$libname${shared_ext} $libname.a'
14830 dynamic_linker='OS/2 ld.exe'
14831 shlibpath_var=LIBPATH
14832 ;;
14833
14834osf3* | osf4* | osf5*)
14835 version_type=osf
14836 need_lib_prefix=no
14837 need_version=no
14838 soname_spec='${libname}${release}${shared_ext}$major'
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 shlibpath_var=LD_LIBRARY_PATH
14841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14842 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14843 ;;
14844
14845sco3.2v5*)
14846 version_type=osf
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849 shlibpath_var=LD_LIBRARY_PATH
14850 ;;
14851
14852solaris*)
14853 version_type=linux
14854 need_lib_prefix=no
14855 need_version=no
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=yes
14860 hardcode_into_libs=yes
14861 # ldd complains unless libraries are executable
14862 postinstall_cmds='chmod +x $lib'
14863 ;;
14864
14865sunos4*)
14866 version_type=sunos
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=yes
14871 if test "$with_gnu_ld" = yes; then
14872 need_lib_prefix=no
14873 fi
14874 need_version=yes
14875 ;;
14876
14877sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14878 version_type=linux
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 case $host_vendor in
14883 sni)
14884 shlibpath_overrides_runpath=no
14885 need_lib_prefix=no
14886 export_dynamic_flag_spec='${wl}-Blargedynsym'
14887 runpath_var=LD_RUN_PATH
14888 ;;
14889 siemens)
14890 need_lib_prefix=no
14891 ;;
14892 motorola)
14893 need_lib_prefix=no
14894 need_version=no
14895 shlibpath_overrides_runpath=no
14896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14897 ;;
14898 esac
14899 ;;
14900
14901sysv4*MP*)
14902 if test -d /usr/nec ;then
14903 version_type=linux
14904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14905 soname_spec='$libname${shared_ext}.$major'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 fi
14908 ;;
14909
14910uts4*)
14911 version_type=linux
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 ;;
14916
14917*)
14918 dynamic_linker=no
14919 ;;
14920esac
14921echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14922echo "${ECHO_T}$dynamic_linker" >&6
14923test "$dynamic_linker" = no && can_build_shared=no
14924
14925echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14926echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14927hardcode_action_F77=
14928if test -n "$hardcode_libdir_flag_spec_F77" || \
14929 test -n "$runpath_var F77" || \
14930 test "X$hardcode_automatic_F77"="Xyes" ; then
14931
14932 # We can hardcode non-existant directories.
14933 if test "$hardcode_direct_F77" != no &&
14934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14935 # have to relink, otherwise we might link with an installed library
14936 # when we should be linking with a yet-to-be-installed one
14937 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14938 test "$hardcode_minus_L_F77" != no; then
14939 # Linking always hardcodes the temporary library directory.
14940 hardcode_action_F77=relink
14941 else
14942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14943 hardcode_action_F77=immediate
14944 fi
14945else
14946 # We cannot hardcode anything, or else we can only hardcode existing
14947 # directories.
14948 hardcode_action_F77=unsupported
14949fi
14950echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14951echo "${ECHO_T}$hardcode_action_F77" >&6
14952
14953if test "$hardcode_action_F77" = relink; then
14954 # Fast installation is not supported
14955 enable_fast_install=no
14956elif test "$shlibpath_overrides_runpath" = yes ||
14957 test "$enable_shared" = no; then
14958 # Fast installation is not necessary
14959 enable_fast_install=needless
14960fi
14961
14962striplib=
14963old_striplib=
14964echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14965echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14966if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14967 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14968 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14969 echo "$as_me:$LINENO: result: yes" >&5
14970echo "${ECHO_T}yes" >&6
14971else
14972# FIXME - insert some real tests, host_os isn't really good enough
14973 case $host_os in
14974 darwin*)
14975 if test -n "$STRIP" ; then
14976 striplib="$STRIP -x"
14977 echo "$as_me:$LINENO: result: yes" >&5
14978echo "${ECHO_T}yes" >&6
14979 else
14980 echo "$as_me:$LINENO: result: no" >&5
14981echo "${ECHO_T}no" >&6
14982fi
14983 ;;
14984 *)
14985 echo "$as_me:$LINENO: result: no" >&5
14986echo "${ECHO_T}no" >&6
14987 ;;
14988 esac
14989fi
14990
14991
14992
14993# The else clause should only fire when bootstrapping the
14994# libtool distribution, otherwise you forgot to ship ltmain.sh
14995# with your package, and you will get complaints that there are
14996# no rules to generate ltmain.sh.
14997if test -f "$ltmain"; then
14998 # See if we are running on zsh, and set the options which allow our commands through
14999 # without removal of \ escapes.
15000 if test -n "${ZSH_VERSION+set}" ; then
15001 setopt NO_GLOB_SUBST
15002 fi
15003 # Now quote all the things that may contain metacharacters while being
15004 # careful not to overquote the AC_SUBSTed values. We take copies of the
15005 # variables and quote the copies for generation of the libtool script.
15006 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15007 SED SHELL STRIP \
15008 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15009 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15010 deplibs_check_method reload_flag reload_cmds need_locks \
15011 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15012 lt_cv_sys_global_symbol_to_c_name_address \
15013 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15014 old_postinstall_cmds old_postuninstall_cmds \
15015 compiler_F77 \
15016 CC_F77 \
15017 LD_F77 \
15018 lt_prog_compiler_wl_F77 \
15019 lt_prog_compiler_pic_F77 \
15020 lt_prog_compiler_static_F77 \
15021 lt_prog_compiler_no_builtin_flag_F77 \
15022 export_dynamic_flag_spec_F77 \
15023 thread_safe_flag_spec_F77 \
15024 whole_archive_flag_spec_F77 \
15025 enable_shared_with_static_runtimes_F77 \
15026 old_archive_cmds_F77 \
15027 old_archive_from_new_cmds_F77 \
15028 predep_objects_F77 \
15029 postdep_objects_F77 \
15030 predeps_F77 \
15031 postdeps_F77 \
15032 compiler_lib_search_path_F77 \
15033 archive_cmds_F77 \
15034 archive_expsym_cmds_F77 \
15035 postinstall_cmds_F77 \
15036 postuninstall_cmds_F77 \
15037 old_archive_from_expsyms_cmds_F77 \
15038 allow_undefined_flag_F77 \
15039 no_undefined_flag_F77 \
15040 export_symbols_cmds_F77 \
15041 hardcode_libdir_flag_spec_F77 \
15042 hardcode_libdir_flag_spec_ld_F77 \
15043 hardcode_libdir_separator_F77 \
15044 hardcode_automatic_F77 \
15045 module_cmds_F77 \
15046 module_expsym_cmds_F77 \
15047 lt_cv_prog_compiler_c_o_F77 \
15048 exclude_expsyms_F77 \
15049 include_expsyms_F77; do
15050
15051 case $var in
15052 old_archive_cmds_F77 | \
15053 old_archive_from_new_cmds_F77 | \
15054 archive_cmds_F77 | \
15055 archive_expsym_cmds_F77 | \
15056 module_cmds_F77 | \
15057 module_expsym_cmds_F77 | \
15058 old_archive_from_expsyms_cmds_F77 | \
15059 export_symbols_cmds_F77 | \
15060 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15061 postinstall_cmds | postuninstall_cmds | \
15062 old_postinstall_cmds | old_postuninstall_cmds | \
15063 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15064 # Double-quote double-evaled strings.
15065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15066 ;;
15067 *)
15068 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15069 ;;
15070 esac
15071 done
15072
15073 case $lt_echo in
15074 *'\$0 --fallback-echo"')
15075 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15076 ;;
15077 esac
15078
15079cfgfile="$ofile"
15080
15081 cat <<__EOF__ >> "$cfgfile"
15082# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15083
15084# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15085
15086# Shell to use when invoking shell scripts.
15087SHELL=$lt_SHELL
15088
15089# Whether or not to build shared libraries.
15090build_libtool_libs=$enable_shared
15091
15092# Whether or not to build static libraries.
15093build_old_libs=$enable_static
15094
15095# Whether or not to add -lc for building shared libraries.
15096build_libtool_need_lc=$archive_cmds_need_lc_F77
15097
15098# Whether or not to disallow shared libs when runtime libs are static
15099allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15100
15101# Whether or not to optimize for fast installation.
15102fast_install=$enable_fast_install
15103
15104# The host system.
15105host_alias=$host_alias
15106host=$host
15107
15108# An echo program that does not interpret backslashes.
15109echo=$lt_echo
15110
15111# The archiver.
15112AR=$lt_AR
15113AR_FLAGS=$lt_AR_FLAGS
15114
15115# A C compiler.
15116LTCC=$lt_LTCC
15117
15118# A language-specific compiler.
15119CC=$lt_compiler_F77
15120
15121# Is the compiler the GNU C compiler?
15122with_gcc=$GCC_F77
15123
15124# An ERE matcher.
15125EGREP=$lt_EGREP
15126
15127# The linker used to build libraries.
15128LD=$lt_LD_F77
15129
15130# Whether we need hard or soft links.
15131LN_S=$lt_LN_S
15132
15133# A BSD-compatible nm program.
15134NM=$lt_NM
15135
15136# A symbol stripping program
15137STRIP=$lt_STRIP
15138
15139# Used to examine libraries when file_magic_cmd begins "file"
15140MAGIC_CMD=$MAGIC_CMD
15141
15142# Used on cygwin: DLL creation program.
15143DLLTOOL="$DLLTOOL"
15144
15145# Used on cygwin: object dumper.
15146OBJDUMP="$OBJDUMP"
15147
15148# Used on cygwin: assembler.
15149AS="$AS"
15150
15151# The name of the directory that contains temporary libtool files.
15152objdir=$objdir
15153
15154# How to create reloadable object files.
15155reload_flag=$lt_reload_flag
15156reload_cmds=$lt_reload_cmds
15157
15158# How to pass a linker flag through the compiler.
15159wl=$lt_lt_prog_compiler_wl_F77
15160
15161# Object file suffix (normally "o").
15162objext="$ac_objext"
15163
15164# Old archive suffix (normally "a").
15165libext="$libext"
15166
15167# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000015168shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015169
15170# Executable file suffix (normally "").
15171exeext="$exeext"
15172
15173# Additional compiler flags for building library objects.
15174pic_flag=$lt_lt_prog_compiler_pic_F77
15175pic_mode=$pic_mode
15176
15177# What is the maximum length of a command?
15178max_cmd_len=$lt_cv_sys_max_cmd_len
15179
15180# Does compiler simultaneously support -c and -o options?
15181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15182
15183# Must we lock files when doing compilation ?
15184need_locks=$lt_need_locks
15185
15186# Do we need the lib prefix for modules?
15187need_lib_prefix=$need_lib_prefix
15188
15189# Do we need a version for libraries?
15190need_version=$need_version
15191
15192# Whether dlopen is supported.
15193dlopen_support=$enable_dlopen
15194
15195# Whether dlopen of programs is supported.
15196dlopen_self=$enable_dlopen_self
15197
15198# Whether dlopen of statically linked programs is supported.
15199dlopen_self_static=$enable_dlopen_self_static
15200
15201# Compiler flag to prevent dynamic linking.
15202link_static_flag=$lt_lt_prog_compiler_static_F77
15203
15204# Compiler flag to turn off builtin functions.
15205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15206
15207# Compiler flag to allow reflexive dlopens.
15208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15209
15210# Compiler flag to generate shared objects directly from archives.
15211whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15212
15213# Compiler flag to generate thread-safe objects.
15214thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15215
15216# Library versioning type.
15217version_type=$version_type
15218
15219# Format of library name prefix.
15220libname_spec=$lt_libname_spec
15221
15222# List of archive names. First name is the real one, the rest are links.
15223# The last name is the one that the linker finds with -lNAME.
15224library_names_spec=$lt_library_names_spec
15225
15226# The coded name of the library, if different from the real name.
15227soname_spec=$lt_soname_spec
15228
15229# Commands used to build and install an old-style archive.
15230RANLIB=$lt_RANLIB
15231old_archive_cmds=$lt_old_archive_cmds_F77
15232old_postinstall_cmds=$lt_old_postinstall_cmds
15233old_postuninstall_cmds=$lt_old_postuninstall_cmds
15234
15235# Create an old-style archive from a shared archive.
15236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15237
15238# Create a temporary old-style archive to link instead of a shared archive.
15239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15240
15241# Commands used to build and install a shared archive.
15242archive_cmds=$lt_archive_cmds_F77
15243archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15244postinstall_cmds=$lt_postinstall_cmds
15245postuninstall_cmds=$lt_postuninstall_cmds
15246
15247# Commands used to build a loadable module (assumed same as above if empty)
15248module_cmds=$lt_module_cmds_F77
15249module_expsym_cmds=$lt_module_expsym_cmds_F77
15250
15251# Commands to strip libraries.
15252old_striplib=$lt_old_striplib
15253striplib=$lt_striplib
15254
15255# Dependencies to place before the objects being linked to create a
15256# shared library.
15257predep_objects=$lt_predep_objects_F77
15258
15259# Dependencies to place after the objects being linked to create a
15260# shared library.
15261postdep_objects=$lt_postdep_objects_F77
15262
15263# Dependencies to place before the objects being linked to create a
15264# shared library.
15265predeps=$lt_predeps_F77
15266
15267# Dependencies to place after the objects being linked to create a
15268# shared library.
15269postdeps=$lt_postdeps_F77
15270
15271# The library search path used internally by the compiler when linking
15272# a shared library.
15273compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15274
15275# Method to check whether dependent libraries are shared objects.
15276deplibs_check_method=$lt_deplibs_check_method
15277
15278# Command to use when deplibs_check_method == file_magic.
15279file_magic_cmd=$lt_file_magic_cmd
15280
15281# Flag that allows shared libraries with undefined symbols to be built.
15282allow_undefined_flag=$lt_allow_undefined_flag_F77
15283
15284# Flag that forces no undefined symbols.
15285no_undefined_flag=$lt_no_undefined_flag_F77
15286
15287# Commands used to finish a libtool library installation in a directory.
15288finish_cmds=$lt_finish_cmds
15289
15290# Same as above, but a single script fragment to be evaled but not shown.
15291finish_eval=$lt_finish_eval
15292
15293# Take the output of nm and produce a listing of raw symbols and C names.
15294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15295
15296# Transform the output of nm in a proper C declaration
15297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15298
15299# Transform the output of nm in a C name address pair
15300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15301
15302# This is the shared library runtime path variable.
15303runpath_var=$runpath_var
15304
15305# This is the shared library path variable.
15306shlibpath_var=$shlibpath_var
15307
15308# Is shlibpath searched before the hard-coded library search path?
15309shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15310
15311# How to hardcode a shared library path into an executable.
15312hardcode_action=$hardcode_action_F77
15313
15314# Whether we should hardcode library paths into libraries.
15315hardcode_into_libs=$hardcode_into_libs
15316
15317# Flag to hardcode \$libdir into a binary during linking.
15318# This must work even if \$libdir does not exist.
15319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15320
15321# If ld is used when linking, flag to hardcode \$libdir into
15322# a binary during linking. This must work even if \$libdir does
15323# not exist.
15324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15325
15326# Whether we need a single -rpath flag with a separated argument.
15327hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15328
15329# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15330# resulting binary.
15331hardcode_direct=$hardcode_direct_F77
15332
15333# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15334# resulting binary.
15335hardcode_minus_L=$hardcode_minus_L_F77
15336
15337# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15338# the resulting binary.
15339hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15340
15341# Set to yes if building a shared library automatically hardcodes DIR into the library
15342# and all subsequent libraries and executables linked against it.
15343hardcode_automatic=$hardcode_automatic_F77
15344
15345# Variables whose values should be saved in libtool wrapper scripts and
15346# restored at relink time.
15347variables_saved_for_relink="$variables_saved_for_relink"
15348
15349# Whether libtool must link a program against all its dependency libraries.
15350link_all_deplibs=$link_all_deplibs_F77
15351
15352# Compile-time system search path for libraries
15353sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15354
15355# Run-time system search path for libraries
15356sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15357
15358# Fix the shell variable \$srcfile for the compiler.
15359fix_srcfile_path="$fix_srcfile_path_F77"
15360
15361# Set to yes if exported symbols are required.
15362always_export_symbols=$always_export_symbols_F77
15363
15364# The commands to list exported symbols.
15365export_symbols_cmds=$lt_export_symbols_cmds_F77
15366
15367# The commands to extract the exported symbol list from a shared archive.
15368extract_expsyms_cmds=$lt_extract_expsyms_cmds
15369
15370# Symbols that should not be listed in the preloaded symbols.
15371exclude_expsyms=$lt_exclude_expsyms_F77
15372
15373# Symbols that must always be exported.
15374include_expsyms=$lt_include_expsyms_F77
15375
15376# ### END LIBTOOL TAG CONFIG: $tagname
15377
15378__EOF__
15379
15380
15381else
15382 # If there is no Makefile yet, we rely on a make rule to execute
15383 # `config.status --recheck' to rerun these tests and create the
15384 # libtool script then.
15385 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15386 if test -f "$ltmain_in"; then
15387 test -f Makefile && make "$ltmain"
15388 fi
15389fi
15390
15391
15392ac_ext=c
15393ac_cpp='$CPP $CPPFLAGS'
15394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15396ac_compiler_gnu=$ac_cv_c_compiler_gnu
15397
15398CC="$lt_save_CC"
15399
15400 else
15401 tagname=""
15402 fi
15403 ;;
15404
15405 GCJ)
15406 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15407
15408
15409
15410# Source file extension for Java test sources.
15411ac_ext=java
15412
15413# Object file extension for compiled Java test sources.
15414objext=o
15415objext_GCJ=$objext
15416
15417# Code to be used in simple compile tests
15418lt_simple_compile_test_code="class foo {}\n"
15419
15420# Code to be used in simple link tests
15421lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15422
15423# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15424
15425# If no C compiler was specified, use CC.
15426LTCC=${LTCC-"$CC"}
15427
15428# Allow CC to be a program name with arguments.
15429compiler=$CC
15430
15431
15432# Allow CC to be a program name with arguments.
15433lt_save_CC="$CC"
15434CC=${GCJ-"gcj"}
15435compiler=$CC
15436compiler_GCJ=$CC
15437
15438# GCJ did not exist at the time GCC didn't implicitly link libc in.
15439archive_cmds_need_lc_GCJ=no
15440
15441
15442lt_prog_compiler_no_builtin_flag_GCJ=
15443
15444if test "$GCC" = yes; then
15445 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15446
15447
15448echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15449echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452else
15453 lt_cv_prog_compiler_rtti_exceptions=no
15454 ac_outfile=conftest.$ac_objext
15455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15456 lt_compiler_flag="-fno-rtti -fno-exceptions"
15457 # Insert the option either (1) after the last *FLAGS variable, or
15458 # (2) before a word containing "conftest.", or (3) at the end.
15459 # Note that $ac_compile itself does not contain backslashes and begins
15460 # with a dollar sign (not a hyphen), so the echo should work correctly.
15461 # The option is referenced via a variable to avoid confusing sed.
15462 lt_compile=`echo "$ac_compile" | $SED \
15463 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000015466 (eval echo "\"\$as_me:15466: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015467 (eval "$lt_compile" 2>conftest.err)
15468 ac_status=$?
15469 cat conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000015470 echo "$as_me:15470: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015471 if (exit $ac_status) && test -s "$ac_outfile"; then
15472 # The compiler can only warn and ignore the option if not recognized
15473 # So say no if there are warnings
15474 if test ! -s conftest.err; then
15475 lt_cv_prog_compiler_rtti_exceptions=yes
15476 fi
15477 fi
15478 $rm conftest*
15479
15480fi
15481echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15482echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15483
15484if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15485 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15486else
15487 :
15488fi
15489
15490fi
15491
15492lt_prog_compiler_wl_GCJ=
15493lt_prog_compiler_pic_GCJ=
15494lt_prog_compiler_static_GCJ=
15495
15496echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15497echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15498
15499 if test "$GCC" = yes; then
15500 lt_prog_compiler_wl_GCJ='-Wl,'
15501 lt_prog_compiler_static_GCJ='-static'
15502
15503 case $host_os in
15504 aix*)
15505 # All AIX code is PIC.
15506 if test "$host_cpu" = ia64; then
15507 # AIX 5 now supports IA64 processor
15508 lt_prog_compiler_static_GCJ='-Bstatic'
15509 fi
15510 ;;
15511
15512 amigaos*)
15513 # FIXME: we need at least 68020 code to build shared libraries, but
15514 # adding the `-m68020' flag to GCC prevents building anything better,
15515 # like `-m68040'.
15516 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15517 ;;
15518
15519 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15520 # PIC is the default for these OSes.
15521 ;;
15522
15523 mingw* | pw32* | os2*)
15524 # This hack is so that the source file can tell whether it is being
15525 # built for inclusion in a dll (and should export symbols for example).
15526 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15527 ;;
15528
15529 darwin* | rhapsody*)
15530 # PIC is the default on this platform
15531 # Common symbols not allowed in MH_DYLIB files
15532 lt_prog_compiler_pic_GCJ='-fno-common'
15533 ;;
15534
15535 msdosdjgpp*)
15536 # Just because we use GCC doesn't mean we suddenly get shared libraries
15537 # on systems that don't support them.
15538 lt_prog_compiler_can_build_shared_GCJ=no
15539 enable_shared=no
15540 ;;
15541
15542 sysv4*MP*)
15543 if test -d /usr/nec; then
15544 lt_prog_compiler_pic_GCJ=-Kconform_pic
15545 fi
15546 ;;
15547
15548 hpux*)
15549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15550 # not for PA HP-UX.
15551 case "$host_cpu" in
15552 hppa*64*|ia64*)
15553 # +Z the default
15554 ;;
15555 *)
15556 lt_prog_compiler_pic_GCJ='-fPIC'
15557 ;;
15558 esac
15559 ;;
15560
15561 *)
15562 lt_prog_compiler_pic_GCJ='-fPIC'
15563 ;;
15564 esac
15565 else
15566 # PORTME Check for flag to pass linker flags through the system compiler.
15567 case $host_os in
15568 aix*)
15569 lt_prog_compiler_wl_GCJ='-Wl,'
15570 if test "$host_cpu" = ia64; then
15571 # AIX 5 now supports IA64 processor
15572 lt_prog_compiler_static_GCJ='-Bstatic'
15573 else
15574 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15575 fi
15576 ;;
15577
15578 mingw* | pw32* | os2*)
15579 # This hack is so that the source file can tell whether it is being
15580 # built for inclusion in a dll (and should export symbols for example).
15581 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15582 ;;
15583
15584 hpux9* | hpux10* | hpux11*)
15585 lt_prog_compiler_wl_GCJ='-Wl,'
15586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15587 # not for PA HP-UX.
15588 case "$host_cpu" in
15589 hppa*64*|ia64*)
15590 # +Z the default
15591 ;;
15592 *)
15593 lt_prog_compiler_pic_GCJ='+Z'
15594 ;;
15595 esac
15596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15597 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15598 ;;
15599
15600 irix5* | irix6* | nonstopux*)
15601 lt_prog_compiler_wl_GCJ='-Wl,'
15602 # PIC (with -KPIC) is the default.
15603 lt_prog_compiler_static_GCJ='-non_shared'
15604 ;;
15605
15606 newsos6)
15607 lt_prog_compiler_pic_GCJ='-KPIC'
15608 lt_prog_compiler_static_GCJ='-Bstatic'
15609 ;;
15610
15611 linux*)
15612 case $CC in
15613 icc* | ecc*)
15614 lt_prog_compiler_wl_GCJ='-Wl,'
15615 lt_prog_compiler_pic_GCJ='-KPIC'
15616 lt_prog_compiler_static_GCJ='-static'
15617 ;;
15618 ccc*)
15619 lt_prog_compiler_wl_GCJ='-Wl,'
15620 # All Alpha code is PIC.
15621 lt_prog_compiler_static_GCJ='-non_shared'
15622 ;;
15623 esac
15624 ;;
15625
15626 osf3* | osf4* | osf5*)
15627 lt_prog_compiler_wl_GCJ='-Wl,'
15628 # All OSF/1 code is PIC.
15629 lt_prog_compiler_static_GCJ='-non_shared'
15630 ;;
15631
15632 sco3.2v5*)
15633 lt_prog_compiler_pic_GCJ='-Kpic'
15634 lt_prog_compiler_static_GCJ='-dn'
15635 ;;
15636
15637 solaris*)
15638 lt_prog_compiler_wl_GCJ='-Wl,'
15639 lt_prog_compiler_pic_GCJ='-KPIC'
15640 lt_prog_compiler_static_GCJ='-Bstatic'
15641 ;;
15642
15643 sunos4*)
15644 lt_prog_compiler_wl_GCJ='-Qoption ld '
15645 lt_prog_compiler_pic_GCJ='-PIC'
15646 lt_prog_compiler_static_GCJ='-Bstatic'
15647 ;;
15648
15649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15650 lt_prog_compiler_wl_GCJ='-Wl,'
15651 lt_prog_compiler_pic_GCJ='-KPIC'
15652 lt_prog_compiler_static_GCJ='-Bstatic'
15653 ;;
15654
15655 sysv4*MP*)
15656 if test -d /usr/nec ;then
15657 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15658 lt_prog_compiler_static_GCJ='-Bstatic'
15659 fi
15660 ;;
15661
15662 uts4*)
15663 lt_prog_compiler_pic_GCJ='-pic'
15664 lt_prog_compiler_static_GCJ='-Bstatic'
15665 ;;
15666
15667 *)
15668 lt_prog_compiler_can_build_shared_GCJ=no
15669 ;;
15670 esac
15671 fi
15672
15673echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15674echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15675
15676#
15677# Check to make sure the PIC flag actually works.
15678#
15679if test -n "$lt_prog_compiler_pic_GCJ"; then
15680
15681echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15682echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15683if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685else
15686 lt_prog_compiler_pic_works_GCJ=no
15687 ac_outfile=conftest.$ac_objext
15688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15689 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15690 # Insert the option either (1) after the last *FLAGS variable, or
15691 # (2) before a word containing "conftest.", or (3) at the end.
15692 # Note that $ac_compile itself does not contain backslashes and begins
15693 # with a dollar sign (not a hyphen), so the echo should work correctly.
15694 # The option is referenced via a variable to avoid confusing sed.
15695 lt_compile=`echo "$ac_compile" | $SED \
15696 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15698 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000015699 (eval echo "\"\$as_me:15699: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015700 (eval "$lt_compile" 2>conftest.err)
15701 ac_status=$?
15702 cat conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000015703 echo "$as_me:15703: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015704 if (exit $ac_status) && test -s "$ac_outfile"; then
15705 # The compiler can only warn and ignore the option if not recognized
15706 # So say no if there are warnings
15707 if test ! -s conftest.err; then
15708 lt_prog_compiler_pic_works_GCJ=yes
15709 fi
15710 fi
15711 $rm conftest*
15712
15713fi
15714echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15715echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15716
15717if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15718 case $lt_prog_compiler_pic_GCJ in
15719 "" | " "*) ;;
15720 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15721 esac
15722else
15723 lt_prog_compiler_pic_GCJ=
15724 lt_prog_compiler_can_build_shared_GCJ=no
15725fi
15726
15727fi
15728case "$host_os" in
15729 # For platforms which do not support PIC, -DPIC is meaningless:
15730 *djgpp*)
15731 lt_prog_compiler_pic_GCJ=
15732 ;;
15733 *)
15734 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15735 ;;
15736esac
15737
15738echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15740if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742else
15743 lt_cv_prog_compiler_c_o_GCJ=no
15744 $rm -r conftest 2>/dev/null
15745 mkdir conftest
15746 cd conftest
15747 mkdir out
15748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15749
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015750 lt_compiler_flag="-o out/conftest2.$ac_objext"
15751 # Insert the option either (1) after the last *FLAGS variable, or
15752 # (2) before a word containing "conftest.", or (3) at the end.
15753 # Note that $ac_compile itself does not contain backslashes and begins
15754 # with a dollar sign (not a hyphen), so the echo should work correctly.
15755 lt_compile=`echo "$ac_compile" | $SED \
15756 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15758 -e 's:$: $lt_compiler_flag:'`
hp.com!davidm2de17682004-04-20 16:53:44 +000015759 (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015760 (eval "$lt_compile" 2>out/conftest.err)
15761 ac_status=$?
15762 cat out/conftest.err >&5
hp.com!davidm2de17682004-04-20 16:53:44 +000015763 echo "$as_me:15763: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15765 then
15766 # The compiler can only warn and ignore the option if not recognized
15767 # So say no if there are warnings
15768 if test ! -s out/conftest.err; then
15769 lt_cv_prog_compiler_c_o_GCJ=yes
15770 fi
15771 fi
15772 chmod u+w .
15773 $rm conftest*
15774 # SGI C++ compiler will create directory out/ii_files/ for
15775 # template instantiation
15776 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15777 $rm out/* && rmdir out
15778 cd ..
15779 rmdir conftest
15780 $rm conftest*
15781
15782fi
15783echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15784echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15785
15786
15787hard_links="nottested"
15788if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15789 # do not overwrite the value of need_locks provided by the user
15790 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15791echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15792 hard_links=yes
15793 $rm conftest*
15794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15795 touch conftest.a
15796 ln conftest.a conftest.b 2>&5 || hard_links=no
15797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15798 echo "$as_me:$LINENO: result: $hard_links" >&5
15799echo "${ECHO_T}$hard_links" >&6
15800 if test "$hard_links" = no; then
15801 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15802echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15803 need_locks=warn
15804 fi
15805else
15806 need_locks=no
15807fi
15808
15809echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15810echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15811
15812 runpath_var=
15813 allow_undefined_flag_GCJ=
15814 enable_shared_with_static_runtimes_GCJ=no
15815 archive_cmds_GCJ=
15816 archive_expsym_cmds_GCJ=
15817 old_archive_From_new_cmds_GCJ=
15818 old_archive_from_expsyms_cmds_GCJ=
15819 export_dynamic_flag_spec_GCJ=
15820 whole_archive_flag_spec_GCJ=
15821 thread_safe_flag_spec_GCJ=
15822 hardcode_libdir_flag_spec_GCJ=
15823 hardcode_libdir_flag_spec_ld_GCJ=
15824 hardcode_libdir_separator_GCJ=
15825 hardcode_direct_GCJ=no
15826 hardcode_minus_L_GCJ=no
15827 hardcode_shlibpath_var_GCJ=unsupported
15828 link_all_deplibs_GCJ=unknown
15829 hardcode_automatic_GCJ=no
15830 module_cmds_GCJ=
15831 module_expsym_cmds_GCJ=
15832 always_export_symbols_GCJ=no
15833 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15834 # include_expsyms should be a list of space-separated symbols to be *always*
15835 # included in the symbol list
15836 include_expsyms_GCJ=
15837 # exclude_expsyms can be an extended regexp of symbols to exclude
15838 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15839 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15840 # as well as any symbol that contains `d'.
15841 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15842 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15843 # platforms (ab)use it in PIC code, but their linkers get confused if
15844 # the symbol is explicitly referenced. Since portable code cannot
15845 # rely on this symbol name, it's probably fine to never include it in
15846 # preloaded symbol tables.
15847 extract_expsyms_cmds=
15848
15849 case $host_os in
15850 cygwin* | mingw* | pw32*)
15851 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15852 # When not using gcc, we currently assume that we are using
15853 # Microsoft Visual C++.
15854 if test "$GCC" != yes; then
15855 with_gnu_ld=no
15856 fi
15857 ;;
15858 openbsd*)
15859 with_gnu_ld=no
15860 ;;
15861 esac
15862
15863 ld_shlibs_GCJ=yes
15864 if test "$with_gnu_ld" = yes; then
15865 # If archive_cmds runs LD, not CC, wlarc should be empty
15866 wlarc='${wl}'
15867
15868 # See if GNU ld supports shared libraries.
15869 case $host_os in
15870 aix3* | aix4* | aix5*)
15871 # On AIX/PPC, the GNU linker is very broken
15872 if test "$host_cpu" != ia64; then
15873 ld_shlibs_GCJ=no
15874 cat <<EOF 1>&2
15875
15876*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15877*** to be unable to reliably create shared libraries on AIX.
15878*** Therefore, libtool is disabling shared libraries support. If you
15879*** really care for shared libraries, you may want to modify your PATH
15880*** so that a non-GNU linker is found, and then restart.
15881
15882EOF
15883 fi
15884 ;;
15885
15886 amigaos*)
15887 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)'
15888 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15889 hardcode_minus_L_GCJ=yes
15890
15891 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15892 # that the semantics of dynamic libraries on AmigaOS, at least up
15893 # to version 4, is to share data among multiple programs linked
15894 # with the same dynamic library. Since this doesn't match the
15895 # behavior of shared libraries on other platforms, we can't use
15896 # them.
15897 ld_shlibs_GCJ=no
15898 ;;
15899
15900 beos*)
15901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15902 allow_undefined_flag_GCJ=unsupported
15903 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15904 # support --undefined. This deserves some investigation. FIXME
15905 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15906 else
15907 ld_shlibs_GCJ=no
15908 fi
15909 ;;
15910
15911 cygwin* | mingw* | pw32*)
15912 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15913 # as there is no search path for DLLs.
15914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15915 allow_undefined_flag_GCJ=unsupported
15916 always_export_symbols_GCJ=no
15917 enable_shared_with_static_runtimes_GCJ=yes
15918 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15919
15920 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15922 # If the export-symbols file already is a .def file (1st line
15923 # is EXPORTS), use it as is; otherwise, prepend...
15924 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15925 cp $export_symbols $output_objdir/$soname.def;
15926 else
15927 echo EXPORTS > $output_objdir/$soname.def;
15928 cat $export_symbols >> $output_objdir/$soname.def;
15929 fi~
15930 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15931 else
15932 ld_shlibs=no
15933 fi
15934 ;;
15935
hp.com!davidm2de17682004-04-20 16:53:44 +000015936 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15938 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15939 wlarc=
15940 else
15941 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15942 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15943 fi
15944 ;;
15945
15946 solaris* | sysv5*)
15947 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15948 ld_shlibs_GCJ=no
15949 cat <<EOF 1>&2
15950
15951*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15952*** create shared libraries on Solaris systems. Therefore, libtool
15953*** is disabling shared libraries support. We urge you to upgrade GNU
15954*** binutils to release 2.9.1 or newer. Another option is to modify
15955*** your PATH or compiler configuration so that the native linker is
15956*** used, and then restart.
15957
15958EOF
15959 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15960 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15962 else
15963 ld_shlibs_GCJ=no
15964 fi
15965 ;;
15966
15967 sunos4*)
15968 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15969 wlarc=
15970 hardcode_direct_GCJ=yes
15971 hardcode_shlibpath_var_GCJ=no
15972 ;;
15973
15974 linux*)
hp.com!davidm2de17682004-04-20 16:53:44 +000015975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015976 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15977 archive_cmds_GCJ="$tmp_archive_cmds"
15978 supports_anon_versioning=no
15979 case `$LD -v 2>/dev/null` in
15980 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15983 *\ 2.11.*) ;; # other 2.11 versions
15984 *) supports_anon_versioning=yes ;;
15985 esac
15986 if test $supports_anon_versioning = yes; then
15987 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15988cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15989$echo "local: *; };" >> $output_objdir/$libname.ver~
15990 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15991 else
15992 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15993 fi
hp.com!davidm2de17682004-04-20 16:53:44 +000015994 link_all_deplibs_GCJ=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015995 else
15996 ld_shlibs_GCJ=no
15997 fi
15998 ;;
15999
16000 *)
16001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16002 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16003 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16004 else
16005 ld_shlibs_GCJ=no
16006 fi
16007 ;;
16008 esac
16009
16010 if test "$ld_shlibs_GCJ" = yes; then
16011 runpath_var=LD_RUN_PATH
16012 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16013 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16014 # ancient GNU ld didn't support --whole-archive et. al.
16015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16016 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16017 else
16018 whole_archive_flag_spec_GCJ=
16019 fi
16020 fi
16021 else
16022 # PORTME fill in a description of your system's linker (not GNU ld)
16023 case $host_os in
16024 aix3*)
16025 allow_undefined_flag_GCJ=unsupported
16026 always_export_symbols_GCJ=yes
16027 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'
16028 # Note: this linker hardcodes the directories in LIBPATH if there
16029 # are no directories specified by -L.
16030 hardcode_minus_L_GCJ=yes
16031 if test "$GCC" = yes && test -z "$link_static_flag"; then
16032 # Neither direct hardcoding nor static linking is supported with a
16033 # broken collect2.
16034 hardcode_direct_GCJ=unsupported
16035 fi
16036 ;;
16037
16038 aix4* | aix5*)
16039 if test "$host_cpu" = ia64; then
16040 # On IA64, the linker does run time linking by default, so we don't
16041 # have to do anything special.
16042 aix_use_runtimelinking=no
16043 exp_sym_flag='-Bexport'
16044 no_entry_flag=""
16045 else
16046 # If we're using GNU nm, then we don't want the "-C" option.
16047 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16048 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16049 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'
16050 else
16051 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'
16052 fi
16053 aix_use_runtimelinking=no
16054
16055 # Test if we are trying to use run time linking or normal
16056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16057 # need to do runtime linking.
16058 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16059 for ld_flag in $LDFLAGS; do
16060 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16061 aix_use_runtimelinking=yes
16062 break
16063 fi
16064 done
16065 esac
16066
16067 exp_sym_flag='-bexport'
16068 no_entry_flag='-bnoentry'
16069 fi
16070
16071 # When large executables or shared objects are built, AIX ld can
16072 # have problems creating the table of contents. If linking a library
16073 # or program results in "error TOC overflow" add -mminimal-toc to
16074 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16075 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16076
16077 archive_cmds_GCJ=''
16078 hardcode_direct_GCJ=yes
16079 hardcode_libdir_separator_GCJ=':'
16080 link_all_deplibs_GCJ=yes
16081
16082 if test "$GCC" = yes; then
16083 case $host_os in aix4.012|aix4.012.*)
16084 # We only want to do this on AIX 4.2 and lower, the check
16085 # below for broken collect2 doesn't work under 4.3+
16086 collect2name=`${CC} -print-prog-name=collect2`
16087 if test -f "$collect2name" && \
16088 strings "$collect2name" | grep resolve_lib_name >/dev/null
16089 then
16090 # We have reworked collect2
16091 hardcode_direct_GCJ=yes
16092 else
16093 # We have old collect2
16094 hardcode_direct_GCJ=unsupported
16095 # It fails to find uninstalled libraries when the uninstalled
16096 # path is not listed in the libpath. Setting hardcode_minus_L
16097 # to unsupported forces relinking
16098 hardcode_minus_L_GCJ=yes
16099 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16100 hardcode_libdir_separator_GCJ=
16101 fi
16102 esac
16103 shared_flag='-shared'
16104 else
16105 # not using gcc
16106 if test "$host_cpu" = ia64; then
16107 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16108 # chokes on -Wl,-G. The following line is correct:
16109 shared_flag='-G'
16110 else
16111 if test "$aix_use_runtimelinking" = yes; then
16112 shared_flag='${wl}-G'
16113 else
16114 shared_flag='${wl}-bM:SRE'
16115 fi
16116 fi
16117 fi
16118
16119 # It seems that -bexpall does not export symbols beginning with
16120 # underscore (_), so it is better to generate a list of symbols to export.
16121 always_export_symbols_GCJ=yes
16122 if test "$aix_use_runtimelinking" = yes; then
16123 # Warning - without using the other runtime loading flags (-brtl),
16124 # -berok will link without error, but may produce a broken library.
16125 allow_undefined_flag_GCJ='-berok'
16126 # Determine the default libpath from the value encoded in an empty executable.
16127 cat >conftest.$ac_ext <<_ACEOF
16128/* confdefs.h. */
16129_ACEOF
16130cat confdefs.h >>conftest.$ac_ext
16131cat >>conftest.$ac_ext <<_ACEOF
16132/* end confdefs.h. */
16133
16134int
16135main ()
16136{
16137
16138 ;
16139 return 0;
16140}
16141_ACEOF
16142rm -f conftest.$ac_objext conftest$ac_exeext
16143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016144 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016145 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; } &&
16157 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; }; then
16163
16164aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16165}'`
16166# Check for a 64-bit object if we didn't find anything.
16167if 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; }
16168}'`; fi
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016174rm -f conftest.err conftest.$ac_objext \
16175 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016176if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16177
16178 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16179 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16180 else
16181 if test "$host_cpu" = ia64; then
16182 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16183 allow_undefined_flag_GCJ="-z nodefs"
16184 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16185 else
16186 # Determine the default libpath from the value encoded in an empty executable.
16187 cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193
16194int
16195main ()
16196{
16197
16198 ;
16199 return 0;
16200}
16201_ACEOF
16202rm -f conftest.$ac_objext conftest$ac_exeext
16203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016204 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016205 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } &&
16217 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223
16224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16225}'`
16226# Check for a 64-bit object if we didn't find anything.
16227if 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; }
16228}'`; fi
16229else
16230 echo "$as_me: failed program was:" >&5
16231sed 's/^/| /' conftest.$ac_ext >&5
16232
16233fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000016234rm -f conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16237
16238 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16239 # Warning - without using the other run time loading flags,
16240 # -berok will link without error, but may produce a broken library.
16241 no_undefined_flag_GCJ=' ${wl}-bernotok'
16242 allow_undefined_flag_GCJ=' ${wl}-berok'
16243 # -bexpall does not export symbols beginning with underscore (_)
16244 always_export_symbols_GCJ=yes
16245 # Exported symbols can be pulled into shared objects from archives
16246 whole_archive_flag_spec_GCJ=' '
16247 archive_cmds_need_lc_GCJ=yes
16248 # This is similar to how AIX traditionally builds it's shared libraries.
16249 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16250 fi
16251 fi
16252 ;;
16253
16254 amigaos*)
16255 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16257 hardcode_minus_L_GCJ=yes
16258 # see comment about different semantics on the GNU ld section
16259 ld_shlibs_GCJ=no
16260 ;;
16261
16262 bsdi4*)
16263 export_dynamic_flag_spec_GCJ=-rdynamic
16264 ;;
16265
16266 cygwin* | mingw* | pw32*)
16267 # When not using gcc, we currently assume that we are using
16268 # Microsoft Visual C++.
16269 # hardcode_libdir_flag_spec is actually meaningless, as there is
16270 # no search path for DLLs.
16271 hardcode_libdir_flag_spec_GCJ=' '
16272 allow_undefined_flag_GCJ=unsupported
16273 # Tell ltmain to make .lib files, not .a files.
16274 libext=lib
16275 # Tell ltmain to make .dll files, not .so files.
hp.com!davidm2de17682004-04-20 16:53:44 +000016276 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016277 # FIXME: Setting linknames here is a bad hack.
16278 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16279 # The linker will automatically build a .lib file if we build a DLL.
16280 old_archive_From_new_cmds_GCJ='true'
16281 # FIXME: Should let the user specify the lib program.
16282 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16283 fix_srcfile_path='`cygpath -w "$srcfile"`'
16284 enable_shared_with_static_runtimes_GCJ=yes
16285 ;;
16286
16287 darwin* | rhapsody*)
16288 if test "$GXX" = yes ; then
16289 archive_cmds_need_lc_GCJ=no
16290 case "$host_os" in
16291 rhapsody* | darwin1.[012])
16292 allow_undefined_flag_GCJ='-undefined suppress'
16293 ;;
16294 *) # Darwin 1.3 on
16295 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16296 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16297 else
16298 case ${MACOSX_DEPLOYMENT_TARGET} in
16299 10.[012])
16300 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16301 ;;
16302 10.*)
16303 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16304 ;;
16305 esac
16306 fi
16307 ;;
16308 esac
16309 lt_int_apple_cc_single_mod=no
16310 output_verbose_link_cmd='echo'
16311 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16312 lt_int_apple_cc_single_mod=yes
16313 fi
16314 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16315 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16316 else
16317 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16318 fi
16319 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16321 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16322 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16323 else
16324 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16325 fi
16326 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}'
16327 hardcode_direct_GCJ=no
16328 hardcode_automatic_GCJ=yes
16329 hardcode_shlibpath_var_GCJ=unsupported
16330 whole_archive_flag_spec_GCJ='-all_load $convenience'
16331 link_all_deplibs_GCJ=yes
16332 else
16333 ld_shlibs_GCJ=no
16334 fi
16335 ;;
16336
16337 dgux*)
16338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16340 hardcode_shlibpath_var_GCJ=no
16341 ;;
16342
16343 freebsd1*)
16344 ld_shlibs_GCJ=no
16345 ;;
16346
16347 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16348 # support. Future versions do this automatically, but an explicit c++rt0.o
16349 # does not break anything, and helps significantly (at the cost of a little
16350 # extra space).
16351 freebsd2.2*)
16352 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16353 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16354 hardcode_direct_GCJ=yes
16355 hardcode_shlibpath_var_GCJ=no
16356 ;;
16357
16358 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16359 freebsd2*)
16360 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16361 hardcode_direct_GCJ=yes
16362 hardcode_minus_L_GCJ=yes
16363 hardcode_shlibpath_var_GCJ=no
16364 ;;
16365
16366 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16367 freebsd* | kfreebsd*-gnu)
16368 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16369 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16370 hardcode_direct_GCJ=yes
16371 hardcode_shlibpath_var_GCJ=no
16372 ;;
16373
16374 hpux9*)
16375 if test "$GCC" = yes; then
16376 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'
16377 else
16378 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'
16379 fi
16380 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16381 hardcode_libdir_separator_GCJ=:
16382 hardcode_direct_GCJ=yes
16383
16384 # hardcode_minus_L: Not really in the search PATH,
16385 # but as the default location of the library.
16386 hardcode_minus_L_GCJ=yes
16387 export_dynamic_flag_spec_GCJ='${wl}-E'
16388 ;;
16389
16390 hpux10* | hpux11*)
16391 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16392 case "$host_cpu" in
16393 hppa*64*|ia64*)
16394 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16395 ;;
16396 *)
16397 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16398 ;;
16399 esac
16400 else
16401 case "$host_cpu" in
16402 hppa*64*|ia64*)
16403 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16404 ;;
16405 *)
16406 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16407 ;;
16408 esac
16409 fi
16410 if test "$with_gnu_ld" = no; then
16411 case "$host_cpu" in
16412 hppa*64*)
16413 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16414 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16415 hardcode_libdir_separator_GCJ=:
16416 hardcode_direct_GCJ=no
16417 hardcode_shlibpath_var_GCJ=no
16418 ;;
16419 ia64*)
16420 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16421 hardcode_direct_GCJ=no
16422 hardcode_shlibpath_var_GCJ=no
16423
16424 # hardcode_minus_L: Not really in the search PATH,
16425 # but as the default location of the library.
16426 hardcode_minus_L_GCJ=yes
16427 ;;
16428 *)
16429 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16430 hardcode_libdir_separator_GCJ=:
16431 hardcode_direct_GCJ=yes
16432 export_dynamic_flag_spec_GCJ='${wl}-E'
16433
16434 # hardcode_minus_L: Not really in the search PATH,
16435 # but as the default location of the library.
16436 hardcode_minus_L_GCJ=yes
16437 ;;
16438 esac
16439 fi
16440 ;;
16441
16442 irix5* | irix6* | nonstopux*)
16443 if test "$GCC" = yes; then
16444 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'
16445 else
16446 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'
16447 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16448 fi
16449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16450 hardcode_libdir_separator_GCJ=:
16451 link_all_deplibs_GCJ=yes
16452 ;;
16453
hp.com!davidm2de17682004-04-20 16:53:44 +000016454 netbsd* | knetbsd*-gnu)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16456 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16457 else
16458 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16459 fi
16460 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16461 hardcode_direct_GCJ=yes
16462 hardcode_shlibpath_var_GCJ=no
16463 ;;
16464
16465 newsos6)
16466 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16467 hardcode_direct_GCJ=yes
16468 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16469 hardcode_libdir_separator_GCJ=:
16470 hardcode_shlibpath_var_GCJ=no
16471 ;;
16472
16473 openbsd*)
16474 hardcode_direct_GCJ=yes
16475 hardcode_shlibpath_var_GCJ=no
16476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16477 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16479 export_dynamic_flag_spec_GCJ='${wl}-E'
16480 else
16481 case $host_os in
16482 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16483 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16485 ;;
16486 *)
16487 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16488 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16489 ;;
16490 esac
16491 fi
16492 ;;
16493
16494 os2*)
16495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16496 hardcode_minus_L_GCJ=yes
16497 allow_undefined_flag_GCJ=unsupported
16498 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'
16499 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16500 ;;
16501
16502 osf3*)
16503 if test "$GCC" = yes; then
16504 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16505 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'
16506 else
16507 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16508 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'
16509 fi
16510 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16511 hardcode_libdir_separator_GCJ=:
16512 ;;
16513
16514 osf4* | osf5*) # as osf3* with the addition of -msym flag
16515 if test "$GCC" = yes; then
16516 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16517 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'
16518 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16519 else
16520 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16521 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'
16522 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~
16523 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16524
16525 # Both c and cxx compiler support -rpath directly
16526 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16527 fi
16528 hardcode_libdir_separator_GCJ=:
16529 ;;
16530
16531 sco3.2v5*)
16532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_shlibpath_var_GCJ=no
16534 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16535 runpath_var=LD_RUN_PATH
16536 hardcode_runpath_var=yes
16537 ;;
16538
16539 solaris*)
16540 no_undefined_flag_GCJ=' -z text'
16541 if test "$GCC" = yes; then
16542 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16543 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16544 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16545 else
16546 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16549 fi
16550 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16551 hardcode_shlibpath_var_GCJ=no
16552 case $host_os in
16553 solaris2.[0-5] | solaris2.[0-5].*) ;;
16554 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16555 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16556 esac
16557 link_all_deplibs_GCJ=yes
16558 ;;
16559
16560 sunos4*)
16561 if test "x$host_vendor" = xsequent; then
16562 # Use $CC to link under sequent, because it throws in some extra .o
16563 # files that make .init and .fini sections work.
16564 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16565 else
16566 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16567 fi
16568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569 hardcode_direct_GCJ=yes
16570 hardcode_minus_L_GCJ=yes
16571 hardcode_shlibpath_var_GCJ=no
16572 ;;
16573
16574 sysv4)
16575 case $host_vendor in
16576 sni)
16577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct_GCJ=yes # is this really true???
16579 ;;
16580 siemens)
16581 ## LD is ld it makes a PLAMLIB
16582 ## CC just makes a GrossModule.
16583 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16584 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16585 hardcode_direct_GCJ=no
16586 ;;
16587 motorola)
16588 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16589 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16590 ;;
16591 esac
16592 runpath_var='LD_RUN_PATH'
16593 hardcode_shlibpath_var_GCJ=no
16594 ;;
16595
16596 sysv4.3*)
16597 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16598 hardcode_shlibpath_var_GCJ=no
16599 export_dynamic_flag_spec_GCJ='-Bexport'
16600 ;;
16601
16602 sysv4*MP*)
16603 if test -d /usr/nec; then
16604 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_shlibpath_var_GCJ=no
16606 runpath_var=LD_RUN_PATH
16607 hardcode_runpath_var=yes
16608 ld_shlibs_GCJ=yes
16609 fi
16610 ;;
16611
16612 sysv4.2uw2*)
16613 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16614 hardcode_direct_GCJ=yes
16615 hardcode_minus_L_GCJ=no
16616 hardcode_shlibpath_var_GCJ=no
16617 hardcode_runpath_var=yes
16618 runpath_var=LD_RUN_PATH
16619 ;;
16620
16621 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16622 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16623 if test "$GCC" = yes; then
16624 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16625 else
16626 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16627 fi
16628 runpath_var='LD_RUN_PATH'
16629 hardcode_shlibpath_var_GCJ=no
16630 ;;
16631
16632 sysv5*)
16633 no_undefined_flag_GCJ=' -z text'
16634 # $CC -shared without GNU ld will not create a library from C++
16635 # object files and a static libstdc++, better avoid it by now
16636 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16637 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16639 hardcode_libdir_flag_spec_GCJ=
16640 hardcode_shlibpath_var_GCJ=no
16641 runpath_var='LD_RUN_PATH'
16642 ;;
16643
16644 uts4*)
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16647 hardcode_shlibpath_var_GCJ=no
16648 ;;
16649
16650 *)
16651 ld_shlibs_GCJ=no
16652 ;;
16653 esac
16654 fi
16655
16656echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16657echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16658test "$ld_shlibs_GCJ" = no && can_build_shared=no
16659
16660variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16661if test "$GCC" = yes; then
16662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16663fi
16664
16665#
16666# Do we need to explicitly link libc?
16667#
16668case "x$archive_cmds_need_lc_GCJ" in
16669x|xyes)
16670 # Assume -lc should be added
16671 archive_cmds_need_lc_GCJ=yes
16672
16673 if test "$enable_shared" = yes && test "$GCC" = yes; then
16674 case $archive_cmds_GCJ in
16675 *'~'*)
16676 # FIXME: we may have to deal with multi-command sequences.
16677 ;;
16678 '$CC '*)
16679 # Test whether the compiler implicitly links with -lc since on some
16680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16681 # to ld, don't add -lc before -lgcc.
16682 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16683echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16684 $rm conftest*
16685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686
16687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16688 (eval $ac_compile) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } 2>conftest.err; then
16692 soname=conftest
16693 lib=conftest
16694 libobjs=conftest.$ac_objext
16695 deplibs=
16696 wl=$lt_prog_compiler_wl_GCJ
16697 compiler_flags=-v
16698 linker_flags=-v
16699 verstring=
16700 output_objdir=.
16701 libname=conftest
16702 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16703 allow_undefined_flag_GCJ=
16704 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16705 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }
16709 then
16710 archive_cmds_need_lc_GCJ=no
16711 else
16712 archive_cmds_need_lc_GCJ=yes
16713 fi
16714 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16715 else
16716 cat conftest.err 1>&5
16717 fi
16718 $rm conftest*
16719 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16720echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16721 ;;
16722 esac
16723 fi
16724 ;;
16725esac
16726
16727echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16728echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16729library_names_spec=
16730libname_spec='lib$name'
16731soname_spec=
hp.com!davidm2de17682004-04-20 16:53:44 +000016732shrext_cmds=".so"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016733postinstall_cmds=
16734postuninstall_cmds=
16735finish_cmds=
16736finish_eval=
16737shlibpath_var=
16738shlibpath_overrides_runpath=unknown
16739version_type=none
16740dynamic_linker="$host_os ld.so"
16741sys_lib_dlsearch_path_spec="/lib /usr/lib"
16742if test "$GCC" = yes; then
16743 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16744 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16745 # if the path contains ";" then we assume it to be the separator
16746 # otherwise default to the standard path separator (i.e. ":") - it is
16747 # assumed that no part of a normal pathname contains ";" but that should
16748 # okay in the real world where ";" in dirpaths is itself problematic.
16749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16750 else
16751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16752 fi
16753else
16754 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16755fi
16756need_lib_prefix=unknown
16757hardcode_into_libs=no
16758
16759# when you set need_version to no, make sure it does not cause -set_version
16760# flags to be left without arguments
16761need_version=unknown
16762
16763case $host_os in
16764aix3*)
16765 version_type=linux
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16767 shlibpath_var=LIBPATH
16768
16769 # AIX 3 has no versioning support, so we append a major version to the name.
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 ;;
16772
16773aix4* | aix5*)
16774 version_type=linux
16775 need_lib_prefix=no
16776 need_version=no
16777 hardcode_into_libs=yes
16778 if test "$host_cpu" = ia64; then
16779 # AIX 5 supports IA64
16780 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 else
16783 # With GCC up to 2.95.x, collect2 would create an import file
16784 # for dependence libraries. The import file would start with
16785 # the line `#! .'. This would cause the generated library to
16786 # depend on `.', always an invalid library. This was fixed in
16787 # development snapshots of GCC prior to 3.0.
16788 case $host_os in
16789 aix4 | aix4.[01] | aix4.[01].*)
16790 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16791 echo ' yes '
16792 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16793 :
16794 else
16795 can_build_shared=no
16796 fi
16797 ;;
16798 esac
16799 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16800 # soname into executable. Probably we can add versioning support to
16801 # collect2, so additional links can be useful in future.
16802 if test "$aix_use_runtimelinking" = yes; then
16803 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16804 # instead of lib<name>.a to let people know that these are not
16805 # typical AIX shared libraries.
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807 else
16808 # We preserve .a as extension for shared libraries through AIX4.2
16809 # and later when we are not doing run time linking.
16810 library_names_spec='${libname}${release}.a $libname.a'
16811 soname_spec='${libname}${release}${shared_ext}$major'
16812 fi
16813 shlibpath_var=LIBPATH
16814 fi
16815 ;;
16816
16817amigaos*)
16818 library_names_spec='$libname.ixlibrary $libname.a'
16819 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16820 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'
16821 ;;
16822
16823beos*)
16824 library_names_spec='${libname}${shared_ext}'
16825 dynamic_linker="$host_os ld.so"
16826 shlibpath_var=LIBRARY_PATH
16827 ;;
16828
16829bsdi4*)
16830 version_type=linux
16831 need_version=no
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16838 # the default ld.so.conf also contains /usr/contrib/lib and
16839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16840 # libtool to hard-code these into programs
16841 ;;
16842
16843cygwin* | mingw* | pw32*)
16844 version_type=windows
hp.com!davidm2de17682004-04-20 16:53:44 +000016845 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016846 need_version=no
16847 need_lib_prefix=no
16848
16849 case $GCC,$host_os in
16850 yes,cygwin* | yes,mingw* | yes,pw32*)
16851 library_names_spec='$libname.dll.a'
16852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16853 postinstall_cmds='base_file=`basename \${file}`~
16854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16855 dldir=$destdir/`dirname \$dlpath`~
16856 test -d \$dldir || mkdir -p \$dldir~
16857 $install_prog $dir/$dlname \$dldir/$dlname'
16858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16859 dlpath=$dir/\$dldll~
16860 $rm \$dlpath'
16861 shlibpath_overrides_runpath=yes
16862
16863 case $host_os in
16864 cygwin*)
16865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16867 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16868 ;;
16869 mingw*)
16870 # MinGW DLLs use traditional 'lib' prefix
16871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16873 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16874 # It is most probably a Windows format PATH printed by
16875 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16876 # path with ; separators, and with drive letters. We can handle the
16877 # drive letters (cygwin fileutils understands them), so leave them,
16878 # especially as we might pass files found there to a mingw objdump,
16879 # which wouldn't understand a cygwinified path. Ahh.
16880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16881 else
16882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16883 fi
16884 ;;
16885 pw32*)
16886 # pw32 DLLs use 'pw' prefix rather than 'lib'
16887 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16888 ;;
16889 esac
16890 ;;
16891
16892 *)
16893 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16894 ;;
16895 esac
16896 dynamic_linker='Win32 ld.exe'
16897 # FIXME: first we should search . and the directory the executable is in
16898 shlibpath_var=PATH
16899 ;;
16900
16901darwin* | rhapsody*)
16902 dynamic_linker="$host_os dyld"
16903 version_type=darwin
16904 need_lib_prefix=no
16905 need_version=no
16906 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16907 soname_spec='${libname}${release}${major}$shared_ext'
16908 shlibpath_overrides_runpath=yes
16909 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidm2de17682004-04-20 16:53:44 +000016910 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016911 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16912 if test "$GCC" = yes; then
16913 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"`
16914 else
16915 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16916 fi
16917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16918 ;;
16919
16920dgux*)
16921 version_type=linux
16922 need_lib_prefix=no
16923 need_version=no
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 ;;
16928
16929freebsd1*)
16930 dynamic_linker=no
16931 ;;
16932
16933kfreebsd*-gnu)
16934 version_type=linux
16935 need_lib_prefix=no
16936 need_version=no
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16939 shlibpath_var=LD_LIBRARY_PATH
16940 shlibpath_overrides_runpath=no
16941 hardcode_into_libs=yes
16942 dynamic_linker='GNU ld.so'
16943 ;;
16944
16945freebsd*)
16946 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16947 version_type=freebsd-$objformat
16948 case $version_type in
16949 freebsd-elf*)
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16951 need_version=no
16952 need_lib_prefix=no
16953 ;;
16954 freebsd-*)
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16956 need_version=yes
16957 ;;
16958 esac
16959 shlibpath_var=LD_LIBRARY_PATH
16960 case $host_os in
16961 freebsd2*)
16962 shlibpath_overrides_runpath=yes
16963 ;;
16964 freebsd3.01* | freebsdelf3.01*)
16965 shlibpath_overrides_runpath=yes
16966 hardcode_into_libs=yes
16967 ;;
16968 *) # from 3.2 on
16969 shlibpath_overrides_runpath=no
16970 hardcode_into_libs=yes
16971 ;;
16972 esac
16973 ;;
16974
16975gnu*)
16976 version_type=linux
16977 need_lib_prefix=no
16978 need_version=no
16979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16980 soname_spec='${libname}${release}${shared_ext}$major'
16981 shlibpath_var=LD_LIBRARY_PATH
16982 hardcode_into_libs=yes
16983 ;;
16984
16985hpux9* | hpux10* | hpux11*)
16986 # Give a soname corresponding to the major version so that dld.sl refuses to
16987 # link against other versions.
16988 version_type=sunos
16989 need_lib_prefix=no
16990 need_version=no
16991 case "$host_cpu" in
16992 ia64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000016993 shrext_cmds='.so'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016994 hardcode_into_libs=yes
16995 dynamic_linker="$host_os dld.so"
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 if test "X$HPUX_IA64_MODE" = X32; then
17001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17002 else
17003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17004 fi
17005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17006 ;;
17007 hppa*64*)
hp.com!davidm2de17682004-04-20 16:53:44 +000017008 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017009 hardcode_into_libs=yes
17010 dynamic_linker="$host_os dld.sl"
17011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17017 ;;
17018 *)
hp.com!davidm2de17682004-04-20 16:53:44 +000017019 shrext_cmds='.sl'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017020 dynamic_linker="$host_os dld.sl"
17021 shlibpath_var=SHLIB_PATH
17022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 ;;
17026 esac
17027 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17028 postinstall_cmds='chmod 555 $lib'
17029 ;;
17030
17031irix5* | irix6* | nonstopux*)
17032 case $host_os in
17033 nonstopux*) version_type=nonstopux ;;
17034 *)
17035 if test "$lt_cv_prog_gnu_ld" = yes; then
17036 version_type=linux
17037 else
17038 version_type=irix
17039 fi ;;
17040 esac
17041 need_lib_prefix=no
17042 need_version=no
17043 soname_spec='${libname}${release}${shared_ext}$major'
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17045 case $host_os in
17046 irix5* | nonstopux*)
17047 libsuff= shlibsuff=
17048 ;;
17049 *)
17050 case $LD in # libtool.m4 will add one of these switches to LD
17051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17052 libsuff= shlibsuff= libmagic=32-bit;;
17053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17054 libsuff=32 shlibsuff=N32 libmagic=N32;;
17055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17057 *) libsuff= shlibsuff= libmagic=never-match;;
17058 esac
17059 ;;
17060 esac
17061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17062 shlibpath_overrides_runpath=no
17063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17065 hardcode_into_libs=yes
17066 ;;
17067
17068# No shared lib support for Linux oldld, aout, or coff.
17069linux*oldld* | linux*aout* | linux*coff*)
17070 dynamic_linker=no
17071 ;;
17072
17073# This must be Linux ELF.
17074linux*)
17075 version_type=linux
17076 need_lib_prefix=no
17077 need_version=no
17078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17079 soname_spec='${libname}${release}${shared_ext}$major'
17080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 shlibpath_overrides_runpath=no
17083 # This implies no fast_install, which is unacceptable.
17084 # Some rework will be needed to allow for fast_install
17085 # before this can be enabled.
17086 hardcode_into_libs=yes
17087
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017088 # Append ld.so.conf contents to the search path
17089 if test -f /etc/ld.so.conf; then
hp.com!davidm2de17682004-04-20 16:53:44 +000017090 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17091 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017092 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017093
17094 # We used to test for /lib/ld.so.1 and disable shared libraries on
17095 # powerpc, because MkLinux only supported shared libraries with the
17096 # GNU dynamic linker. Since this was broken with cross compilers,
17097 # most powerpc-linux boxes support dynamic linking these days and
17098 # people can always --disable-shared, the test was removed, and we
17099 # assume the GNU/Linux dynamic linker is in use.
17100 dynamic_linker='GNU/Linux ld.so'
17101 ;;
17102
17103knetbsd*-gnu)
17104 version_type=linux
17105 need_lib_prefix=no
17106 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=no
17111 hardcode_into_libs=yes
17112 dynamic_linker='GNU ld.so'
17113 ;;
17114
17115netbsd*)
17116 version_type=sunos
17117 need_lib_prefix=no
17118 need_version=no
17119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17122 dynamic_linker='NetBSD (a.out) ld.so'
17123 else
hp.com!davidm2de17682004-04-20 16:53:44 +000017124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017125 soname_spec='${libname}${release}${shared_ext}$major'
17126 dynamic_linker='NetBSD ld.elf_so'
17127 fi
17128 shlibpath_var=LD_LIBRARY_PATH
17129 shlibpath_overrides_runpath=yes
17130 hardcode_into_libs=yes
17131 ;;
17132
17133newsos6)
17134 version_type=linux
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 shlibpath_var=LD_LIBRARY_PATH
17137 shlibpath_overrides_runpath=yes
17138 ;;
17139
17140nto-qnx*)
17141 version_type=linux
17142 need_lib_prefix=no
17143 need_version=no
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 shlibpath_overrides_runpath=yes
17148 ;;
17149
17150openbsd*)
17151 version_type=sunos
17152 need_lib_prefix=no
17153 need_version=yes
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17158 case $host_os in
17159 openbsd2.[89] | openbsd2.[89].*)
17160 shlibpath_overrides_runpath=no
17161 ;;
17162 *)
17163 shlibpath_overrides_runpath=yes
17164 ;;
17165 esac
17166 else
17167 shlibpath_overrides_runpath=yes
17168 fi
17169 ;;
17170
17171os2*)
17172 libname_spec='$name'
hp.com!davidm2de17682004-04-20 16:53:44 +000017173 shrext_cmds=".dll"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017174 need_lib_prefix=no
17175 library_names_spec='$libname${shared_ext} $libname.a'
17176 dynamic_linker='OS/2 ld.exe'
17177 shlibpath_var=LIBPATH
17178 ;;
17179
17180osf3* | osf4* | osf5*)
17181 version_type=osf
17182 need_lib_prefix=no
17183 need_version=no
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 shlibpath_var=LD_LIBRARY_PATH
17187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17189 ;;
17190
17191sco3.2v5*)
17192 version_type=osf
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195 shlibpath_var=LD_LIBRARY_PATH
17196 ;;
17197
17198solaris*)
17199 version_type=linux
17200 need_lib_prefix=no
17201 need_version=no
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203 soname_spec='${libname}${release}${shared_ext}$major'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 hardcode_into_libs=yes
17207 # ldd complains unless libraries are executable
17208 postinstall_cmds='chmod +x $lib'
17209 ;;
17210
17211sunos4*)
17212 version_type=sunos
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17214 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17217 if test "$with_gnu_ld" = yes; then
17218 need_lib_prefix=no
17219 fi
17220 need_version=yes
17221 ;;
17222
17223sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17224 version_type=linux
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 case $host_vendor in
17229 sni)
17230 shlibpath_overrides_runpath=no
17231 need_lib_prefix=no
17232 export_dynamic_flag_spec='${wl}-Blargedynsym'
17233 runpath_var=LD_RUN_PATH
17234 ;;
17235 siemens)
17236 need_lib_prefix=no
17237 ;;
17238 motorola)
17239 need_lib_prefix=no
17240 need_version=no
17241 shlibpath_overrides_runpath=no
17242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17243 ;;
17244 esac
17245 ;;
17246
17247sysv4*MP*)
17248 if test -d /usr/nec ;then
17249 version_type=linux
17250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17251 soname_spec='$libname${shared_ext}.$major'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 fi
17254 ;;
17255
17256uts4*)
17257 version_type=linux
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 ;;
17262
17263*)
17264 dynamic_linker=no
17265 ;;
17266esac
17267echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17268echo "${ECHO_T}$dynamic_linker" >&6
17269test "$dynamic_linker" = no && can_build_shared=no
17270
17271echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17272echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17273hardcode_action_GCJ=
17274if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17275 test -n "$runpath_var GCJ" || \
17276 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17277
17278 # We can hardcode non-existant directories.
17279 if test "$hardcode_direct_GCJ" != no &&
17280 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17281 # have to relink, otherwise we might link with an installed library
17282 # when we should be linking with a yet-to-be-installed one
17283 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17284 test "$hardcode_minus_L_GCJ" != no; then
17285 # Linking always hardcodes the temporary library directory.
17286 hardcode_action_GCJ=relink
17287 else
17288 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17289 hardcode_action_GCJ=immediate
17290 fi
17291else
17292 # We cannot hardcode anything, or else we can only hardcode existing
17293 # directories.
17294 hardcode_action_GCJ=unsupported
17295fi
17296echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17297echo "${ECHO_T}$hardcode_action_GCJ" >&6
17298
17299if test "$hardcode_action_GCJ" = relink; then
17300 # Fast installation is not supported
17301 enable_fast_install=no
17302elif test "$shlibpath_overrides_runpath" = yes ||
17303 test "$enable_shared" = no; then
17304 # Fast installation is not necessary
17305 enable_fast_install=needless
17306fi
17307
17308striplib=
17309old_striplib=
17310echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17311echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17312if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17313 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17314 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17315 echo "$as_me:$LINENO: result: yes" >&5
17316echo "${ECHO_T}yes" >&6
17317else
17318# FIXME - insert some real tests, host_os isn't really good enough
17319 case $host_os in
17320 darwin*)
17321 if test -n "$STRIP" ; then
17322 striplib="$STRIP -x"
17323 echo "$as_me:$LINENO: result: yes" >&5
17324echo "${ECHO_T}yes" >&6
17325 else
17326 echo "$as_me:$LINENO: result: no" >&5
17327echo "${ECHO_T}no" >&6
17328fi
17329 ;;
17330 *)
17331 echo "$as_me:$LINENO: result: no" >&5
17332echo "${ECHO_T}no" >&6
17333 ;;
17334 esac
17335fi
17336
17337if test "x$enable_dlopen" != xyes; then
17338 enable_dlopen=unknown
17339 enable_dlopen_self=unknown
17340 enable_dlopen_self_static=unknown
17341else
17342 lt_cv_dlopen=no
17343 lt_cv_dlopen_libs=
17344
17345 case $host_os in
17346 beos*)
17347 lt_cv_dlopen="load_add_on"
17348 lt_cv_dlopen_libs=
17349 lt_cv_dlopen_self=yes
17350 ;;
17351
17352 mingw* | pw32*)
17353 lt_cv_dlopen="LoadLibrary"
17354 lt_cv_dlopen_libs=
17355 ;;
17356
17357 cygwin*)
17358 lt_cv_dlopen="dlopen"
17359 lt_cv_dlopen_libs=
17360 ;;
17361
17362 darwin*)
17363 # if libdl is installed we need to link against it
17364 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17365echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17366if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17368else
17369 ac_check_lib_save_LIBS=$LIBS
17370LIBS="-ldl $LIBS"
17371cat >conftest.$ac_ext <<_ACEOF
17372/* confdefs.h. */
17373_ACEOF
17374cat confdefs.h >>conftest.$ac_ext
17375cat >>conftest.$ac_ext <<_ACEOF
17376/* end confdefs.h. */
17377
17378/* Override any gcc2 internal prototype to avoid an error. */
17379#ifdef __cplusplus
17380extern "C"
17381#endif
17382/* We use char because int might match the return type of a gcc2
17383 builtin and then its argument prototype would still apply. */
17384char dlopen ();
17385int
17386main ()
17387{
17388dlopen ();
17389 ;
17390 return 0;
17391}
17392_ACEOF
17393rm -f conftest.$ac_objext conftest$ac_exeext
17394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017395 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017396 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; }; then
17414 ac_cv_lib_dl_dlopen=yes
17415else
17416 echo "$as_me: failed program was:" >&5
17417sed 's/^/| /' conftest.$ac_ext >&5
17418
17419ac_cv_lib_dl_dlopen=no
17420fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017421rm -f conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017423LIBS=$ac_check_lib_save_LIBS
17424fi
17425echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17426echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17427if test $ac_cv_lib_dl_dlopen = yes; then
17428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17429else
17430
17431 lt_cv_dlopen="dyld"
17432 lt_cv_dlopen_libs=
17433 lt_cv_dlopen_self=yes
17434
17435fi
17436
17437 ;;
17438
17439 *)
17440 echo "$as_me:$LINENO: checking for shl_load" >&5
17441echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17442if test "${ac_cv_func_shl_load+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444else
17445 cat >conftest.$ac_ext <<_ACEOF
17446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017451/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17453#define shl_load innocuous_shl_load
17454
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017455/* System header to define __stub macros and hopefully few prototypes,
17456 which can conflict with char shl_load (); below.
17457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017459
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017460#ifdef __STDC__
17461# include <limits.h>
17462#else
17463# include <assert.h>
17464#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017465
17466#undef shl_load
17467
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017468/* Override any gcc2 internal prototype to avoid an error. */
17469#ifdef __cplusplus
17470extern "C"
17471{
17472#endif
17473/* We use char because int might match the return type of a gcc2
17474 builtin and then its argument prototype would still apply. */
17475char shl_load ();
17476/* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479#if defined (__stub_shl_load) || defined (__stub___shl_load)
17480choke me
17481#else
17482char (*f) () = shl_load;
17483#endif
17484#ifdef __cplusplus
17485}
17486#endif
17487
17488int
17489main ()
17490{
17491return f != shl_load;
17492 ;
17493 return 0;
17494}
17495_ACEOF
17496rm -f conftest.$ac_objext conftest$ac_exeext
17497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017498 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017499 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_func_shl_load=yes
17518else
17519 echo "$as_me: failed program was:" >&5
17520sed 's/^/| /' conftest.$ac_ext >&5
17521
17522ac_cv_func_shl_load=no
17523fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017524rm -f conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017526fi
17527echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17528echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17529if test $ac_cv_func_shl_load = yes; then
17530 lt_cv_dlopen="shl_load"
17531else
17532 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17533echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17534if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17536else
17537 ac_check_lib_save_LIBS=$LIBS
17538LIBS="-ldld $LIBS"
17539cat >conftest.$ac_ext <<_ACEOF
17540/* confdefs.h. */
17541_ACEOF
17542cat confdefs.h >>conftest.$ac_ext
17543cat >>conftest.$ac_ext <<_ACEOF
17544/* end confdefs.h. */
17545
17546/* Override any gcc2 internal prototype to avoid an error. */
17547#ifdef __cplusplus
17548extern "C"
17549#endif
17550/* We use char because int might match the return type of a gcc2
17551 builtin and then its argument prototype would still apply. */
17552char shl_load ();
17553int
17554main ()
17555{
17556shl_load ();
17557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext conftest$ac_exeext
17562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017563 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017564 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; } &&
17576 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578 (eval $ac_try) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); }; }; then
17582 ac_cv_lib_dld_shl_load=yes
17583else
17584 echo "$as_me: failed program was:" >&5
17585sed 's/^/| /' conftest.$ac_ext >&5
17586
17587ac_cv_lib_dld_shl_load=no
17588fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017589rm -f conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017591LIBS=$ac_check_lib_save_LIBS
17592fi
17593echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17594echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17595if test $ac_cv_lib_dld_shl_load = yes; then
17596 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17597else
17598 echo "$as_me:$LINENO: checking for dlopen" >&5
17599echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17600if test "${ac_cv_func_dlopen+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602else
17603 cat >conftest.$ac_ext <<_ACEOF
17604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017609/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17611#define dlopen innocuous_dlopen
17612
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017613/* System header to define __stub macros and hopefully few prototypes,
17614 which can conflict with char dlopen (); below.
17615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17616 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017617
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017618#ifdef __STDC__
17619# include <limits.h>
17620#else
17621# include <assert.h>
17622#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017623
17624#undef dlopen
17625
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017626/* Override any gcc2 internal prototype to avoid an error. */
17627#ifdef __cplusplus
17628extern "C"
17629{
17630#endif
17631/* We use char because int might match the return type of a gcc2
17632 builtin and then its argument prototype would still apply. */
17633char dlopen ();
17634/* The GNU C library defines this for functions which it implements
17635 to always fail with ENOSYS. Some functions are actually named
17636 something starting with __ and the normal name is an alias. */
17637#if defined (__stub_dlopen) || defined (__stub___dlopen)
17638choke me
17639#else
17640char (*f) () = dlopen;
17641#endif
17642#ifdef __cplusplus
17643}
17644#endif
17645
17646int
17647main ()
17648{
17649return f != dlopen;
17650 ;
17651 return 0;
17652}
17653_ACEOF
17654rm -f conftest.$ac_objext conftest$ac_exeext
17655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017656 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017657 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_cv_func_dlopen=yes
17676else
17677 echo "$as_me: failed program was:" >&5
17678sed 's/^/| /' conftest.$ac_ext >&5
17679
17680ac_cv_func_dlopen=no
17681fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017682rm -f conftest.err conftest.$ac_objext \
17683 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017684fi
17685echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17686echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17687if test $ac_cv_func_dlopen = yes; then
17688 lt_cv_dlopen="dlopen"
17689else
17690 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17691echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17692if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695 ac_check_lib_save_LIBS=$LIBS
17696LIBS="-ldl $LIBS"
17697cat >conftest.$ac_ext <<_ACEOF
17698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
17703
17704/* Override any gcc2 internal prototype to avoid an error. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708/* We use char because int might match the return type of a gcc2
17709 builtin and then its argument prototype would still apply. */
17710char dlopen ();
17711int
17712main ()
17713{
17714dlopen ();
17715 ;
17716 return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext conftest$ac_exeext
17720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017721 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017722 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_lib_dl_dlopen=yes
17741else
17742 echo "$as_me: failed program was:" >&5
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
17745ac_cv_lib_dl_dlopen=no
17746fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017747rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017749LIBS=$ac_check_lib_save_LIBS
17750fi
17751echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17752echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17753if test $ac_cv_lib_dl_dlopen = yes; then
17754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17755else
17756 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17757echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17758if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761 ac_check_lib_save_LIBS=$LIBS
17762LIBS="-lsvld $LIBS"
17763cat >conftest.$ac_ext <<_ACEOF
17764/* confdefs.h. */
17765_ACEOF
17766cat confdefs.h >>conftest.$ac_ext
17767cat >>conftest.$ac_ext <<_ACEOF
17768/* end confdefs.h. */
17769
17770/* Override any gcc2 internal prototype to avoid an error. */
17771#ifdef __cplusplus
17772extern "C"
17773#endif
17774/* We use char because int might match the return type of a gcc2
17775 builtin and then its argument prototype would still apply. */
17776char dlopen ();
17777int
17778main ()
17779{
17780dlopen ();
17781 ;
17782 return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext conftest$ac_exeext
17786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017787 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017788 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_lib_svld_dlopen=yes
17807else
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811ac_cv_lib_svld_dlopen=no
17812fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017813rm -f conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017815LIBS=$ac_check_lib_save_LIBS
17816fi
17817echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17818echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17819if test $ac_cv_lib_svld_dlopen = yes; then
17820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17821else
17822 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17823echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17824if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17826else
17827 ac_check_lib_save_LIBS=$LIBS
17828LIBS="-ldld $LIBS"
17829cat >conftest.$ac_ext <<_ACEOF
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835
17836/* Override any gcc2 internal prototype to avoid an error. */
17837#ifdef __cplusplus
17838extern "C"
17839#endif
17840/* We use char because int might match the return type of a gcc2
17841 builtin and then its argument prototype would still apply. */
17842char dld_link ();
17843int
17844main ()
17845{
17846dld_link ();
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851rm -f conftest.$ac_objext conftest$ac_exeext
17852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017853 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017854 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ac_cv_lib_dld_dld_link=yes
17873else
17874 echo "$as_me: failed program was:" >&5
17875sed 's/^/| /' conftest.$ac_ext >&5
17876
17877ac_cv_lib_dld_dld_link=no
17878fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000017879rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017881LIBS=$ac_check_lib_save_LIBS
17882fi
17883echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17884echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17885if test $ac_cv_lib_dld_dld_link = yes; then
17886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17887fi
17888
17889
17890fi
17891
17892
17893fi
17894
17895
17896fi
17897
17898
17899fi
17900
17901
17902fi
17903
17904 ;;
17905 esac
17906
17907 if test "x$lt_cv_dlopen" != xno; then
17908 enable_dlopen=yes
17909 else
17910 enable_dlopen=no
17911 fi
17912
17913 case $lt_cv_dlopen in
17914 dlopen)
17915 save_CPPFLAGS="$CPPFLAGS"
17916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17917
17918 save_LDFLAGS="$LDFLAGS"
17919 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17920
17921 save_LIBS="$LIBS"
17922 LIBS="$lt_cv_dlopen_libs $LIBS"
17923
17924 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17925echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17926if test "${lt_cv_dlopen_self+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928else
17929 if test "$cross_compiling" = yes; then :
17930 lt_cv_dlopen_self=cross
17931else
17932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17933 lt_status=$lt_dlunknown
17934 cat > conftest.$ac_ext <<EOF
hp.com!davidm2de17682004-04-20 16:53:44 +000017935#line 17935 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017936#include "confdefs.h"
17937
17938#if HAVE_DLFCN_H
17939#include <dlfcn.h>
17940#endif
17941
17942#include <stdio.h>
17943
17944#ifdef RTLD_GLOBAL
17945# define LT_DLGLOBAL RTLD_GLOBAL
17946#else
17947# ifdef DL_GLOBAL
17948# define LT_DLGLOBAL DL_GLOBAL
17949# else
17950# define LT_DLGLOBAL 0
17951# endif
17952#endif
17953
17954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17955 find out it does not work in some platform. */
17956#ifndef LT_DLLAZY_OR_NOW
17957# ifdef RTLD_LAZY
17958# define LT_DLLAZY_OR_NOW RTLD_LAZY
17959# else
17960# ifdef DL_LAZY
17961# define LT_DLLAZY_OR_NOW DL_LAZY
17962# else
17963# ifdef RTLD_NOW
17964# define LT_DLLAZY_OR_NOW RTLD_NOW
17965# else
17966# ifdef DL_NOW
17967# define LT_DLLAZY_OR_NOW DL_NOW
17968# else
17969# define LT_DLLAZY_OR_NOW 0
17970# endif
17971# endif
17972# endif
17973# endif
17974#endif
17975
17976#ifdef __cplusplus
17977extern "C" void exit (int);
17978#endif
17979
17980void fnord() { int i=42;}
17981int main ()
17982{
17983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17984 int status = $lt_dlunknown;
17985
17986 if (self)
17987 {
17988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17989 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17990 /* dlclose (self); */
17991 }
17992
17993 exit (status);
17994}
17995EOF
17996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17997 (eval $ac_link) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18001 (./conftest; exit; ) 2>/dev/null
18002 lt_status=$?
18003 case x$lt_status in
18004 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18005 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18006 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18007 esac
18008 else :
18009 # compilation failed
18010 lt_cv_dlopen_self=no
18011 fi
18012fi
18013rm -fr conftest*
18014
18015
18016fi
18017echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18018echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18019
18020 if test "x$lt_cv_dlopen_self" = xyes; then
18021 LDFLAGS="$LDFLAGS $link_static_flag"
18022 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18023echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18024if test "${lt_cv_dlopen_self_static+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026else
18027 if test "$cross_compiling" = yes; then :
18028 lt_cv_dlopen_self_static=cross
18029else
18030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18031 lt_status=$lt_dlunknown
18032 cat > conftest.$ac_ext <<EOF
hp.com!davidm2de17682004-04-20 16:53:44 +000018033#line 18033 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018034#include "confdefs.h"
18035
18036#if HAVE_DLFCN_H
18037#include <dlfcn.h>
18038#endif
18039
18040#include <stdio.h>
18041
18042#ifdef RTLD_GLOBAL
18043# define LT_DLGLOBAL RTLD_GLOBAL
18044#else
18045# ifdef DL_GLOBAL
18046# define LT_DLGLOBAL DL_GLOBAL
18047# else
18048# define LT_DLGLOBAL 0
18049# endif
18050#endif
18051
18052/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18053 find out it does not work in some platform. */
18054#ifndef LT_DLLAZY_OR_NOW
18055# ifdef RTLD_LAZY
18056# define LT_DLLAZY_OR_NOW RTLD_LAZY
18057# else
18058# ifdef DL_LAZY
18059# define LT_DLLAZY_OR_NOW DL_LAZY
18060# else
18061# ifdef RTLD_NOW
18062# define LT_DLLAZY_OR_NOW RTLD_NOW
18063# else
18064# ifdef DL_NOW
18065# define LT_DLLAZY_OR_NOW DL_NOW
18066# else
18067# define LT_DLLAZY_OR_NOW 0
18068# endif
18069# endif
18070# endif
18071# endif
18072#endif
18073
18074#ifdef __cplusplus
18075extern "C" void exit (int);
18076#endif
18077
18078void fnord() { int i=42;}
18079int main ()
18080{
18081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18082 int status = $lt_dlunknown;
18083
18084 if (self)
18085 {
18086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18088 /* dlclose (self); */
18089 }
18090
18091 exit (status);
18092}
18093EOF
18094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18095 (eval $ac_link) 2>&5
18096 ac_status=$?
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18099 (./conftest; exit; ) 2>/dev/null
18100 lt_status=$?
18101 case x$lt_status in
18102 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18103 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18104 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18105 esac
18106 else :
18107 # compilation failed
18108 lt_cv_dlopen_self_static=no
18109 fi
18110fi
18111rm -fr conftest*
18112
18113
18114fi
18115echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18116echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18117 fi
18118
18119 CPPFLAGS="$save_CPPFLAGS"
18120 LDFLAGS="$save_LDFLAGS"
18121 LIBS="$save_LIBS"
18122 ;;
18123 esac
18124
18125 case $lt_cv_dlopen_self in
18126 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18127 *) enable_dlopen_self=unknown ;;
18128 esac
18129
18130 case $lt_cv_dlopen_self_static in
18131 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18132 *) enable_dlopen_self_static=unknown ;;
18133 esac
18134fi
18135
18136
18137# The else clause should only fire when bootstrapping the
18138# libtool distribution, otherwise you forgot to ship ltmain.sh
18139# with your package, and you will get complaints that there are
18140# no rules to generate ltmain.sh.
18141if test -f "$ltmain"; then
18142 # See if we are running on zsh, and set the options which allow our commands through
18143 # without removal of \ escapes.
18144 if test -n "${ZSH_VERSION+set}" ; then
18145 setopt NO_GLOB_SUBST
18146 fi
18147 # Now quote all the things that may contain metacharacters while being
18148 # careful not to overquote the AC_SUBSTed values. We take copies of the
18149 # variables and quote the copies for generation of the libtool script.
18150 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18151 SED SHELL STRIP \
18152 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18153 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18154 deplibs_check_method reload_flag reload_cmds need_locks \
18155 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18156 lt_cv_sys_global_symbol_to_c_name_address \
18157 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18158 old_postinstall_cmds old_postuninstall_cmds \
18159 compiler_GCJ \
18160 CC_GCJ \
18161 LD_GCJ \
18162 lt_prog_compiler_wl_GCJ \
18163 lt_prog_compiler_pic_GCJ \
18164 lt_prog_compiler_static_GCJ \
18165 lt_prog_compiler_no_builtin_flag_GCJ \
18166 export_dynamic_flag_spec_GCJ \
18167 thread_safe_flag_spec_GCJ \
18168 whole_archive_flag_spec_GCJ \
18169 enable_shared_with_static_runtimes_GCJ \
18170 old_archive_cmds_GCJ \
18171 old_archive_from_new_cmds_GCJ \
18172 predep_objects_GCJ \
18173 postdep_objects_GCJ \
18174 predeps_GCJ \
18175 postdeps_GCJ \
18176 compiler_lib_search_path_GCJ \
18177 archive_cmds_GCJ \
18178 archive_expsym_cmds_GCJ \
18179 postinstall_cmds_GCJ \
18180 postuninstall_cmds_GCJ \
18181 old_archive_from_expsyms_cmds_GCJ \
18182 allow_undefined_flag_GCJ \
18183 no_undefined_flag_GCJ \
18184 export_symbols_cmds_GCJ \
18185 hardcode_libdir_flag_spec_GCJ \
18186 hardcode_libdir_flag_spec_ld_GCJ \
18187 hardcode_libdir_separator_GCJ \
18188 hardcode_automatic_GCJ \
18189 module_cmds_GCJ \
18190 module_expsym_cmds_GCJ \
18191 lt_cv_prog_compiler_c_o_GCJ \
18192 exclude_expsyms_GCJ \
18193 include_expsyms_GCJ; do
18194
18195 case $var in
18196 old_archive_cmds_GCJ | \
18197 old_archive_from_new_cmds_GCJ | \
18198 archive_cmds_GCJ | \
18199 archive_expsym_cmds_GCJ | \
18200 module_cmds_GCJ | \
18201 module_expsym_cmds_GCJ | \
18202 old_archive_from_expsyms_cmds_GCJ | \
18203 export_symbols_cmds_GCJ | \
18204 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18205 postinstall_cmds | postuninstall_cmds | \
18206 old_postinstall_cmds | old_postuninstall_cmds | \
18207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18208 # Double-quote double-evaled strings.
18209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18210 ;;
18211 *)
18212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18213 ;;
18214 esac
18215 done
18216
18217 case $lt_echo in
18218 *'\$0 --fallback-echo"')
18219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18220 ;;
18221 esac
18222
18223cfgfile="$ofile"
18224
18225 cat <<__EOF__ >> "$cfgfile"
18226# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18227
18228# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18229
18230# Shell to use when invoking shell scripts.
18231SHELL=$lt_SHELL
18232
18233# Whether or not to build shared libraries.
18234build_libtool_libs=$enable_shared
18235
18236# Whether or not to build static libraries.
18237build_old_libs=$enable_static
18238
18239# Whether or not to add -lc for building shared libraries.
18240build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18241
18242# Whether or not to disallow shared libs when runtime libs are static
18243allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18244
18245# Whether or not to optimize for fast installation.
18246fast_install=$enable_fast_install
18247
18248# The host system.
18249host_alias=$host_alias
18250host=$host
18251
18252# An echo program that does not interpret backslashes.
18253echo=$lt_echo
18254
18255# The archiver.
18256AR=$lt_AR
18257AR_FLAGS=$lt_AR_FLAGS
18258
18259# A C compiler.
18260LTCC=$lt_LTCC
18261
18262# A language-specific compiler.
18263CC=$lt_compiler_GCJ
18264
18265# Is the compiler the GNU C compiler?
18266with_gcc=$GCC_GCJ
18267
18268# An ERE matcher.
18269EGREP=$lt_EGREP
18270
18271# The linker used to build libraries.
18272LD=$lt_LD_GCJ
18273
18274# Whether we need hard or soft links.
18275LN_S=$lt_LN_S
18276
18277# A BSD-compatible nm program.
18278NM=$lt_NM
18279
18280# A symbol stripping program
18281STRIP=$lt_STRIP
18282
18283# Used to examine libraries when file_magic_cmd begins "file"
18284MAGIC_CMD=$MAGIC_CMD
18285
18286# Used on cygwin: DLL creation program.
18287DLLTOOL="$DLLTOOL"
18288
18289# Used on cygwin: object dumper.
18290OBJDUMP="$OBJDUMP"
18291
18292# Used on cygwin: assembler.
18293AS="$AS"
18294
18295# The name of the directory that contains temporary libtool files.
18296objdir=$objdir
18297
18298# How to create reloadable object files.
18299reload_flag=$lt_reload_flag
18300reload_cmds=$lt_reload_cmds
18301
18302# How to pass a linker flag through the compiler.
18303wl=$lt_lt_prog_compiler_wl_GCJ
18304
18305# Object file suffix (normally "o").
18306objext="$ac_objext"
18307
18308# Old archive suffix (normally "a").
18309libext="$libext"
18310
18311# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000018312shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018313
18314# Executable file suffix (normally "").
18315exeext="$exeext"
18316
18317# Additional compiler flags for building library objects.
18318pic_flag=$lt_lt_prog_compiler_pic_GCJ
18319pic_mode=$pic_mode
18320
18321# What is the maximum length of a command?
18322max_cmd_len=$lt_cv_sys_max_cmd_len
18323
18324# Does compiler simultaneously support -c and -o options?
18325compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18326
18327# Must we lock files when doing compilation ?
18328need_locks=$lt_need_locks
18329
18330# Do we need the lib prefix for modules?
18331need_lib_prefix=$need_lib_prefix
18332
18333# Do we need a version for libraries?
18334need_version=$need_version
18335
18336# Whether dlopen is supported.
18337dlopen_support=$enable_dlopen
18338
18339# Whether dlopen of programs is supported.
18340dlopen_self=$enable_dlopen_self
18341
18342# Whether dlopen of statically linked programs is supported.
18343dlopen_self_static=$enable_dlopen_self_static
18344
18345# Compiler flag to prevent dynamic linking.
18346link_static_flag=$lt_lt_prog_compiler_static_GCJ
18347
18348# Compiler flag to turn off builtin functions.
18349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18350
18351# Compiler flag to allow reflexive dlopens.
18352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18353
18354# Compiler flag to generate shared objects directly from archives.
18355whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18356
18357# Compiler flag to generate thread-safe objects.
18358thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18359
18360# Library versioning type.
18361version_type=$version_type
18362
18363# Format of library name prefix.
18364libname_spec=$lt_libname_spec
18365
18366# List of archive names. First name is the real one, the rest are links.
18367# The last name is the one that the linker finds with -lNAME.
18368library_names_spec=$lt_library_names_spec
18369
18370# The coded name of the library, if different from the real name.
18371soname_spec=$lt_soname_spec
18372
18373# Commands used to build and install an old-style archive.
18374RANLIB=$lt_RANLIB
18375old_archive_cmds=$lt_old_archive_cmds_GCJ
18376old_postinstall_cmds=$lt_old_postinstall_cmds
18377old_postuninstall_cmds=$lt_old_postuninstall_cmds
18378
18379# Create an old-style archive from a shared archive.
18380old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18381
18382# Create a temporary old-style archive to link instead of a shared archive.
18383old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18384
18385# Commands used to build and install a shared archive.
18386archive_cmds=$lt_archive_cmds_GCJ
18387archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18388postinstall_cmds=$lt_postinstall_cmds
18389postuninstall_cmds=$lt_postuninstall_cmds
18390
18391# Commands used to build a loadable module (assumed same as above if empty)
18392module_cmds=$lt_module_cmds_GCJ
18393module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18394
18395# Commands to strip libraries.
18396old_striplib=$lt_old_striplib
18397striplib=$lt_striplib
18398
18399# Dependencies to place before the objects being linked to create a
18400# shared library.
18401predep_objects=$lt_predep_objects_GCJ
18402
18403# Dependencies to place after the objects being linked to create a
18404# shared library.
18405postdep_objects=$lt_postdep_objects_GCJ
18406
18407# Dependencies to place before the objects being linked to create a
18408# shared library.
18409predeps=$lt_predeps_GCJ
18410
18411# Dependencies to place after the objects being linked to create a
18412# shared library.
18413postdeps=$lt_postdeps_GCJ
18414
18415# The library search path used internally by the compiler when linking
18416# a shared library.
18417compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18418
18419# Method to check whether dependent libraries are shared objects.
18420deplibs_check_method=$lt_deplibs_check_method
18421
18422# Command to use when deplibs_check_method == file_magic.
18423file_magic_cmd=$lt_file_magic_cmd
18424
18425# Flag that allows shared libraries with undefined symbols to be built.
18426allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18427
18428# Flag that forces no undefined symbols.
18429no_undefined_flag=$lt_no_undefined_flag_GCJ
18430
18431# Commands used to finish a libtool library installation in a directory.
18432finish_cmds=$lt_finish_cmds
18433
18434# Same as above, but a single script fragment to be evaled but not shown.
18435finish_eval=$lt_finish_eval
18436
18437# Take the output of nm and produce a listing of raw symbols and C names.
18438global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18439
18440# Transform the output of nm in a proper C declaration
18441global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18442
18443# Transform the output of nm in a C name address pair
18444global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18445
18446# This is the shared library runtime path variable.
18447runpath_var=$runpath_var
18448
18449# This is the shared library path variable.
18450shlibpath_var=$shlibpath_var
18451
18452# Is shlibpath searched before the hard-coded library search path?
18453shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18454
18455# How to hardcode a shared library path into an executable.
18456hardcode_action=$hardcode_action_GCJ
18457
18458# Whether we should hardcode library paths into libraries.
18459hardcode_into_libs=$hardcode_into_libs
18460
18461# Flag to hardcode \$libdir into a binary during linking.
18462# This must work even if \$libdir does not exist.
18463hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18464
18465# If ld is used when linking, flag to hardcode \$libdir into
18466# a binary during linking. This must work even if \$libdir does
18467# not exist.
18468hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18469
18470# Whether we need a single -rpath flag with a separated argument.
18471hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18472
18473# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18474# resulting binary.
18475hardcode_direct=$hardcode_direct_GCJ
18476
18477# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18478# resulting binary.
18479hardcode_minus_L=$hardcode_minus_L_GCJ
18480
18481# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18482# the resulting binary.
18483hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18484
18485# Set to yes if building a shared library automatically hardcodes DIR into the library
18486# and all subsequent libraries and executables linked against it.
18487hardcode_automatic=$hardcode_automatic_GCJ
18488
18489# Variables whose values should be saved in libtool wrapper scripts and
18490# restored at relink time.
18491variables_saved_for_relink="$variables_saved_for_relink"
18492
18493# Whether libtool must link a program against all its dependency libraries.
18494link_all_deplibs=$link_all_deplibs_GCJ
18495
18496# Compile-time system search path for libraries
18497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18498
18499# Run-time system search path for libraries
18500sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18501
18502# Fix the shell variable \$srcfile for the compiler.
18503fix_srcfile_path="$fix_srcfile_path_GCJ"
18504
18505# Set to yes if exported symbols are required.
18506always_export_symbols=$always_export_symbols_GCJ
18507
18508# The commands to list exported symbols.
18509export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18510
18511# The commands to extract the exported symbol list from a shared archive.
18512extract_expsyms_cmds=$lt_extract_expsyms_cmds
18513
18514# Symbols that should not be listed in the preloaded symbols.
18515exclude_expsyms=$lt_exclude_expsyms_GCJ
18516
18517# Symbols that must always be exported.
18518include_expsyms=$lt_include_expsyms_GCJ
18519
18520# ### END LIBTOOL TAG CONFIG: $tagname
18521
18522__EOF__
18523
18524
18525else
18526 # If there is no Makefile yet, we rely on a make rule to execute
18527 # `config.status --recheck' to rerun these tests and create the
18528 # libtool script then.
18529 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18530 if test -f "$ltmain_in"; then
18531 test -f Makefile && make "$ltmain"
18532 fi
18533fi
18534
18535
18536ac_ext=c
18537ac_cpp='$CPP $CPPFLAGS'
18538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18540ac_compiler_gnu=$ac_cv_c_compiler_gnu
18541
18542CC="$lt_save_CC"
18543
18544 else
18545 tagname=""
18546 fi
18547 ;;
18548
18549 RC)
18550
18551
18552
18553# Source file extension for RC test sources.
18554ac_ext=rc
18555
18556# Object file extension for compiled RC test sources.
18557objext=o
18558objext_RC=$objext
18559
18560# Code to be used in simple compile tests
18561lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18562
18563# Code to be used in simple link tests
18564lt_simple_link_test_code="$lt_simple_compile_test_code"
18565
18566# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18567
18568# If no C compiler was specified, use CC.
18569LTCC=${LTCC-"$CC"}
18570
18571# Allow CC to be a program name with arguments.
18572compiler=$CC
18573
18574
18575# Allow CC to be a program name with arguments.
18576lt_save_CC="$CC"
18577CC=${RC-"windres"}
18578compiler=$CC
18579compiler_RC=$CC
18580lt_cv_prog_compiler_c_o_RC=yes
18581
18582# The else clause should only fire when bootstrapping the
18583# libtool distribution, otherwise you forgot to ship ltmain.sh
18584# with your package, and you will get complaints that there are
18585# no rules to generate ltmain.sh.
18586if test -f "$ltmain"; then
18587 # See if we are running on zsh, and set the options which allow our commands through
18588 # without removal of \ escapes.
18589 if test -n "${ZSH_VERSION+set}" ; then
18590 setopt NO_GLOB_SUBST
18591 fi
18592 # Now quote all the things that may contain metacharacters while being
18593 # careful not to overquote the AC_SUBSTed values. We take copies of the
18594 # variables and quote the copies for generation of the libtool script.
18595 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18596 SED SHELL STRIP \
18597 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18598 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18599 deplibs_check_method reload_flag reload_cmds need_locks \
18600 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18601 lt_cv_sys_global_symbol_to_c_name_address \
18602 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18603 old_postinstall_cmds old_postuninstall_cmds \
18604 compiler_RC \
18605 CC_RC \
18606 LD_RC \
18607 lt_prog_compiler_wl_RC \
18608 lt_prog_compiler_pic_RC \
18609 lt_prog_compiler_static_RC \
18610 lt_prog_compiler_no_builtin_flag_RC \
18611 export_dynamic_flag_spec_RC \
18612 thread_safe_flag_spec_RC \
18613 whole_archive_flag_spec_RC \
18614 enable_shared_with_static_runtimes_RC \
18615 old_archive_cmds_RC \
18616 old_archive_from_new_cmds_RC \
18617 predep_objects_RC \
18618 postdep_objects_RC \
18619 predeps_RC \
18620 postdeps_RC \
18621 compiler_lib_search_path_RC \
18622 archive_cmds_RC \
18623 archive_expsym_cmds_RC \
18624 postinstall_cmds_RC \
18625 postuninstall_cmds_RC \
18626 old_archive_from_expsyms_cmds_RC \
18627 allow_undefined_flag_RC \
18628 no_undefined_flag_RC \
18629 export_symbols_cmds_RC \
18630 hardcode_libdir_flag_spec_RC \
18631 hardcode_libdir_flag_spec_ld_RC \
18632 hardcode_libdir_separator_RC \
18633 hardcode_automatic_RC \
18634 module_cmds_RC \
18635 module_expsym_cmds_RC \
18636 lt_cv_prog_compiler_c_o_RC \
18637 exclude_expsyms_RC \
18638 include_expsyms_RC; do
18639
18640 case $var in
18641 old_archive_cmds_RC | \
18642 old_archive_from_new_cmds_RC | \
18643 archive_cmds_RC | \
18644 archive_expsym_cmds_RC | \
18645 module_cmds_RC | \
18646 module_expsym_cmds_RC | \
18647 old_archive_from_expsyms_cmds_RC | \
18648 export_symbols_cmds_RC | \
18649 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18650 postinstall_cmds | postuninstall_cmds | \
18651 old_postinstall_cmds | old_postuninstall_cmds | \
18652 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18653 # Double-quote double-evaled strings.
18654 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18655 ;;
18656 *)
18657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18658 ;;
18659 esac
18660 done
18661
18662 case $lt_echo in
18663 *'\$0 --fallback-echo"')
18664 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18665 ;;
18666 esac
18667
18668cfgfile="$ofile"
18669
18670 cat <<__EOF__ >> "$cfgfile"
18671# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18672
18673# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18674
18675# Shell to use when invoking shell scripts.
18676SHELL=$lt_SHELL
18677
18678# Whether or not to build shared libraries.
18679build_libtool_libs=$enable_shared
18680
18681# Whether or not to build static libraries.
18682build_old_libs=$enable_static
18683
18684# Whether or not to add -lc for building shared libraries.
18685build_libtool_need_lc=$archive_cmds_need_lc_RC
18686
18687# Whether or not to disallow shared libs when runtime libs are static
18688allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18689
18690# Whether or not to optimize for fast installation.
18691fast_install=$enable_fast_install
18692
18693# The host system.
18694host_alias=$host_alias
18695host=$host
18696
18697# An echo program that does not interpret backslashes.
18698echo=$lt_echo
18699
18700# The archiver.
18701AR=$lt_AR
18702AR_FLAGS=$lt_AR_FLAGS
18703
18704# A C compiler.
18705LTCC=$lt_LTCC
18706
18707# A language-specific compiler.
18708CC=$lt_compiler_RC
18709
18710# Is the compiler the GNU C compiler?
18711with_gcc=$GCC_RC
18712
18713# An ERE matcher.
18714EGREP=$lt_EGREP
18715
18716# The linker used to build libraries.
18717LD=$lt_LD_RC
18718
18719# Whether we need hard or soft links.
18720LN_S=$lt_LN_S
18721
18722# A BSD-compatible nm program.
18723NM=$lt_NM
18724
18725# A symbol stripping program
18726STRIP=$lt_STRIP
18727
18728# Used to examine libraries when file_magic_cmd begins "file"
18729MAGIC_CMD=$MAGIC_CMD
18730
18731# Used on cygwin: DLL creation program.
18732DLLTOOL="$DLLTOOL"
18733
18734# Used on cygwin: object dumper.
18735OBJDUMP="$OBJDUMP"
18736
18737# Used on cygwin: assembler.
18738AS="$AS"
18739
18740# The name of the directory that contains temporary libtool files.
18741objdir=$objdir
18742
18743# How to create reloadable object files.
18744reload_flag=$lt_reload_flag
18745reload_cmds=$lt_reload_cmds
18746
18747# How to pass a linker flag through the compiler.
18748wl=$lt_lt_prog_compiler_wl_RC
18749
18750# Object file suffix (normally "o").
18751objext="$ac_objext"
18752
18753# Old archive suffix (normally "a").
18754libext="$libext"
18755
18756# Shared library suffix (normally ".so").
hp.com!davidm2de17682004-04-20 16:53:44 +000018757shrext_cmds='$shrext_cmds'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018758
18759# Executable file suffix (normally "").
18760exeext="$exeext"
18761
18762# Additional compiler flags for building library objects.
18763pic_flag=$lt_lt_prog_compiler_pic_RC
18764pic_mode=$pic_mode
18765
18766# What is the maximum length of a command?
18767max_cmd_len=$lt_cv_sys_max_cmd_len
18768
18769# Does compiler simultaneously support -c and -o options?
18770compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18771
18772# Must we lock files when doing compilation ?
18773need_locks=$lt_need_locks
18774
18775# Do we need the lib prefix for modules?
18776need_lib_prefix=$need_lib_prefix
18777
18778# Do we need a version for libraries?
18779need_version=$need_version
18780
18781# Whether dlopen is supported.
18782dlopen_support=$enable_dlopen
18783
18784# Whether dlopen of programs is supported.
18785dlopen_self=$enable_dlopen_self
18786
18787# Whether dlopen of statically linked programs is supported.
18788dlopen_self_static=$enable_dlopen_self_static
18789
18790# Compiler flag to prevent dynamic linking.
18791link_static_flag=$lt_lt_prog_compiler_static_RC
18792
18793# Compiler flag to turn off builtin functions.
18794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18795
18796# Compiler flag to allow reflexive dlopens.
18797export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18798
18799# Compiler flag to generate shared objects directly from archives.
18800whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18801
18802# Compiler flag to generate thread-safe objects.
18803thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18804
18805# Library versioning type.
18806version_type=$version_type
18807
18808# Format of library name prefix.
18809libname_spec=$lt_libname_spec
18810
18811# List of archive names. First name is the real one, the rest are links.
18812# The last name is the one that the linker finds with -lNAME.
18813library_names_spec=$lt_library_names_spec
18814
18815# The coded name of the library, if different from the real name.
18816soname_spec=$lt_soname_spec
18817
18818# Commands used to build and install an old-style archive.
18819RANLIB=$lt_RANLIB
18820old_archive_cmds=$lt_old_archive_cmds_RC
18821old_postinstall_cmds=$lt_old_postinstall_cmds
18822old_postuninstall_cmds=$lt_old_postuninstall_cmds
18823
18824# Create an old-style archive from a shared archive.
18825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18826
18827# Create a temporary old-style archive to link instead of a shared archive.
18828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18829
18830# Commands used to build and install a shared archive.
18831archive_cmds=$lt_archive_cmds_RC
18832archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18833postinstall_cmds=$lt_postinstall_cmds
18834postuninstall_cmds=$lt_postuninstall_cmds
18835
18836# Commands used to build a loadable module (assumed same as above if empty)
18837module_cmds=$lt_module_cmds_RC
18838module_expsym_cmds=$lt_module_expsym_cmds_RC
18839
18840# Commands to strip libraries.
18841old_striplib=$lt_old_striplib
18842striplib=$lt_striplib
18843
18844# Dependencies to place before the objects being linked to create a
18845# shared library.
18846predep_objects=$lt_predep_objects_RC
18847
18848# Dependencies to place after the objects being linked to create a
18849# shared library.
18850postdep_objects=$lt_postdep_objects_RC
18851
18852# Dependencies to place before the objects being linked to create a
18853# shared library.
18854predeps=$lt_predeps_RC
18855
18856# Dependencies to place after the objects being linked to create a
18857# shared library.
18858postdeps=$lt_postdeps_RC
18859
18860# The library search path used internally by the compiler when linking
18861# a shared library.
18862compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18863
18864# Method to check whether dependent libraries are shared objects.
18865deplibs_check_method=$lt_deplibs_check_method
18866
18867# Command to use when deplibs_check_method == file_magic.
18868file_magic_cmd=$lt_file_magic_cmd
18869
18870# Flag that allows shared libraries with undefined symbols to be built.
18871allow_undefined_flag=$lt_allow_undefined_flag_RC
18872
18873# Flag that forces no undefined symbols.
18874no_undefined_flag=$lt_no_undefined_flag_RC
18875
18876# Commands used to finish a libtool library installation in a directory.
18877finish_cmds=$lt_finish_cmds
18878
18879# Same as above, but a single script fragment to be evaled but not shown.
18880finish_eval=$lt_finish_eval
18881
18882# Take the output of nm and produce a listing of raw symbols and C names.
18883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18884
18885# Transform the output of nm in a proper C declaration
18886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18887
18888# Transform the output of nm in a C name address pair
18889global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18890
18891# This is the shared library runtime path variable.
18892runpath_var=$runpath_var
18893
18894# This is the shared library path variable.
18895shlibpath_var=$shlibpath_var
18896
18897# Is shlibpath searched before the hard-coded library search path?
18898shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18899
18900# How to hardcode a shared library path into an executable.
18901hardcode_action=$hardcode_action_RC
18902
18903# Whether we should hardcode library paths into libraries.
18904hardcode_into_libs=$hardcode_into_libs
18905
18906# Flag to hardcode \$libdir into a binary during linking.
18907# This must work even if \$libdir does not exist.
18908hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18909
18910# If ld is used when linking, flag to hardcode \$libdir into
18911# a binary during linking. This must work even if \$libdir does
18912# not exist.
18913hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18914
18915# Whether we need a single -rpath flag with a separated argument.
18916hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18917
18918# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18919# resulting binary.
18920hardcode_direct=$hardcode_direct_RC
18921
18922# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18923# resulting binary.
18924hardcode_minus_L=$hardcode_minus_L_RC
18925
18926# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18927# the resulting binary.
18928hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18929
18930# Set to yes if building a shared library automatically hardcodes DIR into the library
18931# and all subsequent libraries and executables linked against it.
18932hardcode_automatic=$hardcode_automatic_RC
18933
18934# Variables whose values should be saved in libtool wrapper scripts and
18935# restored at relink time.
18936variables_saved_for_relink="$variables_saved_for_relink"
18937
18938# Whether libtool must link a program against all its dependency libraries.
18939link_all_deplibs=$link_all_deplibs_RC
18940
18941# Compile-time system search path for libraries
18942sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18943
18944# Run-time system search path for libraries
18945sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18946
18947# Fix the shell variable \$srcfile for the compiler.
18948fix_srcfile_path="$fix_srcfile_path_RC"
18949
18950# Set to yes if exported symbols are required.
18951always_export_symbols=$always_export_symbols_RC
18952
18953# The commands to list exported symbols.
18954export_symbols_cmds=$lt_export_symbols_cmds_RC
18955
18956# The commands to extract the exported symbol list from a shared archive.
18957extract_expsyms_cmds=$lt_extract_expsyms_cmds
18958
18959# Symbols that should not be listed in the preloaded symbols.
18960exclude_expsyms=$lt_exclude_expsyms_RC
18961
18962# Symbols that must always be exported.
18963include_expsyms=$lt_include_expsyms_RC
18964
18965# ### END LIBTOOL TAG CONFIG: $tagname
18966
18967__EOF__
18968
18969
18970else
18971 # If there is no Makefile yet, we rely on a make rule to execute
18972 # `config.status --recheck' to rerun these tests and create the
18973 # libtool script then.
18974 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18975 if test -f "$ltmain_in"; then
18976 test -f Makefile && make "$ltmain"
18977 fi
18978fi
18979
18980
18981ac_ext=c
18982ac_cpp='$CPP $CPPFLAGS'
18983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18985ac_compiler_gnu=$ac_cv_c_compiler_gnu
18986
18987CC="$lt_save_CC"
18988
18989 ;;
18990
18991 *)
18992 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18993echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18994 { (exit 1); exit 1; }; }
18995 ;;
18996 esac
18997
18998 # Append the new tag name to the list of available tags.
18999 if test -n "$tagname" ; then
19000 available_tags="$available_tags $tagname"
19001 fi
19002 fi
19003 done
19004 IFS="$lt_save_ifs"
19005
19006 # Now substitute the updated list of available tags.
19007 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19008 mv "${ofile}T" "$ofile"
19009 chmod +x "$ofile"
19010 else
19011 rm -f "${ofile}T"
19012 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19013echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19014 { (exit 1); exit 1; }; }
19015 fi
19016fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019017
19018
19019
19020# This can be used to rebuild libtool when needed
19021LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19022
19023# Always use our own libtool.
19024LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19025
19026# Prevent multiple expansion
19027
19028
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019047# By default we simply use the C compiler to build assembly code.
19048
19049: ${CCAS='$(CC)'}
19050# Set ASFLAGS if not already set.
19051: ${CCASFLAGS='$(CFLAGS)'}
19052
19053
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019054
19055
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019056echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
19057echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
19058if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061 ac_check_lib_save_LIBS=$LIBS
19062LIBS="-luca $LIBS"
19063cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019064/* confdefs.h. */
19065_ACEOF
19066cat confdefs.h >>conftest.$ac_ext
19067cat >>conftest.$ac_ext <<_ACEOF
19068/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019069
19070/* Override any gcc2 internal prototype to avoid an error. */
19071#ifdef __cplusplus
19072extern "C"
19073#endif
19074/* We use char because int might match the return type of a gcc2
19075 builtin and then its argument prototype would still apply. */
19076char __uc_get_grs ();
19077int
19078main ()
19079{
19080__uc_get_grs ();
19081 ;
19082 return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext conftest$ac_exeext
19086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019087 (eval $ac_link) 2>conftest.er1
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019088 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_lib_uca___uc_get_grs=yes
19107else
19108 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019109sed 's/^/| /' conftest.$ac_ext >&5
19110
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019111ac_cv_lib_uca___uc_get_grs=no
19112fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019113rm -f conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019115LIBS=$ac_check_lib_save_LIBS
19116fi
19117echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
19118echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
19119if test $ac_cv_lib_uca___uc_get_grs = yes; then
19120 cat >>confdefs.h <<_ACEOF
19121#define HAVE_LIBUCA 1
19122_ACEOF
19123
19124 LIBS="-luca $LIBS"
19125
19126fi
19127
19128
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019129for ac_header in atomic_ops.h
19130do
19131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19132if eval "test \"\${$as_ac_Header+set}\" = set"; then
19133 echo "$as_me:$LINENO: checking for $ac_header" >&5
19134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19135if eval "test \"\${$as_ac_Header+set}\" = set"; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137fi
19138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19140else
19141 # Is the header compilable?
19142echo "$as_me:$LINENO: checking $ac_header usability" >&5
19143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19144cat >conftest.$ac_ext <<_ACEOF
19145/* confdefs.h. */
19146_ACEOF
19147cat confdefs.h >>conftest.$ac_ext
19148cat >>conftest.$ac_ext <<_ACEOF
19149/* end confdefs.h. */
19150$ac_includes_default
19151#include <$ac_header>
19152_ACEOF
19153rm -f conftest.$ac_objext
19154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019155 (eval $ac_compile) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019156 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_header_compiler=yes
19175else
19176 echo "$as_me: failed program was:" >&5
19177sed 's/^/| /' conftest.$ac_ext >&5
19178
19179ac_header_compiler=no
19180fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19183echo "${ECHO_T}$ac_header_compiler" >&6
19184
19185# Is the header present?
19186echo "$as_me:$LINENO: checking $ac_header presence" >&5
19187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19188cat >conftest.$ac_ext <<_ACEOF
19189/* confdefs.h. */
19190_ACEOF
19191cat confdefs.h >>conftest.$ac_ext
19192cat >>conftest.$ac_ext <<_ACEOF
19193/* end confdefs.h. */
19194#include <$ac_header>
19195_ACEOF
19196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } >/dev/null; then
19204 if test -s conftest.err; then
19205 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019207 else
19208 ac_cpp_err=
19209 fi
19210else
19211 ac_cpp_err=yes
19212fi
19213if test -z "$ac_cpp_err"; then
19214 ac_header_preproc=yes
19215else
19216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219 ac_header_preproc=no
19220fi
19221rm -f conftest.err conftest.$ac_ext
19222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19223echo "${ECHO_T}$ac_header_preproc" >&6
19224
19225# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19227 yes:no: )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19232 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019233 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019234 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019247 (
19248 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019249## ----------------------------------------- ##
19250## Report this to libunwind@linux.hpl.hp.com ##
19251## ----------------------------------------- ##
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019252_ASBOX
19253 ) |
19254 sed "s/^/$as_me: WARNING: /" >&2
19255 ;;
19256esac
19257echo "$as_me:$LINENO: checking for $ac_header" >&5
19258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19259if eval "test \"\${$as_ac_Header+set}\" = set"; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019262 eval "$as_ac_Header=\$ac_header_preproc"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019263fi
19264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19266
19267fi
19268if test `eval echo '${'$as_ac_Header'}'` = yes; then
19269 cat >>confdefs.h <<_ACEOF
19270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19271_ACEOF
19272
19273fi
19274
19275done
19276
19277
19278echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
19279echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
19280if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
19281 echo $ECHO_N "(cached) $ECHO_C" >&6
19282else
19283 ac_check_lib_save_LIBS=$LIBS
19284LIBS="-latomic_ops $LIBS"
19285cat >conftest.$ac_ext <<_ACEOF
19286/* confdefs.h. */
19287_ACEOF
19288cat confdefs.h >>conftest.$ac_ext
19289cat >>conftest.$ac_ext <<_ACEOF
19290/* end confdefs.h. */
19291
19292
19293int
19294main ()
19295{
19296main ();
19297 ;
19298 return 0;
19299}
19300_ACEOF
19301rm -f conftest.$ac_objext conftest$ac_exeext
19302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019303 (eval $ac_link) 2>conftest.er1
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019304 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; } &&
19316 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 ac_cv_lib_atomic_ops_main=yes
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
19327ac_cv_lib_atomic_ops_main=no
19328fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019329rm -f conftest.err conftest.$ac_objext \
19330 conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019331LIBS=$ac_check_lib_save_LIBS
19332fi
19333echo "$as_me:$LINENO: result: $ac_cv_lib_atomic_ops_main" >&5
19334echo "${ECHO_T}$ac_cv_lib_atomic_ops_main" >&6
19335if test $ac_cv_lib_atomic_ops_main = yes; then
19336 cat >>confdefs.h <<_ACEOF
19337#define HAVE_LIBATOMIC_OPS 1
19338_ACEOF
19339
19340 LIBS="-latomic_ops $LIBS"
19341
19342fi
19343
19344
19345
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019346echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19347echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19348if test "${ac_cv_header_stdc+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350else
19351 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019352/* confdefs.h. */
19353_ACEOF
19354cat confdefs.h >>conftest.$ac_ext
19355cat >>conftest.$ac_ext <<_ACEOF
19356/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019357#include <stdlib.h>
19358#include <stdarg.h>
19359#include <string.h>
19360#include <float.h>
19361
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019362int
19363main ()
19364{
19365
19366 ;
19367 return 0;
19368}
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019369_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019370rm -f conftest.$ac_objext
19371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019372 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019373 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019378 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019391 ac_cv_header_stdc=yes
19392else
19393 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019394sed 's/^/| /' conftest.$ac_ext >&5
19395
19396ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019397fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019399
19400if test $ac_cv_header_stdc = yes; then
19401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19402 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019408#include <string.h>
19409
19410_ACEOF
19411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19412 $EGREP "memchr" >/dev/null 2>&1; then
19413 :
19414else
19415 ac_cv_header_stdc=no
19416fi
19417rm -f conftest*
19418
19419fi
19420
19421if test $ac_cv_header_stdc = yes; then
19422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19423 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019424/* confdefs.h. */
19425_ACEOF
19426cat confdefs.h >>conftest.$ac_ext
19427cat >>conftest.$ac_ext <<_ACEOF
19428/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019429#include <stdlib.h>
19430
19431_ACEOF
19432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19433 $EGREP "free" >/dev/null 2>&1; then
19434 :
19435else
19436 ac_cv_header_stdc=no
19437fi
19438rm -f conftest*
19439
19440fi
19441
19442if test $ac_cv_header_stdc = yes; then
19443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19444 if test "$cross_compiling" = yes; then
19445 :
19446else
19447 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019453#include <ctype.h>
19454#if ((' ' & 0x0FF) == 0x020)
19455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19457#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019458# define ISLOWER(c) \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019459 (('a' <= (c) && (c) <= 'i') \
19460 || ('j' <= (c) && (c) <= 'r') \
19461 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19463#endif
19464
19465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19466int
19467main ()
19468{
19469 int i;
19470 for (i = 0; i < 256; i++)
19471 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019472 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019473 exit(2);
19474 exit (0);
19475}
19476_ACEOF
19477rm -f conftest$ac_exeext
19478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479 (eval $ac_link) 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 :
19489else
19490 echo "$as_me: program exited with status $ac_status" >&5
19491echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019492sed 's/^/| /' conftest.$ac_ext >&5
19493
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019494( exit $ac_status )
19495ac_cv_header_stdc=no
19496fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019498fi
19499fi
19500fi
19501echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19502echo "${ECHO_T}$ac_cv_header_stdc" >&6
19503if test $ac_cv_header_stdc = yes; then
19504
19505cat >>confdefs.h <<\_ACEOF
19506#define STDC_HEADERS 1
19507_ACEOF
19508
19509fi
19510
19511
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019512
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019513
19514
19515
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019516
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019517
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019518for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019519 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019520do
19521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19522if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo "$as_me:$LINENO: checking for $ac_header" >&5
19524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19525if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527fi
19528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19530else
19531 # Is the header compilable?
19532echo "$as_me:$LINENO: checking $ac_header usability" >&5
19533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19534cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019540$ac_includes_default
19541#include <$ac_header>
19542_ACEOF
19543rm -f conftest.$ac_objext
19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019545 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019546 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_header_compiler=yes
19565else
19566 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019567sed 's/^/| /' conftest.$ac_ext >&5
19568
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019569ac_header_compiler=no
19570fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19573echo "${ECHO_T}$ac_header_compiler" >&6
19574
19575# Is the header present?
19576echo "$as_me:$LINENO: checking $ac_header presence" >&5
19577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19578cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019584#include <$ac_header>
19585_ACEOF
19586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19588 ac_status=$?
19589 grep -v '^ *+' conftest.er1 >conftest.err
19590 rm -f conftest.er1
19591 cat conftest.err >&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } >/dev/null; then
19594 if test -s conftest.err; then
19595 ac_cpp_err=$ac_c_preproc_warn_flag
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019597 else
19598 ac_cpp_err=
19599 fi
19600else
19601 ac_cpp_err=yes
19602fi
19603if test -z "$ac_cpp_err"; then
19604 ac_header_preproc=yes
19605else
19606 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019607sed 's/^/| /' conftest.$ac_ext >&5
19608
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019609 ac_header_preproc=no
19610fi
19611rm -f conftest.err conftest.$ac_ext
19612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19613echo "${ECHO_T}$ac_header_preproc" >&6
19614
19615# So? What about this header?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19617 yes:no: )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19622 ac_header_preproc=yes
mostang.com!davidm046362a2003-12-05 06:42:28 +000019623 ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019624 no:yes:* )
mostang.com!davidm046362a2003-12-05 06:42:28 +000019625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +000019637 (
19638 cat <<\_ASBOX
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019639## ----------------------------------------- ##
19640## Report this to libunwind@linux.hpl.hp.com ##
19641## ----------------------------------------- ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019642_ASBOX
19643 ) |
19644 sed "s/^/$as_me: WARNING: /" >&2
19645 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019646esac
19647echo "$as_me:$LINENO: checking for $ac_header" >&5
19648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19649if eval "test \"\${$as_ac_Header+set}\" = set"; then
19650 echo $ECHO_N "(cached) $ECHO_C" >&6
19651else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019652 eval "$as_ac_Header=\$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019653fi
19654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19656
19657fi
19658if test `eval echo '${'$as_ac_Header'}'` = yes; then
19659 cat >>confdefs.h <<_ACEOF
19660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19661_ACEOF
19662
19663fi
19664
19665done
19666
19667
19668echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19669echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19670if test "${ac_cv_c_const+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672else
19673 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019679
19680int
19681main ()
19682{
19683/* FIXME: Include the comments suggested by Paul. */
19684#ifndef __cplusplus
19685 /* Ultrix mips cc rejects this. */
19686 typedef int charset[2];
19687 const charset x;
19688 /* SunOS 4.1.1 cc rejects this. */
19689 char const *const *ccp;
19690 char **p;
19691 /* NEC SVR4.0.2 mips cc rejects this. */
19692 struct point {int x, y;};
19693 static struct point const zero = {0,0};
19694 /* AIX XL C 1.02.0.0 rejects this.
19695 It does not let you subtract one const X* pointer from another in
19696 an arm of an if-expression whose if-part is not a constant
19697 expression */
19698 const char *g = "string";
19699 ccp = &g + (g ? g-g : 0);
19700 /* HPUX 7.0 cc rejects these. */
19701 ++ccp;
19702 p = (char**) ccp;
19703 ccp = (char const *const *) p;
19704 { /* SCO 3.2v4 cc rejects this. */
19705 char *t;
19706 char const *s = 0 ? (char *) 0 : (char const *) 0;
19707
19708 *t++ = 0;
19709 }
19710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19711 int x[] = {25, 17};
19712 const int *foo = &x[0];
19713 ++foo;
19714 }
19715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19716 typedef const int *iptr;
19717 iptr p = 0;
19718 ++p;
19719 }
19720 { /* AIX XL C 1.02.0.0 rejects this saying
19721 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19722 struct s { int j; const int *ap[3]; };
19723 struct s *b; b->j = 5;
19724 }
19725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19726 const int foo = 10;
19727 }
19728#endif
19729
19730 ;
19731 return 0;
19732}
19733_ACEOF
19734rm -f conftest.$ac_objext
19735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019736 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019737 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_c_const=yes
19756else
19757 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019758sed 's/^/| /' conftest.$ac_ext >&5
19759
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019760ac_cv_c_const=no
19761fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019763fi
19764echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19765echo "${ECHO_T}$ac_cv_c_const" >&6
19766if test $ac_cv_c_const = no; then
19767
19768cat >>confdefs.h <<\_ACEOF
19769#define const
19770_ACEOF
19771
19772fi
19773
19774echo "$as_me:$LINENO: checking for inline" >&5
19775echo $ECHO_N "checking for inline... $ECHO_C" >&6
19776if test "${ac_cv_c_inline+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778else
19779 ac_cv_c_inline=no
19780for ac_kw in inline __inline__ __inline; do
19781 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019787#ifndef __cplusplus
19788typedef int foo_t;
19789static $ac_kw foo_t static_foo () {return 0; }
19790$ac_kw foo_t foo () {return 0; }
19791#endif
19792
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019796 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019797 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_cv_c_inline=$ac_kw; break
19816else
19817 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019818sed 's/^/| /' conftest.$ac_ext >&5
19819
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019820fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019822done
19823
19824fi
19825echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19826echo "${ECHO_T}$ac_cv_c_inline" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019827
19828
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019829case $ac_cv_c_inline in
19830 inline | yes) ;;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019831 *)
19832 case $ac_cv_c_inline in
19833 no) ac_val=;;
19834 *) ac_val=$ac_cv_c_inline;;
19835 esac
19836 cat >>confdefs.h <<_ACEOF
19837#ifndef __cplusplus
19838#define inline $ac_val
19839#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019840_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019841 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019842esac
19843
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019844echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19845echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19846if test "${ac_cv_type_signal+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019855#include <sys/types.h>
19856#include <signal.h>
19857#ifdef signal
19858# undef signal
19859#endif
19860#ifdef __cplusplus
19861extern "C" void (*signal (int, void (*)(int)))(int);
19862#else
19863void (*signal ()) ();
19864#endif
19865
19866int
19867main ()
19868{
19869int i;
19870 ;
19871 return 0;
19872}
19873_ACEOF
19874rm -f conftest.$ac_objext
19875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019876 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019877 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_cv_type_signal=void
19896else
19897 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019898sed 's/^/| /' conftest.$ac_ext >&5
19899
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019900ac_cv_type_signal=int
19901fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019903fi
19904echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19905echo "${ECHO_T}$ac_cv_type_signal" >&6
19906
19907cat >>confdefs.h <<_ACEOF
19908#define RETSIGTYPE $ac_cv_type_signal
19909_ACEOF
19910
19911
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019912echo "$as_me:$LINENO: checking for size_t" >&5
19913echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19914if test "${ac_cv_type_size_t+set}" = set; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19916else
19917 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019918/* confdefs.h. */
19919_ACEOF
19920cat confdefs.h >>conftest.$ac_ext
19921cat >>conftest.$ac_ext <<_ACEOF
19922/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019923$ac_includes_default
19924int
19925main ()
19926{
19927if ((size_t *) 0)
19928 return 0;
19929if (sizeof (size_t))
19930 return 0;
19931 ;
19932 return 0;
19933}
19934_ACEOF
19935rm -f conftest.$ac_objext
19936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019937 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019938 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; } &&
19950 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19953 ac_status=$?
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19956 ac_cv_type_size_t=yes
19957else
19958 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019959sed 's/^/| /' conftest.$ac_ext >&5
19960
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019961ac_cv_type_size_t=no
19962fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019964fi
19965echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19966echo "${ECHO_T}$ac_cv_type_size_t" >&6
19967if test $ac_cv_type_size_t = yes; then
19968 :
19969else
19970
19971cat >>confdefs.h <<_ACEOF
19972#define size_t unsigned
19973_ACEOF
19974
19975fi
19976
19977
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019978CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
19979if test x$enable_debug = xyes; then
19980 CPPFLAGS="${CPPFLAGS} -DDEBUG"
19981else
19982 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
19983fi
19984
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000019985echo "$as_me:$LINENO: checking for struct dl_phdr_info.dlpi_subs" >&5
19986echo $ECHO_N "checking for struct dl_phdr_info.dlpi_subs... $ECHO_C" >&6
19987if test "${ac_cv_member_struct_dl_phdr_info_dlpi_subs+set}" = set; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19989else
19990 cat >conftest.$ac_ext <<_ACEOF
19991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
19996#include <link.h>
19997
19998int
19999main ()
20000{
20001static struct dl_phdr_info ac_aggr;
20002if (ac_aggr.dlpi_subs)
20003return 0;
20004 ;
20005 return 0;
20006}
20007_ACEOF
20008rm -f conftest.$ac_objext
20009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20010 (eval $ac_compile) 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest.$ac_objext'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20030else
20031 echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040#include <link.h>
20041
20042int
20043main ()
20044{
20045static struct dl_phdr_info ac_aggr;
20046if (sizeof ac_aggr.dlpi_subs)
20047return 0;
20048 ;
20049 return 0;
20050}
20051_ACEOF
20052rm -f conftest.$ac_objext
20053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054 (eval $ac_compile) 2>conftest.er1
20055 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest.$ac_objext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
20074else
20075 echo "$as_me: failed program was:" >&5
20076sed 's/^/| /' conftest.$ac_ext >&5
20077
20078ac_cv_member_struct_dl_phdr_info_dlpi_subs=no
20079fi
20080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20081fi
20082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20083fi
20084echo "$as_me:$LINENO: result: $ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&5
20085echo "${ECHO_T}$ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&6
20086if test $ac_cv_member_struct_dl_phdr_info_dlpi_subs = yes; then
20087
20088cat >>confdefs.h <<_ACEOF
20089#define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
20090_ACEOF
20091
20092
20093fi
20094
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020095echo "$as_me:$LINENO: checking for sighandler_t" >&5
20096echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
20097if test "${ac_cv_type_sighandler_t+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099else
20100 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020101/* confdefs.h. */
20102_ACEOF
20103cat confdefs.h >>conftest.$ac_ext
20104cat >>conftest.$ac_ext <<_ACEOF
20105/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020106$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000020107#if HAVE_SIGNAL_H
20108# include <signal.h>
20109#endif
20110
20111
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020112int
20113main ()
20114{
20115if ((sighandler_t *) 0)
20116 return 0;
20117if (sizeof (sighandler_t))
20118 return 0;
20119 ;
20120 return 0;
20121}
20122_ACEOF
20123rm -f conftest.$ac_objext
20124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020125 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020126 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 ac_cv_type_sighandler_t=yes
20145else
20146 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020147sed 's/^/| /' conftest.$ac_ext >&5
20148
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020149ac_cv_type_sighandler_t=no
20150fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020152fi
20153echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
20154echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000020155if test $ac_cv_type_sighandler_t = yes; then
20156
20157cat >>confdefs.h <<_ACEOF
20158#define HAVE_SIGHANDLER_T 1
20159_ACEOF
20160
20161
20162fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020163
20164
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020165echo "$as_me:$LINENO: checking for working memcmp" >&5
20166echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20167if test "${ac_cv_func_memcmp_working+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169else
20170 if test "$cross_compiling" = yes; then
20171 ac_cv_func_memcmp_working=no
20172else
20173 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020179$ac_includes_default
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020180int
20181main ()
20182{
20183
20184 /* Some versions of memcmp are not 8-bit clean. */
20185 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20186 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20187 exit (1);
20188
20189 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20190 or more and with at least one buffer not starting on a 4-byte boundary.
20191 William Lewis provided this test program. */
20192 {
20193 char foo[21];
20194 char bar[21];
20195 int i;
20196 for (i = 0; i < 4; i++)
20197 {
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020198 char *a = foo + i;
20199 char *b = bar + i;
20200 strcpy (a, "--------01111111");
20201 strcpy (b, "--------10000000");
20202 if (memcmp (a, b, 16) >= 0)
20203 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020204 }
20205 exit (0);
20206 }
20207
20208 ;
20209 return 0;
20210}
20211_ACEOF
20212rm -f conftest$ac_exeext
20213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20214 (eval $ac_link) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 ac_cv_func_memcmp_working=yes
20224else
20225 echo "$as_me: program exited with status $ac_status" >&5
20226echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020227sed 's/^/| /' conftest.$ac_ext >&5
20228
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020229( exit $ac_status )
20230ac_cv_func_memcmp_working=no
20231fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020233fi
20234fi
20235echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20236echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020237test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
20238 "memcmp.$ac_objext" | \
20239 *" memcmp.$ac_objext" | \
20240 "memcmp.$ac_objext "* | \
20241 *" memcmp.$ac_objext "* ) ;;
20242 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
20243esac
20244
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020245
20246echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20247echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20248if test "${ac_cv_type_signal+set}" = set; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20250else
20251 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020257#include <sys/types.h>
20258#include <signal.h>
20259#ifdef signal
20260# undef signal
20261#endif
20262#ifdef __cplusplus
20263extern "C" void (*signal (int, void (*)(int)))(int);
20264#else
20265void (*signal ()) ();
20266#endif
20267
20268int
20269main ()
20270{
20271int i;
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020278 (eval $ac_compile) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020279 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_type_signal=void
20298else
20299 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020300sed 's/^/| /' conftest.$ac_ext >&5
20301
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020302ac_cv_type_signal=int
20303fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020305fi
20306echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20307echo "${ECHO_T}$ac_cv_type_signal" >&6
20308
20309cat >>confdefs.h <<_ACEOF
20310#define RETSIGTYPE $ac_cv_type_signal
20311_ACEOF
20312
20313
20314
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000020315
20316
20317
hp.com!davidm2de17682004-04-20 16:53:44 +000020318
20319for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
20320 ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020321do
20322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20323echo "$as_me:$LINENO: checking for $ac_func" >&5
20324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20325if eval "test \"\${$as_ac_var+set}\" = set"; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327else
20328 cat >conftest.$ac_ext <<_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20336#define $ac_func innocuous_$ac_func
20337
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020338/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020339 which can conflict with char $ac_func (); below.
20340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20341 <limits.h> exists even on freestanding compilers. */
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020342
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020343#ifdef __STDC__
20344# include <limits.h>
20345#else
20346# include <assert.h>
20347#endif
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020348
20349#undef $ac_func
20350
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020351/* Override any gcc2 internal prototype to avoid an error. */
20352#ifdef __cplusplus
20353extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020354{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020355#endif
20356/* We use char because int might match the return type of a gcc2
20357 builtin and then its argument prototype would still apply. */
20358char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020359/* The GNU C library defines this for functions which it implements
20360 to always fail with ENOSYS. Some functions are actually named
20361 something starting with __ and the normal name is an alias. */
20362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20363choke me
20364#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020365char (*f) () = $ac_func;
20366#endif
20367#ifdef __cplusplus
20368}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020369#endif
20370
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020371int
20372main ()
20373{
20374return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020375 ;
20376 return 0;
20377}
20378_ACEOF
20379rm -f conftest.$ac_objext conftest$ac_exeext
20380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020381 (eval $ac_link) 2>conftest.er1
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020382 ac_status=$?
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 eval "$as_ac_var=yes"
20401else
20402 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020403sed 's/^/| /' conftest.$ac_ext >&5
20404
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020405eval "$as_ac_var=no"
20406fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020407rm -f conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020409fi
20410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20412if test `eval echo '${'$as_ac_var'}'` = yes; then
20413 cat >>confdefs.h <<_ACEOF
20414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20415_ACEOF
20416
20417fi
20418done
20419
20420
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020421get_arch() {
20422 case "$1" in
20423 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020424 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020425 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020426 esac
20427}
20428
20429build_arch=`get_arch $build_cpu`
20430target_arch=`get_arch $target_cpu`
20431
20432
20433
20434if test x$target_arch != x$build_arch; then
20435 REMOTE_ONLY_TRUE=
20436 REMOTE_ONLY_FALSE='#'
20437else
20438 REMOTE_ONLY_TRUE='#'
20439 REMOTE_ONLY_FALSE=
20440fi
20441
20442
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020443
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020444if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020445 ARCH_IA64_TRUE=
20446 ARCH_IA64_FALSE='#'
20447else
20448 ARCH_IA64_TRUE='#'
20449 ARCH_IA64_FALSE=
20450fi
20451
20452
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020453
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020454if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020455 ARCH_HPPA_TRUE=
20456 ARCH_HPPA_FALSE='#'
20457else
20458 ARCH_HPPA_TRUE='#'
20459 ARCH_HPPA_FALSE=
20460fi
20461
20462
20463
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020464if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020465 ARCH_X86_TRUE=
20466 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020467else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020468 ARCH_X86_TRUE='#'
20469 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020470fi
20471
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020472
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020473
20474if expr x$target_os : xlinux >/dev/null; then
20475 OS_LINUX_TRUE=
20476 OS_LINUX_FALSE='#'
20477else
20478 OS_LINUX_TRUE='#'
20479 OS_LINUX_FALSE=
20480fi
20481
20482
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020483
20484if expr x$target_os : xhpux >/dev/null; then
20485 OS_HPUX_TRUE=
20486 OS_HPUX_FALSE='#'
20487else
20488 OS_HPUX_TRUE='#'
20489 OS_HPUX_FALSE=
20490fi
20491
20492
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020493if test x$target_arch != x$build_arch; then
20494 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020495fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020496 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
20497
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020498
20499# Check whether --enable-debug or --disable-debug was given.
20500if test "${enable_debug+set}" = set; then
20501 enableval="$enable_debug"
20502 enable_debug=yes
20503fi;
20504
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020505if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020506 echo "$as_me:$LINENO: checking for __thread" >&5
20507echo $ECHO_N "checking for __thread... $ECHO_C" >&6
20508if test "${libc_cv_gcc___thread+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510else
20511 cat > conftest.c <<\EOF
20512 __thread int a = 42;
20513EOF
20514 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 libc_cv_gcc___thread=yes
20521 else
20522 libc_cv_gcc___thread=no
20523 fi
20524 rm -f conftest*
20525fi
20526echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
20527echo "${ECHO_T}$libc_cv_gcc___thread" >&6
20528 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000020529
20530cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000020531#define HAVE___THREAD 1
20532_ACEOF
20533
20534 fi
20535else
20536 libc_cv_gcc___thread=no
20537fi
20538
hp.com!davidm2de17682004-04-20 16:53:44 +000020539save_LDFLAGS="$LDFLAGS"
20540LDFLAGS="$LDFLAGS -static-libcxa"
20541cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547
20548int
20549main ()
20550{
20551
20552 ;
20553 return 0;
20554}
20555_ACEOF
20556rm -f conftest.$ac_objext conftest$ac_exeext
20557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20558 (eval $ac_link) 2>conftest.er1
20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; } &&
20571 { ac_try='test -s conftest$ac_exeext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 have_static_libcxa=yes
20578else
20579 echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
20582fi
20583rm -f conftest.err conftest.$ac_objext \
20584 conftest$ac_exeext conftest.$ac_ext
20585LDFLAGS="$save_LDFLAGS"
20586if test "x$have_static_libcxa" = xyes; then
20587 LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
20588fi
20589
20590cat >conftest.$ac_ext <<_ACEOF
20591/* confdefs.h. */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h. */
20596
20597int
20598main ()
20599{
20600#ifndef __INTEL_COMPILER
20601#error choke me
20602#endif
20603 ;
20604 return 0;
20605}
20606_ACEOF
20607rm -f conftest.$ac_objext
20608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609 (eval $ac_compile) 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 intel_compiler=yes
20629else
20630 echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633fi
20634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20635
20636if test x$GCC = xyes -a x$intel_compiler != xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020637 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020638fi
20639
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020640CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
20641
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020642arch="$target_arch"
20643ARCH=`echo $target_arch | tr a-z A-Z`
20644
20645
20646
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020647
hp.com!davidm2de17682004-04-20 16:53:44 +000020648
mostang.com!davidm542e0262004-05-05 01:58:44 +000020649
20650
20651 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh doc/Makefile doc/common.tex"
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020652
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020653cat >confcache <<\_ACEOF
20654# This file is a shell script that caches the results of configure
20655# tests run on this system so they can be shared between configure
20656# scripts and configure runs, see configure's option --config-cache.
20657# It is not useful on other systems. If it contains results you don't
20658# want to keep, you may remove or edit it.
20659#
20660# config.status only pays attention to the cache file if you give it
20661# the --recheck option to rerun configure.
20662#
20663# `ac_cv_env_foo' variables (set or unset) will be overridden when
20664# loading this file, other *unset* `ac_cv_foo' will be assigned the
20665# following values.
20666
20667_ACEOF
20668
20669# The following way of writing the cache mishandles newlines in values,
20670# but we know of no workaround that is simple, portable, and efficient.
20671# So, don't put newlines in cache variables' values.
20672# Ultrix sh set writes to stderr and can't be redirected directly,
20673# and sets the high bit in the cache file unless we assign to the vars.
20674{
20675 (set) 2>&1 |
20676 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20677 *ac_space=\ *)
20678 # `set' does not quote correctly, so add quotes (double-quote
20679 # substitution turns \\\\ into \\, and sed turns \\ into \).
20680 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020681 "s/'/'\\\\''/g;
20682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020683 ;;
20684 *)
20685 # `set' quotes correctly as required by POSIX, so do not add quotes.
20686 sed -n \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020687 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020688 ;;
20689 esac;
20690} |
20691 sed '
20692 t clear
20693 : clear
20694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20695 t end
20696 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20697 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020698if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020699 if test -w $cache_file; then
20700 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20701 cat confcache >$cache_file
20702 else
20703 echo "not updating unwritable cache $cache_file"
20704 fi
20705fi
20706rm -f confcache
20707
20708test "x$prefix" = xNONE && prefix=$ac_default_prefix
20709# Let make expand exec_prefix.
20710test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20711
20712# VPATH may cause trouble with some makes, so we remove $(srcdir),
20713# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20714# trailing colons and then remove the whole line if VPATH becomes empty
20715# (actually we leave an empty line to preserve line numbers).
20716if test "x$srcdir" = x.; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020717 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020718s/:*\$(srcdir):*/:/;
20719s/:*\${srcdir}:*/:/;
20720s/:*@srcdir@:*/:/;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020721s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020722s/:*$//;
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020723s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020724}'
20725fi
20726
20727DEFS=-DHAVE_CONFIG_H
20728
20729ac_libobjs=
20730ac_ltlibobjs=
20731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20732 # 1. Remove the extension, and $U if already installed.
20733 ac_i=`echo "$ac_i" |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020734 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020735 # 2. Add them.
20736 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20737 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20738done
20739LIBOBJS=$ac_libobjs
20740
20741LTLIBOBJS=$ac_ltlibobjs
20742
20743
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020744if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20745 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20746Usually this means the macro was only invoked conditionally." >&5
20747echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20748Usually this means the macro was only invoked conditionally." >&2;}
20749 { (exit 1); exit 1; }; }
20750fi
20751if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20752 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20753Usually this means the macro was only invoked conditionally." >&5
20754echo "$as_me: error: conditional \"AMDEP\" was never defined.
20755Usually this means the macro was only invoked conditionally." >&2;}
20756 { (exit 1); exit 1; }; }
20757fi
20758if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20759 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20760Usually this means the macro was only invoked conditionally." >&5
20761echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20762Usually this means the macro was only invoked conditionally." >&2;}
20763 { (exit 1); exit 1; }; }
20764fi
20765if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20766 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20767Usually this means the macro was only invoked conditionally." >&5
20768echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20769Usually this means the macro was only invoked conditionally." >&2;}
20770 { (exit 1); exit 1; }; }
20771fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020772if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20773 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20774Usually this means the macro was only invoked conditionally." >&5
20775echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20776Usually this means the macro was only invoked conditionally." >&2;}
20777 { (exit 1); exit 1; }; }
20778fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020779if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20780 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20781Usually this means the macro was only invoked conditionally." >&5
20782echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20783Usually this means the macro was only invoked conditionally." >&2;}
20784 { (exit 1); exit 1; }; }
20785fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020786if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20787 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20788Usually this means the macro was only invoked conditionally." >&5
20789echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20790Usually this means the macro was only invoked conditionally." >&2;}
20791 { (exit 1); exit 1; }; }
20792fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020793if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20794 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20795Usually this means the macro was only invoked conditionally." >&5
20796echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20797Usually this means the macro was only invoked conditionally." >&2;}
20798 { (exit 1); exit 1; }; }
20799fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020800
20801: ${CONFIG_STATUS=./config.status}
20802ac_clean_files_save=$ac_clean_files
20803ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20804{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20805echo "$as_me: creating $CONFIG_STATUS" >&6;}
20806cat >$CONFIG_STATUS <<_ACEOF
20807#! $SHELL
20808# Generated by $as_me.
20809# Run this file to recreate the current configuration.
20810# Compiler output produced by configure, useful for debugging
20811# configure, is in config.log if it exists.
20812
20813debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020814ac_cs_recheck=false
20815ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020816SHELL=\${CONFIG_SHELL-$SHELL}
20817_ACEOF
20818
20819cat >>$CONFIG_STATUS <<\_ACEOF
20820## --------------------- ##
20821## M4sh Initialization. ##
20822## --------------------- ##
20823
20824# Be Bourne compatible
20825if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20826 emulate sh
20827 NULLCMD=:
20828 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20829 # is contrary to our usage. Disable this feature.
20830 alias -g '${1+"$@"}'='"$@"'
20831elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20832 set -o posix
20833fi
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020834DUALCASE=1; export DUALCASE # for MKS sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020835
20836# Support unset when possible.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020837if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020838 as_unset=unset
20839else
20840 as_unset=false
20841fi
20842
20843
20844# Work around bugs in pre-3.0 UWIN ksh.
20845$as_unset ENV MAIL MAILPATH
20846PS1='$ '
20847PS2='> '
20848PS4='+ '
20849
20850# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020851for as_var in \
20852 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20853 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20854 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020855do
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000020856 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020857 eval $as_var=C; export $as_var
20858 else
20859 $as_unset $as_var
20860 fi
20861done
20862
20863# Required to use basename.
20864if expr a : '\(a\)' >/dev/null 2>&1; then
20865 as_expr=expr
20866else
20867 as_expr=false
20868fi
20869
20870if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20871 as_basename=basename
20872else
20873 as_basename=false
20874fi
20875
20876
20877# Name of the executable.
20878as_me=`$as_basename "$0" ||
20879$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20880 X"$0" : 'X\(//\)$' \| \
20881 X"$0" : 'X\(/\)$' \| \
20882 . : '\(.\)' 2>/dev/null ||
20883echo X/"$0" |
20884 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20885 /^X\/\(\/\/\)$/{ s//\1/; q; }
20886 /^X\/\(\/\).*/{ s//\1/; q; }
20887 s/.*/./; q'`
20888
20889
20890# PATH needs CR, and LINENO needs CR and PATH.
20891# Avoid depending upon Character Ranges.
20892as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20893as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20894as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20895as_cr_digits='0123456789'
20896as_cr_alnum=$as_cr_Letters$as_cr_digits
20897
20898# The user is always right.
20899if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020900 echo "#! /bin/sh" >conf$$.sh
20901 echo "exit 0" >>conf$$.sh
20902 chmod +x conf$$.sh
20903 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020904 PATH_SEPARATOR=';'
20905 else
20906 PATH_SEPARATOR=:
20907 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020908 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020909fi
20910
20911
20912 as_lineno_1=$LINENO
20913 as_lineno_2=$LINENO
20914 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20915 test "x$as_lineno_1" != "x$as_lineno_2" &&
20916 test "x$as_lineno_3" = "x$as_lineno_2" || {
20917 # Find who we are. Look in the path if we contain no path at all
20918 # relative or not.
20919 case $0 in
20920 *[\\/]* ) as_myself=$0 ;;
20921 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20922for as_dir in $PATH
20923do
20924 IFS=$as_save_IFS
20925 test -z "$as_dir" && as_dir=.
20926 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20927done
20928
20929 ;;
20930 esac
20931 # We did not find ourselves, most probably we were run as `sh COMMAND'
20932 # in which case we are not to be found in the path.
20933 if test "x$as_myself" = x; then
20934 as_myself=$0
20935 fi
20936 if test ! -f "$as_myself"; then
20937 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20938echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20939 { (exit 1); exit 1; }; }
20940 fi
20941 case $CONFIG_SHELL in
20942 '')
20943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20944for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20945do
20946 IFS=$as_save_IFS
20947 test -z "$as_dir" && as_dir=.
20948 for as_base in sh bash ksh sh5; do
20949 case $as_dir in
20950 /*)
20951 if ("$as_dir/$as_base" -c '
20952 as_lineno_1=$LINENO
20953 as_lineno_2=$LINENO
20954 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20955 test "x$as_lineno_1" != "x$as_lineno_2" &&
20956 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20957 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20958 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20959 CONFIG_SHELL=$as_dir/$as_base
20960 export CONFIG_SHELL
20961 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20962 fi;;
20963 esac
20964 done
20965done
20966;;
20967 esac
20968
20969 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20970 # uniformly replaced by the line number. The first 'sed' inserts a
20971 # line-number line before each line; the second 'sed' does the real
20972 # work. The second script uses 'N' to pair each line-number line
20973 # with the numbered line, and appends trailing '-' during
20974 # substitution so that $LINENO is not a special case at line end.
20975 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20976 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20977 sed '=' <$as_myself |
20978 sed '
20979 N
20980 s,$,-,
20981 : loop
20982 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20983 t loop
20984 s,-$,,
20985 s,^['$as_cr_digits']*\n,,
20986 ' >$as_me.lineno &&
20987 chmod +x $as_me.lineno ||
20988 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20989echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20990 { (exit 1); exit 1; }; }
20991
20992 # Don't try to exec as it changes $[0], causing all sort of problems
20993 # (the dirname of $[0] is not the place where we might find the
20994 # original and so on. Autoconf is especially sensible to this).
20995 . ./$as_me.lineno
20996 # Exit status is that of the last command.
20997 exit
20998}
20999
21000
21001case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21002 *c*,-n*) ECHO_N= ECHO_C='
21003' ECHO_T=' ' ;;
21004 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21005 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21006esac
21007
21008if expr a : '\(a\)' >/dev/null 2>&1; then
21009 as_expr=expr
21010else
21011 as_expr=false
21012fi
21013
21014rm -f conf$$ conf$$.exe conf$$.file
21015echo >conf$$.file
21016if ln -s conf$$.file conf$$ 2>/dev/null; then
21017 # We could just check for DJGPP; but this test a) works b) is more generic
21018 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21019 if test -f conf$$.exe; then
21020 # Don't use ln at all; we don't have any links
21021 as_ln_s='cp -p'
21022 else
21023 as_ln_s='ln -s'
21024 fi
21025elif ln conf$$.file conf$$ 2>/dev/null; then
21026 as_ln_s=ln
21027else
21028 as_ln_s='cp -p'
21029fi
21030rm -f conf$$ conf$$.exe conf$$.file
21031
21032if mkdir -p . 2>/dev/null; then
21033 as_mkdir_p=:
21034else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021035 test -d ./-p && rmdir ./-p
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021036 as_mkdir_p=false
21037fi
21038
21039as_executable_p="test -f"
21040
21041# Sed expression to map a string onto a valid CPP name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021042as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021043
21044# Sed expression to map a string onto a valid variable name.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021045as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021046
21047
21048# IFS
21049# We need space, tab and new line, in precisely that order.
21050as_nl='
21051'
21052IFS=" $as_nl"
21053
21054# CDPATH.
21055$as_unset CDPATH
21056
21057exec 6>&1
21058
21059# Open the log real soon, to keep \$[0] and so on meaningful, and to
21060# report actual input values of CONFIG_FILES etc. instead of their
21061# values after options handling. Logging --version etc. is OK.
21062exec 5>>config.log
21063{
21064 echo
21065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21066## Running $as_me. ##
21067_ASBOX
21068} >&5
21069cat >&5 <<_CSEOF
21070
hp.com!davidm75f19902004-04-28 04:43:25 +000021071This file was extended by libunwind $as_me 0.97, which was
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021072generated by GNU Autoconf 2.59. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021073
21074 CONFIG_FILES = $CONFIG_FILES
21075 CONFIG_HEADERS = $CONFIG_HEADERS
21076 CONFIG_LINKS = $CONFIG_LINKS
21077 CONFIG_COMMANDS = $CONFIG_COMMANDS
21078 $ $0 $@
21079
21080_CSEOF
21081echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21082echo >&5
21083_ACEOF
21084
21085# Files that config.status was made for.
21086if test -n "$ac_config_files"; then
21087 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21088fi
21089
21090if test -n "$ac_config_headers"; then
21091 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21092fi
21093
21094if test -n "$ac_config_links"; then
21095 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21096fi
21097
21098if test -n "$ac_config_commands"; then
21099 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21100fi
21101
21102cat >>$CONFIG_STATUS <<\_ACEOF
21103
21104ac_cs_usage="\
21105\`$as_me' instantiates files from templates according to the
21106current configuration.
21107
21108Usage: $0 [OPTIONS] [FILE]...
21109
21110 -h, --help print this help, then exit
21111 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021112 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021113 -d, --debug don't remove temporary files
21114 --recheck update $as_me by reconfiguring in the same conditions
21115 --file=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021116 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021117 --header=FILE[:TEMPLATE]
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021118 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021119
21120Configuration files:
21121$config_files
21122
21123Configuration headers:
21124$config_headers
21125
21126Configuration links:
21127$config_links
21128
21129Configuration commands:
21130$config_commands
21131
21132Report bugs to <bug-autoconf@gnu.org>."
21133_ACEOF
21134
21135cat >>$CONFIG_STATUS <<_ACEOF
21136ac_cs_version="\\
hp.com!davidm75f19902004-04-28 04:43:25 +000021137libunwind config.status 0.97
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021138configured by $0, generated by GNU Autoconf 2.59,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021139 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21140
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021141Copyright (C) 2003 Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021142This config.status script is free software; the Free Software Foundation
21143gives unlimited permission to copy, distribute and modify it."
21144srcdir=$srcdir
21145INSTALL="$INSTALL"
21146_ACEOF
21147
21148cat >>$CONFIG_STATUS <<\_ACEOF
21149# If no file are specified by the user, then we need to provide default
21150# value. By we need to know if files were specified by the user.
21151ac_need_defaults=:
21152while test $# != 0
21153do
21154 case $1 in
21155 --*=*)
21156 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21157 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21158 ac_shift=:
21159 ;;
21160 -*)
21161 ac_option=$1
21162 ac_optarg=$2
21163 ac_shift=shift
21164 ;;
21165 *) # This is not an option, so the user has probably given explicit
21166 # arguments.
21167 ac_option=$1
21168 ac_need_defaults=false;;
21169 esac
21170
21171 case $ac_option in
21172 # Handling of the options.
21173_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021174cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021175 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21176 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021177 --version | --vers* | -V )
21178 echo "$ac_cs_version"; exit 0 ;;
21179 --he | --h)
21180 # Conflict between --help and --header
21181 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21182Try \`$0 --help' for more information." >&5
21183echo "$as_me: error: ambiguous option: $1
21184Try \`$0 --help' for more information." >&2;}
21185 { (exit 1); exit 1; }; };;
21186 --help | --hel | -h )
21187 echo "$ac_cs_usage"; exit 0 ;;
21188 --debug | --d* | -d )
21189 debug=: ;;
21190 --file | --fil | --fi | --f )
21191 $ac_shift
21192 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21193 ac_need_defaults=false;;
21194 --header | --heade | --head | --hea )
21195 $ac_shift
21196 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21197 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21199 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21200 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021201
21202 # This is an error.
21203 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21204Try \`$0 --help' for more information." >&5
21205echo "$as_me: error: unrecognized option: $1
21206Try \`$0 --help' for more information." >&2;}
21207 { (exit 1); exit 1; }; } ;;
21208
21209 *) ac_config_targets="$ac_config_targets $1" ;;
21210
21211 esac
21212 shift
21213done
21214
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021215ac_configure_extra_args=
21216
21217if $ac_cs_silent; then
21218 exec 6>/dev/null
21219 ac_configure_extra_args="$ac_configure_extra_args --silent"
21220fi
21221
21222_ACEOF
21223cat >>$CONFIG_STATUS <<_ACEOF
21224if \$ac_cs_recheck; then
21225 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21226 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21227fi
21228
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021229_ACEOF
21230
21231cat >>$CONFIG_STATUS <<_ACEOF
21232#
21233# INIT-COMMANDS section.
21234#
21235
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021236AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021237
21238_ACEOF
21239
21240
21241
21242cat >>$CONFIG_STATUS <<\_ACEOF
21243for ac_config_target in $ac_config_targets
21244do
21245 case "$ac_config_target" in
21246 # Handling of arguments.
21247 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21248 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21249 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
mostang.com!davidm542e0262004-05-05 01:58:44 +000021250 "tests/check-namespace.sh" ) CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021251 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000021252 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021253 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000021254 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021255 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021256 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21257 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21258echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21259 { (exit 1); exit 1; }; };;
21260 esac
21261done
21262
21263# If the user did not use the arguments to specify the items to instantiate,
21264# then the envvar interface is used. Set only those that are not.
21265# We use the long form for the default assignment because of an extremely
21266# bizarre bug on SunOS 4.1.3.
21267if $ac_need_defaults; then
21268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21272fi
21273
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021274# Have a temporary directory for convenience. Make it in the build tree
21275# simply because there is no reason to put it here, and in addition,
21276# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021277# Create a temporary directory, and hook for its removal unless debugging.
21278$debug ||
21279{
21280 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21281 trap '{ (exit 1); exit 1; }' 1 2 13 15
21282}
21283
21284# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021285
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021286{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021287 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021288 test -n "$tmp" && test -d "$tmp"
21289} ||
21290{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021291 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021292 (umask 077 && mkdir $tmp)
21293} ||
21294{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021295 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021296 { (exit 1); exit 1; }
21297}
21298
21299_ACEOF
21300
21301cat >>$CONFIG_STATUS <<_ACEOF
21302
21303#
21304# CONFIG_FILES section.
21305#
21306
21307# No need to generate the scripts if there are no CONFIG_FILES.
21308# This happens for instance when ./config.status config.h
21309if test -n "\$CONFIG_FILES"; then
21310 # Protect against being on the right side of a sed subst in config.status.
21311 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21312 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21313s,@SHELL@,$SHELL,;t t
21314s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21315s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21316s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21317s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21318s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21319s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21320s,@exec_prefix@,$exec_prefix,;t t
21321s,@prefix@,$prefix,;t t
21322s,@program_transform_name@,$program_transform_name,;t t
21323s,@bindir@,$bindir,;t t
21324s,@sbindir@,$sbindir,;t t
21325s,@libexecdir@,$libexecdir,;t t
21326s,@datadir@,$datadir,;t t
21327s,@sysconfdir@,$sysconfdir,;t t
21328s,@sharedstatedir@,$sharedstatedir,;t t
21329s,@localstatedir@,$localstatedir,;t t
21330s,@libdir@,$libdir,;t t
21331s,@includedir@,$includedir,;t t
21332s,@oldincludedir@,$oldincludedir,;t t
21333s,@infodir@,$infodir,;t t
21334s,@mandir@,$mandir,;t t
21335s,@build_alias@,$build_alias,;t t
21336s,@host_alias@,$host_alias,;t t
21337s,@target_alias@,$target_alias,;t t
21338s,@DEFS@,$DEFS,;t t
21339s,@ECHO_C@,$ECHO_C,;t t
21340s,@ECHO_N@,$ECHO_N,;t t
21341s,@ECHO_T@,$ECHO_T,;t t
21342s,@LIBS@,$LIBS,;t t
21343s,@build@,$build,;t t
21344s,@build_cpu@,$build_cpu,;t t
21345s,@build_vendor@,$build_vendor,;t t
21346s,@build_os@,$build_os,;t t
21347s,@host@,$host,;t t
21348s,@host_cpu@,$host_cpu,;t t
21349s,@host_vendor@,$host_vendor,;t t
21350s,@host_os@,$host_os,;t t
21351s,@target@,$target,;t t
21352s,@target_cpu@,$target_cpu,;t t
21353s,@target_vendor@,$target_vendor,;t t
21354s,@target_os@,$target_os,;t t
21355s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21356s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21357s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21358s,@PACKAGE@,$PACKAGE,;t t
21359s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021360s,@ACLOCAL@,$ACLOCAL,;t t
21361s,@AUTOCONF@,$AUTOCONF,;t t
21362s,@AUTOMAKE@,$AUTOMAKE,;t t
21363s,@AUTOHEADER@,$AUTOHEADER,;t t
21364s,@MAKEINFO@,$MAKEINFO,;t t
21365s,@AMTAR@,$AMTAR,;t t
21366s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021367s,@STRIP@,$STRIP,;t t
21368s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021369s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21370s,@AWK@,$AWK,;t t
21371s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021372s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21373s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21374s,@MAINT@,$MAINT,;t t
21375s,@CC@,$CC,;t t
21376s,@CFLAGS@,$CFLAGS,;t t
21377s,@LDFLAGS@,$LDFLAGS,;t t
21378s,@CPPFLAGS@,$CPPFLAGS,;t t
21379s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021380s,@EXEEXT@,$EXEEXT,;t t
21381s,@OBJEXT@,$OBJEXT,;t t
21382s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021383s,@am__include@,$am__include,;t t
21384s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021385s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21386s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21387s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021388s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000021389s,@CXX@,$CXX,;t t
21390s,@CXXFLAGS@,$CXXFLAGS,;t t
21391s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21392s,@CXXDEPMODE@,$CXXDEPMODE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021393s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021394s,@LN_S@,$LN_S,;t t
21395s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021396s,@AR@,$AR,;t t
21397s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021398s,@RANLIB@,$RANLIB,;t t
21399s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021400s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000021401s,@CXXCPP@,$CXXCPP,;t t
21402s,@F77@,$F77,;t t
21403s,@FFLAGS@,$FFLAGS,;t t
21404s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000021405s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021406s,@CCAS@,$CCAS,;t t
21407s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000021408s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021409s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
21410s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
21411s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
21412s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000021413s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
21414s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021415s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
21416s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000021417s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
21418s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000021419s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
21420s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidm542e0262004-05-05 01:58:44 +000021421s,@build_arch@,$build_arch,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021422s,@arch@,$arch,;t t
21423s,@ARCH@,$ARCH,;t t
hp.com!davidm2de17682004-04-20 16:53:44 +000021424s,@LDFLAGS_STATIC_LIBCXA@,$LDFLAGS_STATIC_LIBCXA,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021425s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21426CEOF
21427
21428_ACEOF
21429
21430 cat >>$CONFIG_STATUS <<\_ACEOF
21431 # Split the substitutions into bite-sized pieces for seds with
21432 # small command number limits, like on Digital OSF/1 and HP-UX.
21433 ac_max_sed_lines=48
21434 ac_sed_frag=1 # Number of current file.
21435 ac_beg=1 # First line for current file.
21436 ac_end=$ac_max_sed_lines # Line after last line for current file.
21437 ac_more_lines=:
21438 ac_sed_cmds=
21439 while $ac_more_lines; do
21440 if test $ac_beg -gt 1; then
21441 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21442 else
21443 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21444 fi
21445 if test ! -s $tmp/subs.frag; then
21446 ac_more_lines=false
21447 else
21448 # The purpose of the label and of the branching condition is to
21449 # speed up the sed processing (if there are no `@' at all, there
21450 # is no need to browse any of the substitutions).
21451 # These are the two extra sed commands mentioned above.
21452 (echo ':t
21453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21454 if test -z "$ac_sed_cmds"; then
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021455 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021456 else
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021457 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021458 fi
21459 ac_sed_frag=`expr $ac_sed_frag + 1`
21460 ac_beg=$ac_end
21461 ac_end=`expr $ac_end + $ac_max_sed_lines`
21462 fi
21463 done
21464 if test -z "$ac_sed_cmds"; then
21465 ac_sed_cmds=cat
21466 fi
21467fi # test -n "$CONFIG_FILES"
21468
21469_ACEOF
21470cat >>$CONFIG_STATUS <<\_ACEOF
21471for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21473 case $ac_file in
21474 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021475 cat >$tmp/stdin
21476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021480 * ) ac_file_in=$ac_file.in ;;
21481 esac
21482
21483 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21484 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021486 X"$ac_file" : 'X\(//\)[^/]' \| \
21487 X"$ac_file" : 'X\(//\)$' \| \
21488 X"$ac_file" : 'X\(/\)' \| \
21489 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021490echo X"$ac_file" |
21491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21493 /^X\(\/\/\)$/{ s//\1/; q; }
21494 /^X\(\/\).*/{ s//\1/; q; }
21495 s/.*/./; q'`
21496 { if $as_mkdir_p; then
21497 mkdir -p "$ac_dir"
21498 else
21499 as_dir="$ac_dir"
21500 as_dirs=
21501 while test ! -d "$as_dir"; do
21502 as_dirs="$as_dir $as_dirs"
21503 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021505 X"$as_dir" : 'X\(//\)[^/]' \| \
21506 X"$as_dir" : 'X\(//\)$' \| \
21507 X"$as_dir" : 'X\(/\)' \| \
21508 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021509echo X"$as_dir" |
21510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21512 /^X\(\/\/\)$/{ s//\1/; q; }
21513 /^X\(\/\).*/{ s//\1/; q; }
21514 s/.*/./; q'`
21515 done
21516 test ! -n "$as_dirs" || mkdir $as_dirs
21517 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21518echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21519 { (exit 1); exit 1; }; }; }
21520
21521 ac_builddir=.
21522
21523if test "$ac_dir" != .; then
21524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21525 # A "../" for each directory in $ac_dir_suffix.
21526 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21527else
21528 ac_dir_suffix= ac_top_builddir=
21529fi
21530
21531case $srcdir in
21532 .) # No --srcdir option. We are building in place.
21533 ac_srcdir=.
21534 if test -z "$ac_top_builddir"; then
21535 ac_top_srcdir=.
21536 else
21537 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21538 fi ;;
21539 [\\/]* | ?:[\\/]* ) # Absolute path.
21540 ac_srcdir=$srcdir$ac_dir_suffix;
21541 ac_top_srcdir=$srcdir ;;
21542 *) # Relative path.
21543 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21544 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21545esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021546
21547# Do not use `cd foo && pwd` to compute absolute paths, because
21548# the directories may not exist.
21549case `pwd` in
21550.) ac_abs_builddir="$ac_dir";;
21551*)
21552 case "$ac_dir" in
21553 .) ac_abs_builddir=`pwd`;;
21554 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21555 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21556 esac;;
21557esac
21558case $ac_abs_builddir in
21559.) ac_abs_top_builddir=${ac_top_builddir}.;;
21560*)
21561 case ${ac_top_builddir}. in
21562 .) ac_abs_top_builddir=$ac_abs_builddir;;
21563 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21564 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21565 esac;;
21566esac
21567case $ac_abs_builddir in
21568.) ac_abs_srcdir=$ac_srcdir;;
21569*)
21570 case $ac_srcdir in
21571 .) ac_abs_srcdir=$ac_abs_builddir;;
21572 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21573 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21574 esac;;
21575esac
21576case $ac_abs_builddir in
21577.) ac_abs_top_srcdir=$ac_top_srcdir;;
21578*)
21579 case $ac_top_srcdir in
21580 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21581 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21582 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21583 esac;;
21584esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021585
21586
21587 case $INSTALL in
21588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21589 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21590 esac
21591
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021592 # Let's still pretend it is `configure' which instantiates (i.e., don't
21593 # use $as_me), people would be surprised to read:
21594 # /* config.h. Generated by config.status. */
21595 if test x"$ac_file" = x-; then
21596 configure_input=
21597 else
21598 configure_input="$ac_file. "
21599 fi
21600 configure_input=$configure_input"Generated from `echo $ac_file_in |
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021601 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021602
21603 # First look for the input files in the build tree, otherwise in the
21604 # src tree.
21605 ac_file_inputs=`IFS=:
21606 for f in $ac_file_in; do
21607 case $f in
21608 -) echo $tmp/stdin ;;
21609 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021610 # Absolute (can't be DOS-style, as IFS=:)
21611 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021612echo "$as_me: error: cannot find input file: $f" >&2;}
21613 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021614 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021615 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021616 if test -f "$f"; then
21617 # Build tree
21618 echo "$f"
21619 elif test -f "$srcdir/$f"; then
21620 # Source tree
21621 echo "$srcdir/$f"
21622 else
21623 # /dev/null tree
21624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021625echo "$as_me: error: cannot find input file: $f" >&2;}
21626 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021627 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021628 esac
21629 done` || { (exit 1); exit 1; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021630
21631 if test x"$ac_file" != x-; then
21632 { echo "$as_me:$LINENO: creating $ac_file" >&5
21633echo "$as_me: creating $ac_file" >&6;}
21634 rm -f "$ac_file"
21635 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021636_ACEOF
21637cat >>$CONFIG_STATUS <<_ACEOF
21638 sed "$ac_vpsub
21639$extrasub
21640_ACEOF
21641cat >>$CONFIG_STATUS <<\_ACEOF
21642:t
21643/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21644s,@configure_input@,$configure_input,;t t
21645s,@srcdir@,$ac_srcdir,;t t
21646s,@abs_srcdir@,$ac_abs_srcdir,;t t
21647s,@top_srcdir@,$ac_top_srcdir,;t t
21648s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21649s,@builddir@,$ac_builddir,;t t
21650s,@abs_builddir@,$ac_abs_builddir,;t t
21651s,@top_builddir@,$ac_top_builddir,;t t
21652s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21653s,@INSTALL@,$ac_INSTALL,;t t
21654" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21655 rm -f $tmp/stdin
21656 if test x"$ac_file" != x-; then
21657 mv $tmp/out $ac_file
21658 else
21659 cat $tmp/out
21660 rm -f $tmp/out
21661 fi
21662
21663done
21664_ACEOF
21665cat >>$CONFIG_STATUS <<\_ACEOF
21666
21667#
21668# CONFIG_HEADER section.
21669#
21670
21671# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21672# NAME is the cpp macro being defined and VALUE is the value it is being given.
21673#
21674# ac_d sets the value in "#define NAME VALUE" lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021675ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21676ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021677ac_dC=' '
21678ac_dD=',;t'
21679# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021680ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021681ac_uB='$,\1#\2define\3'
21682ac_uC=' '
21683ac_uD=',;t'
21684
21685for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21686 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21687 case $ac_file in
21688 - | *:- | *:-:* ) # input from stdin
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021689 cat >$tmp/stdin
21690 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021692 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021693 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021694 * ) ac_file_in=$ac_file.in ;;
21695 esac
21696
21697 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21698echo "$as_me: creating $ac_file" >&6;}
21699
21700 # First look for the input files in the build tree, otherwise in the
21701 # src tree.
21702 ac_file_inputs=`IFS=:
21703 for f in $ac_file_in; do
21704 case $f in
21705 -) echo $tmp/stdin ;;
21706 [\\/$]*)
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021707 # Absolute (can't be DOS-style, as IFS=:)
21708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021709echo "$as_me: error: cannot find input file: $f" >&2;}
21710 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021711 # Do quote $f, to prevent DOS paths from being IFS'd.
21712 echo "$f";;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021713 *) # Relative
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021714 if test -f "$f"; then
21715 # Build tree
21716 echo "$f"
21717 elif test -f "$srcdir/$f"; then
21718 # Source tree
21719 echo "$srcdir/$f"
21720 else
21721 # /dev/null tree
21722 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021723echo "$as_me: error: cannot find input file: $f" >&2;}
21724 { (exit 1); exit 1; }; }
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021725 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021726 esac
21727 done` || { (exit 1); exit 1; }
21728 # Remove the trailing spaces.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021729 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021730
21731_ACEOF
21732
21733# Transform confdefs.h into two sed scripts, `conftest.defines' and
21734# `conftest.undefs', that substitutes the proper values into
21735# config.h.in to produce config.h. The first handles `#define'
21736# templates, and the second `#undef' templates.
21737# And first: Protect against being on the right side of a sed subst in
21738# config.status. Protect against being in an unquoted here document
21739# in config.status.
21740rm -f conftest.defines conftest.undefs
21741# Using a here document instead of a string reduces the quoting nightmare.
21742# Putting comments in sed scripts is not portable.
21743#
21744# `end' is used to avoid that the second main sed command (meant for
21745# 0-ary CPP macros) applies to n-ary macro definitions.
21746# See the Autoconf documentation for `clear'.
21747cat >confdef2sed.sed <<\_ACEOF
21748s/[\\&,]/\\&/g
21749s,[\\$`],\\&,g
21750t clear
21751: clear
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021752s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021753t end
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021754s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021755: end
21756_ACEOF
21757# If some macros were called several times there might be several times
21758# the same #defines, which is useless. Nevertheless, we may not want to
21759# sort them, since we want the *last* AC-DEFINE to be honored.
21760uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21761sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21762rm -f confdef2sed.sed
21763
21764# This sed command replaces #undef with comments. This is necessary, for
21765# example, in the case of _POSIX_SOURCE, which is predefined and required
21766# on some systems where configure will not decide to define it.
21767cat >>conftest.undefs <<\_ACEOF
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021768s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021769_ACEOF
21770
21771# Break up conftest.defines because some shells have a limit on the size
21772# of here documents, and old seds have small limits too (100 cmds).
21773echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021774echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021775echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21776echo ' :' >>$CONFIG_STATUS
21777rm -f conftest.tail
21778while grep . conftest.defines >/dev/null
21779do
21780 # Write a limited-size here document to $tmp/defines.sed.
21781 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21782 # Speed up: don't consider the non `#define' lines.
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021783 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021784 # Work around the forget-to-reset-the-flag bug.
21785 echo 't clr' >>$CONFIG_STATUS
21786 echo ': clr' >>$CONFIG_STATUS
21787 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21788 echo 'CEOF
21789 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21790 rm -f $tmp/in
21791 mv $tmp/out $tmp/in
21792' >>$CONFIG_STATUS
21793 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21794 rm -f conftest.defines
21795 mv conftest.tail conftest.defines
21796done
21797rm -f conftest.defines
21798echo ' fi # grep' >>$CONFIG_STATUS
21799echo >>$CONFIG_STATUS
21800
21801# Break up conftest.undefs because some shells have a limit on the size
21802# of here documents, and old seds have small limits too (100 cmds).
21803echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21804rm -f conftest.tail
21805while grep . conftest.undefs >/dev/null
21806do
21807 # Write a limited-size here document to $tmp/undefs.sed.
21808 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21809 # Speed up: don't consider the non `#undef'
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021810 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021811 # Work around the forget-to-reset-the-flag bug.
21812 echo 't clr' >>$CONFIG_STATUS
21813 echo ': clr' >>$CONFIG_STATUS
21814 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21815 echo 'CEOF
21816 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21817 rm -f $tmp/in
21818 mv $tmp/out $tmp/in
21819' >>$CONFIG_STATUS
21820 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21821 rm -f conftest.undefs
21822 mv conftest.tail conftest.undefs
21823done
21824rm -f conftest.undefs
21825
21826cat >>$CONFIG_STATUS <<\_ACEOF
21827 # Let's still pretend it is `configure' which instantiates (i.e., don't
21828 # use $as_me), people would be surprised to read:
21829 # /* config.h. Generated by config.status. */
21830 if test x"$ac_file" = x-; then
21831 echo "/* Generated by configure. */" >$tmp/config.h
21832 else
21833 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21834 fi
21835 cat $tmp/in >>$tmp/config.h
21836 rm -f $tmp/in
21837 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021838 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021839 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21840echo "$as_me: $ac_file is unchanged" >&6;}
21841 else
21842 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21843$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021844 X"$ac_file" : 'X\(//\)[^/]' \| \
21845 X"$ac_file" : 'X\(//\)$' \| \
21846 X"$ac_file" : 'X\(/\)' \| \
21847 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021848echo X"$ac_file" |
21849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21851 /^X\(\/\/\)$/{ s//\1/; q; }
21852 /^X\(\/\).*/{ s//\1/; q; }
21853 s/.*/./; q'`
21854 { if $as_mkdir_p; then
21855 mkdir -p "$ac_dir"
21856 else
21857 as_dir="$ac_dir"
21858 as_dirs=
21859 while test ! -d "$as_dir"; do
21860 as_dirs="$as_dir $as_dirs"
21861 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21862$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021863 X"$as_dir" : 'X\(//\)[^/]' \| \
21864 X"$as_dir" : 'X\(//\)$' \| \
21865 X"$as_dir" : 'X\(/\)' \| \
21866 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021867echo X"$as_dir" |
21868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21870 /^X\(\/\/\)$/{ s//\1/; q; }
21871 /^X\(\/\).*/{ s//\1/; q; }
21872 s/.*/./; q'`
21873 done
21874 test ! -n "$as_dirs" || mkdir $as_dirs
21875 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21876echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21877 { (exit 1); exit 1; }; }; }
21878
21879 rm -f $ac_file
21880 mv $tmp/config.h $ac_file
21881 fi
21882 else
21883 cat $tmp/config.h
21884 rm -f $tmp/config.h
21885 fi
21886 # Run the commands associated with the file.
21887 case $ac_file in
21888 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021889echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021890 ;;
21891 esac
21892done
21893_ACEOF
21894cat >>$CONFIG_STATUS <<\_ACEOF
21895
21896#
21897# CONFIG_LINKS section.
21898#
21899
21900for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21901 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21902 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21903
21904 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21905echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21906
21907 if test ! -r $srcdir/$ac_source; then
21908 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21909echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21910 { (exit 1); exit 1; }; }
21911 fi
21912 rm -f $ac_dest
21913
21914 # Make relative symlinks.
21915 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21916$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021917 X"$ac_dest" : 'X\(//\)[^/]' \| \
21918 X"$ac_dest" : 'X\(//\)$' \| \
21919 X"$ac_dest" : 'X\(/\)' \| \
21920 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021921echo X"$ac_dest" |
21922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21923 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21924 /^X\(\/\/\)$/{ s//\1/; q; }
21925 /^X\(\/\).*/{ s//\1/; q; }
21926 s/.*/./; q'`
21927 { if $as_mkdir_p; then
21928 mkdir -p "$ac_dest_dir"
21929 else
21930 as_dir="$ac_dest_dir"
21931 as_dirs=
21932 while test ! -d "$as_dir"; do
21933 as_dirs="$as_dir $as_dirs"
21934 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021936 X"$as_dir" : 'X\(//\)[^/]' \| \
21937 X"$as_dir" : 'X\(//\)$' \| \
21938 X"$as_dir" : 'X\(/\)' \| \
21939 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021940echo X"$as_dir" |
21941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21943 /^X\(\/\/\)$/{ s//\1/; q; }
21944 /^X\(\/\).*/{ s//\1/; q; }
21945 s/.*/./; q'`
21946 done
21947 test ! -n "$as_dirs" || mkdir $as_dirs
21948 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21949echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21950 { (exit 1); exit 1; }; }; }
21951
21952 ac_builddir=.
21953
21954if test "$ac_dest_dir" != .; then
21955 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21956 # A "../" for each directory in $ac_dir_suffix.
21957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21958else
21959 ac_dir_suffix= ac_top_builddir=
21960fi
21961
21962case $srcdir in
21963 .) # No --srcdir option. We are building in place.
21964 ac_srcdir=.
21965 if test -z "$ac_top_builddir"; then
21966 ac_top_srcdir=.
21967 else
21968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21969 fi ;;
21970 [\\/]* | ?:[\\/]* ) # Absolute path.
21971 ac_srcdir=$srcdir$ac_dir_suffix;
21972 ac_top_srcdir=$srcdir ;;
21973 *) # Relative path.
21974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21976esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000021977
21978# Do not use `cd foo && pwd` to compute absolute paths, because
21979# the directories may not exist.
21980case `pwd` in
21981.) ac_abs_builddir="$ac_dest_dir";;
21982*)
21983 case "$ac_dest_dir" in
21984 .) ac_abs_builddir=`pwd`;;
21985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
21986 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
21987 esac;;
21988esac
21989case $ac_abs_builddir in
21990.) ac_abs_top_builddir=${ac_top_builddir}.;;
21991*)
21992 case ${ac_top_builddir}. in
21993 .) ac_abs_top_builddir=$ac_abs_builddir;;
21994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21996 esac;;
21997esac
21998case $ac_abs_builddir in
21999.) ac_abs_srcdir=$ac_srcdir;;
22000*)
22001 case $ac_srcdir in
22002 .) ac_abs_srcdir=$ac_abs_builddir;;
22003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22005 esac;;
22006esac
22007case $ac_abs_builddir in
22008.) ac_abs_top_srcdir=$ac_top_srcdir;;
22009*)
22010 case $ac_top_srcdir in
22011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22014 esac;;
22015esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022016
22017
22018 case $srcdir in
22019 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22020 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22021 esac
22022
22023 # Try a symlink, then a hard link, then a copy.
22024 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22025 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22026 cp -p $srcdir/$ac_source $ac_dest ||
22027 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22028echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22029 { (exit 1); exit 1; }; }
22030done
22031_ACEOF
22032cat >>$CONFIG_STATUS <<\_ACEOF
22033
22034#
22035# CONFIG_COMMANDS section.
22036#
22037for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22040 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22041$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022042 X"$ac_dest" : 'X\(//\)[^/]' \| \
22043 X"$ac_dest" : 'X\(//\)$' \| \
22044 X"$ac_dest" : 'X\(/\)' \| \
22045 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022046echo X"$ac_dest" |
22047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22049 /^X\(\/\/\)$/{ s//\1/; q; }
22050 /^X\(\/\).*/{ s//\1/; q; }
22051 s/.*/./; q'`
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022052 { if $as_mkdir_p; then
22053 mkdir -p "$ac_dir"
22054 else
22055 as_dir="$ac_dir"
22056 as_dirs=
22057 while test ! -d "$as_dir"; do
22058 as_dirs="$as_dir $as_dirs"
22059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$as_dir" : 'X\(//\)[^/]' \| \
22062 X"$as_dir" : 'X\(//\)$' \| \
22063 X"$as_dir" : 'X\(/\)' \| \
22064 . : '\(.\)' 2>/dev/null ||
22065echo X"$as_dir" |
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22068 /^X\(\/\/\)$/{ s//\1/; q; }
22069 /^X\(\/\).*/{ s//\1/; q; }
22070 s/.*/./; q'`
22071 done
22072 test ! -n "$as_dirs" || mkdir $as_dirs
22073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22074echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22075 { (exit 1); exit 1; }; }; }
22076
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022077 ac_builddir=.
22078
22079if test "$ac_dir" != .; then
22080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22081 # A "../" for each directory in $ac_dir_suffix.
22082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22083else
22084 ac_dir_suffix= ac_top_builddir=
22085fi
22086
22087case $srcdir in
22088 .) # No --srcdir option. We are building in place.
22089 ac_srcdir=.
22090 if test -z "$ac_top_builddir"; then
22091 ac_top_srcdir=.
22092 else
22093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22094 fi ;;
22095 [\\/]* | ?:[\\/]* ) # Absolute path.
22096 ac_srcdir=$srcdir$ac_dir_suffix;
22097 ac_top_srcdir=$srcdir ;;
22098 *) # Relative path.
22099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22101esac
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022102
22103# Do not use `cd foo && pwd` to compute absolute paths, because
22104# the directories may not exist.
22105case `pwd` in
22106.) ac_abs_builddir="$ac_dir";;
22107*)
22108 case "$ac_dir" in
22109 .) ac_abs_builddir=`pwd`;;
22110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22112 esac;;
22113esac
22114case $ac_abs_builddir in
22115.) ac_abs_top_builddir=${ac_top_builddir}.;;
22116*)
22117 case ${ac_top_builddir}. in
22118 .) ac_abs_top_builddir=$ac_abs_builddir;;
22119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22121 esac;;
22122esac
22123case $ac_abs_builddir in
22124.) ac_abs_srcdir=$ac_srcdir;;
22125*)
22126 case $ac_srcdir in
22127 .) ac_abs_srcdir=$ac_abs_builddir;;
22128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22130 esac;;
22131esac
22132case $ac_abs_builddir in
22133.) ac_abs_top_srcdir=$ac_top_srcdir;;
22134*)
22135 case $ac_top_srcdir in
22136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22139 esac;;
22140esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022141
22142
22143 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22144echo "$as_me: executing $ac_dest commands" >&6;}
22145 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022146 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22147 # Strip MF so we end up with the name of the file.
22148 mf=`echo "$mf" | sed -e 's/:.*$//'`
22149 # Check whether this is an Automake generated Makefile or not.
22150 # We used to match only the files named `Makefile.in', but
22151 # some people rename them; so instead we look at the file content.
22152 # Grep'ing the first line is not enough: some people post-process
22153 # each Makefile.in and add a new line on top of each file to say so.
22154 # So let's grep whole file.
22155 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22156 dirpart=`(dirname "$mf") 2>/dev/null ||
22157$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022158 X"$mf" : 'X\(//\)[^/]' \| \
22159 X"$mf" : 'X\(//\)$' \| \
22160 X"$mf" : 'X\(/\)' \| \
22161 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022162echo X"$mf" |
22163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22165 /^X\(\/\/\)$/{ s//\1/; q; }
22166 /^X\(\/\).*/{ s//\1/; q; }
22167 s/.*/./; q'`
22168 else
22169 continue
22170 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022171 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22172 # Extract the definition of DEP_FILES from the Makefile without
22173 # running `make'.
22174 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22175 test -z "$DEPDIR" && continue
22176 # When using ansi2knr, U may be empty or an underscore; expand it
22177 U=`sed -n -e '/^U = / s///p' < "$mf"`
22178 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22179 # We invoke sed twice because it is the simplest approach to
22180 # changing $(DEPDIR) to its actual value in the expansion.
22181 for file in `sed -n -e '
22182 /^DEP_FILES = .*\\\\$/ {
22183 s/^DEP_FILES = //
22184 :loop
22185 s/\\\\$//
22186 p
22187 n
22188 /\\\\$/ b loop
22189 p
22190 }
22191 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22192 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22193 # Make sure the directory exists.
22194 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022195 fdir=`(dirname "$file") 2>/dev/null ||
22196$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022197 X"$file" : 'X\(//\)[^/]' \| \
22198 X"$file" : 'X\(//\)$' \| \
22199 X"$file" : 'X\(/\)' \| \
22200 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022201echo X"$file" |
22202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22204 /^X\(\/\/\)$/{ s//\1/; q; }
22205 /^X\(\/\).*/{ s//\1/; q; }
22206 s/.*/./; q'`
22207 { if $as_mkdir_p; then
22208 mkdir -p $dirpart/$fdir
22209 else
22210 as_dir=$dirpart/$fdir
22211 as_dirs=
22212 while test ! -d "$as_dir"; do
22213 as_dirs="$as_dir $as_dirs"
22214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidmc325d9c2004-01-24 06:45:18 +000022216 X"$as_dir" : 'X\(//\)[^/]' \| \
22217 X"$as_dir" : 'X\(//\)$' \| \
22218 X"$as_dir" : 'X\(/\)' \| \
22219 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000022220echo X"$as_dir" |
22221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22223 /^X\(\/\/\)$/{ s//\1/; q; }
22224 /^X\(\/\).*/{ s//\1/; q; }
22225 s/.*/./; q'`
22226 done
22227 test ! -n "$as_dirs" || mkdir $as_dirs
22228 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22229echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22230 { (exit 1); exit 1; }; }; }
22231
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022232 # echo "creating $dirpart/$file"
22233 echo '# dummy' > "$dirpart/$file"
22234 done
22235done
22236 ;;
22237 esac
22238done
22239_ACEOF
22240
22241cat >>$CONFIG_STATUS <<\_ACEOF
22242
22243{ (exit 0); exit 0; }
22244_ACEOF
22245chmod +x $CONFIG_STATUS
22246ac_clean_files=$ac_clean_files_save
22247
22248
22249# configure is writing to config.log, and then calls config.status.
22250# config.status does its own redirection, appending to config.log.
22251# Unfortunately, on DOS this fails, as config.log is still kept open
22252# by configure, so config.status won't be able to write to it; its
22253# output is simply discarded. So we exec the FD to /dev/null,
22254# effectively closing config.log, so it can be properly (re)opened and
22255# appended to by config.status. When coming back to configure, we
22256# need to make the FD available again.
22257if test "$no_create" != yes; then
22258 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022259 ac_config_status_args=
22260 test "$silent" = yes &&
22261 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022262 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000022263 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000022264 exec 5>>config.log
22265 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22266 # would make configure fail if this is the last instruction.
22267 $ac_cs_success || { (exit 1); exit 1; }
22268fi
22269