blob: fb5d8f81c37829b3c57aac82a5ff144a3bb54888 [file] [log] [blame]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
mostang.com!davidm046362a2003-12-05 06:42:28 +00003# Generated by GNU Autoconf 2.57 for libunwind 0.96.
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!davidm046362a2003-12-05 06:42:28 +00007# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
mostang.com!davidm046362a2003-12-05 06:42:28 +000027if (FOO=FOO; unset FOO) >/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!davidm046362a2003-12-05 06:42:28 +000046 if (set +x; test -n "`(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
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
mostang.com!davidm046362a2003-12-05 06:42:28 +0000229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000230
231# Sed expression to map a string onto a valid variable name.
mostang.com!davidm046362a2003-12-05 06:42:28 +0000232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000275$*
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000310 for dir in $PATH /usr/ucb; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000311 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000320 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000394
395tagnames=${tagnames+${tagnames},}CXX
396
397tagnames=${tagnames+${tagnames},}F77
398
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
410ac_config_libobj_dir=.
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000423PACKAGE_NAME='libunwind'
424PACKAGE_TARNAME='libunwind'
mostang.com!davidm046362a2003-12-05 06:42:28 +0000425PACKAGE_VERSION='0.96'
426PACKAGE_STRING='libunwind 0.96'
hp.com!davidmb1d369a2003-11-26 18:59:24 +0000427PACKAGE_BUGREPORT='libunwind@linux.hpl.hp.com'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000428
429ac_unique_file="src/backtrace.c"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000467ac_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 arch ARCH LTLIBOBJS'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
mostang.com!davidm046362a2003-12-05 06:42:28 +0000826 localstatedir libdir includedir oldincludedir infodir mandir
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +0000866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
mostang.com!davidm4f17bce2003-03-28 07:43:22 +0000924ac_env_CXX_set=${CXX+set}
925ac_env_CXX_value=$CXX
926ac_cv_env_CXX_set=${CXX+set}
927ac_cv_env_CXX_value=$CXX
928ac_env_CXXFLAGS_set=${CXXFLAGS+set}
929ac_env_CXXFLAGS_value=$CXXFLAGS
930ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_cv_env_CXXFLAGS_value=$CXXFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
hp.com!davidmc3fa0b62003-11-24 21:37:22 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +0000956\`configure' configures libunwind 0.96 to adapt to many kinds of systems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
mostang.com!davidm046362a2003-12-05 06:42:28 +0000981 [$ac_default_prefix]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
mostang.com!davidm046362a2003-12-05 06:42:28 +0000983 [PREFIX]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +0000984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013
1014System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001022 case $ac_init_help in
mostang.com!davidm046362a2003-12-05 06:42:28 +00001023 short | recursive ) echo "Configuration of libunwind 0.96:";;
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001024 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001025 cat <<\_ACEOF
1026
1027Optional Features:
1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001030 --enable-maintainer-mode enable make rules and dependencies not useful
1031 (and sometimes confusing) to the casual installer
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001032 --disable-dependency-tracking Speeds up one-time builds
1033 --enable-dependency-tracking Do not reject slow dependency extractors
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-debug turn on debug support (slows down execution)
1042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001051
1052Some influential environment variables:
1053 CC C compiler command
1054 CFLAGS C compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00001059 CXX C++ compiler command
1060 CXXFLAGS C++ compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001061 CPP C preprocessor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001065
1066Use these variables to override the choices made by `configure' or to help
1067it to find libraries and programs with nonstandard names/locations.
1068
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001069Report bugs to <libunwind@linux.hpl.hp.com>.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085 ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
mostang.com!davidm046362a2003-12-05 06:42:28 +00001103# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1104# absolute.
1105ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1106ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1107ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1108ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
mostang.com!davidm046362a2003-12-05 06:42:28 +00001119 test -f $ac_srcdir/configure.in; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001125 cd "$ac_popdir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00001132libunwind configure 0.96
1133generated by GNU Autoconf 2.57
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001134
mostang.com!davidm046362a2003-12-05 06:42:28 +00001135Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1136Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
1146
mostang.com!davidm046362a2003-12-05 06:42:28 +00001147It was created by libunwind $as_me 0.96, which was
1148generated by GNU Autoconf 2.57. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001149
1150 $ $0 $@
1151
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
1185
1186} >&5
1187
1188cat >&5 <<_ACEOF
1189
1190
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001200# Strip out --silent because we don't want to record it for future runs.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001201# Also quote any args containing shell meta-characters.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001202# Make two passes to allow for proper duplicate-argument suppression.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001203ac_configure_args=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001204ac_configure_args0=
1205ac_configure_args1=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001206ac_sep=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001207ac_must_keep_next=false
1208for ac_pass in 1 2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001209do
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
mostang.com!davidm046362a2003-12-05 06:42:28 +00001225 ac_must_keep_next=false # Got value, back to normal.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001226 else
mostang.com!davidm046362a2003-12-05 06:42:28 +00001227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001245done
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$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 +00001248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
1258
1259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
mostang.com!davidm046362a2003-12-05 06:42:28 +00001271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001273 ;;
1274 *)
1275 sed -n \
mostang.com!davidm046362a2003-12-05 06:42:28 +00001276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001277 ;;
1278 esac;
1279}
1280 echo
1281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
mostang.com!davidm046362a2003-12-05 06:42:28 +00001305 echo "$ac_var='"'"'$ac_val'"'"'"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001306 done | sort
1307 echo
1308 fi
1309
1310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
1317 sed "/^$/d" confdefs.h | sort
1318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00001324 rm -f core *.core &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
mostang.com!davidm046362a2003-12-05 06:42:28 +00001404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
mostang.com!davidm046362a2003-12-05 06:42:28 +00001421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00001423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001424echo "$as_me: former value: $ac_old_val" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00001425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001426echo "$as_me: current value: $ac_new_val" >&2;}
mostang.com!davidm046362a2003-12-05 06:42:28 +00001427 ac_cache_corrupted=:
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442done
1443if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
hp.com!davidmb1d369a2003-11-26 18:59:24 +00001475
1476
1477
1478
1479
1480
1481
1482
1483
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001484ac_aux_dir=
1485for ac_dir in aux $srcdir/aux; do
1486 if test -f $ac_dir/install-sh; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/install-sh -c"
1489 break
1490 elif test -f $ac_dir/install.sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install.sh -c"
1493 break
1494 elif test -f $ac_dir/shtool; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/shtool install -c"
1497 break
1498 fi
1499done
1500if test -z "$ac_aux_dir"; then
1501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1502echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1503 { (exit 1); exit 1; }; }
1504fi
1505ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1508
1509# Make sure we can run config.sub.
1510$ac_config_sub sun4 >/dev/null 2>&1 ||
1511 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1512echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1513 { (exit 1); exit 1; }; }
1514
1515echo "$as_me:$LINENO: checking build system type" >&5
1516echo $ECHO_N "checking build system type... $ECHO_C" >&6
1517if test "${ac_cv_build+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1519else
1520 ac_cv_build_alias=$build_alias
1521test -z "$ac_cv_build_alias" &&
1522 ac_cv_build_alias=`$ac_config_guess`
1523test -z "$ac_cv_build_alias" &&
1524 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1525echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1526 { (exit 1); exit 1; }; }
1527ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1529echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532fi
1533echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1534echo "${ECHO_T}$ac_cv_build" >&6
1535build=$ac_cv_build
1536build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1537build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1538build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1539
1540
1541echo "$as_me:$LINENO: checking host system type" >&5
1542echo $ECHO_N "checking host system type... $ECHO_C" >&6
1543if test "${ac_cv_host+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1545else
1546 ac_cv_host_alias=$host_alias
1547test -z "$ac_cv_host_alias" &&
1548 ac_cv_host_alias=$ac_cv_build_alias
1549ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1550 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1551echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1552 { (exit 1); exit 1; }; }
1553
1554fi
1555echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1556echo "${ECHO_T}$ac_cv_host" >&6
1557host=$ac_cv_host
1558host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563echo "$as_me:$LINENO: checking target system type" >&5
1564echo $ECHO_N "checking target system type... $ECHO_C" >&6
1565if test "${ac_cv_target+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 ac_cv_target_alias=$target_alias
1569test "x$ac_cv_target_alias" = "x" &&
1570 ac_cv_target_alias=$ac_cv_host_alias
1571ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576fi
1577echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1578echo "${ECHO_T}$ac_cv_target" >&6
1579target=$ac_cv_target
1580target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585# The aliases save the names the user supplied, while $host etc.
1586# will get canonicalized.
1587test -n "$target_alias" &&
1588 test "$program_prefix$program_suffix$program_transform_name" = \
1589 NONENONEs,x,x, &&
1590 program_prefix=${target_alias}-
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001591am__api_version="1.6"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001592# Find a good install program. We prefer a C program (faster),
1593# so one script is as good as another. But avoid the broken or
1594# incompatible versions:
1595# SysV /etc/install, /usr/sbin/install
1596# SunOS /usr/etc/install
1597# IRIX /sbin/install
1598# AIX /bin/install
1599# AmigaOS /C/install, which installs bootblocks on floppy discs
1600# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1601# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1602# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1603# ./install, which can be erroneously created by make from ./install.sh.
1604echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1605echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1606if test -z "$INSTALL"; then
1607if test "${ac_cv_path_install+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 # Account for people who put trailing slashes in PATH elements.
1616case $as_dir/ in
1617 ./ | .// | /cC/* | \
1618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1619 /usr/ucb/* ) ;;
1620 *)
1621 # OSF1 and SCO ODT 3.0 have their own names for install.
1622 # Don't use installbsd from OSF since it installs stuff as root
1623 # by default.
1624 for ac_prog in ginstall scoinst install; do
1625 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidm046362a2003-12-05 06:42:28 +00001626 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1627 if test $ac_prog = install &&
1628 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629 # AIX install. It has an incompatible calling convention.
1630 :
1631 elif test $ac_prog = install &&
1632 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1633 # program-specific install script used by HP pwplus--don't use.
1634 :
1635 else
1636 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1637 break 3
1638 fi
1639 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001640 done
1641 done
1642 ;;
1643esac
1644done
1645
1646
1647fi
1648 if test "${ac_cv_path_install+set}" = set; then
1649 INSTALL=$ac_cv_path_install
1650 else
1651 # As a last resort, use the slow shell script. We don't cache a
1652 # path for INSTALL within a source directory, because that will
1653 # break other packages using the cache if that directory is
1654 # removed, or if the path is relative.
1655 INSTALL=$ac_install_sh
1656 fi
1657fi
1658echo "$as_me:$LINENO: result: $INSTALL" >&5
1659echo "${ECHO_T}$INSTALL" >&6
1660
1661# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1662# It thinks the first close brace ends the variable substitution.
1663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1664
1665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1666
1667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1668
1669echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1670echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1671# Just in case
1672sleep 1
1673echo timestamp > conftest.file
1674# Do `set' in a subshell so we don't clobber the current shell's
1675# arguments. Must try -L first in case configure is actually a
1676# symlink; some systems play weird games with the mod time of symlinks
1677# (eg FreeBSD returns the mod time of the symlink's containing
1678# directory).
1679if (
1680 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1681 if test "$*" = "X"; then
1682 # -L didn't work.
1683 set X `ls -t $srcdir/configure conftest.file`
1684 fi
1685 rm -f conftest.file
1686 if test "$*" != "X $srcdir/configure conftest.file" \
1687 && test "$*" != "X conftest.file $srcdir/configure"; then
1688
1689 # If neither matched, then we have a broken ls. This can happen
1690 # if, for instance, CONFIG_SHELL is bash and it inherits a
1691 # broken ls alias from the environment. This has actually
1692 # happened. Such a system could not be considered "sane".
1693 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1694alias in your environment" >&5
1695echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1696alias in your environment" >&2;}
1697 { (exit 1); exit 1; }; }
1698 fi
1699
1700 test "$2" = conftest.file
1701 )
1702then
1703 # Ok.
1704 :
1705else
1706 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1707Check your system clock" >&5
1708echo "$as_me: error: newly created file is older than distributed files!
1709Check your system clock" >&2;}
1710 { (exit 1); exit 1; }; }
1711fi
1712echo "$as_me:$LINENO: result: yes" >&5
1713echo "${ECHO_T}yes" >&6
1714test "$program_prefix" != NONE &&
1715 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1716# Use a double $ so make ignores it.
1717test "$program_suffix" != NONE &&
1718 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1719# Double any \ or $. echo might interpret backslashes.
1720# By default was `s,x,x', remove it if useless.
1721cat <<\_ACEOF >conftest.sed
1722s/[\\$]/&&/g;s/;s,x,x,$//
1723_ACEOF
1724program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1725rm conftest.sed
1726
1727
1728# expand $ac_aux_dir to an absolute path
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001729am_aux_dir=`cd $ac_aux_dir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001730
1731test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1732# Use eval to expand $SHELL
1733if eval "$MISSING --run true"; then
1734 am_missing_run="$MISSING --run "
1735else
1736 am_missing_run=
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001737 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1738echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001739fi
1740
1741for ac_prog in gawk mawk nawk awk
1742do
1743 # Extract the first word of "$ac_prog", so it can be a program name with args.
1744set dummy $ac_prog; ac_word=$2
1745echo "$as_me:$LINENO: checking for $ac_word" >&5
1746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747if test "${ac_cv_prog_AWK+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750 if test -n "$AWK"; then
1751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1752else
1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754for as_dir in $PATH
1755do
1756 IFS=$as_save_IFS
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_AWK="$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 break 2
1763 fi
1764done
1765done
1766
1767fi
1768fi
1769AWK=$ac_cv_prog_AWK
1770if test -n "$AWK"; then
1771 echo "$as_me:$LINENO: result: $AWK" >&5
1772echo "${ECHO_T}$AWK" >&6
1773else
1774 echo "$as_me:$LINENO: result: no" >&5
1775echo "${ECHO_T}no" >&6
1776fi
1777
1778 test -n "$AWK" && break
1779done
1780
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001781echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1782echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidm046362a2003-12-05 06:42:28 +00001783set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001784if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1786else
1787 cat >conftest.make <<\_ACEOF
1788all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00001789 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001790_ACEOF
1791# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1792eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1793if test -n "$ac_maketemp"; then
1794 eval ac_cv_prog_make_${ac_make}_set=yes
1795else
1796 eval ac_cv_prog_make_${ac_make}_set=no
1797fi
1798rm -f conftest.make
1799fi
1800if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1801 echo "$as_me:$LINENO: result: yes" >&5
1802echo "${ECHO_T}yes" >&6
1803 SET_MAKE=
1804else
1805 echo "$as_me:$LINENO: result: no" >&5
1806echo "${ECHO_T}no" >&6
1807 SET_MAKE="MAKE=${MAKE-make}"
1808fi
1809
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001810 # test to see if srcdir already configured
1811if test "`cd $srcdir && pwd`" != "`pwd`" &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001812 test -f $srcdir/config.status; then
1813 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1814echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1815 { (exit 1); exit 1; }; }
1816fi
1817
1818# Define the identity of the package.
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001819 PACKAGE=libunwind
mostang.com!davidm046362a2003-12-05 06:42:28 +00001820 VERSION=0.96
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001821
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE "$PACKAGE"
1825_ACEOF
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define VERSION "$VERSION"
1830_ACEOF
1831
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001832# Some tools Automake needs.
1833
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001834ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001835
1836
1837AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1838
1839
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001840AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001841
1842
1843AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1844
1845
1846MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1847
1848
1849AMTAR=${AMTAR-"${am_missing_run}tar"}
1850
1851install_sh=${install_sh-"$am_aux_dir/install-sh"}
1852
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001853# Installed binaries are usually stripped using `strip' when the user
1854# run `make install-strip'. However `strip' might not be the right
1855# tool to use in cross-compilation environments, therefore Automake
1856# will honor the `STRIP' environment variable to overrule this program.
1857if test "$cross_compiling" != no; then
1858 if test -n "$ac_tool_prefix"; then
1859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1860set dummy ${ac_tool_prefix}strip; ac_word=$2
1861echo "$as_me:$LINENO: checking for $ac_word" >&5
1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863if test "${ac_cv_prog_STRIP+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865else
1866 if test -n "$STRIP"; then
1867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1868else
1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870for as_dir in $PATH
1871do
1872 IFS=$as_save_IFS
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880done
1881done
1882
1883fi
1884fi
1885STRIP=$ac_cv_prog_STRIP
1886if test -n "$STRIP"; then
1887 echo "$as_me:$LINENO: result: $STRIP" >&5
1888echo "${ECHO_T}$STRIP" >&6
1889else
1890 echo "$as_me:$LINENO: result: no" >&5
1891echo "${ECHO_T}no" >&6
1892fi
1893
1894fi
1895if test -z "$ac_cv_prog_STRIP"; then
1896 ac_ct_STRIP=$STRIP
1897 # Extract the first word of "strip", so it can be a program name with args.
1898set dummy strip; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 if test -n "$ac_ct_STRIP"; then
1905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_ac_ct_STRIP="strip"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1917 fi
1918done
1919done
1920
1921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1922fi
1923fi
1924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1925if test -n "$ac_ct_STRIP"; then
1926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1927echo "${ECHO_T}$ac_ct_STRIP" >&6
1928else
1929 echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933 STRIP=$ac_ct_STRIP
1934else
1935 STRIP="$ac_cv_prog_STRIP"
1936fi
1937
1938fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001939INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1940
1941# We need awk for the "check" target. The system "awk" is bad on
1942# some platforms.
1943
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001944
1945
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001946echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1947echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1948 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1949if test "${enable_maintainer_mode+set}" = set; then
1950 enableval="$enable_maintainer_mode"
1951 USE_MAINTAINER_MODE=$enableval
1952else
1953 USE_MAINTAINER_MODE=no
1954fi;
1955 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1956echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1957
1958
1959if test $USE_MAINTAINER_MODE = yes; then
1960 MAINTAINER_MODE_TRUE=
1961 MAINTAINER_MODE_FALSE='#'
1962else
1963 MAINTAINER_MODE_TRUE='#'
1964 MAINTAINER_MODE_FALSE=
1965fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001966
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001967 MAINT=$MAINTAINER_MODE_TRUE
1968
1969
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00001970# Add the stamp file to the list of files AC keeps track of,
1971# along with our hook.
1972 ac_config_headers="$ac_config_headers include/config.h"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001973
1974
1975
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00001976
1977ac_ext=c
1978ac_cpp='$CPP $CPPFLAGS'
1979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982if test -n "$ac_tool_prefix"; then
1983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1984set dummy ${ac_tool_prefix}gcc; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004done
2005done
2006
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6
2013else
2014 echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018fi
2019if test -z "$ac_cv_prog_CC"; then
2020 ac_ct_CC=$CC
2021 # Extract the first word of "gcc", so it can be a program name with args.
2022set dummy gcc; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038 ac_cv_prog_ac_ct_CC="gcc"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042done
2043done
2044
2045fi
2046fi
2047ac_ct_CC=$ac_cv_prog_ac_ct_CC
2048if test -n "$ac_ct_CC"; then
2049 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2050echo "${ECHO_T}$ac_ct_CC" >&6
2051else
2052 echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056 CC=$ac_ct_CC
2057else
2058 CC="$ac_cv_prog_CC"
2059fi
2060
2061if test -z "$CC"; then
2062 if test -n "$ac_tool_prefix"; then
2063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2064set dummy ${ac_tool_prefix}cc; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080 ac_cv_prog_CC="${ac_tool_prefix}cc"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2083 fi
2084done
2085done
2086
2087fi
2088fi
2089CC=$ac_cv_prog_CC
2090if test -n "$CC"; then
2091 echo "$as_me:$LINENO: result: $CC" >&5
2092echo "${ECHO_T}$CC" >&6
2093else
2094 echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098fi
2099if test -z "$ac_cv_prog_CC"; then
2100 ac_ct_CC=$CC
2101 # Extract the first word of "cc", so it can be a program name with args.
2102set dummy cc; ac_word=$2
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 if test -n "$ac_ct_CC"; then
2109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110else
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 for ac_exec_ext in '' $ac_executable_extensions; do
2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118 ac_cv_prog_ac_ct_CC="cc"
2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 break 2
2121 fi
2122done
2123done
2124
2125fi
2126fi
2127ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128if test -n "$ac_ct_CC"; then
2129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130echo "${ECHO_T}$ac_ct_CC" >&6
2131else
2132 echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6
2134fi
2135
2136 CC=$ac_ct_CC
2137else
2138 CC="$ac_cv_prog_CC"
2139fi
2140
2141fi
2142if test -z "$CC"; then
2143 # Extract the first word of "cc", so it can be a program name with args.
2144set dummy cc; ac_word=$2
2145echo "$as_me:$LINENO: checking for $ac_word" >&5
2146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147if test "${ac_cv_prog_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2152else
2153 ac_prog_rejected=no
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162 ac_prog_rejected=yes
2163 continue
2164 fi
2165 ac_cv_prog_CC="cc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2168 fi
2169done
2170done
2171
2172if test $ac_prog_rejected = yes; then
2173 # We found a bogon in the path, so make sure we never use it.
2174 set dummy $ac_cv_prog_CC
2175 shift
2176 if test $# != 0; then
2177 # We chose a different compiler from the bogus one.
2178 # However, it has the same basename, so the bogon will be chosen
2179 # first if we set CC to just the basename; use the full file name.
2180 shift
2181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2182 fi
2183fi
2184fi
2185fi
2186CC=$ac_cv_prog_CC
2187if test -n "$CC"; then
2188 echo "$as_me:$LINENO: result: $CC" >&5
2189echo "${ECHO_T}$CC" >&6
2190else
2191 echo "$as_me:$LINENO: result: no" >&5
2192echo "${ECHO_T}no" >&6
2193fi
2194
2195fi
2196if test -z "$CC"; then
2197 if test -n "$ac_tool_prefix"; then
2198 for ac_prog in cl
2199 do
2200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2201set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2202echo "$as_me:$LINENO: checking for $ac_word" >&5
2203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2204if test "${ac_cv_prog_CC+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2206else
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC="$CC" # Let the user override the test.
2209else
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 break 2
2220 fi
2221done
2222done
2223
2224fi
2225fi
2226CC=$ac_cv_prog_CC
2227if test -n "$CC"; then
2228 echo "$as_me:$LINENO: result: $CC" >&5
2229echo "${ECHO_T}$CC" >&6
2230else
2231 echo "$as_me:$LINENO: result: no" >&5
2232echo "${ECHO_T}no" >&6
2233fi
2234
2235 test -n "$CC" && break
2236 done
2237fi
2238if test -z "$CC"; then
2239 ac_ct_CC=$CC
2240 for ac_prog in cl
2241do
2242 # Extract the first word of "$ac_prog", so it can be a program name with args.
2243set dummy $ac_prog; ac_word=$2
2244echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 if test -n "$ac_ct_CC"; then
2250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2251else
2252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259 ac_cv_prog_ac_ct_CC="$ac_prog"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263done
2264done
2265
2266fi
2267fi
2268ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269if test -n "$ac_ct_CC"; then
2270 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271echo "${ECHO_T}$ac_ct_CC" >&6
2272else
2273 echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6
2275fi
2276
2277 test -n "$ac_ct_CC" && break
2278done
2279
2280 CC=$ac_ct_CC
2281fi
2282
2283fi
2284
2285
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002286test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: no acceptable C compiler found in \$PATH
2289See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002290 { (exit 1); exit 1; }; }
2291
2292# Provide some information about the compiler.
2293echo "$as_me:$LINENO:" \
2294 "checking for C compiler version" >&5
2295ac_compiler=`set X $ac_compile; echo $2`
2296{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2297 (eval $ac_compiler --version </dev/null >&5) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }
2301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2302 (eval $ac_compiler -v </dev/null >&5) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }
2306{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2307 (eval $ac_compiler -V </dev/null >&5) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }
2311
2312cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002313#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002314/* confdefs.h. */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002319
2320int
2321main ()
2322{
2323
2324 ;
2325 return 0;
2326}
2327_ACEOF
2328ac_clean_files_save=$ac_clean_files
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002329ac_clean_files="$ac_clean_files a.out a.exe b.out"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002330# Try to create an executable without -o first, disregard a.out.
2331# It will help us diagnose broken compilers, and finding out an intuition
2332# of exeext.
mostang.com!davidm046362a2003-12-05 06:42:28 +00002333echo "$as_me:$LINENO: checking for C compiler default output" >&5
2334echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002335ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2336if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2337 (eval $ac_link_default) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
2341 # Find the output, starting from the most likely. This scheme is
2342# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2343# resort.
2344
2345# Be careful to initialize this variable, since it used to be cached.
2346# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2347ac_cv_exeext=
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002348# b.out is created by i960 compilers.
2349for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2350do
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002351 test -f "$ac_file" || continue
2352 case $ac_file in
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
mostang.com!davidm046362a2003-12-05 06:42:28 +00002354 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002355 conftest.$ac_ext )
mostang.com!davidm046362a2003-12-05 06:42:28 +00002356 # This is the source file.
2357 ;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002358 [ab].out )
mostang.com!davidm046362a2003-12-05 06:42:28 +00002359 # We found the default executable, but exeext='' is most
2360 # certainly right.
2361 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002362 *.* )
mostang.com!davidm046362a2003-12-05 06:42:28 +00002363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364 # FIXME: I believe we export ac_cv_exeext for Libtool,
2365 # but it would be cool to find out if it's true. Does anybody
2366 # maintain Libtool? --akim.
2367 export ac_cv_exeext
2368 break;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002369 * )
mostang.com!davidm046362a2003-12-05 06:42:28 +00002370 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002371 esac
2372done
2373else
2374 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002375sed 's/^/| /' conftest.$ac_ext >&5
2376
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002377{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002378See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002379echo "$as_me: error: C compiler cannot create executables
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002380See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002381 { (exit 77); exit 77; }; }
2382fi
2383
2384ac_exeext=$ac_cv_exeext
2385echo "$as_me:$LINENO: result: $ac_file" >&5
2386echo "${ECHO_T}$ac_file" >&6
2387
2388# Check the compiler produces executables we can run. If not, either
2389# the compiler is broken, or we cross compile.
2390echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2391echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2392# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2393# If not cross compiling, check that we can run a simple program.
2394if test "$cross_compiling" != yes; then
2395 if { ac_try='./$ac_file'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 cross_compiling=no
2402 else
2403 if test "$cross_compiling" = maybe; then
2404 cross_compiling=yes
2405 else
2406 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002407If you meant to cross compile, use \`--host'.
2408See \`config.log' for more details." >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002409echo "$as_me: error: cannot run C compiled programs.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002410If you meant to cross compile, use \`--host'.
2411See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002412 { (exit 1); exit 1; }; }
2413 fi
2414 fi
2415fi
2416echo "$as_me:$LINENO: result: yes" >&5
2417echo "${ECHO_T}yes" >&6
2418
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002419rm -f a.out a.exe conftest$ac_cv_exeext b.out
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002420ac_clean_files=$ac_clean_files_save
2421# Check the compiler produces executables we can run. If not, either
2422# the compiler is broken, or we cross compile.
2423echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2424echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2425echo "$as_me:$LINENO: result: $cross_compiling" >&5
2426echo "${ECHO_T}$cross_compiling" >&6
2427
2428echo "$as_me:$LINENO: checking for suffix of executables" >&5
2429echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; then
2435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2436# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2437# work properly (i.e., refer to `conftest.exe'), while it won't with
2438# `rm'.
2439for ac_file in conftest.exe conftest conftest.*; do
2440 test -f "$ac_file" || continue
2441 case $ac_file in
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
mostang.com!davidm046362a2003-12-05 06:42:28 +00002444 export ac_cv_exeext
2445 break;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002446 * ) break;;
2447 esac
2448done
2449else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002450 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2451See \`config.log' for more details." >&5
2452echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2453See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002454 { (exit 1); exit 1; }; }
2455fi
2456
2457rm -f conftest$ac_cv_exeext
2458echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2459echo "${ECHO_T}$ac_cv_exeext" >&6
2460
2461rm -f conftest.$ac_ext
2462EXEEXT=$ac_cv_exeext
2463ac_exeext=$EXEEXT
2464echo "$as_me:$LINENO: checking for suffix of object files" >&5
2465echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2466if test "${ac_cv_objext+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002470#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002471/* confdefs.h. */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002476
2477int
2478main ()
2479{
2480
2481 ;
2482 return 0;
2483}
2484_ACEOF
2485rm -f conftest.o conftest.obj
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487 (eval $ac_compile) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; then
2491 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2492 case $ac_file in
2493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2494 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2495 break;;
2496 esac
2497done
2498else
2499 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2503See \`config.log' for more details." >&5
2504echo "$as_me: error: cannot compute suffix of object files: cannot compile
2505See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002506 { (exit 1); exit 1; }; }
2507fi
2508
2509rm -f conftest.$ac_cv_objext conftest.$ac_ext
2510fi
2511echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2512echo "${ECHO_T}$ac_cv_objext" >&6
2513OBJEXT=$ac_cv_objext
2514ac_objext=$OBJEXT
2515echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2516echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2517if test "${ac_cv_c_compiler_gnu+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002521#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002527
2528int
2529main ()
2530{
2531#ifndef __GNUC__
2532 choke me
2533#endif
2534
2535 ;
2536 return 0;
2537}
2538_ACEOF
2539rm -f conftest.$ac_objext
2540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00002541 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00002545 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 ac_compiler_gnu=yes
2552else
2553 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002554sed 's/^/| /' conftest.$ac_ext >&5
2555
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002556ac_compiler_gnu=no
2557fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00002558rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002559ac_cv_c_compiler_gnu=$ac_compiler_gnu
2560
2561fi
2562echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2563echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2564GCC=`test $ac_compiler_gnu = yes && echo yes`
2565ac_test_CFLAGS=${CFLAGS+set}
2566ac_save_CFLAGS=$CFLAGS
2567CFLAGS="-g"
2568echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2569echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2570if test "${ac_cv_prog_cc_g+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002574#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002575/* confdefs.h. */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002580
2581int
2582main ()
2583{
2584
2585 ;
2586 return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00002591 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00002595 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cc_g=yes
2602else
2603 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002604sed 's/^/| /' conftest.$ac_ext >&5
2605
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002606ac_cv_prog_cc_g=no
2607fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00002608rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002609fi
2610echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2612if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2616 CFLAGS="-g -O2"
2617 else
2618 CFLAGS="-g"
2619 fi
2620else
2621 if test "$GCC" = yes; then
2622 CFLAGS="-O2"
2623 else
2624 CFLAGS=
2625 fi
2626fi
2627echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2628echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2629if test "${ac_cv_prog_cc_stdc+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632 ac_cv_prog_cc_stdc=no
2633ac_save_CC=$CC
2634cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002635#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649 char **p;
2650 int i;
2651{
2652 return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656 char *s;
2657 va_list v;
2658 va_start (v,p);
2659 s = g (p, va_arg (v,int));
2660 va_end (v);
2661 return s;
2662}
2663int test (int i, double x);
2664struct s1 {int (*f) (int a);};
2665struct s2 {int (*f) (double a);};
2666int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2667int argc;
2668char **argv;
2669int
2670main ()
2671{
2672return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677# Don't try gcc -ansi; that turns off useful extensions and
2678# breaks some systems' header files.
2679# AIX -qlanglvl=ansi
2680# Ultrix and OSF/1 -std1
2681# HP-UX 10.20 and later -Ae
2682# HP-UX older versions -Aa -D_HPUX_SOURCE
2683# SVR4 -Xc -D__EXTENSIONS__
2684for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2685do
2686 CC="$ac_save_CC $ac_arg"
2687 rm -f conftest.$ac_objext
2688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00002689 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00002693 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 ac_cv_prog_cc_stdc=$ac_arg
2700break
2701else
2702 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002703sed 's/^/| /' conftest.$ac_ext >&5
2704
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002705fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00002706rm -f conftest.$ac_objext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002707done
2708rm -f conftest.$ac_ext conftest.$ac_objext
2709CC=$ac_save_CC
2710
2711fi
2712
2713case "x$ac_cv_prog_cc_stdc" in
2714 x|xno)
2715 echo "$as_me:$LINENO: result: none needed" >&5
2716echo "${ECHO_T}none needed" >&6 ;;
2717 *)
2718 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2719echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2720 CC="$CC $ac_cv_prog_cc_stdc" ;;
2721esac
2722
2723# Some people use a C++ compiler to compile C. Since we use `exit',
2724# in C++ we need to declare it. In case someone uses the same compiler
2725# for both compiling C and C++ we need to have the C++ compiler decide
2726# the declaration of exit, since it's the most demanding environment.
2727cat >conftest.$ac_ext <<_ACEOF
2728#ifndef __cplusplus
2729 choke me
2730#endif
2731_ACEOF
2732rm -f conftest.$ac_objext
2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00002734 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00002738 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002745 '' \
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002746 'extern "C" void std::exit (int) throw (); using std::exit;' \
2747 'extern "C" void std::exit (int); using std::exit;' \
2748 'extern "C" void exit (int) throw ();' \
2749 'extern "C" void exit (int);' \
2750 'void exit (int);'
2751do
2752 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002753#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002759$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00002760#include <stdlib.h>
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002761int
2762main ()
2763{
2764exit (42);
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00002771 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00002775 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 :
2782else
2783 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002784sed 's/^/| /' conftest.$ac_ext >&5
2785
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002786continue
2787fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00002788rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002789 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00002790#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002791/* confdefs.h. */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002796$ac_declaration
2797int
2798main ()
2799{
2800exit (42);
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00002807 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00002811 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 break
2818else
2819 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002820sed 's/^/| /' conftest.$ac_ext >&5
2821
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002822fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00002823rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002824done
2825rm -f conftest*
2826if test -n "$ac_declaration"; then
2827 echo '#ifdef __cplusplus' >>confdefs.h
2828 echo $ac_declaration >>confdefs.h
2829 echo '#endif' >>confdefs.h
2830fi
2831
2832else
2833 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00002834sed 's/^/| /' conftest.$ac_ext >&5
2835
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002836fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00002837rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002838ac_ext=c
2839ac_cpp='$CPP $CPPFLAGS'
2840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002843rm -f .deps 2>/dev/null
2844mkdir .deps 2>/dev/null
2845if test -d .deps; then
2846 DEPDIR=.deps
2847else
2848 # MS-DOS does not allow filenames that begin with a dot.
2849 DEPDIR=_deps
2850fi
2851rmdir .deps 2>/dev/null
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002852
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002853
2854 ac_config_commands="$ac_config_commands depfiles"
2855
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002856
2857am_make=${MAKE-make}
2858cat > confinc << 'END'
2859doit:
2860 @echo done
2861END
2862# If we don't find an include directive, just comment out the code.
2863echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2864echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002865am__include="#"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002866am__quote=
2867_am_result=none
2868# First try GNU make style include.
2869echo "include confinc" > confmf
2870# We grep out `Entering directory' and `Leaving directory'
2871# messages which can occur if `w' ends up in MAKEFLAGS.
2872# In particular we don't look at `^make:' because GNU make might
2873# be invoked under some other name (usually "gmake"), in which
2874# case it prints its new name instead of `make'.
2875if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2876 am__include=include
2877 am__quote=
2878 _am_result=GNU
2879fi
2880# Now try BSD make style include.
2881if test "$am__include" = "#"; then
2882 echo '.include "confinc"' > confmf
2883 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2884 am__include=.include
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002885 am__quote="\""
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002886 _am_result=BSD
2887 fi
2888fi
2889
2890
2891echo "$as_me:$LINENO: result: $_am_result" >&5
2892echo "${ECHO_T}$_am_result" >&6
2893rm -f confinc confmf
2894
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002895# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2896if test "${enable_dependency_tracking+set}" = set; then
2897 enableval="$enable_dependency_tracking"
2898
2899fi;
2900if test "x$enable_dependency_tracking" != xno; then
2901 am_depcomp="$ac_aux_dir/depcomp"
2902 AMDEPBACKSLASH='\'
2903fi
2904
2905
2906if test "x$enable_dependency_tracking" != xno; then
2907 AMDEP_TRUE=
2908 AMDEP_FALSE='#'
2909else
2910 AMDEP_TRUE='#'
2911 AMDEP_FALSE=
2912fi
2913
2914
2915
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002916
2917depcc="$CC" am_compiler_list=
2918
2919echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2920echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2921if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2925 # We make a subdir and do the tests there. Otherwise we can end up
2926 # making bogus files that we don't know about and never remove. For
2927 # instance it was reported that on HP-UX the gcc test will end up
2928 # making a dummy file named `D' -- because `-MD' means `put the output
2929 # in D'.
2930 mkdir conftest.dir
2931 # Copy depcomp to subdir because otherwise we won't find it if we're
2932 # using a relative directory.
2933 cp "$am_depcomp" conftest.dir
2934 cd conftest.dir
2935
2936 am_cv_CC_dependencies_compiler_type=none
2937 if test "$am_compiler_list" = ""; then
2938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2939 fi
2940 for depmode in $am_compiler_list; do
2941 # We need to recreate these files for each test, as the compiler may
2942 # overwrite some of them when testing with obscure command lines.
2943 # This happens at least with the AIX C compiler.
2944 echo '#include "conftest.h"' > conftest.c
2945 echo 'int i;' > conftest.h
2946 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2947
2948 case $depmode in
2949 nosideeffect)
2950 # after this tag, mechanisms are not by side-effect, so they'll
2951 # only be used when explicitly requested
2952 if test "x$enable_dependency_tracking" = xyes; then
2953 continue
2954 else
2955 break
2956 fi
2957 ;;
2958 none) break ;;
2959 esac
2960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2961 # mode. It turns out that the SunPro C++ compiler does not properly
2962 # handle `-M -o', and we need to detect this.
2963 if depmode=$depmode \
2964 source=conftest.c object=conftest.o \
2965 depfile=conftest.Po tmpdepfile=conftest.TPo \
2966 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2967 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2969 am_cv_CC_dependencies_compiler_type=$depmode
2970 break
2971 fi
2972 done
2973
2974 cd ..
2975 rm -rf conftest.dir
2976else
2977 am_cv_CC_dependencies_compiler_type=none
2978fi
2979
2980fi
2981echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2982echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +00002983CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00002984
2985
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00002986ac_ext=cc
2987ac_cpp='$CXXCPP $CPPFLAGS'
2988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2991if test -n "$ac_tool_prefix"; then
2992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2993 do
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2996echo "$as_me:$LINENO: checking for $ac_word" >&5
2997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998if test "${ac_cv_prog_CXX+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 if test -n "$CXX"; then
3002 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016done
3017
3018fi
3019fi
3020CXX=$ac_cv_prog_CXX
3021if test -n "$CXX"; then
3022 echo "$as_me:$LINENO: result: $CXX" >&5
3023echo "${ECHO_T}$CXX" >&6
3024else
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027fi
3028
3029 test -n "$CXX" && break
3030 done
3031fi
3032if test -z "$CXX"; then
3033 ac_ct_CXX=$CXX
3034 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3035do
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037set dummy $ac_prog; ac_word=$2
3038echo "$as_me:$LINENO: checking for $ac_word" >&5
3039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3040if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3042else
3043 if test -n "$ac_ct_CXX"; then
3044 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3045else
3046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047for as_dir in $PATH
3048do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_CXX="$ac_prog"
3054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057done
3058done
3059
3060fi
3061fi
3062ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3063if test -n "$ac_ct_CXX"; then
3064 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3065echo "${ECHO_T}$ac_ct_CXX" >&6
3066else
3067 echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6
3069fi
3070
3071 test -n "$ac_ct_CXX" && break
3072done
3073test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3074
3075 CXX=$ac_ct_CXX
3076fi
3077
3078
3079# Provide some information about the compiler.
3080echo "$as_me:$LINENO:" \
3081 "checking for C++ compiler version" >&5
3082ac_compiler=`set X $ac_compile; echo $2`
3083{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3084 (eval $ac_compiler --version </dev/null >&5) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3089 (eval $ac_compiler -v </dev/null >&5) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }
3093{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3094 (eval $ac_compiler -V </dev/null >&5) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }
3098
3099echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3100echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3101if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103else
3104 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00003105#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003106/* confdefs.h. */
3107_ACEOF
3108cat confdefs.h >>conftest.$ac_ext
3109cat >>conftest.$ac_ext <<_ACEOF
3110/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003111
3112int
3113main ()
3114{
3115#ifndef __GNUC__
3116 choke me
3117#endif
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext
3124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00003125 (eval $ac_compile) 2>&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00003129 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 ac_compiler_gnu=yes
3136else
3137 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003138sed 's/^/| /' conftest.$ac_ext >&5
3139
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003140ac_compiler_gnu=no
3141fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00003142rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003143ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3144
3145fi
3146echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3147echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3148GXX=`test $ac_compiler_gnu = yes && echo yes`
3149ac_test_CXXFLAGS=${CXXFLAGS+set}
3150ac_save_CXXFLAGS=$CXXFLAGS
3151CXXFLAGS="-g"
3152echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3153echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3154if test "${ac_cv_prog_cxx_g+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00003158#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003164
3165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00003175 (eval $ac_compile) 2>&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00003179 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 ac_cv_prog_cxx_g=yes
3186else
3187 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003188sed 's/^/| /' conftest.$ac_ext >&5
3189
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003190ac_cv_prog_cxx_g=no
3191fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00003192rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003193fi
3194echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3195echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3196if test "$ac_test_CXXFLAGS" = set; then
3197 CXXFLAGS=$ac_save_CXXFLAGS
3198elif test $ac_cv_prog_cxx_g = yes; then
3199 if test "$GXX" = yes; then
3200 CXXFLAGS="-g -O2"
3201 else
3202 CXXFLAGS="-g"
3203 fi
3204else
3205 if test "$GXX" = yes; then
3206 CXXFLAGS="-O2"
3207 else
3208 CXXFLAGS=
3209 fi
3210fi
3211for ac_declaration in \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003212 '' \
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003213 'extern "C" void std::exit (int) throw (); using std::exit;' \
3214 'extern "C" void std::exit (int); using std::exit;' \
3215 'extern "C" void exit (int) throw ();' \
3216 'extern "C" void exit (int);' \
3217 'void exit (int);'
3218do
3219 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00003220#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003221/* confdefs.h. */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h. */
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003226$ac_declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003227#include <stdlib.h>
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003228int
3229main ()
3230{
3231exit (42);
3232 ;
3233 return 0;
3234}
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00003238 (eval $ac_compile) 2>&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00003242 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 :
3249else
3250 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003251sed 's/^/| /' conftest.$ac_ext >&5
3252
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003253continue
3254fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00003255rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003256 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00003257#line $LINENO "configure"
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$ac_declaration
3264int
3265main ()
3266{
3267exit (42);
3268 ;
3269 return 0;
3270}
3271_ACEOF
3272rm -f conftest.$ac_objext
3273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00003274 (eval $ac_compile) 2>&5
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00003278 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 break
3285else
3286 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003287sed 's/^/| /' conftest.$ac_ext >&5
3288
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003289fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00003290rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidm4f17bce2003-03-28 07:43:22 +00003291done
3292rm -f conftest*
3293if test -n "$ac_declaration"; then
3294 echo '#ifdef __cplusplus' >>confdefs.h
3295 echo $ac_declaration >>confdefs.h
3296 echo '#endif' >>confdefs.h
3297fi
3298
3299ac_ext=c
3300ac_cpp='$CPP $CPPFLAGS'
3301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
3305depcc="$CXX" am_compiler_list=
3306
3307echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3308echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3309if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3313 # We make a subdir and do the tests there. Otherwise we can end up
3314 # making bogus files that we don't know about and never remove. For
3315 # instance it was reported that on HP-UX the gcc test will end up
3316 # making a dummy file named `D' -- because `-MD' means `put the output
3317 # in D'.
3318 mkdir conftest.dir
3319 # Copy depcomp to subdir because otherwise we won't find it if we're
3320 # using a relative directory.
3321 cp "$am_depcomp" conftest.dir
3322 cd conftest.dir
3323
3324 am_cv_CXX_dependencies_compiler_type=none
3325 if test "$am_compiler_list" = ""; then
3326 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3327 fi
3328 for depmode in $am_compiler_list; do
3329 # We need to recreate these files for each test, as the compiler may
3330 # overwrite some of them when testing with obscure command lines.
3331 # This happens at least with the AIX C compiler.
3332 echo '#include "conftest.h"' > conftest.c
3333 echo 'int i;' > conftest.h
3334 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3335
3336 case $depmode in
3337 nosideeffect)
3338 # after this tag, mechanisms are not by side-effect, so they'll
3339 # only be used when explicitly requested
3340 if test "x$enable_dependency_tracking" = xyes; then
3341 continue
3342 else
3343 break
3344 fi
3345 ;;
3346 none) break ;;
3347 esac
3348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3349 # mode. It turns out that the SunPro C++ compiler does not properly
3350 # handle `-M -o', and we need to detect this.
3351 if depmode=$depmode \
3352 source=conftest.c object=conftest.o \
3353 depfile=conftest.Po tmpdepfile=conftest.TPo \
3354 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3355 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3356 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3357 am_cv_CXX_dependencies_compiler_type=$depmode
3358 break
3359 fi
3360 done
3361
3362 cd ..
3363 rm -rf conftest.dir
3364else
3365 am_cv_CXX_dependencies_compiler_type=none
3366fi
3367
3368fi
3369echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3370echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3371CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3372
3373
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003374# Find a good install program. We prefer a C program (faster),
3375# so one script is as good as another. But avoid the broken or
3376# incompatible versions:
3377# SysV /etc/install, /usr/sbin/install
3378# SunOS /usr/etc/install
3379# IRIX /sbin/install
3380# AIX /bin/install
3381# AmigaOS /C/install, which installs bootblocks on floppy discs
3382# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3383# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3384# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3385# ./install, which can be erroneously created by make from ./install.sh.
3386echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3387echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3388if test -z "$INSTALL"; then
3389if test "${ac_cv_path_install+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 # Account for people who put trailing slashes in PATH elements.
3398case $as_dir/ in
3399 ./ | .// | /cC/* | \
3400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3401 /usr/ucb/* ) ;;
3402 *)
3403 # OSF1 and SCO ODT 3.0 have their own names for install.
3404 # Don't use installbsd from OSF since it installs stuff as root
3405 # by default.
3406 for ac_prog in ginstall scoinst install; do
3407 for ac_exec_ext in '' $ac_executable_extensions; do
mostang.com!davidm046362a2003-12-05 06:42:28 +00003408 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3409 if test $ac_prog = install &&
3410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3411 # AIX install. It has an incompatible calling convention.
3412 :
3413 elif test $ac_prog = install &&
3414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3415 # program-specific install script used by HP pwplus--don't use.
3416 :
3417 else
3418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3419 break 3
3420 fi
3421 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003422 done
3423 done
3424 ;;
3425esac
3426done
3427
3428
3429fi
3430 if test "${ac_cv_path_install+set}" = set; then
3431 INSTALL=$ac_cv_path_install
3432 else
3433 # As a last resort, use the slow shell script. We don't cache a
3434 # path for INSTALL within a source directory, because that will
3435 # break other packages using the cache if that directory is
3436 # removed, or if the path is relative.
3437 INSTALL=$ac_install_sh
3438 fi
3439fi
3440echo "$as_me:$LINENO: result: $INSTALL" >&5
3441echo "${ECHO_T}$INSTALL" >&6
3442
3443# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3444# It thinks the first close brace ends the variable substitution.
3445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3446
3447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3448
3449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3450
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003451echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3452echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
mostang.com!davidm046362a2003-12-05 06:42:28 +00003453set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003454if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457 cat >conftest.make <<\_ACEOF
3458all:
hp.com!davidm01b02dd2003-09-24 21:51:53 +00003459 @echo 'ac_maketemp="$(MAKE)"'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003460_ACEOF
3461# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3462eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3463if test -n "$ac_maketemp"; then
3464 eval ac_cv_prog_make_${ac_make}_set=yes
3465else
3466 eval ac_cv_prog_make_${ac_make}_set=no
3467fi
3468rm -f conftest.make
3469fi
3470if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3471 echo "$as_me:$LINENO: result: yes" >&5
3472echo "${ECHO_T}yes" >&6
3473 SET_MAKE=
3474else
3475 echo "$as_me:$LINENO: result: no" >&5
3476echo "${ECHO_T}no" >&6
3477 SET_MAKE="MAKE=${MAKE-make}"
3478fi
3479
3480# Check whether --enable-shared or --disable-shared was given.
3481if test "${enable_shared+set}" = set; then
3482 enableval="$enable_shared"
3483 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003484 case $enableval in
3485 yes) enable_shared=yes ;;
3486 no) enable_shared=no ;;
3487 *)
3488 enable_shared=no
3489 # Look at the argument we got. We use all the common list separators.
3490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3491 for pkg in $enableval; do
3492 IFS="$lt_save_ifs"
3493 if test "X$pkg" = "X$p"; then
3494 enable_shared=yes
3495 fi
3496 done
3497 IFS="$lt_save_ifs"
3498 ;;
3499 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003500else
3501 enable_shared=yes
3502fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003503
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003504# Check whether --enable-static or --disable-static was given.
3505if test "${enable_static+set}" = set; then
3506 enableval="$enable_static"
3507 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003508 case $enableval in
3509 yes) enable_static=yes ;;
3510 no) enable_static=no ;;
3511 *)
3512 enable_static=no
3513 # Look at the argument we got. We use all the common list separators.
3514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3515 for pkg in $enableval; do
3516 IFS="$lt_save_ifs"
3517 if test "X$pkg" = "X$p"; then
3518 enable_static=yes
3519 fi
3520 done
3521 IFS="$lt_save_ifs"
3522 ;;
3523 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003524else
3525 enable_static=yes
3526fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003527
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003528# Check whether --enable-fast-install or --disable-fast-install was given.
3529if test "${enable_fast_install+set}" = set; then
3530 enableval="$enable_fast_install"
3531 p=${PACKAGE-default}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003532 case $enableval in
3533 yes) enable_fast_install=yes ;;
3534 no) enable_fast_install=no ;;
3535 *)
3536 enable_fast_install=no
3537 # Look at the argument we got. We use all the common list separators.
3538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3539 for pkg in $enableval; do
3540 IFS="$lt_save_ifs"
3541 if test "X$pkg" = "X$p"; then
3542 enable_fast_install=yes
3543 fi
3544 done
3545 IFS="$lt_save_ifs"
3546 ;;
3547 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003548else
3549 enable_fast_install=yes
3550fi;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003551
3552echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3553echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3554if test "${lt_cv_path_SED+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 # Loop through the user's path and test for sed and gsed.
3558# Then use that list of sed's as ones to test for truncation.
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for lt_ac_prog in sed gsed; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3567 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3568 fi
3569 done
3570 done
3571done
3572lt_ac_max=0
3573lt_ac_count=0
3574# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3575# along with /bin/sed that truncates output.
3576for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3577 test ! -f $lt_ac_sed && break
3578 cat /dev/null > conftest.in
3579 lt_ac_count=0
3580 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3581 # Check for GNU sed and select it if it is found.
3582 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3583 lt_cv_path_SED=$lt_ac_sed
3584 break
3585 fi
3586 while true; do
3587 cat conftest.in conftest.in >conftest.tmp
3588 mv conftest.tmp conftest.in
3589 cp conftest.in conftest.nl
3590 echo >>conftest.nl
3591 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3592 cmp -s conftest.out conftest.nl || break
3593 # 10000 chars as input seems more than enough
3594 test $lt_ac_count -gt 10 && break
3595 lt_ac_count=`expr $lt_ac_count + 1`
3596 if test $lt_ac_count -gt $lt_ac_max; then
3597 lt_ac_max=$lt_ac_count
3598 lt_cv_path_SED=$lt_ac_sed
3599 fi
3600 done
3601done
3602SED=$lt_cv_path_SED
3603
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003604fi
3605
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003606echo "$as_me:$LINENO: result: $SED" >&5
3607echo "${ECHO_T}$SED" >&6
3608
3609echo "$as_me:$LINENO: checking for egrep" >&5
3610echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3611if test "${ac_cv_prog_egrep+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613else
3614 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3615 then ac_cv_prog_egrep='grep -E'
3616 else ac_cv_prog_egrep='egrep'
3617 fi
3618fi
3619echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3620echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3621 EGREP=$ac_cv_prog_egrep
3622
3623
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003624
3625# Check whether --with-gnu-ld or --without-gnu-ld was given.
3626if test "${with_gnu_ld+set}" = set; then
3627 withval="$with_gnu_ld"
3628 test "$withval" = no || with_gnu_ld=yes
3629else
3630 with_gnu_ld=no
3631fi;
3632ac_prog=ld
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003633if test "$GCC" = yes; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003634 # Check if gcc -print-prog-name=ld gives a path.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003635 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3636echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003637 case $host in
3638 *-*-mingw*)
3639 # gcc leaves a trailing carriage return which upsets mingw
3640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3641 *)
3642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3643 esac
3644 case $ac_prog in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003645 # Accept absolute paths.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003646 [\\/]* | ?:[\\/]*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003647 re_direlt='/[^/][^/]*/\.\./'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003648 # Canonicalize the pathname of ld
3649 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003650 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003651 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003652 done
3653 test -z "$LD" && LD="$ac_prog"
3654 ;;
3655 "")
3656 # If it fails, then pretend we aren't using GCC.
3657 ac_prog=ld
3658 ;;
3659 *)
3660 # If it is relative, then search for the first ld in PATH.
3661 with_gnu_ld=unknown
3662 ;;
3663 esac
3664elif test "$with_gnu_ld" = yes; then
3665 echo "$as_me:$LINENO: checking for GNU ld" >&5
3666echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3667else
3668 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3669echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3670fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003671if test "${lt_cv_path_LD+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 if test -z "$LD"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003676 for ac_dir in $PATH; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003677 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003678 test -z "$ac_dir" && ac_dir=.
3679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003680 lt_cv_path_LD="$ac_dir/$ac_prog"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003681 # Check to see if the program is GNU ld. I'd rather use --version,
3682 # but apparently some GNU ld's only accept -v.
3683 # Break only if it was the GNU/non-GNU ld that we prefer.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3685 *GNU* | *'with BFD'*)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003686 test "$with_gnu_ld" != no && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003687 ;;
3688 *)
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003689 test "$with_gnu_ld" != yes && break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003690 ;;
3691 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003692 fi
3693 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003694 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003695else
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003696 lt_cv_path_LD="$LD" # Let the user override the test with a path.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003697fi
3698fi
3699
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003700LD="$lt_cv_path_LD"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003701if test -n "$LD"; then
3702 echo "$as_me:$LINENO: result: $LD" >&5
3703echo "${ECHO_T}$LD" >&6
3704else
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
3707fi
3708test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3709echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3710 { (exit 1); exit 1; }; }
3711echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3712echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003713if test "${lt_cv_prog_gnu_ld+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003717case `$LD -v 2>&1 </dev/null` in
3718*GNU* | *'with BFD'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003719 lt_cv_prog_gnu_ld=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003720 ;;
3721*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003722 lt_cv_prog_gnu_ld=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003723 ;;
3724esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003725fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003726echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3727echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3728with_gnu_ld=$lt_cv_prog_gnu_ld
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003729
3730
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003731echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3732echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3733if test "${lt_cv_ld_reload_flag+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 lt_cv_ld_reload_flag='-r'
3737fi
3738echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3739echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3740reload_flag=$lt_cv_ld_reload_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003741case $reload_flag in
3742"" | " "*) ;;
3743*) reload_flag=" $reload_flag" ;;
3744esac
3745reload_cmds='$LD$reload_flag -o $output$reload_objs'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003746
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003747echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3748echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003749if test "${lt_cv_path_NM+set}" = set; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752 if test -n "$NM"; then
3753 # Let the user override the test.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003754 lt_cv_path_NM="$NM"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003755else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003757 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003758 IFS="$lt_save_ifs"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003759 test -z "$ac_dir" && ac_dir=.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003760 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3761 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003762 # Check to see if the nm accepts a BSD-compat flag.
3763 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3764 # nm: unknown option "B" ignored
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003765 # Tru64's nm complains that /dev/null is an invalid object file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003766 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3767 */dev/null* | *'Invalid file or object type'*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003768 lt_cv_path_NM="$tmp_nm -B"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003769 break
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003770 ;;
3771 *)
3772 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3773 */dev/null*)
3774 lt_cv_path_NM="$tmp_nm -p"
3775 break
3776 ;;
3777 *)
3778 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3779 continue # so that we can try to find one that supports BSD flags
3780 ;;
3781 esac
3782 esac
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003783 fi
3784 done
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003785 IFS="$lt_save_ifs"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003786 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003787fi
3788fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003789echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3790echo "${ECHO_T}$lt_cv_path_NM" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003791NM="$lt_cv_path_NM"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003792
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003793echo "$as_me:$LINENO: checking whether ln -s works" >&5
3794echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3795LN_S=$as_ln_s
3796if test "$LN_S" = "ln -s"; then
3797 echo "$as_me:$LINENO: result: yes" >&5
3798echo "${ECHO_T}yes" >&6
3799else
3800 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3801echo "${ECHO_T}no, using $LN_S" >&6
3802fi
3803
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003804echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3805echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3806if test "${lt_cv_deplibs_check_method+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809 lt_cv_file_magic_cmd='$MAGIC_CMD'
3810lt_cv_file_magic_test_file=
3811lt_cv_deplibs_check_method='unknown'
3812# Need to set the preceding variable on all platforms that support
3813# interlibrary dependencies.
3814# 'none' -- dependencies not supported.
3815# `unknown' -- same as none, but documents that we really don't know.
3816# 'pass_all' -- all dependencies passed with no checks.
3817# 'test_compile' -- check by making test program.
3818# 'file_magic [[regex]]' -- check by looking for files in library path
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003819# which responds to the $file_magic_cmd with a given extended regex.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003820# If you have `file' or equivalent on your system and you're not sure
3821# whether `pass_all' will *always* work, you probably want this one.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003822
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003823case $host_os in
3824aix4* | aix5*)
3825 lt_cv_deplibs_check_method=pass_all
3826 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003827
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003828beos*)
3829 lt_cv_deplibs_check_method=pass_all
3830 ;;
3831
3832bsdi4*)
3833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3834 lt_cv_file_magic_cmd='/usr/bin/file -L'
3835 lt_cv_file_magic_test_file=/shlib/libc.so
3836 ;;
3837
3838cygwin* | mingw* | pw32*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003839 # win32_libid is a shell function defined in ltmain.sh
3840 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3841 lt_cv_file_magic_cmd='win32_libid'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003842 ;;
3843
3844darwin* | rhapsody*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003845 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003846 ;;
3847
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003848freebsd* | kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003849 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3850 case $host_cpu in
3851 i*86 )
3852 # Not sure whether the presence of OpenBSD here was a mistake.
3853 # Let's accept both of them until this is cleared up.
3854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3855 lt_cv_file_magic_cmd=/usr/bin/file
3856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3857 ;;
3858 esac
3859 else
3860 lt_cv_deplibs_check_method=pass_all
3861 fi
3862 ;;
3863
3864gnu*)
3865 lt_cv_deplibs_check_method=pass_all
3866 ;;
3867
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003868hpux10.20* | hpux11*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003869 lt_cv_file_magic_cmd=/usr/bin/file
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003870 case "$host_cpu" in
3871 ia64*)
3872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3874 ;;
3875 hppa*64*)
3876 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]'
3877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3878 ;;
3879 *)
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3882 ;;
3883 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003884 ;;
3885
3886irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003887 case $LD in
3888 *-32|*"-32 ") libmagic=32-bit;;
3889 *-n32|*"-n32 ") libmagic=N32;;
3890 *-64|*"-64 ") libmagic=64-bit;;
3891 *) libmagic=never-match;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003892 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003893 lt_cv_deplibs_check_method=pass_all
3894 ;;
3895
3896# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003897linux*)
3898 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003899 ;;
3900
3901netbsd*)
3902 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003904 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003906 fi
3907 ;;
3908
3909newos6*)
3910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3911 lt_cv_file_magic_cmd=/usr/bin/file
3912 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3913 ;;
3914
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003915nto-qnx*)
3916 lt_cv_deplibs_check_method=unknown
3917 ;;
3918
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003919openbsd*)
3920 lt_cv_file_magic_cmd=/usr/bin/file
3921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3924 else
3925 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3926 fi
3927 ;;
3928
3929osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003930 lt_cv_deplibs_check_method=pass_all
3931 ;;
3932
3933sco3.2v5*)
3934 lt_cv_deplibs_check_method=pass_all
3935 ;;
3936
3937solaris*)
3938 lt_cv_deplibs_check_method=pass_all
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003939 ;;
3940
3941sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3942 case $host_vendor in
3943 motorola)
3944 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]'
3945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3946 ;;
3947 ncr)
3948 lt_cv_deplibs_check_method=pass_all
3949 ;;
3950 sequent)
3951 lt_cv_file_magic_cmd='/bin/file'
3952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3953 ;;
3954 sni)
3955 lt_cv_file_magic_cmd='/bin/file'
3956 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3957 lt_cv_file_magic_test_file=/lib/libc.so
3958 ;;
3959 siemens)
3960 lt_cv_deplibs_check_method=pass_all
3961 ;;
3962 esac
3963 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003964
3965sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3966 lt_cv_deplibs_check_method=pass_all
3967 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003968esac
3969
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003970fi
3971echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3972echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3973file_magic_cmd=$lt_cv_file_magic_cmd
3974deplibs_check_method=$lt_cv_deplibs_check_method
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003975test -z "$deplibs_check_method" && deplibs_check_method=unknown
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003976
3977
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003978
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00003979
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003980# If no C compiler was specified, use CC.
3981LTCC=${LTCC-"$CC"}
3982
3983# Allow CC to be a program name with arguments.
3984compiler=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003985
3986
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003987# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3988if test "${enable_libtool_lock+set}" = set; then
3989 enableval="$enable_libtool_lock"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003990
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003991fi;
3992test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00003993
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00003994# Some flags need to be propagated to the compiler or linker for good
3995# libtool support.
3996case $host in
3997ia64-*-hpux*)
3998 # Find out which ABI we are using.
3999 echo 'int i;' > conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004005 case `/usr/bin/file conftest.$ac_objext` in
4006 *ELF-32*)
4007 HPUX_IA64_MODE="32"
4008 ;;
4009 *ELF-64*)
4010 HPUX_IA64_MODE="64"
4011 ;;
4012 esac
4013 fi
4014 rm -rf conftest*
4015 ;;
4016*-*-irix6*)
4017 # Find out which ABI we are using.
mostang.com!davidm046362a2003-12-05 06:42:28 +00004018 echo '#line 4018 "configure"' > conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004023 (exit $ac_status); }; then
4024 if test "$lt_cv_prog_gnu_ld" = yes; then
4025 case `/usr/bin/file conftest.$ac_objext` in
4026 *32-bit*)
4027 LD="${LD-ld} -melf32bsmip"
4028 ;;
4029 *N32*)
4030 LD="${LD-ld} -melf32bmipn32"
4031 ;;
4032 *64-bit*)
4033 LD="${LD-ld} -melf64bmip"
4034 ;;
4035 esac
4036 else
4037 case `/usr/bin/file conftest.$ac_objext` in
4038 *32-bit*)
4039 LD="${LD-ld} -32"
4040 ;;
4041 *N32*)
4042 LD="${LD-ld} -n32"
4043 ;;
4044 *64-bit*)
4045 LD="${LD-ld} -64"
4046 ;;
4047 esac
4048 fi
4049 fi
4050 rm -rf conftest*
4051 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004052
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004053x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4054 # Find out which ABI we are using.
4055 echo 'int i;' > conftest.$ac_ext
4056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; then
4061 case "`/usr/bin/file conftest.o`" in
4062 *32-bit*)
4063 case $host in
4064 x86_64-*linux*)
4065 LD="${LD-ld} -m elf_i386"
4066 ;;
4067 ppc64-*linux*|powerpc64-*linux*)
4068 LD="${LD-ld} -m elf32ppclinux"
4069 ;;
4070 s390x-*linux*)
4071 LD="${LD-ld} -m elf_s390"
4072 ;;
4073 sparc64-*linux*)
4074 LD="${LD-ld} -m elf32_sparc"
4075 ;;
4076 esac
4077 ;;
4078 *64-bit*)
4079 case $host in
4080 x86_64-*linux*)
4081 LD="${LD-ld} -m elf_x86_64"
4082 ;;
4083 ppc*-*linux*|powerpc*-*linux*)
4084 LD="${LD-ld} -m elf64ppc"
4085 ;;
4086 s390*-*linux*)
4087 LD="${LD-ld} -m elf64_s390"
4088 ;;
4089 sparc*-*linux*)
4090 LD="${LD-ld} -m elf64_sparc"
4091 ;;
4092 esac
4093 ;;
4094 esac
4095 fi
4096 rm -rf conftest*
4097 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004098
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004099*-*-sco3.2v5*)
4100 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4101 SAVE_CFLAGS="$CFLAGS"
4102 CFLAGS="$CFLAGS -belf"
4103 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4104echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4105if test "${lt_cv_cc_needs_belf+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004113
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004114 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004115#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004121
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004122int
4123main ()
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004124{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004125
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004126 ;
4127 return 0;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004128}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004129_ACEOF
4130rm -f conftest.$ac_objext conftest$ac_exeext
4131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00004132 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004133 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00004136 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 lt_cv_cc_needs_belf=yes
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004143else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147lt_cv_cc_needs_belf=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004148fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00004149rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004150 ac_ext=c
4151ac_cpp='$CPP $CPPFLAGS'
4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004156fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004157echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4158echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4161 CFLAGS="$SAVE_CFLAGS"
4162 fi
4163 ;;
4164
4165esac
4166
4167need_locks="$enable_libtool_lock"
4168
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004169
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4176echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4177# On Suns, sometimes $CPP names a directory.
4178if test -n "$CPP" && test -d "$CPP"; then
4179 CPP=
4180fi
4181if test -z "$CPP"; then
4182 if test "${ac_cv_prog_CPP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 # Double quotes because CPP needs to be expanded
4186 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4187 do
4188 ac_preproc_ok=false
4189for ac_c_preproc_warn_flag in '' yes
4190do
4191 # Use a header file that comes with gcc, so configuring glibc
4192 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004198#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
4204#ifdef __STDC__
4205# include <limits.h>
4206#else
4207# include <assert.h>
4208#endif
mostang.com!davidm046362a2003-12-05 06:42:28 +00004209 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004210_ACEOF
4211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null; then
4219 if test -s conftest.err; then
4220 ac_cpp_err=$ac_c_preproc_warn_flag
4221 else
4222 ac_cpp_err=
4223 fi
4224else
4225 ac_cpp_err=yes
4226fi
4227if test -z "$ac_cpp_err"; then
4228 :
4229else
4230 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004231sed 's/^/| /' conftest.$ac_ext >&5
4232
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004233 # Broken: fails on valid input.
4234continue
4235fi
4236rm -f conftest.err conftest.$ac_ext
4237
4238 # OK, works on sane cases. Now check whether non-existent headers
4239 # can be detected and how.
4240 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004241#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004247#include <ac_nonexistent.h>
4248_ACEOF
4249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4259 else
4260 ac_cpp_err=
4261 fi
4262else
4263 ac_cpp_err=yes
4264fi
4265if test -z "$ac_cpp_err"; then
4266 # Broken: success on invalid input.
4267continue
4268else
4269 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004270sed 's/^/| /' conftest.$ac_ext >&5
4271
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004272 # Passes both tests.
4273ac_preproc_ok=:
4274break
4275fi
4276rm -f conftest.err conftest.$ac_ext
4277
4278done
4279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280rm -f conftest.err conftest.$ac_ext
4281if $ac_preproc_ok; then
4282 break
4283fi
4284
4285 done
4286 ac_cv_prog_CPP=$CPP
4287
4288fi
4289 CPP=$ac_cv_prog_CPP
4290else
4291 ac_cv_prog_CPP=$CPP
4292fi
4293echo "$as_me:$LINENO: result: $CPP" >&5
4294echo "${ECHO_T}$CPP" >&6
4295ac_preproc_ok=false
4296for ac_c_preproc_warn_flag in '' yes
4297do
4298 # Use a header file that comes with gcc, so configuring glibc
4299 # with a fresh cross-compiler works.
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4301 # <limits.h> exists even on freestanding compilers.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004302 # On the NeXT, cc -E runs the code through the compiler's parser,
4303 # not just through cpp. "Syntax error" is here to catch this case.
4304 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004305#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004306/* confdefs.h. */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h. */
4311#ifdef __STDC__
4312# include <limits.h>
4313#else
4314# include <assert.h>
4315#endif
mostang.com!davidm046362a2003-12-05 06:42:28 +00004316 Syntax error
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004317_ACEOF
4318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } >/dev/null; then
4326 if test -s conftest.err; then
4327 ac_cpp_err=$ac_c_preproc_warn_flag
4328 else
4329 ac_cpp_err=
4330 fi
4331else
4332 ac_cpp_err=yes
4333fi
4334if test -z "$ac_cpp_err"; then
4335 :
4336else
4337 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004338sed 's/^/| /' conftest.$ac_ext >&5
4339
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004340 # Broken: fails on valid input.
4341continue
4342fi
4343rm -f conftest.err conftest.$ac_ext
4344
4345 # OK, works on sane cases. Now check whether non-existent headers
4346 # can be detected and how.
4347 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004348#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004349/* confdefs.h. */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004354#include <ac_nonexistent.h>
4355_ACEOF
4356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev/null; then
4364 if test -s conftest.err; then
4365 ac_cpp_err=$ac_c_preproc_warn_flag
4366 else
4367 ac_cpp_err=
4368 fi
4369else
4370 ac_cpp_err=yes
4371fi
4372if test -z "$ac_cpp_err"; then
4373 # Broken: success on invalid input.
4374continue
4375else
4376 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004377sed 's/^/| /' conftest.$ac_ext >&5
4378
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004379 # Passes both tests.
4380ac_preproc_ok=:
4381break
4382fi
4383rm -f conftest.err conftest.$ac_ext
4384
4385done
4386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4387rm -f conftest.err conftest.$ac_ext
4388if $ac_preproc_ok; then
4389 :
4390else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004391 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4392See \`config.log' for more details." >&5
4393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4394See \`config.log' for more details." >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004395 { (exit 1); exit 1; }; }
4396fi
4397
4398ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004405echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4406echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4407if test "${ac_cv_header_stdc+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004411#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004417#include <stdlib.h>
4418#include <stdarg.h>
4419#include <string.h>
4420#include <float.h>
4421
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004429_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004430rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00004432 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004433 ac_status=$?
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004435 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00004436 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 (eval $ac_try) 2>&5
4439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004442 ac_cv_header_stdc=yes
4443else
4444 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447ac_cv_header_stdc=no
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004448fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00004449rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004450
4451if test $ac_cv_header_stdc = yes; then
4452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4453 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004454#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004460#include <string.h>
4461
4462_ACEOF
4463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464 $EGREP "memchr" >/dev/null 2>&1; then
4465 :
4466else
4467 ac_cv_header_stdc=no
4468fi
4469rm -f conftest*
4470
4471fi
4472
4473if test $ac_cv_header_stdc = yes; then
4474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4475 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004476#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004477/* confdefs.h. */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004482#include <stdlib.h>
4483
4484_ACEOF
4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "free" >/dev/null 2>&1; then
4487 :
4488else
4489 ac_cv_header_stdc=no
4490fi
4491rm -f conftest*
4492
4493fi
4494
4495if test $ac_cv_header_stdc = yes; then
4496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4497 if test "$cross_compiling" = yes; then
4498 :
4499else
4500 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004501#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004502/* confdefs.h. */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004507#include <ctype.h>
4508#if ((' ' & 0x0FF) == 0x020)
4509# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4510# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4511#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004512# define ISLOWER(c) \
mostang.com!davidm046362a2003-12-05 06:42:28 +00004513 (('a' <= (c) && (c) <= 'i') \
4514 || ('j' <= (c) && (c) <= 'r') \
4515 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004516# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4517#endif
4518
4519#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4520int
4521main ()
4522{
4523 int i;
4524 for (i = 0; i < 256; i++)
4525 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidm046362a2003-12-05 06:42:28 +00004526 || toupper (i) != TOUPPER (i))
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004527 exit(2);
4528 exit (0);
4529}
4530_ACEOF
4531rm -f conftest$ac_exeext
4532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533 (eval $ac_link) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 :
4543else
4544 echo "$as_me: program exited with status $ac_status" >&5
4545echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004546sed 's/^/| /' conftest.$ac_ext >&5
4547
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004548( exit $ac_status )
4549ac_cv_header_stdc=no
4550fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004551rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004552fi
4553fi
4554fi
4555echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4556echo "${ECHO_T}$ac_cv_header_stdc" >&6
4557if test $ac_cv_header_stdc = yes; then
4558
4559cat >>confdefs.h <<\_ACEOF
4560#define STDC_HEADERS 1
4561_ACEOF
4562
4563fi
4564
4565# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
mostang.com!davidm046362a2003-12-05 06:42:28 +00004576 inttypes.h stdint.h unistd.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004577do
4578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4579echo "$as_me:$LINENO: checking for $ac_header" >&5
4580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4581if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004585#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004586/* confdefs.h. */
4587_ACEOF
4588cat confdefs.h >>conftest.$ac_ext
4589cat >>conftest.$ac_ext <<_ACEOF
4590/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004591$ac_includes_default
4592
4593#include <$ac_header>
4594_ACEOF
4595rm -f conftest.$ac_objext
4596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00004597 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00004601 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 eval "$as_ac_Header=yes"
4608else
4609 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004610sed 's/^/| /' conftest.$ac_ext >&5
4611
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004612eval "$as_ac_Header=no"
4613fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00004614rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +00004615fi
4616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4618if test `eval echo '${'$as_ac_Header'}'` = yes; then
4619 cat >>confdefs.h <<_ACEOF
4620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4621_ACEOF
4622
4623fi
4624
4625done
4626
4627
4628
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004629for ac_header in dlfcn.h
4630do
4631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633 echo "$as_me:$LINENO: checking for $ac_header" >&5
4634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637fi
4638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4640else
4641 # Is the header compilable?
4642echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004645#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004646/* confdefs.h. */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004651$ac_includes_default
4652#include <$ac_header>
4653_ACEOF
4654rm -f conftest.$ac_objext
4655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00004656 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00004660 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_header_compiler=yes
4667else
4668 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004669sed 's/^/| /' conftest.$ac_ext >&5
4670
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004671ac_header_compiler=no
4672fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00004673rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4675echo "${ECHO_T}$ac_header_compiler" >&6
4676
4677# Is the header present?
4678echo "$as_me:$LINENO: checking $ac_header presence" >&5
4679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4680cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004681#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004682/* confdefs.h. */
4683_ACEOF
4684cat confdefs.h >>conftest.$ac_ext
4685cat >>conftest.$ac_ext <<_ACEOF
4686/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004687#include <$ac_header>
4688_ACEOF
4689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4691 ac_status=$?
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_c_preproc_warn_flag
4699 else
4700 ac_cpp_err=
4701 fi
4702else
4703 ac_cpp_err=yes
4704fi
4705if test -z "$ac_cpp_err"; then
4706 ac_header_preproc=yes
4707else
4708 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004709sed 's/^/| /' conftest.$ac_ext >&5
4710
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004711 ac_header_preproc=no
4712fi
4713rm -f conftest.err conftest.$ac_ext
4714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4715echo "${ECHO_T}$ac_header_preproc" >&6
4716
4717# So? What about this header?
mostang.com!davidm046362a2003-12-05 06:42:28 +00004718case $ac_header_compiler:$ac_header_preproc in
4719 yes:no )
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4724 (
4725 cat <<\_ASBOX
mostang.com!davidm046362a2003-12-05 06:42:28 +00004726## ------------------------------------ ##
4727## Report this to bug-autoconf@gnu.org. ##
4728## ------------------------------------ ##
4729_ASBOX
4730 ) |
4731 sed "s/^/$as_me: WARNING: /" >&2
4732 ;;
4733 no:yes )
4734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4737echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4740 (
4741 cat <<\_ASBOX
4742## ------------------------------------ ##
4743## Report this to bug-autoconf@gnu.org. ##
4744## ------------------------------------ ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +00004745_ASBOX
4746 ) |
4747 sed "s/^/$as_me: WARNING: /" >&2
4748 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004749esac
4750echo "$as_me:$LINENO: checking for $ac_header" >&5
4751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4752if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
mostang.com!davidm046362a2003-12-05 06:42:28 +00004755 eval "$as_ac_Header=$ac_header_preproc"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004756fi
4757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4759
4760fi
4761if test `eval echo '${'$as_ac_Header'}'` = yes; then
4762 cat >>confdefs.h <<_ACEOF
4763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4764_ACEOF
4765
4766fi
4767
4768done
4769
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004770ac_ext=cc
4771ac_cpp='$CXXCPP $CPPFLAGS'
4772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4775echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4776echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4777if test -z "$CXXCPP"; then
4778 if test "${ac_cv_prog_CXXCPP+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004781 # Double quotes because CXXCPP needs to be expanded
4782 for CXXCPP in "$CXX -E" "/lib/cpp"
4783 do
4784 ac_preproc_ok=false
4785for ac_cxx_preproc_warn_flag in '' yes
4786do
4787 # Use a header file that comes with gcc, so configuring glibc
4788 # with a fresh cross-compiler works.
4789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4790 # <limits.h> exists even on freestanding compilers.
4791 # On the NeXT, cc -E runs the code through the compiler's parser,
4792 # not just through cpp. "Syntax error" is here to catch this case.
4793 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004794#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004795/* confdefs.h. */
4796_ACEOF
4797cat confdefs.h >>conftest.$ac_ext
4798cat >>conftest.$ac_ext <<_ACEOF
4799/* end confdefs.h. */
4800#ifdef __STDC__
4801# include <limits.h>
4802#else
4803# include <assert.h>
4804#endif
mostang.com!davidm046362a2003-12-05 06:42:28 +00004805 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004806_ACEOF
4807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null; then
4815 if test -s conftest.err; then
4816 ac_cpp_err=$ac_cxx_preproc_warn_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00004817 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004818 ac_cpp_err=
4819 fi
4820else
4821 ac_cpp_err=yes
4822fi
4823if test -z "$ac_cpp_err"; then
4824 :
4825else
4826 echo "$as_me: failed program was:" >&5
4827sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 # Broken: fails on valid input.
4830continue
4831fi
4832rm -f conftest.err conftest.$ac_ext
4833
4834 # OK, works on sane cases. Now check whether non-existent headers
4835 # can be detected and how.
4836 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004837#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004838/* confdefs.h. */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h. */
4843#include <ac_nonexistent.h>
4844_ACEOF
4845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null; then
4853 if test -s conftest.err; then
4854 ac_cpp_err=$ac_cxx_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004855 else
4856 ac_cpp_err=
4857 fi
4858else
4859 ac_cpp_err=yes
4860fi
4861if test -z "$ac_cpp_err"; then
4862 # Broken: success on invalid input.
4863continue
4864else
4865 echo "$as_me: failed program was:" >&5
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 # Passes both tests.
4869ac_preproc_ok=:
4870break
4871fi
4872rm -f conftest.err conftest.$ac_ext
4873
4874done
4875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4876rm -f conftest.err conftest.$ac_ext
4877if $ac_preproc_ok; then
4878 break
4879fi
4880
4881 done
4882 ac_cv_prog_CXXCPP=$CXXCPP
4883
4884fi
4885 CXXCPP=$ac_cv_prog_CXXCPP
4886else
4887 ac_cv_prog_CXXCPP=$CXXCPP
4888fi
4889echo "$as_me:$LINENO: result: $CXXCPP" >&5
4890echo "${ECHO_T}$CXXCPP" >&6
4891ac_preproc_ok=false
4892for ac_cxx_preproc_warn_flag in '' yes
4893do
4894 # Use a header file that comes with gcc, so configuring glibc
4895 # with a fresh cross-compiler works.
4896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4897 # <limits.h> exists even on freestanding compilers.
4898 # On the NeXT, cc -E runs the code through the compiler's parser,
4899 # not just through cpp. "Syntax error" is here to catch this case.
4900 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004901#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#ifdef __STDC__
4908# include <limits.h>
4909#else
4910# include <assert.h>
4911#endif
mostang.com!davidm046362a2003-12-05 06:42:28 +00004912 Syntax error
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004913_ACEOF
4914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4916 ac_status=$?
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null; then
4922 if test -s conftest.err; then
4923 ac_cpp_err=$ac_cxx_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004924 else
4925 ac_cpp_err=
4926 fi
4927else
4928 ac_cpp_err=yes
4929fi
4930if test -z "$ac_cpp_err"; then
4931 :
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 # Broken: fails on valid input.
4937continue
4938fi
4939rm -f conftest.err conftest.$ac_ext
4940
4941 # OK, works on sane cases. Now check whether non-existent headers
4942 # can be detected and how.
4943 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00004944#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
4950#include <ac_nonexistent.h>
4951_ACEOF
4952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null; then
4960 if test -s conftest.err; then
4961 ac_cpp_err=$ac_cxx_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00004962 else
4963 ac_cpp_err=
4964 fi
4965else
4966 ac_cpp_err=yes
4967fi
4968if test -z "$ac_cpp_err"; then
4969 # Broken: success on invalid input.
4970continue
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
4975 # Passes both tests.
4976ac_preproc_ok=:
4977break
4978fi
4979rm -f conftest.err conftest.$ac_ext
4980
4981done
4982# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983rm -f conftest.err conftest.$ac_ext
4984if $ac_preproc_ok; then
4985 :
4986else
4987 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4988See \`config.log' for more details." >&5
4989echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4990See \`config.log' for more details." >&2;}
4991 { (exit 1); exit 1; }; }
4992fi
4993
4994ac_ext=cc
4995ac_cpp='$CXXCPP $CPPFLAGS'
4996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4999
5000
5001ac_ext=f
5002ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5003ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5005if test -n "$ac_tool_prefix"; then
mostang.com!davidm046362a2003-12-05 06:42:28 +00005006 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005007 do
5008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_prog_F77+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 if test -n "$F77"; then
5016 ac_cv_prog_F77="$F77" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030done
5031
5032fi
5033fi
5034F77=$ac_cv_prog_F77
5035if test -n "$F77"; then
5036 echo "$as_me:$LINENO: result: $F77" >&5
5037echo "${ECHO_T}$F77" >&6
5038else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041fi
5042
5043 test -n "$F77" && break
5044 done
5045fi
5046if test -z "$F77"; then
5047 ac_ct_F77=$F77
mostang.com!davidm046362a2003-12-05 06:42:28 +00005048 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005049do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051set dummy $ac_prog; ac_word=$2
5052echo "$as_me:$LINENO: checking for $ac_word" >&5
5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056else
5057 if test -n "$ac_ct_F77"; then
5058 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_ac_ct_F77="$ac_prog"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071done
5072done
5073
5074fi
5075fi
5076ac_ct_F77=$ac_cv_prog_ac_ct_F77
5077if test -n "$ac_ct_F77"; then
5078 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5079echo "${ECHO_T}$ac_ct_F77" >&6
5080else
5081 echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6
5083fi
5084
5085 test -n "$ac_ct_F77" && break
5086done
5087
5088 F77=$ac_ct_F77
5089fi
5090
5091
5092# Provide some information about the compiler.
mostang.com!davidm046362a2003-12-05 06:42:28 +00005093echo "$as_me:5093:" \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005094 "checking for Fortran 77 compiler version" >&5
5095ac_compiler=`set X $ac_compile; echo $2`
5096{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5097 (eval $ac_compiler --version </dev/null >&5) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }
5101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5102 (eval $ac_compiler -v </dev/null >&5) 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }
5106{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5107 (eval $ac_compiler -V </dev/null >&5) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005111
5112# If we don't use `.F' as extension, the preprocessor is not run on the
mostang.com!davidm046362a2003-12-05 06:42:28 +00005113# input file.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005114ac_save_ext=$ac_ext
5115ac_ext=F
5116echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5117echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5118if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121 cat >conftest.$ac_ext <<_ACEOF
5122 program main
5123#ifndef __GNUC__
5124 choke me
5125#endif
5126
5127 end
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00005131 (eval $ac_compile) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005132 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00005135 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_compiler_gnu=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146ac_compiler_gnu=no
5147fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00005148rm -f conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005149ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5150
5151fi
5152echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5153echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5154ac_ext=$ac_save_ext
mostang.com!davidm046362a2003-12-05 06:42:28 +00005155G77=`test $ac_compiler_gnu = yes && echo yes`
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005156ac_test_FFLAGS=${FFLAGS+set}
5157ac_save_FFLAGS=$FFLAGS
5158FFLAGS=
5159echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5160echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5161if test "${ac_cv_prog_f77_g+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 FFLAGS=-g
5165cat >conftest.$ac_ext <<_ACEOF
5166 program main
5167
5168 end
5169_ACEOF
5170rm -f conftest.$ac_objext
5171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00005172 (eval $ac_compile) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005173 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00005176 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_prog_f77_g=yes
5183else
5184 echo "$as_me: failed program was:" >&5
5185sed 's/^/| /' conftest.$ac_ext >&5
5186
5187ac_cv_prog_f77_g=no
5188fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00005189rm -f conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005190
5191fi
5192echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5193echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5194if test "$ac_test_FFLAGS" = set; then
5195 FFLAGS=$ac_save_FFLAGS
5196elif test $ac_cv_prog_f77_g = yes; then
mostang.com!davidm046362a2003-12-05 06:42:28 +00005197 if test "$G77" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005198 FFLAGS="-g -O2"
5199 else
5200 FFLAGS="-g"
5201 fi
5202else
mostang.com!davidm046362a2003-12-05 06:42:28 +00005203 if test "$G77" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005204 FFLAGS="-O2"
5205 else
5206 FFLAGS=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005207 fi
5208fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005209ac_ext=c
5210ac_cpp='$CPP $CPPFLAGS'
5211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214
5215
5216
5217# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5218
5219# find the maximum length of command line arguments
5220echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5221echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5222if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 i=0
5226 testring="ABCD"
5227
5228 case $build_os in
5229 msdosdjgpp*)
5230 # On DJGPP, this test can blow up pretty badly due to problems in libc
5231 # (any single argument exceeding 2000 bytes causes a buffer overrun
5232 # during glob expansion). Even if it were fixed, the result of this
5233 # check would be larger than it should be.
5234 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5235 ;;
5236
5237 gnu*)
5238 # Under GNU Hurd, this test is not required because there is
5239 # no limit to the length of command line arguments.
5240 # Libtool will interpret -1 as no limit whatsoever
5241 lt_cv_sys_max_cmd_len=-1;
5242 ;;
5243
5244 cygwin* | mingw*)
5245 # On Win9x/ME, this test blows up -- it succeeds, but takes
5246 # about 5 minutes as the teststring grows exponentially.
5247 # Worse, since 9x/ME are not pre-emptively multitasking,
5248 # you end up with a "frozen" computer, even though with patience
5249 # the test eventually succeeds (with a max line length of 256k).
5250 # Instead, let's just punt: use the minimum linelength reported by
5251 # all of the supported platforms: 8192 (on NT/2K/XP).
5252 lt_cv_sys_max_cmd_len=8192;
5253 ;;
5254
5255 amigaos*)
5256 # On AmigaOS with pdksh, this test takes hours, literally.
5257 # So we just punt and use a minimum line length of 8192.
5258 lt_cv_sys_max_cmd_len=8192;
5259 ;;
5260
5261 *)
5262 # If test is not a shell built-in, we'll probably end up computing a
5263 # maximum length that is only half of the actual maximum length, but
5264 # we can't tell.
5265 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5266 = "XX$testring") >/dev/null 2>&1 &&
5267 new_result=`expr "X$testring" : ".*" 2>&1` &&
5268 lt_cv_sys_max_cmd_len=$new_result &&
5269 test $i != 17 # 1/2 MB should be enough
5270 do
5271 i=`expr $i + 1`
5272 testring=$testring$testring
5273 done
5274 testring=
5275 # Add a significant safety factor because C++ compilers can tack on massive
5276 # amounts of additional arguments before passing them to the linker.
5277 # It appears as though 1/2 is a usable value.
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5279 ;;
5280 esac
5281
5282fi
5283
5284if test -n $lt_cv_sys_max_cmd_len ; then
5285 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5286echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5287else
5288 echo "$as_me:$LINENO: result: none" >&5
5289echo "${ECHO_T}none" >&6
5290fi
5291
5292
5293
5294
5295# Check for command to grab the raw symbol name followed by C symbol from nm.
5296echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5297echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5298if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301
5302# These are sane defaults that work on at least a few old systems.
5303# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5304
5305# Character class describing NM global symbol codes.
5306symcode='[BCDEGRST]'
5307
5308# Regexp to match symbols that can be accessed directly from C.
5309sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5310
5311# Transform the above into a raw symbol and a C symbol.
5312symxfrm='\1 \2\3 \3'
5313
5314# Transform an extracted symbol line into a proper C declaration
5315lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5316
5317# Transform an extracted symbol line into symbol name and symbol address
5318lt_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'"
5319
5320# Define system-specific variables.
5321case $host_os in
5322aix*)
5323 symcode='[BCDT]'
5324 ;;
5325cygwin* | mingw* | pw32*)
5326 symcode='[ABCDGISTW]'
5327 ;;
5328hpux*) # Its linker distinguishes data from code symbols
5329 if test "$host_cpu" = ia64; then
5330 symcode='[ABCDEGRST]'
5331 fi
5332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5333 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'"
5334 ;;
5335irix* | nonstopux*)
5336 symcode='[BCDEGRST]'
5337 ;;
5338osf*)
5339 symcode='[BCDEGQRST]'
5340 ;;
5341solaris* | sysv5*)
5342 symcode='[BDRT]'
5343 ;;
5344sysv4)
5345 symcode='[DFNSTU]'
5346 ;;
5347esac
5348
5349# Handle CRLF in mingw tool chain
5350opt_cr=
5351case $build_os in
5352mingw*)
5353 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5354 ;;
5355esac
5356
5357# If we're using GNU nm, then use its standard symbol codes.
5358case `$NM -V 2>&1` in
5359*GNU* | *'with BFD'*)
5360 symcode='[ABCDGIRSTW]' ;;
5361esac
5362
5363# Try without a prefix undercore, then with it.
5364for ac_symprfx in "" "_"; do
5365
5366 # Write the raw and C identifiers.
5367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5368
5369 # Check to see that the pipe works correctly.
5370 pipe_works=no
5371
5372 rm -f conftest*
5373 cat > conftest.$ac_ext <<EOF
5374#ifdef __cplusplus
5375extern "C" {
5376#endif
5377char nm_test_var;
5378void nm_test_func(){}
5379#ifdef __cplusplus
5380}
5381#endif
5382int main(){nm_test_var='a';nm_test_func();return(0);}
5383EOF
5384
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }; then
5390 # Now try to grab the symbols.
5391 nlist=conftest.nm
5392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && test -s "$nlist"; then
5397 # Try sorting and uniquifying the output.
5398 if sort "$nlist" | uniq > "$nlist"T; then
5399 mv -f "$nlist"T "$nlist"
5400 else
5401 rm -f "$nlist"T
5402 fi
5403
5404 # Make sure that we snagged all the symbols we need.
5405 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5406 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5407 cat <<EOF > conftest.$ac_ext
5408#ifdef __cplusplus
5409extern "C" {
5410#endif
5411
5412EOF
5413 # Now generate the symbol file.
5414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5415
5416 cat <<EOF >> conftest.$ac_ext
5417#if defined (__STDC__) && __STDC__
5418# define lt_ptr_t void *
5419#else
5420# define lt_ptr_t char *
5421# define const
5422#endif
5423
5424/* The mapping between symbol names and symbols. */
5425const struct {
5426 const char *name;
5427 lt_ptr_t address;
5428}
5429lt_preloaded_symbols[] =
5430{
5431EOF
5432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5433 cat <<\EOF >> conftest.$ac_ext
5434 {0, (lt_ptr_t) 0}
5435};
5436
5437#ifdef __cplusplus
5438}
5439#endif
5440EOF
5441 # Now try linking the two files.
5442 mv conftest.$ac_objext conftstm.$ac_objext
5443 lt_save_LIBS="$LIBS"
5444 lt_save_CFLAGS="$CFLAGS"
5445 LIBS="conftstm.$ac_objext"
5446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5452 pipe_works=yes
5453 fi
5454 LIBS="$lt_save_LIBS"
5455 CFLAGS="$lt_save_CFLAGS"
5456 else
5457 echo "cannot find nm_test_func in $nlist" >&5
5458 fi
5459 else
5460 echo "cannot find nm_test_var in $nlist" >&5
5461 fi
5462 else
5463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5464 fi
5465 else
5466 echo "$progname: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 fi
5469 rm -f conftest* conftst*
5470
5471 # Do not use the global_symbol_pipe unless it works.
5472 if test "$pipe_works" = yes; then
5473 break
5474 else
5475 lt_cv_sys_global_symbol_pipe=
5476 fi
5477done
5478
5479fi
5480
5481if test -z "$lt_cv_sys_global_symbol_pipe"; then
5482 lt_cv_sys_global_symbol_to_cdecl=
5483fi
5484if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5485 echo "$as_me:$LINENO: result: failed" >&5
5486echo "${ECHO_T}failed" >&6
5487else
5488 echo "$as_me:$LINENO: result: ok" >&5
5489echo "${ECHO_T}ok" >&6
5490fi
5491
5492echo "$as_me:$LINENO: checking for objdir" >&5
5493echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5494if test "${lt_cv_objdir+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497 rm -f .libs 2>/dev/null
5498mkdir .libs 2>/dev/null
5499if test -d .libs; then
5500 lt_cv_objdir=.libs
5501else
5502 # MS-DOS does not allow filenames that begin with a dot.
5503 lt_cv_objdir=_libs
5504fi
5505rmdir .libs 2>/dev/null
5506fi
5507echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5508echo "${ECHO_T}$lt_cv_objdir" >&6
5509objdir=$lt_cv_objdir
5510
5511
5512
5513
5514
5515case $host_os in
5516aix3*)
5517 # AIX sometimes has problems with the GCC collect2 program. For some
5518 # reason, if we set the COLLECT_NAMES environment variable, the problems
5519 # vanish in a puff of smoke.
5520 if test "X${COLLECT_NAMES+set}" != Xset; then
5521 COLLECT_NAMES=
5522 export COLLECT_NAMES
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005523 fi
5524 ;;
5525esac
5526
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005527# Sed substitution that helps us do robust quoting. It backslashifies
5528# metacharacters that are still active within double-quoted strings.
5529Xsed='sed -e s/^X//'
5530sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5531
5532# Same as above, but do not quote variable references.
5533double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5534
5535# Sed substitution to delay expansion of an escaped shell variable in a
5536# double_quote_subst'ed string.
5537delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5538
5539# Sed substitution to avoid accidental globbing in evaled expressions
5540no_glob_subst='s/\*/\\\*/g'
5541
5542# Constants:
5543rm="rm -f"
5544
5545# Global variables:
5546default_ofile=libtool
5547can_build_shared=yes
5548
5549# All known linkers require a `.a' archive for static linking (except M$VC,
5550# which needs '.lib').
5551libext=a
5552ltmain="$ac_aux_dir/ltmain.sh"
5553ofile="$default_ofile"
5554with_gnu_ld="$lt_cv_prog_gnu_ld"
5555
5556if test -n "$ac_tool_prefix"; then
5557 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5558set dummy ${ac_tool_prefix}ar; ac_word=$2
5559echo "$as_me:$LINENO: checking for $ac_word" >&5
5560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5561if test "${ac_cv_prog_AR+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564 if test -n "$AR"; then
5565 ac_cv_prog_AR="$AR" # Let the user override the test.
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_AR="${ac_tool_prefix}ar"
5575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
5579done
5580
5581fi
5582fi
5583AR=$ac_cv_prog_AR
5584if test -n "$AR"; then
5585 echo "$as_me:$LINENO: result: $AR" >&5
5586echo "${ECHO_T}$AR" >&6
5587else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590fi
5591
5592fi
5593if test -z "$ac_cv_prog_AR"; then
5594 ac_ct_AR=$AR
5595 # Extract the first word of "ar", so it can be a program name with args.
5596set dummy ar; ac_word=$2
5597echo "$as_me:$LINENO: checking for $ac_word" >&5
5598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5599if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 if test -n "$ac_ct_AR"; then
5603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_ac_ct_AR="ar"
5613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616done
5617done
5618
5619 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5620fi
5621fi
5622ac_ct_AR=$ac_cv_prog_ac_ct_AR
5623if test -n "$ac_ct_AR"; then
5624 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5625echo "${ECHO_T}$ac_ct_AR" >&6
5626else
5627 echo "$as_me:$LINENO: result: no" >&5
5628echo "${ECHO_T}no" >&6
5629fi
5630
5631 AR=$ac_ct_AR
5632else
5633 AR="$ac_cv_prog_AR"
5634fi
5635
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005636if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5639echo "$as_me:$LINENO: checking for $ac_word" >&5
5640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5641if test "${ac_cv_prog_RANLIB+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 if test -n "$RANLIB"; then
5645 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658done
5659done
5660
5661fi
5662fi
5663RANLIB=$ac_cv_prog_RANLIB
5664if test -n "$RANLIB"; then
5665 echo "$as_me:$LINENO: result: $RANLIB" >&5
5666echo "${ECHO_T}$RANLIB" >&6
5667else
5668 echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670fi
5671
5672fi
5673if test -z "$ac_cv_prog_RANLIB"; then
5674 ac_ct_RANLIB=$RANLIB
5675 # Extract the first word of "ranlib", so it can be a program name with args.
5676set dummy ranlib; ac_word=$2
5677echo "$as_me:$LINENO: checking for $ac_word" >&5
5678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5679if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682 if test -n "$ac_ct_RANLIB"; then
5683 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ac_ct_RANLIB="ranlib"
5693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696done
5697done
5698
5699 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5700fi
5701fi
5702ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5703if test -n "$ac_ct_RANLIB"; then
5704 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5705echo "${ECHO_T}$ac_ct_RANLIB" >&6
5706else
5707 echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
5709fi
5710
5711 RANLIB=$ac_ct_RANLIB
5712else
5713 RANLIB="$ac_cv_prog_RANLIB"
5714fi
5715
5716if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5718set dummy ${ac_tool_prefix}strip; ac_word=$2
5719echo "$as_me:$LINENO: checking for $ac_word" >&5
5720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721if test "${ac_cv_prog_STRIP+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724 if test -n "$STRIP"; then
5725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739done
5740
5741fi
5742fi
5743STRIP=$ac_cv_prog_STRIP
5744if test -n "$STRIP"; then
5745 echo "$as_me:$LINENO: result: $STRIP" >&5
5746echo "${ECHO_T}$STRIP" >&6
5747else
5748 echo "$as_me:$LINENO: result: no" >&5
5749echo "${ECHO_T}no" >&6
5750fi
5751
5752fi
5753if test -z "$ac_cv_prog_STRIP"; then
5754 ac_ct_STRIP=$STRIP
5755 # Extract the first word of "strip", so it can be a program name with args.
5756set dummy strip; ac_word=$2
5757echo "$as_me:$LINENO: checking for $ac_word" >&5
5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762 if test -n "$ac_ct_STRIP"; then
5763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_STRIP="strip"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776done
5777done
5778
5779 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5780fi
5781fi
5782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5783if test -n "$ac_ct_STRIP"; then
5784 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5785echo "${ECHO_T}$ac_ct_STRIP" >&6
5786else
5787 echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789fi
5790
5791 STRIP=$ac_ct_STRIP
5792else
5793 STRIP="$ac_cv_prog_STRIP"
5794fi
5795
5796
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005797old_CC="$CC"
5798old_CFLAGS="$CFLAGS"
5799
5800# Set sane defaults for various variables
5801test -z "$AR" && AR=ar
5802test -z "$AR_FLAGS" && AR_FLAGS=cru
5803test -z "$AS" && AS=as
5804test -z "$CC" && CC=cc
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005805test -z "$LTCC" && LTCC=$CC
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005806test -z "$DLLTOOL" && DLLTOOL=dlltool
5807test -z "$LD" && LD=ld
5808test -z "$LN_S" && LN_S="ln -s"
5809test -z "$MAGIC_CMD" && MAGIC_CMD=file
5810test -z "$NM" && NM=nm
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005811test -z "$SED" && SED=sed
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005812test -z "$OBJDUMP" && OBJDUMP=objdump
5813test -z "$RANLIB" && RANLIB=:
5814test -z "$STRIP" && STRIP=:
5815test -z "$ac_objext" && ac_objext=o
5816
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005817# Determine commands to create old-style static archives.
5818old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5819old_postinstall_cmds='chmod 644 $oldlib'
5820old_postuninstall_cmds=
5821
5822if test -n "$RANLIB"; then
5823 case $host_os in
5824 openbsd*)
5825 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5826 ;;
5827 *)
5828 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5829 ;;
5830 esac
5831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5832fi
5833
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005834# Only perform the check for file, if the check method requires it
5835case $deplibs_check_method in
5836file_magic*)
5837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5838 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5839echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5840if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005842else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005843 case $MAGIC_CMD in
5844[\\/*] | ?:[\\/]*)
5845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5846 ;;
5847*)
5848 lt_save_MAGIC_CMD="$MAGIC_CMD"
5849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5851 for ac_dir in $ac_dummy; do
5852 IFS="$lt_save_ifs"
5853 test -z "$ac_dir" && ac_dir=.
5854 if test -f $ac_dir/${ac_tool_prefix}file; then
5855 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5856 if test -n "$file_magic_test_file"; then
5857 case $deplibs_check_method in
5858 "file_magic "*)
5859 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5862 $EGREP "$file_magic_regex" > /dev/null; then
5863 :
5864 else
5865 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005866
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005867*** Warning: the command libtool uses to detect shared libraries,
5868*** $file_magic_cmd, produces output that libtool cannot recognize.
5869*** The result is that libtool may fail to recognize shared libraries
5870*** as such. This will affect the creation of libtool libraries that
5871*** depend on shared libraries, but programs linked with such libtool
5872*** libraries will work regardless of this problem. Nevertheless, you
5873*** may want to report the problem to your system manager and/or to
5874*** bug-libtool@gnu.org
5875
5876EOF
5877 fi ;;
5878 esac
5879 fi
5880 break
5881 fi
5882 done
5883 IFS="$lt_save_ifs"
5884 MAGIC_CMD="$lt_save_MAGIC_CMD"
5885 ;;
5886esac
5887fi
5888
5889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5890if test -n "$MAGIC_CMD"; then
5891 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5892echo "${ECHO_T}$MAGIC_CMD" >&6
5893else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896fi
5897
5898if test -z "$lt_cv_path_MAGIC_CMD"; then
5899 if test -n "$ac_tool_prefix"; then
5900 echo "$as_me:$LINENO: checking for file" >&5
5901echo $ECHO_N "checking for file... $ECHO_C" >&6
5902if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905 case $MAGIC_CMD in
5906[\\/*] | ?:[\\/]*)
5907 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5908 ;;
5909*)
5910 lt_save_MAGIC_CMD="$MAGIC_CMD"
5911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5912 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5913 for ac_dir in $ac_dummy; do
5914 IFS="$lt_save_ifs"
5915 test -z "$ac_dir" && ac_dir=.
5916 if test -f $ac_dir/file; then
5917 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5918 if test -n "$file_magic_test_file"; then
5919 case $deplibs_check_method in
5920 "file_magic "*)
5921 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5922 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5923 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5924 $EGREP "$file_magic_regex" > /dev/null; then
5925 :
5926 else
5927 cat <<EOF 1>&2
5928
5929*** Warning: the command libtool uses to detect shared libraries,
5930*** $file_magic_cmd, produces output that libtool cannot recognize.
5931*** The result is that libtool may fail to recognize shared libraries
5932*** as such. This will affect the creation of libtool libraries that
5933*** depend on shared libraries, but programs linked with such libtool
5934*** libraries will work regardless of this problem. Nevertheless, you
5935*** may want to report the problem to your system manager and/or to
5936*** bug-libtool@gnu.org
5937
5938EOF
5939 fi ;;
5940 esac
5941 fi
5942 break
5943 fi
5944 done
5945 IFS="$lt_save_ifs"
5946 MAGIC_CMD="$lt_save_MAGIC_CMD"
5947 ;;
5948esac
5949fi
5950
5951MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5952if test -n "$MAGIC_CMD"; then
5953 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5954echo "${ECHO_T}$MAGIC_CMD" >&6
5955else
5956 echo "$as_me:$LINENO: result: no" >&5
5957echo "${ECHO_T}no" >&6
5958fi
5959
5960 else
5961 MAGIC_CMD=:
5962 fi
5963fi
5964
5965 fi
5966 ;;
5967esac
5968
5969enable_dlopen=no
5970enable_win32_dll=no
5971
5972# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5973if test "${enable_libtool_lock+set}" = set; then
5974 enableval="$enable_libtool_lock"
5975
5976fi;
5977test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00005978
5979
5980# Check whether --with-pic or --without-pic was given.
5981if test "${with_pic+set}" = set; then
5982 withval="$with_pic"
5983 pic_mode="$withval"
5984else
5985 pic_mode=default
5986fi;
5987test -z "$pic_mode" && pic_mode=default
5988
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00005989# Use C for the default configuration in the libtool script
5990tagname=
5991lt_save_CC="$CC"
5992ac_ext=c
5993ac_cpp='$CPP $CPPFLAGS'
5994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997
5998
5999# Source file extension for C test sources.
6000ac_ext=c
6001
6002# Object file extension for compiled C test sources.
6003objext=o
6004objext=$objext
6005
6006# Code to be used in simple compile tests
6007lt_simple_compile_test_code="int some_variable = 0;\n"
6008
6009# Code to be used in simple link tests
6010lt_simple_link_test_code='int main(){return(0);}\n'
6011
6012
6013# If no C compiler was specified, use CC.
6014LTCC=${LTCC-"$CC"}
6015
6016# Allow CC to be a program name with arguments.
6017compiler=$CC
6018
6019
6020#
6021# Check for any special shared library compilation flags.
6022#
6023lt_prog_cc_shlib=
6024if test "$GCC" = no; then
6025 case $host_os in
6026 sco3.2v5*)
6027 lt_prog_cc_shlib='-belf'
6028 ;;
6029 esac
6030fi
6031if test -n "$lt_prog_cc_shlib"; then
6032 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6033echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6034 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6035 else
6036 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6037echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6038 lt_cv_prog_cc_can_build_shared=no
6039 fi
6040fi
6041
6042
6043#
6044# Check to make sure the static flag actually works.
6045#
6046echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6047echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6048if test "${lt_prog_compiler_static_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006051 lt_prog_compiler_static_works=no
6052 save_LDFLAGS="$LDFLAGS"
6053 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6054 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6056 # The compiler can only warn and ignore the option if not recognized
6057 # So say no if there are warnings
6058 if test -s conftest.err; then
6059 # Append any errors to the config.log.
6060 cat conftest.err 1>&5
6061 else
6062 lt_prog_compiler_static_works=yes
6063 fi
6064 fi
6065 $rm conftest*
6066 LDFLAGS="$save_LDFLAGS"
6067
6068fi
6069echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6070echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6071
6072if test x"$lt_prog_compiler_static_works" = xyes; then
6073 :
6074else
6075 lt_prog_compiler_static=
6076fi
6077
6078
6079
6080
6081lt_prog_compiler_no_builtin_flag=
6082
6083if test "$GCC" = yes; then
6084 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6085
6086
6087echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6088echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6089if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 lt_cv_prog_compiler_rtti_exceptions=no
6093 ac_outfile=conftest.$ac_objext
6094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6095 lt_compiler_flag="-fno-rtti -fno-exceptions"
6096 # Insert the option either (1) after the last *FLAGS variable, or
6097 # (2) before a word containing "conftest.", or (3) at the end.
6098 # Note that $ac_compile itself does not contain backslashes and begins
6099 # with a dollar sign (not a hyphen), so the echo should work correctly.
6100 # The option is referenced via a variable to avoid confusing sed.
6101 lt_compile=`echo "$ac_compile" | $SED \
6102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6104 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +00006105 (eval echo "\"\$as_me:6105: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006106 (eval "$lt_compile" 2>conftest.err)
6107 ac_status=$?
6108 cat conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00006109 echo "$as_me:6109: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006110 if (exit $ac_status) && test -s "$ac_outfile"; then
6111 # The compiler can only warn and ignore the option if not recognized
6112 # So say no if there are warnings
6113 if test ! -s conftest.err; then
6114 lt_cv_prog_compiler_rtti_exceptions=yes
6115 fi
6116 fi
6117 $rm conftest*
6118
6119fi
6120echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6121echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6122
6123if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6124 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6125else
6126 :
6127fi
6128
6129fi
6130
6131lt_prog_compiler_wl=
6132lt_prog_compiler_pic=
6133lt_prog_compiler_static=
6134
6135echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6136echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006137
6138 if test "$GCC" = yes; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006139 lt_prog_compiler_wl='-Wl,'
6140 lt_prog_compiler_static='-static'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006141
6142 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006143 aix*)
6144 # All AIX code is PIC.
6145 if test "$host_cpu" = ia64; then
6146 # AIX 5 now supports IA64 processor
6147 lt_prog_compiler_static='-Bstatic'
6148 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006149 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006150
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006151 amigaos*)
6152 # FIXME: we need at least 68020 code to build shared libraries, but
6153 # adding the `-m68020' flag to GCC prevents building anything better,
6154 # like `-m68040'.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006155 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006156 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006157
6158 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006159 # PIC is the default for these OSes.
6160 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006161
6162 mingw* | pw32* | os2*)
6163 # This hack is so that the source file can tell whether it is being
6164 # built for inclusion in a dll (and should export symbols for example).
6165 lt_prog_compiler_pic='-DDLL_EXPORT'
6166 ;;
6167
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006168 darwin* | rhapsody*)
6169 # PIC is the default on this platform
6170 # Common symbols not allowed in MH_DYLIB files
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006171 lt_prog_compiler_pic='-fno-common'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006172 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006173
6174 msdosdjgpp*)
6175 # Just because we use GCC doesn't mean we suddenly get shared libraries
6176 # on systems that don't support them.
6177 lt_prog_compiler_can_build_shared=no
6178 enable_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006179 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006180
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006181 sysv4*MP*)
6182 if test -d /usr/nec; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006183 lt_prog_compiler_pic=-Kconform_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006184 fi
6185 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006186
6187 hpux*)
6188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6189 # not for PA HP-UX.
6190 case "$host_cpu" in
6191 hppa*64*|ia64*)
6192 # +Z the default
6193 ;;
6194 *)
6195 lt_prog_compiler_pic='-fPIC'
6196 ;;
6197 esac
6198 ;;
6199
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006200 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006201 lt_prog_compiler_pic='-fPIC'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006202 ;;
6203 esac
6204 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006205 # PORTME Check for flag to pass linker flags through the system compiler.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006206 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006207 aix*)
6208 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006209 if test "$host_cpu" = ia64; then
6210 # AIX 5 now supports IA64 processor
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006211 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006212 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006213 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006214 fi
6215 ;;
6216
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006217 mingw* | pw32* | os2*)
6218 # This hack is so that the source file can tell whether it is being
6219 # built for inclusion in a dll (and should export symbols for example).
6220 lt_prog_compiler_pic='-DDLL_EXPORT'
6221 ;;
6222
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006223 hpux9* | hpux10* | hpux11*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006224 lt_prog_compiler_wl='-Wl,'
6225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6226 # not for PA HP-UX.
6227 case "$host_cpu" in
6228 hppa*64*|ia64*)
6229 # +Z the default
6230 ;;
6231 *)
6232 lt_prog_compiler_pic='+Z'
6233 ;;
6234 esac
6235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6236 lt_prog_compiler_static='${wl}-a ${wl}archive'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006237 ;;
6238
6239 irix5* | irix6* | nonstopux*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006240 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006241 # PIC (with -KPIC) is the default.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006242 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006243 ;;
6244
6245 newsos6)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006246 lt_prog_compiler_pic='-KPIC'
6247 lt_prog_compiler_static='-Bstatic'
6248 ;;
6249
6250 linux*)
6251 case $CC in
6252 icc* | ecc*)
6253 lt_prog_compiler_wl='-Wl,'
6254 lt_prog_compiler_pic='-KPIC'
6255 lt_prog_compiler_static='-static'
6256 ;;
6257 ccc*)
6258 lt_prog_compiler_wl='-Wl,'
6259 # All Alpha code is PIC.
6260 lt_prog_compiler_static='-non_shared'
6261 ;;
6262 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006263 ;;
6264
6265 osf3* | osf4* | osf5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006266 lt_prog_compiler_wl='-Wl,'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006267 # All OSF/1 code is PIC.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006268 lt_prog_compiler_static='-non_shared'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006269 ;;
6270
6271 sco3.2v5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006272 lt_prog_compiler_pic='-Kpic'
6273 lt_prog_compiler_static='-dn'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006274 ;;
6275
6276 solaris*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006277 lt_prog_compiler_wl='-Wl,'
6278 lt_prog_compiler_pic='-KPIC'
6279 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006280 ;;
6281
6282 sunos4*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006283 lt_prog_compiler_wl='-Qoption ld '
6284 lt_prog_compiler_pic='-PIC'
6285 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006286 ;;
6287
6288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006289 lt_prog_compiler_wl='-Wl,'
6290 lt_prog_compiler_pic='-KPIC'
6291 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006292 ;;
6293
6294 sysv4*MP*)
6295 if test -d /usr/nec ;then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006296 lt_prog_compiler_pic='-Kconform_pic'
6297 lt_prog_compiler_static='-Bstatic'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006298 fi
6299 ;;
6300
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006301 uts4*)
6302 lt_prog_compiler_pic='-pic'
6303 lt_prog_compiler_static='-Bstatic'
6304 ;;
6305
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006306 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006307 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006308 ;;
6309 esac
6310 fi
6311
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006312echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6313echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006314
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006315#
6316# Check to make sure the PIC flag actually works.
6317#
6318if test -n "$lt_prog_compiler_pic"; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006319
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006320echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6321echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6322if test "${lt_prog_compiler_pic_works+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006325 lt_prog_compiler_pic_works=no
6326 ac_outfile=conftest.$ac_objext
6327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6328 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6329 # Insert the option either (1) after the last *FLAGS variable, or
6330 # (2) before a word containing "conftest.", or (3) at the end.
6331 # Note that $ac_compile itself does not contain backslashes and begins
6332 # with a dollar sign (not a hyphen), so the echo should work correctly.
6333 # The option is referenced via a variable to avoid confusing sed.
6334 lt_compile=`echo "$ac_compile" | $SED \
6335 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6337 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +00006338 (eval echo "\"\$as_me:6338: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006339 (eval "$lt_compile" 2>conftest.err)
6340 ac_status=$?
6341 cat conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00006342 echo "$as_me:6342: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006343 if (exit $ac_status) && test -s "$ac_outfile"; then
6344 # The compiler can only warn and ignore the option if not recognized
6345 # So say no if there are warnings
6346 if test ! -s conftest.err; then
6347 lt_prog_compiler_pic_works=yes
6348 fi
6349 fi
6350 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006351
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006352fi
6353echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6354echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006355
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006356if test x"$lt_prog_compiler_pic_works" = xyes; then
6357 case $lt_prog_compiler_pic in
6358 "" | " "*) ;;
6359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6360 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006361else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006362 lt_prog_compiler_pic=
6363 lt_prog_compiler_can_build_shared=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006364fi
6365
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006366fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006367case "$host_os" in
6368 # For platforms which do not support PIC, -DPIC is meaningless:
6369 *djgpp*)
6370 lt_prog_compiler_pic=
6371 ;;
6372 *)
6373 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6374 ;;
6375esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006376
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006377echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6378echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006379if test "${lt_cv_prog_compiler_c_o+set}" = set; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006382 lt_cv_prog_compiler_c_o=no
6383 $rm -r conftest 2>/dev/null
6384 mkdir conftest
6385 cd conftest
6386 mkdir out
6387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006388
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006389 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6390 # that will create temporary files in the current directory regardless of
6391 # the output directory. Thus, making CWD read-only will cause this test
6392 # to fail, enabling locking or at least warning the user not to do parallel
6393 # builds.
6394 chmod -w .
6395
6396 lt_compiler_flag="-o out/conftest2.$ac_objext"
6397 # Insert the option either (1) after the last *FLAGS variable, or
6398 # (2) before a word containing "conftest.", or (3) at the end.
6399 # Note that $ac_compile itself does not contain backslashes and begins
6400 # with a dollar sign (not a hyphen), so the echo should work correctly.
6401 lt_compile=`echo "$ac_compile" | $SED \
6402 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6404 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +00006405 (eval echo "\"\$as_me:6405: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006406 (eval "$lt_compile" 2>out/conftest.err)
6407 ac_status=$?
6408 cat out/conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00006409 echo "$as_me:6409: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6411 then
6412 # The compiler can only warn and ignore the option if not recognized
6413 # So say no if there are warnings
6414 if test ! -s out/conftest.err; then
6415 lt_cv_prog_compiler_c_o=yes
6416 fi
6417 fi
6418 chmod u+w .
6419 $rm conftest*
6420 # SGI C++ compiler will create directory out/ii_files/ for
6421 # template instantiation
6422 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6423 $rm out/* && rmdir out
6424 cd ..
6425 rmdir conftest
6426 $rm conftest*
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006427
6428fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006429echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6430echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006431
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006432
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006433hard_links="nottested"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006434if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006435 # do not overwrite the value of need_locks provided by the user
6436 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6437echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6438 hard_links=yes
6439 $rm conftest*
6440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6441 touch conftest.a
6442 ln conftest.a conftest.b 2>&5 || hard_links=no
6443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6444 echo "$as_me:$LINENO: result: $hard_links" >&5
6445echo "${ECHO_T}$hard_links" >&6
6446 if test "$hard_links" = no; then
6447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6448echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6449 need_locks=warn
6450 fi
6451else
6452 need_locks=no
6453fi
6454
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006455echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6456echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006457
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006458 runpath_var=
6459 allow_undefined_flag=
6460 enable_shared_with_static_runtimes=no
6461 archive_cmds=
6462 archive_expsym_cmds=
6463 old_archive_From_new_cmds=
6464 old_archive_from_expsyms_cmds=
6465 export_dynamic_flag_spec=
6466 whole_archive_flag_spec=
6467 thread_safe_flag_spec=
6468 hardcode_libdir_flag_spec=
6469 hardcode_libdir_flag_spec_ld=
6470 hardcode_libdir_separator=
6471 hardcode_direct=no
6472 hardcode_minus_L=no
6473 hardcode_shlibpath_var=unsupported
6474 link_all_deplibs=unknown
6475 hardcode_automatic=no
6476 module_cmds=
6477 module_expsym_cmds=
6478 always_export_symbols=no
6479 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6480 # include_expsyms should be a list of space-separated symbols to be *always*
6481 # included in the symbol list
6482 include_expsyms=
6483 # exclude_expsyms can be an extended regexp of symbols to exclude
6484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6486 # as well as any symbol that contains `d'.
6487 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6489 # platforms (ab)use it in PIC code, but their linkers get confused if
6490 # the symbol is explicitly referenced. Since portable code cannot
6491 # rely on this symbol name, it's probably fine to never include it in
6492 # preloaded symbol tables.
6493 extract_expsyms_cmds=
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006494
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006495 case $host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006496 cygwin* | mingw* | pw32*)
6497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6498 # When not using gcc, we currently assume that we are using
6499 # Microsoft Visual C++.
6500 if test "$GCC" != yes; then
6501 with_gnu_ld=no
6502 fi
6503 ;;
6504 openbsd*)
6505 with_gnu_ld=no
6506 ;;
6507 esac
6508
6509 ld_shlibs=yes
6510 if test "$with_gnu_ld" = yes; then
6511 # If archive_cmds runs LD, not CC, wlarc should be empty
6512 wlarc='${wl}'
6513
6514 # See if GNU ld supports shared libraries.
6515 case $host_os in
6516 aix3* | aix4* | aix5*)
6517 # On AIX/PPC, the GNU linker is very broken
6518 if test "$host_cpu" != ia64; then
6519 ld_shlibs=no
6520 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006521
6522*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6523*** to be unable to reliably create shared libraries on AIX.
6524*** Therefore, libtool is disabling shared libraries support. If you
6525*** really care for shared libraries, you may want to modify your PATH
6526*** so that a non-GNU linker is found, and then restart.
6527
6528EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006529 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006530 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006531
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006532 amigaos*)
6533 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)'
6534 hardcode_libdir_flag_spec='-L$libdir'
6535 hardcode_minus_L=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006536
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006537 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6538 # that the semantics of dynamic libraries on AmigaOS, at least up
6539 # to version 4, is to share data among multiple programs linked
6540 # with the same dynamic library. Since this doesn't match the
6541 # behavior of shared libraries on other platforms, we can't use
6542 # them.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006543 ld_shlibs=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006544 ;;
6545
6546 beos*)
6547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6548 allow_undefined_flag=unsupported
6549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6550 # support --undefined. This deserves some investigation. FIXME
6551 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6552 else
6553 ld_shlibs=no
6554 fi
6555 ;;
6556
6557 cygwin* | mingw* | pw32*)
6558 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6559 # as there is no search path for DLLs.
6560 hardcode_libdir_flag_spec='-L$libdir'
6561 allow_undefined_flag=unsupported
6562 always_export_symbols=no
6563 enable_shared_with_static_runtimes=yes
6564 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6565
6566 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6568 # If the export-symbols file already is a .def file (1st line
6569 # is EXPORTS), use it as is; otherwise, prepend...
6570 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6571 cp $export_symbols $output_objdir/$soname.def;
6572 else
6573 echo EXPORTS > $output_objdir/$soname.def;
6574 cat $export_symbols >> $output_objdir/$soname.def;
6575 fi~
6576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6577 else
6578 ld_shlibs=no
6579 fi
6580 ;;
6581
6582 netbsd*)
6583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6585 wlarc=
6586 else
6587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6589 fi
6590 ;;
6591
6592 solaris* | sysv5*)
6593 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6594 ld_shlibs=no
6595 cat <<EOF 1>&2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006596
6597*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6598*** create shared libraries on Solaris systems. Therefore, libtool
6599*** is disabling shared libraries support. We urge you to upgrade GNU
6600*** binutils to release 2.9.1 or newer. Another option is to modify
6601*** your PATH or compiler configuration so that the native linker is
6602*** used, and then restart.
6603
6604EOF
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006605 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6607 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 +00006608 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006609 ld_shlibs=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +00006610 fi
6611 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006612
6613 sunos4*)
6614 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6615 wlarc=
6616 hardcode_direct=yes
6617 hardcode_shlibpath_var=no
6618 ;;
6619
6620 linux*)
6621 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6622 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6623 archive_cmds="$tmp_archive_cmds"
6624 supports_anon_versioning=no
6625 case `$LD -v 2>/dev/null` in
6626 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6629 *\ 2.11.*) ;; # other 2.11 versions
6630 *) supports_anon_versioning=yes ;;
6631 esac
6632 if test $supports_anon_versioning = yes; then
6633 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6634cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6635$echo "local: *; };" >> $output_objdir/$libname.ver~
6636 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6637 else
6638 archive_expsym_cmds="$tmp_archive_cmds"
6639 fi
6640 else
6641 ld_shlibs=no
6642 fi
6643 ;;
6644
6645 *)
6646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6649 else
6650 ld_shlibs=no
6651 fi
6652 ;;
6653 esac
6654
6655 if test "$ld_shlibs" = yes; then
6656 runpath_var=LD_RUN_PATH
6657 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6658 export_dynamic_flag_spec='${wl}--export-dynamic'
6659 # ancient GNU ld didn't support --whole-archive et. al.
6660 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6661 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6662 else
6663 whole_archive_flag_spec=
6664 fi
6665 fi
6666 else
6667 # PORTME fill in a description of your system's linker (not GNU ld)
6668 case $host_os in
6669 aix3*)
6670 allow_undefined_flag=unsupported
6671 always_export_symbols=yes
6672 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'
6673 # Note: this linker hardcodes the directories in LIBPATH if there
6674 # are no directories specified by -L.
6675 hardcode_minus_L=yes
6676 if test "$GCC" = yes && test -z "$link_static_flag"; then
6677 # Neither direct hardcoding nor static linking is supported with a
6678 # broken collect2.
6679 hardcode_direct=unsupported
6680 fi
6681 ;;
6682
6683 aix4* | aix5*)
6684 if test "$host_cpu" = ia64; then
6685 # On IA64, the linker does run time linking by default, so we don't
6686 # have to do anything special.
6687 aix_use_runtimelinking=no
6688 exp_sym_flag='-Bexport'
6689 no_entry_flag=""
6690 else
6691 # If we're using GNU nm, then we don't want the "-C" option.
6692 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6693 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6694 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'
6695 else
6696 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'
6697 fi
6698 aix_use_runtimelinking=no
6699
6700 # Test if we are trying to use run time linking or normal
6701 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6702 # need to do runtime linking.
6703 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6704 for ld_flag in $LDFLAGS; do
6705 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6706 aix_use_runtimelinking=yes
6707 break
6708 fi
6709 done
6710 esac
6711
6712 exp_sym_flag='-bexport'
6713 no_entry_flag='-bnoentry'
6714 fi
6715
6716 # When large executables or shared objects are built, AIX ld can
6717 # have problems creating the table of contents. If linking a library
6718 # or program results in "error TOC overflow" add -mminimal-toc to
6719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6721
6722 archive_cmds=''
6723 hardcode_direct=yes
6724 hardcode_libdir_separator=':'
6725 link_all_deplibs=yes
6726
6727 if test "$GCC" = yes; then
6728 case $host_os in aix4.012|aix4.012.*)
6729 # We only want to do this on AIX 4.2 and lower, the check
6730 # below for broken collect2 doesn't work under 4.3+
6731 collect2name=`${CC} -print-prog-name=collect2`
6732 if test -f "$collect2name" && \
6733 strings "$collect2name" | grep resolve_lib_name >/dev/null
6734 then
6735 # We have reworked collect2
6736 hardcode_direct=yes
6737 else
6738 # We have old collect2
6739 hardcode_direct=unsupported
6740 # It fails to find uninstalled libraries when the uninstalled
6741 # path is not listed in the libpath. Setting hardcode_minus_L
6742 # to unsupported forces relinking
6743 hardcode_minus_L=yes
6744 hardcode_libdir_flag_spec='-L$libdir'
6745 hardcode_libdir_separator=
6746 fi
6747 esac
6748 shared_flag='-shared'
6749 else
6750 # not using gcc
6751 if test "$host_cpu" = ia64; then
6752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6753 # chokes on -Wl,-G. The following line is correct:
6754 shared_flag='-G'
6755 else
6756 if test "$aix_use_runtimelinking" = yes; then
6757 shared_flag='${wl}-G'
6758 else
6759 shared_flag='${wl}-bM:SRE'
6760 fi
6761 fi
6762 fi
6763
6764 # It seems that -bexpall does not export symbols beginning with
6765 # underscore (_), so it is better to generate a list of symbols to export.
6766 always_export_symbols=yes
6767 if test "$aix_use_runtimelinking" = yes; then
6768 # Warning - without using the other runtime loading flags (-brtl),
6769 # -berok will link without error, but may produce a broken library.
6770 allow_undefined_flag='-berok'
6771 # Determine the default libpath from the value encoded in an empty executable.
6772 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00006773#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006774/* confdefs.h. */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h. */
6779
6780int
6781main ()
6782{
6783
6784 ;
6785 return 0;
6786}
6787_ACEOF
6788rm -f conftest.$ac_objext conftest$ac_exeext
6789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00006790 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006791 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00006794 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800
6801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6802}'`
6803# Check for a 64-bit object if we didn't find anything.
6804if 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; }
6805}'`; fi
6806else
6807 echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
6810fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00006811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6813
6814 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6815 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"
6816 else
6817 if test "$host_cpu" = ia64; then
6818 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6819 allow_undefined_flag="-z nodefs"
6820 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"
6821 else
6822 # Determine the default libpath from the value encoded in an empty executable.
6823 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00006824#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006825/* confdefs.h. */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h. */
6830
6831int
6832main ()
6833{
6834
6835 ;
6836 return 0;
6837}
6838_ACEOF
6839rm -f conftest.$ac_objext conftest$ac_exeext
6840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00006841 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006842 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00006845 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851
6852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6853}'`
6854# Check for a 64-bit object if we didn't find anything.
6855if 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; }
6856}'`; fi
6857else
6858 echo "$as_me: failed program was:" >&5
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
6861fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00006862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00006863if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6864
6865 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6866 # Warning - without using the other run time loading flags,
6867 # -berok will link without error, but may produce a broken library.
6868 no_undefined_flag=' ${wl}-bernotok'
6869 allow_undefined_flag=' ${wl}-berok'
6870 # -bexpall does not export symbols beginning with underscore (_)
6871 always_export_symbols=yes
6872 # Exported symbols can be pulled into shared objects from archives
6873 whole_archive_flag_spec=' '
6874 archive_cmds_need_lc=yes
6875 # This is similar to how AIX traditionally builds it's shared libraries.
6876 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'
6877 fi
6878 fi
6879 ;;
6880
6881 amigaos*)
6882 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)'
6883 hardcode_libdir_flag_spec='-L$libdir'
6884 hardcode_minus_L=yes
6885 # see comment about different semantics on the GNU ld section
6886 ld_shlibs=no
6887 ;;
6888
6889 bsdi4*)
6890 export_dynamic_flag_spec=-rdynamic
6891 ;;
6892
6893 cygwin* | mingw* | pw32*)
6894 # When not using gcc, we currently assume that we are using
6895 # Microsoft Visual C++.
6896 # hardcode_libdir_flag_spec is actually meaningless, as there is
6897 # no search path for DLLs.
6898 hardcode_libdir_flag_spec=' '
6899 allow_undefined_flag=unsupported
6900 # Tell ltmain to make .lib files, not .a files.
6901 libext=lib
6902 # Tell ltmain to make .dll files, not .so files.
6903 shrext=".dll"
6904 # FIXME: Setting linknames here is a bad hack.
6905 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6906 # The linker will automatically build a .lib file if we build a DLL.
6907 old_archive_From_new_cmds='true'
6908 # FIXME: Should let the user specify the lib program.
6909 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6910 fix_srcfile_path='`cygpath -w "$srcfile"`'
6911 enable_shared_with_static_runtimes=yes
6912 ;;
6913
6914 darwin* | rhapsody*)
6915 if test "$GXX" = yes ; then
6916 archive_cmds_need_lc=no
6917 case "$host_os" in
6918 rhapsody* | darwin1.[012])
6919 allow_undefined_flag='-undefined suppress'
6920 ;;
6921 *) # Darwin 1.3 on
6922 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6923 allow_undefined_flag='-flat_namespace -undefined suppress'
6924 else
6925 case ${MACOSX_DEPLOYMENT_TARGET} in
6926 10.[012])
6927 allow_undefined_flag='-flat_namespace -undefined suppress'
6928 ;;
6929 10.*)
6930 allow_undefined_flag='-undefined dynamic_lookup'
6931 ;;
6932 esac
6933 fi
6934 ;;
6935 esac
6936 lt_int_apple_cc_single_mod=no
6937 output_verbose_link_cmd='echo'
6938 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6939 lt_int_apple_cc_single_mod=yes
6940 fi
6941 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6942 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6943 else
6944 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'
6945 fi
6946 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6947 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6948 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6949 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}'
6950 else
6951 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}'
6952 fi
6953 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}'
6954 hardcode_direct=no
6955 hardcode_automatic=yes
6956 hardcode_shlibpath_var=unsupported
6957 whole_archive_flag_spec='-all_load $convenience'
6958 link_all_deplibs=yes
6959 else
6960 ld_shlibs=no
6961 fi
6962 ;;
6963
6964 dgux*)
6965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6966 hardcode_libdir_flag_spec='-L$libdir'
6967 hardcode_shlibpath_var=no
6968 ;;
6969
6970 freebsd1*)
6971 ld_shlibs=no
6972 ;;
6973
6974 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6975 # support. Future versions do this automatically, but an explicit c++rt0.o
6976 # does not break anything, and helps significantly (at the cost of a little
6977 # extra space).
6978 freebsd2.2*)
6979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6980 hardcode_libdir_flag_spec='-R$libdir'
6981 hardcode_direct=yes
6982 hardcode_shlibpath_var=no
6983 ;;
6984
6985 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6986 freebsd2*)
6987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6988 hardcode_direct=yes
6989 hardcode_minus_L=yes
6990 hardcode_shlibpath_var=no
6991 ;;
6992
6993 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6994 freebsd* | kfreebsd*-gnu)
6995 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6996 hardcode_libdir_flag_spec='-R$libdir'
6997 hardcode_direct=yes
6998 hardcode_shlibpath_var=no
6999 ;;
7000
7001 hpux9*)
7002 if test "$GCC" = yes; then
7003 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'
7004 else
7005 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'
7006 fi
7007 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7008 hardcode_libdir_separator=:
7009 hardcode_direct=yes
7010
7011 # hardcode_minus_L: Not really in the search PATH,
7012 # but as the default location of the library.
7013 hardcode_minus_L=yes
7014 export_dynamic_flag_spec='${wl}-E'
7015 ;;
7016
7017 hpux10* | hpux11*)
7018 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7019 case "$host_cpu" in
7020 hppa*64*|ia64*)
7021 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7022 ;;
7023 *)
7024 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7025 ;;
7026 esac
7027 else
7028 case "$host_cpu" in
7029 hppa*64*|ia64*)
7030 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7031 ;;
7032 *)
7033 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7034 ;;
7035 esac
7036 fi
7037 if test "$with_gnu_ld" = no; then
7038 case "$host_cpu" in
7039 hppa*64*)
7040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7041 hardcode_libdir_flag_spec_ld='+b $libdir'
7042 hardcode_libdir_separator=:
7043 hardcode_direct=no
7044 hardcode_shlibpath_var=no
7045 ;;
7046 ia64*)
7047 hardcode_libdir_flag_spec='-L$libdir'
7048 hardcode_direct=no
7049 hardcode_shlibpath_var=no
7050
7051 # hardcode_minus_L: Not really in the search PATH,
7052 # but as the default location of the library.
7053 hardcode_minus_L=yes
7054 ;;
7055 *)
7056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7057 hardcode_libdir_separator=:
7058 hardcode_direct=yes
7059 export_dynamic_flag_spec='${wl}-E'
7060
7061 # hardcode_minus_L: Not really in the search PATH,
7062 # but as the default location of the library.
7063 hardcode_minus_L=yes
7064 ;;
7065 esac
7066 fi
7067 ;;
7068
7069 irix5* | irix6* | nonstopux*)
7070 if test "$GCC" = yes; then
7071 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'
7072 else
7073 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'
7074 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7075 fi
7076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7077 hardcode_libdir_separator=:
7078 link_all_deplibs=yes
7079 ;;
7080
7081 netbsd*)
7082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7084 else
7085 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7086 fi
7087 hardcode_libdir_flag_spec='-R$libdir'
7088 hardcode_direct=yes
7089 hardcode_shlibpath_var=no
7090 ;;
7091
7092 newsos6)
7093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7094 hardcode_direct=yes
7095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7096 hardcode_libdir_separator=:
7097 hardcode_shlibpath_var=no
7098 ;;
7099
7100 openbsd*)
7101 hardcode_direct=yes
7102 hardcode_shlibpath_var=no
7103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7105 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7106 export_dynamic_flag_spec='${wl}-E'
7107 else
7108 case $host_os in
7109 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7111 hardcode_libdir_flag_spec='-R$libdir'
7112 ;;
7113 *)
7114 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7116 ;;
7117 esac
7118 fi
7119 ;;
7120
7121 os2*)
7122 hardcode_libdir_flag_spec='-L$libdir'
7123 hardcode_minus_L=yes
7124 allow_undefined_flag=unsupported
7125 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'
7126 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7127 ;;
7128
7129 osf3*)
7130 if test "$GCC" = yes; then
7131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7132 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'
7133 else
7134 allow_undefined_flag=' -expect_unresolved \*'
7135 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'
7136 fi
7137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7138 hardcode_libdir_separator=:
7139 ;;
7140
7141 osf4* | osf5*) # as osf3* with the addition of -msym flag
7142 if test "$GCC" = yes; then
7143 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7144 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'
7145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7146 else
7147 allow_undefined_flag=' -expect_unresolved \*'
7148 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'
7149 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7150 $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'
7151
7152 # Both c and cxx compiler support -rpath directly
7153 hardcode_libdir_flag_spec='-rpath $libdir'
7154 fi
7155 hardcode_libdir_separator=:
7156 ;;
7157
7158 sco3.2v5*)
7159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7160 hardcode_shlibpath_var=no
7161 export_dynamic_flag_spec='${wl}-Bexport'
7162 runpath_var=LD_RUN_PATH
7163 hardcode_runpath_var=yes
7164 ;;
7165
7166 solaris*)
7167 no_undefined_flag=' -z text'
7168 if test "$GCC" = yes; then
7169 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7170 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7171 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7172 else
7173 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7174 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7175 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7176 fi
7177 hardcode_libdir_flag_spec='-R$libdir'
7178 hardcode_shlibpath_var=no
7179 case $host_os in
7180 solaris2.[0-5] | solaris2.[0-5].*) ;;
7181 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7182 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7183 esac
7184 link_all_deplibs=yes
7185 ;;
7186
7187 sunos4*)
7188 if test "x$host_vendor" = xsequent; then
7189 # Use $CC to link under sequent, because it throws in some extra .o
7190 # files that make .init and .fini sections work.
7191 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7192 else
7193 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7194 fi
7195 hardcode_libdir_flag_spec='-L$libdir'
7196 hardcode_direct=yes
7197 hardcode_minus_L=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 sysv4)
7202 case $host_vendor in
7203 sni)
7204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7205 hardcode_direct=yes # is this really true???
7206 ;;
7207 siemens)
7208 ## LD is ld it makes a PLAMLIB
7209 ## CC just makes a GrossModule.
7210 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7211 reload_cmds='$CC -r -o $output$reload_objs'
7212 hardcode_direct=no
7213 ;;
7214 motorola)
7215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7216 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7217 ;;
7218 esac
7219 runpath_var='LD_RUN_PATH'
7220 hardcode_shlibpath_var=no
7221 ;;
7222
7223 sysv4.3*)
7224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7225 hardcode_shlibpath_var=no
7226 export_dynamic_flag_spec='-Bexport'
7227 ;;
7228
7229 sysv4*MP*)
7230 if test -d /usr/nec; then
7231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7232 hardcode_shlibpath_var=no
7233 runpath_var=LD_RUN_PATH
7234 hardcode_runpath_var=yes
7235 ld_shlibs=yes
7236 fi
7237 ;;
7238
7239 sysv4.2uw2*)
7240 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_direct=yes
7242 hardcode_minus_L=no
7243 hardcode_shlibpath_var=no
7244 hardcode_runpath_var=yes
7245 runpath_var=LD_RUN_PATH
7246 ;;
7247
7248 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7249 no_undefined_flag='${wl}-z ${wl}text'
7250 if test "$GCC" = yes; then
7251 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7252 else
7253 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7254 fi
7255 runpath_var='LD_RUN_PATH'
7256 hardcode_shlibpath_var=no
7257 ;;
7258
7259 sysv5*)
7260 no_undefined_flag=' -z text'
7261 # $CC -shared without GNU ld will not create a library from C++
7262 # object files and a static libstdc++, better avoid it by now
7263 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7266 hardcode_libdir_flag_spec=
7267 hardcode_shlibpath_var=no
7268 runpath_var='LD_RUN_PATH'
7269 ;;
7270
7271 uts4*)
7272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273 hardcode_libdir_flag_spec='-L$libdir'
7274 hardcode_shlibpath_var=no
7275 ;;
7276
7277 *)
7278 ld_shlibs=no
7279 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007280 esac
7281 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007282
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007283echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7284echo "${ECHO_T}$ld_shlibs" >&6
7285test "$ld_shlibs" = no && can_build_shared=no
7286
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007287variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7288if test "$GCC" = yes; then
7289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7290fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007291
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007292#
7293# Do we need to explicitly link libc?
7294#
7295case "x$archive_cmds_need_lc" in
7296x|xyes)
7297 # Assume -lc should be added
7298 archive_cmds_need_lc=yes
7299
7300 if test "$enable_shared" = yes && test "$GCC" = yes; then
7301 case $archive_cmds in
7302 *'~'*)
7303 # FIXME: we may have to deal with multi-command sequences.
7304 ;;
7305 '$CC '*)
7306 # Test whether the compiler implicitly links with -lc since on some
7307 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7308 # to ld, don't add -lc before -lgcc.
7309 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7310echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7311 $rm conftest*
7312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7313
7314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>&5
7316 ac_status=$?
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } 2>conftest.err; then
7319 soname=conftest
7320 lib=conftest
7321 libobjs=conftest.$ac_objext
7322 deplibs=
7323 wl=$lt_prog_compiler_wl
7324 compiler_flags=-v
7325 linker_flags=-v
7326 verstring=
7327 output_objdir=.
7328 libname=conftest
7329 lt_save_allow_undefined_flag=$allow_undefined_flag
7330 allow_undefined_flag=
7331 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7332 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }
7336 then
7337 archive_cmds_need_lc=no
7338 else
7339 archive_cmds_need_lc=yes
7340 fi
7341 allow_undefined_flag=$lt_save_allow_undefined_flag
7342 else
7343 cat conftest.err 1>&5
7344 fi
7345 $rm conftest*
7346 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7347echo "${ECHO_T}$archive_cmds_need_lc" >&6
7348 ;;
7349 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007350 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007351 ;;
7352esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007353
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007354echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7355echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7356library_names_spec=
7357libname_spec='lib$name'
7358soname_spec=
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007359shrext=".so"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007360postinstall_cmds=
7361postuninstall_cmds=
7362finish_cmds=
7363finish_eval=
7364shlibpath_var=
7365shlibpath_overrides_runpath=unknown
7366version_type=none
7367dynamic_linker="$host_os ld.so"
7368sys_lib_dlsearch_path_spec="/lib /usr/lib"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007369if test "$GCC" = yes; then
7370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7371 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7372 # if the path contains ";" then we assume it to be the separator
7373 # otherwise default to the standard path separator (i.e. ":") - it is
7374 # assumed that no part of a normal pathname contains ";" but that should
7375 # okay in the real world where ";" in dirpaths is itself problematic.
7376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7377 else
7378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7379 fi
7380else
7381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7382fi
7383need_lib_prefix=unknown
7384hardcode_into_libs=no
7385
7386# when you set need_version to no, make sure it does not cause -set_version
7387# flags to be left without arguments
7388need_version=unknown
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007389
7390case $host_os in
7391aix3*)
7392 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007394 shlibpath_var=LIBPATH
7395
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007396 # AIX 3 has no versioning support, so we append a major version to the name.
7397 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007398 ;;
7399
7400aix4* | aix5*)
7401 version_type=linux
7402 need_lib_prefix=no
7403 need_version=no
7404 hardcode_into_libs=yes
7405 if test "$host_cpu" = ia64; then
7406 # AIX 5 supports IA64
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007407 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007408 shlibpath_var=LD_LIBRARY_PATH
7409 else
7410 # With GCC up to 2.95.x, collect2 would create an import file
7411 # for dependence libraries. The import file would start with
7412 # the line `#! .'. This would cause the generated library to
7413 # depend on `.', always an invalid library. This was fixed in
7414 # development snapshots of GCC prior to 3.0.
7415 case $host_os in
7416 aix4 | aix4.[01] | aix4.[01].*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007417 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7418 echo ' yes '
7419 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7420 :
7421 else
7422 can_build_shared=no
7423 fi
7424 ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007425 esac
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007426 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7427 # soname into executable. Probably we can add versioning support to
7428 # collect2, so additional links can be useful in future.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007429 if test "$aix_use_runtimelinking" = yes; then
7430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7431 # instead of lib<name>.a to let people know that these are not
7432 # typical AIX shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007434 else
7435 # We preserve .a as extension for shared libraries through AIX4.2
7436 # and later when we are not doing run time linking.
7437 library_names_spec='${libname}${release}.a $libname.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007438 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007439 fi
7440 shlibpath_var=LIBPATH
7441 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007442 ;;
7443
7444amigaos*)
7445 library_names_spec='$libname.ixlibrary $libname.a'
7446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007447 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 +00007448 ;;
7449
7450beos*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007451 library_names_spec='${libname}${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007452 dynamic_linker="$host_os ld.so"
7453 shlibpath_var=LIBRARY_PATH
7454 ;;
7455
7456bsdi4*)
7457 version_type=linux
7458 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7462 shlibpath_var=LD_LIBRARY_PATH
7463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007465 # the default ld.so.conf also contains /usr/contrib/lib and
7466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7467 # libtool to hard-code these into programs
7468 ;;
7469
7470cygwin* | mingw* | pw32*)
7471 version_type=windows
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007472 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007473 need_version=no
7474 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007475
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007476 case $GCC,$host_os in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007477 yes,cygwin* | yes,mingw* | yes,pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007478 library_names_spec='$libname.dll.a'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7480 postinstall_cmds='base_file=`basename \${file}`~
7481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007482 dldir=$destdir/`dirname \$dlpath`~
7483 test -d \$dldir || mkdir -p \$dldir~
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007484 $install_prog $dir/$dlname \$dldir/$dlname'
7485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007486 dlpath=$dir/\$dldll~
7487 $rm \$dlpath'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007488 shlibpath_overrides_runpath=yes
7489
7490 case $host_os in
7491 cygwin*)
7492 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7493 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7494 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7495 ;;
7496 mingw*)
7497 # MinGW DLLs use traditional 'lib' prefix
7498 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7499 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7500 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7501 # It is most probably a Windows format PATH printed by
7502 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7503 # path with ; separators, and with drive letters. We can handle the
7504 # drive letters (cygwin fileutils understands them), so leave them,
7505 # especially as we might pass files found there to a mingw objdump,
7506 # which wouldn't understand a cygwinified path. Ahh.
7507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7508 else
7509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7510 fi
7511 ;;
7512 pw32*)
7513 # pw32 DLLs use 'pw' prefix rather than 'lib'
7514 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7515 ;;
7516 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007517 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007518
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007519 *)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007520 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007521 ;;
7522 esac
7523 dynamic_linker='Win32 ld.exe'
7524 # FIXME: first we should search . and the directory the executable is in
7525 shlibpath_var=PATH
7526 ;;
7527
7528darwin* | rhapsody*)
7529 dynamic_linker="$host_os dyld"
7530 version_type=darwin
7531 need_lib_prefix=no
7532 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007533 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7534 soname_spec='${libname}${release}${major}$shared_ext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007535 shlibpath_overrides_runpath=yes
7536 shlibpath_var=DYLD_LIBRARY_PATH
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007537 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7538 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7539 if test "$GCC" = yes; then
7540 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"`
7541 else
7542 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7543 fi
7544 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7545 ;;
7546
7547dgux*)
7548 version_type=linux
7549 need_lib_prefix=no
7550 need_version=no
7551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7552 soname_spec='${libname}${release}${shared_ext}$major'
7553 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007554 ;;
7555
7556freebsd1*)
7557 dynamic_linker=no
7558 ;;
7559
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007560kfreebsd*-gnu)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007561 version_type=linux
7562 need_lib_prefix=no
7563 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7565 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007566 shlibpath_var=LD_LIBRARY_PATH
7567 shlibpath_overrides_runpath=no
7568 hardcode_into_libs=yes
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007569 dynamic_linker='GNU ld.so'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007570 ;;
7571
7572freebsd*)
7573 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7574 version_type=freebsd-$objformat
7575 case $version_type in
7576 freebsd-elf*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007578 need_version=no
7579 need_lib_prefix=no
7580 ;;
7581 freebsd-*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007583 need_version=yes
7584 ;;
7585 esac
7586 shlibpath_var=LD_LIBRARY_PATH
7587 case $host_os in
7588 freebsd2*)
7589 shlibpath_overrides_runpath=yes
7590 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007591 freebsd3.01* | freebsdelf3.01*)
7592 shlibpath_overrides_runpath=yes
7593 hardcode_into_libs=yes
7594 ;;
7595 *) # from 3.2 on
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007596 shlibpath_overrides_runpath=no
7597 hardcode_into_libs=yes
7598 ;;
7599 esac
7600 ;;
7601
7602gnu*)
7603 version_type=linux
7604 need_lib_prefix=no
7605 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7607 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007608 shlibpath_var=LD_LIBRARY_PATH
7609 hardcode_into_libs=yes
7610 ;;
7611
7612hpux9* | hpux10* | hpux11*)
7613 # Give a soname corresponding to the major version so that dld.sl refuses to
7614 # link against other versions.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007615 version_type=sunos
7616 need_lib_prefix=no
7617 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007618 case "$host_cpu" in
7619 ia64*)
7620 shrext='.so'
7621 hardcode_into_libs=yes
7622 dynamic_linker="$host_os dld.so"
7623 shlibpath_var=LD_LIBRARY_PATH
7624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626 soname_spec='${libname}${release}${shared_ext}$major'
7627 if test "X$HPUX_IA64_MODE" = X32; then
7628 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7629 else
7630 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7631 fi
7632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7633 ;;
7634 hppa*64*)
7635 shrext='.sl'
7636 hardcode_into_libs=yes
7637 dynamic_linker="$host_os dld.sl"
7638 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7641 soname_spec='${libname}${release}${shared_ext}$major'
7642 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7644 ;;
7645 *)
7646 shrext='.sl'
7647 dynamic_linker="$host_os dld.sl"
7648 shlibpath_var=SHLIB_PATH
7649 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7651 soname_spec='${libname}${release}${shared_ext}$major'
7652 ;;
7653 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007654 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7655 postinstall_cmds='chmod 555 $lib'
7656 ;;
7657
7658irix5* | irix6* | nonstopux*)
7659 case $host_os in
7660 nonstopux*) version_type=nonstopux ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007661 *)
7662 if test "$lt_cv_prog_gnu_ld" = yes; then
7663 version_type=linux
7664 else
7665 version_type=irix
7666 fi ;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007667 esac
7668 need_lib_prefix=no
7669 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007670 soname_spec='${libname}${release}${shared_ext}$major'
7671 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 +00007672 case $host_os in
7673 irix5* | nonstopux*)
7674 libsuff= shlibsuff=
7675 ;;
7676 *)
7677 case $LD in # libtool.m4 will add one of these switches to LD
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007678 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7679 libsuff= shlibsuff= libmagic=32-bit;;
7680 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7681 libsuff=32 shlibsuff=N32 libmagic=N32;;
7682 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7683 libsuff=64 shlibsuff=64 libmagic=64-bit;;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007684 *) libsuff= shlibsuff= libmagic=never-match;;
7685 esac
7686 ;;
7687 esac
7688 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7689 shlibpath_overrides_runpath=no
7690 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7691 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007692 hardcode_into_libs=yes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007693 ;;
7694
7695# No shared lib support for Linux oldld, aout, or coff.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007696linux*oldld* | linux*aout* | linux*coff*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007697 dynamic_linker=no
7698 ;;
7699
7700# This must be Linux ELF.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007701linux*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007702 version_type=linux
7703 need_lib_prefix=no
7704 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7706 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7708 shlibpath_var=LD_LIBRARY_PATH
7709 shlibpath_overrides_runpath=no
7710 # This implies no fast_install, which is unacceptable.
7711 # Some rework will be needed to allow for fast_install
7712 # before this can be enabled.
7713 hardcode_into_libs=yes
7714
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007715 # /usr/X11R6/lib and /usr/local/lib are common enough...
7716 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
7717
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007718 # We used to test for /lib/ld.so.1 and disable shared libraries on
7719 # powerpc, because MkLinux only supported shared libraries with the
7720 # GNU dynamic linker. Since this was broken with cross compilers,
7721 # most powerpc-linux boxes support dynamic linking these days and
7722 # people can always --disable-shared, the test was removed, and we
7723 # assume the GNU/Linux dynamic linker is in use.
7724 dynamic_linker='GNU/Linux ld.so'
7725 ;;
7726
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007727knetbsd*-gnu)
7728 version_type=linux
7729 need_lib_prefix=no
7730 need_version=no
7731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7732 soname_spec='${libname}${release}${shared_ext}$major'
7733 shlibpath_var=LD_LIBRARY_PATH
7734 shlibpath_overrides_runpath=no
7735 hardcode_into_libs=yes
7736 dynamic_linker='GNU ld.so'
7737 ;;
7738
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007739netbsd*)
7740 version_type=sunos
7741 need_lib_prefix=no
7742 need_version=no
7743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7746 dynamic_linker='NetBSD (a.out) ld.so'
7747 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7749 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007750 dynamic_linker='NetBSD ld.elf_so'
7751 fi
7752 shlibpath_var=LD_LIBRARY_PATH
7753 shlibpath_overrides_runpath=yes
7754 hardcode_into_libs=yes
7755 ;;
7756
7757newsos6)
7758 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7760 shlibpath_var=LD_LIBRARY_PATH
7761 shlibpath_overrides_runpath=yes
7762 ;;
7763
7764nto-qnx*)
7765 version_type=linux
7766 need_lib_prefix=no
7767 need_version=no
7768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7769 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007770 shlibpath_var=LD_LIBRARY_PATH
7771 shlibpath_overrides_runpath=yes
7772 ;;
7773
7774openbsd*)
7775 version_type=sunos
7776 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007777 need_version=yes
7778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7780 shlibpath_var=LD_LIBRARY_PATH
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007781 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 +00007782 case $host_os in
7783 openbsd2.[89] | openbsd2.[89].*)
7784 shlibpath_overrides_runpath=no
7785 ;;
7786 *)
7787 shlibpath_overrides_runpath=yes
7788 ;;
7789 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007790 else
7791 shlibpath_overrides_runpath=yes
7792 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007793 ;;
7794
7795os2*)
7796 libname_spec='$name'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007797 shrext=".dll"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007798 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007799 library_names_spec='$libname${shared_ext} $libname.a'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007800 dynamic_linker='OS/2 ld.exe'
7801 shlibpath_var=LIBPATH
7802 ;;
7803
7804osf3* | osf4* | osf5*)
7805 version_type=osf
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007806 need_lib_prefix=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007807 need_version=no
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007810 shlibpath_var=LD_LIBRARY_PATH
7811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007813 ;;
7814
7815sco3.2v5*)
7816 version_type=osf
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007817 soname_spec='${libname}${release}${shared_ext}$major'
7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007819 shlibpath_var=LD_LIBRARY_PATH
7820 ;;
7821
7822solaris*)
7823 version_type=linux
7824 need_lib_prefix=no
7825 need_version=no
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007828 shlibpath_var=LD_LIBRARY_PATH
7829 shlibpath_overrides_runpath=yes
7830 hardcode_into_libs=yes
7831 # ldd complains unless libraries are executable
7832 postinstall_cmds='chmod +x $lib'
7833 ;;
7834
7835sunos4*)
7836 version_type=sunos
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7839 shlibpath_var=LD_LIBRARY_PATH
7840 shlibpath_overrides_runpath=yes
7841 if test "$with_gnu_ld" = yes; then
7842 need_lib_prefix=no
7843 fi
7844 need_version=yes
7845 ;;
7846
7847sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7848 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850 soname_spec='${libname}${release}${shared_ext}$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007851 shlibpath_var=LD_LIBRARY_PATH
7852 case $host_vendor in
7853 sni)
7854 shlibpath_overrides_runpath=no
7855 need_lib_prefix=no
7856 export_dynamic_flag_spec='${wl}-Blargedynsym'
7857 runpath_var=LD_RUN_PATH
7858 ;;
7859 siemens)
7860 need_lib_prefix=no
7861 ;;
7862 motorola)
7863 need_lib_prefix=no
7864 need_version=no
7865 shlibpath_overrides_runpath=no
7866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7867 ;;
7868 esac
7869 ;;
7870
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007871sysv4*MP*)
7872 if test -d /usr/nec ;then
7873 version_type=linux
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7875 soname_spec='$libname${shared_ext}.$major'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007876 shlibpath_var=LD_LIBRARY_PATH
7877 fi
7878 ;;
7879
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007880uts4*)
7881 version_type=linux
7882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7883 soname_spec='${libname}${release}${shared_ext}$major'
7884 shlibpath_var=LD_LIBRARY_PATH
7885 ;;
7886
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007887*)
7888 dynamic_linker=no
7889 ;;
7890esac
7891echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7892echo "${ECHO_T}$dynamic_linker" >&6
7893test "$dynamic_linker" = no && can_build_shared=no
7894
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007895echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7896echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7897hardcode_action=
7898if test -n "$hardcode_libdir_flag_spec" || \
7899 test -n "$runpath_var " || \
7900 test "X$hardcode_automatic"="Xyes" ; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007901
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007902 # We can hardcode non-existant directories.
7903 if test "$hardcode_direct" != no &&
7904 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7905 # have to relink, otherwise we might link with an installed library
7906 # when we should be linking with a yet-to-be-installed one
7907 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7908 test "$hardcode_minus_L" != no; then
7909 # Linking always hardcodes the temporary library directory.
7910 hardcode_action=relink
7911 else
7912 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7913 hardcode_action=immediate
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007914 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007915else
7916 # We cannot hardcode anything, or else we can only hardcode existing
7917 # directories.
7918 hardcode_action=unsupported
7919fi
7920echo "$as_me:$LINENO: result: $hardcode_action" >&5
7921echo "${ECHO_T}$hardcode_action" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007922
7923if test "$hardcode_action" = relink; then
7924 # Fast installation is not supported
7925 enable_fast_install=no
7926elif test "$shlibpath_overrides_runpath" = yes ||
7927 test "$enable_shared" = no; then
7928 # Fast installation is not necessary
7929 enable_fast_install=needless
7930fi
7931
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007932striplib=
7933old_striplib=
7934echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7935echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7936if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7937 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7938 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7939 echo "$as_me:$LINENO: result: yes" >&5
7940echo "${ECHO_T}yes" >&6
7941else
7942# FIXME - insert some real tests, host_os isn't really good enough
7943 case $host_os in
7944 darwin*)
7945 if test -n "$STRIP" ; then
7946 striplib="$STRIP -x"
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952fi
7953 ;;
7954 *)
7955 echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6
7957 ;;
7958 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007959fi
7960
7961if test "x$enable_dlopen" != xyes; then
7962 enable_dlopen=unknown
7963 enable_dlopen_self=unknown
7964 enable_dlopen_self_static=unknown
7965else
7966 lt_cv_dlopen=no
7967 lt_cv_dlopen_libs=
7968
7969 case $host_os in
7970 beos*)
7971 lt_cv_dlopen="load_add_on"
7972 lt_cv_dlopen_libs=
7973 lt_cv_dlopen_self=yes
7974 ;;
7975
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007976 mingw* | pw32*)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00007977 lt_cv_dlopen="LoadLibrary"
7978 lt_cv_dlopen_libs=
7979 ;;
7980
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007981 cygwin*)
7982 lt_cv_dlopen="dlopen"
7983 lt_cv_dlopen_libs=
7984 ;;
7985
7986 darwin*)
7987 # if libdl is installed we need to link against it
7988 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7989echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7990if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 ac_check_lib_save_LIBS=$LIBS
7994LIBS="-ldl $LIBS"
7995cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00007996#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00007997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
8002
8003/* Override any gcc2 internal prototype to avoid an error. */
8004#ifdef __cplusplus
8005extern "C"
8006#endif
8007/* We use char because int might match the return type of a gcc2
8008 builtin and then its argument prototype would still apply. */
8009char dlopen ();
8010int
8011main ()
8012{
8013dlopen ();
8014 ;
8015 return 0;
8016}
8017_ACEOF
8018rm -f conftest.$ac_objext conftest$ac_exeext
8019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008020 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008021 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008024 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 (eval $ac_try) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); }; }; then
8030 ac_cv_lib_dl_dlopen=yes
8031else
8032 echo "$as_me: failed program was:" >&5
8033sed 's/^/| /' conftest.$ac_ext >&5
8034
8035ac_cv_lib_dl_dlopen=no
8036fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008038LIBS=$ac_check_lib_save_LIBS
8039fi
8040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8042if test $ac_cv_lib_dl_dlopen = yes; then
8043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8044else
8045
8046 lt_cv_dlopen="dyld"
8047 lt_cv_dlopen_libs=
8048 lt_cv_dlopen_self=yes
8049
8050fi
8051
8052 ;;
8053
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008054 *)
8055 echo "$as_me:$LINENO: checking for shl_load" >&5
8056echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8057if test "${ac_cv_func_shl_load+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008061#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008067/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008068 which can conflict with char shl_load (); below.
8069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070 <limits.h> exists even on freestanding compilers. */
8071#ifdef __STDC__
8072# include <limits.h>
8073#else
8074# include <assert.h>
8075#endif
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008076/* Override any gcc2 internal prototype to avoid an error. */
8077#ifdef __cplusplus
8078extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008079{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008080#endif
8081/* We use char because int might match the return type of a gcc2
8082 builtin and then its argument prototype would still apply. */
8083char shl_load ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008084/* The GNU C library defines this for functions which it implements
8085 to always fail with ENOSYS. Some functions are actually named
8086 something starting with __ and the normal name is an alias. */
8087#if defined (__stub_shl_load) || defined (__stub___shl_load)
8088choke me
8089#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008090char (*f) () = shl_load;
8091#endif
8092#ifdef __cplusplus
8093}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008094#endif
8095
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008096int
8097main ()
8098{
8099return f != shl_load;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008100 ;
8101 return 0;
8102}
8103_ACEOF
8104rm -f conftest.$ac_objext conftest$ac_exeext
8105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008106 (eval $ac_link) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008110 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 (eval $ac_try) 2>&5
8113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_cv_func_shl_load=yes
8117else
8118 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008119sed 's/^/| /' conftest.$ac_ext >&5
8120
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008121ac_cv_func_shl_load=no
8122fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008124fi
8125echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8126echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8127if test $ac_cv_func_shl_load = yes; then
8128 lt_cv_dlopen="shl_load"
8129else
8130 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8131echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8132if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 ac_check_lib_save_LIBS=$LIBS
8136LIBS="-ldld $LIBS"
8137cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008138#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008144
8145/* Override any gcc2 internal prototype to avoid an error. */
8146#ifdef __cplusplus
8147extern "C"
8148#endif
8149/* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8151char shl_load ();
8152int
8153main ()
8154{
8155shl_load ();
8156 ;
8157 return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext conftest$ac_exeext
8161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008162 (eval $ac_link) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008166 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_lib_dld_shl_load=yes
8173else
8174 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008175sed 's/^/| /' conftest.$ac_ext >&5
8176
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008177ac_cv_lib_dld_shl_load=no
8178fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008180LIBS=$ac_check_lib_save_LIBS
8181fi
8182echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8183echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8184if test $ac_cv_lib_dld_shl_load = yes; then
8185 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8186else
8187 echo "$as_me:$LINENO: checking for dlopen" >&5
8188echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8189if test "${ac_cv_func_dlopen+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008193#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008199/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008200 which can conflict with char dlopen (); below.
8201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8202 <limits.h> exists even on freestanding compilers. */
8203#ifdef __STDC__
8204# include <limits.h>
8205#else
8206# include <assert.h>
8207#endif
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008208/* Override any gcc2 internal prototype to avoid an error. */
8209#ifdef __cplusplus
8210extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008211{
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008212#endif
8213/* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8215char dlopen ();
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008216/* The GNU C library defines this for functions which it implements
8217 to always fail with ENOSYS. Some functions are actually named
8218 something starting with __ and the normal name is an alias. */
8219#if defined (__stub_dlopen) || defined (__stub___dlopen)
8220choke me
8221#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008222char (*f) () = dlopen;
8223#endif
8224#ifdef __cplusplus
8225}
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008226#endif
8227
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008228int
8229main ()
8230{
8231return f != dlopen;
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008232 ;
8233 return 0;
8234}
8235_ACEOF
8236rm -f conftest.$ac_objext conftest$ac_exeext
8237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008238 (eval $ac_link) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008242 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_func_dlopen=yes
8249else
8250 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008251sed 's/^/| /' conftest.$ac_ext >&5
8252
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008253ac_cv_func_dlopen=no
8254fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008256fi
8257echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8258echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8259if test $ac_cv_func_dlopen = yes; then
8260 lt_cv_dlopen="dlopen"
8261else
8262 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8263echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8264if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 ac_check_lib_save_LIBS=$LIBS
8268LIBS="-ldl $LIBS"
8269cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008270#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008276
8277/* Override any gcc2 internal prototype to avoid an error. */
8278#ifdef __cplusplus
8279extern "C"
8280#endif
8281/* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8283char dlopen ();
8284int
8285main ()
8286{
8287dlopen ();
8288 ;
8289 return 0;
8290}
8291_ACEOF
8292rm -f conftest.$ac_objext conftest$ac_exeext
8293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008294 (eval $ac_link) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008298 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_lib_dl_dlopen=yes
8305else
8306 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008307sed 's/^/| /' conftest.$ac_ext >&5
8308
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008309ac_cv_lib_dl_dlopen=no
8310fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008312LIBS=$ac_check_lib_save_LIBS
8313fi
8314echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8315echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8316if test $ac_cv_lib_dl_dlopen = yes; then
8317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8318else
8319 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8320echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8321if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323else
8324 ac_check_lib_save_LIBS=$LIBS
8325LIBS="-lsvld $LIBS"
8326cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008327#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008328/* confdefs.h. */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008333
8334/* Override any gcc2 internal prototype to avoid an error. */
8335#ifdef __cplusplus
8336extern "C"
8337#endif
8338/* We use char because int might match the return type of a gcc2
8339 builtin and then its argument prototype would still apply. */
8340char dlopen ();
8341int
8342main ()
8343{
8344dlopen ();
8345 ;
8346 return 0;
8347}
8348_ACEOF
8349rm -f conftest.$ac_objext conftest$ac_exeext
8350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008351 (eval $ac_link) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008355 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; }; then
8361 ac_cv_lib_svld_dlopen=yes
8362else
8363 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008364sed 's/^/| /' conftest.$ac_ext >&5
8365
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008366ac_cv_lib_svld_dlopen=no
8367fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008369LIBS=$ac_check_lib_save_LIBS
8370fi
8371echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8372echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8373if test $ac_cv_lib_svld_dlopen = yes; then
8374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8375else
8376 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8377echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8378if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381 ac_check_lib_save_LIBS=$LIBS
8382LIBS="-ldld $LIBS"
8383cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008384#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008385/* confdefs.h. */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008390
8391/* Override any gcc2 internal prototype to avoid an error. */
8392#ifdef __cplusplus
8393extern "C"
8394#endif
8395/* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8397char dld_link ();
8398int
8399main ()
8400{
8401dld_link ();
8402 ;
8403 return 0;
8404}
8405_ACEOF
8406rm -f conftest.$ac_objext conftest$ac_exeext
8407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00008408 (eval $ac_link) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00008412 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; }; then
8418 ac_cv_lib_dld_dld_link=yes
8419else
8420 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +00008421sed 's/^/| /' conftest.$ac_ext >&5
8422
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008423ac_cv_lib_dld_dld_link=no
8424fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00008425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008426LIBS=$ac_check_lib_save_LIBS
8427fi
8428echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8429echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8430if test $ac_cv_lib_dld_dld_link = yes; then
8431 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8432fi
8433
8434
8435fi
8436
8437
8438fi
8439
8440
8441fi
8442
8443
8444fi
8445
8446
8447fi
8448
8449 ;;
8450 esac
8451
8452 if test "x$lt_cv_dlopen" != xno; then
8453 enable_dlopen=yes
8454 else
8455 enable_dlopen=no
8456 fi
8457
8458 case $lt_cv_dlopen in
8459 dlopen)
8460 save_CPPFLAGS="$CPPFLAGS"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008461 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008462
8463 save_LDFLAGS="$LDFLAGS"
8464 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8465
8466 save_LIBS="$LIBS"
8467 LIBS="$lt_cv_dlopen_libs $LIBS"
8468
8469 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8470echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8471if test "${lt_cv_dlopen_self+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 if test "$cross_compiling" = yes; then :
8475 lt_cv_dlopen_self=cross
8476else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008478 lt_status=$lt_dlunknown
8479 cat > conftest.$ac_ext <<EOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008480#line 8480 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008481#include "confdefs.h"
8482
8483#if HAVE_DLFCN_H
8484#include <dlfcn.h>
8485#endif
8486
8487#include <stdio.h>
8488
8489#ifdef RTLD_GLOBAL
8490# define LT_DLGLOBAL RTLD_GLOBAL
8491#else
8492# ifdef DL_GLOBAL
8493# define LT_DLGLOBAL DL_GLOBAL
8494# else
8495# define LT_DLGLOBAL 0
8496# endif
8497#endif
8498
8499/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8500 find out it does not work in some platform. */
8501#ifndef LT_DLLAZY_OR_NOW
8502# ifdef RTLD_LAZY
8503# define LT_DLLAZY_OR_NOW RTLD_LAZY
8504# else
8505# ifdef DL_LAZY
8506# define LT_DLLAZY_OR_NOW DL_LAZY
8507# else
8508# ifdef RTLD_NOW
8509# define LT_DLLAZY_OR_NOW RTLD_NOW
8510# else
8511# ifdef DL_NOW
8512# define LT_DLLAZY_OR_NOW DL_NOW
8513# else
8514# define LT_DLLAZY_OR_NOW 0
8515# endif
8516# endif
8517# endif
8518# endif
8519#endif
8520
8521#ifdef __cplusplus
8522extern "C" void exit (int);
8523#endif
8524
8525void fnord() { int i=42;}
8526int main ()
8527{
8528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8529 int status = $lt_dlunknown;
8530
8531 if (self)
8532 {
8533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8534 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8535 /* dlclose (self); */
8536 }
8537
8538 exit (status);
8539}
8540EOF
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542 (eval $ac_link) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8546 (./conftest; exit; ) 2>/dev/null
8547 lt_status=$?
8548 case x$lt_status in
8549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8551 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8552 esac
8553 else :
8554 # compilation failed
8555 lt_cv_dlopen_self=no
8556 fi
8557fi
8558rm -fr conftest*
8559
8560
8561fi
8562echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8563echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8564
8565 if test "x$lt_cv_dlopen_self" = xyes; then
8566 LDFLAGS="$LDFLAGS $link_static_flag"
8567 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8568echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8569if test "${lt_cv_dlopen_self_static+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571else
8572 if test "$cross_compiling" = yes; then :
8573 lt_cv_dlopen_self_static=cross
8574else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008576 lt_status=$lt_dlunknown
8577 cat > conftest.$ac_ext <<EOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00008578#line 8578 "configure"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008579#include "confdefs.h"
8580
8581#if HAVE_DLFCN_H
8582#include <dlfcn.h>
8583#endif
8584
8585#include <stdio.h>
8586
8587#ifdef RTLD_GLOBAL
8588# define LT_DLGLOBAL RTLD_GLOBAL
8589#else
8590# ifdef DL_GLOBAL
8591# define LT_DLGLOBAL DL_GLOBAL
8592# else
8593# define LT_DLGLOBAL 0
8594# endif
8595#endif
8596
8597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8598 find out it does not work in some platform. */
8599#ifndef LT_DLLAZY_OR_NOW
8600# ifdef RTLD_LAZY
8601# define LT_DLLAZY_OR_NOW RTLD_LAZY
8602# else
8603# ifdef DL_LAZY
8604# define LT_DLLAZY_OR_NOW DL_LAZY
8605# else
8606# ifdef RTLD_NOW
8607# define LT_DLLAZY_OR_NOW RTLD_NOW
8608# else
8609# ifdef DL_NOW
8610# define LT_DLLAZY_OR_NOW DL_NOW
8611# else
8612# define LT_DLLAZY_OR_NOW 0
8613# endif
8614# endif
8615# endif
8616# endif
8617#endif
8618
8619#ifdef __cplusplus
8620extern "C" void exit (int);
8621#endif
8622
8623void fnord() { int i=42;}
8624int main ()
8625{
8626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8627 int status = $lt_dlunknown;
8628
8629 if (self)
8630 {
8631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8632 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8633 /* dlclose (self); */
8634 }
8635
8636 exit (status);
8637}
8638EOF
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8644 (./conftest; exit; ) 2>/dev/null
8645 lt_status=$?
8646 case x$lt_status in
8647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8649 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8650 esac
8651 else :
8652 # compilation failed
8653 lt_cv_dlopen_self_static=no
8654 fi
8655fi
8656rm -fr conftest*
8657
8658
8659fi
8660echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8661echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8662 fi
8663
8664 CPPFLAGS="$save_CPPFLAGS"
8665 LDFLAGS="$save_LDFLAGS"
8666 LIBS="$save_LIBS"
8667 ;;
8668 esac
8669
8670 case $lt_cv_dlopen_self in
8671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8672 *) enable_dlopen_self=unknown ;;
8673 esac
8674
8675 case $lt_cv_dlopen_self_static in
8676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8677 *) enable_dlopen_self_static=unknown ;;
8678 esac
8679fi
8680
8681
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008682# Report which librarie types wil actually be built
8683echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8684echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8685echo "$as_me:$LINENO: result: $can_build_shared" >&5
8686echo "${ECHO_T}$can_build_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008687
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008688echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8689echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8690test "$can_build_shared" = "no" && enable_shared=no
8691
8692# On AIX, shared libraries and static libraries use the same namespace, and
8693# are all built from PIC.
8694case "$host_os" in
8695aix3*)
8696 test "$enable_shared" = yes && enable_static=no
8697 if test -n "$RANLIB"; then
8698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8699 postinstall_cmds='$RANLIB $lib'
8700 fi
8701 ;;
8702
8703aix4*)
8704 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8705 test "$enable_shared" = yes && enable_static=no
8706 fi
8707 ;;
8708 darwin* | rhapsody*)
8709 if test "$GCC" = yes; then
8710 archive_cmds_need_lc=no
8711 case "$host_os" in
8712 rhapsody* | darwin1.[012])
8713 allow_undefined_flag='-undefined suppress'
8714 ;;
8715 *) # Darwin 1.3 on
8716 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8717 allow_undefined_flag='-flat_namespace -undefined suppress'
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008718 else
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008719 case ${MACOSX_DEPLOYMENT_TARGET} in
8720 10.[012])
8721 allow_undefined_flag='-flat_namespace -undefined suppress'
8722 ;;
8723 10.*)
8724 allow_undefined_flag='-undefined dynamic_lookup'
8725 ;;
8726 esac
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008727 fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008728 ;;
8729 esac
8730 output_verbose_link_cmd='echo'
8731 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8732 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8733 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8734 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}'
8735 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}'
8736 hardcode_direct=no
8737 hardcode_automatic=yes
8738 hardcode_shlibpath_var=unsupported
8739 whole_archive_flag_spec='-all_load $convenience'
8740 link_all_deplibs=yes
8741 else
8742 ld_shlibs=no
8743 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008744 ;;
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008745esac
8746echo "$as_me:$LINENO: result: $enable_shared" >&5
8747echo "${ECHO_T}$enable_shared" >&6
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008748
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008749echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8750echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8751# Make sure either enable_shared or enable_static is yes.
8752test "$enable_shared" = yes || enable_static=yes
8753echo "$as_me:$LINENO: result: $enable_static" >&5
8754echo "${ECHO_T}$enable_static" >&6
8755
8756# The else clause should only fire when bootstrapping the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008757# libtool distribution, otherwise you forgot to ship ltmain.sh
8758# with your package, and you will get complaints that there are
8759# no rules to generate ltmain.sh.
8760if test -f "$ltmain"; then
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008761 # See if we are running on zsh, and set the options which allow our commands through
8762 # without removal of \ escapes.
8763 if test -n "${ZSH_VERSION+set}" ; then
8764 setopt NO_GLOB_SUBST
8765 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008766 # Now quote all the things that may contain metacharacters while being
8767 # careful not to overquote the AC_SUBSTed values. We take copies of the
8768 # variables and quote the copies for generation of the libtool script.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008769 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8770 SED SHELL STRIP \
8771 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8772 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8773 deplibs_check_method reload_flag reload_cmds need_locks \
8774 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8775 lt_cv_sys_global_symbol_to_c_name_address \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008776 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008777 old_postinstall_cmds old_postuninstall_cmds \
8778 compiler \
8779 CC \
8780 LD \
8781 lt_prog_compiler_wl \
8782 lt_prog_compiler_pic \
8783 lt_prog_compiler_static \
8784 lt_prog_compiler_no_builtin_flag \
8785 export_dynamic_flag_spec \
8786 thread_safe_flag_spec \
8787 whole_archive_flag_spec \
8788 enable_shared_with_static_runtimes \
8789 old_archive_cmds \
8790 old_archive_from_new_cmds \
8791 predep_objects \
8792 postdep_objects \
8793 predeps \
8794 postdeps \
8795 compiler_lib_search_path \
8796 archive_cmds \
8797 archive_expsym_cmds \
8798 postinstall_cmds \
8799 postuninstall_cmds \
8800 old_archive_from_expsyms_cmds \
8801 allow_undefined_flag \
8802 no_undefined_flag \
8803 export_symbols_cmds \
8804 hardcode_libdir_flag_spec \
8805 hardcode_libdir_flag_spec_ld \
8806 hardcode_libdir_separator \
8807 hardcode_automatic \
8808 module_cmds \
8809 module_expsym_cmds \
8810 lt_cv_prog_compiler_c_o \
8811 exclude_expsyms \
8812 include_expsyms; do
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008813
8814 case $var in
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008815 old_archive_cmds | \
8816 old_archive_from_new_cmds | \
8817 archive_cmds | \
8818 archive_expsym_cmds | \
8819 module_cmds | \
8820 module_expsym_cmds | \
8821 old_archive_from_expsyms_cmds | \
8822 export_symbols_cmds | \
8823 extract_expsyms_cmds | reload_cmds | finish_cmds | \
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008824 postinstall_cmds | postuninstall_cmds | \
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008825 old_postinstall_cmds | old_postuninstall_cmds | \
8826 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008827 # Double-quote double-evaled strings.
8828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8829 ;;
8830 *)
8831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8832 ;;
8833 esac
8834 done
8835
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008836 case $lt_echo in
8837 *'\$0 --fallback-echo"')
8838 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8839 ;;
8840 esac
8841
8842cfgfile="${ofile}T"
8843 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8844 $rm -f "$cfgfile"
8845 { echo "$as_me:$LINENO: creating $ofile" >&5
8846echo "$as_me: creating $ofile" >&6;}
8847
8848 cat <<__EOF__ >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008849#! $SHELL
8850
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008851# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008852# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8853# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8854#
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008855# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8856# Free Software Foundation, Inc.
8857#
8858# This file is part of GNU Libtool:
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008859# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8860#
8861# This program is free software; you can redistribute it and/or modify
8862# it under the terms of the GNU General Public License as published by
8863# the Free Software Foundation; either version 2 of the License, or
8864# (at your option) any later version.
8865#
8866# This program is distributed in the hope that it will be useful, but
8867# WITHOUT ANY WARRANTY; without even the implied warranty of
8868# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8869# General Public License for more details.
8870#
8871# You should have received a copy of the GNU General Public License
8872# along with this program; if not, write to the Free Software
8873# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8874#
8875# As a special exception to the GNU General Public License, if you
8876# distribute this file as part of a program that contains a
8877# configuration script generated by Autoconf, you may include it under
8878# the same distribution terms that you use for the rest of that program.
8879
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008880# A sed program that does not truncate output.
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008881SED=$lt_SED
8882
8883# Sed that helps us avoid accidentally triggering echo(1) options like -n.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008884Xsed="$SED -e s/^X//"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008885
8886# The HP-UX ksh and POSIX shell print the target directory to stdout
8887# if CDPATH is set.
8888if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8889
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008890# The names of the tagged configurations supported by this script.
8891available_tags=
8892
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008893# ### BEGIN LIBTOOL CONFIG
8894
8895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8896
8897# Shell to use when invoking shell scripts.
8898SHELL=$lt_SHELL
8899
8900# Whether or not to build shared libraries.
8901build_libtool_libs=$enable_shared
8902
8903# Whether or not to build static libraries.
8904build_old_libs=$enable_static
8905
8906# Whether or not to add -lc for building shared libraries.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008907build_libtool_need_lc=$archive_cmds_need_lc
8908
8909# Whether or not to disallow shared libs when runtime libs are static
8910allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008911
8912# Whether or not to optimize for fast installation.
8913fast_install=$enable_fast_install
8914
8915# The host system.
8916host_alias=$host_alias
8917host=$host
8918
8919# An echo program that does not interpret backslashes.
8920echo=$lt_echo
8921
8922# The archiver.
8923AR=$lt_AR
8924AR_FLAGS=$lt_AR_FLAGS
8925
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008926# A C compiler.
8927LTCC=$lt_LTCC
8928
8929# A language-specific compiler.
8930CC=$lt_compiler
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008931
8932# Is the compiler the GNU C compiler?
8933with_gcc=$GCC
8934
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008935# An ERE matcher.
8936EGREP=$lt_EGREP
8937
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008938# The linker used to build libraries.
8939LD=$lt_LD
8940
8941# Whether we need hard or soft links.
8942LN_S=$lt_LN_S
8943
8944# A BSD-compatible nm program.
8945NM=$lt_NM
8946
8947# A symbol stripping program
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008948STRIP=$lt_STRIP
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008949
8950# Used to examine libraries when file_magic_cmd begins "file"
8951MAGIC_CMD=$MAGIC_CMD
8952
8953# Used on cygwin: DLL creation program.
8954DLLTOOL="$DLLTOOL"
8955
8956# Used on cygwin: object dumper.
8957OBJDUMP="$OBJDUMP"
8958
8959# Used on cygwin: assembler.
8960AS="$AS"
8961
8962# The name of the directory that contains temporary libtool files.
8963objdir=$objdir
8964
8965# How to create reloadable object files.
8966reload_flag=$lt_reload_flag
8967reload_cmds=$lt_reload_cmds
8968
8969# How to pass a linker flag through the compiler.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008970wl=$lt_lt_prog_compiler_wl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008971
8972# Object file suffix (normally "o").
8973objext="$ac_objext"
8974
8975# Old archive suffix (normally "a").
8976libext="$libext"
8977
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008978# Shared library suffix (normally ".so").
8979shrext='$shrext'
8980
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008981# Executable file suffix (normally "").
8982exeext="$exeext"
8983
8984# Additional compiler flags for building library objects.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008985pic_flag=$lt_lt_prog_compiler_pic
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008986pic_mode=$pic_mode
8987
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008988# What is the maximum length of a command?
8989max_cmd_len=$lt_cv_sys_max_cmd_len
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008990
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00008991# Does compiler simultaneously support -c and -o options?
8992compiler_c_o=$lt_lt_cv_prog_compiler_c_o
mostang.com!davidmf26451a2003-01-16 03:10:11 +00008993
8994# Must we lock files when doing compilation ?
8995need_locks=$lt_need_locks
8996
8997# Do we need the lib prefix for modules?
8998need_lib_prefix=$need_lib_prefix
8999
9000# Do we need a version for libraries?
9001need_version=$need_version
9002
9003# Whether dlopen is supported.
9004dlopen_support=$enable_dlopen
9005
9006# Whether dlopen of programs is supported.
9007dlopen_self=$enable_dlopen_self
9008
9009# Whether dlopen of statically linked programs is supported.
9010dlopen_self_static=$enable_dlopen_self_static
9011
9012# Compiler flag to prevent dynamic linking.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009013link_static_flag=$lt_lt_prog_compiler_static
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009014
9015# Compiler flag to turn off builtin functions.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009016no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009017
9018# Compiler flag to allow reflexive dlopens.
9019export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9020
9021# Compiler flag to generate shared objects directly from archives.
9022whole_archive_flag_spec=$lt_whole_archive_flag_spec
9023
9024# Compiler flag to generate thread-safe objects.
9025thread_safe_flag_spec=$lt_thread_safe_flag_spec
9026
9027# Library versioning type.
9028version_type=$version_type
9029
9030# Format of library name prefix.
9031libname_spec=$lt_libname_spec
9032
9033# List of archive names. First name is the real one, the rest are links.
9034# The last name is the one that the linker finds with -lNAME.
9035library_names_spec=$lt_library_names_spec
9036
9037# The coded name of the library, if different from the real name.
9038soname_spec=$lt_soname_spec
9039
9040# Commands used to build and install an old-style archive.
9041RANLIB=$lt_RANLIB
9042old_archive_cmds=$lt_old_archive_cmds
9043old_postinstall_cmds=$lt_old_postinstall_cmds
9044old_postuninstall_cmds=$lt_old_postuninstall_cmds
9045
9046# Create an old-style archive from a shared archive.
9047old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9048
9049# Create a temporary old-style archive to link instead of a shared archive.
9050old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9051
9052# Commands used to build and install a shared archive.
9053archive_cmds=$lt_archive_cmds
9054archive_expsym_cmds=$lt_archive_expsym_cmds
9055postinstall_cmds=$lt_postinstall_cmds
9056postuninstall_cmds=$lt_postuninstall_cmds
9057
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009058# Commands used to build a loadable module (assumed same as above if empty)
9059module_cmds=$lt_module_cmds
9060module_expsym_cmds=$lt_module_expsym_cmds
9061
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009062# Commands to strip libraries.
9063old_striplib=$lt_old_striplib
9064striplib=$lt_striplib
9065
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009066# Dependencies to place before the objects being linked to create a
9067# shared library.
9068predep_objects=$lt_predep_objects
9069
9070# Dependencies to place after the objects being linked to create a
9071# shared library.
9072postdep_objects=$lt_postdep_objects
9073
9074# Dependencies to place before the objects being linked to create a
9075# shared library.
9076predeps=$lt_predeps
9077
9078# Dependencies to place after the objects being linked to create a
9079# shared library.
9080postdeps=$lt_postdeps
9081
9082# The library search path used internally by the compiler when linking
9083# a shared library.
9084compiler_lib_search_path=$lt_compiler_lib_search_path
9085
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009086# Method to check whether dependent libraries are shared objects.
9087deplibs_check_method=$lt_deplibs_check_method
9088
9089# Command to use when deplibs_check_method == file_magic.
9090file_magic_cmd=$lt_file_magic_cmd
9091
9092# Flag that allows shared libraries with undefined symbols to be built.
9093allow_undefined_flag=$lt_allow_undefined_flag
9094
9095# Flag that forces no undefined symbols.
9096no_undefined_flag=$lt_no_undefined_flag
9097
9098# Commands used to finish a libtool library installation in a directory.
9099finish_cmds=$lt_finish_cmds
9100
9101# Same as above, but a single script fragment to be evaled but not shown.
9102finish_eval=$lt_finish_eval
9103
9104# Take the output of nm and produce a listing of raw symbols and C names.
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009105global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009106
9107# Transform the output of nm in a proper C declaration
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009108global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009109
9110# Transform the output of nm in a C name address pair
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009111global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009112
9113# This is the shared library runtime path variable.
9114runpath_var=$runpath_var
9115
9116# This is the shared library path variable.
9117shlibpath_var=$shlibpath_var
9118
9119# Is shlibpath searched before the hard-coded library search path?
9120shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9121
9122# How to hardcode a shared library path into an executable.
9123hardcode_action=$hardcode_action
9124
9125# Whether we should hardcode library paths into libraries.
9126hardcode_into_libs=$hardcode_into_libs
9127
9128# Flag to hardcode \$libdir into a binary during linking.
9129# This must work even if \$libdir does not exist.
9130hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9131
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009132# If ld is used when linking, flag to hardcode \$libdir into
9133# a binary during linking. This must work even if \$libdir does
9134# not exist.
9135hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9136
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009137# Whether we need a single -rpath flag with a separated argument.
9138hardcode_libdir_separator=$lt_hardcode_libdir_separator
9139
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009140# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009141# resulting binary.
9142hardcode_direct=$hardcode_direct
9143
9144# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9145# resulting binary.
9146hardcode_minus_L=$hardcode_minus_L
9147
9148# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9149# the resulting binary.
9150hardcode_shlibpath_var=$hardcode_shlibpath_var
9151
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009152# Set to yes if building a shared library automatically hardcodes DIR into the library
9153# and all subsequent libraries and executables linked against it.
9154hardcode_automatic=$hardcode_automatic
9155
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009156# Variables whose values should be saved in libtool wrapper scripts and
9157# restored at relink time.
9158variables_saved_for_relink="$variables_saved_for_relink"
9159
9160# Whether libtool must link a program against all its dependency libraries.
9161link_all_deplibs=$link_all_deplibs
9162
9163# Compile-time system search path for libraries
9164sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9165
9166# Run-time system search path for libraries
9167sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9168
9169# Fix the shell variable \$srcfile for the compiler.
9170fix_srcfile_path="$fix_srcfile_path"
9171
9172# Set to yes if exported symbols are required.
9173always_export_symbols=$always_export_symbols
9174
9175# The commands to list exported symbols.
9176export_symbols_cmds=$lt_export_symbols_cmds
9177
9178# The commands to extract the exported symbol list from a shared archive.
9179extract_expsyms_cmds=$lt_extract_expsyms_cmds
9180
9181# Symbols that should not be listed in the preloaded symbols.
9182exclude_expsyms=$lt_exclude_expsyms
9183
9184# Symbols that must always be exported.
9185include_expsyms=$lt_include_expsyms
9186
9187# ### END LIBTOOL CONFIG
9188
9189__EOF__
9190
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009191
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009192 case $host_os in
9193 aix3*)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009194 cat <<\EOF >> "$cfgfile"
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009195
9196# AIX sometimes has problems with the GCC collect2 program. For some
9197# reason, if we set the COLLECT_NAMES environment variable, the problems
9198# vanish in a puff of smoke.
9199if test "X${COLLECT_NAMES+set}" != Xset; then
9200 COLLECT_NAMES=
9201 export COLLECT_NAMES
9202fi
9203EOF
9204 ;;
9205 esac
9206
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009207 # We use sed instead of cat because bash on DJGPP gets confused if
9208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9209 # text mode, it properly converts lines to CR/LF. This bash problem
9210 # is reportedly fixed, but why not run on old versions too?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009211 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009212
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009213 mv -f "$cfgfile" "$ofile" || \
9214 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009215 chmod +x "$ofile"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009216
9217else
9218 # If there is no Makefile yet, we rely on a make rule to execute
9219 # `config.status --recheck' to rerun these tests and create the
9220 # libtool script then.
9221 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9222 if test -f "$ltmain_in"; then
9223 test -f Makefile && make "$ltmain"
9224 fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +00009225fi
9226
9227
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009228ac_ext=c
9229ac_cpp='$CPP $CPPFLAGS'
9230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9232ac_compiler_gnu=$ac_cv_c_compiler_gnu
9233
9234CC="$lt_save_CC"
9235
9236
9237# Check whether --with-tags or --without-tags was given.
9238if test "${with_tags+set}" = set; then
9239 withval="$with_tags"
9240 tagnames="$withval"
9241fi;
9242
9243if test -f "$ltmain" && test -n "$tagnames"; then
9244 if test ! -f "${ofile}"; then
9245 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9246echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9247 fi
9248
9249 if test -z "$LTCC"; then
9250 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9251 if test -z "$LTCC"; then
9252 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9253echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9254 else
9255 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9256echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9257 fi
9258 fi
9259
9260 # Extract list of available tagged configurations in $ofile.
9261 # Note that this assumes the entire list is on one line.
9262 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9263
9264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9265 for tagname in $tagnames; do
9266 IFS="$lt_save_ifs"
9267 # Check whether tagname contains only valid characters
9268 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9269 "") ;;
9270 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9271echo "$as_me: error: invalid tag name: $tagname" >&2;}
9272 { (exit 1); exit 1; }; }
9273 ;;
9274 esac
9275
9276 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9277 then
9278 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9279echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9280 { (exit 1); exit 1; }; }
9281 fi
9282
9283 # Update the list of available tags.
9284 if test -n "$tagname"; then
9285 echo appending configuration tag \"$tagname\" to $ofile
9286
9287 case $tagname in
9288 CXX)
9289 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9290 ac_ext=cc
9291ac_cpp='$CXXCPP $CPPFLAGS'
9292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9295
9296
9297
9298
9299archive_cmds_need_lc_CXX=no
9300allow_undefined_flag_CXX=
9301always_export_symbols_CXX=no
9302archive_expsym_cmds_CXX=
9303export_dynamic_flag_spec_CXX=
9304hardcode_direct_CXX=no
9305hardcode_libdir_flag_spec_CXX=
9306hardcode_libdir_flag_spec_ld_CXX=
9307hardcode_libdir_separator_CXX=
9308hardcode_minus_L_CXX=no
9309hardcode_automatic_CXX=no
9310module_cmds_CXX=
9311module_expsym_cmds_CXX=
9312link_all_deplibs_CXX=unknown
9313old_archive_cmds_CXX=$old_archive_cmds
9314no_undefined_flag_CXX=
9315whole_archive_flag_spec_CXX=
9316enable_shared_with_static_runtimes_CXX=no
9317
9318# Dependencies to place before and after the object being linked:
9319predep_objects_CXX=
9320postdep_objects_CXX=
9321predeps_CXX=
9322postdeps_CXX=
9323compiler_lib_search_path_CXX=
9324
9325# Source file extension for C++ test sources.
9326ac_ext=cc
9327
9328# Object file extension for compiled C++ test sources.
9329objext=o
9330objext_CXX=$objext
9331
9332# Code to be used in simple compile tests
9333lt_simple_compile_test_code="int some_variable = 0;\n"
9334
9335# Code to be used in simple link tests
9336lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9337
9338# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9339
9340# If no C compiler was specified, use CC.
9341LTCC=${LTCC-"$CC"}
9342
9343# Allow CC to be a program name with arguments.
9344compiler=$CC
9345
9346
9347# Allow CC to be a program name with arguments.
9348lt_save_CC=$CC
9349lt_save_LD=$LD
9350lt_save_GCC=$GCC
9351GCC=$GXX
9352lt_save_with_gnu_ld=$with_gnu_ld
9353lt_save_path_LD=$lt_cv_path_LD
9354if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9355 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9356else
9357 unset lt_cv_prog_gnu_ld
9358fi
9359if test -n "${lt_cv_path_LDCXX+set}"; then
9360 lt_cv_path_LD=$lt_cv_path_LDCXX
9361else
9362 unset lt_cv_path_LD
9363fi
9364test -z "${LDCXX+set}" || LD=$LDCXX
9365CC=${CXX-"c++"}
9366compiler=$CC
9367compiler_CXX=$CC
9368cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9369
9370# We don't want -fno-exception wen compiling C++ code, so set the
9371# no_builtin_flag separately
9372if test "$GXX" = yes; then
9373 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9374else
9375 lt_prog_compiler_no_builtin_flag_CXX=
9376fi
9377
9378if test "$GXX" = yes; then
9379 # Set up default GNU C++ configuration
9380
9381
9382# Check whether --with-gnu-ld or --without-gnu-ld was given.
9383if test "${with_gnu_ld+set}" = set; then
9384 withval="$with_gnu_ld"
9385 test "$withval" = no || with_gnu_ld=yes
9386else
9387 with_gnu_ld=no
9388fi;
9389ac_prog=ld
9390if test "$GCC" = yes; then
9391 # Check if gcc -print-prog-name=ld gives a path.
9392 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9393echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9394 case $host in
9395 *-*-mingw*)
9396 # gcc leaves a trailing carriage return which upsets mingw
9397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9398 *)
9399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9400 esac
9401 case $ac_prog in
9402 # Accept absolute paths.
9403 [\\/]* | ?:[\\/]*)
9404 re_direlt='/[^/][^/]*/\.\./'
9405 # Canonicalize the pathname of ld
9406 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9407 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9408 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9409 done
9410 test -z "$LD" && LD="$ac_prog"
9411 ;;
9412 "")
9413 # If it fails, then pretend we aren't using GCC.
9414 ac_prog=ld
9415 ;;
9416 *)
9417 # If it is relative, then search for the first ld in PATH.
9418 with_gnu_ld=unknown
9419 ;;
9420 esac
9421elif test "$with_gnu_ld" = yes; then
9422 echo "$as_me:$LINENO: checking for GNU ld" >&5
9423echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9424else
9425 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9426echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9427fi
9428if test "${lt_cv_path_LD+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430else
9431 if test -z "$LD"; then
9432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433 for ac_dir in $PATH; do
9434 IFS="$lt_save_ifs"
9435 test -z "$ac_dir" && ac_dir=.
9436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9437 lt_cv_path_LD="$ac_dir/$ac_prog"
9438 # Check to see if the program is GNU ld. I'd rather use --version,
9439 # but apparently some GNU ld's only accept -v.
9440 # Break only if it was the GNU/non-GNU ld that we prefer.
9441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9442 *GNU* | *'with BFD'*)
9443 test "$with_gnu_ld" != no && break
9444 ;;
9445 *)
9446 test "$with_gnu_ld" != yes && break
9447 ;;
9448 esac
9449 fi
9450 done
9451 IFS="$lt_save_ifs"
9452else
9453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9454fi
9455fi
9456
9457LD="$lt_cv_path_LD"
9458if test -n "$LD"; then
9459 echo "$as_me:$LINENO: result: $LD" >&5
9460echo "${ECHO_T}$LD" >&6
9461else
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464fi
9465test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9466echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9467 { (exit 1); exit 1; }; }
9468echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9469echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9470if test "${lt_cv_prog_gnu_ld+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9474case `$LD -v 2>&1 </dev/null` in
9475*GNU* | *'with BFD'*)
9476 lt_cv_prog_gnu_ld=yes
9477 ;;
9478*)
9479 lt_cv_prog_gnu_ld=no
9480 ;;
9481esac
9482fi
9483echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9484echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9485with_gnu_ld=$lt_cv_prog_gnu_ld
9486
9487
9488
9489 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9490 # archiving commands below assume that GNU ld is being used.
9491 if test "$with_gnu_ld" = yes; then
9492 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 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'
9494
9495 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9497
9498 # If archive_cmds runs LD, not CC, wlarc should be empty
9499 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9500 # investigate it a little bit more. (MM)
9501 wlarc='${wl}'
9502
9503 # ancient GNU ld didn't support --whole-archive et. al.
9504 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9505 grep 'no-whole-archive' > /dev/null; then
9506 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9507 else
9508 whole_archive_flag_spec_CXX=
9509 fi
9510 else
9511 with_gnu_ld=no
9512 wlarc=
9513
9514 # A generic and very simple default shared library creation
9515 # command for GNU C++ for the case where it uses the native
9516 # linker, instead of GNU ld. If possible, this setting should
9517 # overridden to take advantage of the native linker features on
9518 # the platform it is being used on.
9519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9520 fi
9521
9522 # Commands to make compiler produce verbose output that lists
9523 # what "hidden" libraries, object files and flags are used when
9524 # linking a shared library.
9525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9526
9527else
9528 GXX=no
9529 with_gnu_ld=no
9530 wlarc=
9531fi
9532
9533# PORTME: fill in a description of your system's C++ link characteristics
9534echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9535echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9536ld_shlibs_CXX=yes
9537case $host_os in
9538 aix3*)
9539 # FIXME: insert proper C++ library support
9540 ld_shlibs_CXX=no
9541 ;;
9542 aix4* | aix5*)
9543 if test "$host_cpu" = ia64; then
9544 # On IA64, the linker does run time linking by default, so we don't
9545 # have to do anything special.
9546 aix_use_runtimelinking=no
9547 exp_sym_flag='-Bexport'
9548 no_entry_flag=""
9549 else
9550 aix_use_runtimelinking=no
9551
9552 # Test if we are trying to use run time linking or normal
9553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9554 # need to do runtime linking.
9555 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9556 for ld_flag in $LDFLAGS; do
9557 case $ld_flag in
9558 *-brtl*)
9559 aix_use_runtimelinking=yes
9560 break
9561 ;;
9562 esac
9563 done
9564 esac
9565
9566 exp_sym_flag='-bexport'
9567 no_entry_flag='-bnoentry'
9568 fi
9569
9570 # When large executables or shared objects are built, AIX ld can
9571 # have problems creating the table of contents. If linking a library
9572 # or program results in "error TOC overflow" add -mminimal-toc to
9573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9575
9576 archive_cmds_CXX=''
9577 hardcode_direct_CXX=yes
9578 hardcode_libdir_separator_CXX=':'
9579 link_all_deplibs_CXX=yes
9580
9581 if test "$GXX" = yes; then
9582 case $host_os in aix4.012|aix4.012.*)
9583 # We only want to do this on AIX 4.2 and lower, the check
9584 # below for broken collect2 doesn't work under 4.3+
9585 collect2name=`${CC} -print-prog-name=collect2`
9586 if test -f "$collect2name" && \
9587 strings "$collect2name" | grep resolve_lib_name >/dev/null
9588 then
9589 # We have reworked collect2
9590 hardcode_direct_CXX=yes
9591 else
9592 # We have old collect2
9593 hardcode_direct_CXX=unsupported
9594 # It fails to find uninstalled libraries when the uninstalled
9595 # path is not listed in the libpath. Setting hardcode_minus_L
9596 # to unsupported forces relinking
9597 hardcode_minus_L_CXX=yes
9598 hardcode_libdir_flag_spec_CXX='-L$libdir'
9599 hardcode_libdir_separator_CXX=
9600 fi
9601 esac
9602 shared_flag='-shared'
9603 else
9604 # not using gcc
9605 if test "$host_cpu" = ia64; then
9606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9607 # chokes on -Wl,-G. The following line is correct:
9608 shared_flag='-G'
9609 else
9610 if test "$aix_use_runtimelinking" = yes; then
9611 shared_flag='${wl}-G'
9612 else
9613 shared_flag='${wl}-bM:SRE'
9614 fi
9615 fi
9616 fi
9617
9618 # It seems that -bexpall does not export symbols beginning with
9619 # underscore (_), so it is better to generate a list of symbols to export.
9620 always_export_symbols_CXX=yes
9621 if test "$aix_use_runtimelinking" = yes; then
9622 # Warning - without using the other runtime loading flags (-brtl),
9623 # -berok will link without error, but may produce a broken library.
9624 allow_undefined_flag_CXX='-berok'
9625 # Determine the default libpath from the value encoded in an empty executable.
9626 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00009627#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>conftest.$ac_ext <<_ACEOF
9632/* end confdefs.h. */
9633
9634int
9635main ()
9636{
9637
9638 ;
9639 return 0;
9640}
9641_ACEOF
9642rm -f conftest.$ac_objext conftest$ac_exeext
9643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00009644 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009645 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00009648 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654
9655aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9656}'`
9657# Check for a 64-bit object if we didn't find anything.
9658if 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; }
9659}'`; fi
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00009665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9667
9668 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9669
9670 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"
9671 else
9672 if test "$host_cpu" = ia64; then
9673 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9674 allow_undefined_flag_CXX="-z nodefs"
9675 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"
9676 else
9677 # Determine the default libpath from the value encoded in an empty executable.
9678 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +00009679#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009680/* confdefs.h. */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
9685
9686int
9687main ()
9688{
9689
9690 ;
9691 return 0;
9692}
9693_ACEOF
9694rm -f conftest.$ac_objext conftest$ac_exeext
9695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +00009696 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009697 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +00009700 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706
9707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9708}'`
9709# Check for a 64-bit object if we didn't find anything.
9710if 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; }
9711}'`; fi
9712else
9713 echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716fi
mostang.com!davidm046362a2003-12-05 06:42:28 +00009717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +00009718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9719
9720 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9721 # Warning - without using the other run time loading flags,
9722 # -berok will link without error, but may produce a broken library.
9723 no_undefined_flag_CXX=' ${wl}-bernotok'
9724 allow_undefined_flag_CXX=' ${wl}-berok'
9725 # -bexpall does not export symbols beginning with underscore (_)
9726 always_export_symbols_CXX=yes
9727 # Exported symbols can be pulled into shared objects from archives
9728 whole_archive_flag_spec_CXX=' '
9729 archive_cmds_need_lc_CXX=yes
9730 # This is similar to how AIX traditionally builds it's shared libraries.
9731 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'
9732 fi
9733 fi
9734 ;;
9735 chorus*)
9736 case $cc_basename in
9737 *)
9738 # FIXME: insert proper C++ library support
9739 ld_shlibs_CXX=no
9740 ;;
9741 esac
9742 ;;
9743
9744 cygwin* | mingw* | pw32*)
9745 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9746 # as there is no search path for DLLs.
9747 hardcode_libdir_flag_spec_CXX='-L$libdir'
9748 allow_undefined_flag_CXX=unsupported
9749 always_export_symbols_CXX=no
9750 enable_shared_with_static_runtimes_CXX=yes
9751
9752 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9753 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'
9754 # If the export-symbols file already is a .def file (1st line
9755 # is EXPORTS), use it as is; otherwise, prepend...
9756 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9757 cp $export_symbols $output_objdir/$soname.def;
9758 else
9759 echo EXPORTS > $output_objdir/$soname.def;
9760 cat $export_symbols >> $output_objdir/$soname.def;
9761 fi~
9762 $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'
9763 else
9764 ld_shlibs_CXX=no
9765 fi
9766 ;;
9767
9768 darwin* | rhapsody*)
9769 if test "$GXX" = yes; then
9770 archive_cmds_need_lc_CXX=no
9771 case "$host_os" in
9772 rhapsody* | darwin1.[012])
9773 allow_undefined_flag_CXX='-undefined suppress'
9774 ;;
9775 *) # Darwin 1.3 on
9776 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9777 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9778 else
9779 case ${MACOSX_DEPLOYMENT_TARGET} in
9780 10.[012])
9781 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9782 ;;
9783 10.*)
9784 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9785 ;;
9786 esac
9787 fi
9788 ;;
9789 esac
9790 lt_int_apple_cc_single_mod=no
9791 output_verbose_link_cmd='echo'
9792 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9793 lt_int_apple_cc_single_mod=yes
9794 fi
9795 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9796 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9797 else
9798 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'
9799 fi
9800 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9801
9802 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9803 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9804 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}'
9805 else
9806 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}'
9807 fi
9808 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}'
9809 hardcode_direct_CXX=no
9810 hardcode_automatic_CXX=yes
9811 hardcode_shlibpath_var_CXX=unsupported
9812 whole_archive_flag_spec_CXX='-all_load $convenience'
9813 link_all_deplibs_CXX=yes
9814 else
9815 ld_shlibs_CXX=no
9816 fi
9817 ;;
9818
9819 dgux*)
9820 case $cc_basename in
9821 ec++)
9822 # FIXME: insert proper C++ library support
9823 ld_shlibs_CXX=no
9824 ;;
9825 ghcx)
9826 # Green Hills C++ Compiler
9827 # FIXME: insert proper C++ library support
9828 ld_shlibs_CXX=no
9829 ;;
9830 *)
9831 # FIXME: insert proper C++ library support
9832 ld_shlibs_CXX=no
9833 ;;
9834 esac
9835 ;;
9836 freebsd12*)
9837 # C++ shared libraries reported to be fairly broken before switch to ELF
9838 ld_shlibs_CXX=no
9839 ;;
9840 freebsd-elf*)
9841 archive_cmds_need_lc_CXX=no
9842 ;;
9843 freebsd* | kfreebsd*-gnu)
9844 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9845 # conventions
9846 ld_shlibs_CXX=yes
9847 ;;
9848 gnu*)
9849 ;;
9850 hpux9*)
9851 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9852 hardcode_libdir_separator_CXX=:
9853 export_dynamic_flag_spec_CXX='${wl}-E'
9854 hardcode_direct_CXX=yes
9855 hardcode_minus_L_CXX=yes # Not in the search PATH,
9856 # but as the default
9857 # location of the library.
9858
9859 case $cc_basename in
9860 CC)
9861 # FIXME: insert proper C++ library support
9862 ld_shlibs_CXX=no
9863 ;;
9864 aCC)
9865 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'
9866 # Commands to make compiler produce verbose output that lists
9867 # what "hidden" libraries, object files and flags are used when
9868 # linking a shared library.
9869 #
9870 # There doesn't appear to be a way to prevent this compiler from
9871 # explicitly linking system object files so we need to strip them
9872 # from the output so that they don't get included in the library
9873 # dependencies.
9874 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9875 ;;
9876 *)
9877 if test "$GXX" = yes; then
9878 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'
9879 else
9880 # FIXME: insert proper C++ library support
9881 ld_shlibs_CXX=no
9882 fi
9883 ;;
9884 esac
9885 ;;
9886 hpux10*|hpux11*)
9887 if test $with_gnu_ld = no; then
9888 case "$host_cpu" in
9889 hppa*64*)
9890 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9891 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9892 hardcode_libdir_separator_CXX=:
9893 ;;
9894 ia64*)
9895 hardcode_libdir_flag_spec_CXX='-L$libdir'
9896 ;;
9897 *)
9898 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_separator_CXX=:
9900 export_dynamic_flag_spec_CXX='${wl}-E'
9901 ;;
9902 esac
9903 fi
9904 case "$host_cpu" in
9905 hppa*64*)
9906 hardcode_direct_CXX=no
9907 hardcode_shlibpath_var_CXX=no
9908 ;;
9909 ia64*)
9910 hardcode_direct_CXX=no
9911 hardcode_shlibpath_var_CXX=no
9912 hardcode_minus_L_CXX=yes # Not in the search PATH,
9913 # but as the default
9914 # location of the library.
9915 ;;
9916 *)
9917 hardcode_direct_CXX=yes
9918 hardcode_minus_L_CXX=yes # Not in the search PATH,
9919 # but as the default
9920 # location of the library.
9921 ;;
9922 esac
9923
9924 case $cc_basename in
9925 CC)
9926 # FIXME: insert proper C++ library support
9927 ld_shlibs_CXX=no
9928 ;;
9929 aCC)
9930 case "$host_cpu" in
9931 hppa*64*|ia64*)
9932 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9933 ;;
9934 *)
9935 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936 ;;
9937 esac
9938 # Commands to make compiler produce verbose output that lists
9939 # what "hidden" libraries, object files and flags are used when
9940 # linking a shared library.
9941 #
9942 # There doesn't appear to be a way to prevent this compiler from
9943 # explicitly linking system object files so we need to strip them
9944 # from the output so that they don't get included in the library
9945 # dependencies.
9946 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'
9947 ;;
9948 *)
9949 if test "$GXX" = yes; then
9950 if test $with_gnu_ld = no; then
9951 case "$host_cpu" in
9952 ia64*|hppa*64*)
9953 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9954 ;;
9955 *)
9956 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'
9957 ;;
9958 esac
9959 fi
9960 else
9961 # FIXME: insert proper C++ library support
9962 ld_shlibs_CXX=no
9963 fi
9964 ;;
9965 esac
9966 ;;
9967 irix5* | irix6*)
9968 case $cc_basename in
9969 CC)
9970 # SGI C++
9971 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'
9972
9973 # Archives containing C++ object files must be created using
9974 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9975 # necessary to make sure instantiated templates are included
9976 # in the archive.
9977 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9978 ;;
9979 *)
9980 if test "$GXX" = yes; then
9981 if test "$with_gnu_ld" = no; then
9982 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'
9983 else
9984 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'
9985 fi
9986 fi
9987 link_all_deplibs_CXX=yes
9988 ;;
9989 esac
9990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator_CXX=:
9992 ;;
9993 linux*)
9994 case $cc_basename in
9995 KCC)
9996 # Kuck and Associates, Inc. (KAI) C++ Compiler
9997
9998 # KCC will only create a shared library if the output file
9999 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10000 # to its proper name (with version) after linking.
10001 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'
10002 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'
10003 # Commands to make compiler produce verbose output that lists
10004 # what "hidden" libraries, object files and flags are used when
10005 # linking a shared library.
10006 #
10007 # There doesn't appear to be a way to prevent this compiler from
10008 # explicitly linking system object files so we need to strip them
10009 # from the output so that they don't get included in the library
10010 # dependencies.
10011 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'
10012
10013 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10014 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10015
10016 # Archives containing C++ object files must be created using
10017 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10018 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10019 ;;
10020 icpc)
10021 # Intel C++
10022 with_gnu_ld=yes
10023 archive_cmds_need_lc_CXX=no
10024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10025 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'
10026 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10027 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10028 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10029 ;;
10030 cxx)
10031 # Compaq C++
10032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10033 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'
10034
10035 runpath_var=LD_RUN_PATH
10036 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10037 hardcode_libdir_separator_CXX=:
10038
10039 # Commands to make compiler produce verbose output that lists
10040 # what "hidden" libraries, object files and flags are used when
10041 # linking a shared library.
10042 #
10043 # There doesn't appear to be a way to prevent this compiler from
10044 # explicitly linking system object files so we need to strip them
10045 # from the output so that they don't get included in the library
10046 # dependencies.
10047 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'
10048 ;;
10049 esac
10050 ;;
10051 lynxos*)
10052 # FIXME: insert proper C++ library support
10053 ld_shlibs_CXX=no
10054 ;;
10055 m88k*)
10056 # FIXME: insert proper C++ library support
10057 ld_shlibs_CXX=no
10058 ;;
10059 mvs*)
10060 case $cc_basename in
10061 cxx)
10062 # FIXME: insert proper C++ library support
10063 ld_shlibs_CXX=no
10064 ;;
10065 *)
10066 # FIXME: insert proper C++ library support
10067 ld_shlibs_CXX=no
10068 ;;
10069 esac
10070 ;;
10071 netbsd*)
10072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10073 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10074 wlarc=
10075 hardcode_libdir_flag_spec_CXX='-R$libdir'
10076 hardcode_direct_CXX=yes
10077 hardcode_shlibpath_var_CXX=no
10078 fi
10079 # Workaround some broken pre-1.5 toolchains
10080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10081 ;;
10082 osf3*)
10083 case $cc_basename in
10084 KCC)
10085 # Kuck and Associates, Inc. (KAI) C++ Compiler
10086
10087 # KCC will only create a shared library if the output file
10088 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10089 # to its proper name (with version) after linking.
10090 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'
10091
10092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10093 hardcode_libdir_separator_CXX=:
10094
10095 # Archives containing C++ object files must be created using
10096 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10097 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10098
10099 ;;
10100 RCC)
10101 # Rational C++ 2.4.1
10102 # FIXME: insert proper C++ library support
10103 ld_shlibs_CXX=no
10104 ;;
10105 cxx)
10106 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10107 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'
10108
10109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10110 hardcode_libdir_separator_CXX=:
10111
10112 # Commands to make compiler produce verbose output that lists
10113 # what "hidden" libraries, object files and flags are used when
10114 # linking a shared library.
10115 #
10116 # There doesn't appear to be a way to prevent this compiler from
10117 # explicitly linking system object files so we need to strip them
10118 # from the output so that they don't get included in the library
10119 # dependencies.
10120 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'
10121 ;;
10122 *)
10123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10124 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10125 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'
10126
10127 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10128 hardcode_libdir_separator_CXX=:
10129
10130 # Commands to make compiler produce verbose output that lists
10131 # what "hidden" libraries, object files and flags are used when
10132 # linking a shared library.
10133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10134
10135 else
10136 # FIXME: insert proper C++ library support
10137 ld_shlibs_CXX=no
10138 fi
10139 ;;
10140 esac
10141 ;;
10142 osf4* | osf5*)
10143 case $cc_basename in
10144 KCC)
10145 # Kuck and Associates, Inc. (KAI) C++ Compiler
10146
10147 # KCC will only create a shared library if the output file
10148 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10149 # to its proper name (with version) after linking.
10150 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'
10151
10152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10153 hardcode_libdir_separator_CXX=:
10154
10155 # Archives containing C++ object files must be created using
10156 # the KAI C++ compiler.
10157 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10158 ;;
10159 RCC)
10160 # Rational C++ 2.4.1
10161 # FIXME: insert proper C++ library support
10162 ld_shlibs_CXX=no
10163 ;;
10164 cxx)
10165 allow_undefined_flag_CXX=' -expect_unresolved \*'
10166 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'
10167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10168 echo "-hidden">> $lib.exp~
10169 $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~
10170 $rm $lib.exp'
10171
10172 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10173 hardcode_libdir_separator_CXX=:
10174
10175 # Commands to make compiler produce verbose output that lists
10176 # what "hidden" libraries, object files and flags are used when
10177 # linking a shared library.
10178 #
10179 # There doesn't appear to be a way to prevent this compiler from
10180 # explicitly linking system object files so we need to strip them
10181 # from the output so that they don't get included in the library
10182 # dependencies.
10183 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'
10184 ;;
10185 *)
10186 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10187 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10188 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'
10189
10190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10191 hardcode_libdir_separator_CXX=:
10192
10193 # Commands to make compiler produce verbose output that lists
10194 # what "hidden" libraries, object files and flags are used when
10195 # linking a shared library.
10196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10197
10198 else
10199 # FIXME: insert proper C++ library support
10200 ld_shlibs_CXX=no
10201 fi
10202 ;;
10203 esac
10204 ;;
10205 psos*)
10206 # FIXME: insert proper C++ library support
10207 ld_shlibs_CXX=no
10208 ;;
10209 sco*)
10210 archive_cmds_need_lc_CXX=no
10211 case $cc_basename in
10212 CC)
10213 # FIXME: insert proper C++ library support
10214 ld_shlibs_CXX=no
10215 ;;
10216 *)
10217 # FIXME: insert proper C++ library support
10218 ld_shlibs_CXX=no
10219 ;;
10220 esac
10221 ;;
10222 sunos4*)
10223 case $cc_basename in
10224 CC)
10225 # Sun C++ 4.x
10226 # FIXME: insert proper C++ library support
10227 ld_shlibs_CXX=no
10228 ;;
10229 lcc)
10230 # Lucid
10231 # FIXME: insert proper C++ library support
10232 ld_shlibs_CXX=no
10233 ;;
10234 *)
10235 # FIXME: insert proper C++ library support
10236 ld_shlibs_CXX=no
10237 ;;
10238 esac
10239 ;;
10240 solaris*)
10241 case $cc_basename in
10242 CC)
10243 # Sun C++ 4.2, 5.x and Centerline C++
10244 no_undefined_flag_CXX=' -zdefs'
10245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10246 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10247 $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'
10248
10249 hardcode_libdir_flag_spec_CXX='-R$libdir'
10250 hardcode_shlibpath_var_CXX=no
10251 case $host_os in
10252 solaris2.0-5 | solaris2.0-5.*) ;;
10253 *)
10254 # The C++ compiler is used as linker so we must use $wl
10255 # flag to pass the commands to the underlying system
10256 # linker.
10257 # Supported since Solaris 2.6 (maybe 2.5.1?)
10258 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10259 ;;
10260 esac
10261 link_all_deplibs_CXX=yes
10262
10263 # Commands to make compiler produce verbose output that lists
10264 # what "hidden" libraries, object files and flags are used when
10265 # linking a shared library.
10266 #
10267 # There doesn't appear to be a way to prevent this compiler from
10268 # explicitly linking system object files so we need to strip them
10269 # from the output so that they don't get included in the library
10270 # dependencies.
10271 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'
10272
10273 # Archives containing C++ object files must be created using
10274 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10275 # necessary to make sure instantiated templates are included
10276 # in the archive.
10277 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10278 ;;
10279 gcx)
10280 # Green Hills C++ Compiler
10281 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10282
10283 # The C++ compiler must be used to create the archive.
10284 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10285 ;;
10286 *)
10287 # GNU C++ compiler with Solaris linker
10288 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10289 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10290 if $CC --version | grep -v '^2\.7' > /dev/null; then
10291 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10292 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10293 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10294
10295 # Commands to make compiler produce verbose output that lists
10296 # what "hidden" libraries, object files and flags are used when
10297 # linking a shared library.
10298 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10299 else
10300 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10301 # platform.
10302 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10303 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10304 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10305
10306 # Commands to make compiler produce verbose output that lists
10307 # what "hidden" libraries, object files and flags are used when
10308 # linking a shared library.
10309 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10310 fi
10311
10312 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10313 fi
10314 ;;
10315 esac
10316 ;;
10317 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10318 archive_cmds_need_lc_CXX=no
10319 ;;
10320 tandem*)
10321 case $cc_basename in
10322 NCC)
10323 # NonStop-UX NCC 3.20
10324 # FIXME: insert proper C++ library support
10325 ld_shlibs_CXX=no
10326 ;;
10327 *)
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 ;;
10331 esac
10332 ;;
10333 vxworks*)
10334 # FIXME: insert proper C++ library support
10335 ld_shlibs_CXX=no
10336 ;;
10337 *)
10338 # FIXME: insert proper C++ library support
10339 ld_shlibs_CXX=no
10340 ;;
10341esac
10342echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10343echo "${ECHO_T}$ld_shlibs_CXX" >&6
10344test "$ld_shlibs_CXX" = no && can_build_shared=no
10345
10346GCC_CXX="$GXX"
10347LD_CXX="$LD"
10348
10349
10350cat > conftest.$ac_ext <<EOF
10351class Foo
10352{
10353public:
10354 Foo (void) { a = 0; }
10355private:
10356 int a;
10357};
10358EOF
10359
10360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361 (eval $ac_compile) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; then
10365 # Parse the compiler output and extract the necessary
10366 # objects, libraries and library flags.
10367
10368 # Sentinel used to keep track of whether or not we are before
10369 # the conftest object file.
10370 pre_test_object_deps_done=no
10371
10372 # The `*' in the case matches for architectures that use `case' in
10373 # $output_verbose_cmd can trigger glob expansion during the loop
10374 # eval without this substitution.
10375 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10376
10377 for p in `eval $output_verbose_link_cmd`; do
10378 case $p in
10379
10380 -L* | -R* | -l*)
10381 # Some compilers place space between "-{L,R}" and the path.
10382 # Remove the space.
10383 if test $p = "-L" \
10384 || test $p = "-R"; then
10385 prev=$p
10386 continue
10387 else
10388 prev=
10389 fi
10390
10391 if test "$pre_test_object_deps_done" = no; then
10392 case $p in
10393 -L* | -R*)
10394 # Internal compiler library paths should come after those
10395 # provided the user. The postdeps already come after the
10396 # user supplied libs so there is no need to process them.
10397 if test -z "$compiler_lib_search_path_CXX"; then
10398 compiler_lib_search_path_CXX="${prev}${p}"
10399 else
10400 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10401 fi
10402 ;;
10403 # The "-l" case would never come before the object being
10404 # linked, so don't bother handling this case.
10405 esac
10406 else
10407 if test -z "$postdeps_CXX"; then
10408 postdeps_CXX="${prev}${p}"
10409 else
10410 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10411 fi
10412 fi
10413 ;;
10414
10415 *.$objext)
10416 # This assumes that the test object file only shows up
10417 # once in the compiler output.
10418 if test "$p" = "conftest.$objext"; then
10419 pre_test_object_deps_done=yes
10420 continue
10421 fi
10422
10423 if test "$pre_test_object_deps_done" = no; then
10424 if test -z "$predep_objects_CXX"; then
10425 predep_objects_CXX="$p"
10426 else
10427 predep_objects_CXX="$predep_objects_CXX $p"
10428 fi
10429 else
10430 if test -z "$postdep_objects_CXX"; then
10431 postdep_objects_CXX="$p"
10432 else
10433 postdep_objects_CXX="$postdep_objects_CXX $p"
10434 fi
10435 fi
10436 ;;
10437
10438 *) ;; # Ignore the rest.
10439
10440 esac
10441 done
10442
10443 # Clean up.
10444 rm -f a.out a.exe
10445else
10446 echo "libtool.m4: error: problem compiling CXX test program"
10447fi
10448
10449$rm -f confest.$objext
10450
10451case " $postdeps_CXX " in
10452*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10453esac
10454
10455lt_prog_compiler_wl_CXX=
10456lt_prog_compiler_pic_CXX=
10457lt_prog_compiler_static_CXX=
10458
10459echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10460echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10461
10462 # C++ specific cases for pic, static, wl, etc.
10463 if test "$GXX" = yes; then
10464 lt_prog_compiler_wl_CXX='-Wl,'
10465 lt_prog_compiler_static_CXX='-static'
10466
10467 case $host_os in
10468 aix*)
10469 # All AIX code is PIC.
10470 if test "$host_cpu" = ia64; then
10471 # AIX 5 now supports IA64 processor
10472 lt_prog_compiler_static_CXX='-Bstatic'
10473 fi
10474 ;;
10475 amigaos*)
10476 # FIXME: we need at least 68020 code to build shared libraries, but
10477 # adding the `-m68020' flag to GCC prevents building anything better,
10478 # like `-m68040'.
10479 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10480 ;;
10481 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10482 # PIC is the default for these OSes.
10483 ;;
10484 mingw* | os2* | pw32*)
10485 # This hack is so that the source file can tell whether it is being
10486 # built for inclusion in a dll (and should export symbols for example).
10487 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10488 ;;
10489 darwin* | rhapsody*)
10490 # PIC is the default on this platform
10491 # Common symbols not allowed in MH_DYLIB files
10492 lt_prog_compiler_pic_CXX='-fno-common'
10493 ;;
10494 *djgpp*)
10495 # DJGPP does not support shared libraries at all
10496 lt_prog_compiler_pic_CXX=
10497 ;;
10498 sysv4*MP*)
10499 if test -d /usr/nec; then
10500 lt_prog_compiler_pic_CXX=-Kconform_pic
10501 fi
10502 ;;
10503 hpux*)
10504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10505 # not for PA HP-UX.
10506 case "$host_cpu" in
10507 hppa*64*|ia64*)
10508 ;;
10509 *)
10510 lt_prog_compiler_pic_CXX='-fPIC'
10511 ;;
10512 esac
10513 ;;
10514 *)
10515 lt_prog_compiler_pic_CXX='-fPIC'
10516 ;;
10517 esac
10518 else
10519 case $host_os in
10520 aix4* | aix5*)
10521 # All AIX code is PIC.
10522 if test "$host_cpu" = ia64; then
10523 # AIX 5 now supports IA64 processor
10524 lt_prog_compiler_static_CXX='-Bstatic'
10525 else
10526 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10527 fi
10528 ;;
10529 chorus*)
10530 case $cc_basename in
10531 cxch68)
10532 # Green Hills C++ Compiler
10533 # _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"
10534 ;;
10535 esac
10536 ;;
10537 dgux*)
10538 case $cc_basename in
10539 ec++)
10540 lt_prog_compiler_pic_CXX='-KPIC'
10541 ;;
10542 ghcx)
10543 # Green Hills C++ Compiler
10544 lt_prog_compiler_pic_CXX='-pic'
10545 ;;
10546 *)
10547 ;;
10548 esac
10549 ;;
10550 freebsd* | kfreebsd*-gnu)
10551 # FreeBSD uses GNU C++
10552 ;;
10553 hpux9* | hpux10* | hpux11*)
10554 case $cc_basename in
10555 CC)
10556 lt_prog_compiler_wl_CXX='-Wl,'
10557 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10558 if test "$host_cpu" != ia64; then
10559 lt_prog_compiler_pic_CXX='+Z'
10560 fi
10561 ;;
10562 aCC)
10563 lt_prog_compiler_wl_CXX='-Wl,'
10564 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10565 case "$host_cpu" in
10566 hppa*64*|ia64*)
10567 # +Z the default
10568 ;;
10569 *)
10570 lt_prog_compiler_pic_CXX='+Z'
10571 ;;
10572 esac
10573 ;;
10574 *)
10575 ;;
10576 esac
10577 ;;
10578 irix5* | irix6* | nonstopux*)
10579 case $cc_basename in
10580 CC)
10581 lt_prog_compiler_wl_CXX='-Wl,'
10582 lt_prog_compiler_static_CXX='-non_shared'
10583 # CC pic flag -KPIC is the default.
10584 ;;
10585 *)
10586 ;;
10587 esac
10588 ;;
10589 linux*)
10590 case $cc_basename in
10591 KCC)
10592 # KAI C++ Compiler
10593 lt_prog_compiler_wl_CXX='--backend -Wl,'
10594 lt_prog_compiler_pic_CXX='-fPIC'
10595 ;;
10596 icpc)
10597 # Intel C++
10598 lt_prog_compiler_wl_CXX='-Wl,'
10599 lt_prog_compiler_pic_CXX='-KPIC'
10600 lt_prog_compiler_static_CXX='-static'
10601 ;;
10602 cxx)
10603 # Compaq C++
10604 # Make sure the PIC flag is empty. It appears that all Alpha
10605 # Linux and Compaq Tru64 Unix objects are PIC.
10606 lt_prog_compiler_pic_CXX=
10607 lt_prog_compiler_static_CXX='-non_shared'
10608 ;;
10609 *)
10610 ;;
10611 esac
10612 ;;
10613 lynxos*)
10614 ;;
10615 m88k*)
10616 ;;
10617 mvs*)
10618 case $cc_basename in
10619 cxx)
10620 lt_prog_compiler_pic_CXX='-W c,exportall'
10621 ;;
10622 *)
10623 ;;
10624 esac
10625 ;;
10626 netbsd*)
10627 ;;
10628 osf3* | osf4* | osf5*)
10629 case $cc_basename in
10630 KCC)
10631 lt_prog_compiler_wl_CXX='--backend -Wl,'
10632 ;;
10633 RCC)
10634 # Rational C++ 2.4.1
10635 lt_prog_compiler_pic_CXX='-pic'
10636 ;;
10637 cxx)
10638 # Digital/Compaq C++
10639 lt_prog_compiler_wl_CXX='-Wl,'
10640 # Make sure the PIC flag is empty. It appears that all Alpha
10641 # Linux and Compaq Tru64 Unix objects are PIC.
10642 lt_prog_compiler_pic_CXX=
10643 lt_prog_compiler_static_CXX='-non_shared'
10644 ;;
10645 *)
10646 ;;
10647 esac
10648 ;;
10649 psos*)
10650 ;;
10651 sco*)
10652 case $cc_basename in
10653 CC)
10654 lt_prog_compiler_pic_CXX='-fPIC'
10655 ;;
10656 *)
10657 ;;
10658 esac
10659 ;;
10660 solaris*)
10661 case $cc_basename in
10662 CC)
10663 # Sun C++ 4.2, 5.x and Centerline C++
10664 lt_prog_compiler_pic_CXX='-KPIC'
10665 lt_prog_compiler_static_CXX='-Bstatic'
10666 lt_prog_compiler_wl_CXX='-Qoption ld '
10667 ;;
10668 gcx)
10669 # Green Hills C++ Compiler
10670 lt_prog_compiler_pic_CXX='-PIC'
10671 ;;
10672 *)
10673 ;;
10674 esac
10675 ;;
10676 sunos4*)
10677 case $cc_basename in
10678 CC)
10679 # Sun C++ 4.x
10680 lt_prog_compiler_pic_CXX='-pic'
10681 lt_prog_compiler_static_CXX='-Bstatic'
10682 ;;
10683 lcc)
10684 # Lucid
10685 lt_prog_compiler_pic_CXX='-pic'
10686 ;;
10687 *)
10688 ;;
10689 esac
10690 ;;
10691 tandem*)
10692 case $cc_basename in
10693 NCC)
10694 # NonStop-UX NCC 3.20
10695 lt_prog_compiler_pic_CXX='-KPIC'
10696 ;;
10697 *)
10698 ;;
10699 esac
10700 ;;
10701 unixware*)
10702 ;;
10703 vxworks*)
10704 ;;
10705 *)
10706 lt_prog_compiler_can_build_shared_CXX=no
10707 ;;
10708 esac
10709 fi
10710
10711echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10712echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10713
10714#
10715# Check to make sure the PIC flag actually works.
10716#
10717if test -n "$lt_prog_compiler_pic_CXX"; then
10718
10719echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10721if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 lt_prog_compiler_pic_works_CXX=no
10725 ac_outfile=conftest.$ac_objext
10726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10727 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10728 # Insert the option either (1) after the last *FLAGS variable, or
10729 # (2) before a word containing "conftest.", or (3) at the end.
10730 # Note that $ac_compile itself does not contain backslashes and begins
10731 # with a dollar sign (not a hyphen), so the echo should work correctly.
10732 # The option is referenced via a variable to avoid confusing sed.
10733 lt_compile=`echo "$ac_compile" | $SED \
10734 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10736 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000010737 (eval echo "\"\$as_me:10737: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010738 (eval "$lt_compile" 2>conftest.err)
10739 ac_status=$?
10740 cat conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000010741 echo "$as_me:10741: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010742 if (exit $ac_status) && test -s "$ac_outfile"; then
10743 # The compiler can only warn and ignore the option if not recognized
10744 # So say no if there are warnings
10745 if test ! -s conftest.err; then
10746 lt_prog_compiler_pic_works_CXX=yes
10747 fi
10748 fi
10749 $rm conftest*
10750
10751fi
10752echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10753echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10754
10755if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10756 case $lt_prog_compiler_pic_CXX in
10757 "" | " "*) ;;
10758 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10759 esac
10760else
10761 lt_prog_compiler_pic_CXX=
10762 lt_prog_compiler_can_build_shared_CXX=no
10763fi
10764
10765fi
10766case "$host_os" in
10767 # For platforms which do not support PIC, -DPIC is meaningless:
10768 *djgpp*)
10769 lt_prog_compiler_pic_CXX=
10770 ;;
10771 *)
10772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10773 ;;
10774esac
10775
10776echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10778if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780else
10781 lt_cv_prog_compiler_c_o_CXX=no
10782 $rm -r conftest 2>/dev/null
10783 mkdir conftest
10784 cd conftest
10785 mkdir out
10786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10787
10788 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10789 # that will create temporary files in the current directory regardless of
10790 # the output directory. Thus, making CWD read-only will cause this test
10791 # to fail, enabling locking or at least warning the user not to do parallel
10792 # builds.
10793 chmod -w .
10794
10795 lt_compiler_flag="-o out/conftest2.$ac_objext"
10796 # Insert the option either (1) after the last *FLAGS variable, or
10797 # (2) before a word containing "conftest.", or (3) at the end.
10798 # Note that $ac_compile itself does not contain backslashes and begins
10799 # with a dollar sign (not a hyphen), so the echo should work correctly.
10800 lt_compile=`echo "$ac_compile" | $SED \
10801 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10803 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000010804 (eval echo "\"\$as_me:10804: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010805 (eval "$lt_compile" 2>out/conftest.err)
10806 ac_status=$?
10807 cat out/conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000010808 echo "$as_me:10808: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000010809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10810 then
10811 # The compiler can only warn and ignore the option if not recognized
10812 # So say no if there are warnings
10813 if test ! -s out/conftest.err; then
10814 lt_cv_prog_compiler_c_o_CXX=yes
10815 fi
10816 fi
10817 chmod u+w .
10818 $rm conftest*
10819 # SGI C++ compiler will create directory out/ii_files/ for
10820 # template instantiation
10821 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10822 $rm out/* && rmdir out
10823 cd ..
10824 rmdir conftest
10825 $rm conftest*
10826
10827fi
10828echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10829echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10830
10831
10832hard_links="nottested"
10833if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10834 # do not overwrite the value of need_locks provided by the user
10835 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10836echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10837 hard_links=yes
10838 $rm conftest*
10839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10840 touch conftest.a
10841 ln conftest.a conftest.b 2>&5 || hard_links=no
10842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10843 echo "$as_me:$LINENO: result: $hard_links" >&5
10844echo "${ECHO_T}$hard_links" >&6
10845 if test "$hard_links" = no; then
10846 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10847echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10848 need_locks=warn
10849 fi
10850else
10851 need_locks=no
10852fi
10853
10854echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10855echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10856
10857 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10858 case $host_os in
10859 aix4* | aix5*)
10860 # If we're using GNU nm, then we don't want the "-C" option.
10861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10862 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10863 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'
10864 else
10865 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'
10866 fi
10867 ;;
10868 pw32*)
10869 export_symbols_cmds_CXX="$ltdll_cmds"
10870 ;;
10871 cygwin* | mingw*)
10872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10873 ;;
10874 *)
10875 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10876 ;;
10877 esac
10878
10879echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10880echo "${ECHO_T}$ld_shlibs_CXX" >&6
10881test "$ld_shlibs_CXX" = no && can_build_shared=no
10882
10883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10884if test "$GCC" = yes; then
10885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10886fi
10887
10888#
10889# Do we need to explicitly link libc?
10890#
10891case "x$archive_cmds_need_lc_CXX" in
10892x|xyes)
10893 # Assume -lc should be added
10894 archive_cmds_need_lc_CXX=yes
10895
10896 if test "$enable_shared" = yes && test "$GCC" = yes; then
10897 case $archive_cmds_CXX in
10898 *'~'*)
10899 # FIXME: we may have to deal with multi-command sequences.
10900 ;;
10901 '$CC '*)
10902 # Test whether the compiler implicitly links with -lc since on some
10903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10904 # to ld, don't add -lc before -lgcc.
10905 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10906echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10907 $rm conftest*
10908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10909
10910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10911 (eval $ac_compile) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } 2>conftest.err; then
10915 soname=conftest
10916 lib=conftest
10917 libobjs=conftest.$ac_objext
10918 deplibs=
10919 wl=$lt_prog_compiler_wl_CXX
10920 compiler_flags=-v
10921 linker_flags=-v
10922 verstring=
10923 output_objdir=.
10924 libname=conftest
10925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10926 allow_undefined_flag_CXX=
10927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10928 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }
10932 then
10933 archive_cmds_need_lc_CXX=no
10934 else
10935 archive_cmds_need_lc_CXX=yes
10936 fi
10937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10938 else
10939 cat conftest.err 1>&5
10940 fi
10941 $rm conftest*
10942 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10943echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10944 ;;
10945 esac
10946 fi
10947 ;;
10948esac
10949
10950echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10952library_names_spec=
10953libname_spec='lib$name'
10954soname_spec=
10955shrext=".so"
10956postinstall_cmds=
10957postuninstall_cmds=
10958finish_cmds=
10959finish_eval=
10960shlibpath_var=
10961shlibpath_overrides_runpath=unknown
10962version_type=none
10963dynamic_linker="$host_os ld.so"
10964sys_lib_dlsearch_path_spec="/lib /usr/lib"
10965if test "$GCC" = yes; then
10966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10967 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10968 # if the path contains ";" then we assume it to be the separator
10969 # otherwise default to the standard path separator (i.e. ":") - it is
10970 # assumed that no part of a normal pathname contains ";" but that should
10971 # okay in the real world where ";" in dirpaths is itself problematic.
10972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10973 else
10974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10975 fi
10976else
10977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10978fi
10979need_lib_prefix=unknown
10980hardcode_into_libs=no
10981
10982# when you set need_version to no, make sure it does not cause -set_version
10983# flags to be left without arguments
10984need_version=unknown
10985
10986case $host_os in
10987aix3*)
10988 version_type=linux
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10990 shlibpath_var=LIBPATH
10991
10992 # AIX 3 has no versioning support, so we append a major version to the name.
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 ;;
10995
10996aix4* | aix5*)
10997 version_type=linux
10998 need_lib_prefix=no
10999 need_version=no
11000 hardcode_into_libs=yes
11001 if test "$host_cpu" = ia64; then
11002 # AIX 5 supports IA64
11003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 else
11006 # With GCC up to 2.95.x, collect2 would create an import file
11007 # for dependence libraries. The import file would start with
11008 # the line `#! .'. This would cause the generated library to
11009 # depend on `.', always an invalid library. This was fixed in
11010 # development snapshots of GCC prior to 3.0.
11011 case $host_os in
11012 aix4 | aix4.[01] | aix4.[01].*)
11013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11014 echo ' yes '
11015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11016 :
11017 else
11018 can_build_shared=no
11019 fi
11020 ;;
11021 esac
11022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11023 # soname into executable. Probably we can add versioning support to
11024 # collect2, so additional links can be useful in future.
11025 if test "$aix_use_runtimelinking" = yes; then
11026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11027 # instead of lib<name>.a to let people know that these are not
11028 # typical AIX shared libraries.
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 else
11031 # We preserve .a as extension for shared libraries through AIX4.2
11032 # and later when we are not doing run time linking.
11033 library_names_spec='${libname}${release}.a $libname.a'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 fi
11036 shlibpath_var=LIBPATH
11037 fi
11038 ;;
11039
11040amigaos*)
11041 library_names_spec='$libname.ixlibrary $libname.a'
11042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11043 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'
11044 ;;
11045
11046beos*)
11047 library_names_spec='${libname}${shared_ext}'
11048 dynamic_linker="$host_os ld.so"
11049 shlibpath_var=LIBRARY_PATH
11050 ;;
11051
11052bsdi4*)
11053 version_type=linux
11054 need_version=no
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11061 # the default ld.so.conf also contains /usr/contrib/lib and
11062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11063 # libtool to hard-code these into programs
11064 ;;
11065
11066cygwin* | mingw* | pw32*)
11067 version_type=windows
11068 shrext=".dll"
11069 need_version=no
11070 need_lib_prefix=no
11071
11072 case $GCC,$host_os in
11073 yes,cygwin* | yes,mingw* | yes,pw32*)
11074 library_names_spec='$libname.dll.a'
11075 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11076 postinstall_cmds='base_file=`basename \${file}`~
11077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11078 dldir=$destdir/`dirname \$dlpath`~
11079 test -d \$dldir || mkdir -p \$dldir~
11080 $install_prog $dir/$dlname \$dldir/$dlname'
11081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11082 dlpath=$dir/\$dldll~
11083 $rm \$dlpath'
11084 shlibpath_overrides_runpath=yes
11085
11086 case $host_os in
11087 cygwin*)
11088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11089 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11091 ;;
11092 mingw*)
11093 # MinGW DLLs use traditional 'lib' prefix
11094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11096 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11097 # It is most probably a Windows format PATH printed by
11098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11099 # path with ; separators, and with drive letters. We can handle the
11100 # drive letters (cygwin fileutils understands them), so leave them,
11101 # especially as we might pass files found there to a mingw objdump,
11102 # which wouldn't understand a cygwinified path. Ahh.
11103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11104 else
11105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11106 fi
11107 ;;
11108 pw32*)
11109 # pw32 DLLs use 'pw' prefix rather than 'lib'
11110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11111 ;;
11112 esac
11113 ;;
11114
11115 *)
11116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11117 ;;
11118 esac
11119 dynamic_linker='Win32 ld.exe'
11120 # FIXME: first we should search . and the directory the executable is in
11121 shlibpath_var=PATH
11122 ;;
11123
11124darwin* | rhapsody*)
11125 dynamic_linker="$host_os dyld"
11126 version_type=darwin
11127 need_lib_prefix=no
11128 need_version=no
11129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11130 soname_spec='${libname}${release}${major}$shared_ext'
11131 shlibpath_overrides_runpath=yes
11132 shlibpath_var=DYLD_LIBRARY_PATH
11133 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11134 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11135 if test "$GCC" = yes; then
11136 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"`
11137 else
11138 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11139 fi
11140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11141 ;;
11142
11143dgux*)
11144 version_type=linux
11145 need_lib_prefix=no
11146 need_version=no
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 ;;
11151
11152freebsd1*)
11153 dynamic_linker=no
11154 ;;
11155
11156kfreebsd*-gnu)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=no
11164 hardcode_into_libs=yes
11165 dynamic_linker='GNU ld.so'
11166 ;;
11167
11168freebsd*)
11169 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11170 version_type=freebsd-$objformat
11171 case $version_type in
11172 freebsd-elf*)
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11174 need_version=no
11175 need_lib_prefix=no
11176 ;;
11177 freebsd-*)
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11179 need_version=yes
11180 ;;
11181 esac
11182 shlibpath_var=LD_LIBRARY_PATH
11183 case $host_os in
11184 freebsd2*)
11185 shlibpath_overrides_runpath=yes
11186 ;;
11187 freebsd3.01* | freebsdelf3.01*)
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 ;;
11191 *) # from 3.2 on
11192 shlibpath_overrides_runpath=no
11193 hardcode_into_libs=yes
11194 ;;
11195 esac
11196 ;;
11197
11198gnu*)
11199 version_type=linux
11200 need_lib_prefix=no
11201 need_version=no
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11203 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 hardcode_into_libs=yes
11206 ;;
11207
11208hpux9* | hpux10* | hpux11*)
11209 # Give a soname corresponding to the major version so that dld.sl refuses to
11210 # link against other versions.
11211 version_type=sunos
11212 need_lib_prefix=no
11213 need_version=no
11214 case "$host_cpu" in
11215 ia64*)
11216 shrext='.so'
11217 hardcode_into_libs=yes
11218 dynamic_linker="$host_os dld.so"
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 if test "X$HPUX_IA64_MODE" = X32; then
11224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11225 else
11226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11227 fi
11228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11229 ;;
11230 hppa*64*)
11231 shrext='.sl'
11232 hardcode_into_libs=yes
11233 dynamic_linker="$host_os dld.sl"
11234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11240 ;;
11241 *)
11242 shrext='.sl'
11243 dynamic_linker="$host_os dld.sl"
11244 shlibpath_var=SHLIB_PATH
11245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 ;;
11249 esac
11250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11251 postinstall_cmds='chmod 555 $lib'
11252 ;;
11253
11254irix5* | irix6* | nonstopux*)
11255 case $host_os in
11256 nonstopux*) version_type=nonstopux ;;
11257 *)
11258 if test "$lt_cv_prog_gnu_ld" = yes; then
11259 version_type=linux
11260 else
11261 version_type=irix
11262 fi ;;
11263 esac
11264 need_lib_prefix=no
11265 need_version=no
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11268 case $host_os in
11269 irix5* | nonstopux*)
11270 libsuff= shlibsuff=
11271 ;;
11272 *)
11273 case $LD in # libtool.m4 will add one of these switches to LD
11274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11275 libsuff= shlibsuff= libmagic=32-bit;;
11276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11277 libsuff=32 shlibsuff=N32 libmagic=N32;;
11278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11280 *) libsuff= shlibsuff= libmagic=never-match;;
11281 esac
11282 ;;
11283 esac
11284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11285 shlibpath_overrides_runpath=no
11286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11288 hardcode_into_libs=yes
11289 ;;
11290
11291# No shared lib support for Linux oldld, aout, or coff.
11292linux*oldld* | linux*aout* | linux*coff*)
11293 dynamic_linker=no
11294 ;;
11295
11296# This must be Linux ELF.
11297linux*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11304 shlibpath_var=LD_LIBRARY_PATH
11305 shlibpath_overrides_runpath=no
11306 # This implies no fast_install, which is unacceptable.
11307 # Some rework will be needed to allow for fast_install
11308 # before this can be enabled.
11309 hardcode_into_libs=yes
11310
11311 # /usr/X11R6/lib and /usr/local/lib are common enough...
11312 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
11313
11314 # We used to test for /lib/ld.so.1 and disable shared libraries on
11315 # powerpc, because MkLinux only supported shared libraries with the
11316 # GNU dynamic linker. Since this was broken with cross compilers,
11317 # most powerpc-linux boxes support dynamic linking these days and
11318 # people can always --disable-shared, the test was removed, and we
11319 # assume the GNU/Linux dynamic linker is in use.
11320 dynamic_linker='GNU/Linux ld.so'
11321 ;;
11322
11323knetbsd*-gnu)
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 shlibpath_overrides_runpath=no
11331 hardcode_into_libs=yes
11332 dynamic_linker='GNU ld.so'
11333 ;;
11334
11335netbsd*)
11336 version_type=sunos
11337 need_lib_prefix=no
11338 need_version=no
11339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11342 dynamic_linker='NetBSD (a.out) ld.so'
11343 else
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 dynamic_linker='NetBSD ld.elf_so'
11347 fi
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=yes
11350 hardcode_into_libs=yes
11351 ;;
11352
11353newsos6)
11354 version_type=linux
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=yes
11358 ;;
11359
11360nto-qnx*)
11361 version_type=linux
11362 need_lib_prefix=no
11363 need_version=no
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 shlibpath_overrides_runpath=yes
11368 ;;
11369
11370openbsd*)
11371 version_type=sunos
11372 need_lib_prefix=no
11373 need_version=yes
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11378 case $host_os in
11379 openbsd2.[89] | openbsd2.[89].*)
11380 shlibpath_overrides_runpath=no
11381 ;;
11382 *)
11383 shlibpath_overrides_runpath=yes
11384 ;;
11385 esac
11386 else
11387 shlibpath_overrides_runpath=yes
11388 fi
11389 ;;
11390
11391os2*)
11392 libname_spec='$name'
11393 shrext=".dll"
11394 need_lib_prefix=no
11395 library_names_spec='$libname${shared_ext} $libname.a'
11396 dynamic_linker='OS/2 ld.exe'
11397 shlibpath_var=LIBPATH
11398 ;;
11399
11400osf3* | osf4* | osf5*)
11401 version_type=osf
11402 need_lib_prefix=no
11403 need_version=no
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11409 ;;
11410
11411sco3.2v5*)
11412 version_type=osf
11413 soname_spec='${libname}${release}${shared_ext}$major'
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 ;;
11417
11418solaris*)
11419 version_type=linux
11420 need_lib_prefix=no
11421 need_version=no
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 shlibpath_overrides_runpath=yes
11426 hardcode_into_libs=yes
11427 # ldd complains unless libraries are executable
11428 postinstall_cmds='chmod +x $lib'
11429 ;;
11430
11431sunos4*)
11432 version_type=sunos
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11434 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11437 if test "$with_gnu_ld" = yes; then
11438 need_lib_prefix=no
11439 fi
11440 need_version=yes
11441 ;;
11442
11443sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11444 version_type=linux
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 case $host_vendor in
11449 sni)
11450 shlibpath_overrides_runpath=no
11451 need_lib_prefix=no
11452 export_dynamic_flag_spec='${wl}-Blargedynsym'
11453 runpath_var=LD_RUN_PATH
11454 ;;
11455 siemens)
11456 need_lib_prefix=no
11457 ;;
11458 motorola)
11459 need_lib_prefix=no
11460 need_version=no
11461 shlibpath_overrides_runpath=no
11462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11463 ;;
11464 esac
11465 ;;
11466
11467sysv4*MP*)
11468 if test -d /usr/nec ;then
11469 version_type=linux
11470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11471 soname_spec='$libname${shared_ext}.$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 fi
11474 ;;
11475
11476uts4*)
11477 version_type=linux
11478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 ;;
11482
11483*)
11484 dynamic_linker=no
11485 ;;
11486esac
11487echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11488echo "${ECHO_T}$dynamic_linker" >&6
11489test "$dynamic_linker" = no && can_build_shared=no
11490
11491echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11492echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11493hardcode_action_CXX=
11494if test -n "$hardcode_libdir_flag_spec_CXX" || \
11495 test -n "$runpath_var CXX" || \
11496 test "X$hardcode_automatic_CXX"="Xyes" ; then
11497
11498 # We can hardcode non-existant directories.
11499 if test "$hardcode_direct_CXX" != no &&
11500 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11501 # have to relink, otherwise we might link with an installed library
11502 # when we should be linking with a yet-to-be-installed one
11503 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11504 test "$hardcode_minus_L_CXX" != no; then
11505 # Linking always hardcodes the temporary library directory.
11506 hardcode_action_CXX=relink
11507 else
11508 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11509 hardcode_action_CXX=immediate
11510 fi
11511else
11512 # We cannot hardcode anything, or else we can only hardcode existing
11513 # directories.
11514 hardcode_action_CXX=unsupported
11515fi
11516echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11517echo "${ECHO_T}$hardcode_action_CXX" >&6
11518
11519if test "$hardcode_action_CXX" = relink; then
11520 # Fast installation is not supported
11521 enable_fast_install=no
11522elif test "$shlibpath_overrides_runpath" = yes ||
11523 test "$enable_shared" = no; then
11524 # Fast installation is not necessary
11525 enable_fast_install=needless
11526fi
11527
11528striplib=
11529old_striplib=
11530echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11531echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11532if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11533 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11534 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11535 echo "$as_me:$LINENO: result: yes" >&5
11536echo "${ECHO_T}yes" >&6
11537else
11538# FIXME - insert some real tests, host_os isn't really good enough
11539 case $host_os in
11540 darwin*)
11541 if test -n "$STRIP" ; then
11542 striplib="$STRIP -x"
11543 echo "$as_me:$LINENO: result: yes" >&5
11544echo "${ECHO_T}yes" >&6
11545 else
11546 echo "$as_me:$LINENO: result: no" >&5
11547echo "${ECHO_T}no" >&6
11548fi
11549 ;;
11550 *)
11551 echo "$as_me:$LINENO: result: no" >&5
11552echo "${ECHO_T}no" >&6
11553 ;;
11554 esac
11555fi
11556
11557if test "x$enable_dlopen" != xyes; then
11558 enable_dlopen=unknown
11559 enable_dlopen_self=unknown
11560 enable_dlopen_self_static=unknown
11561else
11562 lt_cv_dlopen=no
11563 lt_cv_dlopen_libs=
11564
11565 case $host_os in
11566 beos*)
11567 lt_cv_dlopen="load_add_on"
11568 lt_cv_dlopen_libs=
11569 lt_cv_dlopen_self=yes
11570 ;;
11571
11572 mingw* | pw32*)
11573 lt_cv_dlopen="LoadLibrary"
11574 lt_cv_dlopen_libs=
11575 ;;
11576
11577 cygwin*)
11578 lt_cv_dlopen="dlopen"
11579 lt_cv_dlopen_libs=
11580 ;;
11581
11582 darwin*)
11583 # if libdl is installed we need to link against it
11584 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 ac_check_lib_save_LIBS=$LIBS
11590LIBS="-ldl $LIBS"
11591cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011592#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011593/* confdefs.h. */
11594_ACEOF
11595cat confdefs.h >>conftest.$ac_ext
11596cat >>conftest.$ac_ext <<_ACEOF
11597/* end confdefs.h. */
11598
11599/* Override any gcc2 internal prototype to avoid an error. */
11600#ifdef __cplusplus
11601extern "C"
11602#endif
11603/* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11605char dlopen ();
11606int
11607main ()
11608{
11609dlopen ();
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext conftest$ac_exeext
11615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000011616 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011617 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000011620 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_cv_lib_dl_dlopen=yes
11627else
11628 echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631ac_cv_lib_dl_dlopen=no
11632fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000011633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011634LIBS=$ac_check_lib_save_LIBS
11635fi
11636echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11637echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11638if test $ac_cv_lib_dl_dlopen = yes; then
11639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11640else
11641
11642 lt_cv_dlopen="dyld"
11643 lt_cv_dlopen_libs=
11644 lt_cv_dlopen_self=yes
11645
11646fi
11647
11648 ;;
11649
11650 *)
11651 echo "$as_me:$LINENO: checking for shl_load" >&5
11652echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11653if test "${ac_cv_func_shl_load+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011657#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011663/* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char shl_load (); below.
11665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011667#ifdef __STDC__
11668# include <limits.h>
11669#else
11670# include <assert.h>
11671#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011672/* Override any gcc2 internal prototype to avoid an error. */
11673#ifdef __cplusplus
11674extern "C"
11675{
11676#endif
11677/* We use char because int might match the return type of a gcc2
11678 builtin and then its argument prototype would still apply. */
11679char shl_load ();
11680/* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683#if defined (__stub_shl_load) || defined (__stub___shl_load)
11684choke me
11685#else
11686char (*f) () = shl_load;
11687#endif
11688#ifdef __cplusplus
11689}
11690#endif
11691
11692int
11693main ()
11694{
11695return f != shl_load;
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext conftest$ac_exeext
11701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000011702 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011703 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000011706 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
11712 ac_cv_func_shl_load=yes
11713else
11714 echo "$as_me: failed program was:" >&5
11715sed 's/^/| /' conftest.$ac_ext >&5
11716
11717ac_cv_func_shl_load=no
11718fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000011719rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011720fi
11721echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11722echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11723if test $ac_cv_func_shl_load = yes; then
11724 lt_cv_dlopen="shl_load"
11725else
11726 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11727echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11728if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730else
11731 ac_check_lib_save_LIBS=$LIBS
11732LIBS="-ldld $LIBS"
11733cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011734#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011735/* confdefs.h. */
11736_ACEOF
11737cat confdefs.h >>conftest.$ac_ext
11738cat >>conftest.$ac_ext <<_ACEOF
11739/* end confdefs.h. */
11740
11741/* Override any gcc2 internal prototype to avoid an error. */
11742#ifdef __cplusplus
11743extern "C"
11744#endif
11745/* We use char because int might match the return type of a gcc2
11746 builtin and then its argument prototype would still apply. */
11747char shl_load ();
11748int
11749main ()
11750{
11751shl_load ();
11752 ;
11753 return 0;
11754}
11755_ACEOF
11756rm -f conftest.$ac_objext conftest$ac_exeext
11757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000011758 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011759 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000011762 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_lib_dld_shl_load=yes
11769else
11770 echo "$as_me: failed program was:" >&5
11771sed 's/^/| /' conftest.$ac_ext >&5
11772
11773ac_cv_lib_dld_shl_load=no
11774fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000011775rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011776LIBS=$ac_check_lib_save_LIBS
11777fi
11778echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11779echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11780if test $ac_cv_lib_dld_shl_load = yes; then
11781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11782else
11783 echo "$as_me:$LINENO: checking for dlopen" >&5
11784echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11785if test "${ac_cv_func_dlopen+set}" = set; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011789#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011795/* System header to define __stub macros and hopefully few prototypes,
11796 which can conflict with char dlopen (); below.
11797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011799#ifdef __STDC__
11800# include <limits.h>
11801#else
11802# include <assert.h>
11803#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011804/* Override any gcc2 internal prototype to avoid an error. */
11805#ifdef __cplusplus
11806extern "C"
11807{
11808#endif
11809/* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811char dlopen ();
11812/* The GNU C library defines this for functions which it implements
11813 to always fail with ENOSYS. Some functions are actually named
11814 something starting with __ and the normal name is an alias. */
11815#if defined (__stub_dlopen) || defined (__stub___dlopen)
11816choke me
11817#else
11818char (*f) () = dlopen;
11819#endif
11820#ifdef __cplusplus
11821}
11822#endif
11823
11824int
11825main ()
11826{
11827return f != dlopen;
11828 ;
11829 return 0;
11830}
11831_ACEOF
11832rm -f conftest.$ac_objext conftest$ac_exeext
11833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000011834 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011835 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000011838 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; }; then
11844 ac_cv_func_dlopen=yes
11845else
11846 echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849ac_cv_func_dlopen=no
11850fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000011851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011852fi
11853echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11854echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11855if test $ac_cv_func_dlopen = yes; then
11856 lt_cv_dlopen="dlopen"
11857else
11858 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11859echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11860if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 ac_check_lib_save_LIBS=$LIBS
11864LIBS="-ldl $LIBS"
11865cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011866#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872
11873/* Override any gcc2 internal prototype to avoid an error. */
11874#ifdef __cplusplus
11875extern "C"
11876#endif
11877/* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879char dlopen ();
11880int
11881main ()
11882{
11883dlopen ();
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext conftest$ac_exeext
11889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000011890 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011891 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000011894 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_dl_dlopen=yes
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905ac_cv_lib_dl_dlopen=no
11906fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000011907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011908LIBS=$ac_check_lib_save_LIBS
11909fi
11910echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11911echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11912if test $ac_cv_lib_dl_dlopen = yes; then
11913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11914else
11915 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11916echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11917if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919else
11920 ac_check_lib_save_LIBS=$LIBS
11921LIBS="-lsvld $LIBS"
11922cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011923#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929
11930/* Override any gcc2 internal prototype to avoid an error. */
11931#ifdef __cplusplus
11932extern "C"
11933#endif
11934/* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11936char dlopen ();
11937int
11938main ()
11939{
11940dlopen ();
11941 ;
11942 return 0;
11943}
11944_ACEOF
11945rm -f conftest.$ac_objext conftest$ac_exeext
11946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000011947 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011948 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000011951 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_lib_svld_dlopen=yes
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962ac_cv_lib_svld_dlopen=no
11963fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000011964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011965LIBS=$ac_check_lib_save_LIBS
11966fi
11967echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11968echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11969if test $ac_cv_lib_svld_dlopen = yes; then
11970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11971else
11972 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11973echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11974if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 ac_check_lib_save_LIBS=$LIBS
11978LIBS="-ldld $LIBS"
11979cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000011980#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000011981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986
11987/* Override any gcc2 internal prototype to avoid an error. */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991/* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
11993char dld_link ();
11994int
11995main ()
11996{
11997dld_link ();
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002rm -f conftest.$ac_objext conftest$ac_exeext
12003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000012004 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012005 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000012008 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_lib_dld_dld_link=yes
12015else
12016 echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019ac_cv_lib_dld_dld_link=no
12020fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000012021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012022LIBS=$ac_check_lib_save_LIBS
12023fi
12024echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12025echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12026if test $ac_cv_lib_dld_dld_link = yes; then
12027 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12028fi
12029
12030
12031fi
12032
12033
12034fi
12035
12036
12037fi
12038
12039
12040fi
12041
12042
12043fi
12044
12045 ;;
12046 esac
12047
12048 if test "x$lt_cv_dlopen" != xno; then
12049 enable_dlopen=yes
12050 else
12051 enable_dlopen=no
12052 fi
12053
12054 case $lt_cv_dlopen in
12055 dlopen)
12056 save_CPPFLAGS="$CPPFLAGS"
12057 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12058
12059 save_LDFLAGS="$LDFLAGS"
12060 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12061
12062 save_LIBS="$LIBS"
12063 LIBS="$lt_cv_dlopen_libs $LIBS"
12064
12065 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12066echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12067if test "${lt_cv_dlopen_self+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069else
12070 if test "$cross_compiling" = yes; then :
12071 lt_cv_dlopen_self=cross
12072else
12073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12074 lt_status=$lt_dlunknown
12075 cat > conftest.$ac_ext <<EOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000012076#line 12076 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012077#include "confdefs.h"
12078
12079#if HAVE_DLFCN_H
12080#include <dlfcn.h>
12081#endif
12082
12083#include <stdio.h>
12084
12085#ifdef RTLD_GLOBAL
12086# define LT_DLGLOBAL RTLD_GLOBAL
12087#else
12088# ifdef DL_GLOBAL
12089# define LT_DLGLOBAL DL_GLOBAL
12090# else
12091# define LT_DLGLOBAL 0
12092# endif
12093#endif
12094
12095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12096 find out it does not work in some platform. */
12097#ifndef LT_DLLAZY_OR_NOW
12098# ifdef RTLD_LAZY
12099# define LT_DLLAZY_OR_NOW RTLD_LAZY
12100# else
12101# ifdef DL_LAZY
12102# define LT_DLLAZY_OR_NOW DL_LAZY
12103# else
12104# ifdef RTLD_NOW
12105# define LT_DLLAZY_OR_NOW RTLD_NOW
12106# else
12107# ifdef DL_NOW
12108# define LT_DLLAZY_OR_NOW DL_NOW
12109# else
12110# define LT_DLLAZY_OR_NOW 0
12111# endif
12112# endif
12113# endif
12114# endif
12115#endif
12116
12117#ifdef __cplusplus
12118extern "C" void exit (int);
12119#endif
12120
12121void fnord() { int i=42;}
12122int main ()
12123{
12124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12125 int status = $lt_dlunknown;
12126
12127 if (self)
12128 {
12129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12130 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12131 /* dlclose (self); */
12132 }
12133
12134 exit (status);
12135}
12136EOF
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12142 (./conftest; exit; ) 2>/dev/null
12143 lt_status=$?
12144 case x$lt_status in
12145 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12146 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12147 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12148 esac
12149 else :
12150 # compilation failed
12151 lt_cv_dlopen_self=no
12152 fi
12153fi
12154rm -fr conftest*
12155
12156
12157fi
12158echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12159echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12160
12161 if test "x$lt_cv_dlopen_self" = xyes; then
12162 LDFLAGS="$LDFLAGS $link_static_flag"
12163 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12164echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12165if test "${lt_cv_dlopen_self_static+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167else
12168 if test "$cross_compiling" = yes; then :
12169 lt_cv_dlopen_self_static=cross
12170else
12171 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12172 lt_status=$lt_dlunknown
12173 cat > conftest.$ac_ext <<EOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000012174#line 12174 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000012175#include "confdefs.h"
12176
12177#if HAVE_DLFCN_H
12178#include <dlfcn.h>
12179#endif
12180
12181#include <stdio.h>
12182
12183#ifdef RTLD_GLOBAL
12184# define LT_DLGLOBAL RTLD_GLOBAL
12185#else
12186# ifdef DL_GLOBAL
12187# define LT_DLGLOBAL DL_GLOBAL
12188# else
12189# define LT_DLGLOBAL 0
12190# endif
12191#endif
12192
12193/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12194 find out it does not work in some platform. */
12195#ifndef LT_DLLAZY_OR_NOW
12196# ifdef RTLD_LAZY
12197# define LT_DLLAZY_OR_NOW RTLD_LAZY
12198# else
12199# ifdef DL_LAZY
12200# define LT_DLLAZY_OR_NOW DL_LAZY
12201# else
12202# ifdef RTLD_NOW
12203# define LT_DLLAZY_OR_NOW RTLD_NOW
12204# else
12205# ifdef DL_NOW
12206# define LT_DLLAZY_OR_NOW DL_NOW
12207# else
12208# define LT_DLLAZY_OR_NOW 0
12209# endif
12210# endif
12211# endif
12212# endif
12213#endif
12214
12215#ifdef __cplusplus
12216extern "C" void exit (int);
12217#endif
12218
12219void fnord() { int i=42;}
12220int main ()
12221{
12222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12223 int status = $lt_dlunknown;
12224
12225 if (self)
12226 {
12227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12228 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12229 /* dlclose (self); */
12230 }
12231
12232 exit (status);
12233}
12234EOF
12235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12236 (eval $ac_link) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12240 (./conftest; exit; ) 2>/dev/null
12241 lt_status=$?
12242 case x$lt_status in
12243 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12244 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12245 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12246 esac
12247 else :
12248 # compilation failed
12249 lt_cv_dlopen_self_static=no
12250 fi
12251fi
12252rm -fr conftest*
12253
12254
12255fi
12256echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12257echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12258 fi
12259
12260 CPPFLAGS="$save_CPPFLAGS"
12261 LDFLAGS="$save_LDFLAGS"
12262 LIBS="$save_LIBS"
12263 ;;
12264 esac
12265
12266 case $lt_cv_dlopen_self in
12267 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12268 *) enable_dlopen_self=unknown ;;
12269 esac
12270
12271 case $lt_cv_dlopen_self_static in
12272 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12273 *) enable_dlopen_self_static=unknown ;;
12274 esac
12275fi
12276
12277
12278# The else clause should only fire when bootstrapping the
12279# libtool distribution, otherwise you forgot to ship ltmain.sh
12280# with your package, and you will get complaints that there are
12281# no rules to generate ltmain.sh.
12282if test -f "$ltmain"; then
12283 # See if we are running on zsh, and set the options which allow our commands through
12284 # without removal of \ escapes.
12285 if test -n "${ZSH_VERSION+set}" ; then
12286 setopt NO_GLOB_SUBST
12287 fi
12288 # Now quote all the things that may contain metacharacters while being
12289 # careful not to overquote the AC_SUBSTed values. We take copies of the
12290 # variables and quote the copies for generation of the libtool script.
12291 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12292 SED SHELL STRIP \
12293 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12294 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12295 deplibs_check_method reload_flag reload_cmds need_locks \
12296 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12297 lt_cv_sys_global_symbol_to_c_name_address \
12298 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12299 old_postinstall_cmds old_postuninstall_cmds \
12300 compiler_CXX \
12301 CC_CXX \
12302 LD_CXX \
12303 lt_prog_compiler_wl_CXX \
12304 lt_prog_compiler_pic_CXX \
12305 lt_prog_compiler_static_CXX \
12306 lt_prog_compiler_no_builtin_flag_CXX \
12307 export_dynamic_flag_spec_CXX \
12308 thread_safe_flag_spec_CXX \
12309 whole_archive_flag_spec_CXX \
12310 enable_shared_with_static_runtimes_CXX \
12311 old_archive_cmds_CXX \
12312 old_archive_from_new_cmds_CXX \
12313 predep_objects_CXX \
12314 postdep_objects_CXX \
12315 predeps_CXX \
12316 postdeps_CXX \
12317 compiler_lib_search_path_CXX \
12318 archive_cmds_CXX \
12319 archive_expsym_cmds_CXX \
12320 postinstall_cmds_CXX \
12321 postuninstall_cmds_CXX \
12322 old_archive_from_expsyms_cmds_CXX \
12323 allow_undefined_flag_CXX \
12324 no_undefined_flag_CXX \
12325 export_symbols_cmds_CXX \
12326 hardcode_libdir_flag_spec_CXX \
12327 hardcode_libdir_flag_spec_ld_CXX \
12328 hardcode_libdir_separator_CXX \
12329 hardcode_automatic_CXX \
12330 module_cmds_CXX \
12331 module_expsym_cmds_CXX \
12332 lt_cv_prog_compiler_c_o_CXX \
12333 exclude_expsyms_CXX \
12334 include_expsyms_CXX; do
12335
12336 case $var in
12337 old_archive_cmds_CXX | \
12338 old_archive_from_new_cmds_CXX | \
12339 archive_cmds_CXX | \
12340 archive_expsym_cmds_CXX | \
12341 module_cmds_CXX | \
12342 module_expsym_cmds_CXX | \
12343 old_archive_from_expsyms_cmds_CXX | \
12344 export_symbols_cmds_CXX | \
12345 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12346 postinstall_cmds | postuninstall_cmds | \
12347 old_postinstall_cmds | old_postuninstall_cmds | \
12348 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12349 # Double-quote double-evaled strings.
12350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12351 ;;
12352 *)
12353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12354 ;;
12355 esac
12356 done
12357
12358 case $lt_echo in
12359 *'\$0 --fallback-echo"')
12360 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12361 ;;
12362 esac
12363
12364cfgfile="$ofile"
12365
12366 cat <<__EOF__ >> "$cfgfile"
12367# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12368
12369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12370
12371# Shell to use when invoking shell scripts.
12372SHELL=$lt_SHELL
12373
12374# Whether or not to build shared libraries.
12375build_libtool_libs=$enable_shared
12376
12377# Whether or not to build static libraries.
12378build_old_libs=$enable_static
12379
12380# Whether or not to add -lc for building shared libraries.
12381build_libtool_need_lc=$archive_cmds_need_lc_CXX
12382
12383# Whether or not to disallow shared libs when runtime libs are static
12384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12385
12386# Whether or not to optimize for fast installation.
12387fast_install=$enable_fast_install
12388
12389# The host system.
12390host_alias=$host_alias
12391host=$host
12392
12393# An echo program that does not interpret backslashes.
12394echo=$lt_echo
12395
12396# The archiver.
12397AR=$lt_AR
12398AR_FLAGS=$lt_AR_FLAGS
12399
12400# A C compiler.
12401LTCC=$lt_LTCC
12402
12403# A language-specific compiler.
12404CC=$lt_compiler_CXX
12405
12406# Is the compiler the GNU C compiler?
12407with_gcc=$GCC_CXX
12408
12409# An ERE matcher.
12410EGREP=$lt_EGREP
12411
12412# The linker used to build libraries.
12413LD=$lt_LD_CXX
12414
12415# Whether we need hard or soft links.
12416LN_S=$lt_LN_S
12417
12418# A BSD-compatible nm program.
12419NM=$lt_NM
12420
12421# A symbol stripping program
12422STRIP=$lt_STRIP
12423
12424# Used to examine libraries when file_magic_cmd begins "file"
12425MAGIC_CMD=$MAGIC_CMD
12426
12427# Used on cygwin: DLL creation program.
12428DLLTOOL="$DLLTOOL"
12429
12430# Used on cygwin: object dumper.
12431OBJDUMP="$OBJDUMP"
12432
12433# Used on cygwin: assembler.
12434AS="$AS"
12435
12436# The name of the directory that contains temporary libtool files.
12437objdir=$objdir
12438
12439# How to create reloadable object files.
12440reload_flag=$lt_reload_flag
12441reload_cmds=$lt_reload_cmds
12442
12443# How to pass a linker flag through the compiler.
12444wl=$lt_lt_prog_compiler_wl_CXX
12445
12446# Object file suffix (normally "o").
12447objext="$ac_objext"
12448
12449# Old archive suffix (normally "a").
12450libext="$libext"
12451
12452# Shared library suffix (normally ".so").
12453shrext='$shrext'
12454
12455# Executable file suffix (normally "").
12456exeext="$exeext"
12457
12458# Additional compiler flags for building library objects.
12459pic_flag=$lt_lt_prog_compiler_pic_CXX
12460pic_mode=$pic_mode
12461
12462# What is the maximum length of a command?
12463max_cmd_len=$lt_cv_sys_max_cmd_len
12464
12465# Does compiler simultaneously support -c and -o options?
12466compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12467
12468# Must we lock files when doing compilation ?
12469need_locks=$lt_need_locks
12470
12471# Do we need the lib prefix for modules?
12472need_lib_prefix=$need_lib_prefix
12473
12474# Do we need a version for libraries?
12475need_version=$need_version
12476
12477# Whether dlopen is supported.
12478dlopen_support=$enable_dlopen
12479
12480# Whether dlopen of programs is supported.
12481dlopen_self=$enable_dlopen_self
12482
12483# Whether dlopen of statically linked programs is supported.
12484dlopen_self_static=$enable_dlopen_self_static
12485
12486# Compiler flag to prevent dynamic linking.
12487link_static_flag=$lt_lt_prog_compiler_static_CXX
12488
12489# Compiler flag to turn off builtin functions.
12490no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12491
12492# Compiler flag to allow reflexive dlopens.
12493export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12494
12495# Compiler flag to generate shared objects directly from archives.
12496whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12497
12498# Compiler flag to generate thread-safe objects.
12499thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12500
12501# Library versioning type.
12502version_type=$version_type
12503
12504# Format of library name prefix.
12505libname_spec=$lt_libname_spec
12506
12507# List of archive names. First name is the real one, the rest are links.
12508# The last name is the one that the linker finds with -lNAME.
12509library_names_spec=$lt_library_names_spec
12510
12511# The coded name of the library, if different from the real name.
12512soname_spec=$lt_soname_spec
12513
12514# Commands used to build and install an old-style archive.
12515RANLIB=$lt_RANLIB
12516old_archive_cmds=$lt_old_archive_cmds_CXX
12517old_postinstall_cmds=$lt_old_postinstall_cmds
12518old_postuninstall_cmds=$lt_old_postuninstall_cmds
12519
12520# Create an old-style archive from a shared archive.
12521old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12522
12523# Create a temporary old-style archive to link instead of a shared archive.
12524old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12525
12526# Commands used to build and install a shared archive.
12527archive_cmds=$lt_archive_cmds_CXX
12528archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12529postinstall_cmds=$lt_postinstall_cmds
12530postuninstall_cmds=$lt_postuninstall_cmds
12531
12532# Commands used to build a loadable module (assumed same as above if empty)
12533module_cmds=$lt_module_cmds_CXX
12534module_expsym_cmds=$lt_module_expsym_cmds_CXX
12535
12536# Commands to strip libraries.
12537old_striplib=$lt_old_striplib
12538striplib=$lt_striplib
12539
12540# Dependencies to place before the objects being linked to create a
12541# shared library.
12542predep_objects=$lt_predep_objects_CXX
12543
12544# Dependencies to place after the objects being linked to create a
12545# shared library.
12546postdep_objects=$lt_postdep_objects_CXX
12547
12548# Dependencies to place before the objects being linked to create a
12549# shared library.
12550predeps=$lt_predeps_CXX
12551
12552# Dependencies to place after the objects being linked to create a
12553# shared library.
12554postdeps=$lt_postdeps_CXX
12555
12556# The library search path used internally by the compiler when linking
12557# a shared library.
12558compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12559
12560# Method to check whether dependent libraries are shared objects.
12561deplibs_check_method=$lt_deplibs_check_method
12562
12563# Command to use when deplibs_check_method == file_magic.
12564file_magic_cmd=$lt_file_magic_cmd
12565
12566# Flag that allows shared libraries with undefined symbols to be built.
12567allow_undefined_flag=$lt_allow_undefined_flag_CXX
12568
12569# Flag that forces no undefined symbols.
12570no_undefined_flag=$lt_no_undefined_flag_CXX
12571
12572# Commands used to finish a libtool library installation in a directory.
12573finish_cmds=$lt_finish_cmds
12574
12575# Same as above, but a single script fragment to be evaled but not shown.
12576finish_eval=$lt_finish_eval
12577
12578# Take the output of nm and produce a listing of raw symbols and C names.
12579global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12580
12581# Transform the output of nm in a proper C declaration
12582global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12583
12584# Transform the output of nm in a C name address pair
12585global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12586
12587# This is the shared library runtime path variable.
12588runpath_var=$runpath_var
12589
12590# This is the shared library path variable.
12591shlibpath_var=$shlibpath_var
12592
12593# Is shlibpath searched before the hard-coded library search path?
12594shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12595
12596# How to hardcode a shared library path into an executable.
12597hardcode_action=$hardcode_action_CXX
12598
12599# Whether we should hardcode library paths into libraries.
12600hardcode_into_libs=$hardcode_into_libs
12601
12602# Flag to hardcode \$libdir into a binary during linking.
12603# This must work even if \$libdir does not exist.
12604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12605
12606# If ld is used when linking, flag to hardcode \$libdir into
12607# a binary during linking. This must work even if \$libdir does
12608# not exist.
12609hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12610
12611# Whether we need a single -rpath flag with a separated argument.
12612hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12613
12614# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12615# resulting binary.
12616hardcode_direct=$hardcode_direct_CXX
12617
12618# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12619# resulting binary.
12620hardcode_minus_L=$hardcode_minus_L_CXX
12621
12622# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12623# the resulting binary.
12624hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12625
12626# Set to yes if building a shared library automatically hardcodes DIR into the library
12627# and all subsequent libraries and executables linked against it.
12628hardcode_automatic=$hardcode_automatic_CXX
12629
12630# Variables whose values should be saved in libtool wrapper scripts and
12631# restored at relink time.
12632variables_saved_for_relink="$variables_saved_for_relink"
12633
12634# Whether libtool must link a program against all its dependency libraries.
12635link_all_deplibs=$link_all_deplibs_CXX
12636
12637# Compile-time system search path for libraries
12638sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12639
12640# Run-time system search path for libraries
12641sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12642
12643# Fix the shell variable \$srcfile for the compiler.
12644fix_srcfile_path="$fix_srcfile_path_CXX"
12645
12646# Set to yes if exported symbols are required.
12647always_export_symbols=$always_export_symbols_CXX
12648
12649# The commands to list exported symbols.
12650export_symbols_cmds=$lt_export_symbols_cmds_CXX
12651
12652# The commands to extract the exported symbol list from a shared archive.
12653extract_expsyms_cmds=$lt_extract_expsyms_cmds
12654
12655# Symbols that should not be listed in the preloaded symbols.
12656exclude_expsyms=$lt_exclude_expsyms_CXX
12657
12658# Symbols that must always be exported.
12659include_expsyms=$lt_include_expsyms_CXX
12660
12661# ### END LIBTOOL TAG CONFIG: $tagname
12662
12663__EOF__
12664
12665
12666else
12667 # If there is no Makefile yet, we rely on a make rule to execute
12668 # `config.status --recheck' to rerun these tests and create the
12669 # libtool script then.
12670 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12671 if test -f "$ltmain_in"; then
12672 test -f Makefile && make "$ltmain"
12673 fi
12674fi
12675
12676
12677ac_ext=c
12678ac_cpp='$CPP $CPPFLAGS'
12679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682
12683CC=$lt_save_CC
12684LDCXX=$LD
12685LD=$lt_save_LD
12686GCC=$lt_save_GCC
12687with_gnu_ldcxx=$with_gnu_ld
12688with_gnu_ld=$lt_save_with_gnu_ld
12689lt_cv_path_LDCXX=$lt_cv_path_LD
12690lt_cv_path_LD=$lt_save_path_LD
12691lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12692lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12693
12694 else
12695 tagname=""
12696 fi
12697 ;;
12698
12699 F77)
12700 if test -n "$F77" && test "X$F77" != "Xno"; then
12701
12702ac_ext=f
12703ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12704ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12706
12707
12708archive_cmds_need_lc_F77=no
12709allow_undefined_flag_F77=
12710always_export_symbols_F77=no
12711archive_expsym_cmds_F77=
12712export_dynamic_flag_spec_F77=
12713hardcode_direct_F77=no
12714hardcode_libdir_flag_spec_F77=
12715hardcode_libdir_flag_spec_ld_F77=
12716hardcode_libdir_separator_F77=
12717hardcode_minus_L_F77=no
12718hardcode_automatic_F77=no
12719module_cmds_F77=
12720module_expsym_cmds_F77=
12721link_all_deplibs_F77=unknown
12722old_archive_cmds_F77=$old_archive_cmds
12723no_undefined_flag_F77=
12724whole_archive_flag_spec_F77=
12725enable_shared_with_static_runtimes_F77=no
12726
12727# Source file extension for f77 test sources.
12728ac_ext=f
12729
12730# Object file extension for compiled f77 test sources.
12731objext=o
12732objext_F77=$objext
12733
12734# Code to be used in simple compile tests
12735lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12736
12737# Code to be used in simple link tests
12738lt_simple_link_test_code=" program t\n end\n"
12739
12740# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12741
12742# If no C compiler was specified, use CC.
12743LTCC=${LTCC-"$CC"}
12744
12745# Allow CC to be a program name with arguments.
12746compiler=$CC
12747
12748
12749# Allow CC to be a program name with arguments.
12750lt_save_CC="$CC"
12751CC=${F77-"f77"}
12752compiler=$CC
12753compiler_F77=$CC
12754cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12755
12756echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12757echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12758echo "$as_me:$LINENO: result: $can_build_shared" >&5
12759echo "${ECHO_T}$can_build_shared" >&6
12760
12761echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12762echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12763test "$can_build_shared" = "no" && enable_shared=no
12764
12765# On AIX, shared libraries and static libraries use the same namespace, and
12766# are all built from PIC.
12767case "$host_os" in
12768aix3*)
12769 test "$enable_shared" = yes && enable_static=no
12770 if test -n "$RANLIB"; then
12771 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12772 postinstall_cmds='$RANLIB $lib'
12773 fi
12774 ;;
12775aix4*)
12776 test "$enable_shared" = yes && enable_static=no
12777 ;;
12778esac
12779echo "$as_me:$LINENO: result: $enable_shared" >&5
12780echo "${ECHO_T}$enable_shared" >&6
12781
12782echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12783echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12784# Make sure either enable_shared or enable_static is yes.
12785test "$enable_shared" = yes || enable_static=yes
12786echo "$as_me:$LINENO: result: $enable_static" >&5
12787echo "${ECHO_T}$enable_static" >&6
12788
12789test "$ld_shlibs_F77" = no && can_build_shared=no
12790
12791GCC_F77="$G77"
12792LD_F77="$LD"
12793
12794lt_prog_compiler_wl_F77=
12795lt_prog_compiler_pic_F77=
12796lt_prog_compiler_static_F77=
12797
12798echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12799echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12800
12801 if test "$GCC" = yes; then
12802 lt_prog_compiler_wl_F77='-Wl,'
12803 lt_prog_compiler_static_F77='-static'
12804
12805 case $host_os in
12806 aix*)
12807 # All AIX code is PIC.
12808 if test "$host_cpu" = ia64; then
12809 # AIX 5 now supports IA64 processor
12810 lt_prog_compiler_static_F77='-Bstatic'
12811 fi
12812 ;;
12813
12814 amigaos*)
12815 # FIXME: we need at least 68020 code to build shared libraries, but
12816 # adding the `-m68020' flag to GCC prevents building anything better,
12817 # like `-m68040'.
12818 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12819 ;;
12820
12821 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12822 # PIC is the default for these OSes.
12823 ;;
12824
12825 mingw* | pw32* | os2*)
12826 # This hack is so that the source file can tell whether it is being
12827 # built for inclusion in a dll (and should export symbols for example).
12828 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12829 ;;
12830
12831 darwin* | rhapsody*)
12832 # PIC is the default on this platform
12833 # Common symbols not allowed in MH_DYLIB files
12834 lt_prog_compiler_pic_F77='-fno-common'
12835 ;;
12836
12837 msdosdjgpp*)
12838 # Just because we use GCC doesn't mean we suddenly get shared libraries
12839 # on systems that don't support them.
12840 lt_prog_compiler_can_build_shared_F77=no
12841 enable_shared=no
12842 ;;
12843
12844 sysv4*MP*)
12845 if test -d /usr/nec; then
12846 lt_prog_compiler_pic_F77=-Kconform_pic
12847 fi
12848 ;;
12849
12850 hpux*)
12851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12852 # not for PA HP-UX.
12853 case "$host_cpu" in
12854 hppa*64*|ia64*)
12855 # +Z the default
12856 ;;
12857 *)
12858 lt_prog_compiler_pic_F77='-fPIC'
12859 ;;
12860 esac
12861 ;;
12862
12863 *)
12864 lt_prog_compiler_pic_F77='-fPIC'
12865 ;;
12866 esac
12867 else
12868 # PORTME Check for flag to pass linker flags through the system compiler.
12869 case $host_os in
12870 aix*)
12871 lt_prog_compiler_wl_F77='-Wl,'
12872 if test "$host_cpu" = ia64; then
12873 # AIX 5 now supports IA64 processor
12874 lt_prog_compiler_static_F77='-Bstatic'
12875 else
12876 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12877 fi
12878 ;;
12879
12880 mingw* | pw32* | os2*)
12881 # This hack is so that the source file can tell whether it is being
12882 # built for inclusion in a dll (and should export symbols for example).
12883 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12884 ;;
12885
12886 hpux9* | hpux10* | hpux11*)
12887 lt_prog_compiler_wl_F77='-Wl,'
12888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12889 # not for PA HP-UX.
12890 case "$host_cpu" in
12891 hppa*64*|ia64*)
12892 # +Z the default
12893 ;;
12894 *)
12895 lt_prog_compiler_pic_F77='+Z'
12896 ;;
12897 esac
12898 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12899 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12900 ;;
12901
12902 irix5* | irix6* | nonstopux*)
12903 lt_prog_compiler_wl_F77='-Wl,'
12904 # PIC (with -KPIC) is the default.
12905 lt_prog_compiler_static_F77='-non_shared'
12906 ;;
12907
12908 newsos6)
12909 lt_prog_compiler_pic_F77='-KPIC'
12910 lt_prog_compiler_static_F77='-Bstatic'
12911 ;;
12912
12913 linux*)
12914 case $CC in
12915 icc* | ecc*)
12916 lt_prog_compiler_wl_F77='-Wl,'
12917 lt_prog_compiler_pic_F77='-KPIC'
12918 lt_prog_compiler_static_F77='-static'
12919 ;;
12920 ccc*)
12921 lt_prog_compiler_wl_F77='-Wl,'
12922 # All Alpha code is PIC.
12923 lt_prog_compiler_static_F77='-non_shared'
12924 ;;
12925 esac
12926 ;;
12927
12928 osf3* | osf4* | osf5*)
12929 lt_prog_compiler_wl_F77='-Wl,'
12930 # All OSF/1 code is PIC.
12931 lt_prog_compiler_static_F77='-non_shared'
12932 ;;
12933
12934 sco3.2v5*)
12935 lt_prog_compiler_pic_F77='-Kpic'
12936 lt_prog_compiler_static_F77='-dn'
12937 ;;
12938
12939 solaris*)
12940 lt_prog_compiler_wl_F77='-Wl,'
12941 lt_prog_compiler_pic_F77='-KPIC'
12942 lt_prog_compiler_static_F77='-Bstatic'
12943 ;;
12944
12945 sunos4*)
12946 lt_prog_compiler_wl_F77='-Qoption ld '
12947 lt_prog_compiler_pic_F77='-PIC'
12948 lt_prog_compiler_static_F77='-Bstatic'
12949 ;;
12950
12951 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12952 lt_prog_compiler_wl_F77='-Wl,'
12953 lt_prog_compiler_pic_F77='-KPIC'
12954 lt_prog_compiler_static_F77='-Bstatic'
12955 ;;
12956
12957 sysv4*MP*)
12958 if test -d /usr/nec ;then
12959 lt_prog_compiler_pic_F77='-Kconform_pic'
12960 lt_prog_compiler_static_F77='-Bstatic'
12961 fi
12962 ;;
12963
12964 uts4*)
12965 lt_prog_compiler_pic_F77='-pic'
12966 lt_prog_compiler_static_F77='-Bstatic'
12967 ;;
12968
12969 *)
12970 lt_prog_compiler_can_build_shared_F77=no
12971 ;;
12972 esac
12973 fi
12974
12975echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12976echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12977
12978#
12979# Check to make sure the PIC flag actually works.
12980#
12981if test -n "$lt_prog_compiler_pic_F77"; then
12982
12983echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12984echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12985if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988 lt_prog_compiler_pic_works_F77=no
12989 ac_outfile=conftest.$ac_objext
12990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12991 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12992 # Insert the option either (1) after the last *FLAGS variable, or
12993 # (2) before a word containing "conftest.", or (3) at the end.
12994 # Note that $ac_compile itself does not contain backslashes and begins
12995 # with a dollar sign (not a hyphen), so the echo should work correctly.
12996 # The option is referenced via a variable to avoid confusing sed.
12997 lt_compile=`echo "$ac_compile" | $SED \
12998 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13000 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000013001 (eval echo "\"\$as_me:13001: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013002 (eval "$lt_compile" 2>conftest.err)
13003 ac_status=$?
13004 cat conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000013005 echo "$as_me:13005: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013006 if (exit $ac_status) && test -s "$ac_outfile"; then
13007 # The compiler can only warn and ignore the option if not recognized
13008 # So say no if there are warnings
13009 if test ! -s conftest.err; then
13010 lt_prog_compiler_pic_works_F77=yes
13011 fi
13012 fi
13013 $rm conftest*
13014
13015fi
13016echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13017echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13018
13019if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13020 case $lt_prog_compiler_pic_F77 in
13021 "" | " "*) ;;
13022 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13023 esac
13024else
13025 lt_prog_compiler_pic_F77=
13026 lt_prog_compiler_can_build_shared_F77=no
13027fi
13028
13029fi
13030case "$host_os" in
13031 # For platforms which do not support PIC, -DPIC is meaningless:
13032 *djgpp*)
13033 lt_prog_compiler_pic_F77=
13034 ;;
13035 *)
13036 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13037 ;;
13038esac
13039
13040echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13041echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13042if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044else
13045 lt_cv_prog_compiler_c_o_F77=no
13046 $rm -r conftest 2>/dev/null
13047 mkdir conftest
13048 cd conftest
13049 mkdir out
13050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13051
13052 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13053 # that will create temporary files in the current directory regardless of
13054 # the output directory. Thus, making CWD read-only will cause this test
13055 # to fail, enabling locking or at least warning the user not to do parallel
13056 # builds.
13057 chmod -w .
13058
13059 lt_compiler_flag="-o out/conftest2.$ac_objext"
13060 # Insert the option either (1) after the last *FLAGS variable, or
13061 # (2) before a word containing "conftest.", or (3) at the end.
13062 # Note that $ac_compile itself does not contain backslashes and begins
13063 # with a dollar sign (not a hyphen), so the echo should work correctly.
13064 lt_compile=`echo "$ac_compile" | $SED \
13065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13067 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000013068 (eval echo "\"\$as_me:13068: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013069 (eval "$lt_compile" 2>out/conftest.err)
13070 ac_status=$?
13071 cat out/conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000013072 echo "$as_me:13072: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13074 then
13075 # The compiler can only warn and ignore the option if not recognized
13076 # So say no if there are warnings
13077 if test ! -s out/conftest.err; then
13078 lt_cv_prog_compiler_c_o_F77=yes
13079 fi
13080 fi
13081 chmod u+w .
13082 $rm conftest*
13083 # SGI C++ compiler will create directory out/ii_files/ for
13084 # template instantiation
13085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13086 $rm out/* && rmdir out
13087 cd ..
13088 rmdir conftest
13089 $rm conftest*
13090
13091fi
13092echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13093echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13094
13095
13096hard_links="nottested"
13097if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13098 # do not overwrite the value of need_locks provided by the user
13099 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13100echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13101 hard_links=yes
13102 $rm conftest*
13103 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13104 touch conftest.a
13105 ln conftest.a conftest.b 2>&5 || hard_links=no
13106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13107 echo "$as_me:$LINENO: result: $hard_links" >&5
13108echo "${ECHO_T}$hard_links" >&6
13109 if test "$hard_links" = no; then
13110 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13111echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13112 need_locks=warn
13113 fi
13114else
13115 need_locks=no
13116fi
13117
13118echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13119echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13120
13121 runpath_var=
13122 allow_undefined_flag_F77=
13123 enable_shared_with_static_runtimes_F77=no
13124 archive_cmds_F77=
13125 archive_expsym_cmds_F77=
13126 old_archive_From_new_cmds_F77=
13127 old_archive_from_expsyms_cmds_F77=
13128 export_dynamic_flag_spec_F77=
13129 whole_archive_flag_spec_F77=
13130 thread_safe_flag_spec_F77=
13131 hardcode_libdir_flag_spec_F77=
13132 hardcode_libdir_flag_spec_ld_F77=
13133 hardcode_libdir_separator_F77=
13134 hardcode_direct_F77=no
13135 hardcode_minus_L_F77=no
13136 hardcode_shlibpath_var_F77=unsupported
13137 link_all_deplibs_F77=unknown
13138 hardcode_automatic_F77=no
13139 module_cmds_F77=
13140 module_expsym_cmds_F77=
13141 always_export_symbols_F77=no
13142 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13143 # include_expsyms should be a list of space-separated symbols to be *always*
13144 # included in the symbol list
13145 include_expsyms_F77=
13146 # exclude_expsyms can be an extended regexp of symbols to exclude
13147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13149 # as well as any symbol that contains `d'.
13150 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13152 # platforms (ab)use it in PIC code, but their linkers get confused if
13153 # the symbol is explicitly referenced. Since portable code cannot
13154 # rely on this symbol name, it's probably fine to never include it in
13155 # preloaded symbol tables.
13156 extract_expsyms_cmds=
13157
13158 case $host_os in
13159 cygwin* | mingw* | pw32*)
13160 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13161 # When not using gcc, we currently assume that we are using
13162 # Microsoft Visual C++.
13163 if test "$GCC" != yes; then
13164 with_gnu_ld=no
13165 fi
13166 ;;
13167 openbsd*)
13168 with_gnu_ld=no
13169 ;;
13170 esac
13171
13172 ld_shlibs_F77=yes
13173 if test "$with_gnu_ld" = yes; then
13174 # If archive_cmds runs LD, not CC, wlarc should be empty
13175 wlarc='${wl}'
13176
13177 # See if GNU ld supports shared libraries.
13178 case $host_os in
13179 aix3* | aix4* | aix5*)
13180 # On AIX/PPC, the GNU linker is very broken
13181 if test "$host_cpu" != ia64; then
13182 ld_shlibs_F77=no
13183 cat <<EOF 1>&2
13184
13185*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13186*** to be unable to reliably create shared libraries on AIX.
13187*** Therefore, libtool is disabling shared libraries support. If you
13188*** really care for shared libraries, you may want to modify your PATH
13189*** so that a non-GNU linker is found, and then restart.
13190
13191EOF
13192 fi
13193 ;;
13194
13195 amigaos*)
13196 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13197 hardcode_libdir_flag_spec_F77='-L$libdir'
13198 hardcode_minus_L_F77=yes
13199
13200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13201 # that the semantics of dynamic libraries on AmigaOS, at least up
13202 # to version 4, is to share data among multiple programs linked
13203 # with the same dynamic library. Since this doesn't match the
13204 # behavior of shared libraries on other platforms, we can't use
13205 # them.
13206 ld_shlibs_F77=no
13207 ;;
13208
13209 beos*)
13210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13211 allow_undefined_flag_F77=unsupported
13212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13213 # support --undefined. This deserves some investigation. FIXME
13214 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13215 else
13216 ld_shlibs_F77=no
13217 fi
13218 ;;
13219
13220 cygwin* | mingw* | pw32*)
13221 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13222 # as there is no search path for DLLs.
13223 hardcode_libdir_flag_spec_F77='-L$libdir'
13224 allow_undefined_flag_F77=unsupported
13225 always_export_symbols_F77=no
13226 enable_shared_with_static_runtimes_F77=yes
13227 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13228
13229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13230 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13231 # If the export-symbols file already is a .def file (1st line
13232 # is EXPORTS), use it as is; otherwise, prepend...
13233 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13234 cp $export_symbols $output_objdir/$soname.def;
13235 else
13236 echo EXPORTS > $output_objdir/$soname.def;
13237 cat $export_symbols >> $output_objdir/$soname.def;
13238 fi~
13239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13240 else
13241 ld_shlibs=no
13242 fi
13243 ;;
13244
13245 netbsd*)
13246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13247 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13248 wlarc=
13249 else
13250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13252 fi
13253 ;;
13254
13255 solaris* | sysv5*)
13256 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13257 ld_shlibs_F77=no
13258 cat <<EOF 1>&2
13259
13260*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13261*** create shared libraries on Solaris systems. Therefore, libtool
13262*** is disabling shared libraries support. We urge you to upgrade GNU
13263*** binutils to release 2.9.1 or newer. Another option is to modify
13264*** your PATH or compiler configuration so that the native linker is
13265*** used, and then restart.
13266
13267EOF
13268 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13270 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13271 else
13272 ld_shlibs_F77=no
13273 fi
13274 ;;
13275
13276 sunos4*)
13277 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13278 wlarc=
13279 hardcode_direct_F77=yes
13280 hardcode_shlibpath_var_F77=no
13281 ;;
13282
13283 linux*)
13284 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13285 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 archive_cmds_F77="$tmp_archive_cmds"
13287 supports_anon_versioning=no
13288 case `$LD -v 2>/dev/null` in
13289 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13292 *\ 2.11.*) ;; # other 2.11 versions
13293 *) supports_anon_versioning=yes ;;
13294 esac
13295 if test $supports_anon_versioning = yes; then
13296 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13297cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13298$echo "local: *; };" >> $output_objdir/$libname.ver~
13299 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13300 else
13301 archive_expsym_cmds_F77="$tmp_archive_cmds"
13302 fi
13303 else
13304 ld_shlibs_F77=no
13305 fi
13306 ;;
13307
13308 *)
13309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13310 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13311 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13312 else
13313 ld_shlibs_F77=no
13314 fi
13315 ;;
13316 esac
13317
13318 if test "$ld_shlibs_F77" = yes; then
13319 runpath_var=LD_RUN_PATH
13320 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13321 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13322 # ancient GNU ld didn't support --whole-archive et. al.
13323 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13324 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13325 else
13326 whole_archive_flag_spec_F77=
13327 fi
13328 fi
13329 else
13330 # PORTME fill in a description of your system's linker (not GNU ld)
13331 case $host_os in
13332 aix3*)
13333 allow_undefined_flag_F77=unsupported
13334 always_export_symbols_F77=yes
13335 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'
13336 # Note: this linker hardcodes the directories in LIBPATH if there
13337 # are no directories specified by -L.
13338 hardcode_minus_L_F77=yes
13339 if test "$GCC" = yes && test -z "$link_static_flag"; then
13340 # Neither direct hardcoding nor static linking is supported with a
13341 # broken collect2.
13342 hardcode_direct_F77=unsupported
13343 fi
13344 ;;
13345
13346 aix4* | aix5*)
13347 if test "$host_cpu" = ia64; then
13348 # On IA64, the linker does run time linking by default, so we don't
13349 # have to do anything special.
13350 aix_use_runtimelinking=no
13351 exp_sym_flag='-Bexport'
13352 no_entry_flag=""
13353 else
13354 # If we're using GNU nm, then we don't want the "-C" option.
13355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13357 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'
13358 else
13359 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'
13360 fi
13361 aix_use_runtimelinking=no
13362
13363 # Test if we are trying to use run time linking or normal
13364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13365 # need to do runtime linking.
13366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13367 for ld_flag in $LDFLAGS; do
13368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13369 aix_use_runtimelinking=yes
13370 break
13371 fi
13372 done
13373 esac
13374
13375 exp_sym_flag='-bexport'
13376 no_entry_flag='-bnoentry'
13377 fi
13378
13379 # When large executables or shared objects are built, AIX ld can
13380 # have problems creating the table of contents. If linking a library
13381 # or program results in "error TOC overflow" add -mminimal-toc to
13382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13384
13385 archive_cmds_F77=''
13386 hardcode_direct_F77=yes
13387 hardcode_libdir_separator_F77=':'
13388 link_all_deplibs_F77=yes
13389
13390 if test "$GCC" = yes; then
13391 case $host_os in aix4.012|aix4.012.*)
13392 # We only want to do this on AIX 4.2 and lower, the check
13393 # below for broken collect2 doesn't work under 4.3+
13394 collect2name=`${CC} -print-prog-name=collect2`
13395 if test -f "$collect2name" && \
13396 strings "$collect2name" | grep resolve_lib_name >/dev/null
13397 then
13398 # We have reworked collect2
13399 hardcode_direct_F77=yes
13400 else
13401 # We have old collect2
13402 hardcode_direct_F77=unsupported
13403 # It fails to find uninstalled libraries when the uninstalled
13404 # path is not listed in the libpath. Setting hardcode_minus_L
13405 # to unsupported forces relinking
13406 hardcode_minus_L_F77=yes
13407 hardcode_libdir_flag_spec_F77='-L$libdir'
13408 hardcode_libdir_separator_F77=
13409 fi
13410 esac
13411 shared_flag='-shared'
13412 else
13413 # not using gcc
13414 if test "$host_cpu" = ia64; then
13415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13416 # chokes on -Wl,-G. The following line is correct:
13417 shared_flag='-G'
13418 else
13419 if test "$aix_use_runtimelinking" = yes; then
13420 shared_flag='${wl}-G'
13421 else
13422 shared_flag='${wl}-bM:SRE'
13423 fi
13424 fi
13425 fi
13426
13427 # It seems that -bexpall does not export symbols beginning with
13428 # underscore (_), so it is better to generate a list of symbols to export.
13429 always_export_symbols_F77=yes
13430 if test "$aix_use_runtimelinking" = yes; then
13431 # Warning - without using the other runtime loading flags (-brtl),
13432 # -berok will link without error, but may produce a broken library.
13433 allow_undefined_flag_F77='-berok'
13434 # Determine the default libpath from the value encoded in an empty executable.
13435 cat >conftest.$ac_ext <<_ACEOF
13436 program main
13437
13438 end
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000013442 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013443 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000013446 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452
13453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13454}'`
13455# Check for a 64-bit object if we didn't find anything.
13456if 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; }
13457}'`; fi
13458else
13459 echo "$as_me: failed program was:" >&5
13460sed 's/^/| /' conftest.$ac_ext >&5
13461
13462fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000013463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13465
13466 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13467 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"
13468 else
13469 if test "$host_cpu" = ia64; then
13470 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13471 allow_undefined_flag_F77="-z nodefs"
13472 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"
13473 else
13474 # Determine the default libpath from the value encoded in an empty executable.
13475 cat >conftest.$ac_ext <<_ACEOF
13476 program main
13477
13478 end
13479_ACEOF
13480rm -f conftest.$ac_objext conftest$ac_exeext
13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000013482 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013483 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000013486 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492
13493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13494}'`
13495# Check for a 64-bit object if we didn't find anything.
13496if 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; }
13497}'`; fi
13498else
13499 echo "$as_me: failed program was:" >&5
13500sed 's/^/| /' conftest.$ac_ext >&5
13501
13502fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000013503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000013504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507 # Warning - without using the other run time loading flags,
13508 # -berok will link without error, but may produce a broken library.
13509 no_undefined_flag_F77=' ${wl}-bernotok'
13510 allow_undefined_flag_F77=' ${wl}-berok'
13511 # -bexpall does not export symbols beginning with underscore (_)
13512 always_export_symbols_F77=yes
13513 # Exported symbols can be pulled into shared objects from archives
13514 whole_archive_flag_spec_F77=' '
13515 archive_cmds_need_lc_F77=yes
13516 # This is similar to how AIX traditionally builds it's shared libraries.
13517 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'
13518 fi
13519 fi
13520 ;;
13521
13522 amigaos*)
13523 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)'
13524 hardcode_libdir_flag_spec_F77='-L$libdir'
13525 hardcode_minus_L_F77=yes
13526 # see comment about different semantics on the GNU ld section
13527 ld_shlibs_F77=no
13528 ;;
13529
13530 bsdi4*)
13531 export_dynamic_flag_spec_F77=-rdynamic
13532 ;;
13533
13534 cygwin* | mingw* | pw32*)
13535 # When not using gcc, we currently assume that we are using
13536 # Microsoft Visual C++.
13537 # hardcode_libdir_flag_spec is actually meaningless, as there is
13538 # no search path for DLLs.
13539 hardcode_libdir_flag_spec_F77=' '
13540 allow_undefined_flag_F77=unsupported
13541 # Tell ltmain to make .lib files, not .a files.
13542 libext=lib
13543 # Tell ltmain to make .dll files, not .so files.
13544 shrext=".dll"
13545 # FIXME: Setting linknames here is a bad hack.
13546 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13547 # The linker will automatically build a .lib file if we build a DLL.
13548 old_archive_From_new_cmds_F77='true'
13549 # FIXME: Should let the user specify the lib program.
13550 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13551 fix_srcfile_path='`cygpath -w "$srcfile"`'
13552 enable_shared_with_static_runtimes_F77=yes
13553 ;;
13554
13555 darwin* | rhapsody*)
13556 if test "$GXX" = yes ; then
13557 archive_cmds_need_lc_F77=no
13558 case "$host_os" in
13559 rhapsody* | darwin1.[012])
13560 allow_undefined_flag_F77='-undefined suppress'
13561 ;;
13562 *) # Darwin 1.3 on
13563 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13564 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13565 else
13566 case ${MACOSX_DEPLOYMENT_TARGET} in
13567 10.[012])
13568 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13569 ;;
13570 10.*)
13571 allow_undefined_flag_F77='-undefined dynamic_lookup'
13572 ;;
13573 esac
13574 fi
13575 ;;
13576 esac
13577 lt_int_apple_cc_single_mod=no
13578 output_verbose_link_cmd='echo'
13579 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13580 lt_int_apple_cc_single_mod=yes
13581 fi
13582 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13583 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13584 else
13585 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'
13586 fi
13587 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13589 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13590 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}'
13591 else
13592 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}'
13593 fi
13594 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}'
13595 hardcode_direct_F77=no
13596 hardcode_automatic_F77=yes
13597 hardcode_shlibpath_var_F77=unsupported
13598 whole_archive_flag_spec_F77='-all_load $convenience'
13599 link_all_deplibs_F77=yes
13600 else
13601 ld_shlibs_F77=no
13602 fi
13603 ;;
13604
13605 dgux*)
13606 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13607 hardcode_libdir_flag_spec_F77='-L$libdir'
13608 hardcode_shlibpath_var_F77=no
13609 ;;
13610
13611 freebsd1*)
13612 ld_shlibs_F77=no
13613 ;;
13614
13615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13616 # support. Future versions do this automatically, but an explicit c++rt0.o
13617 # does not break anything, and helps significantly (at the cost of a little
13618 # extra space).
13619 freebsd2.2*)
13620 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13621 hardcode_libdir_flag_spec_F77='-R$libdir'
13622 hardcode_direct_F77=yes
13623 hardcode_shlibpath_var_F77=no
13624 ;;
13625
13626 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13627 freebsd2*)
13628 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13629 hardcode_direct_F77=yes
13630 hardcode_minus_L_F77=yes
13631 hardcode_shlibpath_var_F77=no
13632 ;;
13633
13634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13635 freebsd* | kfreebsd*-gnu)
13636 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13637 hardcode_libdir_flag_spec_F77='-R$libdir'
13638 hardcode_direct_F77=yes
13639 hardcode_shlibpath_var_F77=no
13640 ;;
13641
13642 hpux9*)
13643 if test "$GCC" = yes; then
13644 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'
13645 else
13646 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'
13647 fi
13648 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13649 hardcode_libdir_separator_F77=:
13650 hardcode_direct_F77=yes
13651
13652 # hardcode_minus_L: Not really in the search PATH,
13653 # but as the default location of the library.
13654 hardcode_minus_L_F77=yes
13655 export_dynamic_flag_spec_F77='${wl}-E'
13656 ;;
13657
13658 hpux10* | hpux11*)
13659 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13660 case "$host_cpu" in
13661 hppa*64*|ia64*)
13662 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 ;;
13664 *)
13665 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13666 ;;
13667 esac
13668 else
13669 case "$host_cpu" in
13670 hppa*64*|ia64*)
13671 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13672 ;;
13673 *)
13674 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13675 ;;
13676 esac
13677 fi
13678 if test "$with_gnu_ld" = no; then
13679 case "$host_cpu" in
13680 hppa*64*)
13681 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13682 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13683 hardcode_libdir_separator_F77=:
13684 hardcode_direct_F77=no
13685 hardcode_shlibpath_var_F77=no
13686 ;;
13687 ia64*)
13688 hardcode_libdir_flag_spec_F77='-L$libdir'
13689 hardcode_direct_F77=no
13690 hardcode_shlibpath_var_F77=no
13691
13692 # hardcode_minus_L: Not really in the search PATH,
13693 # but as the default location of the library.
13694 hardcode_minus_L_F77=yes
13695 ;;
13696 *)
13697 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13698 hardcode_libdir_separator_F77=:
13699 hardcode_direct_F77=yes
13700 export_dynamic_flag_spec_F77='${wl}-E'
13701
13702 # hardcode_minus_L: Not really in the search PATH,
13703 # but as the default location of the library.
13704 hardcode_minus_L_F77=yes
13705 ;;
13706 esac
13707 fi
13708 ;;
13709
13710 irix5* | irix6* | nonstopux*)
13711 if test "$GCC" = yes; then
13712 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'
13713 else
13714 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'
13715 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13716 fi
13717 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13718 hardcode_libdir_separator_F77=:
13719 link_all_deplibs_F77=yes
13720 ;;
13721
13722 netbsd*)
13723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13725 else
13726 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13727 fi
13728 hardcode_libdir_flag_spec_F77='-R$libdir'
13729 hardcode_direct_F77=yes
13730 hardcode_shlibpath_var_F77=no
13731 ;;
13732
13733 newsos6)
13734 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13735 hardcode_direct_F77=yes
13736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13737 hardcode_libdir_separator_F77=:
13738 hardcode_shlibpath_var_F77=no
13739 ;;
13740
13741 openbsd*)
13742 hardcode_direct_F77=yes
13743 hardcode_shlibpath_var_F77=no
13744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13745 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13746 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13747 export_dynamic_flag_spec_F77='${wl}-E'
13748 else
13749 case $host_os in
13750 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13751 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13752 hardcode_libdir_flag_spec_F77='-R$libdir'
13753 ;;
13754 *)
13755 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13757 ;;
13758 esac
13759 fi
13760 ;;
13761
13762 os2*)
13763 hardcode_libdir_flag_spec_F77='-L$libdir'
13764 hardcode_minus_L_F77=yes
13765 allow_undefined_flag_F77=unsupported
13766 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'
13767 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13768 ;;
13769
13770 osf3*)
13771 if test "$GCC" = yes; then
13772 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13773 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'
13774 else
13775 allow_undefined_flag_F77=' -expect_unresolved \*'
13776 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'
13777 fi
13778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_F77=:
13780 ;;
13781
13782 osf4* | osf5*) # as osf3* with the addition of -msym flag
13783 if test "$GCC" = yes; then
13784 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13785 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'
13786 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13787 else
13788 allow_undefined_flag_F77=' -expect_unresolved \*'
13789 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'
13790 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~
13791 $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'
13792
13793 # Both c and cxx compiler support -rpath directly
13794 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13795 fi
13796 hardcode_libdir_separator_F77=:
13797 ;;
13798
13799 sco3.2v5*)
13800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801 hardcode_shlibpath_var_F77=no
13802 export_dynamic_flag_spec_F77='${wl}-Bexport'
13803 runpath_var=LD_RUN_PATH
13804 hardcode_runpath_var=yes
13805 ;;
13806
13807 solaris*)
13808 no_undefined_flag_F77=' -z text'
13809 if test "$GCC" = yes; then
13810 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13811 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13812 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13813 else
13814 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13816 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13817 fi
13818 hardcode_libdir_flag_spec_F77='-R$libdir'
13819 hardcode_shlibpath_var_F77=no
13820 case $host_os in
13821 solaris2.[0-5] | solaris2.[0-5].*) ;;
13822 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13823 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13824 esac
13825 link_all_deplibs_F77=yes
13826 ;;
13827
13828 sunos4*)
13829 if test "x$host_vendor" = xsequent; then
13830 # Use $CC to link under sequent, because it throws in some extra .o
13831 # files that make .init and .fini sections work.
13832 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13833 else
13834 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13835 fi
13836 hardcode_libdir_flag_spec_F77='-L$libdir'
13837 hardcode_direct_F77=yes
13838 hardcode_minus_L_F77=yes
13839 hardcode_shlibpath_var_F77=no
13840 ;;
13841
13842 sysv4)
13843 case $host_vendor in
13844 sni)
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_direct_F77=yes # is this really true???
13847 ;;
13848 siemens)
13849 ## LD is ld it makes a PLAMLIB
13850 ## CC just makes a GrossModule.
13851 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13852 reload_cmds_F77='$CC -r -o $output$reload_objs'
13853 hardcode_direct_F77=no
13854 ;;
13855 motorola)
13856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13858 ;;
13859 esac
13860 runpath_var='LD_RUN_PATH'
13861 hardcode_shlibpath_var_F77=no
13862 ;;
13863
13864 sysv4.3*)
13865 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13866 hardcode_shlibpath_var_F77=no
13867 export_dynamic_flag_spec_F77='-Bexport'
13868 ;;
13869
13870 sysv4*MP*)
13871 if test -d /usr/nec; then
13872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_shlibpath_var_F77=no
13874 runpath_var=LD_RUN_PATH
13875 hardcode_runpath_var=yes
13876 ld_shlibs_F77=yes
13877 fi
13878 ;;
13879
13880 sysv4.2uw2*)
13881 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13882 hardcode_direct_F77=yes
13883 hardcode_minus_L_F77=no
13884 hardcode_shlibpath_var_F77=no
13885 hardcode_runpath_var=yes
13886 runpath_var=LD_RUN_PATH
13887 ;;
13888
13889 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13890 no_undefined_flag_F77='${wl}-z ${wl}text'
13891 if test "$GCC" = yes; then
13892 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13893 else
13894 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13895 fi
13896 runpath_var='LD_RUN_PATH'
13897 hardcode_shlibpath_var_F77=no
13898 ;;
13899
13900 sysv5*)
13901 no_undefined_flag_F77=' -z text'
13902 # $CC -shared without GNU ld will not create a library from C++
13903 # object files and a static libstdc++, better avoid it by now
13904 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13907 hardcode_libdir_flag_spec_F77=
13908 hardcode_shlibpath_var_F77=no
13909 runpath_var='LD_RUN_PATH'
13910 ;;
13911
13912 uts4*)
13913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_shlibpath_var_F77=no
13916 ;;
13917
13918 *)
13919 ld_shlibs_F77=no
13920 ;;
13921 esac
13922 fi
13923
13924echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13925echo "${ECHO_T}$ld_shlibs_F77" >&6
13926test "$ld_shlibs_F77" = no && can_build_shared=no
13927
13928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13929if test "$GCC" = yes; then
13930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13931fi
13932
13933#
13934# Do we need to explicitly link libc?
13935#
13936case "x$archive_cmds_need_lc_F77" in
13937x|xyes)
13938 # Assume -lc should be added
13939 archive_cmds_need_lc_F77=yes
13940
13941 if test "$enable_shared" = yes && test "$GCC" = yes; then
13942 case $archive_cmds_F77 in
13943 *'~'*)
13944 # FIXME: we may have to deal with multi-command sequences.
13945 ;;
13946 '$CC '*)
13947 # Test whether the compiler implicitly links with -lc since on some
13948 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13949 # to ld, don't add -lc before -lgcc.
13950 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13951echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13952 $rm conftest*
13953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13956 (eval $ac_compile) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } 2>conftest.err; then
13960 soname=conftest
13961 lib=conftest
13962 libobjs=conftest.$ac_objext
13963 deplibs=
13964 wl=$lt_prog_compiler_wl_F77
13965 compiler_flags=-v
13966 linker_flags=-v
13967 verstring=
13968 output_objdir=.
13969 libname=conftest
13970 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13971 allow_undefined_flag_F77=
13972 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13973 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }
13977 then
13978 archive_cmds_need_lc_F77=no
13979 else
13980 archive_cmds_need_lc_F77=yes
13981 fi
13982 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13983 else
13984 cat conftest.err 1>&5
13985 fi
13986 $rm conftest*
13987 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13988echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13989 ;;
13990 esac
13991 fi
13992 ;;
13993esac
13994
13995echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13996echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13997library_names_spec=
13998libname_spec='lib$name'
13999soname_spec=
14000shrext=".so"
14001postinstall_cmds=
14002postuninstall_cmds=
14003finish_cmds=
14004finish_eval=
14005shlibpath_var=
14006shlibpath_overrides_runpath=unknown
14007version_type=none
14008dynamic_linker="$host_os ld.so"
14009sys_lib_dlsearch_path_spec="/lib /usr/lib"
14010if test "$GCC" = yes; then
14011 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14012 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14013 # if the path contains ";" then we assume it to be the separator
14014 # otherwise default to the standard path separator (i.e. ":") - it is
14015 # assumed that no part of a normal pathname contains ";" but that should
14016 # okay in the real world where ";" in dirpaths is itself problematic.
14017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14018 else
14019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14020 fi
14021else
14022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14023fi
14024need_lib_prefix=unknown
14025hardcode_into_libs=no
14026
14027# when you set need_version to no, make sure it does not cause -set_version
14028# flags to be left without arguments
14029need_version=unknown
14030
14031case $host_os in
14032aix3*)
14033 version_type=linux
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14035 shlibpath_var=LIBPATH
14036
14037 # AIX 3 has no versioning support, so we append a major version to the name.
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 ;;
14040
14041aix4* | aix5*)
14042 version_type=linux
14043 need_lib_prefix=no
14044 need_version=no
14045 hardcode_into_libs=yes
14046 if test "$host_cpu" = ia64; then
14047 # AIX 5 supports IA64
14048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 else
14051 # With GCC up to 2.95.x, collect2 would create an import file
14052 # for dependence libraries. The import file would start with
14053 # the line `#! .'. This would cause the generated library to
14054 # depend on `.', always an invalid library. This was fixed in
14055 # development snapshots of GCC prior to 3.0.
14056 case $host_os in
14057 aix4 | aix4.[01] | aix4.[01].*)
14058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14059 echo ' yes '
14060 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14061 :
14062 else
14063 can_build_shared=no
14064 fi
14065 ;;
14066 esac
14067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14068 # soname into executable. Probably we can add versioning support to
14069 # collect2, so additional links can be useful in future.
14070 if test "$aix_use_runtimelinking" = yes; then
14071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14072 # instead of lib<name>.a to let people know that these are not
14073 # typical AIX shared libraries.
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 else
14076 # We preserve .a as extension for shared libraries through AIX4.2
14077 # and later when we are not doing run time linking.
14078 library_names_spec='${libname}${release}.a $libname.a'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 fi
14081 shlibpath_var=LIBPATH
14082 fi
14083 ;;
14084
14085amigaos*)
14086 library_names_spec='$libname.ixlibrary $libname.a'
14087 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14088 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'
14089 ;;
14090
14091beos*)
14092 library_names_spec='${libname}${shared_ext}'
14093 dynamic_linker="$host_os ld.so"
14094 shlibpath_var=LIBRARY_PATH
14095 ;;
14096
14097bsdi4*)
14098 version_type=linux
14099 need_version=no
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14105 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14106 # the default ld.so.conf also contains /usr/contrib/lib and
14107 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14108 # libtool to hard-code these into programs
14109 ;;
14110
14111cygwin* | mingw* | pw32*)
14112 version_type=windows
14113 shrext=".dll"
14114 need_version=no
14115 need_lib_prefix=no
14116
14117 case $GCC,$host_os in
14118 yes,cygwin* | yes,mingw* | yes,pw32*)
14119 library_names_spec='$libname.dll.a'
14120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14121 postinstall_cmds='base_file=`basename \${file}`~
14122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14123 dldir=$destdir/`dirname \$dlpath`~
14124 test -d \$dldir || mkdir -p \$dldir~
14125 $install_prog $dir/$dlname \$dldir/$dlname'
14126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14127 dlpath=$dir/\$dldll~
14128 $rm \$dlpath'
14129 shlibpath_overrides_runpath=yes
14130
14131 case $host_os in
14132 cygwin*)
14133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14136 ;;
14137 mingw*)
14138 # MinGW DLLs use traditional 'lib' prefix
14139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14141 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14142 # It is most probably a Windows format PATH printed by
14143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14144 # path with ; separators, and with drive letters. We can handle the
14145 # drive letters (cygwin fileutils understands them), so leave them,
14146 # especially as we might pass files found there to a mingw objdump,
14147 # which wouldn't understand a cygwinified path. Ahh.
14148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14149 else
14150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14151 fi
14152 ;;
14153 pw32*)
14154 # pw32 DLLs use 'pw' prefix rather than 'lib'
14155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14156 ;;
14157 esac
14158 ;;
14159
14160 *)
14161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14162 ;;
14163 esac
14164 dynamic_linker='Win32 ld.exe'
14165 # FIXME: first we should search . and the directory the executable is in
14166 shlibpath_var=PATH
14167 ;;
14168
14169darwin* | rhapsody*)
14170 dynamic_linker="$host_os dyld"
14171 version_type=darwin
14172 need_lib_prefix=no
14173 need_version=no
14174 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14175 soname_spec='${libname}${release}${major}$shared_ext'
14176 shlibpath_overrides_runpath=yes
14177 shlibpath_var=DYLD_LIBRARY_PATH
14178 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14179 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14180 if test "$GCC" = yes; then
14181 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"`
14182 else
14183 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14184 fi
14185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14186 ;;
14187
14188dgux*)
14189 version_type=linux
14190 need_lib_prefix=no
14191 need_version=no
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 ;;
14196
14197freebsd1*)
14198 dynamic_linker=no
14199 ;;
14200
14201kfreebsd*-gnu)
14202 version_type=linux
14203 need_lib_prefix=no
14204 need_version=no
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14206 soname_spec='${libname}${release}${shared_ext}$major'
14207 shlibpath_var=LD_LIBRARY_PATH
14208 shlibpath_overrides_runpath=no
14209 hardcode_into_libs=yes
14210 dynamic_linker='GNU ld.so'
14211 ;;
14212
14213freebsd*)
14214 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14215 version_type=freebsd-$objformat
14216 case $version_type in
14217 freebsd-elf*)
14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14219 need_version=no
14220 need_lib_prefix=no
14221 ;;
14222 freebsd-*)
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14224 need_version=yes
14225 ;;
14226 esac
14227 shlibpath_var=LD_LIBRARY_PATH
14228 case $host_os in
14229 freebsd2*)
14230 shlibpath_overrides_runpath=yes
14231 ;;
14232 freebsd3.01* | freebsdelf3.01*)
14233 shlibpath_overrides_runpath=yes
14234 hardcode_into_libs=yes
14235 ;;
14236 *) # from 3.2 on
14237 shlibpath_overrides_runpath=no
14238 hardcode_into_libs=yes
14239 ;;
14240 esac
14241 ;;
14242
14243gnu*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LD_LIBRARY_PATH
14250 hardcode_into_libs=yes
14251 ;;
14252
14253hpux9* | hpux10* | hpux11*)
14254 # Give a soname corresponding to the major version so that dld.sl refuses to
14255 # link against other versions.
14256 version_type=sunos
14257 need_lib_prefix=no
14258 need_version=no
14259 case "$host_cpu" in
14260 ia64*)
14261 shrext='.so'
14262 hardcode_into_libs=yes
14263 dynamic_linker="$host_os dld.so"
14264 shlibpath_var=LD_LIBRARY_PATH
14265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 if test "X$HPUX_IA64_MODE" = X32; then
14269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14270 else
14271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14272 fi
14273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14274 ;;
14275 hppa*64*)
14276 shrext='.sl'
14277 hardcode_into_libs=yes
14278 dynamic_linker="$host_os dld.sl"
14279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14285 ;;
14286 *)
14287 shrext='.sl'
14288 dynamic_linker="$host_os dld.sl"
14289 shlibpath_var=SHLIB_PATH
14290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 ;;
14294 esac
14295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14296 postinstall_cmds='chmod 555 $lib'
14297 ;;
14298
14299irix5* | irix6* | nonstopux*)
14300 case $host_os in
14301 nonstopux*) version_type=nonstopux ;;
14302 *)
14303 if test "$lt_cv_prog_gnu_ld" = yes; then
14304 version_type=linux
14305 else
14306 version_type=irix
14307 fi ;;
14308 esac
14309 need_lib_prefix=no
14310 need_version=no
14311 soname_spec='${libname}${release}${shared_ext}$major'
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14313 case $host_os in
14314 irix5* | nonstopux*)
14315 libsuff= shlibsuff=
14316 ;;
14317 *)
14318 case $LD in # libtool.m4 will add one of these switches to LD
14319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14320 libsuff= shlibsuff= libmagic=32-bit;;
14321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14322 libsuff=32 shlibsuff=N32 libmagic=N32;;
14323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14325 *) libsuff= shlibsuff= libmagic=never-match;;
14326 esac
14327 ;;
14328 esac
14329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14330 shlibpath_overrides_runpath=no
14331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14333 hardcode_into_libs=yes
14334 ;;
14335
14336# No shared lib support for Linux oldld, aout, or coff.
14337linux*oldld* | linux*aout* | linux*coff*)
14338 dynamic_linker=no
14339 ;;
14340
14341# This must be Linux ELF.
14342linux*)
14343 version_type=linux
14344 need_lib_prefix=no
14345 need_version=no
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14349 shlibpath_var=LD_LIBRARY_PATH
14350 shlibpath_overrides_runpath=no
14351 # This implies no fast_install, which is unacceptable.
14352 # Some rework will be needed to allow for fast_install
14353 # before this can be enabled.
14354 hardcode_into_libs=yes
14355
14356 # /usr/X11R6/lib and /usr/local/lib are common enough...
14357 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
14358
14359 # We used to test for /lib/ld.so.1 and disable shared libraries on
14360 # powerpc, because MkLinux only supported shared libraries with the
14361 # GNU dynamic linker. Since this was broken with cross compilers,
14362 # most powerpc-linux boxes support dynamic linking these days and
14363 # people can always --disable-shared, the test was removed, and we
14364 # assume the GNU/Linux dynamic linker is in use.
14365 dynamic_linker='GNU/Linux ld.so'
14366 ;;
14367
14368knetbsd*-gnu)
14369 version_type=linux
14370 need_lib_prefix=no
14371 need_version=no
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 shlibpath_var=LD_LIBRARY_PATH
14375 shlibpath_overrides_runpath=no
14376 hardcode_into_libs=yes
14377 dynamic_linker='GNU ld.so'
14378 ;;
14379
14380netbsd*)
14381 version_type=sunos
14382 need_lib_prefix=no
14383 need_version=no
14384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14387 dynamic_linker='NetBSD (a.out) ld.so'
14388 else
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 dynamic_linker='NetBSD ld.elf_so'
14392 fi
14393 shlibpath_var=LD_LIBRARY_PATH
14394 shlibpath_overrides_runpath=yes
14395 hardcode_into_libs=yes
14396 ;;
14397
14398newsos6)
14399 version_type=linux
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 shlibpath_var=LD_LIBRARY_PATH
14402 shlibpath_overrides_runpath=yes
14403 ;;
14404
14405nto-qnx*)
14406 version_type=linux
14407 need_lib_prefix=no
14408 need_version=no
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 shlibpath_var=LD_LIBRARY_PATH
14412 shlibpath_overrides_runpath=yes
14413 ;;
14414
14415openbsd*)
14416 version_type=sunos
14417 need_lib_prefix=no
14418 need_version=yes
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14423 case $host_os in
14424 openbsd2.[89] | openbsd2.[89].*)
14425 shlibpath_overrides_runpath=no
14426 ;;
14427 *)
14428 shlibpath_overrides_runpath=yes
14429 ;;
14430 esac
14431 else
14432 shlibpath_overrides_runpath=yes
14433 fi
14434 ;;
14435
14436os2*)
14437 libname_spec='$name'
14438 shrext=".dll"
14439 need_lib_prefix=no
14440 library_names_spec='$libname${shared_ext} $libname.a'
14441 dynamic_linker='OS/2 ld.exe'
14442 shlibpath_var=LIBPATH
14443 ;;
14444
14445osf3* | osf4* | osf5*)
14446 version_type=osf
14447 need_lib_prefix=no
14448 need_version=no
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14454 ;;
14455
14456sco3.2v5*)
14457 version_type=osf
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 ;;
14462
14463solaris*)
14464 version_type=linux
14465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 shlibpath_overrides_runpath=yes
14471 hardcode_into_libs=yes
14472 # ldd complains unless libraries are executable
14473 postinstall_cmds='chmod +x $lib'
14474 ;;
14475
14476sunos4*)
14477 version_type=sunos
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14482 if test "$with_gnu_ld" = yes; then
14483 need_lib_prefix=no
14484 fi
14485 need_version=yes
14486 ;;
14487
14488sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14489 version_type=linux
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 case $host_vendor in
14494 sni)
14495 shlibpath_overrides_runpath=no
14496 need_lib_prefix=no
14497 export_dynamic_flag_spec='${wl}-Blargedynsym'
14498 runpath_var=LD_RUN_PATH
14499 ;;
14500 siemens)
14501 need_lib_prefix=no
14502 ;;
14503 motorola)
14504 need_lib_prefix=no
14505 need_version=no
14506 shlibpath_overrides_runpath=no
14507 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14508 ;;
14509 esac
14510 ;;
14511
14512sysv4*MP*)
14513 if test -d /usr/nec ;then
14514 version_type=linux
14515 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14516 soname_spec='$libname${shared_ext}.$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 fi
14519 ;;
14520
14521uts4*)
14522 version_type=linux
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 ;;
14527
14528*)
14529 dynamic_linker=no
14530 ;;
14531esac
14532echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14533echo "${ECHO_T}$dynamic_linker" >&6
14534test "$dynamic_linker" = no && can_build_shared=no
14535
14536echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14537echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14538hardcode_action_F77=
14539if test -n "$hardcode_libdir_flag_spec_F77" || \
14540 test -n "$runpath_var F77" || \
14541 test "X$hardcode_automatic_F77"="Xyes" ; then
14542
14543 # We can hardcode non-existant directories.
14544 if test "$hardcode_direct_F77" != no &&
14545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14546 # have to relink, otherwise we might link with an installed library
14547 # when we should be linking with a yet-to-be-installed one
14548 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14549 test "$hardcode_minus_L_F77" != no; then
14550 # Linking always hardcodes the temporary library directory.
14551 hardcode_action_F77=relink
14552 else
14553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14554 hardcode_action_F77=immediate
14555 fi
14556else
14557 # We cannot hardcode anything, or else we can only hardcode existing
14558 # directories.
14559 hardcode_action_F77=unsupported
14560fi
14561echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14562echo "${ECHO_T}$hardcode_action_F77" >&6
14563
14564if test "$hardcode_action_F77" = relink; then
14565 # Fast installation is not supported
14566 enable_fast_install=no
14567elif test "$shlibpath_overrides_runpath" = yes ||
14568 test "$enable_shared" = no; then
14569 # Fast installation is not necessary
14570 enable_fast_install=needless
14571fi
14572
14573striplib=
14574old_striplib=
14575echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14576echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14577if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14578 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14579 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14580 echo "$as_me:$LINENO: result: yes" >&5
14581echo "${ECHO_T}yes" >&6
14582else
14583# FIXME - insert some real tests, host_os isn't really good enough
14584 case $host_os in
14585 darwin*)
14586 if test -n "$STRIP" ; then
14587 striplib="$STRIP -x"
14588 echo "$as_me:$LINENO: result: yes" >&5
14589echo "${ECHO_T}yes" >&6
14590 else
14591 echo "$as_me:$LINENO: result: no" >&5
14592echo "${ECHO_T}no" >&6
14593fi
14594 ;;
14595 *)
14596 echo "$as_me:$LINENO: result: no" >&5
14597echo "${ECHO_T}no" >&6
14598 ;;
14599 esac
14600fi
14601
14602
14603
14604# The else clause should only fire when bootstrapping the
14605# libtool distribution, otherwise you forgot to ship ltmain.sh
14606# with your package, and you will get complaints that there are
14607# no rules to generate ltmain.sh.
14608if test -f "$ltmain"; then
14609 # See if we are running on zsh, and set the options which allow our commands through
14610 # without removal of \ escapes.
14611 if test -n "${ZSH_VERSION+set}" ; then
14612 setopt NO_GLOB_SUBST
14613 fi
14614 # Now quote all the things that may contain metacharacters while being
14615 # careful not to overquote the AC_SUBSTed values. We take copies of the
14616 # variables and quote the copies for generation of the libtool script.
14617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14618 SED SHELL STRIP \
14619 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14620 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14621 deplibs_check_method reload_flag reload_cmds need_locks \
14622 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14623 lt_cv_sys_global_symbol_to_c_name_address \
14624 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14625 old_postinstall_cmds old_postuninstall_cmds \
14626 compiler_F77 \
14627 CC_F77 \
14628 LD_F77 \
14629 lt_prog_compiler_wl_F77 \
14630 lt_prog_compiler_pic_F77 \
14631 lt_prog_compiler_static_F77 \
14632 lt_prog_compiler_no_builtin_flag_F77 \
14633 export_dynamic_flag_spec_F77 \
14634 thread_safe_flag_spec_F77 \
14635 whole_archive_flag_spec_F77 \
14636 enable_shared_with_static_runtimes_F77 \
14637 old_archive_cmds_F77 \
14638 old_archive_from_new_cmds_F77 \
14639 predep_objects_F77 \
14640 postdep_objects_F77 \
14641 predeps_F77 \
14642 postdeps_F77 \
14643 compiler_lib_search_path_F77 \
14644 archive_cmds_F77 \
14645 archive_expsym_cmds_F77 \
14646 postinstall_cmds_F77 \
14647 postuninstall_cmds_F77 \
14648 old_archive_from_expsyms_cmds_F77 \
14649 allow_undefined_flag_F77 \
14650 no_undefined_flag_F77 \
14651 export_symbols_cmds_F77 \
14652 hardcode_libdir_flag_spec_F77 \
14653 hardcode_libdir_flag_spec_ld_F77 \
14654 hardcode_libdir_separator_F77 \
14655 hardcode_automatic_F77 \
14656 module_cmds_F77 \
14657 module_expsym_cmds_F77 \
14658 lt_cv_prog_compiler_c_o_F77 \
14659 exclude_expsyms_F77 \
14660 include_expsyms_F77; do
14661
14662 case $var in
14663 old_archive_cmds_F77 | \
14664 old_archive_from_new_cmds_F77 | \
14665 archive_cmds_F77 | \
14666 archive_expsym_cmds_F77 | \
14667 module_cmds_F77 | \
14668 module_expsym_cmds_F77 | \
14669 old_archive_from_expsyms_cmds_F77 | \
14670 export_symbols_cmds_F77 | \
14671 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14672 postinstall_cmds | postuninstall_cmds | \
14673 old_postinstall_cmds | old_postuninstall_cmds | \
14674 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14675 # Double-quote double-evaled strings.
14676 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14677 ;;
14678 *)
14679 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14680 ;;
14681 esac
14682 done
14683
14684 case $lt_echo in
14685 *'\$0 --fallback-echo"')
14686 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14687 ;;
14688 esac
14689
14690cfgfile="$ofile"
14691
14692 cat <<__EOF__ >> "$cfgfile"
14693# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14694
14695# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14696
14697# Shell to use when invoking shell scripts.
14698SHELL=$lt_SHELL
14699
14700# Whether or not to build shared libraries.
14701build_libtool_libs=$enable_shared
14702
14703# Whether or not to build static libraries.
14704build_old_libs=$enable_static
14705
14706# Whether or not to add -lc for building shared libraries.
14707build_libtool_need_lc=$archive_cmds_need_lc_F77
14708
14709# Whether or not to disallow shared libs when runtime libs are static
14710allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14711
14712# Whether or not to optimize for fast installation.
14713fast_install=$enable_fast_install
14714
14715# The host system.
14716host_alias=$host_alias
14717host=$host
14718
14719# An echo program that does not interpret backslashes.
14720echo=$lt_echo
14721
14722# The archiver.
14723AR=$lt_AR
14724AR_FLAGS=$lt_AR_FLAGS
14725
14726# A C compiler.
14727LTCC=$lt_LTCC
14728
14729# A language-specific compiler.
14730CC=$lt_compiler_F77
14731
14732# Is the compiler the GNU C compiler?
14733with_gcc=$GCC_F77
14734
14735# An ERE matcher.
14736EGREP=$lt_EGREP
14737
14738# The linker used to build libraries.
14739LD=$lt_LD_F77
14740
14741# Whether we need hard or soft links.
14742LN_S=$lt_LN_S
14743
14744# A BSD-compatible nm program.
14745NM=$lt_NM
14746
14747# A symbol stripping program
14748STRIP=$lt_STRIP
14749
14750# Used to examine libraries when file_magic_cmd begins "file"
14751MAGIC_CMD=$MAGIC_CMD
14752
14753# Used on cygwin: DLL creation program.
14754DLLTOOL="$DLLTOOL"
14755
14756# Used on cygwin: object dumper.
14757OBJDUMP="$OBJDUMP"
14758
14759# Used on cygwin: assembler.
14760AS="$AS"
14761
14762# The name of the directory that contains temporary libtool files.
14763objdir=$objdir
14764
14765# How to create reloadable object files.
14766reload_flag=$lt_reload_flag
14767reload_cmds=$lt_reload_cmds
14768
14769# How to pass a linker flag through the compiler.
14770wl=$lt_lt_prog_compiler_wl_F77
14771
14772# Object file suffix (normally "o").
14773objext="$ac_objext"
14774
14775# Old archive suffix (normally "a").
14776libext="$libext"
14777
14778# Shared library suffix (normally ".so").
14779shrext='$shrext'
14780
14781# Executable file suffix (normally "").
14782exeext="$exeext"
14783
14784# Additional compiler flags for building library objects.
14785pic_flag=$lt_lt_prog_compiler_pic_F77
14786pic_mode=$pic_mode
14787
14788# What is the maximum length of a command?
14789max_cmd_len=$lt_cv_sys_max_cmd_len
14790
14791# Does compiler simultaneously support -c and -o options?
14792compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14793
14794# Must we lock files when doing compilation ?
14795need_locks=$lt_need_locks
14796
14797# Do we need the lib prefix for modules?
14798need_lib_prefix=$need_lib_prefix
14799
14800# Do we need a version for libraries?
14801need_version=$need_version
14802
14803# Whether dlopen is supported.
14804dlopen_support=$enable_dlopen
14805
14806# Whether dlopen of programs is supported.
14807dlopen_self=$enable_dlopen_self
14808
14809# Whether dlopen of statically linked programs is supported.
14810dlopen_self_static=$enable_dlopen_self_static
14811
14812# Compiler flag to prevent dynamic linking.
14813link_static_flag=$lt_lt_prog_compiler_static_F77
14814
14815# Compiler flag to turn off builtin functions.
14816no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14817
14818# Compiler flag to allow reflexive dlopens.
14819export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14820
14821# Compiler flag to generate shared objects directly from archives.
14822whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14823
14824# Compiler flag to generate thread-safe objects.
14825thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14826
14827# Library versioning type.
14828version_type=$version_type
14829
14830# Format of library name prefix.
14831libname_spec=$lt_libname_spec
14832
14833# List of archive names. First name is the real one, the rest are links.
14834# The last name is the one that the linker finds with -lNAME.
14835library_names_spec=$lt_library_names_spec
14836
14837# The coded name of the library, if different from the real name.
14838soname_spec=$lt_soname_spec
14839
14840# Commands used to build and install an old-style archive.
14841RANLIB=$lt_RANLIB
14842old_archive_cmds=$lt_old_archive_cmds_F77
14843old_postinstall_cmds=$lt_old_postinstall_cmds
14844old_postuninstall_cmds=$lt_old_postuninstall_cmds
14845
14846# Create an old-style archive from a shared archive.
14847old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14848
14849# Create a temporary old-style archive to link instead of a shared archive.
14850old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14851
14852# Commands used to build and install a shared archive.
14853archive_cmds=$lt_archive_cmds_F77
14854archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14855postinstall_cmds=$lt_postinstall_cmds
14856postuninstall_cmds=$lt_postuninstall_cmds
14857
14858# Commands used to build a loadable module (assumed same as above if empty)
14859module_cmds=$lt_module_cmds_F77
14860module_expsym_cmds=$lt_module_expsym_cmds_F77
14861
14862# Commands to strip libraries.
14863old_striplib=$lt_old_striplib
14864striplib=$lt_striplib
14865
14866# Dependencies to place before the objects being linked to create a
14867# shared library.
14868predep_objects=$lt_predep_objects_F77
14869
14870# Dependencies to place after the objects being linked to create a
14871# shared library.
14872postdep_objects=$lt_postdep_objects_F77
14873
14874# Dependencies to place before the objects being linked to create a
14875# shared library.
14876predeps=$lt_predeps_F77
14877
14878# Dependencies to place after the objects being linked to create a
14879# shared library.
14880postdeps=$lt_postdeps_F77
14881
14882# The library search path used internally by the compiler when linking
14883# a shared library.
14884compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14885
14886# Method to check whether dependent libraries are shared objects.
14887deplibs_check_method=$lt_deplibs_check_method
14888
14889# Command to use when deplibs_check_method == file_magic.
14890file_magic_cmd=$lt_file_magic_cmd
14891
14892# Flag that allows shared libraries with undefined symbols to be built.
14893allow_undefined_flag=$lt_allow_undefined_flag_F77
14894
14895# Flag that forces no undefined symbols.
14896no_undefined_flag=$lt_no_undefined_flag_F77
14897
14898# Commands used to finish a libtool library installation in a directory.
14899finish_cmds=$lt_finish_cmds
14900
14901# Same as above, but a single script fragment to be evaled but not shown.
14902finish_eval=$lt_finish_eval
14903
14904# Take the output of nm and produce a listing of raw symbols and C names.
14905global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14906
14907# Transform the output of nm in a proper C declaration
14908global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14909
14910# Transform the output of nm in a C name address pair
14911global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14912
14913# This is the shared library runtime path variable.
14914runpath_var=$runpath_var
14915
14916# This is the shared library path variable.
14917shlibpath_var=$shlibpath_var
14918
14919# Is shlibpath searched before the hard-coded library search path?
14920shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14921
14922# How to hardcode a shared library path into an executable.
14923hardcode_action=$hardcode_action_F77
14924
14925# Whether we should hardcode library paths into libraries.
14926hardcode_into_libs=$hardcode_into_libs
14927
14928# Flag to hardcode \$libdir into a binary during linking.
14929# This must work even if \$libdir does not exist.
14930hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14931
14932# If ld is used when linking, flag to hardcode \$libdir into
14933# a binary during linking. This must work even if \$libdir does
14934# not exist.
14935hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14936
14937# Whether we need a single -rpath flag with a separated argument.
14938hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14939
14940# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14941# resulting binary.
14942hardcode_direct=$hardcode_direct_F77
14943
14944# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14945# resulting binary.
14946hardcode_minus_L=$hardcode_minus_L_F77
14947
14948# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14949# the resulting binary.
14950hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14951
14952# Set to yes if building a shared library automatically hardcodes DIR into the library
14953# and all subsequent libraries and executables linked against it.
14954hardcode_automatic=$hardcode_automatic_F77
14955
14956# Variables whose values should be saved in libtool wrapper scripts and
14957# restored at relink time.
14958variables_saved_for_relink="$variables_saved_for_relink"
14959
14960# Whether libtool must link a program against all its dependency libraries.
14961link_all_deplibs=$link_all_deplibs_F77
14962
14963# Compile-time system search path for libraries
14964sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14965
14966# Run-time system search path for libraries
14967sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14968
14969# Fix the shell variable \$srcfile for the compiler.
14970fix_srcfile_path="$fix_srcfile_path_F77"
14971
14972# Set to yes if exported symbols are required.
14973always_export_symbols=$always_export_symbols_F77
14974
14975# The commands to list exported symbols.
14976export_symbols_cmds=$lt_export_symbols_cmds_F77
14977
14978# The commands to extract the exported symbol list from a shared archive.
14979extract_expsyms_cmds=$lt_extract_expsyms_cmds
14980
14981# Symbols that should not be listed in the preloaded symbols.
14982exclude_expsyms=$lt_exclude_expsyms_F77
14983
14984# Symbols that must always be exported.
14985include_expsyms=$lt_include_expsyms_F77
14986
14987# ### END LIBTOOL TAG CONFIG: $tagname
14988
14989__EOF__
14990
14991
14992else
14993 # If there is no Makefile yet, we rely on a make rule to execute
14994 # `config.status --recheck' to rerun these tests and create the
14995 # libtool script then.
14996 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14997 if test -f "$ltmain_in"; then
14998 test -f Makefile && make "$ltmain"
14999 fi
15000fi
15001
15002
15003ac_ext=c
15004ac_cpp='$CPP $CPPFLAGS'
15005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15007ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008
15009CC="$lt_save_CC"
15010
15011 else
15012 tagname=""
15013 fi
15014 ;;
15015
15016 GCJ)
15017 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15018
15019
15020
15021# Source file extension for Java test sources.
15022ac_ext=java
15023
15024# Object file extension for compiled Java test sources.
15025objext=o
15026objext_GCJ=$objext
15027
15028# Code to be used in simple compile tests
15029lt_simple_compile_test_code="class foo {}\n"
15030
15031# Code to be used in simple link tests
15032lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15033
15034# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15035
15036# If no C compiler was specified, use CC.
15037LTCC=${LTCC-"$CC"}
15038
15039# Allow CC to be a program name with arguments.
15040compiler=$CC
15041
15042
15043# Allow CC to be a program name with arguments.
15044lt_save_CC="$CC"
15045CC=${GCJ-"gcj"}
15046compiler=$CC
15047compiler_GCJ=$CC
15048
15049# GCJ did not exist at the time GCC didn't implicitly link libc in.
15050archive_cmds_need_lc_GCJ=no
15051
15052
15053lt_prog_compiler_no_builtin_flag_GCJ=
15054
15055if test "$GCC" = yes; then
15056 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15057
15058
15059echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15060echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15061if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15063else
15064 lt_cv_prog_compiler_rtti_exceptions=no
15065 ac_outfile=conftest.$ac_objext
15066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15067 lt_compiler_flag="-fno-rtti -fno-exceptions"
15068 # Insert the option either (1) after the last *FLAGS variable, or
15069 # (2) before a word containing "conftest.", or (3) at the end.
15070 # Note that $ac_compile itself does not contain backslashes and begins
15071 # with a dollar sign (not a hyphen), so the echo should work correctly.
15072 # The option is referenced via a variable to avoid confusing sed.
15073 lt_compile=`echo "$ac_compile" | $SED \
15074 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15076 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000015077 (eval echo "\"\$as_me:15077: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015078 (eval "$lt_compile" 2>conftest.err)
15079 ac_status=$?
15080 cat conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000015081 echo "$as_me:15081: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015082 if (exit $ac_status) && test -s "$ac_outfile"; then
15083 # The compiler can only warn and ignore the option if not recognized
15084 # So say no if there are warnings
15085 if test ! -s conftest.err; then
15086 lt_cv_prog_compiler_rtti_exceptions=yes
15087 fi
15088 fi
15089 $rm conftest*
15090
15091fi
15092echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15093echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15094
15095if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15096 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15097else
15098 :
15099fi
15100
15101fi
15102
15103lt_prog_compiler_wl_GCJ=
15104lt_prog_compiler_pic_GCJ=
15105lt_prog_compiler_static_GCJ=
15106
15107echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15108echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15109
15110 if test "$GCC" = yes; then
15111 lt_prog_compiler_wl_GCJ='-Wl,'
15112 lt_prog_compiler_static_GCJ='-static'
15113
15114 case $host_os in
15115 aix*)
15116 # All AIX code is PIC.
15117 if test "$host_cpu" = ia64; then
15118 # AIX 5 now supports IA64 processor
15119 lt_prog_compiler_static_GCJ='-Bstatic'
15120 fi
15121 ;;
15122
15123 amigaos*)
15124 # FIXME: we need at least 68020 code to build shared libraries, but
15125 # adding the `-m68020' flag to GCC prevents building anything better,
15126 # like `-m68040'.
15127 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15128 ;;
15129
15130 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15131 # PIC is the default for these OSes.
15132 ;;
15133
15134 mingw* | pw32* | os2*)
15135 # This hack is so that the source file can tell whether it is being
15136 # built for inclusion in a dll (and should export symbols for example).
15137 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15138 ;;
15139
15140 darwin* | rhapsody*)
15141 # PIC is the default on this platform
15142 # Common symbols not allowed in MH_DYLIB files
15143 lt_prog_compiler_pic_GCJ='-fno-common'
15144 ;;
15145
15146 msdosdjgpp*)
15147 # Just because we use GCC doesn't mean we suddenly get shared libraries
15148 # on systems that don't support them.
15149 lt_prog_compiler_can_build_shared_GCJ=no
15150 enable_shared=no
15151 ;;
15152
15153 sysv4*MP*)
15154 if test -d /usr/nec; then
15155 lt_prog_compiler_pic_GCJ=-Kconform_pic
15156 fi
15157 ;;
15158
15159 hpux*)
15160 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15161 # not for PA HP-UX.
15162 case "$host_cpu" in
15163 hppa*64*|ia64*)
15164 # +Z the default
15165 ;;
15166 *)
15167 lt_prog_compiler_pic_GCJ='-fPIC'
15168 ;;
15169 esac
15170 ;;
15171
15172 *)
15173 lt_prog_compiler_pic_GCJ='-fPIC'
15174 ;;
15175 esac
15176 else
15177 # PORTME Check for flag to pass linker flags through the system compiler.
15178 case $host_os in
15179 aix*)
15180 lt_prog_compiler_wl_GCJ='-Wl,'
15181 if test "$host_cpu" = ia64; then
15182 # AIX 5 now supports IA64 processor
15183 lt_prog_compiler_static_GCJ='-Bstatic'
15184 else
15185 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15186 fi
15187 ;;
15188
15189 mingw* | pw32* | os2*)
15190 # This hack is so that the source file can tell whether it is being
15191 # built for inclusion in a dll (and should export symbols for example).
15192 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15193 ;;
15194
15195 hpux9* | hpux10* | hpux11*)
15196 lt_prog_compiler_wl_GCJ='-Wl,'
15197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15198 # not for PA HP-UX.
15199 case "$host_cpu" in
15200 hppa*64*|ia64*)
15201 # +Z the default
15202 ;;
15203 *)
15204 lt_prog_compiler_pic_GCJ='+Z'
15205 ;;
15206 esac
15207 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15208 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15209 ;;
15210
15211 irix5* | irix6* | nonstopux*)
15212 lt_prog_compiler_wl_GCJ='-Wl,'
15213 # PIC (with -KPIC) is the default.
15214 lt_prog_compiler_static_GCJ='-non_shared'
15215 ;;
15216
15217 newsos6)
15218 lt_prog_compiler_pic_GCJ='-KPIC'
15219 lt_prog_compiler_static_GCJ='-Bstatic'
15220 ;;
15221
15222 linux*)
15223 case $CC in
15224 icc* | ecc*)
15225 lt_prog_compiler_wl_GCJ='-Wl,'
15226 lt_prog_compiler_pic_GCJ='-KPIC'
15227 lt_prog_compiler_static_GCJ='-static'
15228 ;;
15229 ccc*)
15230 lt_prog_compiler_wl_GCJ='-Wl,'
15231 # All Alpha code is PIC.
15232 lt_prog_compiler_static_GCJ='-non_shared'
15233 ;;
15234 esac
15235 ;;
15236
15237 osf3* | osf4* | osf5*)
15238 lt_prog_compiler_wl_GCJ='-Wl,'
15239 # All OSF/1 code is PIC.
15240 lt_prog_compiler_static_GCJ='-non_shared'
15241 ;;
15242
15243 sco3.2v5*)
15244 lt_prog_compiler_pic_GCJ='-Kpic'
15245 lt_prog_compiler_static_GCJ='-dn'
15246 ;;
15247
15248 solaris*)
15249 lt_prog_compiler_wl_GCJ='-Wl,'
15250 lt_prog_compiler_pic_GCJ='-KPIC'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 ;;
15253
15254 sunos4*)
15255 lt_prog_compiler_wl_GCJ='-Qoption ld '
15256 lt_prog_compiler_pic_GCJ='-PIC'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15261 lt_prog_compiler_wl_GCJ='-Wl,'
15262 lt_prog_compiler_pic_GCJ='-KPIC'
15263 lt_prog_compiler_static_GCJ='-Bstatic'
15264 ;;
15265
15266 sysv4*MP*)
15267 if test -d /usr/nec ;then
15268 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15269 lt_prog_compiler_static_GCJ='-Bstatic'
15270 fi
15271 ;;
15272
15273 uts4*)
15274 lt_prog_compiler_pic_GCJ='-pic'
15275 lt_prog_compiler_static_GCJ='-Bstatic'
15276 ;;
15277
15278 *)
15279 lt_prog_compiler_can_build_shared_GCJ=no
15280 ;;
15281 esac
15282 fi
15283
15284echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15285echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15286
15287#
15288# Check to make sure the PIC flag actually works.
15289#
15290if test -n "$lt_prog_compiler_pic_GCJ"; then
15291
15292echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15293echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15294if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15296else
15297 lt_prog_compiler_pic_works_GCJ=no
15298 ac_outfile=conftest.$ac_objext
15299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15300 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15301 # Insert the option either (1) after the last *FLAGS variable, or
15302 # (2) before a word containing "conftest.", or (3) at the end.
15303 # Note that $ac_compile itself does not contain backslashes and begins
15304 # with a dollar sign (not a hyphen), so the echo should work correctly.
15305 # The option is referenced via a variable to avoid confusing sed.
15306 lt_compile=`echo "$ac_compile" | $SED \
15307 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15309 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000015310 (eval echo "\"\$as_me:15310: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015311 (eval "$lt_compile" 2>conftest.err)
15312 ac_status=$?
15313 cat conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000015314 echo "$as_me:15314: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015315 if (exit $ac_status) && test -s "$ac_outfile"; then
15316 # The compiler can only warn and ignore the option if not recognized
15317 # So say no if there are warnings
15318 if test ! -s conftest.err; then
15319 lt_prog_compiler_pic_works_GCJ=yes
15320 fi
15321 fi
15322 $rm conftest*
15323
15324fi
15325echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15326echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15327
15328if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15329 case $lt_prog_compiler_pic_GCJ in
15330 "" | " "*) ;;
15331 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15332 esac
15333else
15334 lt_prog_compiler_pic_GCJ=
15335 lt_prog_compiler_can_build_shared_GCJ=no
15336fi
15337
15338fi
15339case "$host_os" in
15340 # For platforms which do not support PIC, -DPIC is meaningless:
15341 *djgpp*)
15342 lt_prog_compiler_pic_GCJ=
15343 ;;
15344 *)
15345 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15346 ;;
15347esac
15348
15349echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15350echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15351if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 lt_cv_prog_compiler_c_o_GCJ=no
15355 $rm -r conftest 2>/dev/null
15356 mkdir conftest
15357 cd conftest
15358 mkdir out
15359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15360
15361 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15362 # that will create temporary files in the current directory regardless of
15363 # the output directory. Thus, making CWD read-only will cause this test
15364 # to fail, enabling locking or at least warning the user not to do parallel
15365 # builds.
15366 chmod -w .
15367
15368 lt_compiler_flag="-o out/conftest2.$ac_objext"
15369 # Insert the option either (1) after the last *FLAGS variable, or
15370 # (2) before a word containing "conftest.", or (3) at the end.
15371 # Note that $ac_compile itself does not contain backslashes and begins
15372 # with a dollar sign (not a hyphen), so the echo should work correctly.
15373 lt_compile=`echo "$ac_compile" | $SED \
15374 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15376 -e 's:$: $lt_compiler_flag:'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000015377 (eval echo "\"\$as_me:15377: $lt_compile\"" >&5)
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015378 (eval "$lt_compile" 2>out/conftest.err)
15379 ac_status=$?
15380 cat out/conftest.err >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000015381 echo "$as_me:15381: \$? = $ac_status" >&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15383 then
15384 # The compiler can only warn and ignore the option if not recognized
15385 # So say no if there are warnings
15386 if test ! -s out/conftest.err; then
15387 lt_cv_prog_compiler_c_o_GCJ=yes
15388 fi
15389 fi
15390 chmod u+w .
15391 $rm conftest*
15392 # SGI C++ compiler will create directory out/ii_files/ for
15393 # template instantiation
15394 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15395 $rm out/* && rmdir out
15396 cd ..
15397 rmdir conftest
15398 $rm conftest*
15399
15400fi
15401echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15402echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15403
15404
15405hard_links="nottested"
15406if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15407 # do not overwrite the value of need_locks provided by the user
15408 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15409echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15410 hard_links=yes
15411 $rm conftest*
15412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15413 touch conftest.a
15414 ln conftest.a conftest.b 2>&5 || hard_links=no
15415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15416 echo "$as_me:$LINENO: result: $hard_links" >&5
15417echo "${ECHO_T}$hard_links" >&6
15418 if test "$hard_links" = no; then
15419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15420echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15421 need_locks=warn
15422 fi
15423else
15424 need_locks=no
15425fi
15426
15427echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15428echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15429
15430 runpath_var=
15431 allow_undefined_flag_GCJ=
15432 enable_shared_with_static_runtimes_GCJ=no
15433 archive_cmds_GCJ=
15434 archive_expsym_cmds_GCJ=
15435 old_archive_From_new_cmds_GCJ=
15436 old_archive_from_expsyms_cmds_GCJ=
15437 export_dynamic_flag_spec_GCJ=
15438 whole_archive_flag_spec_GCJ=
15439 thread_safe_flag_spec_GCJ=
15440 hardcode_libdir_flag_spec_GCJ=
15441 hardcode_libdir_flag_spec_ld_GCJ=
15442 hardcode_libdir_separator_GCJ=
15443 hardcode_direct_GCJ=no
15444 hardcode_minus_L_GCJ=no
15445 hardcode_shlibpath_var_GCJ=unsupported
15446 link_all_deplibs_GCJ=unknown
15447 hardcode_automatic_GCJ=no
15448 module_cmds_GCJ=
15449 module_expsym_cmds_GCJ=
15450 always_export_symbols_GCJ=no
15451 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15452 # include_expsyms should be a list of space-separated symbols to be *always*
15453 # included in the symbol list
15454 include_expsyms_GCJ=
15455 # exclude_expsyms can be an extended regexp of symbols to exclude
15456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15458 # as well as any symbol that contains `d'.
15459 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15461 # platforms (ab)use it in PIC code, but their linkers get confused if
15462 # the symbol is explicitly referenced. Since portable code cannot
15463 # rely on this symbol name, it's probably fine to never include it in
15464 # preloaded symbol tables.
15465 extract_expsyms_cmds=
15466
15467 case $host_os in
15468 cygwin* | mingw* | pw32*)
15469 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15470 # When not using gcc, we currently assume that we are using
15471 # Microsoft Visual C++.
15472 if test "$GCC" != yes; then
15473 with_gnu_ld=no
15474 fi
15475 ;;
15476 openbsd*)
15477 with_gnu_ld=no
15478 ;;
15479 esac
15480
15481 ld_shlibs_GCJ=yes
15482 if test "$with_gnu_ld" = yes; then
15483 # If archive_cmds runs LD, not CC, wlarc should be empty
15484 wlarc='${wl}'
15485
15486 # See if GNU ld supports shared libraries.
15487 case $host_os in
15488 aix3* | aix4* | aix5*)
15489 # On AIX/PPC, the GNU linker is very broken
15490 if test "$host_cpu" != ia64; then
15491 ld_shlibs_GCJ=no
15492 cat <<EOF 1>&2
15493
15494*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15495*** to be unable to reliably create shared libraries on AIX.
15496*** Therefore, libtool is disabling shared libraries support. If you
15497*** really care for shared libraries, you may want to modify your PATH
15498*** so that a non-GNU linker is found, and then restart.
15499
15500EOF
15501 fi
15502 ;;
15503
15504 amigaos*)
15505 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)'
15506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15507 hardcode_minus_L_GCJ=yes
15508
15509 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15510 # that the semantics of dynamic libraries on AmigaOS, at least up
15511 # to version 4, is to share data among multiple programs linked
15512 # with the same dynamic library. Since this doesn't match the
15513 # behavior of shared libraries on other platforms, we can't use
15514 # them.
15515 ld_shlibs_GCJ=no
15516 ;;
15517
15518 beos*)
15519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15520 allow_undefined_flag_GCJ=unsupported
15521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15522 # support --undefined. This deserves some investigation. FIXME
15523 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15524 else
15525 ld_shlibs_GCJ=no
15526 fi
15527 ;;
15528
15529 cygwin* | mingw* | pw32*)
15530 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15531 # as there is no search path for DLLs.
15532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15533 allow_undefined_flag_GCJ=unsupported
15534 always_export_symbols_GCJ=no
15535 enable_shared_with_static_runtimes_GCJ=yes
15536 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15537
15538 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15539 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15540 # If the export-symbols file already is a .def file (1st line
15541 # is EXPORTS), use it as is; otherwise, prepend...
15542 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15543 cp $export_symbols $output_objdir/$soname.def;
15544 else
15545 echo EXPORTS > $output_objdir/$soname.def;
15546 cat $export_symbols >> $output_objdir/$soname.def;
15547 fi~
15548 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15549 else
15550 ld_shlibs=no
15551 fi
15552 ;;
15553
15554 netbsd*)
15555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15556 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15557 wlarc=
15558 else
15559 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15561 fi
15562 ;;
15563
15564 solaris* | sysv5*)
15565 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15566 ld_shlibs_GCJ=no
15567 cat <<EOF 1>&2
15568
15569*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15570*** create shared libraries on Solaris systems. Therefore, libtool
15571*** is disabling shared libraries support. We urge you to upgrade GNU
15572*** binutils to release 2.9.1 or newer. Another option is to modify
15573*** your PATH or compiler configuration so that the native linker is
15574*** used, and then restart.
15575
15576EOF
15577 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15578 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15579 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15580 else
15581 ld_shlibs_GCJ=no
15582 fi
15583 ;;
15584
15585 sunos4*)
15586 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15587 wlarc=
15588 hardcode_direct_GCJ=yes
15589 hardcode_shlibpath_var_GCJ=no
15590 ;;
15591
15592 linux*)
15593 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15594 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595 archive_cmds_GCJ="$tmp_archive_cmds"
15596 supports_anon_versioning=no
15597 case `$LD -v 2>/dev/null` in
15598 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15601 *\ 2.11.*) ;; # other 2.11 versions
15602 *) supports_anon_versioning=yes ;;
15603 esac
15604 if test $supports_anon_versioning = yes; then
15605 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15606cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15607$echo "local: *; };" >> $output_objdir/$libname.ver~
15608 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15609 else
15610 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15611 fi
15612 else
15613 ld_shlibs_GCJ=no
15614 fi
15615 ;;
15616
15617 *)
15618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15619 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15620 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15621 else
15622 ld_shlibs_GCJ=no
15623 fi
15624 ;;
15625 esac
15626
15627 if test "$ld_shlibs_GCJ" = yes; then
15628 runpath_var=LD_RUN_PATH
15629 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15630 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15631 # ancient GNU ld didn't support --whole-archive et. al.
15632 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15633 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15634 else
15635 whole_archive_flag_spec_GCJ=
15636 fi
15637 fi
15638 else
15639 # PORTME fill in a description of your system's linker (not GNU ld)
15640 case $host_os in
15641 aix3*)
15642 allow_undefined_flag_GCJ=unsupported
15643 always_export_symbols_GCJ=yes
15644 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'
15645 # Note: this linker hardcodes the directories in LIBPATH if there
15646 # are no directories specified by -L.
15647 hardcode_minus_L_GCJ=yes
15648 if test "$GCC" = yes && test -z "$link_static_flag"; then
15649 # Neither direct hardcoding nor static linking is supported with a
15650 # broken collect2.
15651 hardcode_direct_GCJ=unsupported
15652 fi
15653 ;;
15654
15655 aix4* | aix5*)
15656 if test "$host_cpu" = ia64; then
15657 # On IA64, the linker does run time linking by default, so we don't
15658 # have to do anything special.
15659 aix_use_runtimelinking=no
15660 exp_sym_flag='-Bexport'
15661 no_entry_flag=""
15662 else
15663 # If we're using GNU nm, then we don't want the "-C" option.
15664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15665 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15666 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'
15667 else
15668 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'
15669 fi
15670 aix_use_runtimelinking=no
15671
15672 # Test if we are trying to use run time linking or normal
15673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15674 # need to do runtime linking.
15675 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15676 for ld_flag in $LDFLAGS; do
15677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15678 aix_use_runtimelinking=yes
15679 break
15680 fi
15681 done
15682 esac
15683
15684 exp_sym_flag='-bexport'
15685 no_entry_flag='-bnoentry'
15686 fi
15687
15688 # When large executables or shared objects are built, AIX ld can
15689 # have problems creating the table of contents. If linking a library
15690 # or program results in "error TOC overflow" add -mminimal-toc to
15691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15693
15694 archive_cmds_GCJ=''
15695 hardcode_direct_GCJ=yes
15696 hardcode_libdir_separator_GCJ=':'
15697 link_all_deplibs_GCJ=yes
15698
15699 if test "$GCC" = yes; then
15700 case $host_os in aix4.012|aix4.012.*)
15701 # We only want to do this on AIX 4.2 and lower, the check
15702 # below for broken collect2 doesn't work under 4.3+
15703 collect2name=`${CC} -print-prog-name=collect2`
15704 if test -f "$collect2name" && \
15705 strings "$collect2name" | grep resolve_lib_name >/dev/null
15706 then
15707 # We have reworked collect2
15708 hardcode_direct_GCJ=yes
15709 else
15710 # We have old collect2
15711 hardcode_direct_GCJ=unsupported
15712 # It fails to find uninstalled libraries when the uninstalled
15713 # path is not listed in the libpath. Setting hardcode_minus_L
15714 # to unsupported forces relinking
15715 hardcode_minus_L_GCJ=yes
15716 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15717 hardcode_libdir_separator_GCJ=
15718 fi
15719 esac
15720 shared_flag='-shared'
15721 else
15722 # not using gcc
15723 if test "$host_cpu" = ia64; then
15724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15725 # chokes on -Wl,-G. The following line is correct:
15726 shared_flag='-G'
15727 else
15728 if test "$aix_use_runtimelinking" = yes; then
15729 shared_flag='${wl}-G'
15730 else
15731 shared_flag='${wl}-bM:SRE'
15732 fi
15733 fi
15734 fi
15735
15736 # It seems that -bexpall does not export symbols beginning with
15737 # underscore (_), so it is better to generate a list of symbols to export.
15738 always_export_symbols_GCJ=yes
15739 if test "$aix_use_runtimelinking" = yes; then
15740 # Warning - without using the other runtime loading flags (-brtl),
15741 # -berok will link without error, but may produce a broken library.
15742 allow_undefined_flag_GCJ='-berok'
15743 # Determine the default libpath from the value encoded in an empty executable.
15744 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000015745#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
15751
15752int
15753main ()
15754{
15755
15756 ;
15757 return 0;
15758}
15759_ACEOF
15760rm -f conftest.$ac_objext conftest$ac_exeext
15761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000015762 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015763 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000015766 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772
15773aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15774}'`
15775# Check for a 64-bit object if we didn't find anything.
15776if 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; }
15777}'`; fi
15778else
15779 echo "$as_me: failed program was:" >&5
15780sed 's/^/| /' conftest.$ac_ext >&5
15781
15782fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000015783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15785
15786 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15787 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"
15788 else
15789 if test "$host_cpu" = ia64; then
15790 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15791 allow_undefined_flag_GCJ="-z nodefs"
15792 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"
15793 else
15794 # Determine the default libpath from the value encoded in an empty executable.
15795 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000015796#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015797/* confdefs.h. */
15798_ACEOF
15799cat confdefs.h >>conftest.$ac_ext
15800cat >>conftest.$ac_ext <<_ACEOF
15801/* end confdefs.h. */
15802
15803int
15804main ()
15805{
15806
15807 ;
15808 return 0;
15809}
15810_ACEOF
15811rm -f conftest.$ac_objext conftest$ac_exeext
15812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000015813 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015814 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000015817 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823
15824aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15825}'`
15826# Check for a 64-bit object if we didn't find anything.
15827if 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; }
15828}'`; fi
15829else
15830 echo "$as_me: failed program was:" >&5
15831sed 's/^/| /' conftest.$ac_ext >&5
15832
15833fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000015834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000015835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15836
15837 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15838 # Warning - without using the other run time loading flags,
15839 # -berok will link without error, but may produce a broken library.
15840 no_undefined_flag_GCJ=' ${wl}-bernotok'
15841 allow_undefined_flag_GCJ=' ${wl}-berok'
15842 # -bexpall does not export symbols beginning with underscore (_)
15843 always_export_symbols_GCJ=yes
15844 # Exported symbols can be pulled into shared objects from archives
15845 whole_archive_flag_spec_GCJ=' '
15846 archive_cmds_need_lc_GCJ=yes
15847 # This is similar to how AIX traditionally builds it's shared libraries.
15848 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'
15849 fi
15850 fi
15851 ;;
15852
15853 amigaos*)
15854 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)'
15855 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15856 hardcode_minus_L_GCJ=yes
15857 # see comment about different semantics on the GNU ld section
15858 ld_shlibs_GCJ=no
15859 ;;
15860
15861 bsdi4*)
15862 export_dynamic_flag_spec_GCJ=-rdynamic
15863 ;;
15864
15865 cygwin* | mingw* | pw32*)
15866 # When not using gcc, we currently assume that we are using
15867 # Microsoft Visual C++.
15868 # hardcode_libdir_flag_spec is actually meaningless, as there is
15869 # no search path for DLLs.
15870 hardcode_libdir_flag_spec_GCJ=' '
15871 allow_undefined_flag_GCJ=unsupported
15872 # Tell ltmain to make .lib files, not .a files.
15873 libext=lib
15874 # Tell ltmain to make .dll files, not .so files.
15875 shrext=".dll"
15876 # FIXME: Setting linknames here is a bad hack.
15877 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15878 # The linker will automatically build a .lib file if we build a DLL.
15879 old_archive_From_new_cmds_GCJ='true'
15880 # FIXME: Should let the user specify the lib program.
15881 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15882 fix_srcfile_path='`cygpath -w "$srcfile"`'
15883 enable_shared_with_static_runtimes_GCJ=yes
15884 ;;
15885
15886 darwin* | rhapsody*)
15887 if test "$GXX" = yes ; then
15888 archive_cmds_need_lc_GCJ=no
15889 case "$host_os" in
15890 rhapsody* | darwin1.[012])
15891 allow_undefined_flag_GCJ='-undefined suppress'
15892 ;;
15893 *) # Darwin 1.3 on
15894 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15895 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15896 else
15897 case ${MACOSX_DEPLOYMENT_TARGET} in
15898 10.[012])
15899 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15900 ;;
15901 10.*)
15902 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15903 ;;
15904 esac
15905 fi
15906 ;;
15907 esac
15908 lt_int_apple_cc_single_mod=no
15909 output_verbose_link_cmd='echo'
15910 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15911 lt_int_apple_cc_single_mod=yes
15912 fi
15913 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15914 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15915 else
15916 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'
15917 fi
15918 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15919 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15920 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15921 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}'
15922 else
15923 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}'
15924 fi
15925 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}'
15926 hardcode_direct_GCJ=no
15927 hardcode_automatic_GCJ=yes
15928 hardcode_shlibpath_var_GCJ=unsupported
15929 whole_archive_flag_spec_GCJ='-all_load $convenience'
15930 link_all_deplibs_GCJ=yes
15931 else
15932 ld_shlibs_GCJ=no
15933 fi
15934 ;;
15935
15936 dgux*)
15937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15939 hardcode_shlibpath_var_GCJ=no
15940 ;;
15941
15942 freebsd1*)
15943 ld_shlibs_GCJ=no
15944 ;;
15945
15946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15947 # support. Future versions do this automatically, but an explicit c++rt0.o
15948 # does not break anything, and helps significantly (at the cost of a little
15949 # extra space).
15950 freebsd2.2*)
15951 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15952 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15953 hardcode_direct_GCJ=yes
15954 hardcode_shlibpath_var_GCJ=no
15955 ;;
15956
15957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15958 freebsd2*)
15959 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15960 hardcode_direct_GCJ=yes
15961 hardcode_minus_L_GCJ=yes
15962 hardcode_shlibpath_var_GCJ=no
15963 ;;
15964
15965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15966 freebsd* | kfreebsd*-gnu)
15967 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15968 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15969 hardcode_direct_GCJ=yes
15970 hardcode_shlibpath_var_GCJ=no
15971 ;;
15972
15973 hpux9*)
15974 if test "$GCC" = yes; then
15975 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'
15976 else
15977 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'
15978 fi
15979 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15980 hardcode_libdir_separator_GCJ=:
15981 hardcode_direct_GCJ=yes
15982
15983 # hardcode_minus_L: Not really in the search PATH,
15984 # but as the default location of the library.
15985 hardcode_minus_L_GCJ=yes
15986 export_dynamic_flag_spec_GCJ='${wl}-E'
15987 ;;
15988
15989 hpux10* | hpux11*)
15990 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15991 case "$host_cpu" in
15992 hppa*64*|ia64*)
15993 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15994 ;;
15995 *)
15996 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15997 ;;
15998 esac
15999 else
16000 case "$host_cpu" in
16001 hppa*64*|ia64*)
16002 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16003 ;;
16004 *)
16005 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16006 ;;
16007 esac
16008 fi
16009 if test "$with_gnu_ld" = no; then
16010 case "$host_cpu" in
16011 hppa*64*)
16012 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16013 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16014 hardcode_libdir_separator_GCJ=:
16015 hardcode_direct_GCJ=no
16016 hardcode_shlibpath_var_GCJ=no
16017 ;;
16018 ia64*)
16019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020 hardcode_direct_GCJ=no
16021 hardcode_shlibpath_var_GCJ=no
16022
16023 # hardcode_minus_L: Not really in the search PATH,
16024 # but as the default location of the library.
16025 hardcode_minus_L_GCJ=yes
16026 ;;
16027 *)
16028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16029 hardcode_libdir_separator_GCJ=:
16030 hardcode_direct_GCJ=yes
16031 export_dynamic_flag_spec_GCJ='${wl}-E'
16032
16033 # hardcode_minus_L: Not really in the search PATH,
16034 # but as the default location of the library.
16035 hardcode_minus_L_GCJ=yes
16036 ;;
16037 esac
16038 fi
16039 ;;
16040
16041 irix5* | irix6* | nonstopux*)
16042 if test "$GCC" = yes; then
16043 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'
16044 else
16045 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'
16046 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16047 fi
16048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16049 hardcode_libdir_separator_GCJ=:
16050 link_all_deplibs_GCJ=yes
16051 ;;
16052
16053 netbsd*)
16054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16055 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16056 else
16057 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16058 fi
16059 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16060 hardcode_direct_GCJ=yes
16061 hardcode_shlibpath_var_GCJ=no
16062 ;;
16063
16064 newsos6)
16065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_direct_GCJ=yes
16067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16068 hardcode_libdir_separator_GCJ=:
16069 hardcode_shlibpath_var_GCJ=no
16070 ;;
16071
16072 openbsd*)
16073 hardcode_direct_GCJ=yes
16074 hardcode_shlibpath_var_GCJ=no
16075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16076 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16077 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16078 export_dynamic_flag_spec_GCJ='${wl}-E'
16079 else
16080 case $host_os in
16081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16084 ;;
16085 *)
16086 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16088 ;;
16089 esac
16090 fi
16091 ;;
16092
16093 os2*)
16094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16095 hardcode_minus_L_GCJ=yes
16096 allow_undefined_flag_GCJ=unsupported
16097 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'
16098 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16099 ;;
16100
16101 osf3*)
16102 if test "$GCC" = yes; then
16103 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16104 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'
16105 else
16106 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16107 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'
16108 fi
16109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16110 hardcode_libdir_separator_GCJ=:
16111 ;;
16112
16113 osf4* | osf5*) # as osf3* with the addition of -msym flag
16114 if test "$GCC" = yes; then
16115 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16116 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'
16117 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16118 else
16119 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16120 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'
16121 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~
16122 $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'
16123
16124 # Both c and cxx compiler support -rpath directly
16125 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16126 fi
16127 hardcode_libdir_separator_GCJ=:
16128 ;;
16129
16130 sco3.2v5*)
16131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132 hardcode_shlibpath_var_GCJ=no
16133 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16134 runpath_var=LD_RUN_PATH
16135 hardcode_runpath_var=yes
16136 ;;
16137
16138 solaris*)
16139 no_undefined_flag_GCJ=' -z text'
16140 if test "$GCC" = yes; then
16141 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16142 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16143 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16144 else
16145 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16148 fi
16149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16150 hardcode_shlibpath_var_GCJ=no
16151 case $host_os in
16152 solaris2.[0-5] | solaris2.[0-5].*) ;;
16153 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16154 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16155 esac
16156 link_all_deplibs_GCJ=yes
16157 ;;
16158
16159 sunos4*)
16160 if test "x$host_vendor" = xsequent; then
16161 # Use $CC to link under sequent, because it throws in some extra .o
16162 # files that make .init and .fini sections work.
16163 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16164 else
16165 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16166 fi
16167 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16168 hardcode_direct_GCJ=yes
16169 hardcode_minus_L_GCJ=yes
16170 hardcode_shlibpath_var_GCJ=no
16171 ;;
16172
16173 sysv4)
16174 case $host_vendor in
16175 sni)
16176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16177 hardcode_direct_GCJ=yes # is this really true???
16178 ;;
16179 siemens)
16180 ## LD is ld it makes a PLAMLIB
16181 ## CC just makes a GrossModule.
16182 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16183 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16184 hardcode_direct_GCJ=no
16185 ;;
16186 motorola)
16187 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16188 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16189 ;;
16190 esac
16191 runpath_var='LD_RUN_PATH'
16192 hardcode_shlibpath_var_GCJ=no
16193 ;;
16194
16195 sysv4.3*)
16196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_shlibpath_var_GCJ=no
16198 export_dynamic_flag_spec_GCJ='-Bexport'
16199 ;;
16200
16201 sysv4*MP*)
16202 if test -d /usr/nec; then
16203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16204 hardcode_shlibpath_var_GCJ=no
16205 runpath_var=LD_RUN_PATH
16206 hardcode_runpath_var=yes
16207 ld_shlibs_GCJ=yes
16208 fi
16209 ;;
16210
16211 sysv4.2uw2*)
16212 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16213 hardcode_direct_GCJ=yes
16214 hardcode_minus_L_GCJ=no
16215 hardcode_shlibpath_var_GCJ=no
16216 hardcode_runpath_var=yes
16217 runpath_var=LD_RUN_PATH
16218 ;;
16219
16220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16221 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16222 if test "$GCC" = yes; then
16223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 else
16225 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 fi
16227 runpath_var='LD_RUN_PATH'
16228 hardcode_shlibpath_var_GCJ=no
16229 ;;
16230
16231 sysv5*)
16232 no_undefined_flag_GCJ=' -z text'
16233 # $CC -shared without GNU ld will not create a library from C++
16234 # object files and a static libstdc++, better avoid it by now
16235 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16236 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16238 hardcode_libdir_flag_spec_GCJ=
16239 hardcode_shlibpath_var_GCJ=no
16240 runpath_var='LD_RUN_PATH'
16241 ;;
16242
16243 uts4*)
16244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16246 hardcode_shlibpath_var_GCJ=no
16247 ;;
16248
16249 *)
16250 ld_shlibs_GCJ=no
16251 ;;
16252 esac
16253 fi
16254
16255echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16256echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16257test "$ld_shlibs_GCJ" = no && can_build_shared=no
16258
16259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16260if test "$GCC" = yes; then
16261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16262fi
16263
16264#
16265# Do we need to explicitly link libc?
16266#
16267case "x$archive_cmds_need_lc_GCJ" in
16268x|xyes)
16269 # Assume -lc should be added
16270 archive_cmds_need_lc_GCJ=yes
16271
16272 if test "$enable_shared" = yes && test "$GCC" = yes; then
16273 case $archive_cmds_GCJ in
16274 *'~'*)
16275 # FIXME: we may have to deal with multi-command sequences.
16276 ;;
16277 '$CC '*)
16278 # Test whether the compiler implicitly links with -lc since on some
16279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16280 # to ld, don't add -lc before -lgcc.
16281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16282echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16283 $rm conftest*
16284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16285
16286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } 2>conftest.err; then
16291 soname=conftest
16292 lib=conftest
16293 libobjs=conftest.$ac_objext
16294 deplibs=
16295 wl=$lt_prog_compiler_wl_GCJ
16296 compiler_flags=-v
16297 linker_flags=-v
16298 verstring=
16299 output_objdir=.
16300 libname=conftest
16301 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16302 allow_undefined_flag_GCJ=
16303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16304 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); }
16308 then
16309 archive_cmds_need_lc_GCJ=no
16310 else
16311 archive_cmds_need_lc_GCJ=yes
16312 fi
16313 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16314 else
16315 cat conftest.err 1>&5
16316 fi
16317 $rm conftest*
16318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16319echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16320 ;;
16321 esac
16322 fi
16323 ;;
16324esac
16325
16326echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16327echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16328library_names_spec=
16329libname_spec='lib$name'
16330soname_spec=
16331shrext=".so"
16332postinstall_cmds=
16333postuninstall_cmds=
16334finish_cmds=
16335finish_eval=
16336shlibpath_var=
16337shlibpath_overrides_runpath=unknown
16338version_type=none
16339dynamic_linker="$host_os ld.so"
16340sys_lib_dlsearch_path_spec="/lib /usr/lib"
16341if test "$GCC" = yes; then
16342 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16343 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16344 # if the path contains ";" then we assume it to be the separator
16345 # otherwise default to the standard path separator (i.e. ":") - it is
16346 # assumed that no part of a normal pathname contains ";" but that should
16347 # okay in the real world where ";" in dirpaths is itself problematic.
16348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16349 else
16350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16351 fi
16352else
16353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16354fi
16355need_lib_prefix=unknown
16356hardcode_into_libs=no
16357
16358# when you set need_version to no, make sure it does not cause -set_version
16359# flags to be left without arguments
16360need_version=unknown
16361
16362case $host_os in
16363aix3*)
16364 version_type=linux
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16366 shlibpath_var=LIBPATH
16367
16368 # AIX 3 has no versioning support, so we append a major version to the name.
16369 soname_spec='${libname}${release}${shared_ext}$major'
16370 ;;
16371
16372aix4* | aix5*)
16373 version_type=linux
16374 need_lib_prefix=no
16375 need_version=no
16376 hardcode_into_libs=yes
16377 if test "$host_cpu" = ia64; then
16378 # AIX 5 supports IA64
16379 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 else
16382 # With GCC up to 2.95.x, collect2 would create an import file
16383 # for dependence libraries. The import file would start with
16384 # the line `#! .'. This would cause the generated library to
16385 # depend on `.', always an invalid library. This was fixed in
16386 # development snapshots of GCC prior to 3.0.
16387 case $host_os in
16388 aix4 | aix4.[01] | aix4.[01].*)
16389 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16390 echo ' yes '
16391 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16392 :
16393 else
16394 can_build_shared=no
16395 fi
16396 ;;
16397 esac
16398 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16399 # soname into executable. Probably we can add versioning support to
16400 # collect2, so additional links can be useful in future.
16401 if test "$aix_use_runtimelinking" = yes; then
16402 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16403 # instead of lib<name>.a to let people know that these are not
16404 # typical AIX shared libraries.
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 else
16407 # We preserve .a as extension for shared libraries through AIX4.2
16408 # and later when we are not doing run time linking.
16409 library_names_spec='${libname}${release}.a $libname.a'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 fi
16412 shlibpath_var=LIBPATH
16413 fi
16414 ;;
16415
16416amigaos*)
16417 library_names_spec='$libname.ixlibrary $libname.a'
16418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16419 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'
16420 ;;
16421
16422beos*)
16423 library_names_spec='${libname}${shared_ext}'
16424 dynamic_linker="$host_os ld.so"
16425 shlibpath_var=LIBRARY_PATH
16426 ;;
16427
16428bsdi4*)
16429 version_type=linux
16430 need_version=no
16431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16432 soname_spec='${libname}${release}${shared_ext}$major'
16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16436 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16437 # the default ld.so.conf also contains /usr/contrib/lib and
16438 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16439 # libtool to hard-code these into programs
16440 ;;
16441
16442cygwin* | mingw* | pw32*)
16443 version_type=windows
16444 shrext=".dll"
16445 need_version=no
16446 need_lib_prefix=no
16447
16448 case $GCC,$host_os in
16449 yes,cygwin* | yes,mingw* | yes,pw32*)
16450 library_names_spec='$libname.dll.a'
16451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16452 postinstall_cmds='base_file=`basename \${file}`~
16453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16454 dldir=$destdir/`dirname \$dlpath`~
16455 test -d \$dldir || mkdir -p \$dldir~
16456 $install_prog $dir/$dlname \$dldir/$dlname'
16457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16458 dlpath=$dir/\$dldll~
16459 $rm \$dlpath'
16460 shlibpath_overrides_runpath=yes
16461
16462 case $host_os in
16463 cygwin*)
16464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16467 ;;
16468 mingw*)
16469 # MinGW DLLs use traditional 'lib' prefix
16470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16473 # It is most probably a Windows format PATH printed by
16474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16475 # path with ; separators, and with drive letters. We can handle the
16476 # drive letters (cygwin fileutils understands them), so leave them,
16477 # especially as we might pass files found there to a mingw objdump,
16478 # which wouldn't understand a cygwinified path. Ahh.
16479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16480 else
16481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16482 fi
16483 ;;
16484 pw32*)
16485 # pw32 DLLs use 'pw' prefix rather than 'lib'
16486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16487 ;;
16488 esac
16489 ;;
16490
16491 *)
16492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16493 ;;
16494 esac
16495 dynamic_linker='Win32 ld.exe'
16496 # FIXME: first we should search . and the directory the executable is in
16497 shlibpath_var=PATH
16498 ;;
16499
16500darwin* | rhapsody*)
16501 dynamic_linker="$host_os dyld"
16502 version_type=darwin
16503 need_lib_prefix=no
16504 need_version=no
16505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16506 soname_spec='${libname}${release}${major}$shared_ext'
16507 shlibpath_overrides_runpath=yes
16508 shlibpath_var=DYLD_LIBRARY_PATH
16509 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16510 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16511 if test "$GCC" = yes; then
16512 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"`
16513 else
16514 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16515 fi
16516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16517 ;;
16518
16519dgux*)
16520 version_type=linux
16521 need_lib_prefix=no
16522 need_version=no
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 ;;
16527
16528freebsd1*)
16529 dynamic_linker=no
16530 ;;
16531
16532kfreebsd*-gnu)
16533 version_type=linux
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=no
16540 hardcode_into_libs=yes
16541 dynamic_linker='GNU ld.so'
16542 ;;
16543
16544freebsd*)
16545 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16546 version_type=freebsd-$objformat
16547 case $version_type in
16548 freebsd-elf*)
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550 need_version=no
16551 need_lib_prefix=no
16552 ;;
16553 freebsd-*)
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16555 need_version=yes
16556 ;;
16557 esac
16558 shlibpath_var=LD_LIBRARY_PATH
16559 case $host_os in
16560 freebsd2*)
16561 shlibpath_overrides_runpath=yes
16562 ;;
16563 freebsd3.01* | freebsdelf3.01*)
16564 shlibpath_overrides_runpath=yes
16565 hardcode_into_libs=yes
16566 ;;
16567 *) # from 3.2 on
16568 shlibpath_overrides_runpath=no
16569 hardcode_into_libs=yes
16570 ;;
16571 esac
16572 ;;
16573
16574gnu*)
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 hardcode_into_libs=yes
16582 ;;
16583
16584hpux9* | hpux10* | hpux11*)
16585 # Give a soname corresponding to the major version so that dld.sl refuses to
16586 # link against other versions.
16587 version_type=sunos
16588 need_lib_prefix=no
16589 need_version=no
16590 case "$host_cpu" in
16591 ia64*)
16592 shrext='.so'
16593 hardcode_into_libs=yes
16594 dynamic_linker="$host_os dld.so"
16595 shlibpath_var=LD_LIBRARY_PATH
16596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 if test "X$HPUX_IA64_MODE" = X32; then
16600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16601 else
16602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16603 fi
16604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16605 ;;
16606 hppa*64*)
16607 shrext='.sl'
16608 hardcode_into_libs=yes
16609 dynamic_linker="$host_os dld.sl"
16610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16616 ;;
16617 *)
16618 shrext='.sl'
16619 dynamic_linker="$host_os dld.sl"
16620 shlibpath_var=SHLIB_PATH
16621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 ;;
16625 esac
16626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16627 postinstall_cmds='chmod 555 $lib'
16628 ;;
16629
16630irix5* | irix6* | nonstopux*)
16631 case $host_os in
16632 nonstopux*) version_type=nonstopux ;;
16633 *)
16634 if test "$lt_cv_prog_gnu_ld" = yes; then
16635 version_type=linux
16636 else
16637 version_type=irix
16638 fi ;;
16639 esac
16640 need_lib_prefix=no
16641 need_version=no
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16644 case $host_os in
16645 irix5* | nonstopux*)
16646 libsuff= shlibsuff=
16647 ;;
16648 *)
16649 case $LD in # libtool.m4 will add one of these switches to LD
16650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16651 libsuff= shlibsuff= libmagic=32-bit;;
16652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16653 libsuff=32 shlibsuff=N32 libmagic=N32;;
16654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16656 *) libsuff= shlibsuff= libmagic=never-match;;
16657 esac
16658 ;;
16659 esac
16660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16661 shlibpath_overrides_runpath=no
16662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16664 hardcode_into_libs=yes
16665 ;;
16666
16667# No shared lib support for Linux oldld, aout, or coff.
16668linux*oldld* | linux*aout* | linux*coff*)
16669 dynamic_linker=no
16670 ;;
16671
16672# This must be Linux ELF.
16673linux*)
16674 version_type=linux
16675 need_lib_prefix=no
16676 need_version=no
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16680 shlibpath_var=LD_LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 # This implies no fast_install, which is unacceptable.
16683 # Some rework will be needed to allow for fast_install
16684 # before this can be enabled.
16685 hardcode_into_libs=yes
16686
16687 # /usr/X11R6/lib and /usr/local/lib are common enough...
16688 sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
16689
16690 # We used to test for /lib/ld.so.1 and disable shared libraries on
16691 # powerpc, because MkLinux only supported shared libraries with the
16692 # GNU dynamic linker. Since this was broken with cross compilers,
16693 # most powerpc-linux boxes support dynamic linking these days and
16694 # people can always --disable-shared, the test was removed, and we
16695 # assume the GNU/Linux dynamic linker is in use.
16696 dynamic_linker='GNU/Linux ld.so'
16697 ;;
16698
16699knetbsd*-gnu)
16700 version_type=linux
16701 need_lib_prefix=no
16702 need_version=no
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=no
16707 hardcode_into_libs=yes
16708 dynamic_linker='GNU ld.so'
16709 ;;
16710
16711netbsd*)
16712 version_type=sunos
16713 need_lib_prefix=no
16714 need_version=no
16715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16718 dynamic_linker='NetBSD (a.out) ld.so'
16719 else
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16721 soname_spec='${libname}${release}${shared_ext}$major'
16722 dynamic_linker='NetBSD ld.elf_so'
16723 fi
16724 shlibpath_var=LD_LIBRARY_PATH
16725 shlibpath_overrides_runpath=yes
16726 hardcode_into_libs=yes
16727 ;;
16728
16729newsos6)
16730 version_type=linux
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 shlibpath_overrides_runpath=yes
16734 ;;
16735
16736nto-qnx*)
16737 version_type=linux
16738 need_lib_prefix=no
16739 need_version=no
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741 soname_spec='${libname}${release}${shared_ext}$major'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=yes
16744 ;;
16745
16746openbsd*)
16747 version_type=sunos
16748 need_lib_prefix=no
16749 need_version=yes
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16754 case $host_os in
16755 openbsd2.[89] | openbsd2.[89].*)
16756 shlibpath_overrides_runpath=no
16757 ;;
16758 *)
16759 shlibpath_overrides_runpath=yes
16760 ;;
16761 esac
16762 else
16763 shlibpath_overrides_runpath=yes
16764 fi
16765 ;;
16766
16767os2*)
16768 libname_spec='$name'
16769 shrext=".dll"
16770 need_lib_prefix=no
16771 library_names_spec='$libname${shared_ext} $libname.a'
16772 dynamic_linker='OS/2 ld.exe'
16773 shlibpath_var=LIBPATH
16774 ;;
16775
16776osf3* | osf4* | osf5*)
16777 version_type=osf
16778 need_lib_prefix=no
16779 need_version=no
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16782 shlibpath_var=LD_LIBRARY_PATH
16783 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16784 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16785 ;;
16786
16787sco3.2v5*)
16788 version_type=osf
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 ;;
16793
16794solaris*)
16795 version_type=linux
16796 need_lib_prefix=no
16797 need_version=no
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath=yes
16802 hardcode_into_libs=yes
16803 # ldd complains unless libraries are executable
16804 postinstall_cmds='chmod +x $lib'
16805 ;;
16806
16807sunos4*)
16808 version_type=sunos
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=yes
16813 if test "$with_gnu_ld" = yes; then
16814 need_lib_prefix=no
16815 fi
16816 need_version=yes
16817 ;;
16818
16819sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16820 version_type=linux
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 case $host_vendor in
16825 sni)
16826 shlibpath_overrides_runpath=no
16827 need_lib_prefix=no
16828 export_dynamic_flag_spec='${wl}-Blargedynsym'
16829 runpath_var=LD_RUN_PATH
16830 ;;
16831 siemens)
16832 need_lib_prefix=no
16833 ;;
16834 motorola)
16835 need_lib_prefix=no
16836 need_version=no
16837 shlibpath_overrides_runpath=no
16838 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16839 ;;
16840 esac
16841 ;;
16842
16843sysv4*MP*)
16844 if test -d /usr/nec ;then
16845 version_type=linux
16846 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16847 soname_spec='$libname${shared_ext}.$major'
16848 shlibpath_var=LD_LIBRARY_PATH
16849 fi
16850 ;;
16851
16852uts4*)
16853 version_type=linux
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16855 soname_spec='${libname}${release}${shared_ext}$major'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 ;;
16858
16859*)
16860 dynamic_linker=no
16861 ;;
16862esac
16863echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16864echo "${ECHO_T}$dynamic_linker" >&6
16865test "$dynamic_linker" = no && can_build_shared=no
16866
16867echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16868echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16869hardcode_action_GCJ=
16870if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16871 test -n "$runpath_var GCJ" || \
16872 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16873
16874 # We can hardcode non-existant directories.
16875 if test "$hardcode_direct_GCJ" != no &&
16876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16877 # have to relink, otherwise we might link with an installed library
16878 # when we should be linking with a yet-to-be-installed one
16879 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16880 test "$hardcode_minus_L_GCJ" != no; then
16881 # Linking always hardcodes the temporary library directory.
16882 hardcode_action_GCJ=relink
16883 else
16884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16885 hardcode_action_GCJ=immediate
16886 fi
16887else
16888 # We cannot hardcode anything, or else we can only hardcode existing
16889 # directories.
16890 hardcode_action_GCJ=unsupported
16891fi
16892echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16893echo "${ECHO_T}$hardcode_action_GCJ" >&6
16894
16895if test "$hardcode_action_GCJ" = relink; then
16896 # Fast installation is not supported
16897 enable_fast_install=no
16898elif test "$shlibpath_overrides_runpath" = yes ||
16899 test "$enable_shared" = no; then
16900 # Fast installation is not necessary
16901 enable_fast_install=needless
16902fi
16903
16904striplib=
16905old_striplib=
16906echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16907echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16908if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16909 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16910 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16911 echo "$as_me:$LINENO: result: yes" >&5
16912echo "${ECHO_T}yes" >&6
16913else
16914# FIXME - insert some real tests, host_os isn't really good enough
16915 case $host_os in
16916 darwin*)
16917 if test -n "$STRIP" ; then
16918 striplib="$STRIP -x"
16919 echo "$as_me:$LINENO: result: yes" >&5
16920echo "${ECHO_T}yes" >&6
16921 else
16922 echo "$as_me:$LINENO: result: no" >&5
16923echo "${ECHO_T}no" >&6
16924fi
16925 ;;
16926 *)
16927 echo "$as_me:$LINENO: result: no" >&5
16928echo "${ECHO_T}no" >&6
16929 ;;
16930 esac
16931fi
16932
16933if test "x$enable_dlopen" != xyes; then
16934 enable_dlopen=unknown
16935 enable_dlopen_self=unknown
16936 enable_dlopen_self_static=unknown
16937else
16938 lt_cv_dlopen=no
16939 lt_cv_dlopen_libs=
16940
16941 case $host_os in
16942 beos*)
16943 lt_cv_dlopen="load_add_on"
16944 lt_cv_dlopen_libs=
16945 lt_cv_dlopen_self=yes
16946 ;;
16947
16948 mingw* | pw32*)
16949 lt_cv_dlopen="LoadLibrary"
16950 lt_cv_dlopen_libs=
16951 ;;
16952
16953 cygwin*)
16954 lt_cv_dlopen="dlopen"
16955 lt_cv_dlopen_libs=
16956 ;;
16957
16958 darwin*)
16959 # if libdl is installed we need to link against it
16960 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16961echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16962if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964else
16965 ac_check_lib_save_LIBS=$LIBS
16966LIBS="-ldl $LIBS"
16967cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000016968#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974
16975/* Override any gcc2 internal prototype to avoid an error. */
16976#ifdef __cplusplus
16977extern "C"
16978#endif
16979/* We use char because int might match the return type of a gcc2
16980 builtin and then its argument prototype would still apply. */
16981char dlopen ();
16982int
16983main ()
16984{
16985dlopen ();
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext conftest$ac_exeext
16991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000016992 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016993 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000016996 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000016997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998 (eval $ac_try) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 ac_cv_lib_dl_dlopen=yes
17003else
17004 echo "$as_me: failed program was:" >&5
17005sed 's/^/| /' conftest.$ac_ext >&5
17006
17007ac_cv_lib_dl_dlopen=no
17008fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017010LIBS=$ac_check_lib_save_LIBS
17011fi
17012echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17013echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17014if test $ac_cv_lib_dl_dlopen = yes; then
17015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17016else
17017
17018 lt_cv_dlopen="dyld"
17019 lt_cv_dlopen_libs=
17020 lt_cv_dlopen_self=yes
17021
17022fi
17023
17024 ;;
17025
17026 *)
17027 echo "$as_me:$LINENO: checking for shl_load" >&5
17028echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17029if test "${ac_cv_func_shl_load+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017033#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017039/* System header to define __stub macros and hopefully few prototypes,
17040 which can conflict with char shl_load (); below.
17041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017043#ifdef __STDC__
17044# include <limits.h>
17045#else
17046# include <assert.h>
17047#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017048/* Override any gcc2 internal prototype to avoid an error. */
17049#ifdef __cplusplus
17050extern "C"
17051{
17052#endif
17053/* We use char because int might match the return type of a gcc2
17054 builtin and then its argument prototype would still apply. */
17055char shl_load ();
17056/* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059#if defined (__stub_shl_load) || defined (__stub___shl_load)
17060choke me
17061#else
17062char (*f) () = shl_load;
17063#endif
17064#ifdef __cplusplus
17065}
17066#endif
17067
17068int
17069main ()
17070{
17071return f != shl_load;
17072 ;
17073 return 0;
17074}
17075_ACEOF
17076rm -f conftest.$ac_objext conftest$ac_exeext
17077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000017078 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017079 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000017082 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_cv_func_shl_load=yes
17089else
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093ac_cv_func_shl_load=no
17094fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017096fi
17097echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17098echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17099if test $ac_cv_func_shl_load = yes; then
17100 lt_cv_dlopen="shl_load"
17101else
17102 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17103echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17104if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17106else
17107 ac_check_lib_save_LIBS=$LIBS
17108LIBS="-ldld $LIBS"
17109cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017110#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
17116
17117/* Override any gcc2 internal prototype to avoid an error. */
17118#ifdef __cplusplus
17119extern "C"
17120#endif
17121/* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17123char shl_load ();
17124int
17125main ()
17126{
17127shl_load ();
17128 ;
17129 return 0;
17130}
17131_ACEOF
17132rm -f conftest.$ac_objext conftest$ac_exeext
17133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000017134 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017135 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000017138 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_lib_dld_shl_load=yes
17145else
17146 echo "$as_me: failed program was:" >&5
17147sed 's/^/| /' conftest.$ac_ext >&5
17148
17149ac_cv_lib_dld_shl_load=no
17150fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017152LIBS=$ac_check_lib_save_LIBS
17153fi
17154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17156if test $ac_cv_lib_dld_shl_load = yes; then
17157 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17158else
17159 echo "$as_me:$LINENO: checking for dlopen" >&5
17160echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17161if test "${ac_cv_func_dlopen+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163else
17164 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017165#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017166/* confdefs.h. */
17167_ACEOF
17168cat confdefs.h >>conftest.$ac_ext
17169cat >>conftest.$ac_ext <<_ACEOF
17170/* end confdefs.h. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017171/* System header to define __stub macros and hopefully few prototypes,
17172 which can conflict with char dlopen (); below.
17173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17174 <limits.h> exists even on freestanding compilers. */
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017175#ifdef __STDC__
17176# include <limits.h>
17177#else
17178# include <assert.h>
17179#endif
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017180/* Override any gcc2 internal prototype to avoid an error. */
17181#ifdef __cplusplus
17182extern "C"
17183{
17184#endif
17185/* We use char because int might match the return type of a gcc2
17186 builtin and then its argument prototype would still apply. */
17187char dlopen ();
17188/* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191#if defined (__stub_dlopen) || defined (__stub___dlopen)
17192choke me
17193#else
17194char (*f) () = dlopen;
17195#endif
17196#ifdef __cplusplus
17197}
17198#endif
17199
17200int
17201main ()
17202{
17203return f != dlopen;
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext conftest$ac_exeext
17209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000017210 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017211 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000017214 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; }; then
17220 ac_cv_func_dlopen=yes
17221else
17222 echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225ac_cv_func_dlopen=no
17226fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017228fi
17229echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17230echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17231if test $ac_cv_func_dlopen = yes; then
17232 lt_cv_dlopen="dlopen"
17233else
17234 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17235echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17236if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238else
17239 ac_check_lib_save_LIBS=$LIBS
17240LIBS="-ldl $LIBS"
17241cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017242#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017243/* confdefs.h. */
17244_ACEOF
17245cat confdefs.h >>conftest.$ac_ext
17246cat >>conftest.$ac_ext <<_ACEOF
17247/* end confdefs.h. */
17248
17249/* Override any gcc2 internal prototype to avoid an error. */
17250#ifdef __cplusplus
17251extern "C"
17252#endif
17253/* We use char because int might match the return type of a gcc2
17254 builtin and then its argument prototype would still apply. */
17255char dlopen ();
17256int
17257main ()
17258{
17259dlopen ();
17260 ;
17261 return 0;
17262}
17263_ACEOF
17264rm -f conftest.$ac_objext conftest$ac_exeext
17265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000017266 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017267 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000017270 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_cv_lib_dl_dlopen=yes
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281ac_cv_lib_dl_dlopen=no
17282fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017284LIBS=$ac_check_lib_save_LIBS
17285fi
17286echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17287echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17288if test $ac_cv_lib_dl_dlopen = yes; then
17289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17290else
17291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17292echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17293if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296 ac_check_lib_save_LIBS=$LIBS
17297LIBS="-lsvld $LIBS"
17298cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017299#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017300/* confdefs.h. */
17301_ACEOF
17302cat confdefs.h >>conftest.$ac_ext
17303cat >>conftest.$ac_ext <<_ACEOF
17304/* end confdefs.h. */
17305
17306/* Override any gcc2 internal prototype to avoid an error. */
17307#ifdef __cplusplus
17308extern "C"
17309#endif
17310/* We use char because int might match the return type of a gcc2
17311 builtin and then its argument prototype would still apply. */
17312char dlopen ();
17313int
17314main ()
17315{
17316dlopen ();
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321rm -f conftest.$ac_objext conftest$ac_exeext
17322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000017323 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017324 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000017327 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_lib_svld_dlopen=yes
17334else
17335 echo "$as_me: failed program was:" >&5
17336sed 's/^/| /' conftest.$ac_ext >&5
17337
17338ac_cv_lib_svld_dlopen=no
17339fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017341LIBS=$ac_check_lib_save_LIBS
17342fi
17343echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17344echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17345if test $ac_cv_lib_svld_dlopen = yes; then
17346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17347else
17348 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17349echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17350if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352else
17353 ac_check_lib_save_LIBS=$LIBS
17354LIBS="-ldld $LIBS"
17355cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017356#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017357/* confdefs.h. */
17358_ACEOF
17359cat confdefs.h >>conftest.$ac_ext
17360cat >>conftest.$ac_ext <<_ACEOF
17361/* end confdefs.h. */
17362
17363/* Override any gcc2 internal prototype to avoid an error. */
17364#ifdef __cplusplus
17365extern "C"
17366#endif
17367/* We use char because int might match the return type of a gcc2
17368 builtin and then its argument prototype would still apply. */
17369char dld_link ();
17370int
17371main ()
17372{
17373dld_link ();
17374 ;
17375 return 0;
17376}
17377_ACEOF
17378rm -f conftest.$ac_objext conftest$ac_exeext
17379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000017380 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017381 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000017384 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17390 ac_cv_lib_dld_dld_link=yes
17391else
17392 echo "$as_me: failed program was:" >&5
17393sed 's/^/| /' conftest.$ac_ext >&5
17394
17395ac_cv_lib_dld_dld_link=no
17396fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000017397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017398LIBS=$ac_check_lib_save_LIBS
17399fi
17400echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17401echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17402if test $ac_cv_lib_dld_dld_link = yes; then
17403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17404fi
17405
17406
17407fi
17408
17409
17410fi
17411
17412
17413fi
17414
17415
17416fi
17417
17418
17419fi
17420
17421 ;;
17422 esac
17423
17424 if test "x$lt_cv_dlopen" != xno; then
17425 enable_dlopen=yes
17426 else
17427 enable_dlopen=no
17428 fi
17429
17430 case $lt_cv_dlopen in
17431 dlopen)
17432 save_CPPFLAGS="$CPPFLAGS"
17433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17434
17435 save_LDFLAGS="$LDFLAGS"
17436 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17437
17438 save_LIBS="$LIBS"
17439 LIBS="$lt_cv_dlopen_libs $LIBS"
17440
17441 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17442echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17443if test "${lt_cv_dlopen_self+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446 if test "$cross_compiling" = yes; then :
17447 lt_cv_dlopen_self=cross
17448else
17449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17450 lt_status=$lt_dlunknown
17451 cat > conftest.$ac_ext <<EOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017452#line 17452 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017453#include "confdefs.h"
17454
17455#if HAVE_DLFCN_H
17456#include <dlfcn.h>
17457#endif
17458
17459#include <stdio.h>
17460
17461#ifdef RTLD_GLOBAL
17462# define LT_DLGLOBAL RTLD_GLOBAL
17463#else
17464# ifdef DL_GLOBAL
17465# define LT_DLGLOBAL DL_GLOBAL
17466# else
17467# define LT_DLGLOBAL 0
17468# endif
17469#endif
17470
17471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17472 find out it does not work in some platform. */
17473#ifndef LT_DLLAZY_OR_NOW
17474# ifdef RTLD_LAZY
17475# define LT_DLLAZY_OR_NOW RTLD_LAZY
17476# else
17477# ifdef DL_LAZY
17478# define LT_DLLAZY_OR_NOW DL_LAZY
17479# else
17480# ifdef RTLD_NOW
17481# define LT_DLLAZY_OR_NOW RTLD_NOW
17482# else
17483# ifdef DL_NOW
17484# define LT_DLLAZY_OR_NOW DL_NOW
17485# else
17486# define LT_DLLAZY_OR_NOW 0
17487# endif
17488# endif
17489# endif
17490# endif
17491#endif
17492
17493#ifdef __cplusplus
17494extern "C" void exit (int);
17495#endif
17496
17497void fnord() { int i=42;}
17498int main ()
17499{
17500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17501 int status = $lt_dlunknown;
17502
17503 if (self)
17504 {
17505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17507 /* dlclose (self); */
17508 }
17509
17510 exit (status);
17511}
17512EOF
17513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17514 (eval $ac_link) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17518 (./conftest; exit; ) 2>/dev/null
17519 lt_status=$?
17520 case x$lt_status in
17521 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17522 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17523 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17524 esac
17525 else :
17526 # compilation failed
17527 lt_cv_dlopen_self=no
17528 fi
17529fi
17530rm -fr conftest*
17531
17532
17533fi
17534echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17535echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17536
17537 if test "x$lt_cv_dlopen_self" = xyes; then
17538 LDFLAGS="$LDFLAGS $link_static_flag"
17539 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17540echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17541if test "${lt_cv_dlopen_self_static+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543else
17544 if test "$cross_compiling" = yes; then :
17545 lt_cv_dlopen_self_static=cross
17546else
17547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17548 lt_status=$lt_dlunknown
17549 cat > conftest.$ac_ext <<EOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000017550#line 17550 "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000017551#include "confdefs.h"
17552
17553#if HAVE_DLFCN_H
17554#include <dlfcn.h>
17555#endif
17556
17557#include <stdio.h>
17558
17559#ifdef RTLD_GLOBAL
17560# define LT_DLGLOBAL RTLD_GLOBAL
17561#else
17562# ifdef DL_GLOBAL
17563# define LT_DLGLOBAL DL_GLOBAL
17564# else
17565# define LT_DLGLOBAL 0
17566# endif
17567#endif
17568
17569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17570 find out it does not work in some platform. */
17571#ifndef LT_DLLAZY_OR_NOW
17572# ifdef RTLD_LAZY
17573# define LT_DLLAZY_OR_NOW RTLD_LAZY
17574# else
17575# ifdef DL_LAZY
17576# define LT_DLLAZY_OR_NOW DL_LAZY
17577# else
17578# ifdef RTLD_NOW
17579# define LT_DLLAZY_OR_NOW RTLD_NOW
17580# else
17581# ifdef DL_NOW
17582# define LT_DLLAZY_OR_NOW DL_NOW
17583# else
17584# define LT_DLLAZY_OR_NOW 0
17585# endif
17586# endif
17587# endif
17588# endif
17589#endif
17590
17591#ifdef __cplusplus
17592extern "C" void exit (int);
17593#endif
17594
17595void fnord() { int i=42;}
17596int main ()
17597{
17598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17599 int status = $lt_dlunknown;
17600
17601 if (self)
17602 {
17603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17605 /* dlclose (self); */
17606 }
17607
17608 exit (status);
17609}
17610EOF
17611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612 (eval $ac_link) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17616 (./conftest; exit; ) 2>/dev/null
17617 lt_status=$?
17618 case x$lt_status in
17619 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17620 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17621 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17622 esac
17623 else :
17624 # compilation failed
17625 lt_cv_dlopen_self_static=no
17626 fi
17627fi
17628rm -fr conftest*
17629
17630
17631fi
17632echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17633echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17634 fi
17635
17636 CPPFLAGS="$save_CPPFLAGS"
17637 LDFLAGS="$save_LDFLAGS"
17638 LIBS="$save_LIBS"
17639 ;;
17640 esac
17641
17642 case $lt_cv_dlopen_self in
17643 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17644 *) enable_dlopen_self=unknown ;;
17645 esac
17646
17647 case $lt_cv_dlopen_self_static in
17648 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17649 *) enable_dlopen_self_static=unknown ;;
17650 esac
17651fi
17652
17653
17654# The else clause should only fire when bootstrapping the
17655# libtool distribution, otherwise you forgot to ship ltmain.sh
17656# with your package, and you will get complaints that there are
17657# no rules to generate ltmain.sh.
17658if test -f "$ltmain"; then
17659 # See if we are running on zsh, and set the options which allow our commands through
17660 # without removal of \ escapes.
17661 if test -n "${ZSH_VERSION+set}" ; then
17662 setopt NO_GLOB_SUBST
17663 fi
17664 # Now quote all the things that may contain metacharacters while being
17665 # careful not to overquote the AC_SUBSTed values. We take copies of the
17666 # variables and quote the copies for generation of the libtool script.
17667 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17668 SED SHELL STRIP \
17669 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17670 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17671 deplibs_check_method reload_flag reload_cmds need_locks \
17672 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17673 lt_cv_sys_global_symbol_to_c_name_address \
17674 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17675 old_postinstall_cmds old_postuninstall_cmds \
17676 compiler_GCJ \
17677 CC_GCJ \
17678 LD_GCJ \
17679 lt_prog_compiler_wl_GCJ \
17680 lt_prog_compiler_pic_GCJ \
17681 lt_prog_compiler_static_GCJ \
17682 lt_prog_compiler_no_builtin_flag_GCJ \
17683 export_dynamic_flag_spec_GCJ \
17684 thread_safe_flag_spec_GCJ \
17685 whole_archive_flag_spec_GCJ \
17686 enable_shared_with_static_runtimes_GCJ \
17687 old_archive_cmds_GCJ \
17688 old_archive_from_new_cmds_GCJ \
17689 predep_objects_GCJ \
17690 postdep_objects_GCJ \
17691 predeps_GCJ \
17692 postdeps_GCJ \
17693 compiler_lib_search_path_GCJ \
17694 archive_cmds_GCJ \
17695 archive_expsym_cmds_GCJ \
17696 postinstall_cmds_GCJ \
17697 postuninstall_cmds_GCJ \
17698 old_archive_from_expsyms_cmds_GCJ \
17699 allow_undefined_flag_GCJ \
17700 no_undefined_flag_GCJ \
17701 export_symbols_cmds_GCJ \
17702 hardcode_libdir_flag_spec_GCJ \
17703 hardcode_libdir_flag_spec_ld_GCJ \
17704 hardcode_libdir_separator_GCJ \
17705 hardcode_automatic_GCJ \
17706 module_cmds_GCJ \
17707 module_expsym_cmds_GCJ \
17708 lt_cv_prog_compiler_c_o_GCJ \
17709 exclude_expsyms_GCJ \
17710 include_expsyms_GCJ; do
17711
17712 case $var in
17713 old_archive_cmds_GCJ | \
17714 old_archive_from_new_cmds_GCJ | \
17715 archive_cmds_GCJ | \
17716 archive_expsym_cmds_GCJ | \
17717 module_cmds_GCJ | \
17718 module_expsym_cmds_GCJ | \
17719 old_archive_from_expsyms_cmds_GCJ | \
17720 export_symbols_cmds_GCJ | \
17721 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17722 postinstall_cmds | postuninstall_cmds | \
17723 old_postinstall_cmds | old_postuninstall_cmds | \
17724 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17725 # Double-quote double-evaled strings.
17726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17727 ;;
17728 *)
17729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17730 ;;
17731 esac
17732 done
17733
17734 case $lt_echo in
17735 *'\$0 --fallback-echo"')
17736 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17737 ;;
17738 esac
17739
17740cfgfile="$ofile"
17741
17742 cat <<__EOF__ >> "$cfgfile"
17743# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17744
17745# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17746
17747# Shell to use when invoking shell scripts.
17748SHELL=$lt_SHELL
17749
17750# Whether or not to build shared libraries.
17751build_libtool_libs=$enable_shared
17752
17753# Whether or not to build static libraries.
17754build_old_libs=$enable_static
17755
17756# Whether or not to add -lc for building shared libraries.
17757build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17758
17759# Whether or not to disallow shared libs when runtime libs are static
17760allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17761
17762# Whether or not to optimize for fast installation.
17763fast_install=$enable_fast_install
17764
17765# The host system.
17766host_alias=$host_alias
17767host=$host
17768
17769# An echo program that does not interpret backslashes.
17770echo=$lt_echo
17771
17772# The archiver.
17773AR=$lt_AR
17774AR_FLAGS=$lt_AR_FLAGS
17775
17776# A C compiler.
17777LTCC=$lt_LTCC
17778
17779# A language-specific compiler.
17780CC=$lt_compiler_GCJ
17781
17782# Is the compiler the GNU C compiler?
17783with_gcc=$GCC_GCJ
17784
17785# An ERE matcher.
17786EGREP=$lt_EGREP
17787
17788# The linker used to build libraries.
17789LD=$lt_LD_GCJ
17790
17791# Whether we need hard or soft links.
17792LN_S=$lt_LN_S
17793
17794# A BSD-compatible nm program.
17795NM=$lt_NM
17796
17797# A symbol stripping program
17798STRIP=$lt_STRIP
17799
17800# Used to examine libraries when file_magic_cmd begins "file"
17801MAGIC_CMD=$MAGIC_CMD
17802
17803# Used on cygwin: DLL creation program.
17804DLLTOOL="$DLLTOOL"
17805
17806# Used on cygwin: object dumper.
17807OBJDUMP="$OBJDUMP"
17808
17809# Used on cygwin: assembler.
17810AS="$AS"
17811
17812# The name of the directory that contains temporary libtool files.
17813objdir=$objdir
17814
17815# How to create reloadable object files.
17816reload_flag=$lt_reload_flag
17817reload_cmds=$lt_reload_cmds
17818
17819# How to pass a linker flag through the compiler.
17820wl=$lt_lt_prog_compiler_wl_GCJ
17821
17822# Object file suffix (normally "o").
17823objext="$ac_objext"
17824
17825# Old archive suffix (normally "a").
17826libext="$libext"
17827
17828# Shared library suffix (normally ".so").
17829shrext='$shrext'
17830
17831# Executable file suffix (normally "").
17832exeext="$exeext"
17833
17834# Additional compiler flags for building library objects.
17835pic_flag=$lt_lt_prog_compiler_pic_GCJ
17836pic_mode=$pic_mode
17837
17838# What is the maximum length of a command?
17839max_cmd_len=$lt_cv_sys_max_cmd_len
17840
17841# Does compiler simultaneously support -c and -o options?
17842compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17843
17844# Must we lock files when doing compilation ?
17845need_locks=$lt_need_locks
17846
17847# Do we need the lib prefix for modules?
17848need_lib_prefix=$need_lib_prefix
17849
17850# Do we need a version for libraries?
17851need_version=$need_version
17852
17853# Whether dlopen is supported.
17854dlopen_support=$enable_dlopen
17855
17856# Whether dlopen of programs is supported.
17857dlopen_self=$enable_dlopen_self
17858
17859# Whether dlopen of statically linked programs is supported.
17860dlopen_self_static=$enable_dlopen_self_static
17861
17862# Compiler flag to prevent dynamic linking.
17863link_static_flag=$lt_lt_prog_compiler_static_GCJ
17864
17865# Compiler flag to turn off builtin functions.
17866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17867
17868# Compiler flag to allow reflexive dlopens.
17869export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17870
17871# Compiler flag to generate shared objects directly from archives.
17872whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17873
17874# Compiler flag to generate thread-safe objects.
17875thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17876
17877# Library versioning type.
17878version_type=$version_type
17879
17880# Format of library name prefix.
17881libname_spec=$lt_libname_spec
17882
17883# List of archive names. First name is the real one, the rest are links.
17884# The last name is the one that the linker finds with -lNAME.
17885library_names_spec=$lt_library_names_spec
17886
17887# The coded name of the library, if different from the real name.
17888soname_spec=$lt_soname_spec
17889
17890# Commands used to build and install an old-style archive.
17891RANLIB=$lt_RANLIB
17892old_archive_cmds=$lt_old_archive_cmds_GCJ
17893old_postinstall_cmds=$lt_old_postinstall_cmds
17894old_postuninstall_cmds=$lt_old_postuninstall_cmds
17895
17896# Create an old-style archive from a shared archive.
17897old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17898
17899# Create a temporary old-style archive to link instead of a shared archive.
17900old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17901
17902# Commands used to build and install a shared archive.
17903archive_cmds=$lt_archive_cmds_GCJ
17904archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17905postinstall_cmds=$lt_postinstall_cmds
17906postuninstall_cmds=$lt_postuninstall_cmds
17907
17908# Commands used to build a loadable module (assumed same as above if empty)
17909module_cmds=$lt_module_cmds_GCJ
17910module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17911
17912# Commands to strip libraries.
17913old_striplib=$lt_old_striplib
17914striplib=$lt_striplib
17915
17916# Dependencies to place before the objects being linked to create a
17917# shared library.
17918predep_objects=$lt_predep_objects_GCJ
17919
17920# Dependencies to place after the objects being linked to create a
17921# shared library.
17922postdep_objects=$lt_postdep_objects_GCJ
17923
17924# Dependencies to place before the objects being linked to create a
17925# shared library.
17926predeps=$lt_predeps_GCJ
17927
17928# Dependencies to place after the objects being linked to create a
17929# shared library.
17930postdeps=$lt_postdeps_GCJ
17931
17932# The library search path used internally by the compiler when linking
17933# a shared library.
17934compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17935
17936# Method to check whether dependent libraries are shared objects.
17937deplibs_check_method=$lt_deplibs_check_method
17938
17939# Command to use when deplibs_check_method == file_magic.
17940file_magic_cmd=$lt_file_magic_cmd
17941
17942# Flag that allows shared libraries with undefined symbols to be built.
17943allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17944
17945# Flag that forces no undefined symbols.
17946no_undefined_flag=$lt_no_undefined_flag_GCJ
17947
17948# Commands used to finish a libtool library installation in a directory.
17949finish_cmds=$lt_finish_cmds
17950
17951# Same as above, but a single script fragment to be evaled but not shown.
17952finish_eval=$lt_finish_eval
17953
17954# Take the output of nm and produce a listing of raw symbols and C names.
17955global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17956
17957# Transform the output of nm in a proper C declaration
17958global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17959
17960# Transform the output of nm in a C name address pair
17961global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17962
17963# This is the shared library runtime path variable.
17964runpath_var=$runpath_var
17965
17966# This is the shared library path variable.
17967shlibpath_var=$shlibpath_var
17968
17969# Is shlibpath searched before the hard-coded library search path?
17970shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17971
17972# How to hardcode a shared library path into an executable.
17973hardcode_action=$hardcode_action_GCJ
17974
17975# Whether we should hardcode library paths into libraries.
17976hardcode_into_libs=$hardcode_into_libs
17977
17978# Flag to hardcode \$libdir into a binary during linking.
17979# This must work even if \$libdir does not exist.
17980hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17981
17982# If ld is used when linking, flag to hardcode \$libdir into
17983# a binary during linking. This must work even if \$libdir does
17984# not exist.
17985hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17986
17987# Whether we need a single -rpath flag with a separated argument.
17988hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17989
17990# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17991# resulting binary.
17992hardcode_direct=$hardcode_direct_GCJ
17993
17994# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17995# resulting binary.
17996hardcode_minus_L=$hardcode_minus_L_GCJ
17997
17998# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17999# the resulting binary.
18000hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18001
18002# Set to yes if building a shared library automatically hardcodes DIR into the library
18003# and all subsequent libraries and executables linked against it.
18004hardcode_automatic=$hardcode_automatic_GCJ
18005
18006# Variables whose values should be saved in libtool wrapper scripts and
18007# restored at relink time.
18008variables_saved_for_relink="$variables_saved_for_relink"
18009
18010# Whether libtool must link a program against all its dependency libraries.
18011link_all_deplibs=$link_all_deplibs_GCJ
18012
18013# Compile-time system search path for libraries
18014sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18015
18016# Run-time system search path for libraries
18017sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18018
18019# Fix the shell variable \$srcfile for the compiler.
18020fix_srcfile_path="$fix_srcfile_path_GCJ"
18021
18022# Set to yes if exported symbols are required.
18023always_export_symbols=$always_export_symbols_GCJ
18024
18025# The commands to list exported symbols.
18026export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18027
18028# The commands to extract the exported symbol list from a shared archive.
18029extract_expsyms_cmds=$lt_extract_expsyms_cmds
18030
18031# Symbols that should not be listed in the preloaded symbols.
18032exclude_expsyms=$lt_exclude_expsyms_GCJ
18033
18034# Symbols that must always be exported.
18035include_expsyms=$lt_include_expsyms_GCJ
18036
18037# ### END LIBTOOL TAG CONFIG: $tagname
18038
18039__EOF__
18040
18041
18042else
18043 # If there is no Makefile yet, we rely on a make rule to execute
18044 # `config.status --recheck' to rerun these tests and create the
18045 # libtool script then.
18046 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18047 if test -f "$ltmain_in"; then
18048 test -f Makefile && make "$ltmain"
18049 fi
18050fi
18051
18052
18053ac_ext=c
18054ac_cpp='$CPP $CPPFLAGS'
18055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057ac_compiler_gnu=$ac_cv_c_compiler_gnu
18058
18059CC="$lt_save_CC"
18060
18061 else
18062 tagname=""
18063 fi
18064 ;;
18065
18066 RC)
18067
18068
18069
18070# Source file extension for RC test sources.
18071ac_ext=rc
18072
18073# Object file extension for compiled RC test sources.
18074objext=o
18075objext_RC=$objext
18076
18077# Code to be used in simple compile tests
18078lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18079
18080# Code to be used in simple link tests
18081lt_simple_link_test_code="$lt_simple_compile_test_code"
18082
18083# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18084
18085# If no C compiler was specified, use CC.
18086LTCC=${LTCC-"$CC"}
18087
18088# Allow CC to be a program name with arguments.
18089compiler=$CC
18090
18091
18092# Allow CC to be a program name with arguments.
18093lt_save_CC="$CC"
18094CC=${RC-"windres"}
18095compiler=$CC
18096compiler_RC=$CC
18097lt_cv_prog_compiler_c_o_RC=yes
18098
18099# The else clause should only fire when bootstrapping the
18100# libtool distribution, otherwise you forgot to ship ltmain.sh
18101# with your package, and you will get complaints that there are
18102# no rules to generate ltmain.sh.
18103if test -f "$ltmain"; then
18104 # See if we are running on zsh, and set the options which allow our commands through
18105 # without removal of \ escapes.
18106 if test -n "${ZSH_VERSION+set}" ; then
18107 setopt NO_GLOB_SUBST
18108 fi
18109 # Now quote all the things that may contain metacharacters while being
18110 # careful not to overquote the AC_SUBSTed values. We take copies of the
18111 # variables and quote the copies for generation of the libtool script.
18112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18113 SED SHELL STRIP \
18114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18116 deplibs_check_method reload_flag reload_cmds need_locks \
18117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18118 lt_cv_sys_global_symbol_to_c_name_address \
18119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18120 old_postinstall_cmds old_postuninstall_cmds \
18121 compiler_RC \
18122 CC_RC \
18123 LD_RC \
18124 lt_prog_compiler_wl_RC \
18125 lt_prog_compiler_pic_RC \
18126 lt_prog_compiler_static_RC \
18127 lt_prog_compiler_no_builtin_flag_RC \
18128 export_dynamic_flag_spec_RC \
18129 thread_safe_flag_spec_RC \
18130 whole_archive_flag_spec_RC \
18131 enable_shared_with_static_runtimes_RC \
18132 old_archive_cmds_RC \
18133 old_archive_from_new_cmds_RC \
18134 predep_objects_RC \
18135 postdep_objects_RC \
18136 predeps_RC \
18137 postdeps_RC \
18138 compiler_lib_search_path_RC \
18139 archive_cmds_RC \
18140 archive_expsym_cmds_RC \
18141 postinstall_cmds_RC \
18142 postuninstall_cmds_RC \
18143 old_archive_from_expsyms_cmds_RC \
18144 allow_undefined_flag_RC \
18145 no_undefined_flag_RC \
18146 export_symbols_cmds_RC \
18147 hardcode_libdir_flag_spec_RC \
18148 hardcode_libdir_flag_spec_ld_RC \
18149 hardcode_libdir_separator_RC \
18150 hardcode_automatic_RC \
18151 module_cmds_RC \
18152 module_expsym_cmds_RC \
18153 lt_cv_prog_compiler_c_o_RC \
18154 exclude_expsyms_RC \
18155 include_expsyms_RC; do
18156
18157 case $var in
18158 old_archive_cmds_RC | \
18159 old_archive_from_new_cmds_RC | \
18160 archive_cmds_RC | \
18161 archive_expsym_cmds_RC | \
18162 module_cmds_RC | \
18163 module_expsym_cmds_RC | \
18164 old_archive_from_expsyms_cmds_RC | \
18165 export_symbols_cmds_RC | \
18166 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18167 postinstall_cmds | postuninstall_cmds | \
18168 old_postinstall_cmds | old_postuninstall_cmds | \
18169 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18170 # Double-quote double-evaled strings.
18171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18172 ;;
18173 *)
18174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18175 ;;
18176 esac
18177 done
18178
18179 case $lt_echo in
18180 *'\$0 --fallback-echo"')
18181 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18182 ;;
18183 esac
18184
18185cfgfile="$ofile"
18186
18187 cat <<__EOF__ >> "$cfgfile"
18188# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18189
18190# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18191
18192# Shell to use when invoking shell scripts.
18193SHELL=$lt_SHELL
18194
18195# Whether or not to build shared libraries.
18196build_libtool_libs=$enable_shared
18197
18198# Whether or not to build static libraries.
18199build_old_libs=$enable_static
18200
18201# Whether or not to add -lc for building shared libraries.
18202build_libtool_need_lc=$archive_cmds_need_lc_RC
18203
18204# Whether or not to disallow shared libs when runtime libs are static
18205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18206
18207# Whether or not to optimize for fast installation.
18208fast_install=$enable_fast_install
18209
18210# The host system.
18211host_alias=$host_alias
18212host=$host
18213
18214# An echo program that does not interpret backslashes.
18215echo=$lt_echo
18216
18217# The archiver.
18218AR=$lt_AR
18219AR_FLAGS=$lt_AR_FLAGS
18220
18221# A C compiler.
18222LTCC=$lt_LTCC
18223
18224# A language-specific compiler.
18225CC=$lt_compiler_RC
18226
18227# Is the compiler the GNU C compiler?
18228with_gcc=$GCC_RC
18229
18230# An ERE matcher.
18231EGREP=$lt_EGREP
18232
18233# The linker used to build libraries.
18234LD=$lt_LD_RC
18235
18236# Whether we need hard or soft links.
18237LN_S=$lt_LN_S
18238
18239# A BSD-compatible nm program.
18240NM=$lt_NM
18241
18242# A symbol stripping program
18243STRIP=$lt_STRIP
18244
18245# Used to examine libraries when file_magic_cmd begins "file"
18246MAGIC_CMD=$MAGIC_CMD
18247
18248# Used on cygwin: DLL creation program.
18249DLLTOOL="$DLLTOOL"
18250
18251# Used on cygwin: object dumper.
18252OBJDUMP="$OBJDUMP"
18253
18254# Used on cygwin: assembler.
18255AS="$AS"
18256
18257# The name of the directory that contains temporary libtool files.
18258objdir=$objdir
18259
18260# How to create reloadable object files.
18261reload_flag=$lt_reload_flag
18262reload_cmds=$lt_reload_cmds
18263
18264# How to pass a linker flag through the compiler.
18265wl=$lt_lt_prog_compiler_wl_RC
18266
18267# Object file suffix (normally "o").
18268objext="$ac_objext"
18269
18270# Old archive suffix (normally "a").
18271libext="$libext"
18272
18273# Shared library suffix (normally ".so").
18274shrext='$shrext'
18275
18276# Executable file suffix (normally "").
18277exeext="$exeext"
18278
18279# Additional compiler flags for building library objects.
18280pic_flag=$lt_lt_prog_compiler_pic_RC
18281pic_mode=$pic_mode
18282
18283# What is the maximum length of a command?
18284max_cmd_len=$lt_cv_sys_max_cmd_len
18285
18286# Does compiler simultaneously support -c and -o options?
18287compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18288
18289# Must we lock files when doing compilation ?
18290need_locks=$lt_need_locks
18291
18292# Do we need the lib prefix for modules?
18293need_lib_prefix=$need_lib_prefix
18294
18295# Do we need a version for libraries?
18296need_version=$need_version
18297
18298# Whether dlopen is supported.
18299dlopen_support=$enable_dlopen
18300
18301# Whether dlopen of programs is supported.
18302dlopen_self=$enable_dlopen_self
18303
18304# Whether dlopen of statically linked programs is supported.
18305dlopen_self_static=$enable_dlopen_self_static
18306
18307# Compiler flag to prevent dynamic linking.
18308link_static_flag=$lt_lt_prog_compiler_static_RC
18309
18310# Compiler flag to turn off builtin functions.
18311no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18312
18313# Compiler flag to allow reflexive dlopens.
18314export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18315
18316# Compiler flag to generate shared objects directly from archives.
18317whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18318
18319# Compiler flag to generate thread-safe objects.
18320thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18321
18322# Library versioning type.
18323version_type=$version_type
18324
18325# Format of library name prefix.
18326libname_spec=$lt_libname_spec
18327
18328# List of archive names. First name is the real one, the rest are links.
18329# The last name is the one that the linker finds with -lNAME.
18330library_names_spec=$lt_library_names_spec
18331
18332# The coded name of the library, if different from the real name.
18333soname_spec=$lt_soname_spec
18334
18335# Commands used to build and install an old-style archive.
18336RANLIB=$lt_RANLIB
18337old_archive_cmds=$lt_old_archive_cmds_RC
18338old_postinstall_cmds=$lt_old_postinstall_cmds
18339old_postuninstall_cmds=$lt_old_postuninstall_cmds
18340
18341# Create an old-style archive from a shared archive.
18342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18343
18344# Create a temporary old-style archive to link instead of a shared archive.
18345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18346
18347# Commands used to build and install a shared archive.
18348archive_cmds=$lt_archive_cmds_RC
18349archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18350postinstall_cmds=$lt_postinstall_cmds
18351postuninstall_cmds=$lt_postuninstall_cmds
18352
18353# Commands used to build a loadable module (assumed same as above if empty)
18354module_cmds=$lt_module_cmds_RC
18355module_expsym_cmds=$lt_module_expsym_cmds_RC
18356
18357# Commands to strip libraries.
18358old_striplib=$lt_old_striplib
18359striplib=$lt_striplib
18360
18361# Dependencies to place before the objects being linked to create a
18362# shared library.
18363predep_objects=$lt_predep_objects_RC
18364
18365# Dependencies to place after the objects being linked to create a
18366# shared library.
18367postdep_objects=$lt_postdep_objects_RC
18368
18369# Dependencies to place before the objects being linked to create a
18370# shared library.
18371predeps=$lt_predeps_RC
18372
18373# Dependencies to place after the objects being linked to create a
18374# shared library.
18375postdeps=$lt_postdeps_RC
18376
18377# The library search path used internally by the compiler when linking
18378# a shared library.
18379compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18380
18381# Method to check whether dependent libraries are shared objects.
18382deplibs_check_method=$lt_deplibs_check_method
18383
18384# Command to use when deplibs_check_method == file_magic.
18385file_magic_cmd=$lt_file_magic_cmd
18386
18387# Flag that allows shared libraries with undefined symbols to be built.
18388allow_undefined_flag=$lt_allow_undefined_flag_RC
18389
18390# Flag that forces no undefined symbols.
18391no_undefined_flag=$lt_no_undefined_flag_RC
18392
18393# Commands used to finish a libtool library installation in a directory.
18394finish_cmds=$lt_finish_cmds
18395
18396# Same as above, but a single script fragment to be evaled but not shown.
18397finish_eval=$lt_finish_eval
18398
18399# Take the output of nm and produce a listing of raw symbols and C names.
18400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18401
18402# Transform the output of nm in a proper C declaration
18403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18404
18405# Transform the output of nm in a C name address pair
18406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18407
18408# This is the shared library runtime path variable.
18409runpath_var=$runpath_var
18410
18411# This is the shared library path variable.
18412shlibpath_var=$shlibpath_var
18413
18414# Is shlibpath searched before the hard-coded library search path?
18415shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18416
18417# How to hardcode a shared library path into an executable.
18418hardcode_action=$hardcode_action_RC
18419
18420# Whether we should hardcode library paths into libraries.
18421hardcode_into_libs=$hardcode_into_libs
18422
18423# Flag to hardcode \$libdir into a binary during linking.
18424# This must work even if \$libdir does not exist.
18425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18426
18427# If ld is used when linking, flag to hardcode \$libdir into
18428# a binary during linking. This must work even if \$libdir does
18429# not exist.
18430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18431
18432# Whether we need a single -rpath flag with a separated argument.
18433hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18434
18435# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18436# resulting binary.
18437hardcode_direct=$hardcode_direct_RC
18438
18439# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18440# resulting binary.
18441hardcode_minus_L=$hardcode_minus_L_RC
18442
18443# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18444# the resulting binary.
18445hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18446
18447# Set to yes if building a shared library automatically hardcodes DIR into the library
18448# and all subsequent libraries and executables linked against it.
18449hardcode_automatic=$hardcode_automatic_RC
18450
18451# Variables whose values should be saved in libtool wrapper scripts and
18452# restored at relink time.
18453variables_saved_for_relink="$variables_saved_for_relink"
18454
18455# Whether libtool must link a program against all its dependency libraries.
18456link_all_deplibs=$link_all_deplibs_RC
18457
18458# Compile-time system search path for libraries
18459sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18460
18461# Run-time system search path for libraries
18462sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18463
18464# Fix the shell variable \$srcfile for the compiler.
18465fix_srcfile_path="$fix_srcfile_path_RC"
18466
18467# Set to yes if exported symbols are required.
18468always_export_symbols=$always_export_symbols_RC
18469
18470# The commands to list exported symbols.
18471export_symbols_cmds=$lt_export_symbols_cmds_RC
18472
18473# The commands to extract the exported symbol list from a shared archive.
18474extract_expsyms_cmds=$lt_extract_expsyms_cmds
18475
18476# Symbols that should not be listed in the preloaded symbols.
18477exclude_expsyms=$lt_exclude_expsyms_RC
18478
18479# Symbols that must always be exported.
18480include_expsyms=$lt_include_expsyms_RC
18481
18482# ### END LIBTOOL TAG CONFIG: $tagname
18483
18484__EOF__
18485
18486
18487else
18488 # If there is no Makefile yet, we rely on a make rule to execute
18489 # `config.status --recheck' to rerun these tests and create the
18490 # libtool script then.
18491 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18492 if test -f "$ltmain_in"; then
18493 test -f Makefile && make "$ltmain"
18494 fi
18495fi
18496
18497
18498ac_ext=c
18499ac_cpp='$CPP $CPPFLAGS'
18500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18502ac_compiler_gnu=$ac_cv_c_compiler_gnu
18503
18504CC="$lt_save_CC"
18505
18506 ;;
18507
18508 *)
18509 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18510echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18511 { (exit 1); exit 1; }; }
18512 ;;
18513 esac
18514
18515 # Append the new tag name to the list of available tags.
18516 if test -n "$tagname" ; then
18517 available_tags="$available_tags $tagname"
18518 fi
18519 fi
18520 done
18521 IFS="$lt_save_ifs"
18522
18523 # Now substitute the updated list of available tags.
18524 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18525 mv "${ofile}T" "$ofile"
18526 chmod +x "$ofile"
18527 else
18528 rm -f "${ofile}T"
18529 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18530echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18531 { (exit 1); exit 1; }; }
18532 fi
18533fi
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018534
18535
18536
18537# This can be used to rebuild libtool when needed
18538LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18539
18540# Always use our own libtool.
18541LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18542
18543# Prevent multiple expansion
18544
18545
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
mostang.com!davidm6af90d02003-02-15 08:53:55 +000018564# By default we simply use the C compiler to build assembly code.
18565
18566: ${CCAS='$(CC)'}
18567# Set ASFLAGS if not already set.
18568: ${CCASFLAGS='$(CFLAGS)'}
18569
18570
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018571
18572
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000018573echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
18574echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6
18575if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 ac_check_lib_save_LIBS=$LIBS
18579LIBS="-luca $LIBS"
18580cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018581#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018582/* confdefs.h. */
18583_ACEOF
18584cat confdefs.h >>conftest.$ac_ext
18585cat >>conftest.$ac_ext <<_ACEOF
18586/* end confdefs.h. */
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000018587
18588/* Override any gcc2 internal prototype to avoid an error. */
18589#ifdef __cplusplus
18590extern "C"
18591#endif
18592/* We use char because int might match the return type of a gcc2
18593 builtin and then its argument prototype would still apply. */
18594char __uc_get_grs ();
18595int
18596main ()
18597{
18598__uc_get_grs ();
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext conftest$ac_exeext
18604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000018605 (eval $ac_link) 2>&5
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000018606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000018609 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000018610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; }; then
18615 ac_cv_lib_uca___uc_get_grs=yes
18616else
18617 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018618sed 's/^/| /' conftest.$ac_ext >&5
18619
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000018620ac_cv_lib_uca___uc_get_grs=no
18621fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000018622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000018623LIBS=$ac_check_lib_save_LIBS
18624fi
18625echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
18626echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6
18627if test $ac_cv_lib_uca___uc_get_grs = yes; then
18628 cat >>confdefs.h <<_ACEOF
18629#define HAVE_LIBUCA 1
18630_ACEOF
18631
18632 LIBS="-luca $LIBS"
18633
18634fi
18635
18636
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018637for ac_header in atomic_ops.h
18638do
18639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18640if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo "$as_me:$LINENO: checking for $ac_header" >&5
18642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18643if eval "test \"\${$as_ac_Header+set}\" = set"; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18645fi
18646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18648else
18649 # Is the header compilable?
18650echo "$as_me:$LINENO: checking $ac_header usability" >&5
18651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18652cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018653#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018654/* confdefs.h. */
18655_ACEOF
18656cat confdefs.h >>conftest.$ac_ext
18657cat >>conftest.$ac_ext <<_ACEOF
18658/* end confdefs.h. */
18659$ac_includes_default
18660#include <$ac_header>
18661_ACEOF
18662rm -f conftest.$ac_objext
18663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000018664 (eval $ac_compile) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018665 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000018668 { ac_try='test -s conftest.$ac_objext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_header_compiler=yes
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679ac_header_compiler=no
18680fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000018681rm -f conftest.$ac_objext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18683echo "${ECHO_T}$ac_header_compiler" >&6
18684
18685# Is the header present?
18686echo "$as_me:$LINENO: checking $ac_header presence" >&5
18687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18688cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018689#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018690/* confdefs.h. */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
18694/* end confdefs.h. */
18695#include <$ac_header>
18696_ACEOF
18697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } >/dev/null; then
18705 if test -s conftest.err; then
18706 ac_cpp_err=$ac_c_preproc_warn_flag
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018707 else
18708 ac_cpp_err=
18709 fi
18710else
18711 ac_cpp_err=yes
18712fi
18713if test -z "$ac_cpp_err"; then
18714 ac_header_preproc=yes
18715else
18716 echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 ac_header_preproc=no
18720fi
18721rm -f conftest.err conftest.$ac_ext
18722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18723echo "${ECHO_T}$ac_header_preproc" >&6
18724
18725# So? What about this header?
mostang.com!davidm046362a2003-12-05 06:42:28 +000018726case $ac_header_compiler:$ac_header_preproc in
18727 yes:no )
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018732 (
18733 cat <<\_ASBOX
mostang.com!davidm046362a2003-12-05 06:42:28 +000018734## ------------------------------------ ##
18735## Report this to bug-autoconf@gnu.org. ##
18736## ------------------------------------ ##
18737_ASBOX
18738 ) |
18739 sed "s/^/$as_me: WARNING: /" >&2
18740 ;;
18741 no:yes )
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18748 (
18749 cat <<\_ASBOX
18750## ------------------------------------ ##
18751## Report this to bug-autoconf@gnu.org. ##
18752## ------------------------------------ ##
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018753_ASBOX
18754 ) |
18755 sed "s/^/$as_me: WARNING: /" >&2
18756 ;;
18757esac
18758echo "$as_me:$LINENO: checking for $ac_header" >&5
18759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18760if eval "test \"\${$as_ac_Header+set}\" = set"; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762else
mostang.com!davidm046362a2003-12-05 06:42:28 +000018763 eval "$as_ac_Header=$ac_header_preproc"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018764fi
18765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18767
18768fi
18769if test `eval echo '${'$as_ac_Header'}'` = yes; then
18770 cat >>confdefs.h <<_ACEOF
18771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18772_ACEOF
18773
18774fi
18775
18776done
18777
18778
18779echo "$as_me:$LINENO: checking for main in -latomic_ops" >&5
18780echo $ECHO_N "checking for main in -latomic_ops... $ECHO_C" >&6
18781if test "${ac_cv_lib_atomic_ops_main+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784 ac_check_lib_save_LIBS=$LIBS
18785LIBS="-latomic_ops $LIBS"
18786cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018787#line $LINENO "configure"
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
18792/* end confdefs.h. */
18793
18794
18795int
18796main ()
18797{
18798main ();
18799 ;
18800 return 0;
18801}
18802_ACEOF
18803rm -f conftest.$ac_objext conftest$ac_exeext
18804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000018805 (eval $ac_link) 2>&5
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018806 ac_status=$?
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000018809 { ac_try='test -s conftest$ac_exeext'
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_cv_lib_atomic_ops_main=yes
18816else
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820ac_cv_lib_atomic_ops_main=no
18821fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000018822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018823LIBS=$ac_check_lib_save_LIBS
18824fi
18825echo "$as_me:$LINENO: result: $ac_cv_lib_atomic_ops_main" >&5
18826echo "${ECHO_T}$ac_cv_lib_atomic_ops_main" >&6
18827if test $ac_cv_lib_atomic_ops_main = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829#define HAVE_LIBATOMIC_OPS 1
18830_ACEOF
18831
18832 LIBS="-latomic_ops $LIBS"
18833
18834fi
18835
18836
18837
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018838echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18839echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18840if test "${ac_cv_header_stdc+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018844#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018850#include <stdlib.h>
18851#include <stdarg.h>
18852#include <string.h>
18853#include <float.h>
18854
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018855int
18856main ()
18857{
18858
18859 ;
18860 return 0;
18861}
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018862_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018863rm -f conftest.$ac_objext
18864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000018865 (eval $ac_compile) 2>&5
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018866 ac_status=$?
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018868 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000018869 { ac_try='test -s conftest.$ac_objext'
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; }; then
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018875 ac_cv_header_stdc=yes
18876else
18877 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880ac_cv_header_stdc=no
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018881fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000018882rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018883
18884if test $ac_cv_header_stdc = yes; then
18885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18886 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018887#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018893#include <string.h>
18894
18895_ACEOF
18896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18897 $EGREP "memchr" >/dev/null 2>&1; then
18898 :
18899else
18900 ac_cv_header_stdc=no
18901fi
18902rm -f conftest*
18903
18904fi
18905
18906if test $ac_cv_header_stdc = yes; then
18907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18908 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018909#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018915#include <stdlib.h>
18916
18917_ACEOF
18918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18919 $EGREP "free" >/dev/null 2>&1; then
18920 :
18921else
18922 ac_cv_header_stdc=no
18923fi
18924rm -f conftest*
18925
18926fi
18927
18928if test $ac_cv_header_stdc = yes; then
18929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18930 if test "$cross_compiling" = yes; then
18931 :
18932else
18933 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000018934#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018940#include <ctype.h>
18941#if ((' ' & 0x0FF) == 0x020)
18942# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18943# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18944#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018945# define ISLOWER(c) \
mostang.com!davidm046362a2003-12-05 06:42:28 +000018946 (('a' <= (c) && (c) <= 'i') \
18947 || ('j' <= (c) && (c) <= 'r') \
18948 || ('s' <= (c) && (c) <= 'z'))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018949# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18950#endif
18951
18952#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18953int
18954main ()
18955{
18956 int i;
18957 for (i = 0; i < 256; i++)
18958 if (XOR (islower (i), ISLOWER (i))
mostang.com!davidm046362a2003-12-05 06:42:28 +000018959 || toupper (i) != TOUPPER (i))
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018960 exit(2);
18961 exit (0);
18962}
18963_ACEOF
18964rm -f conftest$ac_exeext
18965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18966 (eval $ac_link) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 :
18976else
18977 echo "$as_me: program exited with status $ac_status" >&5
18978echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000018979sed 's/^/| /' conftest.$ac_ext >&5
18980
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018981( exit $ac_status )
18982ac_cv_header_stdc=no
18983fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000018984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmf26451a2003-01-16 03:10:11 +000018985fi
18986fi
18987fi
18988echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18989echo "${ECHO_T}$ac_cv_header_stdc" >&6
18990if test $ac_cv_header_stdc = yes; then
18991
18992cat >>confdefs.h <<\_ACEOF
18993#define STDC_HEADERS 1
18994_ACEOF
18995
18996fi
18997
18998
mostang.com!davidm6af90d02003-02-15 08:53:55 +000018999
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019000
19001
19002
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019003
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019004
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019005for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019006 sys/uc_access.h unistd.h signal.h
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019007do
19008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19009if eval "test \"\${$as_ac_Header+set}\" = set"; then
19010 echo "$as_me:$LINENO: checking for $ac_header" >&5
19011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19012if eval "test \"\${$as_ac_Header+set}\" = set"; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014fi
19015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19017else
19018 # Is the header compilable?
19019echo "$as_me:$LINENO: checking $ac_header usability" >&5
19020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19021cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019022#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019023/* confdefs.h. */
19024_ACEOF
19025cat confdefs.h >>conftest.$ac_ext
19026cat >>conftest.$ac_ext <<_ACEOF
19027/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019028$ac_includes_default
19029#include <$ac_header>
19030_ACEOF
19031rm -f conftest.$ac_objext
19032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019033 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019037 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_header_compiler=yes
19044else
19045 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019046sed 's/^/| /' conftest.$ac_ext >&5
19047
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019048ac_header_compiler=no
19049fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019050rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19052echo "${ECHO_T}$ac_header_compiler" >&6
19053
19054# Is the header present?
19055echo "$as_me:$LINENO: checking $ac_header presence" >&5
19056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19057cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019058#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019059/* confdefs.h. */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019064#include <$ac_header>
19065_ACEOF
19066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } >/dev/null; then
19074 if test -s conftest.err; then
19075 ac_cpp_err=$ac_c_preproc_warn_flag
19076 else
19077 ac_cpp_err=
19078 fi
19079else
19080 ac_cpp_err=yes
19081fi
19082if test -z "$ac_cpp_err"; then
19083 ac_header_preproc=yes
19084else
19085 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019086sed 's/^/| /' conftest.$ac_ext >&5
19087
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019088 ac_header_preproc=no
19089fi
19090rm -f conftest.err conftest.$ac_ext
19091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19092echo "${ECHO_T}$ac_header_preproc" >&6
19093
19094# So? What about this header?
mostang.com!davidm046362a2003-12-05 06:42:28 +000019095case $ac_header_compiler:$ac_header_preproc in
19096 yes:no )
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19101 (
19102 cat <<\_ASBOX
mostang.com!davidm046362a2003-12-05 06:42:28 +000019103## ------------------------------------ ##
19104## Report this to bug-autoconf@gnu.org. ##
19105## ------------------------------------ ##
19106_ASBOX
19107 ) |
19108 sed "s/^/$as_me: WARNING: /" >&2
19109 ;;
19110 no:yes )
19111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19117 (
19118 cat <<\_ASBOX
19119## ------------------------------------ ##
19120## Report this to bug-autoconf@gnu.org. ##
19121## ------------------------------------ ##
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019122_ASBOX
19123 ) |
19124 sed "s/^/$as_me: WARNING: /" >&2
19125 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019126esac
19127echo "$as_me:$LINENO: checking for $ac_header" >&5
19128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19129if eval "test \"\${$as_ac_Header+set}\" = set"; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131else
mostang.com!davidm046362a2003-12-05 06:42:28 +000019132 eval "$as_ac_Header=$ac_header_preproc"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019133fi
19134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19136
19137fi
19138if test `eval echo '${'$as_ac_Header'}'` = yes; then
19139 cat >>confdefs.h <<_ACEOF
19140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19141_ACEOF
19142
19143fi
19144
19145done
19146
19147
19148echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19149echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19150if test "${ac_cv_c_const+set}" = set; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19152else
19153 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019154#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019160
19161int
19162main ()
19163{
19164/* FIXME: Include the comments suggested by Paul. */
19165#ifndef __cplusplus
19166 /* Ultrix mips cc rejects this. */
19167 typedef int charset[2];
19168 const charset x;
19169 /* SunOS 4.1.1 cc rejects this. */
19170 char const *const *ccp;
19171 char **p;
19172 /* NEC SVR4.0.2 mips cc rejects this. */
19173 struct point {int x, y;};
19174 static struct point const zero = {0,0};
19175 /* AIX XL C 1.02.0.0 rejects this.
19176 It does not let you subtract one const X* pointer from another in
19177 an arm of an if-expression whose if-part is not a constant
19178 expression */
19179 const char *g = "string";
19180 ccp = &g + (g ? g-g : 0);
19181 /* HPUX 7.0 cc rejects these. */
19182 ++ccp;
19183 p = (char**) ccp;
19184 ccp = (char const *const *) p;
19185 { /* SCO 3.2v4 cc rejects this. */
19186 char *t;
19187 char const *s = 0 ? (char *) 0 : (char const *) 0;
19188
19189 *t++ = 0;
19190 }
19191 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19192 int x[] = {25, 17};
19193 const int *foo = &x[0];
19194 ++foo;
19195 }
19196 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19197 typedef const int *iptr;
19198 iptr p = 0;
19199 ++p;
19200 }
19201 { /* AIX XL C 1.02.0.0 rejects this saying
19202 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19203 struct s { int j; const int *ap[3]; };
19204 struct s *b; b->j = 5;
19205 }
19206 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19207 const int foo = 10;
19208 }
19209#endif
19210
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest.$ac_objext
19216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019217 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019221 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_c_const=yes
19228else
19229 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019230sed 's/^/| /' conftest.$ac_ext >&5
19231
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019232ac_cv_c_const=no
19233fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019234rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019235fi
19236echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19237echo "${ECHO_T}$ac_cv_c_const" >&6
19238if test $ac_cv_c_const = no; then
19239
19240cat >>confdefs.h <<\_ACEOF
19241#define const
19242_ACEOF
19243
19244fi
19245
19246echo "$as_me:$LINENO: checking for inline" >&5
19247echo $ECHO_N "checking for inline... $ECHO_C" >&6
19248if test "${ac_cv_c_inline+set}" = set; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19250else
19251 ac_cv_c_inline=no
19252for ac_kw in inline __inline__ __inline; do
19253 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019254#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019260#ifndef __cplusplus
19261typedef int foo_t;
19262static $ac_kw foo_t static_foo () {return 0; }
19263$ac_kw foo_t foo () {return 0; }
19264#endif
19265
19266_ACEOF
19267rm -f conftest.$ac_objext
19268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019269 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019273 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_cv_c_inline=$ac_kw; break
19280else
19281 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019282sed 's/^/| /' conftest.$ac_ext >&5
19283
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019284fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019285rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019286done
19287
19288fi
19289echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19290echo "${ECHO_T}$ac_cv_c_inline" >&6
19291case $ac_cv_c_inline in
19292 inline | yes) ;;
mostang.com!davidm046362a2003-12-05 06:42:28 +000019293 no)
19294cat >>confdefs.h <<\_ACEOF
19295#define inline
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019296_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019297 ;;
19298 *) cat >>confdefs.h <<_ACEOF
19299#define inline $ac_cv_c_inline
19300_ACEOF
19301 ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019302esac
19303
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019304echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19305echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19306if test "${ac_cv_type_signal+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308else
19309 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019310#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019316#include <sys/types.h>
19317#include <signal.h>
19318#ifdef signal
19319# undef signal
19320#endif
19321#ifdef __cplusplus
19322extern "C" void (*signal (int, void (*)(int)))(int);
19323#else
19324void (*signal ()) ();
19325#endif
19326
19327int
19328main ()
19329{
19330int i;
19331 ;
19332 return 0;
19333}
19334_ACEOF
19335rm -f conftest.$ac_objext
19336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019337 (eval $ac_compile) 2>&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019341 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_type_signal=void
19348else
19349 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019350sed 's/^/| /' conftest.$ac_ext >&5
19351
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019352ac_cv_type_signal=int
19353fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019354rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019355fi
19356echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19357echo "${ECHO_T}$ac_cv_type_signal" >&6
19358
19359cat >>confdefs.h <<_ACEOF
19360#define RETSIGTYPE $ac_cv_type_signal
19361_ACEOF
19362
19363
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019364echo "$as_me:$LINENO: checking for size_t" >&5
19365echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19366if test "${ac_cv_type_size_t+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19368else
19369 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019370#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019376$ac_includes_default
19377int
19378main ()
19379{
19380if ((size_t *) 0)
19381 return 0;
19382if (sizeof (size_t))
19383 return 0;
19384 ;
19385 return 0;
19386}
19387_ACEOF
19388rm -f conftest.$ac_objext
19389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019390 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019394 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_cv_type_size_t=yes
19401else
19402 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019403sed 's/^/| /' conftest.$ac_ext >&5
19404
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019405ac_cv_type_size_t=no
19406fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019407rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019408fi
19409echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19410echo "${ECHO_T}$ac_cv_type_size_t" >&6
19411if test $ac_cv_type_size_t = yes; then
19412 :
19413else
19414
19415cat >>confdefs.h <<_ACEOF
19416#define size_t unsigned
19417_ACEOF
19418
19419fi
19420
19421
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019422CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
19423if test x$enable_debug = xyes; then
19424 CPPFLAGS="${CPPFLAGS} -DDEBUG"
19425else
19426 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
19427fi
19428
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019429echo "$as_me:$LINENO: checking for sighandler_t" >&5
19430echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6
19431if test "${ac_cv_type_sighandler_t+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019435#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019441$ac_includes_default
hp.com!davidm9bd061e2003-09-25 05:29:14 +000019442#if HAVE_SIGNAL_H
19443# include <signal.h>
19444#endif
19445
19446
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019447int
19448main ()
19449{
19450if ((sighandler_t *) 0)
19451 return 0;
19452if (sizeof (sighandler_t))
19453 return 0;
19454 ;
19455 return 0;
19456}
19457_ACEOF
19458rm -f conftest.$ac_objext
19459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019460 (eval $ac_compile) 2>&5
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019464 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_type_sighandler_t=yes
19471else
19472 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019473sed 's/^/| /' conftest.$ac_ext >&5
19474
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019475ac_cv_type_sighandler_t=no
19476fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019477rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019478fi
19479echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
19480echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6
mostang.com!davidm46149fd2003-03-31 18:16:54 +000019481if test $ac_cv_type_sighandler_t = yes; then
19482
19483cat >>confdefs.h <<_ACEOF
19484#define HAVE_SIGHANDLER_T 1
19485_ACEOF
19486
19487
19488fi
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019489
19490
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019491echo "$as_me:$LINENO: checking for working memcmp" >&5
19492echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
19493if test "${ac_cv_func_memcmp_working+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19495else
19496 if test "$cross_compiling" = yes; then
19497 ac_cv_func_memcmp_working=no
19498else
19499 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019500#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
mostang.com!davidm046362a2003-12-05 06:42:28 +000019506
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019507int
19508main ()
19509{
19510
19511 /* Some versions of memcmp are not 8-bit clean. */
19512 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
19513 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19514 exit (1);
19515
19516 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19517 or more and with at least one buffer not starting on a 4-byte boundary.
19518 William Lewis provided this test program. */
19519 {
19520 char foo[21];
19521 char bar[21];
19522 int i;
19523 for (i = 0; i < 4; i++)
19524 {
mostang.com!davidm046362a2003-12-05 06:42:28 +000019525 char *a = foo + i;
19526 char *b = bar + i;
19527 strcpy (a, "--------01111111");
19528 strcpy (b, "--------10000000");
19529 if (memcmp (a, b, 16) >= 0)
19530 exit (1);
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019531 }
19532 exit (0);
19533 }
19534
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest$ac_exeext
19540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541 (eval $ac_link) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_func_memcmp_working=yes
19551else
19552 echo "$as_me: program exited with status $ac_status" >&5
19553echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019554sed 's/^/| /' conftest.$ac_ext >&5
19555
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019556( exit $ac_status )
19557ac_cv_func_memcmp_working=no
19558fi
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000019559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019560fi
19561fi
19562echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
19563echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
mostang.com!davidm046362a2003-12-05 06:42:28 +000019564test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019565
19566echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19567echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19568if test "${ac_cv_type_signal+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570else
19571 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019572#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019578#include <sys/types.h>
19579#include <signal.h>
19580#ifdef signal
19581# undef signal
19582#endif
19583#ifdef __cplusplus
19584extern "C" void (*signal (int, void (*)(int)))(int);
19585#else
19586void (*signal ()) ();
19587#endif
19588
19589int
19590main ()
19591{
19592int i;
19593 ;
19594 return 0;
19595}
19596_ACEOF
19597rm -f conftest.$ac_objext
19598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019599 (eval $ac_compile) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019603 { ac_try='test -s conftest.$ac_objext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; }; then
19609 ac_cv_type_signal=void
19610else
19611 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019612sed 's/^/| /' conftest.$ac_ext >&5
19613
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019614ac_cv_type_signal=int
19615fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019616rm -f conftest.$ac_objext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019617fi
19618echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19619echo "${ECHO_T}$ac_cv_type_signal" >&6
19620
19621cat >>confdefs.h <<_ACEOF
19622#define RETSIGTYPE $ac_cv_type_signal
19623_ACEOF
19624
19625
19626
mostang.com!davidmc7aaa682003-03-19 19:25:18 +000019627
19628
19629
19630for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019631do
19632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19633echo "$as_me:$LINENO: checking for $ac_func" >&5
19634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19635if eval "test \"\${$as_ac_var+set}\" = set"; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637else
19638 cat >conftest.$ac_ext <<_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000019639#line $LINENO "configure"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019645/* System header to define __stub macros and hopefully few prototypes,
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019646 which can conflict with char $ac_func (); below.
19647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19648 <limits.h> exists even on freestanding compilers. */
19649#ifdef __STDC__
19650# include <limits.h>
19651#else
19652# include <assert.h>
19653#endif
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019654/* Override any gcc2 internal prototype to avoid an error. */
19655#ifdef __cplusplus
19656extern "C"
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019657{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019658#endif
19659/* We use char because int might match the return type of a gcc2
19660 builtin and then its argument prototype would still apply. */
19661char $ac_func ();
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019662/* The GNU C library defines this for functions which it implements
19663 to always fail with ENOSYS. Some functions are actually named
19664 something starting with __ and the normal name is an alias. */
19665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19666choke me
19667#else
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019668char (*f) () = $ac_func;
19669#endif
19670#ifdef __cplusplus
19671}
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019672#endif
19673
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019674int
19675main ()
19676{
19677return f != $ac_func;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext conftest$ac_exeext
19683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mostang.com!davidm046362a2003-12-05 06:42:28 +000019684 (eval $ac_link) 2>&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
mostang.com!davidm046362a2003-12-05 06:42:28 +000019688 { ac_try='test -s conftest$ac_exeext'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 eval "$as_ac_var=yes"
19695else
19696 echo "$as_me: failed program was:" >&5
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019697sed 's/^/| /' conftest.$ac_ext >&5
19698
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019699eval "$as_ac_var=no"
19700fi
mostang.com!davidm046362a2003-12-05 06:42:28 +000019701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019702fi
19703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19705if test `eval echo '${'$as_ac_var'}'` = yes; then
19706 cat >>confdefs.h <<_ACEOF
19707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19708_ACEOF
19709
19710fi
19711done
19712
19713
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019714get_arch() {
19715 case "$1" in
19716 i?86) echo x86;;
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000019717 hppa*) echo hppa;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019718 *) echo $1;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019719 esac
19720}
19721
19722build_arch=`get_arch $build_cpu`
19723target_arch=`get_arch $target_cpu`
19724
19725
19726
19727if test x$target_arch != x$build_arch; then
19728 REMOTE_ONLY_TRUE=
19729 REMOTE_ONLY_FALSE='#'
19730else
19731 REMOTE_ONLY_TRUE='#'
19732 REMOTE_ONLY_FALSE=
19733fi
19734
19735
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019736
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019737if test x$target_arch = xia64; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019738 ARCH_IA64_TRUE=
19739 ARCH_IA64_FALSE='#'
19740else
19741 ARCH_IA64_TRUE='#'
19742 ARCH_IA64_FALSE=
19743fi
19744
19745
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019746
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019747if test x$target_arch = xhppa; then
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000019748 ARCH_HPPA_TRUE=
19749 ARCH_HPPA_FALSE='#'
19750else
19751 ARCH_HPPA_TRUE='#'
19752 ARCH_HPPA_FALSE=
19753fi
19754
19755
19756
mostang.com!davidmf26451a2003-01-16 03:10:11 +000019757if test x$target_arch = xx86; then
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019758 ARCH_X86_TRUE=
19759 ARCH_X86_FALSE='#'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019760else
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019761 ARCH_X86_TRUE='#'
19762 ARCH_X86_FALSE=
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019763fi
19764
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019765
mostang.com!davidma8db0b32003-02-08 10:10:59 +000019766
19767if expr x$target_os : xlinux >/dev/null; then
19768 OS_LINUX_TRUE=
19769 OS_LINUX_FALSE='#'
19770else
19771 OS_LINUX_TRUE='#'
19772 OS_LINUX_FALSE=
19773fi
19774
19775
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019776
19777if expr x$target_os : xhpux >/dev/null; then
19778 OS_HPUX_TRUE=
19779 OS_HPUX_FALSE='#'
19780else
19781 OS_HPUX_TRUE='#'
19782 OS_HPUX_FALSE=
19783fi
19784
19785
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019786if test x$target_arch != x$build_arch; then
19787 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019788fi
mostang.com!davidm51e4d342002-12-12 09:17:41 +000019789 ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h"
19790
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019791
19792# Check whether --enable-debug or --disable-debug was given.
19793if test "${enable_debug+set}" = set; then
19794 enableval="$enable_debug"
19795 enable_debug=yes
19796fi;
19797
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019798if test "x$enable___thread" != xno; then
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000019799 echo "$as_me:$LINENO: checking for __thread" >&5
19800echo $ECHO_N "checking for __thread... $ECHO_C" >&6
19801if test "${libc_cv_gcc___thread+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803else
19804 cat > conftest.c <<\EOF
19805 __thread int a = 42;
19806EOF
19807 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; }; then
19813 libc_cv_gcc___thread=yes
19814 else
19815 libc_cv_gcc___thread=no
19816 fi
19817 rm -f conftest*
19818fi
19819echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
19820echo "${ECHO_T}$libc_cv_gcc___thread" >&6
19821 if test "$libc_cv_gcc___thread" = yes; then
mostang.com!davidm57f5fae2002-12-03 08:19:58 +000019822
19823cat >>confdefs.h <<\_ACEOF
mostang.com!davidmfb2c7eb2002-11-09 07:59:02 +000019824#define HAVE___THREAD 1
19825_ACEOF
19826
19827 fi
19828else
19829 libc_cv_gcc___thread=no
19830fi
19831
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019832if test x$GCC = xyes; then
mostang.com!davidma8db0b32003-02-08 10:10:59 +000019833 CFLAGS="${CFLAGS} -Wall -Wsign-compare"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019834fi
19835
mostang.com!davidm6af90d02003-02-15 08:53:55 +000019836CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
19837
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019838arch="$target_arch"
19839ARCH=`echo $target_arch | tr a-z A-Z`
19840
19841
19842
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000019843
19844 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex"
19845
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019846cat >confcache <<\_ACEOF
19847# This file is a shell script that caches the results of configure
19848# tests run on this system so they can be shared between configure
19849# scripts and configure runs, see configure's option --config-cache.
19850# It is not useful on other systems. If it contains results you don't
19851# want to keep, you may remove or edit it.
19852#
19853# config.status only pays attention to the cache file if you give it
19854# the --recheck option to rerun configure.
19855#
19856# `ac_cv_env_foo' variables (set or unset) will be overridden when
19857# loading this file, other *unset* `ac_cv_foo' will be assigned the
19858# following values.
19859
19860_ACEOF
19861
19862# The following way of writing the cache mishandles newlines in values,
19863# but we know of no workaround that is simple, portable, and efficient.
19864# So, don't put newlines in cache variables' values.
19865# Ultrix sh set writes to stderr and can't be redirected directly,
19866# and sets the high bit in the cache file unless we assign to the vars.
19867{
19868 (set) 2>&1 |
19869 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19870 *ac_space=\ *)
19871 # `set' does not quote correctly, so add quotes (double-quote
19872 # substitution turns \\\\ into \\, and sed turns \\ into \).
19873 sed -n \
mostang.com!davidm046362a2003-12-05 06:42:28 +000019874 "s/'/'\\\\''/g;
19875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019876 ;;
19877 *)
19878 # `set' quotes correctly as required by POSIX, so do not add quotes.
19879 sed -n \
mostang.com!davidm046362a2003-12-05 06:42:28 +000019880 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019881 ;;
19882 esac;
19883} |
19884 sed '
19885 t clear
19886 : clear
19887 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19888 t end
19889 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19890 : end' >>confcache
hp.com!davidm01b02dd2003-09-24 21:51:53 +000019891if diff $cache_file confcache >/dev/null 2>&1; then :; else
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019892 if test -w $cache_file; then
19893 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19894 cat confcache >$cache_file
19895 else
19896 echo "not updating unwritable cache $cache_file"
19897 fi
19898fi
19899rm -f confcache
19900
19901test "x$prefix" = xNONE && prefix=$ac_default_prefix
19902# Let make expand exec_prefix.
19903test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19904
19905# VPATH may cause trouble with some makes, so we remove $(srcdir),
19906# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19907# trailing colons and then remove the whole line if VPATH becomes empty
19908# (actually we leave an empty line to preserve line numbers).
19909if test "x$srcdir" = x.; then
mostang.com!davidm046362a2003-12-05 06:42:28 +000019910 ac_vpsub='/^[ ]*VPATH[ ]*=/{
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019911s/:*\$(srcdir):*/:/;
19912s/:*\${srcdir}:*/:/;
19913s/:*@srcdir@:*/:/;
mostang.com!davidm046362a2003-12-05 06:42:28 +000019914s/^\([^=]*=[ ]*\):*/\1/;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019915s/:*$//;
mostang.com!davidm046362a2003-12-05 06:42:28 +000019916s/^[^=]*=[ ]*$//;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019917}'
19918fi
19919
19920DEFS=-DHAVE_CONFIG_H
19921
19922ac_libobjs=
19923ac_ltlibobjs=
19924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19925 # 1. Remove the extension, and $U if already installed.
19926 ac_i=`echo "$ac_i" |
mostang.com!davidm046362a2003-12-05 06:42:28 +000019927 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019928 # 2. Add them.
19929 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19930 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19931done
19932LIBOBJS=$ac_libobjs
19933
19934LTLIBOBJS=$ac_ltlibobjs
19935
19936
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019937if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19938 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19939Usually this means the macro was only invoked conditionally." >&5
19940echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19941Usually this means the macro was only invoked conditionally." >&2;}
19942 { (exit 1); exit 1; }; }
19943fi
19944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19945 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19946Usually this means the macro was only invoked conditionally." >&5
19947echo "$as_me: error: conditional \"AMDEP\" was never defined.
19948Usually this means the macro was only invoked conditionally." >&2;}
19949 { (exit 1); exit 1; }; }
19950fi
19951if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
19952 { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
19953Usually this means the macro was only invoked conditionally." >&5
19954echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
19955Usually this means the macro was only invoked conditionally." >&2;}
19956 { (exit 1); exit 1; }; }
19957fi
19958if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
19959 { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
19960Usually this means the macro was only invoked conditionally." >&5
19961echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
19962Usually this means the macro was only invoked conditionally." >&2;}
19963 { (exit 1); exit 1; }; }
19964fi
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000019965if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
19966 { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
19967Usually this means the macro was only invoked conditionally." >&5
19968echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
19969Usually this means the macro was only invoked conditionally." >&2;}
19970 { (exit 1); exit 1; }; }
19971fi
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000019972if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
19973 { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
19974Usually this means the macro was only invoked conditionally." >&5
19975echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
19976Usually this means the macro was only invoked conditionally." >&2;}
19977 { (exit 1); exit 1; }; }
19978fi
mostang.com!davidma8db0b32003-02-08 10:10:59 +000019979if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
19980 { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
19981Usually this means the macro was only invoked conditionally." >&5
19982echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
19983Usually this means the macro was only invoked conditionally." >&2;}
19984 { (exit 1); exit 1; }; }
19985fi
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000019986if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
19987 { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
19988Usually this means the macro was only invoked conditionally." >&5
19989echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
19990Usually this means the macro was only invoked conditionally." >&2;}
19991 { (exit 1); exit 1; }; }
19992fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000019993
19994: ${CONFIG_STATUS=./config.status}
19995ac_clean_files_save=$ac_clean_files
19996ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19997{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19998echo "$as_me: creating $CONFIG_STATUS" >&6;}
19999cat >$CONFIG_STATUS <<_ACEOF
20000#! $SHELL
20001# Generated by $as_me.
20002# Run this file to recreate the current configuration.
20003# Compiler output produced by configure, useful for debugging
20004# configure, is in config.log if it exists.
20005
20006debug=false
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020007ac_cs_recheck=false
20008ac_cs_silent=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020009SHELL=\${CONFIG_SHELL-$SHELL}
20010_ACEOF
20011
20012cat >>$CONFIG_STATUS <<\_ACEOF
20013## --------------------- ##
20014## M4sh Initialization. ##
20015## --------------------- ##
20016
20017# Be Bourne compatible
20018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20019 emulate sh
20020 NULLCMD=:
20021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20022 # is contrary to our usage. Disable this feature.
20023 alias -g '${1+"$@"}'='"$@"'
20024elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20025 set -o posix
20026fi
20027
20028# Support unset when possible.
mostang.com!davidm046362a2003-12-05 06:42:28 +000020029if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020030 as_unset=unset
20031else
20032 as_unset=false
20033fi
20034
20035
20036# Work around bugs in pre-3.0 UWIN ksh.
20037$as_unset ENV MAIL MAILPATH
20038PS1='$ '
20039PS2='> '
20040PS4='+ '
20041
20042# NLS nuisances.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020043for as_var in \
20044 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20045 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20046 LC_TELEPHONE LC_TIME
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020047do
mostang.com!davidm046362a2003-12-05 06:42:28 +000020048 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020049 eval $as_var=C; export $as_var
20050 else
20051 $as_unset $as_var
20052 fi
20053done
20054
20055# Required to use basename.
20056if expr a : '\(a\)' >/dev/null 2>&1; then
20057 as_expr=expr
20058else
20059 as_expr=false
20060fi
20061
20062if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20063 as_basename=basename
20064else
20065 as_basename=false
20066fi
20067
20068
20069# Name of the executable.
20070as_me=`$as_basename "$0" ||
20071$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20072 X"$0" : 'X\(//\)$' \| \
20073 X"$0" : 'X\(/\)$' \| \
20074 . : '\(.\)' 2>/dev/null ||
20075echo X/"$0" |
20076 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20077 /^X\/\(\/\/\)$/{ s//\1/; q; }
20078 /^X\/\(\/\).*/{ s//\1/; q; }
20079 s/.*/./; q'`
20080
20081
20082# PATH needs CR, and LINENO needs CR and PATH.
20083# Avoid depending upon Character Ranges.
20084as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20086as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20087as_cr_digits='0123456789'
20088as_cr_alnum=$as_cr_Letters$as_cr_digits
20089
20090# The user is always right.
20091if test "${PATH_SEPARATOR+set}" != set; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020092 echo "#! /bin/sh" >conf$$.sh
20093 echo "exit 0" >>conf$$.sh
20094 chmod +x conf$$.sh
20095 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020096 PATH_SEPARATOR=';'
20097 else
20098 PATH_SEPARATOR=:
20099 fi
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020100 rm -f conf$$.sh
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020101fi
20102
20103
20104 as_lineno_1=$LINENO
20105 as_lineno_2=$LINENO
20106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20107 test "x$as_lineno_1" != "x$as_lineno_2" &&
20108 test "x$as_lineno_3" = "x$as_lineno_2" || {
20109 # Find who we are. Look in the path if we contain no path at all
20110 # relative or not.
20111 case $0 in
20112 *[\\/]* ) as_myself=$0 ;;
20113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20114for as_dir in $PATH
20115do
20116 IFS=$as_save_IFS
20117 test -z "$as_dir" && as_dir=.
20118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20119done
20120
20121 ;;
20122 esac
20123 # We did not find ourselves, most probably we were run as `sh COMMAND'
20124 # in which case we are not to be found in the path.
20125 if test "x$as_myself" = x; then
20126 as_myself=$0
20127 fi
20128 if test ! -f "$as_myself"; then
20129 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20130echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20131 { (exit 1); exit 1; }; }
20132 fi
20133 case $CONFIG_SHELL in
20134 '')
20135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20136for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20137do
20138 IFS=$as_save_IFS
20139 test -z "$as_dir" && as_dir=.
20140 for as_base in sh bash ksh sh5; do
20141 case $as_dir in
20142 /*)
20143 if ("$as_dir/$as_base" -c '
20144 as_lineno_1=$LINENO
20145 as_lineno_2=$LINENO
20146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20147 test "x$as_lineno_1" != "x$as_lineno_2" &&
20148 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20149 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20150 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20151 CONFIG_SHELL=$as_dir/$as_base
20152 export CONFIG_SHELL
20153 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20154 fi;;
20155 esac
20156 done
20157done
20158;;
20159 esac
20160
20161 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20162 # uniformly replaced by the line number. The first 'sed' inserts a
20163 # line-number line before each line; the second 'sed' does the real
20164 # work. The second script uses 'N' to pair each line-number line
20165 # with the numbered line, and appends trailing '-' during
20166 # substitution so that $LINENO is not a special case at line end.
20167 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20168 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20169 sed '=' <$as_myself |
20170 sed '
20171 N
20172 s,$,-,
20173 : loop
20174 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20175 t loop
20176 s,-$,,
20177 s,^['$as_cr_digits']*\n,,
20178 ' >$as_me.lineno &&
20179 chmod +x $as_me.lineno ||
20180 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20181echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20182 { (exit 1); exit 1; }; }
20183
20184 # Don't try to exec as it changes $[0], causing all sort of problems
20185 # (the dirname of $[0] is not the place where we might find the
20186 # original and so on. Autoconf is especially sensible to this).
20187 . ./$as_me.lineno
20188 # Exit status is that of the last command.
20189 exit
20190}
20191
20192
20193case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20194 *c*,-n*) ECHO_N= ECHO_C='
20195' ECHO_T=' ' ;;
20196 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20197 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20198esac
20199
20200if expr a : '\(a\)' >/dev/null 2>&1; then
20201 as_expr=expr
20202else
20203 as_expr=false
20204fi
20205
20206rm -f conf$$ conf$$.exe conf$$.file
20207echo >conf$$.file
20208if ln -s conf$$.file conf$$ 2>/dev/null; then
20209 # We could just check for DJGPP; but this test a) works b) is more generic
20210 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20211 if test -f conf$$.exe; then
20212 # Don't use ln at all; we don't have any links
20213 as_ln_s='cp -p'
20214 else
20215 as_ln_s='ln -s'
20216 fi
20217elif ln conf$$.file conf$$ 2>/dev/null; then
20218 as_ln_s=ln
20219else
20220 as_ln_s='cp -p'
20221fi
20222rm -f conf$$ conf$$.exe conf$$.file
20223
20224if mkdir -p . 2>/dev/null; then
20225 as_mkdir_p=:
20226else
20227 as_mkdir_p=false
20228fi
20229
20230as_executable_p="test -f"
20231
20232# Sed expression to map a string onto a valid CPP name.
mostang.com!davidm046362a2003-12-05 06:42:28 +000020233as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020234
20235# Sed expression to map a string onto a valid variable name.
mostang.com!davidm046362a2003-12-05 06:42:28 +000020236as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020237
20238
20239# IFS
20240# We need space, tab and new line, in precisely that order.
20241as_nl='
20242'
20243IFS=" $as_nl"
20244
20245# CDPATH.
20246$as_unset CDPATH
20247
20248exec 6>&1
20249
20250# Open the log real soon, to keep \$[0] and so on meaningful, and to
20251# report actual input values of CONFIG_FILES etc. instead of their
20252# values after options handling. Logging --version etc. is OK.
20253exec 5>>config.log
20254{
20255 echo
20256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20257## Running $as_me. ##
20258_ASBOX
20259} >&5
20260cat >&5 <<_CSEOF
20261
mostang.com!davidm046362a2003-12-05 06:42:28 +000020262This file was extended by libunwind $as_me 0.96, which was
20263generated by GNU Autoconf 2.57. Invocation command line was
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020264
20265 CONFIG_FILES = $CONFIG_FILES
20266 CONFIG_HEADERS = $CONFIG_HEADERS
20267 CONFIG_LINKS = $CONFIG_LINKS
20268 CONFIG_COMMANDS = $CONFIG_COMMANDS
20269 $ $0 $@
20270
20271_CSEOF
20272echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20273echo >&5
20274_ACEOF
20275
20276# Files that config.status was made for.
20277if test -n "$ac_config_files"; then
20278 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20279fi
20280
20281if test -n "$ac_config_headers"; then
20282 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20283fi
20284
20285if test -n "$ac_config_links"; then
20286 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20287fi
20288
20289if test -n "$ac_config_commands"; then
20290 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20291fi
20292
20293cat >>$CONFIG_STATUS <<\_ACEOF
20294
20295ac_cs_usage="\
20296\`$as_me' instantiates files from templates according to the
20297current configuration.
20298
20299Usage: $0 [OPTIONS] [FILE]...
20300
20301 -h, --help print this help, then exit
20302 -V, --version print version number, then exit
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020303 -q, --quiet do not print progress messages
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020304 -d, --debug don't remove temporary files
20305 --recheck update $as_me by reconfiguring in the same conditions
20306 --file=FILE[:TEMPLATE]
mostang.com!davidm046362a2003-12-05 06:42:28 +000020307 instantiate the configuration file FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020308 --header=FILE[:TEMPLATE]
mostang.com!davidm046362a2003-12-05 06:42:28 +000020309 instantiate the configuration header FILE
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020310
20311Configuration files:
20312$config_files
20313
20314Configuration headers:
20315$config_headers
20316
20317Configuration links:
20318$config_links
20319
20320Configuration commands:
20321$config_commands
20322
20323Report bugs to <bug-autoconf@gnu.org>."
20324_ACEOF
20325
20326cat >>$CONFIG_STATUS <<_ACEOF
20327ac_cs_version="\\
mostang.com!davidm046362a2003-12-05 06:42:28 +000020328libunwind config.status 0.96
20329configured by $0, generated by GNU Autoconf 2.57,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020330 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20331
mostang.com!davidm046362a2003-12-05 06:42:28 +000020332Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20333Free Software Foundation, Inc.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020334This config.status script is free software; the Free Software Foundation
20335gives unlimited permission to copy, distribute and modify it."
20336srcdir=$srcdir
20337INSTALL="$INSTALL"
20338_ACEOF
20339
20340cat >>$CONFIG_STATUS <<\_ACEOF
20341# If no file are specified by the user, then we need to provide default
20342# value. By we need to know if files were specified by the user.
20343ac_need_defaults=:
20344while test $# != 0
20345do
20346 case $1 in
20347 --*=*)
20348 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20349 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20350 ac_shift=:
20351 ;;
20352 -*)
20353 ac_option=$1
20354 ac_optarg=$2
20355 ac_shift=shift
20356 ;;
20357 *) # This is not an option, so the user has probably given explicit
20358 # arguments.
20359 ac_option=$1
20360 ac_need_defaults=false;;
20361 esac
20362
20363 case $ac_option in
20364 # Handling of the options.
20365_ACEOF
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020366cat >>$CONFIG_STATUS <<\_ACEOF
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20368 ac_cs_recheck=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020369 --version | --vers* | -V )
20370 echo "$ac_cs_version"; exit 0 ;;
20371 --he | --h)
20372 # Conflict between --help and --header
20373 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20374Try \`$0 --help' for more information." >&5
20375echo "$as_me: error: ambiguous option: $1
20376Try \`$0 --help' for more information." >&2;}
20377 { (exit 1); exit 1; }; };;
20378 --help | --hel | -h )
20379 echo "$ac_cs_usage"; exit 0 ;;
20380 --debug | --d* | -d )
20381 debug=: ;;
20382 --file | --fil | --fi | --f )
20383 $ac_shift
20384 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20385 ac_need_defaults=false;;
20386 --header | --heade | --head | --hea )
20387 $ac_shift
20388 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20389 ac_need_defaults=false;;
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20391 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20392 ac_cs_silent=: ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020393
20394 # This is an error.
20395 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20396Try \`$0 --help' for more information." >&5
20397echo "$as_me: error: unrecognized option: $1
20398Try \`$0 --help' for more information." >&2;}
20399 { (exit 1); exit 1; }; } ;;
20400
20401 *) ac_config_targets="$ac_config_targets $1" ;;
20402
20403 esac
20404 shift
20405done
20406
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020407ac_configure_extra_args=
20408
20409if $ac_cs_silent; then
20410 exec 6>/dev/null
20411 ac_configure_extra_args="$ac_configure_extra_args --silent"
20412fi
20413
20414_ACEOF
20415cat >>$CONFIG_STATUS <<_ACEOF
20416if \$ac_cs_recheck; then
20417 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20418 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20419fi
20420
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020421_ACEOF
20422
20423cat >>$CONFIG_STATUS <<_ACEOF
20424#
20425# INIT-COMMANDS section.
20426#
20427
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020428AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020429
20430_ACEOF
20431
20432
20433
20434cat >>$CONFIG_STATUS <<\_ACEOF
20435for ac_config_target in $ac_config_targets
20436do
20437 case "$ac_config_target" in
20438 # Handling of arguments.
20439 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20440 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20441 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20442 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
mostang.com!davidmf648f6f2003-01-17 07:48:52 +000020443 "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020444 "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;;
mostang.com!davidm51e4d342002-12-12 09:17:41 +000020445 "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;;
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020446 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020447 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20448 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20449echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20450 { (exit 1); exit 1; }; };;
20451 esac
20452done
20453
20454# If the user did not use the arguments to specify the items to instantiate,
20455# then the envvar interface is used. Set only those that are not.
20456# We use the long form for the default assignment because of an extremely
20457# bizarre bug on SunOS 4.1.3.
20458if $ac_need_defaults; then
20459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20461 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20462 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20463fi
20464
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020465# Have a temporary directory for convenience. Make it in the build tree
20466# simply because there is no reason to put it here, and in addition,
20467# creating and moving files from /tmp can sometimes cause problems.
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020468# Create a temporary directory, and hook for its removal unless debugging.
20469$debug ||
20470{
20471 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20472 trap '{ (exit 1); exit 1; }' 1 2 13 15
20473}
20474
20475# Create a (secure) tmp directory for tmp files.
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020476
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020477{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020478 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020479 test -n "$tmp" && test -d "$tmp"
20480} ||
20481{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020482 tmp=./confstat$$-$RANDOM
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020483 (umask 077 && mkdir $tmp)
20484} ||
20485{
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020486 echo "$me: cannot create a temporary directory in ." >&2
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020487 { (exit 1); exit 1; }
20488}
20489
20490_ACEOF
20491
20492cat >>$CONFIG_STATUS <<_ACEOF
20493
20494#
20495# CONFIG_FILES section.
20496#
20497
20498# No need to generate the scripts if there are no CONFIG_FILES.
20499# This happens for instance when ./config.status config.h
20500if test -n "\$CONFIG_FILES"; then
20501 # Protect against being on the right side of a sed subst in config.status.
20502 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20503 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20504s,@SHELL@,$SHELL,;t t
20505s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20506s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20507s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20508s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20509s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20510s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20511s,@exec_prefix@,$exec_prefix,;t t
20512s,@prefix@,$prefix,;t t
20513s,@program_transform_name@,$program_transform_name,;t t
20514s,@bindir@,$bindir,;t t
20515s,@sbindir@,$sbindir,;t t
20516s,@libexecdir@,$libexecdir,;t t
20517s,@datadir@,$datadir,;t t
20518s,@sysconfdir@,$sysconfdir,;t t
20519s,@sharedstatedir@,$sharedstatedir,;t t
20520s,@localstatedir@,$localstatedir,;t t
20521s,@libdir@,$libdir,;t t
20522s,@includedir@,$includedir,;t t
20523s,@oldincludedir@,$oldincludedir,;t t
20524s,@infodir@,$infodir,;t t
20525s,@mandir@,$mandir,;t t
20526s,@build_alias@,$build_alias,;t t
20527s,@host_alias@,$host_alias,;t t
20528s,@target_alias@,$target_alias,;t t
20529s,@DEFS@,$DEFS,;t t
20530s,@ECHO_C@,$ECHO_C,;t t
20531s,@ECHO_N@,$ECHO_N,;t t
20532s,@ECHO_T@,$ECHO_T,;t t
20533s,@LIBS@,$LIBS,;t t
20534s,@build@,$build,;t t
20535s,@build_cpu@,$build_cpu,;t t
20536s,@build_vendor@,$build_vendor,;t t
20537s,@build_os@,$build_os,;t t
20538s,@host@,$host,;t t
20539s,@host_cpu@,$host_cpu,;t t
20540s,@host_vendor@,$host_vendor,;t t
20541s,@host_os@,$host_os,;t t
20542s,@target@,$target,;t t
20543s,@target_cpu@,$target_cpu,;t t
20544s,@target_vendor@,$target_vendor,;t t
20545s,@target_os@,$target_os,;t t
20546s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20547s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20548s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20549s,@PACKAGE@,$PACKAGE,;t t
20550s,@VERSION@,$VERSION,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020551s,@ACLOCAL@,$ACLOCAL,;t t
20552s,@AUTOCONF@,$AUTOCONF,;t t
20553s,@AUTOMAKE@,$AUTOMAKE,;t t
20554s,@AUTOHEADER@,$AUTOHEADER,;t t
20555s,@MAKEINFO@,$MAKEINFO,;t t
20556s,@AMTAR@,$AMTAR,;t t
20557s,@install_sh@,$install_sh,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020558s,@STRIP@,$STRIP,;t t
20559s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020560s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20561s,@AWK@,$AWK,;t t
20562s,@SET_MAKE@,$SET_MAKE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020563s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20564s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20565s,@MAINT@,$MAINT,;t t
20566s,@CC@,$CC,;t t
20567s,@CFLAGS@,$CFLAGS,;t t
20568s,@LDFLAGS@,$LDFLAGS,;t t
20569s,@CPPFLAGS@,$CPPFLAGS,;t t
20570s,@ac_ct_CC@,$ac_ct_CC,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020571s,@EXEEXT@,$EXEEXT,;t t
20572s,@OBJEXT@,$OBJEXT,;t t
20573s,@DEPDIR@,$DEPDIR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020574s,@am__include@,$am__include,;t t
20575s,@am__quote@,$am__quote,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020576s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20577s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20578s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020579s,@CCDEPMODE@,$CCDEPMODE,;t t
mostang.com!davidm4f17bce2003-03-28 07:43:22 +000020580s,@CXX@,$CXX,;t t
20581s,@CXXFLAGS@,$CXXFLAGS,;t t
20582s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20583s,@CXXDEPMODE@,$CXXDEPMODE,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020584s,@EGREP@,$EGREP,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020585s,@LN_S@,$LN_S,;t t
20586s,@ECHO@,$ECHO,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020587s,@AR@,$AR,;t t
20588s,@ac_ct_AR@,$ac_ct_AR,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020589s,@RANLIB@,$RANLIB,;t t
20590s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020591s,@CPP@,$CPP,;t t
hp.com!davidmc3fa0b62003-11-24 21:37:22 +000020592s,@CXXCPP@,$CXXCPP,;t t
20593s,@F77@,$F77,;t t
20594s,@FFLAGS@,$FFLAGS,;t t
20595s,@ac_ct_F77@,$ac_ct_F77,;t t
mostang.com!davidmf26451a2003-01-16 03:10:11 +000020596s,@LIBTOOL@,$LIBTOOL,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020597s,@CCAS@,$CCAS,;t t
20598s,@CCASFLAGS@,$CCASFLAGS,;t t
mostang.com!davidm6af90d02003-02-15 08:53:55 +000020599s,@LIBOBJS@,$LIBOBJS,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020600s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t
20601s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t
20602s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t
20603s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t
mostang.com!davidm8d5c44b2003-01-14 07:11:56 +000020604s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t
20605s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000020606s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t
20607s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t
mostang.com!davidma8db0b32003-02-08 10:10:59 +000020608s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t
20609s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t
mostang.com!davidm6ab15cd2003-04-03 07:59:15 +000020610s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t
20611s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020612s,@arch@,$arch,;t t
20613s,@ARCH@,$ARCH,;t t
20614s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20615CEOF
20616
20617_ACEOF
20618
20619 cat >>$CONFIG_STATUS <<\_ACEOF
20620 # Split the substitutions into bite-sized pieces for seds with
20621 # small command number limits, like on Digital OSF/1 and HP-UX.
20622 ac_max_sed_lines=48
20623 ac_sed_frag=1 # Number of current file.
20624 ac_beg=1 # First line for current file.
20625 ac_end=$ac_max_sed_lines # Line after last line for current file.
20626 ac_more_lines=:
20627 ac_sed_cmds=
20628 while $ac_more_lines; do
20629 if test $ac_beg -gt 1; then
20630 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20631 else
20632 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20633 fi
20634 if test ! -s $tmp/subs.frag; then
20635 ac_more_lines=false
20636 else
20637 # The purpose of the label and of the branching condition is to
20638 # speed up the sed processing (if there are no `@' at all, there
20639 # is no need to browse any of the substitutions).
20640 # These are the two extra sed commands mentioned above.
20641 (echo ':t
20642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20643 if test -z "$ac_sed_cmds"; then
mostang.com!davidm046362a2003-12-05 06:42:28 +000020644 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020645 else
mostang.com!davidm046362a2003-12-05 06:42:28 +000020646 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020647 fi
20648 ac_sed_frag=`expr $ac_sed_frag + 1`
20649 ac_beg=$ac_end
20650 ac_end=`expr $ac_end + $ac_max_sed_lines`
20651 fi
20652 done
20653 if test -z "$ac_sed_cmds"; then
20654 ac_sed_cmds=cat
20655 fi
20656fi # test -n "$CONFIG_FILES"
20657
20658_ACEOF
20659cat >>$CONFIG_STATUS <<\_ACEOF
20660for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20662 case $ac_file in
20663 - | *:- | *:-:* ) # input from stdin
mostang.com!davidm046362a2003-12-05 06:42:28 +000020664 cat >$tmp/stdin
20665 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020667 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000020668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020669 * ) ac_file_in=$ac_file.in ;;
20670 esac
20671
20672 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20673 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000020675 X"$ac_file" : 'X\(//\)[^/]' \| \
20676 X"$ac_file" : 'X\(//\)$' \| \
20677 X"$ac_file" : 'X\(/\)' \| \
20678 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020679echo X"$ac_file" |
20680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20682 /^X\(\/\/\)$/{ s//\1/; q; }
20683 /^X\(\/\).*/{ s//\1/; q; }
20684 s/.*/./; q'`
20685 { if $as_mkdir_p; then
20686 mkdir -p "$ac_dir"
20687 else
20688 as_dir="$ac_dir"
20689 as_dirs=
20690 while test ! -d "$as_dir"; do
20691 as_dirs="$as_dir $as_dirs"
20692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000020694 X"$as_dir" : 'X\(//\)[^/]' \| \
20695 X"$as_dir" : 'X\(//\)$' \| \
20696 X"$as_dir" : 'X\(/\)' \| \
20697 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020698echo X"$as_dir" |
20699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20701 /^X\(\/\/\)$/{ s//\1/; q; }
20702 /^X\(\/\).*/{ s//\1/; q; }
20703 s/.*/./; q'`
20704 done
20705 test ! -n "$as_dirs" || mkdir $as_dirs
20706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20708 { (exit 1); exit 1; }; }; }
20709
20710 ac_builddir=.
20711
20712if test "$ac_dir" != .; then
20713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20714 # A "../" for each directory in $ac_dir_suffix.
20715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20716else
20717 ac_dir_suffix= ac_top_builddir=
20718fi
20719
20720case $srcdir in
20721 .) # No --srcdir option. We are building in place.
20722 ac_srcdir=.
20723 if test -z "$ac_top_builddir"; then
20724 ac_top_srcdir=.
20725 else
20726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20727 fi ;;
20728 [\\/]* | ?:[\\/]* ) # Absolute path.
20729 ac_srcdir=$srcdir$ac_dir_suffix;
20730 ac_top_srcdir=$srcdir ;;
20731 *) # Relative path.
20732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20734esac
mostang.com!davidm046362a2003-12-05 06:42:28 +000020735# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20736# absolute.
20737ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20738ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20739ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20740ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020741
20742
20743 case $INSTALL in
20744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20745 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20746 esac
20747
20748 if test x"$ac_file" != x-; then
20749 { echo "$as_me:$LINENO: creating $ac_file" >&5
20750echo "$as_me: creating $ac_file" >&6;}
20751 rm -f "$ac_file"
20752 fi
20753 # Let's still pretend it is `configure' which instantiates (i.e., don't
20754 # use $as_me), people would be surprised to read:
20755 # /* config.h. Generated by config.status. */
20756 if test x"$ac_file" = x-; then
20757 configure_input=
20758 else
20759 configure_input="$ac_file. "
20760 fi
20761 configure_input=$configure_input"Generated from `echo $ac_file_in |
mostang.com!davidm046362a2003-12-05 06:42:28 +000020762 sed 's,.*/,,'` by configure."
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020763
20764 # First look for the input files in the build tree, otherwise in the
20765 # src tree.
20766 ac_file_inputs=`IFS=:
20767 for f in $ac_file_in; do
20768 case $f in
20769 -) echo $tmp/stdin ;;
20770 [\\/$]*)
mostang.com!davidm046362a2003-12-05 06:42:28 +000020771 # Absolute (can't be DOS-style, as IFS=:)
20772 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020773echo "$as_me: error: cannot find input file: $f" >&2;}
20774 { (exit 1); exit 1; }; }
mostang.com!davidm046362a2003-12-05 06:42:28 +000020775 echo $f;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020776 *) # Relative
mostang.com!davidm046362a2003-12-05 06:42:28 +000020777 if test -f "$f"; then
20778 # Build tree
20779 echo $f
20780 elif test -f "$srcdir/$f"; then
20781 # Source tree
20782 echo $srcdir/$f
20783 else
20784 # /dev/null tree
20785 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020786echo "$as_me: error: cannot find input file: $f" >&2;}
20787 { (exit 1); exit 1; }; }
mostang.com!davidm046362a2003-12-05 06:42:28 +000020788 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020789 esac
20790 done` || { (exit 1); exit 1; }
20791_ACEOF
20792cat >>$CONFIG_STATUS <<_ACEOF
20793 sed "$ac_vpsub
20794$extrasub
20795_ACEOF
20796cat >>$CONFIG_STATUS <<\_ACEOF
20797:t
20798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20799s,@configure_input@,$configure_input,;t t
20800s,@srcdir@,$ac_srcdir,;t t
20801s,@abs_srcdir@,$ac_abs_srcdir,;t t
20802s,@top_srcdir@,$ac_top_srcdir,;t t
20803s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20804s,@builddir@,$ac_builddir,;t t
20805s,@abs_builddir@,$ac_abs_builddir,;t t
20806s,@top_builddir@,$ac_top_builddir,;t t
20807s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20808s,@INSTALL@,$ac_INSTALL,;t t
20809" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20810 rm -f $tmp/stdin
20811 if test x"$ac_file" != x-; then
20812 mv $tmp/out $ac_file
20813 else
20814 cat $tmp/out
20815 rm -f $tmp/out
20816 fi
20817
20818done
20819_ACEOF
20820cat >>$CONFIG_STATUS <<\_ACEOF
20821
20822#
20823# CONFIG_HEADER section.
20824#
20825
20826# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20827# NAME is the cpp macro being defined and VALUE is the value it is being given.
20828#
20829# ac_d sets the value in "#define NAME VALUE" lines.
mostang.com!davidm046362a2003-12-05 06:42:28 +000020830ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20831ac_dB='[ ].*$,\1#\2'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020832ac_dC=' '
20833ac_dD=',;t'
20834# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
mostang.com!davidm046362a2003-12-05 06:42:28 +000020835ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020836ac_uB='$,\1#\2define\3'
20837ac_uC=' '
20838ac_uD=',;t'
20839
20840for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20842 case $ac_file in
20843 - | *:- | *:-:* ) # input from stdin
mostang.com!davidm046362a2003-12-05 06:42:28 +000020844 cat >$tmp/stdin
20845 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020847 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
mostang.com!davidm046362a2003-12-05 06:42:28 +000020848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020849 * ) ac_file_in=$ac_file.in ;;
20850 esac
20851
20852 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20853echo "$as_me: creating $ac_file" >&6;}
20854
20855 # First look for the input files in the build tree, otherwise in the
20856 # src tree.
20857 ac_file_inputs=`IFS=:
20858 for f in $ac_file_in; do
20859 case $f in
20860 -) echo $tmp/stdin ;;
20861 [\\/$]*)
mostang.com!davidm046362a2003-12-05 06:42:28 +000020862 # Absolute (can't be DOS-style, as IFS=:)
20863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020864echo "$as_me: error: cannot find input file: $f" >&2;}
20865 { (exit 1); exit 1; }; }
mostang.com!davidm046362a2003-12-05 06:42:28 +000020866 echo $f;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020867 *) # Relative
mostang.com!davidm046362a2003-12-05 06:42:28 +000020868 if test -f "$f"; then
20869 # Build tree
20870 echo $f
20871 elif test -f "$srcdir/$f"; then
20872 # Source tree
20873 echo $srcdir/$f
20874 else
20875 # /dev/null tree
20876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020877echo "$as_me: error: cannot find input file: $f" >&2;}
20878 { (exit 1); exit 1; }; }
mostang.com!davidm046362a2003-12-05 06:42:28 +000020879 fi;;
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020880 esac
20881 done` || { (exit 1); exit 1; }
20882 # Remove the trailing spaces.
mostang.com!davidm046362a2003-12-05 06:42:28 +000020883 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020884
20885_ACEOF
20886
20887# Transform confdefs.h into two sed scripts, `conftest.defines' and
20888# `conftest.undefs', that substitutes the proper values into
20889# config.h.in to produce config.h. The first handles `#define'
20890# templates, and the second `#undef' templates.
20891# And first: Protect against being on the right side of a sed subst in
20892# config.status. Protect against being in an unquoted here document
20893# in config.status.
20894rm -f conftest.defines conftest.undefs
20895# Using a here document instead of a string reduces the quoting nightmare.
20896# Putting comments in sed scripts is not portable.
20897#
20898# `end' is used to avoid that the second main sed command (meant for
20899# 0-ary CPP macros) applies to n-ary macro definitions.
20900# See the Autoconf documentation for `clear'.
20901cat >confdef2sed.sed <<\_ACEOF
20902s/[\\&,]/\\&/g
20903s,[\\$`],\\&,g
20904t clear
20905: clear
mostang.com!davidm046362a2003-12-05 06:42:28 +000020906s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020907t end
mostang.com!davidm046362a2003-12-05 06:42:28 +000020908s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020909: end
20910_ACEOF
20911# If some macros were called several times there might be several times
20912# the same #defines, which is useless. Nevertheless, we may not want to
20913# sort them, since we want the *last* AC-DEFINE to be honored.
20914uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20915sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20916rm -f confdef2sed.sed
20917
20918# This sed command replaces #undef with comments. This is necessary, for
20919# example, in the case of _POSIX_SOURCE, which is predefined and required
20920# on some systems where configure will not decide to define it.
20921cat >>conftest.undefs <<\_ACEOF
mostang.com!davidm046362a2003-12-05 06:42:28 +000020922s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020923_ACEOF
20924
20925# Break up conftest.defines because some shells have a limit on the size
20926# of here documents, and old seds have small limits too (100 cmds).
20927echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
mostang.com!davidm046362a2003-12-05 06:42:28 +000020928echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020929echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20930echo ' :' >>$CONFIG_STATUS
20931rm -f conftest.tail
20932while grep . conftest.defines >/dev/null
20933do
20934 # Write a limited-size here document to $tmp/defines.sed.
20935 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20936 # Speed up: don't consider the non `#define' lines.
mostang.com!davidm046362a2003-12-05 06:42:28 +000020937 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020938 # Work around the forget-to-reset-the-flag bug.
20939 echo 't clr' >>$CONFIG_STATUS
20940 echo ': clr' >>$CONFIG_STATUS
20941 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20942 echo 'CEOF
20943 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20944 rm -f $tmp/in
20945 mv $tmp/out $tmp/in
20946' >>$CONFIG_STATUS
20947 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20948 rm -f conftest.defines
20949 mv conftest.tail conftest.defines
20950done
20951rm -f conftest.defines
20952echo ' fi # grep' >>$CONFIG_STATUS
20953echo >>$CONFIG_STATUS
20954
20955# Break up conftest.undefs because some shells have a limit on the size
20956# of here documents, and old seds have small limits too (100 cmds).
20957echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20958rm -f conftest.tail
20959while grep . conftest.undefs >/dev/null
20960do
20961 # Write a limited-size here document to $tmp/undefs.sed.
20962 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20963 # Speed up: don't consider the non `#undef'
mostang.com!davidm046362a2003-12-05 06:42:28 +000020964 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020965 # Work around the forget-to-reset-the-flag bug.
20966 echo 't clr' >>$CONFIG_STATUS
20967 echo ': clr' >>$CONFIG_STATUS
20968 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20969 echo 'CEOF
20970 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20971 rm -f $tmp/in
20972 mv $tmp/out $tmp/in
20973' >>$CONFIG_STATUS
20974 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20975 rm -f conftest.undefs
20976 mv conftest.tail conftest.undefs
20977done
20978rm -f conftest.undefs
20979
20980cat >>$CONFIG_STATUS <<\_ACEOF
20981 # Let's still pretend it is `configure' which instantiates (i.e., don't
20982 # use $as_me), people would be surprised to read:
20983 # /* config.h. Generated by config.status. */
20984 if test x"$ac_file" = x-; then
20985 echo "/* Generated by configure. */" >$tmp/config.h
20986 else
20987 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20988 fi
20989 cat $tmp/in >>$tmp/config.h
20990 rm -f $tmp/in
20991 if test x"$ac_file" != x-; then
hp.com!davidm01b02dd2003-09-24 21:51:53 +000020992 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000020993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20994echo "$as_me: $ac_file is unchanged" >&6;}
20995 else
20996 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20997$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000020998 X"$ac_file" : 'X\(//\)[^/]' \| \
20999 X"$ac_file" : 'X\(//\)$' \| \
21000 X"$ac_file" : 'X\(/\)' \| \
21001 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021002echo X"$ac_file" |
21003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21005 /^X\(\/\/\)$/{ s//\1/; q; }
21006 /^X\(\/\).*/{ s//\1/; q; }
21007 s/.*/./; q'`
21008 { if $as_mkdir_p; then
21009 mkdir -p "$ac_dir"
21010 else
21011 as_dir="$ac_dir"
21012 as_dirs=
21013 while test ! -d "$as_dir"; do
21014 as_dirs="$as_dir $as_dirs"
21015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021017 X"$as_dir" : 'X\(//\)[^/]' \| \
21018 X"$as_dir" : 'X\(//\)$' \| \
21019 X"$as_dir" : 'X\(/\)' \| \
21020 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021021echo X"$as_dir" |
21022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21024 /^X\(\/\/\)$/{ s//\1/; q; }
21025 /^X\(\/\).*/{ s//\1/; q; }
21026 s/.*/./; q'`
21027 done
21028 test ! -n "$as_dirs" || mkdir $as_dirs
21029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21030echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21031 { (exit 1); exit 1; }; }; }
21032
21033 rm -f $ac_file
21034 mv $tmp/config.h $ac_file
21035 fi
21036 else
21037 cat $tmp/config.h
21038 rm -f $tmp/config.h
21039 fi
21040 # Run the commands associated with the file.
21041 case $ac_file in
21042 include/config.h ) # update the timestamp
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021043echo 'timestamp for include/config.h' >"include/stamp-h1"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021044 ;;
21045 esac
21046done
21047_ACEOF
21048cat >>$CONFIG_STATUS <<\_ACEOF
21049
21050#
21051# CONFIG_LINKS section.
21052#
21053
21054for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
21055 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21056 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21057
21058 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
21059echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
21060
21061 if test ! -r $srcdir/$ac_source; then
21062 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
21063echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
21064 { (exit 1); exit 1; }; }
21065 fi
21066 rm -f $ac_dest
21067
21068 # Make relative symlinks.
21069 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
21070$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021071 X"$ac_dest" : 'X\(//\)[^/]' \| \
21072 X"$ac_dest" : 'X\(//\)$' \| \
21073 X"$ac_dest" : 'X\(/\)' \| \
21074 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021075echo X"$ac_dest" |
21076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21078 /^X\(\/\/\)$/{ s//\1/; q; }
21079 /^X\(\/\).*/{ s//\1/; q; }
21080 s/.*/./; q'`
21081 { if $as_mkdir_p; then
21082 mkdir -p "$ac_dest_dir"
21083 else
21084 as_dir="$ac_dest_dir"
21085 as_dirs=
21086 while test ! -d "$as_dir"; do
21087 as_dirs="$as_dir $as_dirs"
21088 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21089$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021090 X"$as_dir" : 'X\(//\)[^/]' \| \
21091 X"$as_dir" : 'X\(//\)$' \| \
21092 X"$as_dir" : 'X\(/\)' \| \
21093 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021094echo X"$as_dir" |
21095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21097 /^X\(\/\/\)$/{ s//\1/; q; }
21098 /^X\(\/\).*/{ s//\1/; q; }
21099 s/.*/./; q'`
21100 done
21101 test ! -n "$as_dirs" || mkdir $as_dirs
21102 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
21103echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
21104 { (exit 1); exit 1; }; }; }
21105
21106 ac_builddir=.
21107
21108if test "$ac_dest_dir" != .; then
21109 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
21110 # A "../" for each directory in $ac_dir_suffix.
21111 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21112else
21113 ac_dir_suffix= ac_top_builddir=
21114fi
21115
21116case $srcdir in
21117 .) # No --srcdir option. We are building in place.
21118 ac_srcdir=.
21119 if test -z "$ac_top_builddir"; then
21120 ac_top_srcdir=.
21121 else
21122 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21123 fi ;;
21124 [\\/]* | ?:[\\/]* ) # Absolute path.
21125 ac_srcdir=$srcdir$ac_dir_suffix;
21126 ac_top_srcdir=$srcdir ;;
21127 *) # Relative path.
21128 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21129 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21130esac
mostang.com!davidm046362a2003-12-05 06:42:28 +000021131# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
21132# absolute.
21133ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
21134ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
21135ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
21136ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021137
21138
21139 case $srcdir in
21140 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
21141 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
21142 esac
21143
21144 # Try a symlink, then a hard link, then a copy.
21145 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
21146 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
21147 cp -p $srcdir/$ac_source $ac_dest ||
21148 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
21149echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
21150 { (exit 1); exit 1; }; }
21151done
21152_ACEOF
21153cat >>$CONFIG_STATUS <<\_ACEOF
21154
21155#
21156# CONFIG_COMMANDS section.
21157#
21158for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21159 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21160 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21161 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21162$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021163 X"$ac_dest" : 'X\(//\)[^/]' \| \
21164 X"$ac_dest" : 'X\(//\)$' \| \
21165 X"$ac_dest" : 'X\(/\)' \| \
21166 . : '\(.\)' 2>/dev/null ||
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021167echo X"$ac_dest" |
21168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21170 /^X\(\/\/\)$/{ s//\1/; q; }
21171 /^X\(\/\).*/{ s//\1/; q; }
21172 s/.*/./; q'`
21173 ac_builddir=.
21174
21175if test "$ac_dir" != .; then
21176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21177 # A "../" for each directory in $ac_dir_suffix.
21178 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21179else
21180 ac_dir_suffix= ac_top_builddir=
21181fi
21182
21183case $srcdir in
21184 .) # No --srcdir option. We are building in place.
21185 ac_srcdir=.
21186 if test -z "$ac_top_builddir"; then
21187 ac_top_srcdir=.
21188 else
21189 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21190 fi ;;
21191 [\\/]* | ?:[\\/]* ) # Absolute path.
21192 ac_srcdir=$srcdir$ac_dir_suffix;
21193 ac_top_srcdir=$srcdir ;;
21194 *) # Relative path.
21195 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21196 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21197esac
mostang.com!davidm046362a2003-12-05 06:42:28 +000021198# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
21199# absolute.
21200ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
21201ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
21202ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
21203ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021204
21205
21206 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21207echo "$as_me: executing $ac_dest commands" >&6;}
21208 case $ac_dest in
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021209 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21210 # Strip MF so we end up with the name of the file.
21211 mf=`echo "$mf" | sed -e 's/:.*$//'`
21212 # Check whether this is an Automake generated Makefile or not.
21213 # We used to match only the files named `Makefile.in', but
21214 # some people rename them; so instead we look at the file content.
21215 # Grep'ing the first line is not enough: some people post-process
21216 # each Makefile.in and add a new line on top of each file to say so.
21217 # So let's grep whole file.
21218 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21219 dirpart=`(dirname "$mf") 2>/dev/null ||
21220$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021221 X"$mf" : 'X\(//\)[^/]' \| \
21222 X"$mf" : 'X\(//\)$' \| \
21223 X"$mf" : 'X\(/\)' \| \
21224 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021225echo X"$mf" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21228 /^X\(\/\/\)$/{ s//\1/; q; }
21229 /^X\(\/\).*/{ s//\1/; q; }
21230 s/.*/./; q'`
21231 else
21232 continue
21233 fi
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021234 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21235 # Extract the definition of DEP_FILES from the Makefile without
21236 # running `make'.
21237 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21238 test -z "$DEPDIR" && continue
21239 # When using ansi2knr, U may be empty or an underscore; expand it
21240 U=`sed -n -e '/^U = / s///p' < "$mf"`
21241 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21242 # We invoke sed twice because it is the simplest approach to
21243 # changing $(DEPDIR) to its actual value in the expansion.
21244 for file in `sed -n -e '
21245 /^DEP_FILES = .*\\\\$/ {
21246 s/^DEP_FILES = //
21247 :loop
21248 s/\\\\$//
21249 p
21250 n
21251 /\\\\$/ b loop
21252 p
21253 }
21254 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21256 # Make sure the directory exists.
21257 test -f "$dirpart/$file" && continue
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021258 fdir=`(dirname "$file") 2>/dev/null ||
21259$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021260 X"$file" : 'X\(//\)[^/]' \| \
21261 X"$file" : 'X\(//\)$' \| \
21262 X"$file" : 'X\(/\)' \| \
21263 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021264echo X"$file" |
21265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21267 /^X\(\/\/\)$/{ s//\1/; q; }
21268 /^X\(\/\).*/{ s//\1/; q; }
21269 s/.*/./; q'`
21270 { if $as_mkdir_p; then
21271 mkdir -p $dirpart/$fdir
21272 else
21273 as_dir=$dirpart/$fdir
21274 as_dirs=
21275 while test ! -d "$as_dir"; do
21276 as_dirs="$as_dir $as_dirs"
21277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
mostang.com!davidm046362a2003-12-05 06:42:28 +000021279 X"$as_dir" : 'X\(//\)[^/]' \| \
21280 X"$as_dir" : 'X\(//\)$' \| \
21281 X"$as_dir" : 'X\(/\)' \| \
21282 . : '\(.\)' 2>/dev/null ||
mostang.com!davidm7c3e12e2002-12-19 07:16:50 +000021283echo X"$as_dir" |
21284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21286 /^X\(\/\/\)$/{ s//\1/; q; }
21287 /^X\(\/\).*/{ s//\1/; q; }
21288 s/.*/./; q'`
21289 done
21290 test ! -n "$as_dirs" || mkdir $as_dirs
21291 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21292echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21293 { (exit 1); exit 1; }; }; }
21294
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021295 # echo "creating $dirpart/$file"
21296 echo '# dummy' > "$dirpart/$file"
21297 done
21298done
21299 ;;
21300 esac
21301done
21302_ACEOF
21303
21304cat >>$CONFIG_STATUS <<\_ACEOF
21305
21306{ (exit 0); exit 0; }
21307_ACEOF
21308chmod +x $CONFIG_STATUS
21309ac_clean_files=$ac_clean_files_save
21310
21311
21312# configure is writing to config.log, and then calls config.status.
21313# config.status does its own redirection, appending to config.log.
21314# Unfortunately, on DOS this fails, as config.log is still kept open
21315# by configure, so config.status won't be able to write to it; its
21316# output is simply discarded. So we exec the FD to /dev/null,
21317# effectively closing config.log, so it can be properly (re)opened and
21318# appended to by config.status. When coming back to configure, we
21319# need to make the FD available again.
21320if test "$no_create" != yes; then
21321 ac_cs_success=:
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021322 ac_config_status_args=
21323 test "$silent" = yes &&
21324 ac_config_status_args="$ac_config_status_args --quiet"
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021325 exec 5>/dev/null
hp.com!davidm01b02dd2003-09-24 21:51:53 +000021326 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
mostang.com!davidmaa54b9f2002-09-26 23:09:01 +000021327 exec 5>>config.log
21328 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21329 # would make configure fail if this is the last instruction.
21330 $ac_cs_success || { (exit 1); exit 1; }
21331fi
21332