blob: 384cc52d2224c3f131773ea83cf42c5bc1f68b60 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003# Generated by GNU Autoconf 2.59 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +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.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer2706f8c2004-09-19 23:53:36 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +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
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
Reid Spencer2706f8c2004-09-19 23:53:36 +0000396tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
Reid Spencer2706f8c2004-09-19 23:53:36 +0000430ac_unique_file=""Makefile.config.in""
Reid Spencer4d68ba22004-09-07 16:35:45 +0000431ac_subdirs_all="$ac_subdirs_all projects/sample"
432ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000436ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000437ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswell7a73b802003-06-30 21:59:07 +0000439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453# include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458# include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469# include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
Reid Spencer9751dbf2004-09-07 18:04:45 +0000476ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000477ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
523 ac_prev=
524 continue
525 fi
526
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529 # Accept the important Cygnus configure options, so we can diagnose typos.
530
531 case $ac_option in
532
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
534 ac_prev=bindir ;;
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536 bindir=$ac_optarg ;;
537
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
542
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
549
550 --config-cache | -C)
551 cache_file=config.cache ;;
552
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554 ac_prev=datadir ;;
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556 | --da=*)
557 datadir=$ac_optarg ;;
558
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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 eval "enable_$ac_feature=no" ;;
567
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575 case $ac_option in
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577 *) ac_optarg=yes ;;
578 esac
579 eval "enable_$ac_feature='$ac_optarg'" ;;
580
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
589
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
592 with_gas=yes ;;
593
594 -help | --help | --hel | --he | -h)
595 ac_init_help=long ;;
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
600
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
605
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
612
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
614 ac_prev=infodir ;;
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
617
618 -libdir | --libdir | --libdi | --libd)
619 ac_prev=libdir ;;
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
621 libdir=$ac_optarg ;;
622
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
629
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
638
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640 ac_prev=mandir ;;
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 mandir=$ac_optarg ;;
643
644 -nfp | --nfp | --nf)
645 # Obsolete; use --without-fp.
646 with_fp=no ;;
647
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
650 no_create=yes ;;
651
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654 no_recursion=yes ;;
655
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
664
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666 ac_prev=prefix ;;
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668 prefix=$ac_optarg ;;
669
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
676
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
683
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
700
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
703 silent=yes ;;
704
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706 ac_prev=sbindir ;;
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708 | --sbi=* | --sb=*)
709 sbindir=$ac_optarg ;;
710
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
714 | --sha | --sh)
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719 | --sha=* | --sh=*)
720 sharedstatedir=$ac_optarg ;;
721
722 -site | --site | --sit)
723 ac_prev=site ;;
724 -site=* | --site=* | --sit=*)
725 site=$ac_optarg ;;
726
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728 ac_prev=srcdir ;;
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730 srcdir=$ac_optarg ;;
731
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
738
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
743
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
745 verbose=yes ;;
746
747 -version | --version | --versio | --versi | --vers | -V)
748 ac_init_version=: ;;
749
750 -with-* | --with-*)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
757 case $ac_option in
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759 *) ac_optarg=yes ;;
760 esac
761 eval "with_$ac_package='$ac_optarg'" ;;
762
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
771
772 --x)
773 # Obsolete; use --with-x.
774 with_x=yes ;;
775
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
782
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
789
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
793 ;;
794
795 *=*)
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
803 export $ac_envvar ;;
804
805 *)
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 ;;
812
813 esac
814done
815
816if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000835 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000836do
837 eval ac_val=$`echo $ac_var`
838 case $ac_val in
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
842 esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
859 cross_compiling=yes
860 fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000879echo X"$0" |
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
884 s/.*/./; q'`
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889else
890 ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
896 else
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
899 fi
900fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CXX_set=${CXX+set}
918ac_env_CXX_value=$CXX
919ac_cv_env_CXX_set=${CXX+set}
920ac_cv_env_CXX_value=$CXX
921ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922ac_env_CXXFLAGS_value=$CXXFLAGS
923ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925ac_env_LDFLAGS_set=${LDFLAGS+set}
926ac_env_LDFLAGS_value=$LDFLAGS
927ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928ac_cv_env_LDFLAGS_value=$LDFLAGS
929ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930ac_env_CPPFLAGS_value=$CPPFLAGS
931ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933ac_env_CC_set=${CC+set}
934ac_env_CC_value=$CC
935ac_cv_env_CC_set=${CC+set}
936ac_cv_env_CC_value=$CC
937ac_env_CFLAGS_set=${CFLAGS+set}
938ac_env_CFLAGS_value=$CFLAGS
939ac_cv_env_CFLAGS_set=${CFLAGS+set}
940ac_cv_env_CFLAGS_value=$CFLAGS
941ac_env_CPP_set=${CPP+set}
942ac_env_CPP_value=$CPP
943ac_cv_env_CPP_set=${CPP+set}
944ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000945ac_env_CXXCPP_set=${CXXCPP+set}
946ac_env_CXXCPP_value=$CXXCPP
947ac_cv_env_CXXCPP_set=${CXXCPP+set}
948ac_cv_env_CXXCPP_value=$CXXCPP
949ac_env_F77_set=${F77+set}
950ac_env_F77_value=$F77
951ac_cv_env_F77_set=${F77+set}
952ac_cv_env_F77_value=$F77
953ac_env_FFLAGS_set=${FFLAGS+set}
954ac_env_FFLAGS_value=$FFLAGS
955ac_cv_env_FFLAGS_set=${FFLAGS+set}
956ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000957
958#
959# Report the --help message.
960#
961if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
964 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000965\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000966
967Usage: $0 [OPTION]... [VAR=VALUE]...
968
969To assign environment variables (e.g., CC, CFLAGS...), specify them as
970VAR=VALUE. See below for descriptions of some of the useful variables.
971
972Defaults for the options are specified in brackets.
973
974Configuration:
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984
985_ACEOF
986
987 cat <<_ACEOF
988Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000990 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000992 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000993
994By default, \`make install' will install all the files in
995\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997for instance \`--prefix=\$HOME'.
998
999For better control, use the options below.
1000
1001Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1014_ACEOF
1015
1016 cat <<\_ACEOF
1017
1018System types:
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001027 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001028 esac
1029 cat <<\_ACEOF
1030
1031Optional Features:
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +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]
John Criswell7a73b802003-06-30 21:59:07 +00001040 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001041 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswellc78022e2003-07-29 19:11:58 +00001042 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001105
1106# Do not use `cd foo && pwd` to compute absolute paths, because
1107# the directories may not exist.
1108case `pwd` in
1109.) ac_abs_builddir="$ac_dir";;
1110*)
1111 case "$ac_dir" in
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_top_builddir=${ac_top_builddir}.;;
1119*)
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_srcdir=$ac_srcdir;;
1128*)
1129 case $ac_srcdir in
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_top_srcdir=$ac_top_srcdir;;
1137*)
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 esac;;
1143esac
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 cd $ac_dir
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1148 echo
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1151 echo
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001154 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001155 echo
1156 $ac_configure --help
1157 else
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 fi
1160 cd $ac_popdir
1161 done
1162fi
1163
1164test -n "$ac_init_help" && exit 0
1165if $ac_init_version; then
1166 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001167LLVM configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001168generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001169
Reid Spencer2706f8c2004-09-19 23:53:36 +00001170Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001171This configure script is free software; the Free Software Foundation
1172gives unlimited permission to copy, distribute and modify it.
1173_ACEOF
1174 exit 0
1175fi
1176exec 5>config.log
1177cat >&5 <<_ACEOF
1178This file contains any messages produced by compilers while
1179running configure, to aid debugging if configure makes a mistake.
1180
Reid Spencere9de0912004-08-20 09:03:57 +00001181It was created by LLVM $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001183
1184 $ $0 $@
1185
1186_ACEOF
1187{
1188cat <<_ASUNAME
1189## --------- ##
1190## Platform. ##
1191## --------- ##
1192
1193hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201
1202/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209
1210_ASUNAME
1211
1212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213for as_dir in $PATH
1214do
1215 IFS=$as_save_IFS
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1218done
1219
1220} >&5
1221
1222cat >&5 <<_ACEOF
1223
1224
1225## ----------- ##
1226## Core tests. ##
1227## ----------- ##
1228
1229_ACEOF
1230
1231
1232# Keep a trace of the command line.
1233# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001234# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001235# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001236# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001237ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001238ac_configure_args0=
1239ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001240ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001241ac_must_keep_next=false
1242for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001243do
John Criswell0c38eaf2003-09-10 15:17:25 +00001244 for ac_arg
1245 do
1246 case $ac_arg in
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 continue ;;
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 esac
1254 case $ac_pass in
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 2)
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001259 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001260 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001261 case $ac_arg in
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 esac
1269 ;;
1270 -* ) ac_must_keep_next=true ;;
1271 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001272 fi
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1275 ac_sep=" "
1276 ;;
1277 esac
1278 done
John Criswell7a73b802003-06-30 21:59:07 +00001279done
John Criswell0c38eaf2003-09-10 15:17:25 +00001280$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001282
1283# When interrupted or exit'd, cleanup temporary files, and complete
1284# config.log. We remove comments because anyway the quotes in there
1285# would cause problems or look ugly.
1286# WARNING: Be sure not to use single quotes in there, as some shells,
1287# such as our DU 5.0 friend, will then `close' the trap.
1288trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1290 {
1291 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001292
John Criswell7a73b802003-06-30 21:59:07 +00001293 cat <<\_ASBOX
1294## ---------------- ##
1295## Cache variables. ##
1296## ---------------- ##
1297_ASBOX
1298 echo
1299 # The following way of writing the cache mishandles newlines in values,
1300{
1301 (set) 2>&1 |
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 *ac_space=\ *)
1304 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001307 ;;
1308 *)
1309 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001311 ;;
1312 esac;
1313}
1314 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001315
1316 cat <<\_ASBOX
1317## ----------------- ##
1318## Output variables. ##
1319## ----------------- ##
1320_ASBOX
1321 echo
1322 for ac_var in $ac_subst_vars
1323 do
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1326 done | sort
1327 echo
1328
1329 if test -n "$ac_subst_files"; then
1330 cat <<\_ASBOX
1331## ------------- ##
1332## Output files. ##
1333## ------------- ##
1334_ASBOX
1335 echo
1336 for ac_var in $ac_subst_files
1337 do
1338 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001339 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001340 done | sort
1341 echo
1342 fi
1343
John Criswell7a73b802003-06-30 21:59:07 +00001344 if test -s confdefs.h; then
1345 cat <<\_ASBOX
1346## ----------- ##
1347## confdefs.h. ##
1348## ----------- ##
1349_ASBOX
1350 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001351 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001352 echo
1353 fi
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1357 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001358 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 exit $exit_status
1361 ' 0
1362for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364done
1365ac_signal=0
1366
1367# confdefs.h avoids OS command line length limits that DEFS can exceed.
1368rm -rf conftest* confdefs.h
1369# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370echo >confdefs.h
1371
1372# Predefined preprocessor variables.
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_NAME "$PACKAGE_NAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_VERSION "$PACKAGE_VERSION"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_STRING "$PACKAGE_STRING"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396_ACEOF
1397
1398
1399# Let the site file select an alternate cache file if it wants to.
1400# Prefer explicitly selected file to automatically selected ones.
1401if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 else
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 fi
1407fi
1408for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1413 . "$ac_site_file"
1414 fi
1415done
1416
1417if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422echo "$as_me: loading cache $cache_file" >&6;}
1423 case $cache_file in
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1426 esac
1427 fi
1428else
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430echo "$as_me: creating cache $cache_file" >&6;}
1431 >$cache_file
1432fi
1433
1434# Check that the precious variables saved in the cache have kept the same
1435# value.
1436ac_cache_corrupted=false
1437for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1444 set,)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,set)
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1452 ,);;
1453 *)
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001456echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001458echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001460echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001461 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001462 fi;;
1463 esac
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1466 case $ac_new_val in
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1470 esac
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 esac
1475 fi
1476done
1477if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1483fi
1484
1485ac_ext=c
1486ac_cpp='$CPP $CPPFLAGS'
1487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517
John Criswell7a73b802003-06-30 21:59:07 +00001518ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001519for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001537 { (exit 1); exit 1; }; }
1538fi
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
John Criswell392aaa32003-07-22 19:18:09 +00001543
Reid Spencer2706f8c2004-09-19 23:53:36 +00001544
1545if test ${srcdir} != "." ; then
1546 if test -f ${srcdir}/include/llvm/Config/config.h ; then
John Criswell1b824322003-09-15 17:19:42 +00001547 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001548echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001550 fi
John Criswell93e1c722003-09-15 17:04:06 +00001551fi
1552
John Criswell33a911a2003-11-25 20:36:46 +00001553for i in `ls ${srcdir}/projects`
1554do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001555 if test -d ${srcdir}/projects/${i} ; then
1556 case ${i} in
1557 "CVS") ;;
1558 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001559
Reid Spencer4d68ba22004-09-07 16:35:45 +00001560subdirs="$subdirs projects/sample"
1561 ;;
1562 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001563
Reid Spencer4d68ba22004-09-07 16:35:45 +00001564subdirs="$subdirs projects/Stacker"
1565 ;;
1566 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001567
Reid Spencer4d68ba22004-09-07 16:35:45 +00001568subdirs="$subdirs projects/llvm-test"
1569 ;;
1570 "llvm-reopt")
1571
1572subdirs="$subdirs projects/llvm-reopt"
1573;;
1574 "llvm-gcc")
1575
1576subdirs="$subdirs projects/llvm-gcc"
1577 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001578 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579
Reid Spencer641f7ef2004-09-20 22:14:56 +00001580subdirs="$subdirs projects/Java"
1581 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582 "llvm-tv")
1583
1584subdirs="$subdirs projects/llvm-tv"
1585 ;;
1586 "llvm-fefw")
1587
1588subdirs="$subdirs projects/llvm-fefw"
1589 ;;
1590 *)
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001591 { echo "$as_me:$LINENO: WARNING: Unknown projects (${i})won't be configured automatically" >&5
1592echo "$as_me: WARNING: Unknown projects (${i})won't be configured automatically" >&2;}
1593 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594 esac
John Criswell33a911a2003-11-25 20:36:46 +00001595 fi
1596done
John Criswell559a6c12003-09-30 16:31:48 +00001597
Reid Spencer551ccae2004-09-01 22:55:40 +00001598 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001599
John Criswelldc76e322004-07-23 15:40:57 +00001600
Reid Spencer551ccae2004-09-01 22:55:40 +00001601 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
John Criswelldc76e322004-07-23 15:40:57 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
Reid Spencer5f285392004-08-24 16:32:21 +00001610 ac_config_commands="$ac_config_commands examples/Makefile"
1611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswellf424d742003-10-07 21:13:47 +00001625 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1626
1627
1628 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
Brian Gaekec45be042003-10-07 06:01:34 +00001634 ac_config_commands="$ac_config_commands utils/Makefile"
1635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell392aaa32003-07-22 19:18:09 +00001640
John Criswell7a73b802003-06-30 21:59:07 +00001641# Find a good install program. We prefer a C program (faster),
1642# so one script is as good as another. But avoid the broken or
1643# incompatible versions:
1644# SysV /etc/install, /usr/sbin/install
1645# SunOS /usr/etc/install
1646# IRIX /sbin/install
1647# AIX /bin/install
1648# AmigaOS /C/install, which installs bootblocks on floppy discs
1649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2706f8c2004-09-19 23:53:36 +00001652# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001653# ./install, which can be erroneously created by make from ./install.sh.
1654echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1655echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1656if test -z "$INSTALL"; then
1657if test "${ac_cv_path_install+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661for as_dir in $PATH
1662do
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 # Account for people who put trailing slashes in PATH elements.
1666case $as_dir/ in
1667 ./ | .// | /cC/* | \
1668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001670 /usr/ucb/* ) ;;
1671 *)
1672 # OSF1 and SCO ODT 3.0 have their own names for install.
1673 # Don't use installbsd from OSF since it installs stuff as root
1674 # by default.
1675 for ac_prog in ginstall scoinst install; do
1676 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2706f8c2004-09-19 23:53:36 +00001677 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1678 if test $ac_prog = install &&
1679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680 # AIX install. It has an incompatible calling convention.
1681 :
1682 elif test $ac_prog = install &&
1683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684 # program-specific install script used by HP pwplus--don't use.
1685 :
1686 else
1687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1688 break 3
1689 fi
1690 fi
John Criswell7a73b802003-06-30 21:59:07 +00001691 done
1692 done
1693 ;;
1694esac
1695done
1696
1697
1698fi
1699 if test "${ac_cv_path_install+set}" = set; then
1700 INSTALL=$ac_cv_path_install
1701 else
1702 # As a last resort, use the slow shell script. We don't cache a
1703 # path for INSTALL within a source directory, because that will
1704 # break other packages using the cache if that directory is
1705 # removed, or if the path is relative.
1706 INSTALL=$ac_install_sh
1707 fi
1708fi
1709echo "$as_me:$LINENO: result: $INSTALL" >&5
1710echo "${ECHO_T}$INSTALL" >&6
1711
1712# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1713# It thinks the first close brace ends the variable substitution.
1714test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1715
1716test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1717
1718test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1719
1720
1721# Make sure we can run config.sub.
1722$ac_config_sub sun4 >/dev/null 2>&1 ||
1723 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1724echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1725 { (exit 1); exit 1; }; }
1726
1727echo "$as_me:$LINENO: checking build system type" >&5
1728echo $ECHO_N "checking build system type... $ECHO_C" >&6
1729if test "${ac_cv_build+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 ac_cv_build_alias=$build_alias
1733test -z "$ac_cv_build_alias" &&
1734 ac_cv_build_alias=`$ac_config_guess`
1735test -z "$ac_cv_build_alias" &&
1736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1737echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1738 { (exit 1); exit 1; }; }
1739ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1741echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744fi
1745echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1746echo "${ECHO_T}$ac_cv_build" >&6
1747build=$ac_cv_build
1748build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751
1752
1753echo "$as_me:$LINENO: checking host system type" >&5
1754echo $ECHO_N "checking host system type... $ECHO_C" >&6
1755if test "${ac_cv_host+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758 ac_cv_host_alias=$host_alias
1759test -z "$ac_cv_host_alias" &&
1760 ac_cv_host_alias=$ac_cv_build_alias
1761ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1763echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1764 { (exit 1); exit 1; }; }
1765
1766fi
1767echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1768echo "${ECHO_T}$ac_cv_host" >&6
1769host=$ac_cv_host
1770host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773
1774
1775echo "$as_me:$LINENO: checking target system type" >&5
1776echo $ECHO_N "checking target system type... $ECHO_C" >&6
1777if test "${ac_cv_target+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780 ac_cv_target_alias=$target_alias
1781test "x$ac_cv_target_alias" = "x" &&
1782 ac_cv_target_alias=$ac_cv_host_alias
1783ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1784 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1785echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1786 { (exit 1); exit 1; }; }
1787
1788fi
1789echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1790echo "${ECHO_T}$ac_cv_target" >&6
1791target=$ac_cv_target
1792target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1793target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1794target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1795
1796
1797# The aliases save the names the user supplied, while $host etc.
1798# will get canonicalized.
1799test -n "$target_alias" &&
1800 test "$program_prefix$program_suffix$program_transform_name" = \
1801 NONENONEs,x,x, &&
1802 program_prefix=${target_alias}-
1803
Reid Spencer73fb5482004-08-31 14:20:36 +00001804
1805echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1806echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001807case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001808 *-*-aix*)
1809 OS=AIX
1810
1811 platform_type="AIX"
1812 ;;
1813 *-*-cygwin*)
1814 OS=Cygwin
1815
1816 platform_type="Cygwin"
1817 ;;
1818 *-*-darwin*)
1819 OS=Darwin
1820
1821 platform_type="Darwin"
1822 ;;
1823 *-*-freebsd*)
1824 OS=Linux
1825
Reid Spencera11e4db2004-08-31 18:03:23 +00001826 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001827 ;;
1828 *-*-interix*)
1829 OS=SunOS
1830
Reid Spencera11e4db2004-08-31 18:03:23 +00001831 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001832 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001833 *-*-linux*)
1834 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001835
Reid Spencerde8c47f2004-08-29 19:35:28 +00001836 platform_type="Linux"
1837 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1838 then
1839 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001840
Reid Spencerde8c47f2004-08-29 19:35:28 +00001841 fi
1842 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001843 *-*-solaris*)
1844 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001845
Reid Spencerde8c47f2004-08-29 19:35:28 +00001846 platform_type="SunOS"
1847 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1848 then
1849 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001850
Reid Spencerde8c47f2004-08-29 19:35:28 +00001851 fi
1852 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001853 *-*-win32*)
1854 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001855
Reid Spencerde8c47f2004-08-29 19:35:28 +00001856 platform_type="Win32"
1857 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001858 *-*-mingw*)
1859 OS=Win32
1860
1861 platform_type="Win32"
1862 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001863 *)
1864 OS=Unknown
1865
1866 platform_type="Unknown"
1867 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001868esac
1869
Reid Spencer73fb5482004-08-31 14:20:36 +00001870if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001871 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1872echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1873 { (exit 1); exit 1; }; }
1874fi
1875
Reid Spencerde8c47f2004-08-29 19:35:28 +00001876 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1877
1878
Reid Spencer73fb5482004-08-31 14:20:36 +00001879
1880echo "$as_me:$LINENO: checking target architecture" >&5
1881echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001882case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001883 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001884
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001885 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001886esac
1887
John Criswell76595452003-07-01 22:07:39 +00001888case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001889 i*86-*)
1890 ARCH="x86"
1891 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001892
Reid Spencer73fb5482004-08-31 14:20:36 +00001893 ;;
1894 sparc*-*)
1895 ARCH="Sparc"
1896 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001897
Reid Spencer73fb5482004-08-31 14:20:36 +00001898 ;;
1899 powerpc*-*)
1900 ARCH="PowerPC"
1901 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001902
Reid Spencer73fb5482004-08-31 14:20:36 +00001903 ;;
1904 *)
1905 ARCH="Unknown"
1906 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001907
Reid Spencer73fb5482004-08-31 14:20:36 +00001908 ;;
John Criswell76595452003-07-01 22:07:39 +00001909esac
1910
Reid Spencer73fb5482004-08-31 14:20:36 +00001911echo "$as_me:$LINENO: result: $ARCH" >&5
1912echo "${ECHO_T}$ARCH" >&6
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_ext=cc
1915ac_cpp='$CXXCPP $CPPFLAGS'
1916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1919if test -n "$ac_tool_prefix"; then
1920 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1921 do
1922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924echo "$as_me:$LINENO: checking for $ac_word" >&5
1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926if test "${ac_cv_prog_CXX+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
1929 if test -n "$CXX"; then
1930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1931else
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943done
1944done
1945
1946fi
1947fi
1948CXX=$ac_cv_prog_CXX
1949if test -n "$CXX"; then
1950 echo "$as_me:$LINENO: result: $CXX" >&5
1951echo "${ECHO_T}$CXX" >&6
1952else
1953 echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6
1955fi
1956
1957 test -n "$CXX" && break
1958 done
1959fi
1960if test -z "$CXX"; then
1961 ac_ct_CXX=$CXX
1962 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1963do
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965set dummy $ac_prog; ac_word=$2
1966echo "$as_me:$LINENO: checking for $ac_word" >&5
1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 if test -n "$ac_ct_CXX"; then
1972 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1973else
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_ac_ct_CXX="$ac_prog"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985done
1986done
1987
1988fi
1989fi
1990ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1991if test -n "$ac_ct_CXX"; then
1992 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1993echo "${ECHO_T}$ac_ct_CXX" >&6
1994else
1995 echo "$as_me:$LINENO: result: no" >&5
1996echo "${ECHO_T}no" >&6
1997fi
1998
1999 test -n "$ac_ct_CXX" && break
2000done
2001test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2002
2003 CXX=$ac_ct_CXX
2004fi
2005
2006
2007# Provide some information about the compiler.
2008echo "$as_me:$LINENO:" \
2009 "checking for C++ compiler version" >&5
2010ac_compiler=`set X $ac_compile; echo $2`
2011{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012 (eval $ac_compiler --version </dev/null >&5) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017 (eval $ac_compiler -v </dev/null >&5) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022 (eval $ac_compiler -V </dev/null >&5) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026
2027cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002028/* confdefs.h. */
2029_ACEOF
2030cat confdefs.h >>conftest.$ac_ext
2031cat >>conftest.$ac_ext <<_ACEOF
2032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002033
John Criswell7a73b802003-06-30 21:59:07 +00002034int
2035main ()
2036{
2037
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002043ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002044# Try to create an executable without -o first, disregard a.out.
2045# It will help us diagnose broken compilers, and finding out an intuition
2046# of exeext.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002047echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2048echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002049ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051 (eval $ac_link_default) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Find the output, starting from the most likely. This scheme is
2056# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057# resort.
2058
2059# Be careful to initialize this variable, since it used to be cached.
2060# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2061ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002062# b.out is created by i960 compilers.
2063for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2064do
2065 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002066 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002068 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002069 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002070 # This is the source file.
2071 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002072 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002073 # We found the default executable, but exeext='' is most
2074 # certainly right.
2075 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002076 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 # FIXME: I believe we export ac_cv_exeext for Libtool,
2079 # but it would be cool to find out if it's true. Does anybody
2080 # maintain Libtool? --akim.
2081 export ac_cv_exeext
2082 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002083 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002084 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002085 esac
2086done
2087else
2088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002089sed 's/^/| /' conftest.$ac_ext >&5
2090
2091{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2092See \`config.log' for more details." >&5
2093echo "$as_me: error: C++ compiler cannot create executables
2094See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002095 { (exit 77); exit 77; }; }
2096fi
2097
2098ac_exeext=$ac_cv_exeext
2099echo "$as_me:$LINENO: result: $ac_file" >&5
2100echo "${ECHO_T}$ac_file" >&6
2101
2102# Check the compiler produces executables we can run. If not, either
2103# the compiler is broken, or we cross compile.
2104echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2105echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2106# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107# If not cross compiling, check that we can run a simple program.
2108if test "$cross_compiling" != yes; then
2109 if { ac_try='./$ac_file'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 cross_compiling=no
2116 else
2117 if test "$cross_compiling" = maybe; then
2118 cross_compiling=yes
2119 else
2120 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002121If you meant to cross compile, use \`--host'.
2122See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002123echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002124If you meant to cross compile, use \`--host'.
2125See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002126 { (exit 1); exit 1; }; }
2127 fi
2128 fi
2129fi
2130echo "$as_me:$LINENO: result: yes" >&5
2131echo "${ECHO_T}yes" >&6
2132
John Criswell0c38eaf2003-09-10 15:17:25 +00002133rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002134ac_clean_files=$ac_clean_files_save
2135# Check the compiler produces executables we can run. If not, either
2136# the compiler is broken, or we cross compile.
2137echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140echo "${ECHO_T}$cross_compiling" >&6
2141
2142echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151# work properly (i.e., refer to `conftest.exe'), while it won't with
2152# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002153for ac_file in conftest.exe conftest conftest.*; do
2154 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002155 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002158 export ac_cv_exeext
2159 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002160 * ) break;;
2161 esac
2162done
2163else
John Criswell0c38eaf2003-09-10 15:17:25 +00002164 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002168 { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest$ac_cv_exeext
2172echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173echo "${ECHO_T}$ac_cv_exeext" >&6
2174
2175rm -f conftest.$ac_ext
2176EXEEXT=$ac_cv_exeext
2177ac_exeext=$EXEEXT
2178echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180if test "${ac_cv_objext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002184/* confdefs.h. */
2185_ACEOF
2186cat confdefs.h >>conftest.$ac_ext
2187cat >>conftest.$ac_ext <<_ACEOF
2188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002189
John Criswell7a73b802003-06-30 21:59:07 +00002190int
2191main ()
2192{
2193
2194 ;
2195 return 0;
2196}
2197_ACEOF
2198rm -f conftest.o conftest.obj
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208 break;;
2209 esac
2210done
2211else
2212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216See \`config.log' for more details." >&5
2217echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002219 { (exit 1); exit 1; }; }
2220fi
2221
2222rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225echo "${ECHO_T}$ac_cv_objext" >&6
2226OBJEXT=$ac_cv_objext
2227ac_objext=$OBJEXT
2228echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2229echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2230if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002234/* confdefs.h. */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002239
John Criswell7a73b802003-06-30 21:59:07 +00002240int
2241main ()
2242{
2243#ifndef __GNUC__
2244 choke me
2245#endif
2246
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002253 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002254 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002260 { ac_try='test -z "$ac_cxx_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 ac_compiler_gnu=yes
2274else
2275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002276sed 's/^/| /' conftest.$ac_ext >&5
2277
John Criswell7a73b802003-06-30 21:59:07 +00002278ac_compiler_gnu=no
2279fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002281ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2282
2283fi
2284echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2285echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2286GXX=`test $ac_compiler_gnu = yes && echo yes`
2287ac_test_CXXFLAGS=${CXXFLAGS+set}
2288ac_save_CXXFLAGS=$CXXFLAGS
2289CXXFLAGS="-g"
2290echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2291echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2292if test "${ac_cv_prog_cxx_g+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294else
2295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002301
John Criswell7a73b802003-06-30 21:59:07 +00002302int
2303main ()
2304{
2305
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002312 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002319 { ac_try='test -z "$ac_cxx_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cxx_g=yes
2333else
2334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002335sed 's/^/| /' conftest.$ac_ext >&5
2336
John Criswell7a73b802003-06-30 21:59:07 +00002337ac_cv_prog_cxx_g=no
2338fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002340fi
2341echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2342echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2343if test "$ac_test_CXXFLAGS" = set; then
2344 CXXFLAGS=$ac_save_CXXFLAGS
2345elif test $ac_cv_prog_cxx_g = yes; then
2346 if test "$GXX" = yes; then
2347 CXXFLAGS="-g -O2"
2348 else
2349 CXXFLAGS="-g"
2350 fi
2351else
2352 if test "$GXX" = yes; then
2353 CXXFLAGS="-O2"
2354 else
2355 CXXFLAGS=
2356 fi
2357fi
2358for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002359 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002360 'extern "C" void std::exit (int) throw (); using std::exit;' \
2361 'extern "C" void std::exit (int); using std::exit;' \
2362 'extern "C" void exit (int) throw ();' \
2363 'extern "C" void exit (int);' \
2364 'void exit (int);'
2365do
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002372$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002373#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002374int
2375main ()
2376{
2377exit (42);
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002384 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391 { ac_try='test -z "$ac_cxx_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 :
2405else
2406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002407sed 's/^/| /' conftest.$ac_ext >&5
2408
John Criswell7a73b802003-06-30 21:59:07 +00002409continue
2410fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002418$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002419int
2420main ()
2421{
2422exit (42);
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002436 { ac_try='test -z "$ac_cxx_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then
2449 break
2450else
2451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002452sed 's/^/| /' conftest.$ac_ext >&5
2453
John Criswell7a73b802003-06-30 21:59:07 +00002454fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002456done
2457rm -f conftest*
2458if test -n "$ac_declaration"; then
2459 echo '#ifdef __cplusplus' >>confdefs.h
2460 echo $ac_declaration >>confdefs.h
2461 echo '#endif' >>confdefs.h
2462fi
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470ac_ext=c
2471ac_cpp='$CPP $CPPFLAGS'
2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475if test -n "$ac_tool_prefix"; then
2476 for ac_prog in gcc
2477 do
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480echo "$as_me:$LINENO: checking for $ac_word" >&5
2481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500done
2501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
2506 echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6
2508else
2509 echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6
2511fi
2512
2513 test -n "$CC" && break
2514 done
2515fi
2516if test -z "$CC"; then
2517 ac_ct_CC=$CC
2518 for ac_prog in gcc
2519do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521set dummy $ac_prog; ac_word=$2
2522echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
2543
2544fi
2545fi
2546ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547if test -n "$ac_ct_CC"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549echo "${ECHO_T}$ac_ct_CC" >&6
2550else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553fi
2554
2555 test -n "$ac_ct_CC" && break
2556done
2557
2558 CC=$ac_ct_CC
2559fi
2560
2561
John Criswell0c38eaf2003-09-10 15:17:25 +00002562test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2563See \`config.log' for more details." >&5
2564echo "$as_me: error: no acceptable C compiler found in \$PATH
2565See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002566 { (exit 1); exit 1; }; }
2567
2568# Provide some information about the compiler.
2569echo "$as_me:$LINENO:" \
2570 "checking for C compiler version" >&5
2571ac_compiler=`set X $ac_compile; echo $2`
2572{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2573 (eval $ac_compiler --version </dev/null >&5) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2578 (eval $ac_compiler -v </dev/null >&5) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2583 (eval $ac_compiler -V </dev/null >&5) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587
2588echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002599
John Criswell7a73b802003-06-30 21:59:07 +00002600int
2601main ()
2602{
2603#ifndef __GNUC__
2604 choke me
2605#endif
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002613 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2633 ac_compiler_gnu=yes
2634else
2635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002636sed 's/^/| /' conftest.$ac_ext >&5
2637
John Criswell7a73b802003-06-30 21:59:07 +00002638ac_compiler_gnu=no
2639fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002641ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646GCC=`test $ac_compiler_gnu = yes && echo yes`
2647ac_test_CFLAGS=${CFLAGS+set}
2648ac_save_CFLAGS=$CFLAGS
2649CFLAGS="-g"
2650echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2654else
2655 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002656/* confdefs.h. */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002661
John Criswell7a73b802003-06-30 21:59:07 +00002662int
2663main ()
2664{
2665
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002673 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_prog_cc_g=yes
2693else
2694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002695sed 's/^/| /' conftest.$ac_ext >&5
2696
John Criswell7a73b802003-06-30 21:59:07 +00002697ac_cv_prog_cc_g=no
2698fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002700fi
2701echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2707 CFLAGS="-g -O2"
2708 else
2709 CFLAGS="-g"
2710 fi
2711else
2712 if test "$GCC" = yes; then
2713 CFLAGS="-O2"
2714 else
2715 CFLAGS=
2716 fi
2717fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002718echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723 ac_cv_prog_cc_stdc=no
2724ac_save_CC=$CC
2725cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
2731#include <stdarg.h>
2732#include <stdio.h>
2733#include <sys/types.h>
2734#include <sys/stat.h>
2735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736struct buf { int x; };
2737FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738static char *e (p, i)
2739 char **p;
2740 int i;
2741{
2742 return p[i];
2743}
2744static char *f (char * (*g) (char **, int), char **p, ...)
2745{
2746 char *s;
2747 va_list v;
2748 va_start (v,p);
2749 s = g (p, va_arg (v,int));
2750 va_end (v);
2751 return s;
2752}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002753
2754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
John Criswell0c38eaf2003-09-10 15:17:25 +00002763int test (int i, double x);
2764struct s1 {int (*f) (int a);};
2765struct s2 {int (*f) (double a);};
2766int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767int argc;
2768char **argv;
2769int
2770main ()
2771{
2772return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777# Don't try gcc -ansi; that turns off useful extensions and
2778# breaks some systems' header files.
2779# AIX -qlanglvl=ansi
2780# Ultrix and OSF/1 -std1
2781# HP-UX 10.20 and later -Ae
2782# HP-UX older versions -Aa -D_HPUX_SOURCE
2783# SVR4 -Xc -D__EXTENSIONS__
2784for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785do
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002789 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2810break
2811else
2812 echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002817done
2818rm -f conftest.$ac_ext conftest.$ac_objext
2819CC=$ac_save_CC
2820
2821fi
2822
2823case "x$ac_cv_prog_cc_stdc" in
2824 x|xno)
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826echo "${ECHO_T}none needed" >&6 ;;
2827 *)
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2831esac
2832
John Criswell7a73b802003-06-30 21:59:07 +00002833# Some people use a C++ compiler to compile C. Since we use `exit',
2834# in C++ we need to declare it. In case someone uses the same compiler
2835# for both compiling C and C++ we need to have the C++ compiler decide
2836# the declaration of exit, since it's the most demanding environment.
2837cat >conftest.$ac_ext <<_ACEOF
2838#ifndef __cplusplus
2839 choke me
2840#endif
2841_ACEOF
2842rm -f conftest.$ac_objext
2843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002844 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002865 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2870 'void exit (int);'
2871do
2872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002878$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002879#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002880int
2881main ()
2882{
2883exit (42);
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002890 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002891 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 :
2911else
2912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002913sed 's/^/| /' conftest.$ac_ext >&5
2914
John Criswell7a73b802003-06-30 21:59:07 +00002915continue
2916fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002924$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002925int
2926main ()
2927{
2928exit (42);
2929 ;
2930 return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext
2934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002935 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002936 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2955 break
2956else
2957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002958sed 's/^/| /' conftest.$ac_ext >&5
2959
John Criswell7a73b802003-06-30 21:59:07 +00002960fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002962done
2963rm -f conftest*
2964if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2968fi
2969
2970else
2971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002972sed 's/^/| /' conftest.$ac_ext >&5
2973
John Criswell7a73b802003-06-30 21:59:07 +00002974fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002976ac_ext=c
2977ac_cpp='$CPP $CPPFLAGS'
2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
Reid Spencer2706f8c2004-09-19 23:53:36 +00002982if test "$GCC" != "yes"
2983then
2984 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2985echo "$as_me: error: gcc required but not found" >&2;}
2986 { (exit 1); exit 1; }; }
2987fi
John Criswell7a73b802003-06-30 21:59:07 +00002988ac_ext=c
2989ac_cpp='$CPP $CPPFLAGS'
2990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995# On Suns, sometimes $CPP names a directory.
2996if test -n "$CPP" && test -d "$CPP"; then
2997 CPP=
2998fi
2999if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3005 do
3006 ac_preproc_ok=false
3007for ac_c_preproc_warn_flag in '' yes
3008do
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021#ifdef __STDC__
3022# include <limits.h>
3023#else
3024# include <assert.h>
3025#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003026 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003027_ACEOF
3028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003031 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null; then
3036 if test -s conftest.err; then
3037 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003039 else
3040 ac_cpp_err=
3041 fi
3042else
3043 ac_cpp_err=yes
3044fi
3045if test -z "$ac_cpp_err"; then
3046 :
3047else
3048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003049sed 's/^/| /' conftest.$ac_ext >&5
3050
John Criswell7a73b802003-06-30 21:59:07 +00003051 # Broken: fails on valid input.
3052continue
3053fi
3054rm -f conftest.err conftest.$ac_ext
3055
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003064#include <ac_nonexistent.h>
3065_ACEOF
3066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003069 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003077 else
3078 ac_cpp_err=
3079 fi
3080else
3081 ac_cpp_err=yes
3082fi
3083if test -z "$ac_cpp_err"; then
3084 # Broken: success on invalid input.
3085continue
3086else
3087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003088sed 's/^/| /' conftest.$ac_ext >&5
3089
John Criswell7a73b802003-06-30 21:59:07 +00003090 # Passes both tests.
3091ac_preproc_ok=:
3092break
3093fi
3094rm -f conftest.err conftest.$ac_ext
3095
3096done
3097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098rm -f conftest.err conftest.$ac_ext
3099if $ac_preproc_ok; then
3100 break
3101fi
3102
3103 done
3104 ac_cv_prog_CPP=$CPP
3105
3106fi
3107 CPP=$ac_cv_prog_CPP
3108else
3109 ac_cv_prog_CPP=$CPP
3110fi
3111echo "$as_me:$LINENO: result: $CPP" >&5
3112echo "${ECHO_T}$CPP" >&6
3113ac_preproc_ok=false
3114for ac_c_preproc_warn_flag in '' yes
3115do
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#ifdef __STDC__
3129# include <limits.h>
3130#else
3131# include <assert.h>
3132#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003133 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003134_ACEOF
3135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003138 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003146 else
3147 ac_cpp_err=
3148 fi
3149else
3150 ac_cpp_err=yes
3151fi
3152if test -z "$ac_cpp_err"; then
3153 :
3154else
3155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003156sed 's/^/| /' conftest.$ac_ext >&5
3157
John Criswell7a73b802003-06-30 21:59:07 +00003158 # Broken: fails on valid input.
3159continue
3160fi
3161rm -f conftest.err conftest.$ac_ext
3162
3163 # OK, works on sane cases. Now check whether non-existent headers
3164 # can be detected and how.
3165 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003171#include <ac_nonexistent.h>
3172_ACEOF
3173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003176 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003184 else
3185 ac_cpp_err=
3186 fi
3187else
3188 ac_cpp_err=yes
3189fi
3190if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3192continue
3193else
3194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003195sed 's/^/| /' conftest.$ac_ext >&5
3196
John Criswell7a73b802003-06-30 21:59:07 +00003197 # Passes both tests.
3198ac_preproc_ok=:
3199break
3200fi
3201rm -f conftest.err conftest.$ac_ext
3202
3203done
3204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205rm -f conftest.err conftest.$ac_ext
3206if $ac_preproc_ok; then
3207 :
3208else
John Criswell0c38eaf2003-09-10 15:17:25 +00003209 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210See \`config.log' for more details." >&5
3211echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003213 { (exit 1); exit 1; }; }
3214fi
3215
3216ac_ext=c
3217ac_cpp='$CPP $CPPFLAGS'
3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221
John Criswell7a73b802003-06-30 21:59:07 +00003222if test "$GXX" != "yes"
3223then
3224 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3225echo "$as_me: error: g++ required but not found" >&2;}
3226 { (exit 1); exit 1; }; }
3227fi
3228
John Criswellde00db22003-08-25 16:49:54 +00003229gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3230if test "$gccmajor" -lt "3"
3231then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003232 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3233echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003234 { (exit 1); exit 1; }; }
3235fi
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237 echo "$as_me:$LINENO: checking for GNU make" >&5
3238echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3239if test "${_cv_gnu_make_command+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242 _cv_gnu_make_command='' ;
3243 for a in "$MAKE" make gmake gnumake ; do
3244 if test -z "$a" ; then continue ; fi ;
3245 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3246 _cv_gnu_make_command=$a ;
3247 break;
3248 fi
3249 done ;
3250
3251fi
3252echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3253echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3254 if test "x$_cv_gnu_make_command" != "x" ; then
3255 ifGNUmake='' ;
3256 else
3257 ifGNUmake='#' ;
3258 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3259echo "${ECHO_T}\"Not found\"" >&6;
3260 fi
3261
3262
3263if test -z "$_cv_gnu_make_command"
3264then
3265 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3266echo "$as_me: error: GNU Make required but not found" >&2;}
3267 { (exit 1); exit 1; }; }
3268fi
3269
3270
3271echo "$as_me:$LINENO: checking " >&5
3272echo $ECHO_N "checking ... $ECHO_C" >&6
3273if test "${ac_cv_has_flex+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276 for ac_prog in flex lex
3277do
3278 # Extract the first word of "$ac_prog", so it can be a program name with args.
3279set dummy $ac_prog; ac_word=$2
3280echo "$as_me:$LINENO: checking for $ac_word" >&5
3281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282if test "${ac_cv_prog_LEX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 if test -n "$LEX"; then
3286 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_LEX="$ac_prog"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299done
3300done
3301
3302fi
3303fi
3304LEX=$ac_cv_prog_LEX
3305if test -n "$LEX"; then
3306 echo "$as_me:$LINENO: result: $LEX" >&5
3307echo "${ECHO_T}$LEX" >&6
3308else
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311fi
3312
3313 test -n "$LEX" && break
3314done
3315test -n "$LEX" || LEX=":"
3316
3317if test -z "$LEXLIB"
3318then
3319 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3320echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3321if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324 ac_check_lib_save_LIBS=$LIBS
3325LIBS="-lfl $LIBS"
3326cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003327/* confdefs.h. */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003332
3333/* Override any gcc2 internal prototype to avoid an error. */
3334#ifdef __cplusplus
3335extern "C"
3336#endif
3337/* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3339char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003340int
3341main ()
3342{
3343yywrap ();
3344 ;
3345 return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext conftest$ac_exeext
3349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003350 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_lib_fl_yywrap=yes
3371else
3372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003373sed 's/^/| /' conftest.$ac_ext >&5
3374
John Criswell7a73b802003-06-30 21:59:07 +00003375ac_cv_lib_fl_yywrap=no
3376fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003377rm -f conftest.err conftest.$ac_objext \
3378 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003379LIBS=$ac_check_lib_save_LIBS
3380fi
3381echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3382echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3383if test $ac_cv_lib_fl_yywrap = yes; then
3384 LEXLIB="-lfl"
3385else
3386 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3387echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3388if test "${ac_cv_lib_l_yywrap+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390else
3391 ac_check_lib_save_LIBS=$LIBS
3392LIBS="-ll $LIBS"
3393cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003399
3400/* Override any gcc2 internal prototype to avoid an error. */
3401#ifdef __cplusplus
3402extern "C"
3403#endif
3404/* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003407int
3408main ()
3409{
3410yywrap ();
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext conftest$ac_exeext
3416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003417 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_lib_l_yywrap=yes
3438else
3439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003440sed 's/^/| /' conftest.$ac_ext >&5
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_cv_lib_l_yywrap=no
3443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003444rm -f conftest.err conftest.$ac_objext \
3445 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003446LIBS=$ac_check_lib_save_LIBS
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3449echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3450if test $ac_cv_lib_l_yywrap = yes; then
3451 LEXLIB="-ll"
3452fi
3453
3454fi
3455
3456fi
3457
3458if test "x$LEX" != "x:"; then
3459 echo "$as_me:$LINENO: checking lex output file root" >&5
3460echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3461if test "${ac_cv_prog_lex_root+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 # The minimal lex program is just a single line: %%. But some broken lexes
3465# (Solaris, I think it was) want two %% lines, so accommodate them.
3466cat >conftest.l <<_ACEOF
3467%%
3468%%
3469_ACEOF
3470{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3471 (eval $LEX conftest.l) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }
3475if test -f lex.yy.c; then
3476 ac_cv_prog_lex_root=lex.yy
3477elif test -f lexyy.c; then
3478 ac_cv_prog_lex_root=lexyy
3479else
3480 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3481echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3482 { (exit 1); exit 1; }; }
3483fi
3484fi
3485echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3486echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3487rm -f conftest.l
3488LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3489
3490echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3491echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3492if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 # POSIX says lex can declare yytext either as a pointer or an array; the
3496# default is implementation-dependent. Figure out which it is, since
3497# not all implementations provide the %pointer and %array declarations.
3498ac_cv_prog_lex_yytext_pointer=no
3499echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3500ac_save_LIBS=$LIBS
3501LIBS="$LIBS $LEXLIB"
3502cat >conftest.$ac_ext <<_ACEOF
3503`cat $LEX_OUTPUT_ROOT.c`
3504_ACEOF
3505rm -f conftest.$ac_objext conftest$ac_exeext
3506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003507 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003508 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_prog_lex_yytext_pointer=yes
3528else
3529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003530sed 's/^/| /' conftest.$ac_ext >&5
3531
John Criswell7a73b802003-06-30 21:59:07 +00003532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003533rm -f conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003535LIBS=$ac_save_LIBS
3536rm -f "${LEX_OUTPUT_ROOT}.c"
3537
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3540echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3541if test $ac_cv_prog_lex_yytext_pointer = yes; then
3542
3543cat >>confdefs.h <<\_ACEOF
3544#define YYTEXT_POINTER 1
3545_ACEOF
3546
3547fi
3548
3549fi
3550
3551fi
3552echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3553echo "${ECHO_T}$ac_cv_has_flex" >&6
3554if test "$LEX" != "flex"; then
3555 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3556echo "$as_me: error: flex not found but required" >&2;}
3557 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003558else
3559 FLEX=flex
3560
John Criswell7a73b802003-06-30 21:59:07 +00003561fi
3562
3563echo "$as_me:$LINENO: checking " >&5
3564echo $ECHO_N "checking ... $ECHO_C" >&6
3565if test "${ac_cv_has_bison+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568 for ac_prog in 'bison -y' byacc
3569do
3570 # Extract the first word of "$ac_prog", so it can be a program name with args.
3571set dummy $ac_prog; ac_word=$2
3572echo "$as_me:$LINENO: checking for $ac_word" >&5
3573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574if test "${ac_cv_prog_YACC+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 if test -n "$YACC"; then
3578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583 IFS=$as_save_IFS
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_YACC="$ac_prog"
3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591done
3592done
3593
3594fi
3595fi
3596YACC=$ac_cv_prog_YACC
3597if test -n "$YACC"; then
3598 echo "$as_me:$LINENO: result: $YACC" >&5
3599echo "${ECHO_T}$YACC" >&6
3600else
3601 echo "$as_me:$LINENO: result: no" >&5
3602echo "${ECHO_T}no" >&6
3603fi
3604
3605 test -n "$YACC" && break
3606done
3607test -n "$YACC" || YACC="yacc"
3608
3609
3610fi
3611echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3612echo "${ECHO_T}$ac_cv_has_bison" >&6
3613if test "$YACC" != "bison -y"; then
3614 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3615echo "$as_me: error: bison not found but required" >&2;}
3616 { (exit 1); exit 1; }; }
3617else
Brian Gaeke12810632004-01-13 06:52:10 +00003618 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003619
3620fi
3621
John Criswell7a73b802003-06-30 21:59:07 +00003622# Check whether --enable-shared or --disable-shared was given.
3623if test "${enable_shared+set}" = set; then
3624 enableval="$enable_shared"
3625 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003626 case $enableval in
3627 yes) enable_shared=yes ;;
3628 no) enable_shared=no ;;
3629 *)
3630 enable_shared=no
3631 # Look at the argument we got. We use all the common list separators.
3632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3633 for pkg in $enableval; do
3634 IFS="$lt_save_ifs"
3635 if test "X$pkg" = "X$p"; then
3636 enable_shared=yes
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640 ;;
3641 esac
John Criswell7a73b802003-06-30 21:59:07 +00003642else
3643 enable_shared=yes
3644fi;
John Criswell47fdd832003-07-14 16:52:07 +00003645
John Criswell7a73b802003-06-30 21:59:07 +00003646# Check whether --enable-static or --disable-static was given.
3647if test "${enable_static+set}" = set; then
3648 enableval="$enable_static"
3649 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003650 case $enableval in
3651 yes) enable_static=yes ;;
3652 no) enable_static=no ;;
3653 *)
3654 enable_static=no
3655 # Look at the argument we got. We use all the common list separators.
3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3657 for pkg in $enableval; do
3658 IFS="$lt_save_ifs"
3659 if test "X$pkg" = "X$p"; then
3660 enable_static=yes
3661 fi
3662 done
3663 IFS="$lt_save_ifs"
3664 ;;
3665 esac
John Criswell7a73b802003-06-30 21:59:07 +00003666else
3667 enable_static=yes
3668fi;
John Criswell47fdd832003-07-14 16:52:07 +00003669
John Criswell7a73b802003-06-30 21:59:07 +00003670# Check whether --enable-fast-install or --disable-fast-install was given.
3671if test "${enable_fast_install+set}" = set; then
3672 enableval="$enable_fast_install"
3673 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003674 case $enableval in
3675 yes) enable_fast_install=yes ;;
3676 no) enable_fast_install=no ;;
3677 *)
3678 enable_fast_install=no
3679 # Look at the argument we got. We use all the common list separators.
3680 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681 for pkg in $enableval; do
3682 IFS="$lt_save_ifs"
3683 if test "X$pkg" = "X$p"; then
3684 enable_fast_install=yes
3685 fi
3686 done
3687 IFS="$lt_save_ifs"
3688 ;;
3689 esac
John Criswell7a73b802003-06-30 21:59:07 +00003690else
3691 enable_fast_install=yes
3692fi;
John Criswell47fdd832003-07-14 16:52:07 +00003693
3694echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3695echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3696if test "${lt_cv_path_SED+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 # Loop through the user's path and test for sed and gsed.
3700# Then use that list of sed's as ones to test for truncation.
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for lt_ac_prog in sed gsed; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3709 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3710 fi
3711 done
3712 done
3713done
3714lt_ac_max=0
3715lt_ac_count=0
3716# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3717# along with /bin/sed that truncates output.
3718for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3719 test ! -f $lt_ac_sed && break
3720 cat /dev/null > conftest.in
3721 lt_ac_count=0
3722 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3723 # Check for GNU sed and select it if it is found.
3724 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3725 lt_cv_path_SED=$lt_ac_sed
3726 break
3727 fi
3728 while true; do
3729 cat conftest.in conftest.in >conftest.tmp
3730 mv conftest.tmp conftest.in
3731 cp conftest.in conftest.nl
3732 echo >>conftest.nl
3733 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3734 cmp -s conftest.out conftest.nl || break
3735 # 10000 chars as input seems more than enough
3736 test $lt_ac_count -gt 10 && break
3737 lt_ac_count=`expr $lt_ac_count + 1`
3738 if test $lt_ac_count -gt $lt_ac_max; then
3739 lt_ac_max=$lt_ac_count
3740 lt_cv_path_SED=$lt_ac_sed
3741 fi
3742 done
3743done
John Criswell47fdd832003-07-14 16:52:07 +00003744
John Criswell7a73b802003-06-30 21:59:07 +00003745fi
3746
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00003748echo "$as_me:$LINENO: result: $SED" >&5
3749echo "${ECHO_T}$SED" >&6
3750
3751echo "$as_me:$LINENO: checking for egrep" >&5
3752echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3753if test "${ac_cv_prog_egrep+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3757 then ac_cv_prog_egrep='grep -E'
3758 else ac_cv_prog_egrep='egrep'
3759 fi
3760fi
3761echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3762echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3763 EGREP=$ac_cv_prog_egrep
3764
3765
John Criswell7a73b802003-06-30 21:59:07 +00003766
3767# Check whether --with-gnu-ld or --without-gnu-ld was given.
3768if test "${with_gnu_ld+set}" = set; then
3769 withval="$with_gnu_ld"
3770 test "$withval" = no || with_gnu_ld=yes
3771else
3772 with_gnu_ld=no
3773fi;
3774ac_prog=ld
3775if test "$GCC" = yes; then
3776 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003777 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3778echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003779 case $host in
3780 *-*-mingw*)
3781 # gcc leaves a trailing carriage return which upsets mingw
3782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3783 *)
3784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3785 esac
3786 case $ac_prog in
3787 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003788 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003789 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003790 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003791 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003793 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003794 done
3795 test -z "$LD" && LD="$ac_prog"
3796 ;;
3797 "")
3798 # If it fails, then pretend we aren't using GCC.
3799 ac_prog=ld
3800 ;;
3801 *)
3802 # If it is relative, then search for the first ld in PATH.
3803 with_gnu_ld=unknown
3804 ;;
3805 esac
3806elif test "$with_gnu_ld" = yes; then
3807 echo "$as_me:$LINENO: checking for GNU ld" >&5
3808echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3809else
3810 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3811echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3812fi
3813if test "${lt_cv_path_LD+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003818 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003819 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003820 test -z "$ac_dir" && ac_dir=.
3821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3822 lt_cv_path_LD="$ac_dir/$ac_prog"
3823 # Check to see if the program is GNU ld. I'd rather use --version,
3824 # but apparently some GNU ld's only accept -v.
3825 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3827 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003828 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003829 ;;
3830 *)
John Criswell7a73b802003-06-30 21:59:07 +00003831 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003832 ;;
3833 esac
John Criswell7a73b802003-06-30 21:59:07 +00003834 fi
3835 done
John Criswell47fdd832003-07-14 16:52:07 +00003836 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003837else
3838 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3839fi
3840fi
3841
3842LD="$lt_cv_path_LD"
3843if test -n "$LD"; then
3844 echo "$as_me:$LINENO: result: $LD" >&5
3845echo "${ECHO_T}$LD" >&6
3846else
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
3849fi
3850test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3851echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3852 { (exit 1); exit 1; }; }
3853echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3854echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3855if test "${lt_cv_prog_gnu_ld+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003859case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003860*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003861 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003862 ;;
3863*)
John Criswell7a73b802003-06-30 21:59:07 +00003864 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003865 ;;
3866esac
John Criswell7a73b802003-06-30 21:59:07 +00003867fi
3868echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3869echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3870with_gnu_ld=$lt_cv_prog_gnu_ld
3871
3872
3873echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3874echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3875if test "${lt_cv_ld_reload_flag+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877else
3878 lt_cv_ld_reload_flag='-r'
3879fi
3880echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3881echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3882reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003883case $reload_flag in
3884"" | " "*) ;;
3885*) reload_flag=" $reload_flag" ;;
3886esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00003887reload_cmds='$LD$reload_flag -o $output$reload_objs'
3888case $host_os in
3889 darwin*)
3890 if test "$GCC" = yes; then
3891 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3892 else
3893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3894 fi
3895 ;;
3896esac
John Criswell7a73b802003-06-30 21:59:07 +00003897
3898echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3899echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3900if test "${lt_cv_path_NM+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 if test -n "$NM"; then
3904 # Let the user override the test.
3905 lt_cv_path_NM="$NM"
3906else
John Criswell47fdd832003-07-14 16:52:07 +00003907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003908 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003909 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003910 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003911 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3912 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003913 # Check to see if the nm accepts a BSD-compat flag.
3914 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3915 # nm: unknown option "B" ignored
3916 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003917 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3918 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003919 lt_cv_path_NM="$tmp_nm -B"
3920 break
John Criswell47fdd832003-07-14 16:52:07 +00003921 ;;
3922 *)
3923 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3924 */dev/null*)
3925 lt_cv_path_NM="$tmp_nm -p"
3926 break
3927 ;;
3928 *)
3929 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3930 continue # so that we can try to find one that supports BSD flags
3931 ;;
3932 esac
3933 esac
John Criswell7a73b802003-06-30 21:59:07 +00003934 fi
3935 done
John Criswell47fdd832003-07-14 16:52:07 +00003936 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003937 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3938fi
3939fi
John Criswell47fdd832003-07-14 16:52:07 +00003940echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3941echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003942NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003943
3944echo "$as_me:$LINENO: checking whether ln -s works" >&5
3945echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3946LN_S=$as_ln_s
3947if test "$LN_S" = "ln -s"; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949echo "${ECHO_T}yes" >&6
3950else
3951 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3952echo "${ECHO_T}no, using $LN_S" >&6
3953fi
3954
John Criswell47fdd832003-07-14 16:52:07 +00003955echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3956echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003957if test "${lt_cv_deplibs_check_method+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 lt_cv_file_magic_cmd='$MAGIC_CMD'
3961lt_cv_file_magic_test_file=
3962lt_cv_deplibs_check_method='unknown'
3963# Need to set the preceding variable on all platforms that support
3964# interlibrary dependencies.
3965# 'none' -- dependencies not supported.
3966# `unknown' -- same as none, but documents that we really don't know.
3967# 'pass_all' -- all dependencies passed with no checks.
3968# 'test_compile' -- check by making test program.
3969# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003970# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003971# If you have `file' or equivalent on your system and you're not sure
3972# whether `pass_all' will *always* work, you probably want this one.
3973
3974case $host_os in
3975aix4* | aix5*)
3976 lt_cv_deplibs_check_method=pass_all
3977 ;;
3978
3979beos*)
3980 lt_cv_deplibs_check_method=pass_all
3981 ;;
3982
Reid Spencer2706f8c2004-09-19 23:53:36 +00003983bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00003984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3985 lt_cv_file_magic_cmd='/usr/bin/file -L'
3986 lt_cv_file_magic_test_file=/shlib/libc.so
3987 ;;
3988
Reid Spencer2706f8c2004-09-19 23:53:36 +00003989cygwin*)
3990 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00003991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003992 lt_cv_file_magic_cmd='func_win32_libid'
3993 ;;
3994
3995mingw* | pw32*)
3996 # Base MSYS/MinGW do not provide the 'file' command needed by
3997 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3998 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3999 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004000 ;;
4001
4002darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004003 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004004 ;;
4005
Reid Spencer2706f8c2004-09-19 23:53:36 +00004006freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004007 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4008 case $host_cpu in
4009 i*86 )
4010 # Not sure whether the presence of OpenBSD here was a mistake.
4011 # Let's accept both of them until this is cleared up.
4012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4013 lt_cv_file_magic_cmd=/usr/bin/file
4014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4015 ;;
4016 esac
4017 else
4018 lt_cv_deplibs_check_method=pass_all
4019 fi
4020 ;;
4021
4022gnu*)
4023 lt_cv_deplibs_check_method=pass_all
4024 ;;
4025
John Criswell47fdd832003-07-14 16:52:07 +00004026hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004027 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004028 case "$host_cpu" in
4029 ia64*)
4030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4032 ;;
4033 hppa*64*)
4034 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]'
4035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4036 ;;
4037 *)
4038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4039 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4040 ;;
4041 esac
John Criswell7a73b802003-06-30 21:59:07 +00004042 ;;
4043
John Criswell47fdd832003-07-14 16:52:07 +00004044irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004045 case $LD in
4046 *-32|*"-32 ") libmagic=32-bit;;
4047 *-n32|*"-n32 ") libmagic=N32;;
4048 *-64|*"-64 ") libmagic=64-bit;;
4049 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004050 esac
John Criswell7a73b802003-06-30 21:59:07 +00004051 lt_cv_deplibs_check_method=pass_all
4052 ;;
4053
4054# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004055linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004056 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004057 ;;
4058
4059netbsd*)
4060 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004062 else
John Criswell47fdd832003-07-14 16:52:07 +00004063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004064 fi
4065 ;;
4066
4067newos6*)
4068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4069 lt_cv_file_magic_cmd=/usr/bin/file
4070 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4071 ;;
4072
Reid Spencer2706f8c2004-09-19 23:53:36 +00004073nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004074 lt_cv_deplibs_check_method=unknown
4075 ;;
4076
John Criswell7a73b802003-06-30 21:59:07 +00004077openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004080 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004082 fi
4083 ;;
4084
4085osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004086 lt_cv_deplibs_check_method=pass_all
4087 ;;
4088
4089sco3.2v5*)
4090 lt_cv_deplibs_check_method=pass_all
4091 ;;
4092
4093solaris*)
4094 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004095 ;;
4096
John Criswell7a73b802003-06-30 21:59:07 +00004097sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4098 case $host_vendor in
4099 motorola)
4100 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]'
4101 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4102 ;;
4103 ncr)
4104 lt_cv_deplibs_check_method=pass_all
4105 ;;
4106 sequent)
4107 lt_cv_file_magic_cmd='/bin/file'
4108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4109 ;;
4110 sni)
4111 lt_cv_file_magic_cmd='/bin/file'
4112 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4113 lt_cv_file_magic_test_file=/lib/libc.so
4114 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004115 siemens)
4116 lt_cv_deplibs_check_method=pass_all
4117 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004118 esac
4119 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004120
4121sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4122 lt_cv_deplibs_check_method=pass_all
4123 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004124esac
4125
4126fi
4127echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4128echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4129file_magic_cmd=$lt_cv_file_magic_cmd
4130deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004131test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004132
4133
4134
4135
John Criswell47fdd832003-07-14 16:52:07 +00004136# If no C compiler was specified, use CC.
4137LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004138
John Criswell47fdd832003-07-14 16:52:07 +00004139# Allow CC to be a program name with arguments.
4140compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004141
John Criswell47fdd832003-07-14 16:52:07 +00004142# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4143if test "${enable_libtool_lock+set}" = set; then
4144 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004145
John Criswell47fdd832003-07-14 16:52:07 +00004146fi;
4147test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004148
John Criswell47fdd832003-07-14 16:52:07 +00004149# Some flags need to be propagated to the compiler or linker for good
4150# libtool support.
4151case $host in
4152ia64-*-hpux*)
4153 # Find out which ABI we are using.
4154 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004160 case `/usr/bin/file conftest.$ac_objext` in
4161 *ELF-32*)
4162 HPUX_IA64_MODE="32"
4163 ;;
4164 *ELF-64*)
4165 HPUX_IA64_MODE="64"
4166 ;;
4167 esac
4168 fi
4169 rm -rf conftest*
4170 ;;
4171*-*-irix6*)
4172 # Find out which ABI we are using.
Reid Spencer8b93e7a2004-09-21 17:14:44 +00004173 echo '#line 4173 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004178 (exit $ac_status); }; then
4179 if test "$lt_cv_prog_gnu_ld" = yes; then
4180 case `/usr/bin/file conftest.$ac_objext` in
4181 *32-bit*)
4182 LD="${LD-ld} -melf32bsmip"
4183 ;;
4184 *N32*)
4185 LD="${LD-ld} -melf32bmipn32"
4186 ;;
4187 *64-bit*)
4188 LD="${LD-ld} -melf64bmip"
4189 ;;
4190 esac
4191 else
4192 case `/usr/bin/file conftest.$ac_objext` in
4193 *32-bit*)
4194 LD="${LD-ld} -32"
4195 ;;
4196 *N32*)
4197 LD="${LD-ld} -n32"
4198 ;;
4199 *64-bit*)
4200 LD="${LD-ld} -64"
4201 ;;
4202 esac
4203 fi
4204 fi
4205 rm -rf conftest*
4206 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004207
John Criswell47fdd832003-07-14 16:52:07 +00004208x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4209 # Find out which ABI we are using.
4210 echo 'int i;' > conftest.$ac_ext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212 (eval $ac_compile) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; then
4216 case "`/usr/bin/file conftest.o`" in
4217 *32-bit*)
4218 case $host in
4219 x86_64-*linux*)
4220 LD="${LD-ld} -m elf_i386"
4221 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004222 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004223 LD="${LD-ld} -m elf32ppclinux"
4224 ;;
4225 s390x-*linux*)
4226 LD="${LD-ld} -m elf_s390"
4227 ;;
4228 sparc64-*linux*)
4229 LD="${LD-ld} -m elf32_sparc"
4230 ;;
4231 esac
4232 ;;
4233 *64-bit*)
4234 case $host in
4235 x86_64-*linux*)
4236 LD="${LD-ld} -m elf_x86_64"
4237 ;;
4238 ppc*-*linux*|powerpc*-*linux*)
4239 LD="${LD-ld} -m elf64ppc"
4240 ;;
4241 s390*-*linux*)
4242 LD="${LD-ld} -m elf64_s390"
4243 ;;
4244 sparc*-*linux*)
4245 LD="${LD-ld} -m elf64_sparc"
4246 ;;
4247 esac
4248 ;;
4249 esac
4250 fi
4251 rm -rf conftest*
4252 ;;
4253
4254*-*-sco3.2v5*)
4255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4256 SAVE_CFLAGS="$CFLAGS"
4257 CFLAGS="$CFLAGS -belf"
4258 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4259echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4260if test "${lt_cv_cc_needs_belf+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268
4269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004275
John Criswell47fdd832003-07-14 16:52:07 +00004276int
4277main ()
John Criswell7a73b802003-06-30 21:59:07 +00004278{
John Criswell7a73b802003-06-30 21:59:07 +00004279
John Criswell47fdd832003-07-14 16:52:07 +00004280 ;
4281 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004282}
John Criswell47fdd832003-07-14 16:52:07 +00004283_ACEOF
4284rm -f conftest.$ac_objext conftest$ac_exeext
4285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004286 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004292 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004293 { ac_try='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004307else
John Criswell47fdd832003-07-14 16:52:07 +00004308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004309sed 's/^/| /' conftest.$ac_ext >&5
4310
John Criswell47fdd832003-07-14 16:52:07 +00004311lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004312fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004313rm -f conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004315 ac_ext=c
4316ac_cpp='$CPP $CPPFLAGS'
4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
John Criswell7a73b802003-06-30 21:59:07 +00004321fi
John Criswell47fdd832003-07-14 16:52:07 +00004322echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4323echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4326 CFLAGS="$SAVE_CFLAGS"
4327 fi
4328 ;;
4329
4330esac
4331
4332need_locks="$enable_libtool_lock"
4333
John Criswell7a73b802003-06-30 21:59:07 +00004334
4335
4336echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004347#include <stdlib.h>
4348#include <stdarg.h>
4349#include <string.h>
4350#include <float.h>
4351
John Criswell0c38eaf2003-09-10 15:17:25 +00004352int
4353main ()
4354{
4355
4356 ;
4357 return 0;
4358}
John Criswell7a73b802003-06-30 21:59:07 +00004359_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004360rm -f conftest.$ac_objext
4361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004362 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004369 { ac_try='test -z "$ac_c_werror_flag"
4370 || test ! -s conftest.err'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; } &&
4376 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004382 ac_cv_header_stdc=yes
4383else
4384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004385sed 's/^/| /' conftest.$ac_ext >&5
4386
4387ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004390
4391if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004399#include <string.h>
4400
4401_ACEOF
4402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004403 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004404 :
4405else
4406 ac_cv_header_stdc=no
4407fi
4408rm -f conftest*
4409
4410fi
4411
4412if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004415/* confdefs.h. */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004420#include <stdlib.h>
4421
4422_ACEOF
4423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004424 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004425 :
4426else
4427 ac_cv_header_stdc=no
4428fi
4429rm -f conftest*
4430
4431fi
4432
4433if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4436 :
4437else
4438 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004439/* confdefs.h. */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004444#include <ctype.h>
4445#if ((' ' & 0x0FF) == 0x020)
4446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004449# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454#endif
4455
4456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4457int
4458main ()
4459{
4460 int i;
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004463 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004464 exit(2);
4465 exit (0);
4466}
4467_ACEOF
4468rm -f conftest$ac_exeext
4469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470 (eval $ac_link) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 :
4480else
4481 echo "$as_me: program exited with status $ac_status" >&5
4482echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004483sed 's/^/| /' conftest.$ac_ext >&5
4484
John Criswell7a73b802003-06-30 21:59:07 +00004485( exit $ac_status )
4486ac_cv_header_stdc=no
4487fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004489fi
4490fi
4491fi
4492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4493echo "${ECHO_T}$ac_cv_header_stdc" >&6
4494if test $ac_cv_header_stdc = yes; then
4495
4496cat >>confdefs.h <<\_ACEOF
4497#define STDC_HEADERS 1
4498_ACEOF
4499
4500fi
4501
4502# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004513 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004514do
4515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4516echo "$as_me:$LINENO: checking for $ac_header" >&5
4517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4518if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004522/* confdefs.h. */
4523_ACEOF
4524cat confdefs.h >>conftest.$ac_ext
4525cat >>conftest.$ac_ext <<_ACEOF
4526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004527$ac_includes_default
4528
4529#include <$ac_header>
4530_ACEOF
4531rm -f conftest.$ac_objext
4532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004533 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_Header=yes"
4554else
4555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004556sed 's/^/| /' conftest.$ac_ext >&5
4557
John Criswell7a73b802003-06-30 21:59:07 +00004558eval "$as_ac_Header=no"
4559fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004561fi
4562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4564if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567_ACEOF
4568
4569fi
4570
4571done
4572
4573
4574
4575for ac_header in dlfcn.h
4576do
4577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004578if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004580echo $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
Brian Gaeke0a621332004-09-08 20:38:05 +00004583fi
4584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004586else
Brian Gaeke0a621332004-09-08 20:38:05 +00004587 # Is the header compilable?
4588echo "$as_me:$LINENO: checking $ac_header usability" >&5
4589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4590cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004591/* confdefs.h. */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004596$ac_includes_default
4597#include <$ac_header>
4598_ACEOF
4599rm -f conftest.$ac_objext
4600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004608 { ac_try='test -z "$ac_c_werror_flag"
4609 || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004621 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004622else
4623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004624sed 's/^/| /' conftest.$ac_ext >&5
4625
Brian Gaeke0a621332004-09-08 20:38:05 +00004626ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4630echo "${ECHO_T}$ac_header_compiler" >&6
4631
4632# Is the header present?
4633echo "$as_me:$LINENO: checking $ac_header presence" >&5
4634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4635cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641#include <$ac_header>
4642_ACEOF
4643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } >/dev/null; then
4651 if test -s conftest.err; then
4652 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00004654 else
4655 ac_cpp_err=
4656 fi
4657else
4658 ac_cpp_err=yes
4659fi
4660if test -z "$ac_cpp_err"; then
4661 ac_header_preproc=yes
4662else
4663 echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_header_preproc=no
4667fi
4668rm -f conftest.err conftest.$ac_ext
4669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670echo "${ECHO_T}$ac_header_preproc" >&6
4671
4672# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4674 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00004675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4676echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4678echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4679 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00004680 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004681 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00004682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4687echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4689echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4693echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004694 (
4695 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00004696## ----------------------------------- ##
4697## Report this to llvmbugs@cs.uiuc.edu ##
4698## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00004699_ASBOX
4700 ) |
4701 sed "s/^/$as_me: WARNING: /" >&2
4702 ;;
4703esac
4704echo "$as_me:$LINENO: checking for $ac_header" >&5
4705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4706if eval "test \"\${$as_ac_Header+set}\" = set"; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004709 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004710fi
4711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004713
4714fi
John Criswell7a73b802003-06-30 21:59:07 +00004715if test `eval echo '${'$as_ac_Header'}'` = yes; then
4716 cat >>confdefs.h <<_ACEOF
4717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718_ACEOF
4719
4720fi
4721
4722done
4723
Reid Spencer2706f8c2004-09-19 23:53:36 +00004724
4725
4726if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4727 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4728 (test "X$CXX" != "Xg++"))) ; then
4729 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00004730ac_cpp='$CXXCPP $CPPFLAGS'
4731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4734echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4735echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4736if test -z "$CXXCPP"; then
4737 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
John Criswell47fdd832003-07-14 16:52:07 +00004740 # Double quotes because CXXCPP needs to be expanded
4741 for CXXCPP in "$CXX -E" "/lib/cpp"
4742 do
4743 ac_preproc_ok=false
4744for ac_cxx_preproc_warn_flag in '' yes
4745do
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004753/* confdefs.h. */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h. */
4758#ifdef __STDC__
4759# include <limits.h>
4760#else
4761# include <assert.h>
4762#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004763 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004764_ACEOF
4765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4767 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004768 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null; then
4773 if test -s conftest.err; then
4774 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004775 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004776 else
John Criswell47fdd832003-07-14 16:52:07 +00004777 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004778 fi
John Criswell47fdd832003-07-14 16:52:07 +00004779else
4780 ac_cpp_err=yes
4781fi
4782if test -z "$ac_cpp_err"; then
4783 :
4784else
4785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004786sed 's/^/| /' conftest.$ac_ext >&5
4787
John Criswell47fdd832003-07-14 16:52:07 +00004788 # Broken: fails on valid input.
4789continue
4790fi
4791rm -f conftest.err conftest.$ac_ext
4792
4793 # OK, works on sane cases. Now check whether non-existent headers
4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004801#include <ac_nonexistent.h>
4802_ACEOF
4803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4805 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004806 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null; then
4811 if test -s conftest.err; then
4812 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004813 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004814 else
4815 ac_cpp_err=
4816 fi
4817else
4818 ac_cpp_err=yes
4819fi
4820if test -z "$ac_cpp_err"; then
4821 # Broken: success on invalid input.
4822continue
4823else
4824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004825sed 's/^/| /' conftest.$ac_ext >&5
4826
John Criswell47fdd832003-07-14 16:52:07 +00004827 # Passes both tests.
4828ac_preproc_ok=:
4829break
4830fi
4831rm -f conftest.err conftest.$ac_ext
4832
4833done
4834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4835rm -f conftest.err conftest.$ac_ext
4836if $ac_preproc_ok; then
4837 break
John Criswell7a73b802003-06-30 21:59:07 +00004838fi
4839
John Criswell47fdd832003-07-14 16:52:07 +00004840 done
4841 ac_cv_prog_CXXCPP=$CXXCPP
4842
4843fi
4844 CXXCPP=$ac_cv_prog_CXXCPP
4845else
4846 ac_cv_prog_CXXCPP=$CXXCPP
4847fi
4848echo "$as_me:$LINENO: result: $CXXCPP" >&5
4849echo "${ECHO_T}$CXXCPP" >&6
4850ac_preproc_ok=false
4851for ac_cxx_preproc_warn_flag in '' yes
4852do
4853 # Use a header file that comes with gcc, so configuring glibc
4854 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4856 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004857 # On the NeXT, cc -E runs the code through the compiler's parser,
4858 # not just through cpp. "Syntax error" is here to catch this case.
4859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865#ifdef __STDC__
4866# include <limits.h>
4867#else
4868# include <assert.h>
4869#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004870 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004871_ACEOF
4872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4874 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004875 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004882 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004883 else
4884 ac_cpp_err=
4885 fi
4886else
4887 ac_cpp_err=yes
4888fi
4889if test -z "$ac_cpp_err"; then
4890 :
4891else
4892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004893sed 's/^/| /' conftest.$ac_ext >&5
4894
John Criswell47fdd832003-07-14 16:52:07 +00004895 # Broken: fails on valid input.
4896continue
4897fi
4898rm -f conftest.err conftest.$ac_ext
4899
4900 # OK, works on sane cases. Now check whether non-existent headers
4901 # can be detected and how.
4902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004903/* confdefs.h. */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004908#include <ac_nonexistent.h>
4909_ACEOF
4910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004913 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } >/dev/null; then
4918 if test -s conftest.err; then
4919 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004920 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004921 else
4922 ac_cpp_err=
4923 fi
4924else
4925 ac_cpp_err=yes
4926fi
4927if test -z "$ac_cpp_err"; then
4928 # Broken: success on invalid input.
4929continue
4930else
4931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004932sed 's/^/| /' conftest.$ac_ext >&5
4933
John Criswell47fdd832003-07-14 16:52:07 +00004934 # Passes both tests.
4935ac_preproc_ok=:
4936break
4937fi
4938rm -f conftest.err conftest.$ac_ext
4939
4940done
4941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942rm -f conftest.err conftest.$ac_ext
4943if $ac_preproc_ok; then
4944 :
4945else
John Criswell0c38eaf2003-09-10 15:17:25 +00004946 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4947See \`config.log' for more details." >&5
4948echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4949See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004950 { (exit 1); exit 1; }; }
4951fi
4952
4953ac_ext=cc
4954ac_cpp='$CXXCPP $CPPFLAGS'
4955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958
Reid Spencer2706f8c2004-09-19 23:53:36 +00004959fi
4960
John Criswell47fdd832003-07-14 16:52:07 +00004961
4962ac_ext=f
4963ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4964ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4966if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004967 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00004968 do
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971echo "$as_me:$LINENO: checking for $ac_word" >&5
4972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973if test "${ac_cv_prog_F77+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976 if test -n "$F77"; then
4977 ac_cv_prog_F77="$F77" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4989 fi
4990done
4991done
4992
4993fi
4994fi
4995F77=$ac_cv_prog_F77
4996if test -n "$F77"; then
4997 echo "$as_me:$LINENO: result: $F77" >&5
4998echo "${ECHO_T}$F77" >&6
4999else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002fi
5003
5004 test -n "$F77" && break
5005 done
5006fi
5007if test -z "$F77"; then
5008 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005009 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00005010do
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012set dummy $ac_prog; ac_word=$2
5013echo "$as_me:$LINENO: checking for $ac_word" >&5
5014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017else
5018 if test -n "$ac_ct_F77"; then
5019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5020else
5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022for as_dir in $PATH
5023do
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_F77="$ac_prog"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032done
5033done
5034
5035fi
5036fi
5037ac_ct_F77=$ac_cv_prog_ac_ct_F77
5038if test -n "$ac_ct_F77"; then
5039 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5040echo "${ECHO_T}$ac_ct_F77" >&6
5041else
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044fi
5045
5046 test -n "$ac_ct_F77" && break
5047done
5048
5049 F77=$ac_ct_F77
5050fi
5051
5052
5053# Provide some information about the compiler.
Reid Spencer8b93e7a2004-09-21 17:14:44 +00005054echo "$as_me:5054:" \
John Criswell47fdd832003-07-14 16:52:07 +00005055 "checking for Fortran 77 compiler version" >&5
5056ac_compiler=`set X $ac_compile; echo $2`
5057{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5058 (eval $ac_compiler --version </dev/null >&5) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }
5062{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5063 (eval $ac_compiler -v </dev/null >&5) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }
5067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5068 (eval $ac_compiler -V </dev/null >&5) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005072rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005073
5074# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005075# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005076ac_save_ext=$ac_ext
5077ac_ext=F
5078echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5079echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5080if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083 cat >conftest.$ac_ext <<_ACEOF
5084 program main
5085#ifndef __GNUC__
5086 choke me
5087#endif
5088
5089 end
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005093 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005100 { ac_try='test -z "$ac_f77_werror_flag"
5101 || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_compiler_gnu=yes
5114else
5115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005116sed 's/^/| /' conftest.$ac_ext >&5
5117
John Criswell47fdd832003-07-14 16:52:07 +00005118ac_compiler_gnu=no
5119fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005121ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5122
5123fi
5124echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5125echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5126ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005127ac_test_FFLAGS=${FFLAGS+set}
5128ac_save_FFLAGS=$FFLAGS
5129FFLAGS=
5130echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5131echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5132if test "${ac_cv_prog_f77_g+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134else
5135 FFLAGS=-g
5136cat >conftest.$ac_ext <<_ACEOF
5137 program main
5138
5139 end
5140_ACEOF
5141rm -f conftest.$ac_objext
5142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005143 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005145 grep -v '^ *+' conftest.er1 >conftest.err
5146 rm -f conftest.er1
5147 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005150 { ac_try='test -z "$ac_f77_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_cv_prog_f77_g=yes
5164else
5165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005166sed 's/^/| /' conftest.$ac_ext >&5
5167
John Criswell47fdd832003-07-14 16:52:07 +00005168ac_cv_prog_f77_g=no
5169fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005171
5172fi
5173echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5174echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5175if test "$ac_test_FFLAGS" = set; then
5176 FFLAGS=$ac_save_FFLAGS
5177elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005178 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005179 FFLAGS="-g -O2"
5180 else
5181 FFLAGS="-g"
5182 fi
5183else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005185 FFLAGS="-O2"
5186 else
5187 FFLAGS=
5188 fi
5189fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005190
5191G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005192ac_ext=c
5193ac_cpp='$CPP $CPPFLAGS'
5194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197
5198
5199
5200# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5201
5202# find the maximum length of command line arguments
5203echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5204echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5205if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00005209 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00005210
5211 case $build_os in
5212 msdosdjgpp*)
5213 # On DJGPP, this test can blow up pretty badly due to problems in libc
5214 # (any single argument exceeding 2000 bytes causes a buffer overrun
5215 # during glob expansion). Even if it were fixed, the result of this
5216 # check would be larger than it should be.
5217 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5218 ;;
5219
5220 gnu*)
5221 # Under GNU Hurd, this test is not required because there is
5222 # no limit to the length of command line arguments.
5223 # Libtool will interpret -1 as no limit whatsoever
5224 lt_cv_sys_max_cmd_len=-1;
5225 ;;
5226
5227 cygwin* | mingw*)
5228 # On Win9x/ME, this test blows up -- it succeeds, but takes
5229 # about 5 minutes as the teststring grows exponentially.
5230 # Worse, since 9x/ME are not pre-emptively multitasking,
5231 # you end up with a "frozen" computer, even though with patience
5232 # the test eventually succeeds (with a max line length of 256k).
5233 # Instead, let's just punt: use the minimum linelength reported by
5234 # all of the supported platforms: 8192 (on NT/2K/XP).
5235 lt_cv_sys_max_cmd_len=8192;
5236 ;;
5237
Reid Spencer2706f8c2004-09-19 23:53:36 +00005238 amigaos*)
5239 # On AmigaOS with pdksh, this test takes hours, literally.
5240 # So we just punt and use a minimum line length of 8192.
5241 lt_cv_sys_max_cmd_len=8192;
5242 ;;
5243
5244 netbsd* | freebsd* | openbsd* | darwin* )
5245 # This has been around since 386BSD, at least. Likely further.
5246 if test -x /sbin/sysctl; then
5247 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5248 elif test -x /usr/sbin/sysctl; then
5249 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5250 else
5251 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5252 fi
5253 # And add a safety zone
5254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255 ;;
5256
John Criswell47fdd832003-07-14 16:52:07 +00005257 *)
5258 # If test is not a shell built-in, we'll probably end up computing a
5259 # maximum length that is only half of the actual maximum length, but
5260 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00005261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5262 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5263 = "XX$teststring") >/dev/null 2>&1 &&
5264 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00005265 lt_cv_sys_max_cmd_len=$new_result &&
5266 test $i != 17 # 1/2 MB should be enough
5267 do
5268 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00005269 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00005270 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00005271 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00005272 # Add a significant safety factor because C++ compilers can tack on massive
5273 # amounts of additional arguments before passing them to the linker.
5274 # It appears as though 1/2 is a usable value.
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5276 ;;
5277 esac
5278
5279fi
5280
5281if test -n $lt_cv_sys_max_cmd_len ; then
5282 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5283echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5284else
5285 echo "$as_me:$LINENO: result: none" >&5
5286echo "${ECHO_T}none" >&6
5287fi
5288
5289
5290
5291
5292# Check for command to grab the raw symbol name followed by C symbol from nm.
5293echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5294echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5295if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298
5299# These are sane defaults that work on at least a few old systems.
5300# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5301
5302# Character class describing NM global symbol codes.
5303symcode='[BCDEGRST]'
5304
5305# Regexp to match symbols that can be accessed directly from C.
5306sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5307
5308# Transform the above into a raw symbol and a C symbol.
5309symxfrm='\1 \2\3 \3'
5310
5311# Transform an extracted symbol line into a proper C declaration
5312lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5313
5314# Transform an extracted symbol line into symbol name and symbol address
5315lt_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'"
5316
5317# Define system-specific variables.
5318case $host_os in
5319aix*)
5320 symcode='[BCDT]'
5321 ;;
5322cygwin* | mingw* | pw32*)
5323 symcode='[ABCDGISTW]'
5324 ;;
5325hpux*) # Its linker distinguishes data from code symbols
5326 if test "$host_cpu" = ia64; then
5327 symcode='[ABCDEGRST]'
5328 fi
5329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5330 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'"
5331 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005332linux*)
5333 if test "$host_cpu" = ia64; then
5334 symcode='[ABCDGIRSTW]'
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5337 fi
5338 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005339irix* | nonstopux*)
5340 symcode='[BCDEGRST]'
5341 ;;
5342osf*)
5343 symcode='[BCDEGQRST]'
5344 ;;
5345solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005346 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00005347 ;;
5348sysv4)
5349 symcode='[DFNSTU]'
5350 ;;
5351esac
5352
5353# Handle CRLF in mingw tool chain
5354opt_cr=
5355case $build_os in
5356mingw*)
5357 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5358 ;;
5359esac
5360
5361# If we're using GNU nm, then use its standard symbol codes.
5362case `$NM -V 2>&1` in
5363*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005364 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00005365esac
5366
5367# Try without a prefix undercore, then with it.
5368for ac_symprfx in "" "_"; do
5369
5370 # Write the raw and C identifiers.
5371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5372
5373 # Check to see that the pipe works correctly.
5374 pipe_works=no
5375
5376 rm -f conftest*
5377 cat > conftest.$ac_ext <<EOF
5378#ifdef __cplusplus
5379extern "C" {
5380#endif
5381char nm_test_var;
5382void nm_test_func(){}
5383#ifdef __cplusplus
5384}
5385#endif
5386int main(){nm_test_var='a';nm_test_func();return(0);}
5387EOF
5388
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; then
5394 # Now try to grab the symbols.
5395 nlist=conftest.nm
5396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && test -s "$nlist"; then
5401 # Try sorting and uniquifying the output.
5402 if sort "$nlist" | uniq > "$nlist"T; then
5403 mv -f "$nlist"T "$nlist"
5404 else
5405 rm -f "$nlist"T
5406 fi
5407
5408 # Make sure that we snagged all the symbols we need.
5409 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5410 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5411 cat <<EOF > conftest.$ac_ext
5412#ifdef __cplusplus
5413extern "C" {
5414#endif
5415
5416EOF
5417 # Now generate the symbol file.
5418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5419
5420 cat <<EOF >> conftest.$ac_ext
5421#if defined (__STDC__) && __STDC__
5422# define lt_ptr_t void *
5423#else
5424# define lt_ptr_t char *
5425# define const
5426#endif
5427
5428/* The mapping between symbol names and symbols. */
5429const struct {
5430 const char *name;
5431 lt_ptr_t address;
5432}
5433lt_preloaded_symbols[] =
5434{
5435EOF
5436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5437 cat <<\EOF >> conftest.$ac_ext
5438 {0, (lt_ptr_t) 0}
5439};
5440
5441#ifdef __cplusplus
5442}
5443#endif
5444EOF
5445 # Now try linking the two files.
5446 mv conftest.$ac_objext conftstm.$ac_objext
5447 lt_save_LIBS="$LIBS"
5448 lt_save_CFLAGS="$CFLAGS"
5449 LIBS="conftstm.$ac_objext"
5450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5456 pipe_works=yes
5457 fi
5458 LIBS="$lt_save_LIBS"
5459 CFLAGS="$lt_save_CFLAGS"
5460 else
5461 echo "cannot find nm_test_func in $nlist" >&5
5462 fi
5463 else
5464 echo "cannot find nm_test_var in $nlist" >&5
5465 fi
5466 else
5467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5468 fi
5469 else
5470 echo "$progname: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 fi
5473 rm -f conftest* conftst*
5474
5475 # Do not use the global_symbol_pipe unless it works.
5476 if test "$pipe_works" = yes; then
5477 break
5478 else
5479 lt_cv_sys_global_symbol_pipe=
5480 fi
5481done
5482
5483fi
5484
5485if test -z "$lt_cv_sys_global_symbol_pipe"; then
5486 lt_cv_sys_global_symbol_to_cdecl=
5487fi
5488if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5489 echo "$as_me:$LINENO: result: failed" >&5
5490echo "${ECHO_T}failed" >&6
5491else
5492 echo "$as_me:$LINENO: result: ok" >&5
5493echo "${ECHO_T}ok" >&6
5494fi
5495
5496echo "$as_me:$LINENO: checking for objdir" >&5
5497echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5498if test "${lt_cv_objdir+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501 rm -f .libs 2>/dev/null
5502mkdir .libs 2>/dev/null
5503if test -d .libs; then
5504 lt_cv_objdir=.libs
5505else
5506 # MS-DOS does not allow filenames that begin with a dot.
5507 lt_cv_objdir=_libs
5508fi
5509rmdir .libs 2>/dev/null
5510fi
5511echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5512echo "${ECHO_T}$lt_cv_objdir" >&6
5513objdir=$lt_cv_objdir
5514
5515
5516
5517
5518
5519case $host_os in
5520aix3*)
5521 # AIX sometimes has problems with the GCC collect2 program. For some
5522 # reason, if we set the COLLECT_NAMES environment variable, the problems
5523 # vanish in a puff of smoke.
5524 if test "X${COLLECT_NAMES+set}" != Xset; then
5525 COLLECT_NAMES=
5526 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005527 fi
5528 ;;
5529esac
5530
John Criswell47fdd832003-07-14 16:52:07 +00005531# Sed substitution that helps us do robust quoting. It backslashifies
5532# metacharacters that are still active within double-quoted strings.
5533Xsed='sed -e s/^X//'
5534sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5535
5536# Same as above, but do not quote variable references.
5537double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5538
5539# Sed substitution to delay expansion of an escaped shell variable in a
5540# double_quote_subst'ed string.
5541delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5542
5543# Sed substitution to avoid accidental globbing in evaled expressions
5544no_glob_subst='s/\*/\\\*/g'
5545
5546# Constants:
5547rm="rm -f"
5548
5549# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00005550default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005551can_build_shared=yes
5552
5553# All known linkers require a `.a' archive for static linking (except M$VC,
5554# which needs '.lib').
5555libext=a
5556ltmain="$ac_aux_dir/ltmain.sh"
5557ofile="$default_ofile"
5558with_gnu_ld="$lt_cv_prog_gnu_ld"
5559
5560if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5562set dummy ${ac_tool_prefix}ar; ac_word=$2
5563echo "$as_me:$LINENO: checking for $ac_word" >&5
5564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5565if test "${ac_cv_prog_AR+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568 if test -n "$AR"; then
5569 ac_cv_prog_AR="$AR" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578 ac_cv_prog_AR="${ac_tool_prefix}ar"
5579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582done
5583done
5584
5585fi
5586fi
5587AR=$ac_cv_prog_AR
5588if test -n "$AR"; then
5589 echo "$as_me:$LINENO: result: $AR" >&5
5590echo "${ECHO_T}$AR" >&6
5591else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594fi
5595
5596fi
5597if test -z "$ac_cv_prog_AR"; then
5598 ac_ct_AR=$AR
5599 # Extract the first word of "ar", so it can be a program name with args.
5600set dummy ar; ac_word=$2
5601echo "$as_me:$LINENO: checking for $ac_word" >&5
5602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606 if test -n "$ac_ct_AR"; then
5607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_AR="ar"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621done
5622
5623 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5624fi
5625fi
5626ac_ct_AR=$ac_cv_prog_ac_ct_AR
5627if test -n "$ac_ct_AR"; then
5628 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5629echo "${ECHO_T}$ac_ct_AR" >&6
5630else
5631 echo "$as_me:$LINENO: result: no" >&5
5632echo "${ECHO_T}no" >&6
5633fi
5634
5635 AR=$ac_ct_AR
5636else
5637 AR="$ac_cv_prog_AR"
5638fi
5639
John Criswell7a73b802003-06-30 21:59:07 +00005640if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5642set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5643echo "$as_me:$LINENO: checking for $ac_word" >&5
5644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5645if test "${ac_cv_prog_RANLIB+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648 if test -n "$RANLIB"; then
5649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5661 fi
5662done
5663done
5664
5665fi
5666fi
5667RANLIB=$ac_cv_prog_RANLIB
5668if test -n "$RANLIB"; then
5669 echo "$as_me:$LINENO: result: $RANLIB" >&5
5670echo "${ECHO_T}$RANLIB" >&6
5671else
5672 echo "$as_me:$LINENO: result: no" >&5
5673echo "${ECHO_T}no" >&6
5674fi
5675
5676fi
5677if test -z "$ac_cv_prog_RANLIB"; then
5678 ac_ct_RANLIB=$RANLIB
5679 # Extract the first word of "ranlib", so it can be a program name with args.
5680set dummy ranlib; ac_word=$2
5681echo "$as_me:$LINENO: checking for $ac_word" >&5
5682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 if test -n "$ac_ct_RANLIB"; then
5687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_RANLIB="ranlib"
5697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701done
5702
5703 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5704fi
5705fi
5706ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5707if test -n "$ac_ct_RANLIB"; then
5708 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5709echo "${ECHO_T}$ac_ct_RANLIB" >&6
5710else
5711 echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713fi
5714
5715 RANLIB=$ac_ct_RANLIB
5716else
5717 RANLIB="$ac_cv_prog_RANLIB"
5718fi
5719
5720if test -n "$ac_tool_prefix"; then
5721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5722set dummy ${ac_tool_prefix}strip; ac_word=$2
5723echo "$as_me:$LINENO: checking for $ac_word" >&5
5724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5725if test "${ac_cv_prog_STRIP+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else
5728 if test -n "$STRIP"; then
5729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5741 fi
5742done
5743done
5744
5745fi
5746fi
5747STRIP=$ac_cv_prog_STRIP
5748if test -n "$STRIP"; then
5749 echo "$as_me:$LINENO: result: $STRIP" >&5
5750echo "${ECHO_T}$STRIP" >&6
5751else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754fi
5755
5756fi
5757if test -z "$ac_cv_prog_STRIP"; then
5758 ac_ct_STRIP=$STRIP
5759 # Extract the first word of "strip", so it can be a program name with args.
5760set dummy strip; ac_word=$2
5761echo "$as_me:$LINENO: checking for $ac_word" >&5
5762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 if test -n "$ac_ct_STRIP"; then
5767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_ac_ct_STRIP="strip"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782
5783 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5784fi
5785fi
5786ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787if test -n "$ac_ct_STRIP"; then
5788 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789echo "${ECHO_T}$ac_ct_STRIP" >&6
5790else
5791 echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793fi
5794
5795 STRIP=$ac_ct_STRIP
5796else
5797 STRIP="$ac_cv_prog_STRIP"
5798fi
5799
5800
John Criswell7a73b802003-06-30 21:59:07 +00005801old_CC="$CC"
5802old_CFLAGS="$CFLAGS"
5803
5804# Set sane defaults for various variables
5805test -z "$AR" && AR=ar
5806test -z "$AR_FLAGS" && AR_FLAGS=cru
5807test -z "$AS" && AS=as
5808test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005809test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005810test -z "$DLLTOOL" && DLLTOOL=dlltool
5811test -z "$LD" && LD=ld
5812test -z "$LN_S" && LN_S="ln -s"
5813test -z "$MAGIC_CMD" && MAGIC_CMD=file
5814test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005815test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005816test -z "$OBJDUMP" && OBJDUMP=objdump
5817test -z "$RANLIB" && RANLIB=:
5818test -z "$STRIP" && STRIP=:
5819test -z "$ac_objext" && ac_objext=o
5820
John Criswell7a73b802003-06-30 21:59:07 +00005821# Determine commands to create old-style static archives.
5822old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5823old_postinstall_cmds='chmod 644 $oldlib'
5824old_postuninstall_cmds=
5825
5826if test -n "$RANLIB"; then
5827 case $host_os in
5828 openbsd*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005829 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005830 ;;
5831 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005832 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005833 ;;
5834 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00005835 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005836fi
5837
Reid Spencer2706f8c2004-09-19 23:53:36 +00005838cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5839
John Criswell47fdd832003-07-14 16:52:07 +00005840# Only perform the check for file, if the check method requires it
5841case $deplibs_check_method in
5842file_magic*)
5843 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5844 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5845echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5846if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005848else
John Criswell47fdd832003-07-14 16:52:07 +00005849 case $MAGIC_CMD in
5850[\\/*] | ?:[\\/]*)
5851 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5852 ;;
5853*)
5854 lt_save_MAGIC_CMD="$MAGIC_CMD"
5855 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5856 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5857 for ac_dir in $ac_dummy; do
5858 IFS="$lt_save_ifs"
5859 test -z "$ac_dir" && ac_dir=.
5860 if test -f $ac_dir/${ac_tool_prefix}file; then
5861 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5862 if test -n "$file_magic_test_file"; then
5863 case $deplibs_check_method in
5864 "file_magic "*)
5865 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5867 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5868 $EGREP "$file_magic_regex" > /dev/null; then
5869 :
5870 else
5871 cat <<EOF 1>&2
5872
5873*** Warning: the command libtool uses to detect shared libraries,
5874*** $file_magic_cmd, produces output that libtool cannot recognize.
5875*** The result is that libtool may fail to recognize shared libraries
5876*** as such. This will affect the creation of libtool libraries that
5877*** depend on shared libraries, but programs linked with such libtool
5878*** libraries will work regardless of this problem. Nevertheless, you
5879*** may want to report the problem to your system manager and/or to
5880*** bug-libtool@gnu.org
5881
5882EOF
5883 fi ;;
5884 esac
5885 fi
5886 break
5887 fi
5888 done
5889 IFS="$lt_save_ifs"
5890 MAGIC_CMD="$lt_save_MAGIC_CMD"
5891 ;;
5892esac
John Criswell7a73b802003-06-30 21:59:07 +00005893fi
John Criswell7a73b802003-06-30 21:59:07 +00005894
John Criswell47fdd832003-07-14 16:52:07 +00005895MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5896if test -n "$MAGIC_CMD"; then
5897 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5898echo "${ECHO_T}$MAGIC_CMD" >&6
5899else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902fi
John Criswell7a73b802003-06-30 21:59:07 +00005903
John Criswell47fdd832003-07-14 16:52:07 +00005904if test -z "$lt_cv_path_MAGIC_CMD"; then
5905 if test -n "$ac_tool_prefix"; then
5906 echo "$as_me:$LINENO: checking for file" >&5
5907echo $ECHO_N "checking for file... $ECHO_C" >&6
5908if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911 case $MAGIC_CMD in
5912[\\/*] | ?:[\\/]*)
5913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5914 ;;
5915*)
5916 lt_save_MAGIC_CMD="$MAGIC_CMD"
5917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5918 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5919 for ac_dir in $ac_dummy; do
5920 IFS="$lt_save_ifs"
5921 test -z "$ac_dir" && ac_dir=.
5922 if test -f $ac_dir/file; then
5923 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5924 if test -n "$file_magic_test_file"; then
5925 case $deplibs_check_method in
5926 "file_magic "*)
5927 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5930 $EGREP "$file_magic_regex" > /dev/null; then
5931 :
5932 else
5933 cat <<EOF 1>&2
5934
5935*** Warning: the command libtool uses to detect shared libraries,
5936*** $file_magic_cmd, produces output that libtool cannot recognize.
5937*** The result is that libtool may fail to recognize shared libraries
5938*** as such. This will affect the creation of libtool libraries that
5939*** depend on shared libraries, but programs linked with such libtool
5940*** libraries will work regardless of this problem. Nevertheless, you
5941*** may want to report the problem to your system manager and/or to
5942*** bug-libtool@gnu.org
5943
5944EOF
5945 fi ;;
5946 esac
5947 fi
5948 break
5949 fi
5950 done
5951 IFS="$lt_save_ifs"
5952 MAGIC_CMD="$lt_save_MAGIC_CMD"
5953 ;;
5954esac
5955fi
5956
5957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5958if test -n "$MAGIC_CMD"; then
5959 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5960echo "${ECHO_T}$MAGIC_CMD" >&6
5961else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964fi
5965
5966 else
5967 MAGIC_CMD=:
5968 fi
5969fi
5970
5971 fi
5972 ;;
5973esac
5974
5975enable_dlopen=no
5976enable_win32_dll=no
5977
5978# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5979if test "${enable_libtool_lock+set}" = set; then
5980 enableval="$enable_libtool_lock"
5981
5982fi;
5983test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5984
John Criswell7a73b802003-06-30 21:59:07 +00005985
5986# Check whether --with-pic or --without-pic was given.
5987if test "${with_pic+set}" = set; then
5988 withval="$with_pic"
5989 pic_mode="$withval"
5990else
5991 pic_mode=default
5992fi;
5993test -z "$pic_mode" && pic_mode=default
5994
John Criswell47fdd832003-07-14 16:52:07 +00005995# Use C for the default configuration in the libtool script
5996tagname=
5997lt_save_CC="$CC"
5998ac_ext=c
5999ac_cpp='$CPP $CPPFLAGS'
6000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003
6004
6005# Source file extension for C test sources.
6006ac_ext=c
6007
6008# Object file extension for compiled C test sources.
6009objext=o
6010objext=$objext
6011
6012# Code to be used in simple compile tests
6013lt_simple_compile_test_code="int some_variable = 0;\n"
6014
6015# Code to be used in simple link tests
6016lt_simple_link_test_code='int main(){return(0);}\n'
6017
6018
6019# If no C compiler was specified, use CC.
6020LTCC=${LTCC-"$CC"}
6021
6022# Allow CC to be a program name with arguments.
6023compiler=$CC
6024
6025
6026#
6027# Check for any special shared library compilation flags.
6028#
6029lt_prog_cc_shlib=
6030if test "$GCC" = no; then
6031 case $host_os in
6032 sco3.2v5*)
6033 lt_prog_cc_shlib='-belf'
6034 ;;
6035 esac
6036fi
6037if test -n "$lt_prog_cc_shlib"; then
6038 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6039echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6040 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6041 else
6042 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6043echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6044 lt_cv_prog_cc_can_build_shared=no
6045 fi
6046fi
6047
6048
6049#
6050# Check to make sure the static flag actually works.
6051#
6052echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6053echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6054if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
John Criswell47fdd832003-07-14 16:52:07 +00006057 lt_prog_compiler_static_works=no
6058 save_LDFLAGS="$LDFLAGS"
6059 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6060 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6062 # The compiler can only warn and ignore the option if not recognized
6063 # So say no if there are warnings
6064 if test -s conftest.err; then
6065 # Append any errors to the config.log.
6066 cat conftest.err 1>&5
6067 else
6068 lt_prog_compiler_static_works=yes
6069 fi
6070 fi
6071 $rm conftest*
6072 LDFLAGS="$save_LDFLAGS"
6073
6074fi
6075echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6076echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6077
6078if test x"$lt_prog_compiler_static_works" = xyes; then
6079 :
6080else
6081 lt_prog_compiler_static=
6082fi
6083
6084
6085
John Criswell47fdd832003-07-14 16:52:07 +00006086
6087lt_prog_compiler_no_builtin_flag=
6088
6089if test "$GCC" = yes; then
6090 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6091
Reid Spencer2706f8c2004-09-19 23:53:36 +00006092
6093echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006094echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6095if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 lt_cv_prog_compiler_rtti_exceptions=no
6099 ac_outfile=conftest.$ac_objext
6100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6101 lt_compiler_flag="-fno-rtti -fno-exceptions"
6102 # Insert the option either (1) after the last *FLAGS variable, or
6103 # (2) before a word containing "conftest.", or (3) at the end.
6104 # Note that $ac_compile itself does not contain backslashes and begins
6105 # with a dollar sign (not a hyphen), so the echo should work correctly.
6106 # The option is referenced via a variable to avoid confusing sed.
6107 lt_compile=`echo "$ac_compile" | $SED \
6108 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6110 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +00006111 (eval echo "\"\$as_me:6111: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006112 (eval "$lt_compile" 2>conftest.err)
6113 ac_status=$?
6114 cat conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +00006115 echo "$as_me:6115: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006116 if (exit $ac_status) && test -s "$ac_outfile"; then
6117 # The compiler can only warn and ignore the option if not recognized
6118 # So say no if there are warnings
6119 if test ! -s conftest.err; then
6120 lt_cv_prog_compiler_rtti_exceptions=yes
6121 fi
6122 fi
6123 $rm conftest*
6124
6125fi
6126echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6127echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6128
6129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6131else
6132 :
6133fi
6134
6135fi
6136
6137lt_prog_compiler_wl=
6138lt_prog_compiler_pic=
6139lt_prog_compiler_static=
6140
6141echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6142echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006143
6144 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006145 lt_prog_compiler_wl='-Wl,'
6146 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006147
6148 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006149 aix*)
6150 # All AIX code is PIC.
6151 if test "$host_cpu" = ia64; then
6152 # AIX 5 now supports IA64 processor
6153 lt_prog_compiler_static='-Bstatic'
6154 fi
John Criswell7a73b802003-06-30 21:59:07 +00006155 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006156
John Criswell7a73b802003-06-30 21:59:07 +00006157 amigaos*)
6158 # FIXME: we need at least 68020 code to build shared libraries, but
6159 # adding the `-m68020' flag to GCC prevents building anything better,
6160 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006161 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006162 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006163
6164 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006165 # PIC is the default for these OSes.
6166 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006167
6168 mingw* | pw32* | os2*)
6169 # This hack is so that the source file can tell whether it is being
6170 # built for inclusion in a dll (and should export symbols for example).
6171 lt_prog_compiler_pic='-DDLL_EXPORT'
6172 ;;
6173
John Criswell7a73b802003-06-30 21:59:07 +00006174 darwin* | rhapsody*)
6175 # PIC is the default on this platform
6176 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006177 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006178 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006179
6180 msdosdjgpp*)
6181 # Just because we use GCC doesn't mean we suddenly get shared libraries
6182 # on systems that don't support them.
6183 lt_prog_compiler_can_build_shared=no
6184 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006185 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006186
John Criswell7a73b802003-06-30 21:59:07 +00006187 sysv4*MP*)
6188 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006189 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006190 fi
6191 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006192
6193 hpux*)
6194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6195 # not for PA HP-UX.
6196 case "$host_cpu" in
6197 hppa*64*|ia64*)
6198 # +Z the default
6199 ;;
6200 *)
6201 lt_prog_compiler_pic='-fPIC'
6202 ;;
6203 esac
6204 ;;
6205
John Criswell7a73b802003-06-30 21:59:07 +00006206 *)
John Criswell47fdd832003-07-14 16:52:07 +00006207 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006208 ;;
6209 esac
6210 else
John Criswell47fdd832003-07-14 16:52:07 +00006211 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006212 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006213 aix*)
6214 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006215 if test "$host_cpu" = ia64; then
6216 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006217 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006218 else
John Criswell47fdd832003-07-14 16:52:07 +00006219 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006220 fi
6221 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006222 darwin*)
6223 # PIC is the default on this platform
6224 # Common symbols not allowed in MH_DYLIB files
6225 case "$cc_basename" in
6226 xlc*)
6227 lt_prog_compiler_pic='-qnocommon'
6228 lt_prog_compiler_wl='-Wl,'
6229 ;;
6230 esac
6231 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006232
John Criswell47fdd832003-07-14 16:52:07 +00006233 mingw* | pw32* | os2*)
6234 # This hack is so that the source file can tell whether it is being
6235 # built for inclusion in a dll (and should export symbols for example).
6236 lt_prog_compiler_pic='-DDLL_EXPORT'
6237 ;;
6238
John Criswell7a73b802003-06-30 21:59:07 +00006239 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006240 lt_prog_compiler_wl='-Wl,'
6241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6242 # not for PA HP-UX.
6243 case "$host_cpu" in
6244 hppa*64*|ia64*)
6245 # +Z the default
6246 ;;
6247 *)
6248 lt_prog_compiler_pic='+Z'
6249 ;;
6250 esac
6251 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6252 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006253 ;;
6254
John Criswell47fdd832003-07-14 16:52:07 +00006255 irix5* | irix6* | nonstopux*)
6256 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006257 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006258 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006259 ;;
6260
6261 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006262 lt_prog_compiler_pic='-KPIC'
6263 lt_prog_compiler_static='-Bstatic'
6264 ;;
6265
6266 linux*)
6267 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006268 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006269 lt_prog_compiler_wl='-Wl,'
6270 lt_prog_compiler_pic='-KPIC'
6271 lt_prog_compiler_static='-static'
6272 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006273 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006274 lt_prog_compiler_wl='-Wl,'
6275 # All Alpha code is PIC.
6276 lt_prog_compiler_static='-non_shared'
6277 ;;
6278 esac
John Criswell7a73b802003-06-30 21:59:07 +00006279 ;;
6280
6281 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006282 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006283 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006284 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006285 ;;
6286
6287 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006288 lt_prog_compiler_pic='-Kpic'
6289 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006290 ;;
6291
6292 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_wl='-Wl,'
6294 lt_prog_compiler_pic='-KPIC'
6295 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006296 ;;
6297
6298 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006299 lt_prog_compiler_wl='-Qoption ld '
6300 lt_prog_compiler_pic='-PIC'
6301 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006302 ;;
6303
6304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_wl='-Wl,'
6306 lt_prog_compiler_pic='-KPIC'
6307 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006308 ;;
6309
6310 sysv4*MP*)
6311 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006312 lt_prog_compiler_pic='-Kconform_pic'
6313 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006314 fi
6315 ;;
6316
John Criswell47fdd832003-07-14 16:52:07 +00006317 uts4*)
6318 lt_prog_compiler_pic='-pic'
6319 lt_prog_compiler_static='-Bstatic'
6320 ;;
6321
John Criswell7a73b802003-06-30 21:59:07 +00006322 *)
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006324 ;;
6325 esac
6326 fi
6327
John Criswell47fdd832003-07-14 16:52:07 +00006328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6329echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006330
John Criswell47fdd832003-07-14 16:52:07 +00006331#
6332# Check to make sure the PIC flag actually works.
6333#
6334if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006335
6336echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006337echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6338if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
John Criswell47fdd832003-07-14 16:52:07 +00006341 lt_prog_compiler_pic_works=no
6342 ac_outfile=conftest.$ac_objext
6343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6345 # Insert the option either (1) after the last *FLAGS variable, or
6346 # (2) before a word containing "conftest.", or (3) at the end.
6347 # Note that $ac_compile itself does not contain backslashes and begins
6348 # with a dollar sign (not a hyphen), so the echo should work correctly.
6349 # The option is referenced via a variable to avoid confusing sed.
6350 lt_compile=`echo "$ac_compile" | $SED \
6351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6353 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +00006354 (eval echo "\"\$as_me:6354: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006355 (eval "$lt_compile" 2>conftest.err)
6356 ac_status=$?
6357 cat conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +00006358 echo "$as_me:6358: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006359 if (exit $ac_status) && test -s "$ac_outfile"; then
6360 # The compiler can only warn and ignore the option if not recognized
6361 # So say no if there are warnings
6362 if test ! -s conftest.err; then
6363 lt_prog_compiler_pic_works=yes
6364 fi
6365 fi
6366 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006367
John Criswell47fdd832003-07-14 16:52:07 +00006368fi
6369echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6370echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006371
John Criswell47fdd832003-07-14 16:52:07 +00006372if test x"$lt_prog_compiler_pic_works" = xyes; then
6373 case $lt_prog_compiler_pic in
6374 "" | " "*) ;;
6375 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6376 esac
John Criswell7a73b802003-06-30 21:59:07 +00006377else
John Criswell47fdd832003-07-14 16:52:07 +00006378 lt_prog_compiler_pic=
6379 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006380fi
6381
John Criswell7a73b802003-06-30 21:59:07 +00006382fi
John Criswell47fdd832003-07-14 16:52:07 +00006383case "$host_os" in
6384 # For platforms which do not support PIC, -DPIC is meaningless:
6385 *djgpp*)
6386 lt_prog_compiler_pic=
6387 ;;
6388 *)
6389 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6390 ;;
6391esac
John Criswell7a73b802003-06-30 21:59:07 +00006392
John Criswell7a73b802003-06-30 21:59:07 +00006393echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6394echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006395if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
John Criswell47fdd832003-07-14 16:52:07 +00006398 lt_cv_prog_compiler_c_o=no
6399 $rm -r conftest 2>/dev/null
6400 mkdir conftest
6401 cd conftest
6402 mkdir out
6403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006404
John Criswell47fdd832003-07-14 16:52:07 +00006405 lt_compiler_flag="-o out/conftest2.$ac_objext"
6406 # Insert the option either (1) after the last *FLAGS variable, or
6407 # (2) before a word containing "conftest.", or (3) at the end.
6408 # Note that $ac_compile itself does not contain backslashes and begins
6409 # with a dollar sign (not a hyphen), so the echo should work correctly.
6410 lt_compile=`echo "$ac_compile" | $SED \
6411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6413 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +00006414 (eval echo "\"\$as_me:6414: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006415 (eval "$lt_compile" 2>out/conftest.err)
6416 ac_status=$?
6417 cat out/conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +00006418 echo "$as_me:6418: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6420 then
6421 # The compiler can only warn and ignore the option if not recognized
6422 # So say no if there are warnings
6423 if test ! -s out/conftest.err; then
6424 lt_cv_prog_compiler_c_o=yes
6425 fi
6426 fi
6427 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00006428 $rm conftest*
6429 # SGI C++ compiler will create directory out/ii_files/ for
6430 # template instantiation
6431 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6432 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006433 cd ..
6434 rmdir conftest
6435 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006436
6437fi
John Criswell47fdd832003-07-14 16:52:07 +00006438echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6439echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006440
John Criswell7a73b802003-06-30 21:59:07 +00006441
John Criswell7a73b802003-06-30 21:59:07 +00006442hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006443if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006444 # do not overwrite the value of need_locks provided by the user
6445 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6446echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6447 hard_links=yes
6448 $rm conftest*
6449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6450 touch conftest.a
6451 ln conftest.a conftest.b 2>&5 || hard_links=no
6452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6453 echo "$as_me:$LINENO: result: $hard_links" >&5
6454echo "${ECHO_T}$hard_links" >&6
6455 if test "$hard_links" = no; then
6456 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6457echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6458 need_locks=warn
6459 fi
6460else
6461 need_locks=no
6462fi
John Criswell7a73b802003-06-30 21:59:07 +00006463
John Criswell47fdd832003-07-14 16:52:07 +00006464echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6465echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6466
6467 runpath_var=
6468 allow_undefined_flag=
6469 enable_shared_with_static_runtimes=no
6470 archive_cmds=
6471 archive_expsym_cmds=
6472 old_archive_From_new_cmds=
6473 old_archive_from_expsyms_cmds=
6474 export_dynamic_flag_spec=
6475 whole_archive_flag_spec=
6476 thread_safe_flag_spec=
6477 hardcode_libdir_flag_spec=
6478 hardcode_libdir_flag_spec_ld=
6479 hardcode_libdir_separator=
6480 hardcode_direct=no
6481 hardcode_minus_L=no
6482 hardcode_shlibpath_var=unsupported
6483 link_all_deplibs=unknown
6484 hardcode_automatic=no
6485 module_cmds=
6486 module_expsym_cmds=
6487 always_export_symbols=no
6488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6489 # include_expsyms should be a list of space-separated symbols to be *always*
6490 # included in the symbol list
6491 include_expsyms=
6492 # exclude_expsyms can be an extended regexp of symbols to exclude
6493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6495 # as well as any symbol that contains `d'.
6496 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6498 # platforms (ab)use it in PIC code, but their linkers get confused if
6499 # the symbol is explicitly referenced. Since portable code cannot
6500 # rely on this symbol name, it's probably fine to never include it in
6501 # preloaded symbol tables.
6502 extract_expsyms_cmds=
6503
6504 case $host_os in
6505 cygwin* | mingw* | pw32*)
6506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6507 # When not using gcc, we currently assume that we are using
6508 # Microsoft Visual C++.
6509 if test "$GCC" != yes; then
6510 with_gnu_ld=no
6511 fi
6512 ;;
6513 openbsd*)
6514 with_gnu_ld=no
6515 ;;
6516 esac
6517
6518 ld_shlibs=yes
6519 if test "$with_gnu_ld" = yes; then
6520 # If archive_cmds runs LD, not CC, wlarc should be empty
6521 wlarc='${wl}'
6522
6523 # See if GNU ld supports shared libraries.
6524 case $host_os in
6525 aix3* | aix4* | aix5*)
6526 # On AIX/PPC, the GNU linker is very broken
6527 if test "$host_cpu" != ia64; then
6528 ld_shlibs=no
6529 cat <<EOF 1>&2
6530
6531*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6532*** to be unable to reliably create shared libraries on AIX.
6533*** Therefore, libtool is disabling shared libraries support. If you
6534*** really care for shared libraries, you may want to modify your PATH
6535*** so that a non-GNU linker is found, and then restart.
6536
6537EOF
6538 fi
6539 ;;
6540
6541 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006542 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)'
John Criswell47fdd832003-07-14 16:52:07 +00006543 hardcode_libdir_flag_spec='-L$libdir'
6544 hardcode_minus_L=yes
6545
6546 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6547 # that the semantics of dynamic libraries on AmigaOS, at least up
6548 # to version 4, is to share data among multiple programs linked
6549 # with the same dynamic library. Since this doesn't match the
6550 # behavior of shared libraries on other platforms, we can't use
6551 # them.
6552 ld_shlibs=no
6553 ;;
6554
6555 beos*)
6556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6557 allow_undefined_flag=unsupported
6558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6559 # support --undefined. This deserves some investigation. FIXME
6560 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6561 else
6562 ld_shlibs=no
6563 fi
6564 ;;
6565
6566 cygwin* | mingw* | pw32*)
6567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6568 # as there is no search path for DLLs.
6569 hardcode_libdir_flag_spec='-L$libdir'
6570 allow_undefined_flag=unsupported
6571 always_export_symbols=no
6572 enable_shared_with_static_runtimes=yes
6573 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6574
6575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6577 # If the export-symbols file already is a .def file (1st line
6578 # is EXPORTS), use it as is; otherwise, prepend...
6579 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6580 cp $export_symbols $output_objdir/$soname.def;
6581 else
6582 echo EXPORTS > $output_objdir/$soname.def;
6583 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006584 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +00006585 else
6586 ld_shlibs=no
6587 fi
6588 ;;
6589
6590 netbsd*)
6591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6593 wlarc=
6594 else
6595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6597 fi
6598 ;;
6599
6600 solaris* | sysv5*)
6601 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6602 ld_shlibs=no
6603 cat <<EOF 1>&2
6604
6605*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6606*** create shared libraries on Solaris systems. Therefore, libtool
6607*** is disabling shared libraries support. We urge you to upgrade GNU
6608*** binutils to release 2.9.1 or newer. Another option is to modify
6609*** your PATH or compiler configuration so that the native linker is
6610*** used, and then restart.
6611
6612EOF
6613 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6615 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6616 else
6617 ld_shlibs=no
6618 fi
6619 ;;
6620
6621 sunos4*)
6622 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6623 wlarc=
6624 hardcode_direct=yes
6625 hardcode_shlibpath_var=no
6626 ;;
6627
Reid Spencer2706f8c2004-09-19 23:53:36 +00006628 linux*)
6629 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6630 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6631 archive_cmds="$tmp_archive_cmds"
6632 supports_anon_versioning=no
6633 case `$LD -v 2>/dev/null` in
6634 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6637 *\ 2.11.*) ;; # other 2.11 versions
6638 *) supports_anon_versioning=yes ;;
6639 esac
6640 if test $supports_anon_versioning = yes; then
6641 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6642 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6643 else
6644 archive_expsym_cmds="$tmp_archive_cmds"
6645 fi
6646 else
6647 ld_shlibs=no
6648 fi
6649 ;;
6650
John Criswell47fdd832003-07-14 16:52:07 +00006651 *)
6652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6655 else
6656 ld_shlibs=no
6657 fi
6658 ;;
6659 esac
6660
6661 if test "$ld_shlibs" = yes; then
6662 runpath_var=LD_RUN_PATH
6663 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6664 export_dynamic_flag_spec='${wl}--export-dynamic'
6665 # ancient GNU ld didn't support --whole-archive et. al.
6666 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6667 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6668 else
6669 whole_archive_flag_spec=
6670 fi
6671 fi
6672 else
6673 # PORTME fill in a description of your system's linker (not GNU ld)
6674 case $host_os in
6675 aix3*)
6676 allow_undefined_flag=unsupported
6677 always_export_symbols=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006678 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'
John Criswell47fdd832003-07-14 16:52:07 +00006679 # Note: this linker hardcodes the directories in LIBPATH if there
6680 # are no directories specified by -L.
6681 hardcode_minus_L=yes
6682 if test "$GCC" = yes && test -z "$link_static_flag"; then
6683 # Neither direct hardcoding nor static linking is supported with a
6684 # broken collect2.
6685 hardcode_direct=unsupported
6686 fi
6687 ;;
6688
6689 aix4* | aix5*)
6690 if test "$host_cpu" = ia64; then
6691 # On IA64, the linker does run time linking by default, so we don't
6692 # have to do anything special.
6693 aix_use_runtimelinking=no
6694 exp_sym_flag='-Bexport'
6695 no_entry_flag=""
6696 else
6697 # If we're using GNU nm, then we don't want the "-C" option.
6698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6699 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6700 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'
6701 else
6702 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'
6703 fi
6704 aix_use_runtimelinking=no
6705
6706 # Test if we are trying to use run time linking or normal
6707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6708 # need to do runtime linking.
6709 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6710 for ld_flag in $LDFLAGS; do
6711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6712 aix_use_runtimelinking=yes
6713 break
6714 fi
6715 done
6716 esac
6717
6718 exp_sym_flag='-bexport'
6719 no_entry_flag='-bnoentry'
6720 fi
6721
6722 # When large executables or shared objects are built, AIX ld can
6723 # have problems creating the table of contents. If linking a library
6724 # or program results in "error TOC overflow" add -mminimal-toc to
6725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6727
6728 archive_cmds=''
6729 hardcode_direct=yes
6730 hardcode_libdir_separator=':'
6731 link_all_deplibs=yes
6732
6733 if test "$GCC" = yes; then
6734 case $host_os in aix4.012|aix4.012.*)
6735 # We only want to do this on AIX 4.2 and lower, the check
6736 # below for broken collect2 doesn't work under 4.3+
6737 collect2name=`${CC} -print-prog-name=collect2`
6738 if test -f "$collect2name" && \
6739 strings "$collect2name" | grep resolve_lib_name >/dev/null
6740 then
6741 # We have reworked collect2
6742 hardcode_direct=yes
6743 else
6744 # We have old collect2
6745 hardcode_direct=unsupported
6746 # It fails to find uninstalled libraries when the uninstalled
6747 # path is not listed in the libpath. Setting hardcode_minus_L
6748 # to unsupported forces relinking
6749 hardcode_minus_L=yes
6750 hardcode_libdir_flag_spec='-L$libdir'
6751 hardcode_libdir_separator=
6752 fi
6753 esac
6754 shared_flag='-shared'
6755 else
6756 # not using gcc
6757 if test "$host_cpu" = ia64; then
6758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6759 # chokes on -Wl,-G. The following line is correct:
6760 shared_flag='-G'
6761 else
6762 if test "$aix_use_runtimelinking" = yes; then
6763 shared_flag='${wl}-G'
6764 else
6765 shared_flag='${wl}-bM:SRE'
6766 fi
6767 fi
6768 fi
6769
6770 # It seems that -bexpall does not export symbols beginning with
6771 # underscore (_), so it is better to generate a list of symbols to export.
6772 always_export_symbols=yes
6773 if test "$aix_use_runtimelinking" = yes; then
6774 # Warning - without using the other runtime loading flags (-brtl),
6775 # -berok will link without error, but may produce a broken library.
6776 allow_undefined_flag='-berok'
6777 # Determine the default libpath from the value encoded in an empty executable.
6778 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006779/* confdefs.h. */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006784
John Criswell7a73b802003-06-30 21:59:07 +00006785int
6786main ()
6787{
John Criswell47fdd832003-07-14 16:52:07 +00006788
John Criswell7a73b802003-06-30 21:59:07 +00006789 ;
6790 return 0;
6791}
6792_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006793rm -f conftest.$ac_objext conftest$ac_exeext
6794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006795 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006796 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006815
John Criswell47fdd832003-07-14 16:52:07 +00006816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6817}'`
6818# Check for a 64-bit object if we didn't find anything.
6819if 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; }
6820}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006821else
6822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006823sed 's/^/| /' conftest.$ac_ext >&5
6824
John Criswell7a73b802003-06-30 21:59:07 +00006825fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006826rm -f conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006828if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006829
John Criswell47fdd832003-07-14 16:52:07 +00006830 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6831 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"
6832 else
6833 if test "$host_cpu" = ia64; then
6834 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6835 allow_undefined_flag="-z nodefs"
6836 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"
6837 else
6838 # Determine the default libpath from the value encoded in an empty executable.
6839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006845
John Criswell47fdd832003-07-14 16:52:07 +00006846int
6847main ()
6848{
John Criswell7a73b802003-06-30 21:59:07 +00006849
John Criswell47fdd832003-07-14 16:52:07 +00006850 ;
6851 return 0;
6852}
6853_ACEOF
6854rm -f conftest.$ac_objext conftest$ac_exeext
6855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006856 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006863 { ac_try='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006876
John Criswell47fdd832003-07-14 16:52:07 +00006877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6878}'`
6879# Check for a 64-bit object if we didn't find anything.
6880if 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; }
6881}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006882else
John Criswell47fdd832003-07-14 16:52:07 +00006883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006884sed 's/^/| /' conftest.$ac_ext >&5
6885
John Criswell47fdd832003-07-14 16:52:07 +00006886fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006887rm -f conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006889if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006890
John Criswell47fdd832003-07-14 16:52:07 +00006891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6892 # Warning - without using the other run time loading flags,
6893 # -berok will link without error, but may produce a broken library.
6894 no_undefined_flag=' ${wl}-bernotok'
6895 allow_undefined_flag=' ${wl}-berok'
6896 # -bexpall does not export symbols beginning with underscore (_)
6897 always_export_symbols=yes
6898 # Exported symbols can be pulled into shared objects from archives
6899 whole_archive_flag_spec=' '
6900 archive_cmds_need_lc=yes
6901 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006902 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'
John Criswell7a73b802003-06-30 21:59:07 +00006903 fi
6904 fi
John Criswell7a73b802003-06-30 21:59:07 +00006905 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006906
6907 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006908 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)'
John Criswell47fdd832003-07-14 16:52:07 +00006909 hardcode_libdir_flag_spec='-L$libdir'
6910 hardcode_minus_L=yes
6911 # see comment about different semantics on the GNU ld section
6912 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006913 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006914
Reid Spencer2706f8c2004-09-19 23:53:36 +00006915 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00006916 export_dynamic_flag_spec=-rdynamic
6917 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006918
John Criswell47fdd832003-07-14 16:52:07 +00006919 cygwin* | mingw* | pw32*)
6920 # When not using gcc, we currently assume that we are using
6921 # Microsoft Visual C++.
6922 # hardcode_libdir_flag_spec is actually meaningless, as there is
6923 # no search path for DLLs.
6924 hardcode_libdir_flag_spec=' '
6925 allow_undefined_flag=unsupported
6926 # Tell ltmain to make .lib files, not .a files.
6927 libext=lib
6928 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006929 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00006930 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006932 # The linker will automatically build a .lib file if we build a DLL.
6933 old_archive_From_new_cmds='true'
6934 # FIXME: Should let the user specify the lib program.
6935 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6936 fix_srcfile_path='`cygpath -w "$srcfile"`'
6937 enable_shared_with_static_runtimes=yes
6938 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00006941 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006942 rhapsody* | darwin1.[012])
6943 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6944 ;;
6945 *) # Darwin 1.3 on
6946 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6947 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6948 else
6949 case ${MACOSX_DEPLOYMENT_TARGET} in
6950 10.[012])
6951 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6952 ;;
6953 10.*)
6954 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6955 ;;
6956 esac
6957 fi
6958 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006959 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00006960 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00006961 hardcode_direct=no
6962 hardcode_automatic=yes
6963 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00006964 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00006965 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006966 if test "$GCC" = yes ; then
6967 output_verbose_link_cmd='echo'
6968 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6969 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6971 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}'
6972 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}'
6973 else
6974 case "$cc_basename" in
6975 xlc*)
6976 output_verbose_link_cmd='echo'
6977 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6978 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6980 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6981 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}'
6982 ;;
6983 *)
6984 ld_shlibs=no
6985 ;;
6986 esac
John Criswell7a73b802003-06-30 21:59:07 +00006987 fi
John Criswell47fdd832003-07-14 16:52:07 +00006988 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006989
John Criswell47fdd832003-07-14 16:52:07 +00006990 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006992 hardcode_libdir_flag_spec='-L$libdir'
6993 hardcode_shlibpath_var=no
6994 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006995
John Criswell47fdd832003-07-14 16:52:07 +00006996 freebsd1*)
6997 ld_shlibs=no
6998 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006999
John Criswell47fdd832003-07-14 16:52:07 +00007000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7001 # support. Future versions do this automatically, but an explicit c++rt0.o
7002 # does not break anything, and helps significantly (at the cost of a little
7003 # extra space).
7004 freebsd2.2*)
7005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7006 hardcode_libdir_flag_spec='-R$libdir'
7007 hardcode_direct=yes
7008 hardcode_shlibpath_var=no
7009 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007010
John Criswell47fdd832003-07-14 16:52:07 +00007011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7012 freebsd2*)
7013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7014 hardcode_direct=yes
7015 hardcode_minus_L=yes
7016 hardcode_shlibpath_var=no
7017 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007018
John Criswell47fdd832003-07-14 16:52:07 +00007019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007020 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007021 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7022 hardcode_libdir_flag_spec='-R$libdir'
7023 hardcode_direct=yes
7024 hardcode_shlibpath_var=no
7025 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007026
John Criswell47fdd832003-07-14 16:52:07 +00007027 hpux9*)
7028 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00007029 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'
John Criswell47fdd832003-07-14 16:52:07 +00007030 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007031 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'
John Criswell47fdd832003-07-14 16:52:07 +00007032 fi
7033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7034 hardcode_libdir_separator=:
7035 hardcode_direct=yes
7036
7037 # hardcode_minus_L: Not really in the search PATH,
7038 # but as the default location of the library.
7039 hardcode_minus_L=yes
7040 export_dynamic_flag_spec='${wl}-E'
7041 ;;
7042
7043 hpux10* | hpux11*)
7044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7045 case "$host_cpu" in
7046 hppa*64*|ia64*)
7047 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7048 ;;
7049 *)
7050 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7051 ;;
7052 esac
7053 else
7054 case "$host_cpu" in
7055 hppa*64*|ia64*)
7056 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7057 ;;
7058 *)
7059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7060 ;;
7061 esac
7062 fi
7063 if test "$with_gnu_ld" = no; then
7064 case "$host_cpu" in
7065 hppa*64*)
7066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7067 hardcode_libdir_flag_spec_ld='+b $libdir'
7068 hardcode_libdir_separator=:
7069 hardcode_direct=no
7070 hardcode_shlibpath_var=no
7071 ;;
7072 ia64*)
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_direct=no
7075 hardcode_shlibpath_var=no
7076
7077 # hardcode_minus_L: Not really in the search PATH,
7078 # but as the default location of the library.
7079 hardcode_minus_L=yes
7080 ;;
7081 *)
7082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7083 hardcode_libdir_separator=:
7084 hardcode_direct=yes
7085 export_dynamic_flag_spec='${wl}-E'
7086
7087 # hardcode_minus_L: Not really in the search PATH,
7088 # but as the default location of the library.
7089 hardcode_minus_L=yes
7090 ;;
7091 esac
7092 fi
7093 ;;
7094
7095 irix5* | irix6* | nonstopux*)
7096 if test "$GCC" = yes; then
7097 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'
7098 else
7099 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'
7100 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7101 fi
7102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7103 hardcode_libdir_separator=:
7104 link_all_deplibs=yes
7105 ;;
7106
7107 netbsd*)
7108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7109 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7110 else
7111 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7112 fi
7113 hardcode_libdir_flag_spec='-R$libdir'
7114 hardcode_direct=yes
7115 hardcode_shlibpath_var=no
7116 ;;
7117
7118 newsos6)
7119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7120 hardcode_direct=yes
7121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7122 hardcode_libdir_separator=:
7123 hardcode_shlibpath_var=no
7124 ;;
7125
7126 openbsd*)
7127 hardcode_direct=yes
7128 hardcode_shlibpath_var=no
7129 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7130 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007131 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +00007132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7133 export_dynamic_flag_spec='${wl}-E'
7134 else
7135 case $host_os in
7136 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7138 hardcode_libdir_flag_spec='-R$libdir'
7139 ;;
7140 *)
7141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7143 ;;
7144 esac
7145 fi
7146 ;;
7147
7148 os2*)
7149 hardcode_libdir_flag_spec='-L$libdir'
7150 hardcode_minus_L=yes
7151 allow_undefined_flag=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00007152 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'
John Criswell47fdd832003-07-14 16:52:07 +00007153 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7154 ;;
7155
7156 osf3*)
7157 if test "$GCC" = yes; then
7158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7159 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'
7160 else
7161 allow_undefined_flag=' -expect_unresolved \*'
7162 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'
7163 fi
7164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7165 hardcode_libdir_separator=:
7166 ;;
7167
7168 osf4* | osf5*) # as osf3* with the addition of -msym flag
7169 if test "$GCC" = yes; then
7170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7171 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'
7172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7173 else
7174 allow_undefined_flag=' -expect_unresolved \*'
7175 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007176 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
John Criswell47fdd832003-07-14 16:52:07 +00007177 # Both c and cxx compiler support -rpath directly
7178 hardcode_libdir_flag_spec='-rpath $libdir'
7179 fi
7180 hardcode_libdir_separator=:
7181 ;;
7182
7183 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007186 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007187 runpath_var=LD_RUN_PATH
7188 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007189 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007190
John Criswell47fdd832003-07-14 16:52:07 +00007191 solaris*)
7192 no_undefined_flag=' -z text'
7193 if test "$GCC" = yes; then
7194 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007195 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007196 else
7197 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007198 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007199 fi
7200 hardcode_libdir_flag_spec='-R$libdir'
7201 hardcode_shlibpath_var=no
7202 case $host_os in
7203 solaris2.[0-5] | solaris2.[0-5].*) ;;
7204 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7205 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7206 esac
7207 link_all_deplibs=yes
7208 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007209
John Criswell47fdd832003-07-14 16:52:07 +00007210 sunos4*)
7211 if test "x$host_vendor" = xsequent; then
7212 # Use $CC to link under sequent, because it throws in some extra .o
7213 # files that make .init and .fini sections work.
7214 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7215 else
7216 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7217 fi
7218 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_direct=yes
7220 hardcode_minus_L=yes
7221 hardcode_shlibpath_var=no
7222 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007223
John Criswell47fdd832003-07-14 16:52:07 +00007224 sysv4)
7225 case $host_vendor in
7226 sni)
7227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7228 hardcode_direct=yes # is this really true???
7229 ;;
7230 siemens)
7231 ## LD is ld it makes a PLAMLIB
7232 ## CC just makes a GrossModule.
7233 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7234 reload_cmds='$CC -r -o $output$reload_objs'
7235 hardcode_direct=no
7236 ;;
7237 motorola)
7238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7240 ;;
7241 esac
7242 runpath_var='LD_RUN_PATH'
7243 hardcode_shlibpath_var=no
7244 ;;
7245
7246 sysv4.3*)
7247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7248 hardcode_shlibpath_var=no
7249 export_dynamic_flag_spec='-Bexport'
7250 ;;
7251
7252 sysv4*MP*)
7253 if test -d /usr/nec; then
7254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7255 hardcode_shlibpath_var=no
7256 runpath_var=LD_RUN_PATH
7257 hardcode_runpath_var=yes
7258 ld_shlibs=yes
7259 fi
7260 ;;
7261
7262 sysv4.2uw2*)
7263 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7264 hardcode_direct=yes
7265 hardcode_minus_L=no
7266 hardcode_shlibpath_var=no
7267 hardcode_runpath_var=yes
7268 runpath_var=LD_RUN_PATH
7269 ;;
7270
7271 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7272 no_undefined_flag='${wl}-z ${wl}text'
7273 if test "$GCC" = yes; then
7274 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7275 else
7276 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7277 fi
7278 runpath_var='LD_RUN_PATH'
7279 hardcode_shlibpath_var=no
7280 ;;
7281
7282 sysv5*)
7283 no_undefined_flag=' -z text'
7284 # $CC -shared without GNU ld will not create a library from C++
7285 # object files and a static libstdc++, better avoid it by now
7286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007287 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007288 hardcode_libdir_flag_spec=
7289 hardcode_shlibpath_var=no
7290 runpath_var='LD_RUN_PATH'
7291 ;;
7292
7293 uts4*)
7294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_shlibpath_var=no
7297 ;;
7298
7299 *)
7300 ld_shlibs=no
7301 ;;
7302 esac
7303 fi
7304
John Criswell7a73b802003-06-30 21:59:07 +00007305echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7306echo "${ECHO_T}$ld_shlibs" >&6
7307test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007308
John Criswell47fdd832003-07-14 16:52:07 +00007309variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7310if test "$GCC" = yes; then
7311 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7312fi
7313
7314#
7315# Do we need to explicitly link libc?
7316#
7317case "x$archive_cmds_need_lc" in
7318x|xyes)
7319 # Assume -lc should be added
7320 archive_cmds_need_lc=yes
7321
7322 if test "$enable_shared" = yes && test "$GCC" = yes; then
7323 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007324 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00007325 # FIXME: we may have to deal with multi-command sequences.
7326 ;;
7327 '$CC '*)
7328 # Test whether the compiler implicitly links with -lc since on some
7329 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7330 # to ld, don't add -lc before -lgcc.
7331 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7332echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7333 $rm conftest*
7334 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } 2>conftest.err; then
7341 soname=conftest
7342 lib=conftest
7343 libobjs=conftest.$ac_objext
7344 deplibs=
7345 wl=$lt_prog_compiler_wl
7346 compiler_flags=-v
7347 linker_flags=-v
7348 verstring=
7349 output_objdir=.
7350 libname=conftest
7351 lt_save_allow_undefined_flag=$allow_undefined_flag
7352 allow_undefined_flag=
7353 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7354 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }
7358 then
7359 archive_cmds_need_lc=no
7360 else
7361 archive_cmds_need_lc=yes
7362 fi
7363 allow_undefined_flag=$lt_save_allow_undefined_flag
7364 else
7365 cat conftest.err 1>&5
7366 fi
7367 $rm conftest*
7368 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7369echo "${ECHO_T}$archive_cmds_need_lc" >&6
7370 ;;
7371 esac
7372 fi
7373 ;;
7374esac
7375
John Criswell7a73b802003-06-30 21:59:07 +00007376echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7377echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7378library_names_spec=
7379libname_spec='lib$name'
7380soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00007381shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007382postinstall_cmds=
7383postuninstall_cmds=
7384finish_cmds=
7385finish_eval=
7386shlibpath_var=
7387shlibpath_overrides_runpath=unknown
7388version_type=none
7389dynamic_linker="$host_os ld.so"
7390sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007391if test "$GCC" = yes; then
7392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7393 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7394 # if the path contains ";" then we assume it to be the separator
7395 # otherwise default to the standard path separator (i.e. ":") - it is
7396 # assumed that no part of a normal pathname contains ";" but that should
7397 # okay in the real world where ";" in dirpaths is itself problematic.
7398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7399 else
7400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7401 fi
7402else
7403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7404fi
7405need_lib_prefix=unknown
7406hardcode_into_libs=no
7407
7408# when you set need_version to no, make sure it does not cause -set_version
7409# flags to be left without arguments
7410need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007411
7412case $host_os in
7413aix3*)
7414 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007416 shlibpath_var=LIBPATH
7417
John Criswell47fdd832003-07-14 16:52:07 +00007418 # AIX 3 has no versioning support, so we append a major version to the name.
7419 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007420 ;;
7421
7422aix4* | aix5*)
7423 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007424 need_lib_prefix=no
7425 need_version=no
7426 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007427 if test "$host_cpu" = ia64; then
7428 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007430 shlibpath_var=LD_LIBRARY_PATH
7431 else
7432 # With GCC up to 2.95.x, collect2 would create an import file
7433 # for dependence libraries. The import file would start with
7434 # the line `#! .'. This would cause the generated library to
7435 # depend on `.', always an invalid library. This was fixed in
7436 # development snapshots of GCC prior to 3.0.
7437 case $host_os in
7438 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7440 echo ' yes '
7441 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7442 :
7443 else
7444 can_build_shared=no
7445 fi
7446 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007447 esac
John Criswell47fdd832003-07-14 16:52:07 +00007448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7449 # soname into executable. Probably we can add versioning support to
7450 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007451 if test "$aix_use_runtimelinking" = yes; then
7452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7453 # instead of lib<name>.a to let people know that these are not
7454 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007456 else
7457 # We preserve .a as extension for shared libraries through AIX4.2
7458 # and later when we are not doing run time linking.
7459 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007460 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007461 fi
7462 shlibpath_var=LIBPATH
7463 fi
7464 ;;
7465
7466amigaos*)
7467 library_names_spec='$libname.ixlibrary $libname.a'
7468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007469 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'
John Criswell7a73b802003-06-30 21:59:07 +00007470 ;;
7471
7472beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007473 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007474 dynamic_linker="$host_os ld.so"
7475 shlibpath_var=LIBRARY_PATH
7476 ;;
7477
Reid Spencer2706f8c2004-09-19 23:53:36 +00007478bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00007479 version_type=linux
7480 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7482 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7484 shlibpath_var=LD_LIBRARY_PATH
7485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007487 # the default ld.so.conf also contains /usr/contrib/lib and
7488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7489 # libtool to hard-code these into programs
7490 ;;
7491
7492cygwin* | mingw* | pw32*)
7493 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00007494 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007495 need_version=no
7496 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007497
John Criswell7a73b802003-06-30 21:59:07 +00007498 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007499 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007500 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +00007502 postinstall_cmds='base_file=`basename \${file}`;
7503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7504 dldir=$destdir/`dirname \$dlpath`;
7505 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +00007506 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7508 dlpath=$dir/\$dldll;
John Criswell7a73b802003-06-30 21:59:07 +00007509 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007510 shlibpath_overrides_runpath=yes
7511
7512 case $host_os in
7513 cygwin*)
7514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007516 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007517 ;;
7518 mingw*)
7519 # MinGW DLLs use traditional 'lib' prefix
7520 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7522 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7523 # It is most probably a Windows format PATH printed by
7524 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7525 # path with ; separators, and with drive letters. We can handle the
7526 # drive letters (cygwin fileutils understands them), so leave them,
7527 # especially as we might pass files found there to a mingw objdump,
7528 # which wouldn't understand a cygwinified path. Ahh.
7529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7530 else
7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7532 fi
7533 ;;
7534 pw32*)
7535 # pw32 DLLs use 'pw' prefix rather than 'lib'
7536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7537 ;;
7538 esac
John Criswell7a73b802003-06-30 21:59:07 +00007539 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007540
John Criswell7a73b802003-06-30 21:59:07 +00007541 *)
John Criswell47fdd832003-07-14 16:52:07 +00007542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007543 ;;
7544 esac
7545 dynamic_linker='Win32 ld.exe'
7546 # FIXME: first we should search . and the directory the executable is in
7547 shlibpath_var=PATH
7548 ;;
7549
7550darwin* | rhapsody*)
7551 dynamic_linker="$host_os dyld"
7552 version_type=darwin
7553 need_lib_prefix=no
7554 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00007555 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007556 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007557 shlibpath_overrides_runpath=yes
7558 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00007559 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00007560 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007561 if test "$GCC" = yes; then
7562 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"`
7563 else
7564 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007565 fi
7566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7567 ;;
7568
7569dgux*)
7570 version_type=linux
7571 need_lib_prefix=no
7572 need_version=no
7573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7574 soname_spec='${libname}${release}${shared_ext}$major'
7575 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007576 ;;
7577
7578freebsd1*)
7579 dynamic_linker=no
7580 ;;
7581
Reid Spencer2706f8c2004-09-19 23:53:36 +00007582kfreebsd*-gnu)
7583 version_type=linux
7584 need_lib_prefix=no
7585 need_version=no
7586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7587 soname_spec='${libname}${release}${shared_ext}$major'
7588 shlibpath_var=LD_LIBRARY_PATH
7589 shlibpath_overrides_runpath=no
7590 hardcode_into_libs=yes
7591 dynamic_linker='GNU ld.so'
7592 ;;
7593
John Criswell7a73b802003-06-30 21:59:07 +00007594freebsd*)
7595 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7596 version_type=freebsd-$objformat
7597 case $version_type in
7598 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007600 need_version=no
7601 need_lib_prefix=no
7602 ;;
7603 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007605 need_version=yes
7606 ;;
7607 esac
7608 shlibpath_var=LD_LIBRARY_PATH
7609 case $host_os in
7610 freebsd2*)
7611 shlibpath_overrides_runpath=yes
7612 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007613 freebsd3.01* | freebsdelf3.01*)
7614 shlibpath_overrides_runpath=yes
7615 hardcode_into_libs=yes
7616 ;;
7617 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007618 shlibpath_overrides_runpath=no
7619 hardcode_into_libs=yes
7620 ;;
7621 esac
7622 ;;
7623
7624gnu*)
7625 version_type=linux
7626 need_lib_prefix=no
7627 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007630 shlibpath_var=LD_LIBRARY_PATH
7631 hardcode_into_libs=yes
7632 ;;
7633
7634hpux9* | hpux10* | hpux11*)
7635 # Give a soname corresponding to the major version so that dld.sl refuses to
7636 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007637 version_type=sunos
7638 need_lib_prefix=no
7639 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007640 case "$host_cpu" in
7641 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007642 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00007643 hardcode_into_libs=yes
7644 dynamic_linker="$host_os dld.so"
7645 shlibpath_var=LD_LIBRARY_PATH
7646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
7649 if test "X$HPUX_IA64_MODE" = X32; then
7650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7651 else
7652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7653 fi
7654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7655 ;;
7656 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007657 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007658 hardcode_into_libs=yes
7659 dynamic_linker="$host_os dld.sl"
7660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7663 soname_spec='${libname}${release}${shared_ext}$major'
7664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7666 ;;
7667 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007668 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007669 dynamic_linker="$host_os dld.sl"
7670 shlibpath_var=SHLIB_PATH
7671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7673 soname_spec='${libname}${release}${shared_ext}$major'
7674 ;;
7675 esac
John Criswell7a73b802003-06-30 21:59:07 +00007676 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7677 postinstall_cmds='chmod 555 $lib'
7678 ;;
7679
John Criswell47fdd832003-07-14 16:52:07 +00007680irix5* | irix6* | nonstopux*)
7681 case $host_os in
7682 nonstopux*) version_type=nonstopux ;;
7683 *)
7684 if test "$lt_cv_prog_gnu_ld" = yes; then
7685 version_type=linux
7686 else
7687 version_type=irix
7688 fi ;;
7689 esac
John Criswell7a73b802003-06-30 21:59:07 +00007690 need_lib_prefix=no
7691 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007692 soname_spec='${libname}${release}${shared_ext}$major'
7693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007694 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007695 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007696 libsuff= shlibsuff=
7697 ;;
7698 *)
7699 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7701 libsuff= shlibsuff= libmagic=32-bit;;
7702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7703 libsuff=32 shlibsuff=N32 libmagic=N32;;
7704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007706 *) libsuff= shlibsuff= libmagic=never-match;;
7707 esac
7708 ;;
7709 esac
7710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7711 shlibpath_overrides_runpath=no
7712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007714 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007715 ;;
7716
7717# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007718linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007719 dynamic_linker=no
7720 ;;
7721
7722# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007723linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007724 version_type=linux
7725 need_lib_prefix=no
7726 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7728 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7730 shlibpath_var=LD_LIBRARY_PATH
7731 shlibpath_overrides_runpath=no
7732 # This implies no fast_install, which is unacceptable.
7733 # Some rework will be needed to allow for fast_install
7734 # before this can be enabled.
7735 hardcode_into_libs=yes
7736
Reid Spencer2706f8c2004-09-19 23:53:36 +00007737 # Append ld.so.conf contents to the search path
7738 if test -f /etc/ld.so.conf; then
7739 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7741 fi
7742
John Criswell7a73b802003-06-30 21:59:07 +00007743 # We used to test for /lib/ld.so.1 and disable shared libraries on
7744 # powerpc, because MkLinux only supported shared libraries with the
7745 # GNU dynamic linker. Since this was broken with cross compilers,
7746 # most powerpc-linux boxes support dynamic linking these days and
7747 # people can always --disable-shared, the test was removed, and we
7748 # assume the GNU/Linux dynamic linker is in use.
7749 dynamic_linker='GNU/Linux ld.so'
7750 ;;
7751
Reid Spencer2706f8c2004-09-19 23:53:36 +00007752knetbsd*-gnu)
7753 version_type=linux
7754 need_lib_prefix=no
7755 need_version=no
7756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7757 soname_spec='${libname}${release}${shared_ext}$major'
7758 shlibpath_var=LD_LIBRARY_PATH
7759 shlibpath_overrides_runpath=no
7760 hardcode_into_libs=yes
7761 dynamic_linker='GNU ld.so'
7762 ;;
7763
John Criswell7a73b802003-06-30 21:59:07 +00007764netbsd*)
7765 version_type=sunos
7766 need_lib_prefix=no
7767 need_version=no
7768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7771 dynamic_linker='NetBSD (a.out) ld.so'
7772 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00007774 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007775 dynamic_linker='NetBSD ld.elf_so'
7776 fi
7777 shlibpath_var=LD_LIBRARY_PATH
7778 shlibpath_overrides_runpath=yes
7779 hardcode_into_libs=yes
7780 ;;
7781
7782newsos6)
7783 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7785 shlibpath_var=LD_LIBRARY_PATH
7786 shlibpath_overrides_runpath=yes
7787 ;;
7788
Reid Spencer2706f8c2004-09-19 23:53:36 +00007789nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007790 version_type=linux
7791 need_lib_prefix=no
7792 need_version=no
7793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007795 shlibpath_var=LD_LIBRARY_PATH
7796 shlibpath_overrides_runpath=yes
7797 ;;
7798
7799openbsd*)
7800 version_type=sunos
7801 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007802 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7805 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +00007807 case $host_os in
7808 openbsd2.[89] | openbsd2.[89].*)
7809 shlibpath_overrides_runpath=no
7810 ;;
7811 *)
7812 shlibpath_overrides_runpath=yes
7813 ;;
7814 esac
John Criswell7a73b802003-06-30 21:59:07 +00007815 else
7816 shlibpath_overrides_runpath=yes
7817 fi
John Criswell7a73b802003-06-30 21:59:07 +00007818 ;;
7819
7820os2*)
7821 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007822 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007823 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007824 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007825 dynamic_linker='OS/2 ld.exe'
7826 shlibpath_var=LIBPATH
7827 ;;
7828
7829osf3* | osf4* | osf5*)
7830 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007831 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007832 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007833 soname_spec='${libname}${release}${shared_ext}$major'
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007835 shlibpath_var=LD_LIBRARY_PATH
7836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7838 ;;
7839
7840sco3.2v5*)
7841 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007842 soname_spec='${libname}${release}${shared_ext}$major'
7843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007844 shlibpath_var=LD_LIBRARY_PATH
7845 ;;
7846
7847solaris*)
7848 version_type=linux
7849 need_lib_prefix=no
7850 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7852 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007853 shlibpath_var=LD_LIBRARY_PATH
7854 shlibpath_overrides_runpath=yes
7855 hardcode_into_libs=yes
7856 # ldd complains unless libraries are executable
7857 postinstall_cmds='chmod +x $lib'
7858 ;;
7859
7860sunos4*)
7861 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=yes
7866 if test "$with_gnu_ld" = yes; then
7867 need_lib_prefix=no
7868 fi
7869 need_version=yes
7870 ;;
7871
7872sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7873 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007876 shlibpath_var=LD_LIBRARY_PATH
7877 case $host_vendor in
7878 sni)
7879 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007880 need_lib_prefix=no
7881 export_dynamic_flag_spec='${wl}-Blargedynsym'
7882 runpath_var=LD_RUN_PATH
7883 ;;
7884 siemens)
7885 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007886 ;;
7887 motorola)
7888 need_lib_prefix=no
7889 need_version=no
7890 shlibpath_overrides_runpath=no
7891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7892 ;;
7893 esac
7894 ;;
7895
John Criswell7a73b802003-06-30 21:59:07 +00007896sysv4*MP*)
7897 if test -d /usr/nec ;then
7898 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7900 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007901 shlibpath_var=LD_LIBRARY_PATH
7902 fi
7903 ;;
7904
John Criswell47fdd832003-07-14 16:52:07 +00007905uts4*)
7906 version_type=linux
7907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7908 soname_spec='${libname}${release}${shared_ext}$major'
7909 shlibpath_var=LD_LIBRARY_PATH
7910 ;;
7911
John Criswell7a73b802003-06-30 21:59:07 +00007912*)
7913 dynamic_linker=no
7914 ;;
7915esac
7916echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7917echo "${ECHO_T}$dynamic_linker" >&6
7918test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007919
Reid Spencer2706f8c2004-09-19 23:53:36 +00007920echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7921echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7922hardcode_action=
7923if test -n "$hardcode_libdir_flag_spec" || \
7924 test -n "$runpath_var" || \
7925 test "X$hardcode_automatic" = "Xyes" ; then
7926
7927 # We can hardcode non-existant directories.
7928 if test "$hardcode_direct" != no &&
7929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7930 # have to relink, otherwise we might link with an installed library
7931 # when we should be linking with a yet-to-be-installed one
7932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7933 test "$hardcode_minus_L" != no; then
7934 # Linking always hardcodes the temporary library directory.
7935 hardcode_action=relink
7936 else
7937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7938 hardcode_action=immediate
7939 fi
7940else
7941 # We cannot hardcode anything, or else we can only hardcode existing
7942 # directories.
7943 hardcode_action=unsupported
7944fi
7945echo "$as_me:$LINENO: result: $hardcode_action" >&5
7946echo "${ECHO_T}$hardcode_action" >&6
7947
7948if test "$hardcode_action" = relink; then
7949 # Fast installation is not supported
7950 enable_fast_install=no
7951elif test "$shlibpath_overrides_runpath" = yes ||
7952 test "$enable_shared" = no; then
7953 # Fast installation is not necessary
7954 enable_fast_install=needless
7955fi
7956
7957striplib=
7958old_striplib=
7959echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7960echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7961if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7963 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7964 echo "$as_me:$LINENO: result: yes" >&5
7965echo "${ECHO_T}yes" >&6
7966else
7967# FIXME - insert some real tests, host_os isn't really good enough
7968 case $host_os in
7969 darwin*)
7970 if test -n "$STRIP" ; then
7971 striplib="$STRIP -x"
7972 echo "$as_me:$LINENO: result: yes" >&5
7973echo "${ECHO_T}yes" >&6
7974 else
7975 echo "$as_me:$LINENO: result: no" >&5
7976echo "${ECHO_T}no" >&6
7977fi
7978 ;;
7979 *)
7980 echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
7982 ;;
7983 esac
7984fi
7985
John Criswell7a73b802003-06-30 21:59:07 +00007986if test "x$enable_dlopen" != xyes; then
7987 enable_dlopen=unknown
7988 enable_dlopen_self=unknown
7989 enable_dlopen_self_static=unknown
7990else
7991 lt_cv_dlopen=no
7992 lt_cv_dlopen_libs=
7993
7994 case $host_os in
7995 beos*)
7996 lt_cv_dlopen="load_add_on"
7997 lt_cv_dlopen_libs=
7998 lt_cv_dlopen_self=yes
7999 ;;
8000
John Criswell47fdd832003-07-14 16:52:07 +00008001 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008002 lt_cv_dlopen="LoadLibrary"
8003 lt_cv_dlopen_libs=
8004 ;;
8005
John Criswell47fdd832003-07-14 16:52:07 +00008006 cygwin*)
8007 lt_cv_dlopen="dlopen"
8008 lt_cv_dlopen_libs=
8009 ;;
8010
8011 darwin*)
8012 # if libdl is installed we need to link against it
8013 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8014echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8015if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018 ac_check_lib_save_LIBS=$LIBS
8019LIBS="-ldl $LIBS"
8020cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008021/* confdefs.h. */
8022_ACEOF
8023cat confdefs.h >>conftest.$ac_ext
8024cat >>conftest.$ac_ext <<_ACEOF
8025/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008026
8027/* Override any gcc2 internal prototype to avoid an error. */
8028#ifdef __cplusplus
8029extern "C"
8030#endif
8031/* We use char because int might match the return type of a gcc2
8032 builtin and then its argument prototype would still apply. */
8033char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008034int
8035main ()
8036{
8037dlopen ();
8038 ;
8039 return 0;
8040}
8041_ACEOF
8042rm -f conftest.$ac_objext conftest$ac_exeext
8043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008044 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_cv_lib_dl_dlopen=yes
8065else
8066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008067sed 's/^/| /' conftest.$ac_ext >&5
8068
John Criswell47fdd832003-07-14 16:52:07 +00008069ac_cv_lib_dl_dlopen=no
8070fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008071rm -f conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008073LIBS=$ac_check_lib_save_LIBS
8074fi
8075echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8076echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8077if test $ac_cv_lib_dl_dlopen = yes; then
8078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8079else
8080
8081 lt_cv_dlopen="dyld"
8082 lt_cv_dlopen_libs=
8083 lt_cv_dlopen_self=yes
8084
8085fi
8086
8087 ;;
8088
John Criswell7a73b802003-06-30 21:59:07 +00008089 *)
8090 echo "$as_me:$LINENO: checking for shl_load" >&5
8091echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8092if test "${ac_cv_func_shl_load+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094else
8095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008096/* confdefs.h. */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008101/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8103#define shl_load innocuous_shl_load
8104
John Criswell7a73b802003-06-30 21:59:07 +00008105/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008106 which can conflict with char shl_load (); below.
8107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8108 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008109
John Criswell0c38eaf2003-09-10 15:17:25 +00008110#ifdef __STDC__
8111# include <limits.h>
8112#else
8113# include <assert.h>
8114#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008115
8116#undef shl_load
8117
John Criswell7a73b802003-06-30 21:59:07 +00008118/* Override any gcc2 internal prototype to avoid an error. */
8119#ifdef __cplusplus
8120extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008121{
John Criswell7a73b802003-06-30 21:59:07 +00008122#endif
8123/* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008126/* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129#if defined (__stub_shl_load) || defined (__stub___shl_load)
8130choke me
8131#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008132char (*f) () = shl_load;
8133#endif
8134#ifdef __cplusplus
8135}
John Criswell7a73b802003-06-30 21:59:07 +00008136#endif
8137
John Criswell0c38eaf2003-09-10 15:17:25 +00008138int
8139main ()
8140{
8141return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008142 ;
8143 return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext conftest$ac_exeext
8147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008148 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_func_shl_load=yes
8169else
8170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008171sed 's/^/| /' conftest.$ac_ext >&5
8172
John Criswell7a73b802003-06-30 21:59:07 +00008173ac_cv_func_shl_load=no
8174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008175rm -f conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008177fi
8178echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8179echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8180if test $ac_cv_func_shl_load = yes; then
8181 lt_cv_dlopen="shl_load"
8182else
8183 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8184echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8185if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188 ac_check_lib_save_LIBS=$LIBS
8189LIBS="-ldld $LIBS"
8190cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008191/* confdefs.h. */
8192_ACEOF
8193cat confdefs.h >>conftest.$ac_ext
8194cat >>conftest.$ac_ext <<_ACEOF
8195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008196
8197/* Override any gcc2 internal prototype to avoid an error. */
8198#ifdef __cplusplus
8199extern "C"
8200#endif
8201/* We use char because int might match the return type of a gcc2
8202 builtin and then its argument prototype would still apply. */
8203char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008204int
8205main ()
8206{
8207shl_load ();
8208 ;
8209 return 0;
8210}
8211_ACEOF
8212rm -f conftest.$ac_objext conftest$ac_exeext
8213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008214 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_lib_dld_shl_load=yes
8235else
8236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008237sed 's/^/| /' conftest.$ac_ext >&5
8238
John Criswell7a73b802003-06-30 21:59:07 +00008239ac_cv_lib_dld_shl_load=no
8240fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008241rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008243LIBS=$ac_check_lib_save_LIBS
8244fi
8245echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8246echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8247if test $ac_cv_lib_dld_shl_load = yes; then
8248 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8249else
8250 echo "$as_me:$LINENO: checking for dlopen" >&5
8251echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8252if test "${ac_cv_func_dlopen+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254else
8255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008261/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8263#define dlopen innocuous_dlopen
8264
John Criswell7a73b802003-06-30 21:59:07 +00008265/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008266 which can conflict with char dlopen (); below.
8267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8268 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008269
John Criswell0c38eaf2003-09-10 15:17:25 +00008270#ifdef __STDC__
8271# include <limits.h>
8272#else
8273# include <assert.h>
8274#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008275
8276#undef dlopen
8277
John Criswell7a73b802003-06-30 21:59:07 +00008278/* Override any gcc2 internal prototype to avoid an error. */
8279#ifdef __cplusplus
8280extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008281{
John Criswell7a73b802003-06-30 21:59:07 +00008282#endif
8283/* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8285char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008286/* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289#if defined (__stub_dlopen) || defined (__stub___dlopen)
8290choke me
8291#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008292char (*f) () = dlopen;
8293#endif
8294#ifdef __cplusplus
8295}
John Criswell7a73b802003-06-30 21:59:07 +00008296#endif
8297
John Criswell0c38eaf2003-09-10 15:17:25 +00008298int
8299main ()
8300{
8301return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008302 ;
8303 return 0;
8304}
8305_ACEOF
8306rm -f conftest.$ac_objext conftest$ac_exeext
8307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008308 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008309 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008315 { ac_try='test -z "$ac_c_werror_flag"
8316 || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 ac_cv_func_dlopen=yes
8329else
8330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008331sed 's/^/| /' conftest.$ac_ext >&5
8332
John Criswell7a73b802003-06-30 21:59:07 +00008333ac_cv_func_dlopen=no
8334fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008335rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008337fi
8338echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8339echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8340if test $ac_cv_func_dlopen = yes; then
8341 lt_cv_dlopen="dlopen"
8342else
8343 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8344echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8345if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347else
8348 ac_check_lib_save_LIBS=$LIBS
8349LIBS="-ldl $LIBS"
8350cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008351/* confdefs.h. */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008356
8357/* Override any gcc2 internal prototype to avoid an error. */
8358#ifdef __cplusplus
8359extern "C"
8360#endif
8361/* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8363char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008364int
8365main ()
8366{
8367dlopen ();
8368 ;
8369 return 0;
8370}
8371_ACEOF
8372rm -f conftest.$ac_objext conftest$ac_exeext
8373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008374 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008381 { ac_try='test -z "$ac_c_werror_flag"
8382 || test ! -s conftest.err'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; } &&
8388 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
8394 ac_cv_lib_dl_dlopen=yes
8395else
8396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008397sed 's/^/| /' conftest.$ac_ext >&5
8398
John Criswell7a73b802003-06-30 21:59:07 +00008399ac_cv_lib_dl_dlopen=no
8400fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008401rm -f conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008403LIBS=$ac_check_lib_save_LIBS
8404fi
8405echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8406echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8407if test $ac_cv_lib_dl_dlopen = yes; then
8408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8409else
8410 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8411echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8412if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_check_lib_save_LIBS=$LIBS
8416LIBS="-lsvld $LIBS"
8417cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008423
8424/* Override any gcc2 internal prototype to avoid an error. */
8425#ifdef __cplusplus
8426extern "C"
8427#endif
8428/* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8430char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008431int
8432main ()
8433{
8434dlopen ();
8435 ;
8436 return 0;
8437}
8438_ACEOF
8439rm -f conftest.$ac_objext conftest$ac_exeext
8440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008441 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008442 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_lib_svld_dlopen=yes
8462else
8463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008464sed 's/^/| /' conftest.$ac_ext >&5
8465
John Criswell7a73b802003-06-30 21:59:07 +00008466ac_cv_lib_svld_dlopen=no
8467fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008468rm -f conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008470LIBS=$ac_check_lib_save_LIBS
8471fi
8472echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8473echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8474if test $ac_cv_lib_svld_dlopen = yes; then
8475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8476else
8477 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8478echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8479if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 ac_check_lib_save_LIBS=$LIBS
8483LIBS="-ldld $LIBS"
8484cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008490
8491/* Override any gcc2 internal prototype to avoid an error. */
8492#ifdef __cplusplus
8493extern "C"
8494#endif
8495/* We use char because int might match the return type of a gcc2
8496 builtin and then its argument prototype would still apply. */
8497char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008498int
8499main ()
8500{
8501dld_link ();
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506rm -f conftest.$ac_objext conftest$ac_exeext
8507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008508 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_cv_lib_dld_dld_link=yes
8529else
8530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008531sed 's/^/| /' conftest.$ac_ext >&5
8532
John Criswell7a73b802003-06-30 21:59:07 +00008533ac_cv_lib_dld_dld_link=no
8534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008535rm -f conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008537LIBS=$ac_check_lib_save_LIBS
8538fi
8539echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8540echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8541if test $ac_cv_lib_dld_dld_link = yes; then
8542 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8543fi
8544
8545
8546fi
8547
8548
8549fi
8550
8551
8552fi
8553
8554
8555fi
8556
8557
8558fi
8559
8560 ;;
8561 esac
8562
8563 if test "x$lt_cv_dlopen" != xno; then
8564 enable_dlopen=yes
8565 else
8566 enable_dlopen=no
8567 fi
8568
8569 case $lt_cv_dlopen in
8570 dlopen)
8571 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008572 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008573
8574 save_LDFLAGS="$LDFLAGS"
8575 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8576
8577 save_LIBS="$LIBS"
8578 LIBS="$lt_cv_dlopen_libs $LIBS"
8579
8580 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8581echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8582if test "${lt_cv_dlopen_self+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585 if test "$cross_compiling" = yes; then :
8586 lt_cv_dlopen_self=cross
8587else
John Criswell47fdd832003-07-14 16:52:07 +00008588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008589 lt_status=$lt_dlunknown
8590 cat > conftest.$ac_ext <<EOF
Reid Spencer8b93e7a2004-09-21 17:14:44 +00008591#line 8591 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008592#include "confdefs.h"
8593
8594#if HAVE_DLFCN_H
8595#include <dlfcn.h>
8596#endif
8597
8598#include <stdio.h>
8599
8600#ifdef RTLD_GLOBAL
8601# define LT_DLGLOBAL RTLD_GLOBAL
8602#else
8603# ifdef DL_GLOBAL
8604# define LT_DLGLOBAL DL_GLOBAL
8605# else
8606# define LT_DLGLOBAL 0
8607# endif
8608#endif
8609
8610/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8611 find out it does not work in some platform. */
8612#ifndef LT_DLLAZY_OR_NOW
8613# ifdef RTLD_LAZY
8614# define LT_DLLAZY_OR_NOW RTLD_LAZY
8615# else
8616# ifdef DL_LAZY
8617# define LT_DLLAZY_OR_NOW DL_LAZY
8618# else
8619# ifdef RTLD_NOW
8620# define LT_DLLAZY_OR_NOW RTLD_NOW
8621# else
8622# ifdef DL_NOW
8623# define LT_DLLAZY_OR_NOW DL_NOW
8624# else
8625# define LT_DLLAZY_OR_NOW 0
8626# endif
8627# endif
8628# endif
8629# endif
8630#endif
8631
8632#ifdef __cplusplus
8633extern "C" void exit (int);
8634#endif
8635
8636void fnord() { int i=42;}
8637int main ()
8638{
8639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8640 int status = $lt_dlunknown;
8641
8642 if (self)
8643 {
8644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8646 /* dlclose (self); */
8647 }
8648
8649 exit (status);
8650}
8651EOF
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8657 (./conftest; exit; ) 2>/dev/null
8658 lt_status=$?
8659 case x$lt_status in
8660 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8661 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8662 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8663 esac
8664 else :
8665 # compilation failed
8666 lt_cv_dlopen_self=no
8667 fi
8668fi
8669rm -fr conftest*
8670
8671
8672fi
8673echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8674echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8675
8676 if test "x$lt_cv_dlopen_self" = xyes; then
8677 LDFLAGS="$LDFLAGS $link_static_flag"
8678 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8679echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8680if test "${lt_cv_dlopen_self_static+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8682else
8683 if test "$cross_compiling" = yes; then :
8684 lt_cv_dlopen_self_static=cross
8685else
John Criswell47fdd832003-07-14 16:52:07 +00008686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008687 lt_status=$lt_dlunknown
8688 cat > conftest.$ac_ext <<EOF
Reid Spencer8b93e7a2004-09-21 17:14:44 +00008689#line 8689 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008690#include "confdefs.h"
8691
8692#if HAVE_DLFCN_H
8693#include <dlfcn.h>
8694#endif
8695
8696#include <stdio.h>
8697
8698#ifdef RTLD_GLOBAL
8699# define LT_DLGLOBAL RTLD_GLOBAL
8700#else
8701# ifdef DL_GLOBAL
8702# define LT_DLGLOBAL DL_GLOBAL
8703# else
8704# define LT_DLGLOBAL 0
8705# endif
8706#endif
8707
8708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8709 find out it does not work in some platform. */
8710#ifndef LT_DLLAZY_OR_NOW
8711# ifdef RTLD_LAZY
8712# define LT_DLLAZY_OR_NOW RTLD_LAZY
8713# else
8714# ifdef DL_LAZY
8715# define LT_DLLAZY_OR_NOW DL_LAZY
8716# else
8717# ifdef RTLD_NOW
8718# define LT_DLLAZY_OR_NOW RTLD_NOW
8719# else
8720# ifdef DL_NOW
8721# define LT_DLLAZY_OR_NOW DL_NOW
8722# else
8723# define LT_DLLAZY_OR_NOW 0
8724# endif
8725# endif
8726# endif
8727# endif
8728#endif
8729
8730#ifdef __cplusplus
8731extern "C" void exit (int);
8732#endif
8733
8734void fnord() { int i=42;}
8735int main ()
8736{
8737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8738 int status = $lt_dlunknown;
8739
8740 if (self)
8741 {
8742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8744 /* dlclose (self); */
8745 }
8746
8747 exit (status);
8748}
8749EOF
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8755 (./conftest; exit; ) 2>/dev/null
8756 lt_status=$?
8757 case x$lt_status in
8758 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8759 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8760 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8761 esac
8762 else :
8763 # compilation failed
8764 lt_cv_dlopen_self_static=no
8765 fi
8766fi
8767rm -fr conftest*
8768
8769
8770fi
8771echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8772echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8773 fi
8774
8775 CPPFLAGS="$save_CPPFLAGS"
8776 LDFLAGS="$save_LDFLAGS"
8777 LIBS="$save_LIBS"
8778 ;;
8779 esac
8780
8781 case $lt_cv_dlopen_self in
8782 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8783 *) enable_dlopen_self=unknown ;;
8784 esac
8785
8786 case $lt_cv_dlopen_self_static in
8787 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8788 *) enable_dlopen_self_static=unknown ;;
8789 esac
8790fi
8791
8792
John Criswell47fdd832003-07-14 16:52:07 +00008793# Report which librarie types wil actually be built
8794echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8795echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8796echo "$as_me:$LINENO: result: $can_build_shared" >&5
8797echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008798
John Criswell47fdd832003-07-14 16:52:07 +00008799echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8800echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8801test "$can_build_shared" = "no" && enable_shared=no
8802
8803# On AIX, shared libraries and static libraries use the same namespace, and
8804# are all built from PIC.
8805case "$host_os" in
8806aix3*)
8807 test "$enable_shared" = yes && enable_static=no
8808 if test -n "$RANLIB"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00008809 archive_cmds="$archive_cmds;\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008810 postinstall_cmds='$RANLIB $lib'
8811 fi
8812 ;;
8813
Reid Spencer2706f8c2004-09-19 23:53:36 +00008814aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00008815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8816 test "$enable_shared" = yes && enable_static=no
8817 fi
John Criswell7a73b802003-06-30 21:59:07 +00008818 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008819esac
8820echo "$as_me:$LINENO: result: $enable_shared" >&5
8821echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008822
John Criswell47fdd832003-07-14 16:52:07 +00008823echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8824echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8825# Make sure either enable_shared or enable_static is yes.
8826test "$enable_shared" = yes || enable_static=yes
8827echo "$as_me:$LINENO: result: $enable_static" >&5
8828echo "${ECHO_T}$enable_static" >&6
8829
8830# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008831# libtool distribution, otherwise you forgot to ship ltmain.sh
8832# with your package, and you will get complaints that there are
8833# no rules to generate ltmain.sh.
8834if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008835 # See if we are running on zsh, and set the options which allow our commands through
8836 # without removal of \ escapes.
8837 if test -n "${ZSH_VERSION+set}" ; then
8838 setopt NO_GLOB_SUBST
8839 fi
John Criswell7a73b802003-06-30 21:59:07 +00008840 # Now quote all the things that may contain metacharacters while being
8841 # careful not to overquote the AC_SUBSTed values. We take copies of the
8842 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008843 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8844 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008845 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8846 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8847 deplibs_check_method reload_flag reload_cmds need_locks \
8848 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8849 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008850 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008851 old_postinstall_cmds old_postuninstall_cmds \
8852 compiler \
8853 CC \
8854 LD \
8855 lt_prog_compiler_wl \
8856 lt_prog_compiler_pic \
8857 lt_prog_compiler_static \
8858 lt_prog_compiler_no_builtin_flag \
8859 export_dynamic_flag_spec \
8860 thread_safe_flag_spec \
8861 whole_archive_flag_spec \
8862 enable_shared_with_static_runtimes \
8863 old_archive_cmds \
8864 old_archive_from_new_cmds \
8865 predep_objects \
8866 postdep_objects \
8867 predeps \
8868 postdeps \
8869 compiler_lib_search_path \
8870 archive_cmds \
8871 archive_expsym_cmds \
8872 postinstall_cmds \
8873 postuninstall_cmds \
8874 old_archive_from_expsyms_cmds \
8875 allow_undefined_flag \
8876 no_undefined_flag \
8877 export_symbols_cmds \
8878 hardcode_libdir_flag_spec \
8879 hardcode_libdir_flag_spec_ld \
8880 hardcode_libdir_separator \
8881 hardcode_automatic \
8882 module_cmds \
8883 module_expsym_cmds \
8884 lt_cv_prog_compiler_c_o \
8885 exclude_expsyms \
8886 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008887
8888 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008889 old_archive_cmds | \
8890 old_archive_from_new_cmds | \
8891 archive_cmds | \
8892 archive_expsym_cmds | \
8893 module_cmds | \
8894 module_expsym_cmds | \
8895 old_archive_from_expsyms_cmds | \
8896 export_symbols_cmds | \
8897 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008898 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008899 old_postinstall_cmds | old_postuninstall_cmds | \
8900 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008901 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +00008903 ;;
8904 *)
8905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8906 ;;
8907 esac
8908 done
8909
John Criswell47fdd832003-07-14 16:52:07 +00008910 case $lt_echo in
8911 *'\$0 --fallback-echo"')
8912 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8913 ;;
8914 esac
8915
8916cfgfile="${ofile}T"
8917 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8918 $rm -f "$cfgfile"
8919 { echo "$as_me:$LINENO: creating $ofile" >&5
8920echo "$as_me: creating $ofile" >&6;}
8921
8922 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008923#! $SHELL
8924
John Criswell47fdd832003-07-14 16:52:07 +00008925# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008926# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8927# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8928#
John Criswell47fdd832003-07-14 16:52:07 +00008929# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8930# Free Software Foundation, Inc.
8931#
8932# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008933# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8934#
8935# This program is free software; you can redistribute it and/or modify
8936# it under the terms of the GNU General Public License as published by
8937# the Free Software Foundation; either version 2 of the License, or
8938# (at your option) any later version.
8939#
8940# This program is distributed in the hope that it will be useful, but
8941# WITHOUT ANY WARRANTY; without even the implied warranty of
8942# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8943# General Public License for more details.
8944#
8945# You should have received a copy of the GNU General Public License
8946# along with this program; if not, write to the Free Software
8947# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8948#
8949# As a special exception to the GNU General Public License, if you
8950# distribute this file as part of a program that contains a
8951# configuration script generated by Autoconf, you may include it under
8952# the same distribution terms that you use for the rest of that program.
8953
John Criswell47fdd832003-07-14 16:52:07 +00008954# A sed program that does not truncate output.
8955SED=$lt_SED
8956
John Criswell7a73b802003-06-30 21:59:07 +00008957# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008958Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008959
8960# The HP-UX ksh and POSIX shell print the target directory to stdout
8961# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008962(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00008963
John Criswell47fdd832003-07-14 16:52:07 +00008964# The names of the tagged configurations supported by this script.
8965available_tags=
8966
John Criswell7a73b802003-06-30 21:59:07 +00008967# ### BEGIN LIBTOOL CONFIG
8968
8969# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8970
8971# Shell to use when invoking shell scripts.
8972SHELL=$lt_SHELL
8973
8974# Whether or not to build shared libraries.
8975build_libtool_libs=$enable_shared
8976
8977# Whether or not to build static libraries.
8978build_old_libs=$enable_static
8979
8980# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008981build_libtool_need_lc=$archive_cmds_need_lc
8982
8983# Whether or not to disallow shared libs when runtime libs are static
8984allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008985
8986# Whether or not to optimize for fast installation.
8987fast_install=$enable_fast_install
8988
8989# The host system.
8990host_alias=$host_alias
8991host=$host
8992
8993# An echo program that does not interpret backslashes.
8994echo=$lt_echo
8995
8996# The archiver.
8997AR=$lt_AR
8998AR_FLAGS=$lt_AR_FLAGS
8999
John Criswell47fdd832003-07-14 16:52:07 +00009000# A C compiler.
9001LTCC=$lt_LTCC
9002
9003# A language-specific compiler.
9004CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009005
9006# Is the compiler the GNU C compiler?
9007with_gcc=$GCC
9008
John Criswell47fdd832003-07-14 16:52:07 +00009009# An ERE matcher.
9010EGREP=$lt_EGREP
9011
John Criswell7a73b802003-06-30 21:59:07 +00009012# The linker used to build libraries.
9013LD=$lt_LD
9014
9015# Whether we need hard or soft links.
9016LN_S=$lt_LN_S
9017
9018# A BSD-compatible nm program.
9019NM=$lt_NM
9020
9021# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009022STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009023
9024# Used to examine libraries when file_magic_cmd begins "file"
9025MAGIC_CMD=$MAGIC_CMD
9026
9027# Used on cygwin: DLL creation program.
9028DLLTOOL="$DLLTOOL"
9029
9030# Used on cygwin: object dumper.
9031OBJDUMP="$OBJDUMP"
9032
9033# Used on cygwin: assembler.
9034AS="$AS"
9035
9036# The name of the directory that contains temporary libtool files.
9037objdir=$objdir
9038
9039# How to create reloadable object files.
9040reload_flag=$lt_reload_flag
9041reload_cmds=$lt_reload_cmds
9042
9043# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009044wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009045
9046# Object file suffix (normally "o").
9047objext="$ac_objext"
9048
9049# Old archive suffix (normally "a").
9050libext="$libext"
9051
John Criswell47fdd832003-07-14 16:52:07 +00009052# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009053shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009054
John Criswell7a73b802003-06-30 21:59:07 +00009055# Executable file suffix (normally "").
9056exeext="$exeext"
9057
9058# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009059pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009060pic_mode=$pic_mode
9061
John Criswell47fdd832003-07-14 16:52:07 +00009062# What is the maximum length of a command?
9063max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009064
John Criswell47fdd832003-07-14 16:52:07 +00009065# Does compiler simultaneously support -c and -o options?
9066compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009067
9068# Must we lock files when doing compilation ?
9069need_locks=$lt_need_locks
9070
9071# Do we need the lib prefix for modules?
9072need_lib_prefix=$need_lib_prefix
9073
9074# Do we need a version for libraries?
9075need_version=$need_version
9076
9077# Whether dlopen is supported.
9078dlopen_support=$enable_dlopen
9079
9080# Whether dlopen of programs is supported.
9081dlopen_self=$enable_dlopen_self
9082
9083# Whether dlopen of statically linked programs is supported.
9084dlopen_self_static=$enable_dlopen_self_static
9085
9086# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009087link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009088
9089# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009090no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009091
9092# Compiler flag to allow reflexive dlopens.
9093export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9094
9095# Compiler flag to generate shared objects directly from archives.
9096whole_archive_flag_spec=$lt_whole_archive_flag_spec
9097
9098# Compiler flag to generate thread-safe objects.
9099thread_safe_flag_spec=$lt_thread_safe_flag_spec
9100
9101# Library versioning type.
9102version_type=$version_type
9103
9104# Format of library name prefix.
9105libname_spec=$lt_libname_spec
9106
9107# List of archive names. First name is the real one, the rest are links.
9108# The last name is the one that the linker finds with -lNAME.
9109library_names_spec=$lt_library_names_spec
9110
9111# The coded name of the library, if different from the real name.
9112soname_spec=$lt_soname_spec
9113
9114# Commands used to build and install an old-style archive.
9115RANLIB=$lt_RANLIB
9116old_archive_cmds=$lt_old_archive_cmds
9117old_postinstall_cmds=$lt_old_postinstall_cmds
9118old_postuninstall_cmds=$lt_old_postuninstall_cmds
9119
9120# Create an old-style archive from a shared archive.
9121old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9122
9123# Create a temporary old-style archive to link instead of a shared archive.
9124old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9125
9126# Commands used to build and install a shared archive.
9127archive_cmds=$lt_archive_cmds
9128archive_expsym_cmds=$lt_archive_expsym_cmds
9129postinstall_cmds=$lt_postinstall_cmds
9130postuninstall_cmds=$lt_postuninstall_cmds
9131
John Criswell47fdd832003-07-14 16:52:07 +00009132# Commands used to build a loadable module (assumed same as above if empty)
9133module_cmds=$lt_module_cmds
9134module_expsym_cmds=$lt_module_expsym_cmds
9135
John Criswell7a73b802003-06-30 21:59:07 +00009136# Commands to strip libraries.
9137old_striplib=$lt_old_striplib
9138striplib=$lt_striplib
9139
John Criswell47fdd832003-07-14 16:52:07 +00009140# Dependencies to place before the objects being linked to create a
9141# shared library.
9142predep_objects=$lt_predep_objects
9143
9144# Dependencies to place after the objects being linked to create a
9145# shared library.
9146postdep_objects=$lt_postdep_objects
9147
9148# Dependencies to place before the objects being linked to create a
9149# shared library.
9150predeps=$lt_predeps
9151
9152# Dependencies to place after the objects being linked to create a
9153# shared library.
9154postdeps=$lt_postdeps
9155
9156# The library search path used internally by the compiler when linking
9157# a shared library.
9158compiler_lib_search_path=$lt_compiler_lib_search_path
9159
John Criswell7a73b802003-06-30 21:59:07 +00009160# Method to check whether dependent libraries are shared objects.
9161deplibs_check_method=$lt_deplibs_check_method
9162
9163# Command to use when deplibs_check_method == file_magic.
9164file_magic_cmd=$lt_file_magic_cmd
9165
9166# Flag that allows shared libraries with undefined symbols to be built.
9167allow_undefined_flag=$lt_allow_undefined_flag
9168
9169# Flag that forces no undefined symbols.
9170no_undefined_flag=$lt_no_undefined_flag
9171
9172# Commands used to finish a libtool library installation in a directory.
9173finish_cmds=$lt_finish_cmds
9174
9175# Same as above, but a single script fragment to be evaled but not shown.
9176finish_eval=$lt_finish_eval
9177
9178# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009179global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009180
9181# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009182global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009183
9184# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009185global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009186
9187# This is the shared library runtime path variable.
9188runpath_var=$runpath_var
9189
9190# This is the shared library path variable.
9191shlibpath_var=$shlibpath_var
9192
9193# Is shlibpath searched before the hard-coded library search path?
9194shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9195
9196# How to hardcode a shared library path into an executable.
9197hardcode_action=$hardcode_action
9198
9199# Whether we should hardcode library paths into libraries.
9200hardcode_into_libs=$hardcode_into_libs
9201
9202# Flag to hardcode \$libdir into a binary during linking.
9203# This must work even if \$libdir does not exist.
9204hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9205
John Criswell47fdd832003-07-14 16:52:07 +00009206# If ld is used when linking, flag to hardcode \$libdir into
9207# a binary during linking. This must work even if \$libdir does
9208# not exist.
9209hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9210
John Criswell7a73b802003-06-30 21:59:07 +00009211# Whether we need a single -rpath flag with a separated argument.
9212hardcode_libdir_separator=$lt_hardcode_libdir_separator
9213
John Criswell47fdd832003-07-14 16:52:07 +00009214# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009215# resulting binary.
9216hardcode_direct=$hardcode_direct
9217
9218# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9219# resulting binary.
9220hardcode_minus_L=$hardcode_minus_L
9221
9222# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9223# the resulting binary.
9224hardcode_shlibpath_var=$hardcode_shlibpath_var
9225
John Criswell47fdd832003-07-14 16:52:07 +00009226# Set to yes if building a shared library automatically hardcodes DIR into the library
9227# and all subsequent libraries and executables linked against it.
9228hardcode_automatic=$hardcode_automatic
9229
John Criswell7a73b802003-06-30 21:59:07 +00009230# Variables whose values should be saved in libtool wrapper scripts and
9231# restored at relink time.
9232variables_saved_for_relink="$variables_saved_for_relink"
9233
9234# Whether libtool must link a program against all its dependency libraries.
9235link_all_deplibs=$link_all_deplibs
9236
9237# Compile-time system search path for libraries
9238sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9239
9240# Run-time system search path for libraries
9241sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9242
9243# Fix the shell variable \$srcfile for the compiler.
9244fix_srcfile_path="$fix_srcfile_path"
9245
9246# Set to yes if exported symbols are required.
9247always_export_symbols=$always_export_symbols
9248
9249# The commands to list exported symbols.
9250export_symbols_cmds=$lt_export_symbols_cmds
9251
9252# The commands to extract the exported symbol list from a shared archive.
9253extract_expsyms_cmds=$lt_extract_expsyms_cmds
9254
9255# Symbols that should not be listed in the preloaded symbols.
9256exclude_expsyms=$lt_exclude_expsyms
9257
9258# Symbols that must always be exported.
9259include_expsyms=$lt_include_expsyms
9260
9261# ### END LIBTOOL CONFIG
9262
9263__EOF__
9264
John Criswell47fdd832003-07-14 16:52:07 +00009265
John Criswell7a73b802003-06-30 21:59:07 +00009266 case $host_os in
9267 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009268 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009269
9270# AIX sometimes has problems with the GCC collect2 program. For some
9271# reason, if we set the COLLECT_NAMES environment variable, the problems
9272# vanish in a puff of smoke.
9273if test "X${COLLECT_NAMES+set}" != Xset; then
9274 COLLECT_NAMES=
9275 export COLLECT_NAMES
9276fi
9277EOF
9278 ;;
9279 esac
9280
John Criswell7a73b802003-06-30 21:59:07 +00009281 # We use sed instead of cat because bash on DJGPP gets confused if
9282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9283 # text mode, it properly converts lines to CR/LF. This bash problem
9284 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009285 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009286
John Criswell47fdd832003-07-14 16:52:07 +00009287 mv -f "$cfgfile" "$ofile" || \
9288 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009289 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009290
9291else
9292 # If there is no Makefile yet, we rely on a make rule to execute
9293 # `config.status --recheck' to rerun these tests and create the
9294 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009295 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9296 if test -f "$ltmain_in"; then
9297 test -f Makefile && make "$ltmain"
9298 fi
John Criswell7a73b802003-06-30 21:59:07 +00009299fi
John Criswell7a73b802003-06-30 21:59:07 +00009300
9301
John Criswell47fdd832003-07-14 16:52:07 +00009302ac_ext=c
9303ac_cpp='$CPP $CPPFLAGS'
9304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306ac_compiler_gnu=$ac_cv_c_compiler_gnu
9307
9308CC="$lt_save_CC"
9309
9310
9311# Check whether --with-tags or --without-tags was given.
9312if test "${with_tags+set}" = set; then
9313 withval="$with_tags"
9314 tagnames="$withval"
9315fi;
9316
9317if test -f "$ltmain" && test -n "$tagnames"; then
9318 if test ! -f "${ofile}"; then
9319 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9320echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9321 fi
9322
9323 if test -z "$LTCC"; then
9324 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9325 if test -z "$LTCC"; then
9326 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9327echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9328 else
9329 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9330echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9331 fi
9332 fi
9333
9334 # Extract list of available tagged configurations in $ofile.
9335 # Note that this assumes the entire list is on one line.
9336 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9337
9338 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9339 for tagname in $tagnames; do
9340 IFS="$lt_save_ifs"
9341 # Check whether tagname contains only valid characters
9342 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9343 "") ;;
9344 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9345echo "$as_me: error: invalid tag name: $tagname" >&2;}
9346 { (exit 1); exit 1; }; }
9347 ;;
9348 esac
9349
9350 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9351 then
9352 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9353echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9354 { (exit 1); exit 1; }; }
9355 fi
9356
9357 # Update the list of available tags.
9358 if test -n "$tagname"; then
9359 echo appending configuration tag \"$tagname\" to $ofile
9360
9361 case $tagname in
9362 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009363 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9364 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9365 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +00009366 ac_ext=cc
9367ac_cpp='$CXXCPP $CPPFLAGS'
9368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9371
9372
9373
9374
9375archive_cmds_need_lc_CXX=no
9376allow_undefined_flag_CXX=
9377always_export_symbols_CXX=no
9378archive_expsym_cmds_CXX=
9379export_dynamic_flag_spec_CXX=
9380hardcode_direct_CXX=no
9381hardcode_libdir_flag_spec_CXX=
9382hardcode_libdir_flag_spec_ld_CXX=
9383hardcode_libdir_separator_CXX=
9384hardcode_minus_L_CXX=no
9385hardcode_automatic_CXX=no
9386module_cmds_CXX=
9387module_expsym_cmds_CXX=
9388link_all_deplibs_CXX=unknown
9389old_archive_cmds_CXX=$old_archive_cmds
9390no_undefined_flag_CXX=
9391whole_archive_flag_spec_CXX=
9392enable_shared_with_static_runtimes_CXX=no
9393
9394# Dependencies to place before and after the object being linked:
9395predep_objects_CXX=
9396postdep_objects_CXX=
9397predeps_CXX=
9398postdeps_CXX=
9399compiler_lib_search_path_CXX=
9400
9401# Source file extension for C++ test sources.
9402ac_ext=cc
9403
9404# Object file extension for compiled C++ test sources.
9405objext=o
9406objext_CXX=$objext
9407
9408# Code to be used in simple compile tests
9409lt_simple_compile_test_code="int some_variable = 0;\n"
9410
9411# Code to be used in simple link tests
9412lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9413
9414# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9415
9416# If no C compiler was specified, use CC.
9417LTCC=${LTCC-"$CC"}
9418
9419# Allow CC to be a program name with arguments.
9420compiler=$CC
9421
9422
9423# Allow CC to be a program name with arguments.
9424lt_save_CC=$CC
9425lt_save_LD=$LD
9426lt_save_GCC=$GCC
9427GCC=$GXX
9428lt_save_with_gnu_ld=$with_gnu_ld
9429lt_save_path_LD=$lt_cv_path_LD
9430if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9431 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9432else
9433 unset lt_cv_prog_gnu_ld
9434fi
9435if test -n "${lt_cv_path_LDCXX+set}"; then
9436 lt_cv_path_LD=$lt_cv_path_LDCXX
9437else
9438 unset lt_cv_path_LD
9439fi
9440test -z "${LDCXX+set}" || LD=$LDCXX
9441CC=${CXX-"c++"}
9442compiler=$CC
9443compiler_CXX=$CC
9444cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9445
9446# We don't want -fno-exception wen compiling C++ code, so set the
9447# no_builtin_flag separately
9448if test "$GXX" = yes; then
9449 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9450else
9451 lt_prog_compiler_no_builtin_flag_CXX=
9452fi
9453
9454if test "$GXX" = yes; then
9455 # Set up default GNU C++ configuration
9456
9457
9458# Check whether --with-gnu-ld or --without-gnu-ld was given.
9459if test "${with_gnu_ld+set}" = set; then
9460 withval="$with_gnu_ld"
9461 test "$withval" = no || with_gnu_ld=yes
9462else
9463 with_gnu_ld=no
9464fi;
9465ac_prog=ld
9466if test "$GCC" = yes; then
9467 # Check if gcc -print-prog-name=ld gives a path.
9468 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9469echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9470 case $host in
9471 *-*-mingw*)
9472 # gcc leaves a trailing carriage return which upsets mingw
9473 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9474 *)
9475 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9476 esac
9477 case $ac_prog in
9478 # Accept absolute paths.
9479 [\\/]* | ?:[\\/]*)
9480 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009481 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009482 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9483 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9484 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9485 done
9486 test -z "$LD" && LD="$ac_prog"
9487 ;;
9488 "")
9489 # If it fails, then pretend we aren't using GCC.
9490 ac_prog=ld
9491 ;;
9492 *)
9493 # If it is relative, then search for the first ld in PATH.
9494 with_gnu_ld=unknown
9495 ;;
9496 esac
9497elif test "$with_gnu_ld" = yes; then
9498 echo "$as_me:$LINENO: checking for GNU ld" >&5
9499echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9500else
9501 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9502echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9503fi
9504if test "${lt_cv_path_LD+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 if test -z "$LD"; then
9508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9509 for ac_dir in $PATH; do
9510 IFS="$lt_save_ifs"
9511 test -z "$ac_dir" && ac_dir=.
9512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9513 lt_cv_path_LD="$ac_dir/$ac_prog"
9514 # Check to see if the program is GNU ld. I'd rather use --version,
9515 # but apparently some GNU ld's only accept -v.
9516 # Break only if it was the GNU/non-GNU ld that we prefer.
9517 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9518 *GNU* | *'with BFD'*)
9519 test "$with_gnu_ld" != no && break
9520 ;;
9521 *)
9522 test "$with_gnu_ld" != yes && break
9523 ;;
9524 esac
9525 fi
9526 done
9527 IFS="$lt_save_ifs"
9528else
9529 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9530fi
9531fi
9532
9533LD="$lt_cv_path_LD"
9534if test -n "$LD"; then
9535 echo "$as_me:$LINENO: result: $LD" >&5
9536echo "${ECHO_T}$LD" >&6
9537else
9538 echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
9540fi
9541test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9542echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9543 { (exit 1); exit 1; }; }
9544echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9545echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9546if test "${lt_cv_prog_gnu_ld+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9548else
9549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009550case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009551*GNU* | *'with BFD'*)
9552 lt_cv_prog_gnu_ld=yes
9553 ;;
9554*)
9555 lt_cv_prog_gnu_ld=no
9556 ;;
9557esac
9558fi
9559echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9560echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9561with_gnu_ld=$lt_cv_prog_gnu_ld
9562
9563
9564
9565 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9566 # archiving commands below assume that GNU ld is being used.
9567 if test "$with_gnu_ld" = yes; then
9568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 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'
9570
9571 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9573
9574 # If archive_cmds runs LD, not CC, wlarc should be empty
9575 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9576 # investigate it a little bit more. (MM)
9577 wlarc='${wl}'
9578
9579 # ancient GNU ld didn't support --whole-archive et. al.
9580 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9581 grep 'no-whole-archive' > /dev/null; then
9582 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9583 else
9584 whole_archive_flag_spec_CXX=
9585 fi
9586 else
9587 with_gnu_ld=no
9588 wlarc=
9589
9590 # A generic and very simple default shared library creation
9591 # command for GNU C++ for the case where it uses the native
9592 # linker, instead of GNU ld. If possible, this setting should
9593 # overridden to take advantage of the native linker features on
9594 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009595 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009596 fi
9597
9598 # Commands to make compiler produce verbose output that lists
9599 # what "hidden" libraries, object files and flags are used when
9600 # linking a shared library.
9601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9602
9603else
9604 GXX=no
9605 with_gnu_ld=no
9606 wlarc=
9607fi
9608
9609# PORTME: fill in a description of your system's C++ link characteristics
9610echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9611echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9612ld_shlibs_CXX=yes
9613case $host_os in
9614 aix3*)
9615 # FIXME: insert proper C++ library support
9616 ld_shlibs_CXX=no
9617 ;;
9618 aix4* | aix5*)
9619 if test "$host_cpu" = ia64; then
9620 # On IA64, the linker does run time linking by default, so we don't
9621 # have to do anything special.
9622 aix_use_runtimelinking=no
9623 exp_sym_flag='-Bexport'
9624 no_entry_flag=""
9625 else
9626 aix_use_runtimelinking=no
9627
9628 # Test if we are trying to use run time linking or normal
9629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9630 # need to do runtime linking.
9631 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9632 for ld_flag in $LDFLAGS; do
9633 case $ld_flag in
9634 *-brtl*)
9635 aix_use_runtimelinking=yes
9636 break
9637 ;;
9638 esac
9639 done
9640 esac
9641
9642 exp_sym_flag='-bexport'
9643 no_entry_flag='-bnoentry'
9644 fi
9645
9646 # When large executables or shared objects are built, AIX ld can
9647 # have problems creating the table of contents. If linking a library
9648 # or program results in "error TOC overflow" add -mminimal-toc to
9649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9651
9652 archive_cmds_CXX=''
9653 hardcode_direct_CXX=yes
9654 hardcode_libdir_separator_CXX=':'
9655 link_all_deplibs_CXX=yes
9656
9657 if test "$GXX" = yes; then
9658 case $host_os in aix4.012|aix4.012.*)
9659 # We only want to do this on AIX 4.2 and lower, the check
9660 # below for broken collect2 doesn't work under 4.3+
9661 collect2name=`${CC} -print-prog-name=collect2`
9662 if test -f "$collect2name" && \
9663 strings "$collect2name" | grep resolve_lib_name >/dev/null
9664 then
9665 # We have reworked collect2
9666 hardcode_direct_CXX=yes
9667 else
9668 # We have old collect2
9669 hardcode_direct_CXX=unsupported
9670 # It fails to find uninstalled libraries when the uninstalled
9671 # path is not listed in the libpath. Setting hardcode_minus_L
9672 # to unsupported forces relinking
9673 hardcode_minus_L_CXX=yes
9674 hardcode_libdir_flag_spec_CXX='-L$libdir'
9675 hardcode_libdir_separator_CXX=
9676 fi
9677 esac
9678 shared_flag='-shared'
9679 else
9680 # not using gcc
9681 if test "$host_cpu" = ia64; then
9682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683 # chokes on -Wl,-G. The following line is correct:
9684 shared_flag='-G'
9685 else
9686 if test "$aix_use_runtimelinking" = yes; then
9687 shared_flag='${wl}-G'
9688 else
9689 shared_flag='${wl}-bM:SRE'
9690 fi
9691 fi
9692 fi
9693
9694 # It seems that -bexpall does not export symbols beginning with
9695 # underscore (_), so it is better to generate a list of symbols to export.
9696 always_export_symbols_CXX=yes
9697 if test "$aix_use_runtimelinking" = yes; then
9698 # Warning - without using the other runtime loading flags (-brtl),
9699 # -berok will link without error, but may produce a broken library.
9700 allow_undefined_flag_CXX='-berok'
9701 # Determine the default libpath from the value encoded in an empty executable.
9702 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009703/* confdefs.h. */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009708
John Criswell47fdd832003-07-14 16:52:07 +00009709int
9710main ()
9711{
9712
9713 ;
9714 return 0;
9715}
9716_ACEOF
9717rm -f conftest.$ac_objext conftest$ac_exeext
9718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009719 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009721 grep -v '^ *+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009726 { ac_try='test -z "$ac_cxx_werror_flag"
9727 || test ! -s conftest.err'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; } &&
9733 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739
9740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9741}'`
9742# Check for a 64-bit object if we didn't find anything.
9743if 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; }
9744}'`; fi
9745else
9746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009747sed 's/^/| /' conftest.$ac_ext >&5
9748
John Criswell47fdd832003-07-14 16:52:07 +00009749fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009750rm -f conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009752if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9753
9754 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9755
9756 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"
9757 else
9758 if test "$host_cpu" = ia64; then
9759 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9760 allow_undefined_flag_CXX="-z nodefs"
9761 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"
9762 else
9763 # Determine the default libpath from the value encoded in an empty executable.
9764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009770
John Criswell47fdd832003-07-14 16:52:07 +00009771int
9772main ()
9773{
9774
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
9780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009781 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009782 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009788 { ac_try='test -z "$ac_cxx_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801
9802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9803}'`
9804# Check for a 64-bit object if we didn't find anything.
9805if 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; }
9806}'`; fi
9807else
9808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009809sed 's/^/| /' conftest.$ac_ext >&5
9810
John Criswell47fdd832003-07-14 16:52:07 +00009811fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009812rm -f conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9815
9816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9817 # Warning - without using the other run time loading flags,
9818 # -berok will link without error, but may produce a broken library.
9819 no_undefined_flag_CXX=' ${wl}-bernotok'
9820 allow_undefined_flag_CXX=' ${wl}-berok'
9821 # -bexpall does not export symbols beginning with underscore (_)
9822 always_export_symbols_CXX=yes
9823 # Exported symbols can be pulled into shared objects from archives
9824 whole_archive_flag_spec_CXX=' '
9825 archive_cmds_need_lc_CXX=yes
9826 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009827 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'
John Criswell47fdd832003-07-14 16:52:07 +00009828 fi
9829 fi
9830 ;;
9831 chorus*)
9832 case $cc_basename in
9833 *)
9834 # FIXME: insert proper C++ library support
9835 ld_shlibs_CXX=no
9836 ;;
9837 esac
9838 ;;
9839
Reid Spencer2706f8c2004-09-19 23:53:36 +00009840
John Criswell47fdd832003-07-14 16:52:07 +00009841 cygwin* | mingw* | pw32*)
9842 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9843 # as there is no search path for DLLs.
9844 hardcode_libdir_flag_spec_CXX='-L$libdir'
9845 allow_undefined_flag_CXX=unsupported
9846 always_export_symbols_CXX=no
9847 enable_shared_with_static_runtimes_CXX=yes
9848
9849 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9850 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'
9851 # If the export-symbols file already is a .def file (1st line
9852 # is EXPORTS), use it as is; otherwise, prepend...
9853 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9854 cp $export_symbols $output_objdir/$soname.def;
9855 else
9856 echo EXPORTS > $output_objdir/$soname.def;
9857 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009858 fi;$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'
John Criswell47fdd832003-07-14 16:52:07 +00009859 else
9860 ld_shlibs_CXX=no
9861 fi
9862 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009863 darwin* | rhapsody*)
9864 case "$host_os" in
9865 rhapsody* | darwin1.[012])
9866 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9867 ;;
9868 *) # Darwin 1.3 on
9869 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9870 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9871 else
9872 case ${MACOSX_DEPLOYMENT_TARGET} in
9873 10.[012])
9874 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9875 ;;
9876 10.*)
9877 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9878 ;;
9879 esac
9880 fi
9881 ;;
9882 esac
9883 archive_cmds_need_lc_CXX=no
9884 hardcode_direct_CXX=no
9885 hardcode_automatic_CXX=yes
9886 hardcode_shlibpath_var_CXX=unsupported
9887 whole_archive_flag_spec_CXX=''
9888 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +00009889
Reid Spencer2706f8c2004-09-19 23:53:36 +00009890 if test "$GXX" = yes ; then
9891 lt_int_apple_cc_single_mod=no
9892 output_verbose_link_cmd='echo'
9893 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9894 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009895 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009896 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009897 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +00009898 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009899 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9900 fi
9901 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9903 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9904 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}'
9905 else
9906 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs;$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9907 fi
9908 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}'
9909 else
9910 case "$cc_basename" in
9911 xlc*)
9912 output_verbose_link_cmd='echo'
9913 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9914 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9916 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9917 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}'
9918 ;;
9919 *)
9920 ld_shlibs_CXX=no
9921 ;;
9922 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009923 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009924 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009925
9926 dgux*)
9927 case $cc_basename in
9928 ec++)
9929 # FIXME: insert proper C++ library support
9930 ld_shlibs_CXX=no
9931 ;;
9932 ghcx)
9933 # Green Hills C++ Compiler
9934 # FIXME: insert proper C++ library support
9935 ld_shlibs_CXX=no
9936 ;;
9937 *)
9938 # FIXME: insert proper C++ library support
9939 ld_shlibs_CXX=no
9940 ;;
9941 esac
9942 ;;
9943 freebsd12*)
9944 # C++ shared libraries reported to be fairly broken before switch to ELF
9945 ld_shlibs_CXX=no
9946 ;;
9947 freebsd-elf*)
9948 archive_cmds_need_lc_CXX=no
9949 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009950 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009951 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9952 # conventions
9953 ld_shlibs_CXX=yes
9954 ;;
9955 gnu*)
9956 ;;
9957 hpux9*)
9958 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9959 hardcode_libdir_separator_CXX=:
9960 export_dynamic_flag_spec_CXX='${wl}-E'
9961 hardcode_direct_CXX=yes
9962 hardcode_minus_L_CXX=yes # Not in the search PATH,
9963 # but as the default
9964 # location of the library.
9965
9966 case $cc_basename in
9967 CC)
9968 # FIXME: insert proper C++ library support
9969 ld_shlibs_CXX=no
9970 ;;
9971 aCC)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009972 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'
John Criswell47fdd832003-07-14 16:52:07 +00009973 # Commands to make compiler produce verbose output that lists
9974 # what "hidden" libraries, object files and flags are used when
9975 # linking a shared library.
9976 #
9977 # There doesn't appear to be a way to prevent this compiler from
9978 # explicitly linking system object files so we need to strip them
9979 # from the output so that they don't get included in the library
9980 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009981 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'
John Criswell47fdd832003-07-14 16:52:07 +00009982 ;;
9983 *)
9984 if test "$GXX" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009985 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'
John Criswell47fdd832003-07-14 16:52:07 +00009986 else
9987 # FIXME: insert proper C++ library support
9988 ld_shlibs_CXX=no
9989 fi
9990 ;;
9991 esac
9992 ;;
9993 hpux10*|hpux11*)
9994 if test $with_gnu_ld = no; then
9995 case "$host_cpu" in
9996 hppa*64*)
9997 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9998 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9999 hardcode_libdir_separator_CXX=:
10000 ;;
10001 ia64*)
10002 hardcode_libdir_flag_spec_CXX='-L$libdir'
10003 ;;
10004 *)
10005 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10006 hardcode_libdir_separator_CXX=:
10007 export_dynamic_flag_spec_CXX='${wl}-E'
10008 ;;
10009 esac
10010 fi
10011 case "$host_cpu" in
10012 hppa*64*)
10013 hardcode_direct_CXX=no
10014 hardcode_shlibpath_var_CXX=no
10015 ;;
10016 ia64*)
10017 hardcode_direct_CXX=no
10018 hardcode_shlibpath_var_CXX=no
10019 hardcode_minus_L_CXX=yes # Not in the search PATH,
10020 # but as the default
10021 # location of the library.
10022 ;;
10023 *)
10024 hardcode_direct_CXX=yes
10025 hardcode_minus_L_CXX=yes # Not in the search PATH,
10026 # but as the default
10027 # location of the library.
10028 ;;
10029 esac
10030
10031 case $cc_basename in
10032 CC)
10033 # FIXME: insert proper C++ library support
10034 ld_shlibs_CXX=no
10035 ;;
10036 aCC)
10037 case "$host_cpu" in
10038 hppa*64*|ia64*)
10039 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10040 ;;
10041 *)
10042 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10043 ;;
10044 esac
10045 # Commands to make compiler produce verbose output that lists
10046 # what "hidden" libraries, object files and flags are used when
10047 # linking a shared library.
10048 #
10049 # There doesn't appear to be a way to prevent this compiler from
10050 # explicitly linking system object files so we need to strip them
10051 # from the output so that they don't get included in the library
10052 # dependencies.
10053 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'
10054 ;;
10055 *)
10056 if test "$GXX" = yes; then
10057 if test $with_gnu_ld = no; then
10058 case "$host_cpu" in
10059 ia64*|hppa*64*)
10060 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10061 ;;
10062 *)
10063 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'
10064 ;;
10065 esac
10066 fi
10067 else
10068 # FIXME: insert proper C++ library support
10069 ld_shlibs_CXX=no
10070 fi
10071 ;;
10072 esac
10073 ;;
10074 irix5* | irix6*)
10075 case $cc_basename in
10076 CC)
10077 # SGI C++
10078 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'
10079
10080 # Archives containing C++ object files must be created using
10081 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10082 # necessary to make sure instantiated templates are included
10083 # in the archive.
10084 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10085 ;;
10086 *)
10087 if test "$GXX" = yes; then
10088 if test "$with_gnu_ld" = no; then
10089 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'
10090 else
10091 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'
10092 fi
10093 fi
10094 link_all_deplibs_CXX=yes
10095 ;;
10096 esac
10097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10098 hardcode_libdir_separator_CXX=:
10099 ;;
10100 linux*)
10101 case $cc_basename in
10102 KCC)
10103 # Kuck and Associates, Inc. (KAI) C++ Compiler
10104
10105 # KCC will only create a shared library if the output file
10106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10107 # to its proper name (with version) after linking.
10108 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'
10109 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'
10110 # Commands to make compiler produce verbose output that lists
10111 # what "hidden" libraries, object files and flags are used when
10112 # linking a shared library.
10113 #
10114 # There doesn't appear to be a way to prevent this compiler from
10115 # explicitly linking system object files so we need to strip them
10116 # from the output so that they don't get included in the library
10117 # dependencies.
10118 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'
10119
10120 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10121 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10122
10123 # Archives containing C++ object files must be created using
10124 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10125 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10126 ;;
10127 icpc)
10128 # Intel C++
10129 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010130 # version 8.0 and above of icpc choke on multiply defined symbols
10131 # if we add $predep_objects and $postdep_objects, however 7.1 and
10132 # earlier do not add the objects themselves.
10133 case `$CC -V 2>&1` in
10134 *"Version 7."*)
10135 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10136 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'
10137 ;;
10138 *) # Version 8.0 or newer
10139 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10141 ;;
10142 esac
John Criswell47fdd832003-07-14 16:52:07 +000010143 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010144 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10145 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10146 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10147 ;;
10148 cxx)
10149 # Compaq C++
10150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 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'
10152
10153 runpath_var=LD_RUN_PATH
10154 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10155 hardcode_libdir_separator_CXX=:
10156
10157 # Commands to make compiler produce verbose output that lists
10158 # what "hidden" libraries, object files and flags are used when
10159 # linking a shared library.
10160 #
10161 # There doesn't appear to be a way to prevent this compiler from
10162 # explicitly linking system object files so we need to strip them
10163 # from the output so that they don't get included in the library
10164 # dependencies.
10165 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'
10166 ;;
10167 esac
10168 ;;
10169 lynxos*)
10170 # FIXME: insert proper C++ library support
10171 ld_shlibs_CXX=no
10172 ;;
10173 m88k*)
10174 # FIXME: insert proper C++ library support
10175 ld_shlibs_CXX=no
10176 ;;
10177 mvs*)
10178 case $cc_basename in
10179 cxx)
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 ;;
10183 *)
10184 # FIXME: insert proper C++ library support
10185 ld_shlibs_CXX=no
10186 ;;
10187 esac
10188 ;;
10189 netbsd*)
10190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10191 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10192 wlarc=
10193 hardcode_libdir_flag_spec_CXX='-R$libdir'
10194 hardcode_direct_CXX=yes
10195 hardcode_shlibpath_var_CXX=no
10196 fi
10197 # Workaround some broken pre-1.5 toolchains
10198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10199 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010200 openbsd2*)
10201 # C++ shared libraries are fairly broken
10202 ld_shlibs_CXX=no
10203 ;;
10204 openbsd*)
10205 hardcode_direct_CXX=yes
10206 hardcode_shlibpath_var_CXX=no
10207 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10211 export_dynamic_flag_spec_CXX='${wl}-E'
10212 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10213 fi
10214 output_verbose_link_cmd='echo'
10215 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010216 osf3*)
10217 case $cc_basename in
10218 KCC)
10219 # Kuck and Associates, Inc. (KAI) C++ Compiler
10220
10221 # KCC will only create a shared library if the output file
10222 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10223 # to its proper name (with version) after linking.
10224 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'
10225
10226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10227 hardcode_libdir_separator_CXX=:
10228
10229 # Archives containing C++ object files must be created using
10230 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10232
10233 ;;
10234 RCC)
10235 # Rational C++ 2.4.1
10236 # FIXME: insert proper C++ library support
10237 ld_shlibs_CXX=no
10238 ;;
10239 cxx)
10240 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10241 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'
10242
10243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10244 hardcode_libdir_separator_CXX=:
10245
10246 # Commands to make compiler produce verbose output that lists
10247 # what "hidden" libraries, object files and flags are used when
10248 # linking a shared library.
10249 #
10250 # There doesn't appear to be a way to prevent this compiler from
10251 # explicitly linking system object files so we need to strip them
10252 # from the output so that they don't get included in the library
10253 # dependencies.
10254 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'
10255 ;;
10256 *)
10257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10259 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'
10260
10261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10262 hardcode_libdir_separator_CXX=:
10263
10264 # Commands to make compiler produce verbose output that lists
10265 # what "hidden" libraries, object files and flags are used when
10266 # linking a shared library.
10267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10268
10269 else
10270 # FIXME: insert proper C++ library support
10271 ld_shlibs_CXX=no
10272 fi
10273 ;;
10274 esac
10275 ;;
10276 osf4* | osf5*)
10277 case $cc_basename in
10278 KCC)
10279 # Kuck and Associates, Inc. (KAI) C++ Compiler
10280
10281 # KCC will only create a shared library if the output file
10282 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10283 # to its proper name (with version) after linking.
10284 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'
10285
10286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10287 hardcode_libdir_separator_CXX=:
10288
10289 # Archives containing C++ object files must be created using
10290 # the KAI C++ compiler.
10291 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10292 ;;
10293 RCC)
10294 # Rational C++ 2.4.1
10295 # FIXME: insert proper C++ library support
10296 ld_shlibs_CXX=no
10297 ;;
10298 cxx)
10299 allow_undefined_flag_CXX=' -expect_unresolved \*'
10300 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010301 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010302
10303 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10304 hardcode_libdir_separator_CXX=:
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 #
10310 # There doesn't appear to be a way to prevent this compiler from
10311 # explicitly linking system object files so we need to strip them
10312 # from the output so that they don't get included in the library
10313 # dependencies.
10314 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'
10315 ;;
10316 *)
10317 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10318 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10319 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'
10320
10321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator_CXX=:
10323
10324 # Commands to make compiler produce verbose output that lists
10325 # what "hidden" libraries, object files and flags are used when
10326 # linking a shared library.
10327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10328
10329 else
10330 # FIXME: insert proper C++ library support
10331 ld_shlibs_CXX=no
10332 fi
10333 ;;
10334 esac
10335 ;;
10336 psos*)
10337 # FIXME: insert proper C++ library support
10338 ld_shlibs_CXX=no
10339 ;;
10340 sco*)
10341 archive_cmds_need_lc_CXX=no
10342 case $cc_basename in
10343 CC)
10344 # FIXME: insert proper C++ library support
10345 ld_shlibs_CXX=no
10346 ;;
10347 *)
10348 # FIXME: insert proper C++ library support
10349 ld_shlibs_CXX=no
10350 ;;
10351 esac
10352 ;;
10353 sunos4*)
10354 case $cc_basename in
10355 CC)
10356 # Sun C++ 4.x
10357 # FIXME: insert proper C++ library support
10358 ld_shlibs_CXX=no
10359 ;;
10360 lcc)
10361 # Lucid
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 ;;
10365 *)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 esac
10370 ;;
10371 solaris*)
10372 case $cc_basename in
10373 CC)
10374 # Sun C++ 4.2, 5.x and Centerline C++
10375 no_undefined_flag_CXX=' -zdefs'
10376 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010377 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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'
John Criswell47fdd832003-07-14 16:52:07 +000010378
10379 hardcode_libdir_flag_spec_CXX='-R$libdir'
10380 hardcode_shlibpath_var_CXX=no
10381 case $host_os in
10382 solaris2.0-5 | solaris2.0-5.*) ;;
10383 *)
10384 # The C++ compiler is used as linker so we must use $wl
10385 # flag to pass the commands to the underlying system
10386 # linker.
10387 # Supported since Solaris 2.6 (maybe 2.5.1?)
10388 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10389 ;;
10390 esac
10391 link_all_deplibs_CXX=yes
10392
10393 # Commands to make compiler produce verbose output that lists
10394 # what "hidden" libraries, object files and flags are used when
10395 # linking a shared library.
10396 #
10397 # There doesn't appear to be a way to prevent this compiler from
10398 # explicitly linking system object files so we need to strip them
10399 # from the output so that they don't get included in the library
10400 # dependencies.
10401 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'
10402
10403 # Archives containing C++ object files must be created using
10404 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10405 # necessary to make sure instantiated templates are included
10406 # in the archive.
10407 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10408 ;;
10409 gcx)
10410 # Green Hills C++ Compiler
10411 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10412
10413 # The C++ compiler must be used to create the archive.
10414 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10415 ;;
10416 *)
10417 # GNU C++ compiler with Solaris linker
10418 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10419 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10420 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010421 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010422 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010423 # Commands to make compiler produce verbose output that lists
10424 # what "hidden" libraries, object files and flags are used when
10425 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010426 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010427 else
10428 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10429 # platform.
10430 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010431 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10432 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010433
10434 # Commands to make compiler produce verbose output that lists
10435 # what "hidden" libraries, object files and flags are used when
10436 # linking a shared library.
10437 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10438 fi
10439
10440 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10441 fi
10442 ;;
10443 esac
10444 ;;
10445 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10446 archive_cmds_need_lc_CXX=no
10447 ;;
10448 tandem*)
10449 case $cc_basename in
10450 NCC)
10451 # NonStop-UX NCC 3.20
10452 # FIXME: insert proper C++ library support
10453 ld_shlibs_CXX=no
10454 ;;
10455 *)
10456 # FIXME: insert proper C++ library support
10457 ld_shlibs_CXX=no
10458 ;;
10459 esac
10460 ;;
10461 vxworks*)
10462 # FIXME: insert proper C++ library support
10463 ld_shlibs_CXX=no
10464 ;;
10465 *)
10466 # FIXME: insert proper C++ library support
10467 ld_shlibs_CXX=no
10468 ;;
10469esac
10470echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10471echo "${ECHO_T}$ld_shlibs_CXX" >&6
10472test "$ld_shlibs_CXX" = no && can_build_shared=no
10473
10474GCC_CXX="$GXX"
10475LD_CXX="$LD"
10476
John Criswell47fdd832003-07-14 16:52:07 +000010477
10478cat > conftest.$ac_ext <<EOF
10479class Foo
10480{
10481public:
10482 Foo (void) { a = 0; }
10483private:
10484 int a;
10485};
10486EOF
10487
10488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; then
10493 # Parse the compiler output and extract the necessary
10494 # objects, libraries and library flags.
10495
10496 # Sentinel used to keep track of whether or not we are before
10497 # the conftest object file.
10498 pre_test_object_deps_done=no
10499
10500 # The `*' in the case matches for architectures that use `case' in
10501 # $output_verbose_cmd can trigger glob expansion during the loop
10502 # eval without this substitution.
10503 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10504
10505 for p in `eval $output_verbose_link_cmd`; do
10506 case $p in
10507
10508 -L* | -R* | -l*)
10509 # Some compilers place space between "-{L,R}" and the path.
10510 # Remove the space.
10511 if test $p = "-L" \
10512 || test $p = "-R"; then
10513 prev=$p
10514 continue
10515 else
10516 prev=
10517 fi
10518
10519 if test "$pre_test_object_deps_done" = no; then
10520 case $p in
10521 -L* | -R*)
10522 # Internal compiler library paths should come after those
10523 # provided the user. The postdeps already come after the
10524 # user supplied libs so there is no need to process them.
10525 if test -z "$compiler_lib_search_path_CXX"; then
10526 compiler_lib_search_path_CXX="${prev}${p}"
10527 else
10528 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10529 fi
10530 ;;
10531 # The "-l" case would never come before the object being
10532 # linked, so don't bother handling this case.
10533 esac
10534 else
10535 if test -z "$postdeps_CXX"; then
10536 postdeps_CXX="${prev}${p}"
10537 else
10538 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10539 fi
10540 fi
10541 ;;
10542
10543 *.$objext)
10544 # This assumes that the test object file only shows up
10545 # once in the compiler output.
10546 if test "$p" = "conftest.$objext"; then
10547 pre_test_object_deps_done=yes
10548 continue
10549 fi
10550
10551 if test "$pre_test_object_deps_done" = no; then
10552 if test -z "$predep_objects_CXX"; then
10553 predep_objects_CXX="$p"
10554 else
10555 predep_objects_CXX="$predep_objects_CXX $p"
10556 fi
10557 else
10558 if test -z "$postdep_objects_CXX"; then
10559 postdep_objects_CXX="$p"
10560 else
10561 postdep_objects_CXX="$postdep_objects_CXX $p"
10562 fi
10563 fi
10564 ;;
10565
10566 *) ;; # Ignore the rest.
10567
10568 esac
10569 done
10570
10571 # Clean up.
10572 rm -f a.out a.exe
10573else
10574 echo "libtool.m4: error: problem compiling CXX test program"
10575fi
10576
10577$rm -f confest.$objext
10578
10579case " $postdeps_CXX " in
10580*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10581esac
10582
10583lt_prog_compiler_wl_CXX=
10584lt_prog_compiler_pic_CXX=
10585lt_prog_compiler_static_CXX=
10586
10587echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10588echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10589
10590 # C++ specific cases for pic, static, wl, etc.
10591 if test "$GXX" = yes; then
10592 lt_prog_compiler_wl_CXX='-Wl,'
10593 lt_prog_compiler_static_CXX='-static'
10594
10595 case $host_os in
10596 aix*)
10597 # All AIX code is PIC.
10598 if test "$host_cpu" = ia64; then
10599 # AIX 5 now supports IA64 processor
10600 lt_prog_compiler_static_CXX='-Bstatic'
10601 fi
10602 ;;
10603 amigaos*)
10604 # FIXME: we need at least 68020 code to build shared libraries, but
10605 # adding the `-m68020' flag to GCC prevents building anything better,
10606 # like `-m68040'.
10607 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10608 ;;
10609 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10610 # PIC is the default for these OSes.
10611 ;;
10612 mingw* | os2* | pw32*)
10613 # This hack is so that the source file can tell whether it is being
10614 # built for inclusion in a dll (and should export symbols for example).
10615 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10616 ;;
10617 darwin* | rhapsody*)
10618 # PIC is the default on this platform
10619 # Common symbols not allowed in MH_DYLIB files
10620 lt_prog_compiler_pic_CXX='-fno-common'
10621 ;;
10622 *djgpp*)
10623 # DJGPP does not support shared libraries at all
10624 lt_prog_compiler_pic_CXX=
10625 ;;
10626 sysv4*MP*)
10627 if test -d /usr/nec; then
10628 lt_prog_compiler_pic_CXX=-Kconform_pic
10629 fi
10630 ;;
10631 hpux*)
10632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10633 # not for PA HP-UX.
10634 case "$host_cpu" in
10635 hppa*64*|ia64*)
10636 ;;
10637 *)
10638 lt_prog_compiler_pic_CXX='-fPIC'
10639 ;;
10640 esac
10641 ;;
10642 *)
10643 lt_prog_compiler_pic_CXX='-fPIC'
10644 ;;
10645 esac
10646 else
10647 case $host_os in
10648 aix4* | aix5*)
10649 # All AIX code is PIC.
10650 if test "$host_cpu" = ia64; then
10651 # AIX 5 now supports IA64 processor
10652 lt_prog_compiler_static_CXX='-Bstatic'
10653 else
10654 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10655 fi
10656 ;;
10657 chorus*)
10658 case $cc_basename in
10659 cxch68)
10660 # Green Hills C++ Compiler
10661 # _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"
10662 ;;
10663 esac
10664 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010665 darwin*)
10666 # PIC is the default on this platform
10667 # Common symbols not allowed in MH_DYLIB files
10668 case "$cc_basename" in
10669 xlc*)
10670 lt_prog_compiler_pic_CXX='-qnocommon'
10671 lt_prog_compiler_wl_CXX='-Wl,'
10672 ;;
10673 esac
10674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010675 dgux*)
10676 case $cc_basename in
10677 ec++)
10678 lt_prog_compiler_pic_CXX='-KPIC'
10679 ;;
10680 ghcx)
10681 # Green Hills C++ Compiler
10682 lt_prog_compiler_pic_CXX='-pic'
10683 ;;
10684 *)
10685 ;;
10686 esac
10687 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010688 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010689 # FreeBSD uses GNU C++
10690 ;;
10691 hpux9* | hpux10* | hpux11*)
10692 case $cc_basename in
10693 CC)
10694 lt_prog_compiler_wl_CXX='-Wl,'
10695 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10696 if test "$host_cpu" != ia64; then
10697 lt_prog_compiler_pic_CXX='+Z'
10698 fi
10699 ;;
10700 aCC)
10701 lt_prog_compiler_wl_CXX='-Wl,'
10702 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10703 case "$host_cpu" in
10704 hppa*64*|ia64*)
10705 # +Z the default
10706 ;;
10707 *)
10708 lt_prog_compiler_pic_CXX='+Z'
10709 ;;
10710 esac
10711 ;;
10712 *)
10713 ;;
10714 esac
10715 ;;
10716 irix5* | irix6* | nonstopux*)
10717 case $cc_basename in
10718 CC)
10719 lt_prog_compiler_wl_CXX='-Wl,'
10720 lt_prog_compiler_static_CXX='-non_shared'
10721 # CC pic flag -KPIC is the default.
10722 ;;
10723 *)
10724 ;;
10725 esac
10726 ;;
10727 linux*)
10728 case $cc_basename in
10729 KCC)
10730 # KAI C++ Compiler
10731 lt_prog_compiler_wl_CXX='--backend -Wl,'
10732 lt_prog_compiler_pic_CXX='-fPIC'
10733 ;;
10734 icpc)
10735 # Intel C++
10736 lt_prog_compiler_wl_CXX='-Wl,'
10737 lt_prog_compiler_pic_CXX='-KPIC'
10738 lt_prog_compiler_static_CXX='-static'
10739 ;;
10740 cxx)
10741 # Compaq C++
10742 # Make sure the PIC flag is empty. It appears that all Alpha
10743 # Linux and Compaq Tru64 Unix objects are PIC.
10744 lt_prog_compiler_pic_CXX=
10745 lt_prog_compiler_static_CXX='-non_shared'
10746 ;;
10747 *)
10748 ;;
10749 esac
10750 ;;
10751 lynxos*)
10752 ;;
10753 m88k*)
10754 ;;
10755 mvs*)
10756 case $cc_basename in
10757 cxx)
10758 lt_prog_compiler_pic_CXX='-W c,exportall'
10759 ;;
10760 *)
10761 ;;
10762 esac
10763 ;;
10764 netbsd*)
10765 ;;
10766 osf3* | osf4* | osf5*)
10767 case $cc_basename in
10768 KCC)
10769 lt_prog_compiler_wl_CXX='--backend -Wl,'
10770 ;;
10771 RCC)
10772 # Rational C++ 2.4.1
10773 lt_prog_compiler_pic_CXX='-pic'
10774 ;;
10775 cxx)
10776 # Digital/Compaq C++
10777 lt_prog_compiler_wl_CXX='-Wl,'
10778 # Make sure the PIC flag is empty. It appears that all Alpha
10779 # Linux and Compaq Tru64 Unix objects are PIC.
10780 lt_prog_compiler_pic_CXX=
10781 lt_prog_compiler_static_CXX='-non_shared'
10782 ;;
10783 *)
10784 ;;
10785 esac
10786 ;;
10787 psos*)
10788 ;;
10789 sco*)
10790 case $cc_basename in
10791 CC)
10792 lt_prog_compiler_pic_CXX='-fPIC'
10793 ;;
10794 *)
10795 ;;
10796 esac
10797 ;;
10798 solaris*)
10799 case $cc_basename in
10800 CC)
10801 # Sun C++ 4.2, 5.x and Centerline C++
10802 lt_prog_compiler_pic_CXX='-KPIC'
10803 lt_prog_compiler_static_CXX='-Bstatic'
10804 lt_prog_compiler_wl_CXX='-Qoption ld '
10805 ;;
10806 gcx)
10807 # Green Hills C++ Compiler
10808 lt_prog_compiler_pic_CXX='-PIC'
10809 ;;
10810 *)
10811 ;;
10812 esac
10813 ;;
10814 sunos4*)
10815 case $cc_basename in
10816 CC)
10817 # Sun C++ 4.x
10818 lt_prog_compiler_pic_CXX='-pic'
10819 lt_prog_compiler_static_CXX='-Bstatic'
10820 ;;
10821 lcc)
10822 # Lucid
10823 lt_prog_compiler_pic_CXX='-pic'
10824 ;;
10825 *)
10826 ;;
10827 esac
10828 ;;
10829 tandem*)
10830 case $cc_basename in
10831 NCC)
10832 # NonStop-UX NCC 3.20
10833 lt_prog_compiler_pic_CXX='-KPIC'
10834 ;;
10835 *)
10836 ;;
10837 esac
10838 ;;
10839 unixware*)
10840 ;;
10841 vxworks*)
10842 ;;
10843 *)
10844 lt_prog_compiler_can_build_shared_CXX=no
10845 ;;
10846 esac
10847 fi
10848
10849echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10850echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10851
10852#
10853# Check to make sure the PIC flag actually works.
10854#
10855if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010856
10857echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010858echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10859if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861else
10862 lt_prog_compiler_pic_works_CXX=no
10863 ac_outfile=conftest.$ac_objext
10864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10865 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10866 # Insert the option either (1) after the last *FLAGS variable, or
10867 # (2) before a word containing "conftest.", or (3) at the end.
10868 # Note that $ac_compile itself does not contain backslashes and begins
10869 # with a dollar sign (not a hyphen), so the echo should work correctly.
10870 # The option is referenced via a variable to avoid confusing sed.
10871 lt_compile=`echo "$ac_compile" | $SED \
10872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10874 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000010875 (eval echo "\"\$as_me:10875: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010876 (eval "$lt_compile" 2>conftest.err)
10877 ac_status=$?
10878 cat conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000010879 echo "$as_me:10879: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010880 if (exit $ac_status) && test -s "$ac_outfile"; then
10881 # The compiler can only warn and ignore the option if not recognized
10882 # So say no if there are warnings
10883 if test ! -s conftest.err; then
10884 lt_prog_compiler_pic_works_CXX=yes
10885 fi
10886 fi
10887 $rm conftest*
10888
10889fi
10890echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10891echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10892
10893if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10894 case $lt_prog_compiler_pic_CXX in
10895 "" | " "*) ;;
10896 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10897 esac
10898else
10899 lt_prog_compiler_pic_CXX=
10900 lt_prog_compiler_can_build_shared_CXX=no
10901fi
10902
10903fi
10904case "$host_os" in
10905 # For platforms which do not support PIC, -DPIC is meaningless:
10906 *djgpp*)
10907 lt_prog_compiler_pic_CXX=
10908 ;;
10909 *)
10910 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10911 ;;
10912esac
10913
10914echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10915echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10916if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918else
10919 lt_cv_prog_compiler_c_o_CXX=no
10920 $rm -r conftest 2>/dev/null
10921 mkdir conftest
10922 cd conftest
10923 mkdir out
10924 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10925
John Criswell47fdd832003-07-14 16:52:07 +000010926 lt_compiler_flag="-o out/conftest2.$ac_objext"
10927 # Insert the option either (1) after the last *FLAGS variable, or
10928 # (2) before a word containing "conftest.", or (3) at the end.
10929 # Note that $ac_compile itself does not contain backslashes and begins
10930 # with a dollar sign (not a hyphen), so the echo should work correctly.
10931 lt_compile=`echo "$ac_compile" | $SED \
10932 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10934 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000010935 (eval echo "\"\$as_me:10935: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010936 (eval "$lt_compile" 2>out/conftest.err)
10937 ac_status=$?
10938 cat out/conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000010939 echo "$as_me:10939: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10941 then
10942 # The compiler can only warn and ignore the option if not recognized
10943 # So say no if there are warnings
10944 if test ! -s out/conftest.err; then
10945 lt_cv_prog_compiler_c_o_CXX=yes
10946 fi
10947 fi
10948 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000010949 $rm conftest*
10950 # SGI C++ compiler will create directory out/ii_files/ for
10951 # template instantiation
10952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10953 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010954 cd ..
10955 rmdir conftest
10956 $rm conftest*
10957
10958fi
10959echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10960echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10961
10962
10963hard_links="nottested"
10964if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10965 # do not overwrite the value of need_locks provided by the user
10966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10967echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10968 hard_links=yes
10969 $rm conftest*
10970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10971 touch conftest.a
10972 ln conftest.a conftest.b 2>&5 || hard_links=no
10973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10974 echo "$as_me:$LINENO: result: $hard_links" >&5
10975echo "${ECHO_T}$hard_links" >&6
10976 if test "$hard_links" = no; then
10977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10978echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10979 need_locks=warn
10980 fi
10981else
10982 need_locks=no
10983fi
10984
10985echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10986echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10987
10988 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10989 case $host_os in
10990 aix4* | aix5*)
10991 # If we're using GNU nm, then we don't want the "-C" option.
10992 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10993 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10994 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'
10995 else
10996 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'
10997 fi
10998 ;;
10999 pw32*)
11000 export_symbols_cmds_CXX="$ltdll_cmds"
11001 ;;
11002 cygwin* | mingw*)
11003 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11004 ;;
11005 *)
11006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11007 ;;
11008 esac
11009
11010echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11011echo "${ECHO_T}$ld_shlibs_CXX" >&6
11012test "$ld_shlibs_CXX" = no && can_build_shared=no
11013
11014variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11015if test "$GCC" = yes; then
11016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11017fi
11018
11019#
11020# Do we need to explicitly link libc?
11021#
11022case "x$archive_cmds_need_lc_CXX" in
11023x|xyes)
11024 # Assume -lc should be added
11025 archive_cmds_need_lc_CXX=yes
11026
11027 if test "$enable_shared" = yes && test "$GCC" = yes; then
11028 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011029 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011030 # FIXME: we may have to deal with multi-command sequences.
11031 ;;
11032 '$CC '*)
11033 # Test whether the compiler implicitly links with -lc since on some
11034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11035 # to ld, don't add -lc before -lgcc.
11036 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11037echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11038 $rm conftest*
11039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11040
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } 2>conftest.err; then
11046 soname=conftest
11047 lib=conftest
11048 libobjs=conftest.$ac_objext
11049 deplibs=
11050 wl=$lt_prog_compiler_wl_CXX
11051 compiler_flags=-v
11052 linker_flags=-v
11053 verstring=
11054 output_objdir=.
11055 libname=conftest
11056 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11057 allow_undefined_flag_CXX=
11058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11059 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11063 then
11064 archive_cmds_need_lc_CXX=no
11065 else
11066 archive_cmds_need_lc_CXX=yes
11067 fi
11068 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11069 else
11070 cat conftest.err 1>&5
11071 fi
11072 $rm conftest*
11073 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11074echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11075 ;;
11076 esac
11077 fi
11078 ;;
11079esac
11080
John Criswell47fdd832003-07-14 16:52:07 +000011081echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11082echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11083library_names_spec=
11084libname_spec='lib$name'
11085soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011086shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011087postinstall_cmds=
11088postuninstall_cmds=
11089finish_cmds=
11090finish_eval=
11091shlibpath_var=
11092shlibpath_overrides_runpath=unknown
11093version_type=none
11094dynamic_linker="$host_os ld.so"
11095sys_lib_dlsearch_path_spec="/lib /usr/lib"
11096if test "$GCC" = yes; then
11097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11098 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11099 # if the path contains ";" then we assume it to be the separator
11100 # otherwise default to the standard path separator (i.e. ":") - it is
11101 # assumed that no part of a normal pathname contains ";" but that should
11102 # okay in the real world where ";" in dirpaths is itself problematic.
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
11107else
11108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11109fi
11110need_lib_prefix=unknown
11111hardcode_into_libs=no
11112
11113# when you set need_version to no, make sure it does not cause -set_version
11114# flags to be left without arguments
11115need_version=unknown
11116
11117case $host_os in
11118aix3*)
11119 version_type=linux
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11121 shlibpath_var=LIBPATH
11122
11123 # AIX 3 has no versioning support, so we append a major version to the name.
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 ;;
11126
11127aix4* | aix5*)
11128 version_type=linux
11129 need_lib_prefix=no
11130 need_version=no
11131 hardcode_into_libs=yes
11132 if test "$host_cpu" = ia64; then
11133 # AIX 5 supports IA64
11134 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 else
11137 # With GCC up to 2.95.x, collect2 would create an import file
11138 # for dependence libraries. The import file would start with
11139 # the line `#! .'. This would cause the generated library to
11140 # depend on `.', always an invalid library. This was fixed in
11141 # development snapshots of GCC prior to 3.0.
11142 case $host_os in
11143 aix4 | aix4.[01] | aix4.[01].*)
11144 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11145 echo ' yes '
11146 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11147 :
11148 else
11149 can_build_shared=no
11150 fi
11151 ;;
11152 esac
11153 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11154 # soname into executable. Probably we can add versioning support to
11155 # collect2, so additional links can be useful in future.
11156 if test "$aix_use_runtimelinking" = yes; then
11157 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158 # instead of lib<name>.a to let people know that these are not
11159 # typical AIX shared libraries.
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 else
11162 # We preserve .a as extension for shared libraries through AIX4.2
11163 # and later when we are not doing run time linking.
11164 library_names_spec='${libname}${release}.a $libname.a'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 fi
11167 shlibpath_var=LIBPATH
11168 fi
11169 ;;
11170
11171amigaos*)
11172 library_names_spec='$libname.ixlibrary $libname.a'
11173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011174 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'
John Criswell47fdd832003-07-14 16:52:07 +000011175 ;;
11176
11177beos*)
11178 library_names_spec='${libname}${shared_ext}'
11179 dynamic_linker="$host_os ld.so"
11180 shlibpath_var=LIBRARY_PATH
11181 ;;
11182
Reid Spencer2706f8c2004-09-19 23:53:36 +000011183bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000011184 version_type=linux
11185 need_version=no
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11191 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11192 # the default ld.so.conf also contains /usr/contrib/lib and
11193 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11194 # libtool to hard-code these into programs
11195 ;;
11196
11197cygwin* | mingw* | pw32*)
11198 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000011199 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011200 need_version=no
11201 need_lib_prefix=no
11202
11203 case $GCC,$host_os in
11204 yes,cygwin* | yes,mingw* | yes,pw32*)
11205 library_names_spec='$libname.dll.a'
11206 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000011207 postinstall_cmds='base_file=`basename \${file}`;
11208 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11209 dldir=$destdir/`dirname \$dlpath`;
11210 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000011211 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11213 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000011214 $rm \$dlpath'
11215 shlibpath_overrides_runpath=yes
11216
11217 case $host_os in
11218 cygwin*)
11219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011222 ;;
11223 mingw*)
11224 # MinGW DLLs use traditional 'lib' prefix
11225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11228 # It is most probably a Windows format PATH printed by
11229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11230 # path with ; separators, and with drive letters. We can handle the
11231 # drive letters (cygwin fileutils understands them), so leave them,
11232 # especially as we might pass files found there to a mingw objdump,
11233 # which wouldn't understand a cygwinified path. Ahh.
11234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11235 else
11236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11237 fi
11238 ;;
11239 pw32*)
11240 # pw32 DLLs use 'pw' prefix rather than 'lib'
11241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11242 ;;
11243 esac
11244 ;;
11245
11246 *)
11247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11248 ;;
11249 esac
11250 dynamic_linker='Win32 ld.exe'
11251 # FIXME: first we should search . and the directory the executable is in
11252 shlibpath_var=PATH
11253 ;;
11254
11255darwin* | rhapsody*)
11256 dynamic_linker="$host_os dyld"
11257 version_type=darwin
11258 need_lib_prefix=no
11259 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000011260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000011261 soname_spec='${libname}${release}${major}$shared_ext'
11262 shlibpath_overrides_runpath=yes
11263 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000011264 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000011265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011266 if test "$GCC" = yes; then
11267 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"`
11268 else
11269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011270 fi
11271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11272 ;;
11273
11274dgux*)
11275 version_type=linux
11276 need_lib_prefix=no
11277 need_version=no
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 ;;
11282
11283freebsd1*)
11284 dynamic_linker=no
11285 ;;
11286
Reid Spencer2706f8c2004-09-19 23:53:36 +000011287kfreebsd*-gnu)
11288 version_type=linux
11289 need_lib_prefix=no
11290 need_version=no
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=no
11295 hardcode_into_libs=yes
11296 dynamic_linker='GNU ld.so'
11297 ;;
11298
John Criswell47fdd832003-07-14 16:52:07 +000011299freebsd*)
11300 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11301 version_type=freebsd-$objformat
11302 case $version_type in
11303 freebsd-elf*)
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 need_version=no
11306 need_lib_prefix=no
11307 ;;
11308 freebsd-*)
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11310 need_version=yes
11311 ;;
11312 esac
11313 shlibpath_var=LD_LIBRARY_PATH
11314 case $host_os in
11315 freebsd2*)
11316 shlibpath_overrides_runpath=yes
11317 ;;
11318 freebsd3.01* | freebsdelf3.01*)
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11321 ;;
11322 *) # from 3.2 on
11323 shlibpath_overrides_runpath=no
11324 hardcode_into_libs=yes
11325 ;;
11326 esac
11327 ;;
11328
11329gnu*)
11330 version_type=linux
11331 need_lib_prefix=no
11332 need_version=no
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 hardcode_into_libs=yes
11337 ;;
11338
11339hpux9* | hpux10* | hpux11*)
11340 # Give a soname corresponding to the major version so that dld.sl refuses to
11341 # link against other versions.
11342 version_type=sunos
11343 need_lib_prefix=no
11344 need_version=no
11345 case "$host_cpu" in
11346 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011347 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000011348 hardcode_into_libs=yes
11349 dynamic_linker="$host_os dld.so"
11350 shlibpath_var=LD_LIBRARY_PATH
11351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 if test "X$HPUX_IA64_MODE" = X32; then
11355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356 else
11357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358 fi
11359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360 ;;
11361 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011362 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011363 hardcode_into_libs=yes
11364 dynamic_linker="$host_os dld.sl"
11365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 ;;
11372 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011373 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011374 dynamic_linker="$host_os dld.sl"
11375 shlibpath_var=SHLIB_PATH
11376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 ;;
11380 esac
11381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11382 postinstall_cmds='chmod 555 $lib'
11383 ;;
11384
11385irix5* | irix6* | nonstopux*)
11386 case $host_os in
11387 nonstopux*) version_type=nonstopux ;;
11388 *)
11389 if test "$lt_cv_prog_gnu_ld" = yes; then
11390 version_type=linux
11391 else
11392 version_type=irix
11393 fi ;;
11394 esac
11395 need_lib_prefix=no
11396 need_version=no
11397 soname_spec='${libname}${release}${shared_ext}$major'
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11399 case $host_os in
11400 irix5* | nonstopux*)
11401 libsuff= shlibsuff=
11402 ;;
11403 *)
11404 case $LD in # libtool.m4 will add one of these switches to LD
11405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11406 libsuff= shlibsuff= libmagic=32-bit;;
11407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11408 libsuff=32 shlibsuff=N32 libmagic=N32;;
11409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11411 *) libsuff= shlibsuff= libmagic=never-match;;
11412 esac
11413 ;;
11414 esac
11415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11416 shlibpath_overrides_runpath=no
11417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11419 hardcode_into_libs=yes
11420 ;;
11421
11422# No shared lib support for Linux oldld, aout, or coff.
11423linux*oldld* | linux*aout* | linux*coff*)
11424 dynamic_linker=no
11425 ;;
11426
11427# This must be Linux ELF.
11428linux*)
11429 version_type=linux
11430 need_lib_prefix=no
11431 need_version=no
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 # This implies no fast_install, which is unacceptable.
11438 # Some rework will be needed to allow for fast_install
11439 # before this can be enabled.
11440 hardcode_into_libs=yes
11441
Reid Spencer2706f8c2004-09-19 23:53:36 +000011442 # Append ld.so.conf contents to the search path
11443 if test -f /etc/ld.so.conf; then
11444 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11445 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11446 fi
11447
John Criswell47fdd832003-07-14 16:52:07 +000011448 # We used to test for /lib/ld.so.1 and disable shared libraries on
11449 # powerpc, because MkLinux only supported shared libraries with the
11450 # GNU dynamic linker. Since this was broken with cross compilers,
11451 # most powerpc-linux boxes support dynamic linking these days and
11452 # people can always --disable-shared, the test was removed, and we
11453 # assume the GNU/Linux dynamic linker is in use.
11454 dynamic_linker='GNU/Linux ld.so'
11455 ;;
11456
Reid Spencer2706f8c2004-09-19 23:53:36 +000011457knetbsd*-gnu)
11458 version_type=linux
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 hardcode_into_libs=yes
11466 dynamic_linker='GNU ld.so'
11467 ;;
11468
John Criswell47fdd832003-07-14 16:52:07 +000011469netbsd*)
11470 version_type=sunos
11471 need_lib_prefix=no
11472 need_version=no
11473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11476 dynamic_linker='NetBSD (a.out) ld.so'
11477 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000011479 soname_spec='${libname}${release}${shared_ext}$major'
11480 dynamic_linker='NetBSD ld.elf_so'
11481 fi
11482 shlibpath_var=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath=yes
11484 hardcode_into_libs=yes
11485 ;;
11486
11487newsos6)
11488 version_type=linux
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11492 ;;
11493
Reid Spencer2706f8c2004-09-19 23:53:36 +000011494nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011495 version_type=linux
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 ;;
11503
11504openbsd*)
11505 version_type=sunos
11506 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011507 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11512 case $host_os in
11513 openbsd2.[89] | openbsd2.[89].*)
11514 shlibpath_overrides_runpath=no
11515 ;;
11516 *)
11517 shlibpath_overrides_runpath=yes
11518 ;;
11519 esac
11520 else
11521 shlibpath_overrides_runpath=yes
11522 fi
11523 ;;
11524
11525os2*)
11526 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011527 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011528 need_lib_prefix=no
11529 library_names_spec='$libname${shared_ext} $libname.a'
11530 dynamic_linker='OS/2 ld.exe'
11531 shlibpath_var=LIBPATH
11532 ;;
11533
11534osf3* | osf4* | osf5*)
11535 version_type=osf
11536 need_lib_prefix=no
11537 need_version=no
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11543 ;;
11544
11545sco3.2v5*)
11546 version_type=osf
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 ;;
11551
11552solaris*)
11553 version_type=linux
11554 need_lib_prefix=no
11555 need_version=no
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 shlibpath_overrides_runpath=yes
11560 hardcode_into_libs=yes
11561 # ldd complains unless libraries are executable
11562 postinstall_cmds='chmod +x $lib'
11563 ;;
11564
11565sunos4*)
11566 version_type=sunos
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes
11571 if test "$with_gnu_ld" = yes; then
11572 need_lib_prefix=no
11573 fi
11574 need_version=yes
11575 ;;
11576
11577sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11578 version_type=linux
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 case $host_vendor in
11583 sni)
11584 shlibpath_overrides_runpath=no
11585 need_lib_prefix=no
11586 export_dynamic_flag_spec='${wl}-Blargedynsym'
11587 runpath_var=LD_RUN_PATH
11588 ;;
11589 siemens)
11590 need_lib_prefix=no
11591 ;;
11592 motorola)
11593 need_lib_prefix=no
11594 need_version=no
11595 shlibpath_overrides_runpath=no
11596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11597 ;;
11598 esac
11599 ;;
11600
11601sysv4*MP*)
11602 if test -d /usr/nec ;then
11603 version_type=linux
11604 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11605 soname_spec='$libname${shared_ext}.$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 fi
11608 ;;
11609
11610uts4*)
11611 version_type=linux
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11615 ;;
11616
11617*)
11618 dynamic_linker=no
11619 ;;
11620esac
11621echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11622echo "${ECHO_T}$dynamic_linker" >&6
11623test "$dynamic_linker" = no && can_build_shared=no
11624
Reid Spencer2706f8c2004-09-19 23:53:36 +000011625echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11626echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11627hardcode_action_CXX=
11628if test -n "$hardcode_libdir_flag_spec_CXX" || \
11629 test -n "$runpath_var_CXX" || \
11630 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11631
11632 # We can hardcode non-existant directories.
11633 if test "$hardcode_direct_CXX" != no &&
11634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11635 # have to relink, otherwise we might link with an installed library
11636 # when we should be linking with a yet-to-be-installed one
11637 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11638 test "$hardcode_minus_L_CXX" != no; then
11639 # Linking always hardcodes the temporary library directory.
11640 hardcode_action_CXX=relink
11641 else
11642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11643 hardcode_action_CXX=immediate
11644 fi
11645else
11646 # We cannot hardcode anything, or else we can only hardcode existing
11647 # directories.
11648 hardcode_action_CXX=unsupported
11649fi
11650echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11651echo "${ECHO_T}$hardcode_action_CXX" >&6
11652
11653if test "$hardcode_action_CXX" = relink; then
11654 # Fast installation is not supported
11655 enable_fast_install=no
11656elif test "$shlibpath_overrides_runpath" = yes ||
11657 test "$enable_shared" = no; then
11658 # Fast installation is not necessary
11659 enable_fast_install=needless
11660fi
11661
11662striplib=
11663old_striplib=
11664echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11665echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11666if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11667 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11668 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11669 echo "$as_me:$LINENO: result: yes" >&5
11670echo "${ECHO_T}yes" >&6
11671else
11672# FIXME - insert some real tests, host_os isn't really good enough
11673 case $host_os in
11674 darwin*)
11675 if test -n "$STRIP" ; then
11676 striplib="$STRIP -x"
11677 echo "$as_me:$LINENO: result: yes" >&5
11678echo "${ECHO_T}yes" >&6
11679 else
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682fi
11683 ;;
11684 *)
11685 echo "$as_me:$LINENO: result: no" >&5
11686echo "${ECHO_T}no" >&6
11687 ;;
11688 esac
11689fi
11690
John Criswell47fdd832003-07-14 16:52:07 +000011691if test "x$enable_dlopen" != xyes; then
11692 enable_dlopen=unknown
11693 enable_dlopen_self=unknown
11694 enable_dlopen_self_static=unknown
11695else
11696 lt_cv_dlopen=no
11697 lt_cv_dlopen_libs=
11698
11699 case $host_os in
11700 beos*)
11701 lt_cv_dlopen="load_add_on"
11702 lt_cv_dlopen_libs=
11703 lt_cv_dlopen_self=yes
11704 ;;
11705
11706 mingw* | pw32*)
11707 lt_cv_dlopen="LoadLibrary"
11708 lt_cv_dlopen_libs=
11709 ;;
11710
11711 cygwin*)
11712 lt_cv_dlopen="dlopen"
11713 lt_cv_dlopen_libs=
11714 ;;
11715
11716 darwin*)
11717 # if libdl is installed we need to link against it
11718 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11719echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11720if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 ac_check_lib_save_LIBS=$LIBS
11724LIBS="-ldl $LIBS"
11725cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011731
11732/* Override any gcc2 internal prototype to avoid an error. */
11733#ifdef __cplusplus
11734extern "C"
11735#endif
11736/* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011739int
11740main ()
11741{
11742dlopen ();
11743 ;
11744 return 0;
11745}
11746_ACEOF
11747rm -f conftest.$ac_objext conftest$ac_exeext
11748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011749 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011756 { ac_try='test -z "$ac_cxx_werror_flag"
11757 || test ! -s conftest.err'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; } &&
11763 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_cv_lib_dl_dlopen=yes
11770else
11771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011772sed 's/^/| /' conftest.$ac_ext >&5
11773
John Criswell47fdd832003-07-14 16:52:07 +000011774ac_cv_lib_dl_dlopen=no
11775fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011776rm -f conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011778LIBS=$ac_check_lib_save_LIBS
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11781echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11782if test $ac_cv_lib_dl_dlopen = yes; then
11783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11784else
11785
11786 lt_cv_dlopen="dyld"
11787 lt_cv_dlopen_libs=
11788 lt_cv_dlopen_self=yes
11789
11790fi
11791
11792 ;;
11793
11794 *)
11795 echo "$as_me:$LINENO: checking for shl_load" >&5
11796echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11797if test "${ac_cv_func_shl_load+set}" = set; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799else
11800 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011806/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808#define shl_load innocuous_shl_load
11809
John Criswell47fdd832003-07-14 16:52:07 +000011810/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011811 which can conflict with char shl_load (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011814
John Criswell0c38eaf2003-09-10 15:17:25 +000011815#ifdef __STDC__
11816# include <limits.h>
11817#else
11818# include <assert.h>
11819#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011820
11821#undef shl_load
11822
John Criswell47fdd832003-07-14 16:52:07 +000011823/* Override any gcc2 internal prototype to avoid an error. */
11824#ifdef __cplusplus
11825extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011826{
John Criswell47fdd832003-07-14 16:52:07 +000011827#endif
11828/* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11830char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011831/* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834#if defined (__stub_shl_load) || defined (__stub___shl_load)
11835choke me
11836#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011837char (*f) () = shl_load;
11838#endif
11839#ifdef __cplusplus
11840}
John Criswell47fdd832003-07-14 16:52:07 +000011841#endif
11842
John Criswell0c38eaf2003-09-10 15:17:25 +000011843int
11844main ()
11845{
11846return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011847 ;
11848 return 0;
11849}
11850_ACEOF
11851rm -f conftest.$ac_objext conftest$ac_exeext
11852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011853 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011860 { ac_try='test -z "$ac_cxx_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_func_shl_load=yes
11874else
11875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011876sed 's/^/| /' conftest.$ac_ext >&5
11877
John Criswell47fdd832003-07-14 16:52:07 +000011878ac_cv_func_shl_load=no
11879fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011880rm -f conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011882fi
11883echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11884echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11885if test $ac_cv_func_shl_load = yes; then
11886 lt_cv_dlopen="shl_load"
11887else
11888 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11889echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11890if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892else
11893 ac_check_lib_save_LIBS=$LIBS
11894LIBS="-ldld $LIBS"
11895cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011901
11902/* Override any gcc2 internal prototype to avoid an error. */
11903#ifdef __cplusplus
11904extern "C"
11905#endif
11906/* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */
11908char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011909int
11910main ()
11911{
11912shl_load ();
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917rm -f conftest.$ac_objext conftest$ac_exeext
11918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011919 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011920 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011926 { ac_try='test -z "$ac_cxx_werror_flag"
11927 || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_cv_lib_dld_shl_load=yes
11940else
11941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011942sed 's/^/| /' conftest.$ac_ext >&5
11943
John Criswell47fdd832003-07-14 16:52:07 +000011944ac_cv_lib_dld_shl_load=no
11945fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011946rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011948LIBS=$ac_check_lib_save_LIBS
11949fi
11950echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11951echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11952if test $ac_cv_lib_dld_shl_load = yes; then
11953 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11954else
11955 echo "$as_me:$LINENO: checking for dlopen" >&5
11956echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11957if test "${ac_cv_func_dlopen+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959else
11960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011966/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11968#define dlopen innocuous_dlopen
11969
John Criswell47fdd832003-07-14 16:52:07 +000011970/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011971 which can conflict with char dlopen (); below.
11972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11973 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011974
John Criswell0c38eaf2003-09-10 15:17:25 +000011975#ifdef __STDC__
11976# include <limits.h>
11977#else
11978# include <assert.h>
11979#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011980
11981#undef dlopen
11982
John Criswell47fdd832003-07-14 16:52:07 +000011983/* Override any gcc2 internal prototype to avoid an error. */
11984#ifdef __cplusplus
11985extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011986{
John Criswell47fdd832003-07-14 16:52:07 +000011987#endif
11988/* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11990char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011991/* The GNU C library defines this for functions which it implements
11992 to always fail with ENOSYS. Some functions are actually named
11993 something starting with __ and the normal name is an alias. */
11994#if defined (__stub_dlopen) || defined (__stub___dlopen)
11995choke me
11996#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011997char (*f) () = dlopen;
11998#endif
11999#ifdef __cplusplus
12000}
John Criswell47fdd832003-07-14 16:52:07 +000012001#endif
12002
John Criswell0c38eaf2003-09-10 15:17:25 +000012003int
12004main ()
12005{
12006return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext conftest$ac_exeext
12012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012013 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012020 { ac_try='test -z "$ac_cxx_werror_flag"
12021 || test ! -s conftest.err'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 ac_cv_func_dlopen=yes
12034else
12035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012036sed 's/^/| /' conftest.$ac_ext >&5
12037
John Criswell47fdd832003-07-14 16:52:07 +000012038ac_cv_func_dlopen=no
12039fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012040rm -f conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012042fi
12043echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12044echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12045if test $ac_cv_func_dlopen = yes; then
12046 lt_cv_dlopen="dlopen"
12047else
12048 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12049echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12050if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053 ac_check_lib_save_LIBS=$LIBS
12054LIBS="-ldl $LIBS"
12055cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012061
12062/* Override any gcc2 internal prototype to avoid an error. */
12063#ifdef __cplusplus
12064extern "C"
12065#endif
12066/* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12068char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012069int
12070main ()
12071{
12072dlopen ();
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext conftest$ac_exeext
12078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012079 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012080 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012086 { ac_try='test -z "$ac_cxx_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_lib_dl_dlopen=yes
12100else
12101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012102sed 's/^/| /' conftest.$ac_ext >&5
12103
John Criswell47fdd832003-07-14 16:52:07 +000012104ac_cv_lib_dl_dlopen=no
12105fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012106rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012108LIBS=$ac_check_lib_save_LIBS
12109fi
12110echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12111echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12112if test $ac_cv_lib_dl_dlopen = yes; then
12113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12114else
12115 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12116echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12117if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 ac_check_lib_save_LIBS=$LIBS
12121LIBS="-lsvld $LIBS"
12122cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012128
12129/* Override any gcc2 internal prototype to avoid an error. */
12130#ifdef __cplusplus
12131extern "C"
12132#endif
12133/* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012136int
12137main ()
12138{
12139dlopen ();
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext conftest$ac_exeext
12145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012146 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012153 { ac_try='test -z "$ac_cxx_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_lib_svld_dlopen=yes
12167else
12168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012169sed 's/^/| /' conftest.$ac_ext >&5
12170
John Criswell47fdd832003-07-14 16:52:07 +000012171ac_cv_lib_svld_dlopen=no
12172fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012173rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012175LIBS=$ac_check_lib_save_LIBS
12176fi
12177echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12178echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12179if test $ac_cv_lib_svld_dlopen = yes; then
12180 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12181else
12182 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12183echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12184if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 ac_check_lib_save_LIBS=$LIBS
12188LIBS="-ldld $LIBS"
12189cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012190/* confdefs.h. */
12191_ACEOF
12192cat confdefs.h >>conftest.$ac_ext
12193cat >>conftest.$ac_ext <<_ACEOF
12194/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012195
12196/* Override any gcc2 internal prototype to avoid an error. */
12197#ifdef __cplusplus
12198extern "C"
12199#endif
12200/* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012203int
12204main ()
12205{
12206dld_link ();
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext conftest$ac_exeext
12212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012213 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012220 { ac_try='test -z "$ac_cxx_werror_flag"
12221 || test ! -s conftest.err'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; } &&
12227 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_lib_dld_dld_link=yes
12234else
12235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012236sed 's/^/| /' conftest.$ac_ext >&5
12237
John Criswell47fdd832003-07-14 16:52:07 +000012238ac_cv_lib_dld_dld_link=no
12239fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012240rm -f conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012242LIBS=$ac_check_lib_save_LIBS
12243fi
12244echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12245echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12246if test $ac_cv_lib_dld_dld_link = yes; then
12247 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12248fi
12249
12250
12251fi
12252
12253
12254fi
12255
12256
12257fi
12258
12259
12260fi
12261
12262
12263fi
12264
12265 ;;
12266 esac
12267
12268 if test "x$lt_cv_dlopen" != xno; then
12269 enable_dlopen=yes
12270 else
12271 enable_dlopen=no
12272 fi
12273
12274 case $lt_cv_dlopen in
12275 dlopen)
12276 save_CPPFLAGS="$CPPFLAGS"
12277 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12278
12279 save_LDFLAGS="$LDFLAGS"
12280 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12281
12282 save_LIBS="$LIBS"
12283 LIBS="$lt_cv_dlopen_libs $LIBS"
12284
12285 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12286echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12287if test "${lt_cv_dlopen_self+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289else
12290 if test "$cross_compiling" = yes; then :
12291 lt_cv_dlopen_self=cross
12292else
12293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12294 lt_status=$lt_dlunknown
12295 cat > conftest.$ac_ext <<EOF
Reid Spencer8b93e7a2004-09-21 17:14:44 +000012296#line 12296 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012297#include "confdefs.h"
12298
12299#if HAVE_DLFCN_H
12300#include <dlfcn.h>
12301#endif
12302
12303#include <stdio.h>
12304
12305#ifdef RTLD_GLOBAL
12306# define LT_DLGLOBAL RTLD_GLOBAL
12307#else
12308# ifdef DL_GLOBAL
12309# define LT_DLGLOBAL DL_GLOBAL
12310# else
12311# define LT_DLGLOBAL 0
12312# endif
12313#endif
12314
12315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12316 find out it does not work in some platform. */
12317#ifndef LT_DLLAZY_OR_NOW
12318# ifdef RTLD_LAZY
12319# define LT_DLLAZY_OR_NOW RTLD_LAZY
12320# else
12321# ifdef DL_LAZY
12322# define LT_DLLAZY_OR_NOW DL_LAZY
12323# else
12324# ifdef RTLD_NOW
12325# define LT_DLLAZY_OR_NOW RTLD_NOW
12326# else
12327# ifdef DL_NOW
12328# define LT_DLLAZY_OR_NOW DL_NOW
12329# else
12330# define LT_DLLAZY_OR_NOW 0
12331# endif
12332# endif
12333# endif
12334# endif
12335#endif
12336
12337#ifdef __cplusplus
12338extern "C" void exit (int);
12339#endif
12340
12341void fnord() { int i=42;}
12342int main ()
12343{
12344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12345 int status = $lt_dlunknown;
12346
12347 if (self)
12348 {
12349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12350 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12351 /* dlclose (self); */
12352 }
12353
12354 exit (status);
12355}
12356EOF
12357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12362 (./conftest; exit; ) 2>/dev/null
12363 lt_status=$?
12364 case x$lt_status in
12365 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12366 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12367 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12368 esac
12369 else :
12370 # compilation failed
12371 lt_cv_dlopen_self=no
12372 fi
12373fi
12374rm -fr conftest*
12375
12376
12377fi
12378echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12379echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12380
12381 if test "x$lt_cv_dlopen_self" = xyes; then
12382 LDFLAGS="$LDFLAGS $link_static_flag"
12383 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12384echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12385if test "${lt_cv_dlopen_self_static+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12387else
12388 if test "$cross_compiling" = yes; then :
12389 lt_cv_dlopen_self_static=cross
12390else
12391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12392 lt_status=$lt_dlunknown
12393 cat > conftest.$ac_ext <<EOF
Reid Spencer8b93e7a2004-09-21 17:14:44 +000012394#line 12394 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012395#include "confdefs.h"
12396
12397#if HAVE_DLFCN_H
12398#include <dlfcn.h>
12399#endif
12400
12401#include <stdio.h>
12402
12403#ifdef RTLD_GLOBAL
12404# define LT_DLGLOBAL RTLD_GLOBAL
12405#else
12406# ifdef DL_GLOBAL
12407# define LT_DLGLOBAL DL_GLOBAL
12408# else
12409# define LT_DLGLOBAL 0
12410# endif
12411#endif
12412
12413/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12414 find out it does not work in some platform. */
12415#ifndef LT_DLLAZY_OR_NOW
12416# ifdef RTLD_LAZY
12417# define LT_DLLAZY_OR_NOW RTLD_LAZY
12418# else
12419# ifdef DL_LAZY
12420# define LT_DLLAZY_OR_NOW DL_LAZY
12421# else
12422# ifdef RTLD_NOW
12423# define LT_DLLAZY_OR_NOW RTLD_NOW
12424# else
12425# ifdef DL_NOW
12426# define LT_DLLAZY_OR_NOW DL_NOW
12427# else
12428# define LT_DLLAZY_OR_NOW 0
12429# endif
12430# endif
12431# endif
12432# endif
12433#endif
12434
12435#ifdef __cplusplus
12436extern "C" void exit (int);
12437#endif
12438
12439void fnord() { int i=42;}
12440int main ()
12441{
12442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12443 int status = $lt_dlunknown;
12444
12445 if (self)
12446 {
12447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12448 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12449 /* dlclose (self); */
12450 }
12451
12452 exit (status);
12453}
12454EOF
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) 2>/dev/null
12461 lt_status=$?
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12465 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12466 esac
12467 else :
12468 # compilation failed
12469 lt_cv_dlopen_self_static=no
12470 fi
12471fi
12472rm -fr conftest*
12473
12474
12475fi
12476echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12477echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12478 fi
12479
12480 CPPFLAGS="$save_CPPFLAGS"
12481 LDFLAGS="$save_LDFLAGS"
12482 LIBS="$save_LIBS"
12483 ;;
12484 esac
12485
12486 case $lt_cv_dlopen_self in
12487 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12488 *) enable_dlopen_self=unknown ;;
12489 esac
12490
12491 case $lt_cv_dlopen_self_static in
12492 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12493 *) enable_dlopen_self_static=unknown ;;
12494 esac
12495fi
12496
12497
12498# The else clause should only fire when bootstrapping the
12499# libtool distribution, otherwise you forgot to ship ltmain.sh
12500# with your package, and you will get complaints that there are
12501# no rules to generate ltmain.sh.
12502if test -f "$ltmain"; then
12503 # See if we are running on zsh, and set the options which allow our commands through
12504 # without removal of \ escapes.
12505 if test -n "${ZSH_VERSION+set}" ; then
12506 setopt NO_GLOB_SUBST
12507 fi
12508 # Now quote all the things that may contain metacharacters while being
12509 # careful not to overquote the AC_SUBSTed values. We take copies of the
12510 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012511 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12512 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012513 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12514 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12515 deplibs_check_method reload_flag reload_cmds need_locks \
12516 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12517 lt_cv_sys_global_symbol_to_c_name_address \
12518 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12519 old_postinstall_cmds old_postuninstall_cmds \
12520 compiler_CXX \
12521 CC_CXX \
12522 LD_CXX \
12523 lt_prog_compiler_wl_CXX \
12524 lt_prog_compiler_pic_CXX \
12525 lt_prog_compiler_static_CXX \
12526 lt_prog_compiler_no_builtin_flag_CXX \
12527 export_dynamic_flag_spec_CXX \
12528 thread_safe_flag_spec_CXX \
12529 whole_archive_flag_spec_CXX \
12530 enable_shared_with_static_runtimes_CXX \
12531 old_archive_cmds_CXX \
12532 old_archive_from_new_cmds_CXX \
12533 predep_objects_CXX \
12534 postdep_objects_CXX \
12535 predeps_CXX \
12536 postdeps_CXX \
12537 compiler_lib_search_path_CXX \
12538 archive_cmds_CXX \
12539 archive_expsym_cmds_CXX \
12540 postinstall_cmds_CXX \
12541 postuninstall_cmds_CXX \
12542 old_archive_from_expsyms_cmds_CXX \
12543 allow_undefined_flag_CXX \
12544 no_undefined_flag_CXX \
12545 export_symbols_cmds_CXX \
12546 hardcode_libdir_flag_spec_CXX \
12547 hardcode_libdir_flag_spec_ld_CXX \
12548 hardcode_libdir_separator_CXX \
12549 hardcode_automatic_CXX \
12550 module_cmds_CXX \
12551 module_expsym_cmds_CXX \
12552 lt_cv_prog_compiler_c_o_CXX \
12553 exclude_expsyms_CXX \
12554 include_expsyms_CXX; do
12555
12556 case $var in
12557 old_archive_cmds_CXX | \
12558 old_archive_from_new_cmds_CXX | \
12559 archive_cmds_CXX | \
12560 archive_expsym_cmds_CXX | \
12561 module_cmds_CXX | \
12562 module_expsym_cmds_CXX | \
12563 old_archive_from_expsyms_cmds_CXX | \
12564 export_symbols_cmds_CXX | \
12565 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12566 postinstall_cmds | postuninstall_cmds | \
12567 old_postinstall_cmds | old_postuninstall_cmds | \
12568 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12569 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000012571 ;;
12572 *)
12573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12574 ;;
12575 esac
12576 done
12577
12578 case $lt_echo in
12579 *'\$0 --fallback-echo"')
12580 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12581 ;;
12582 esac
12583
12584cfgfile="$ofile"
12585
12586 cat <<__EOF__ >> "$cfgfile"
12587# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12588
12589# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12590
12591# Shell to use when invoking shell scripts.
12592SHELL=$lt_SHELL
12593
12594# Whether or not to build shared libraries.
12595build_libtool_libs=$enable_shared
12596
12597# Whether or not to build static libraries.
12598build_old_libs=$enable_static
12599
12600# Whether or not to add -lc for building shared libraries.
12601build_libtool_need_lc=$archive_cmds_need_lc_CXX
12602
12603# Whether or not to disallow shared libs when runtime libs are static
12604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12605
12606# Whether or not to optimize for fast installation.
12607fast_install=$enable_fast_install
12608
12609# The host system.
12610host_alias=$host_alias
12611host=$host
12612
12613# An echo program that does not interpret backslashes.
12614echo=$lt_echo
12615
12616# The archiver.
12617AR=$lt_AR
12618AR_FLAGS=$lt_AR_FLAGS
12619
12620# A C compiler.
12621LTCC=$lt_LTCC
12622
12623# A language-specific compiler.
12624CC=$lt_compiler_CXX
12625
12626# Is the compiler the GNU C compiler?
12627with_gcc=$GCC_CXX
12628
12629# An ERE matcher.
12630EGREP=$lt_EGREP
12631
12632# The linker used to build libraries.
12633LD=$lt_LD_CXX
12634
12635# Whether we need hard or soft links.
12636LN_S=$lt_LN_S
12637
12638# A BSD-compatible nm program.
12639NM=$lt_NM
12640
12641# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000012642STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012643
12644# Used to examine libraries when file_magic_cmd begins "file"
12645MAGIC_CMD=$MAGIC_CMD
12646
12647# Used on cygwin: DLL creation program.
12648DLLTOOL="$DLLTOOL"
12649
12650# Used on cygwin: object dumper.
12651OBJDUMP="$OBJDUMP"
12652
12653# Used on cygwin: assembler.
12654AS="$AS"
12655
12656# The name of the directory that contains temporary libtool files.
12657objdir=$objdir
12658
12659# How to create reloadable object files.
12660reload_flag=$lt_reload_flag
12661reload_cmds=$lt_reload_cmds
12662
12663# How to pass a linker flag through the compiler.
12664wl=$lt_lt_prog_compiler_wl_CXX
12665
12666# Object file suffix (normally "o").
12667objext="$ac_objext"
12668
12669# Old archive suffix (normally "a").
12670libext="$libext"
12671
12672# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000012673shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000012674
12675# Executable file suffix (normally "").
12676exeext="$exeext"
12677
12678# Additional compiler flags for building library objects.
12679pic_flag=$lt_lt_prog_compiler_pic_CXX
12680pic_mode=$pic_mode
12681
12682# What is the maximum length of a command?
12683max_cmd_len=$lt_cv_sys_max_cmd_len
12684
12685# Does compiler simultaneously support -c and -o options?
12686compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12687
12688# Must we lock files when doing compilation ?
12689need_locks=$lt_need_locks
12690
12691# Do we need the lib prefix for modules?
12692need_lib_prefix=$need_lib_prefix
12693
12694# Do we need a version for libraries?
12695need_version=$need_version
12696
12697# Whether dlopen is supported.
12698dlopen_support=$enable_dlopen
12699
12700# Whether dlopen of programs is supported.
12701dlopen_self=$enable_dlopen_self
12702
12703# Whether dlopen of statically linked programs is supported.
12704dlopen_self_static=$enable_dlopen_self_static
12705
12706# Compiler flag to prevent dynamic linking.
12707link_static_flag=$lt_lt_prog_compiler_static_CXX
12708
12709# Compiler flag to turn off builtin functions.
12710no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12711
12712# Compiler flag to allow reflexive dlopens.
12713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12714
12715# Compiler flag to generate shared objects directly from archives.
12716whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12717
12718# Compiler flag to generate thread-safe objects.
12719thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12720
12721# Library versioning type.
12722version_type=$version_type
12723
12724# Format of library name prefix.
12725libname_spec=$lt_libname_spec
12726
12727# List of archive names. First name is the real one, the rest are links.
12728# The last name is the one that the linker finds with -lNAME.
12729library_names_spec=$lt_library_names_spec
12730
12731# The coded name of the library, if different from the real name.
12732soname_spec=$lt_soname_spec
12733
12734# Commands used to build and install an old-style archive.
12735RANLIB=$lt_RANLIB
12736old_archive_cmds=$lt_old_archive_cmds_CXX
12737old_postinstall_cmds=$lt_old_postinstall_cmds
12738old_postuninstall_cmds=$lt_old_postuninstall_cmds
12739
12740# Create an old-style archive from a shared archive.
12741old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12742
12743# Create a temporary old-style archive to link instead of a shared archive.
12744old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12745
12746# Commands used to build and install a shared archive.
12747archive_cmds=$lt_archive_cmds_CXX
12748archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12749postinstall_cmds=$lt_postinstall_cmds
12750postuninstall_cmds=$lt_postuninstall_cmds
12751
12752# Commands used to build a loadable module (assumed same as above if empty)
12753module_cmds=$lt_module_cmds_CXX
12754module_expsym_cmds=$lt_module_expsym_cmds_CXX
12755
12756# Commands to strip libraries.
12757old_striplib=$lt_old_striplib
12758striplib=$lt_striplib
12759
12760# Dependencies to place before the objects being linked to create a
12761# shared library.
12762predep_objects=$lt_predep_objects_CXX
12763
12764# Dependencies to place after the objects being linked to create a
12765# shared library.
12766postdep_objects=$lt_postdep_objects_CXX
12767
12768# Dependencies to place before the objects being linked to create a
12769# shared library.
12770predeps=$lt_predeps_CXX
12771
12772# Dependencies to place after the objects being linked to create a
12773# shared library.
12774postdeps=$lt_postdeps_CXX
12775
12776# The library search path used internally by the compiler when linking
12777# a shared library.
12778compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12779
12780# Method to check whether dependent libraries are shared objects.
12781deplibs_check_method=$lt_deplibs_check_method
12782
12783# Command to use when deplibs_check_method == file_magic.
12784file_magic_cmd=$lt_file_magic_cmd
12785
12786# Flag that allows shared libraries with undefined symbols to be built.
12787allow_undefined_flag=$lt_allow_undefined_flag_CXX
12788
12789# Flag that forces no undefined symbols.
12790no_undefined_flag=$lt_no_undefined_flag_CXX
12791
12792# Commands used to finish a libtool library installation in a directory.
12793finish_cmds=$lt_finish_cmds
12794
12795# Same as above, but a single script fragment to be evaled but not shown.
12796finish_eval=$lt_finish_eval
12797
12798# Take the output of nm and produce a listing of raw symbols and C names.
12799global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12800
12801# Transform the output of nm in a proper C declaration
12802global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12803
12804# Transform the output of nm in a C name address pair
12805global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12806
12807# This is the shared library runtime path variable.
12808runpath_var=$runpath_var
12809
12810# This is the shared library path variable.
12811shlibpath_var=$shlibpath_var
12812
12813# Is shlibpath searched before the hard-coded library search path?
12814shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12815
12816# How to hardcode a shared library path into an executable.
12817hardcode_action=$hardcode_action_CXX
12818
12819# Whether we should hardcode library paths into libraries.
12820hardcode_into_libs=$hardcode_into_libs
12821
12822# Flag to hardcode \$libdir into a binary during linking.
12823# This must work even if \$libdir does not exist.
12824hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12825
12826# If ld is used when linking, flag to hardcode \$libdir into
12827# a binary during linking. This must work even if \$libdir does
12828# not exist.
12829hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12830
12831# Whether we need a single -rpath flag with a separated argument.
12832hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12833
12834# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12835# resulting binary.
12836hardcode_direct=$hardcode_direct_CXX
12837
12838# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12839# resulting binary.
12840hardcode_minus_L=$hardcode_minus_L_CXX
12841
12842# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12843# the resulting binary.
12844hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12845
12846# Set to yes if building a shared library automatically hardcodes DIR into the library
12847# and all subsequent libraries and executables linked against it.
12848hardcode_automatic=$hardcode_automatic_CXX
12849
12850# Variables whose values should be saved in libtool wrapper scripts and
12851# restored at relink time.
12852variables_saved_for_relink="$variables_saved_for_relink"
12853
12854# Whether libtool must link a program against all its dependency libraries.
12855link_all_deplibs=$link_all_deplibs_CXX
12856
12857# Compile-time system search path for libraries
12858sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12859
12860# Run-time system search path for libraries
12861sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12862
12863# Fix the shell variable \$srcfile for the compiler.
12864fix_srcfile_path="$fix_srcfile_path_CXX"
12865
12866# Set to yes if exported symbols are required.
12867always_export_symbols=$always_export_symbols_CXX
12868
12869# The commands to list exported symbols.
12870export_symbols_cmds=$lt_export_symbols_cmds_CXX
12871
12872# The commands to extract the exported symbol list from a shared archive.
12873extract_expsyms_cmds=$lt_extract_expsyms_cmds
12874
12875# Symbols that should not be listed in the preloaded symbols.
12876exclude_expsyms=$lt_exclude_expsyms_CXX
12877
12878# Symbols that must always be exported.
12879include_expsyms=$lt_include_expsyms_CXX
12880
12881# ### END LIBTOOL TAG CONFIG: $tagname
12882
12883__EOF__
12884
12885
12886else
12887 # If there is no Makefile yet, we rely on a make rule to execute
12888 # `config.status --recheck' to rerun these tests and create the
12889 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012890 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12891 if test -f "$ltmain_in"; then
12892 test -f Makefile && make "$ltmain"
12893 fi
John Criswell47fdd832003-07-14 16:52:07 +000012894fi
12895
12896
12897ac_ext=c
12898ac_cpp='$CPP $CPPFLAGS'
12899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901ac_compiler_gnu=$ac_cv_c_compiler_gnu
12902
12903CC=$lt_save_CC
12904LDCXX=$LD
12905LD=$lt_save_LD
12906GCC=$lt_save_GCC
12907with_gnu_ldcxx=$with_gnu_ld
12908with_gnu_ld=$lt_save_with_gnu_ld
12909lt_cv_path_LDCXX=$lt_cv_path_LD
12910lt_cv_path_LD=$lt_save_path_LD
12911lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12912lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12913
12914 else
12915 tagname=""
12916 fi
12917 ;;
12918
12919 F77)
12920 if test -n "$F77" && test "X$F77" != "Xno"; then
12921
12922ac_ext=f
12923ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12924ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12926
12927
12928archive_cmds_need_lc_F77=no
12929allow_undefined_flag_F77=
12930always_export_symbols_F77=no
12931archive_expsym_cmds_F77=
12932export_dynamic_flag_spec_F77=
12933hardcode_direct_F77=no
12934hardcode_libdir_flag_spec_F77=
12935hardcode_libdir_flag_spec_ld_F77=
12936hardcode_libdir_separator_F77=
12937hardcode_minus_L_F77=no
12938hardcode_automatic_F77=no
12939module_cmds_F77=
12940module_expsym_cmds_F77=
12941link_all_deplibs_F77=unknown
12942old_archive_cmds_F77=$old_archive_cmds
12943no_undefined_flag_F77=
12944whole_archive_flag_spec_F77=
12945enable_shared_with_static_runtimes_F77=no
12946
12947# Source file extension for f77 test sources.
12948ac_ext=f
12949
12950# Object file extension for compiled f77 test sources.
12951objext=o
12952objext_F77=$objext
12953
12954# Code to be used in simple compile tests
12955lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12956
12957# Code to be used in simple link tests
12958lt_simple_link_test_code=" program t\n end\n"
12959
12960# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12961
12962# If no C compiler was specified, use CC.
12963LTCC=${LTCC-"$CC"}
12964
12965# Allow CC to be a program name with arguments.
12966compiler=$CC
12967
12968
12969# Allow CC to be a program name with arguments.
12970lt_save_CC="$CC"
12971CC=${F77-"f77"}
12972compiler=$CC
12973compiler_F77=$CC
12974cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12975
12976echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12977echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12978echo "$as_me:$LINENO: result: $can_build_shared" >&5
12979echo "${ECHO_T}$can_build_shared" >&6
12980
12981echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12982echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12983test "$can_build_shared" = "no" && enable_shared=no
12984
12985# On AIX, shared libraries and static libraries use the same namespace, and
12986# are all built from PIC.
12987case "$host_os" in
12988aix3*)
12989 test "$enable_shared" = yes && enable_static=no
12990 if test -n "$RANLIB"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012991 archive_cmds="$archive_cmds;\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000012992 postinstall_cmds='$RANLIB $lib'
12993 fi
12994 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012995aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000012996 test "$enable_shared" = yes && enable_static=no
12997 ;;
12998esac
12999echo "$as_me:$LINENO: result: $enable_shared" >&5
13000echo "${ECHO_T}$enable_shared" >&6
13001
13002echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13003echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13004# Make sure either enable_shared or enable_static is yes.
13005test "$enable_shared" = yes || enable_static=yes
13006echo "$as_me:$LINENO: result: $enable_static" >&5
13007echo "${ECHO_T}$enable_static" >&6
13008
13009test "$ld_shlibs_F77" = no && can_build_shared=no
13010
13011GCC_F77="$G77"
13012LD_F77="$LD"
13013
13014lt_prog_compiler_wl_F77=
13015lt_prog_compiler_pic_F77=
13016lt_prog_compiler_static_F77=
13017
13018echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13019echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13020
13021 if test "$GCC" = yes; then
13022 lt_prog_compiler_wl_F77='-Wl,'
13023 lt_prog_compiler_static_F77='-static'
13024
13025 case $host_os in
13026 aix*)
13027 # All AIX code is PIC.
13028 if test "$host_cpu" = ia64; then
13029 # AIX 5 now supports IA64 processor
13030 lt_prog_compiler_static_F77='-Bstatic'
13031 fi
13032 ;;
13033
13034 amigaos*)
13035 # FIXME: we need at least 68020 code to build shared libraries, but
13036 # adding the `-m68020' flag to GCC prevents building anything better,
13037 # like `-m68040'.
13038 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13039 ;;
13040
13041 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13042 # PIC is the default for these OSes.
13043 ;;
13044
13045 mingw* | pw32* | os2*)
13046 # This hack is so that the source file can tell whether it is being
13047 # built for inclusion in a dll (and should export symbols for example).
13048 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13049 ;;
13050
13051 darwin* | rhapsody*)
13052 # PIC is the default on this platform
13053 # Common symbols not allowed in MH_DYLIB files
13054 lt_prog_compiler_pic_F77='-fno-common'
13055 ;;
13056
13057 msdosdjgpp*)
13058 # Just because we use GCC doesn't mean we suddenly get shared libraries
13059 # on systems that don't support them.
13060 lt_prog_compiler_can_build_shared_F77=no
13061 enable_shared=no
13062 ;;
13063
13064 sysv4*MP*)
13065 if test -d /usr/nec; then
13066 lt_prog_compiler_pic_F77=-Kconform_pic
13067 fi
13068 ;;
13069
13070 hpux*)
13071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13072 # not for PA HP-UX.
13073 case "$host_cpu" in
13074 hppa*64*|ia64*)
13075 # +Z the default
13076 ;;
13077 *)
13078 lt_prog_compiler_pic_F77='-fPIC'
13079 ;;
13080 esac
13081 ;;
13082
13083 *)
13084 lt_prog_compiler_pic_F77='-fPIC'
13085 ;;
13086 esac
13087 else
13088 # PORTME Check for flag to pass linker flags through the system compiler.
13089 case $host_os in
13090 aix*)
13091 lt_prog_compiler_wl_F77='-Wl,'
13092 if test "$host_cpu" = ia64; then
13093 # AIX 5 now supports IA64 processor
13094 lt_prog_compiler_static_F77='-Bstatic'
13095 else
13096 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13097 fi
13098 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013099 darwin*)
13100 # PIC is the default on this platform
13101 # Common symbols not allowed in MH_DYLIB files
13102 case "$cc_basename" in
13103 xlc*)
13104 lt_prog_compiler_pic_F77='-qnocommon'
13105 lt_prog_compiler_wl_F77='-Wl,'
13106 ;;
13107 esac
13108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013109
13110 mingw* | pw32* | os2*)
13111 # This hack is so that the source file can tell whether it is being
13112 # built for inclusion in a dll (and should export symbols for example).
13113 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13114 ;;
13115
13116 hpux9* | hpux10* | hpux11*)
13117 lt_prog_compiler_wl_F77='-Wl,'
13118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13119 # not for PA HP-UX.
13120 case "$host_cpu" in
13121 hppa*64*|ia64*)
13122 # +Z the default
13123 ;;
13124 *)
13125 lt_prog_compiler_pic_F77='+Z'
13126 ;;
13127 esac
13128 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13129 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13130 ;;
13131
13132 irix5* | irix6* | nonstopux*)
13133 lt_prog_compiler_wl_F77='-Wl,'
13134 # PIC (with -KPIC) is the default.
13135 lt_prog_compiler_static_F77='-non_shared'
13136 ;;
13137
13138 newsos6)
13139 lt_prog_compiler_pic_F77='-KPIC'
13140 lt_prog_compiler_static_F77='-Bstatic'
13141 ;;
13142
13143 linux*)
13144 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013145 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013146 lt_prog_compiler_wl_F77='-Wl,'
13147 lt_prog_compiler_pic_F77='-KPIC'
13148 lt_prog_compiler_static_F77='-static'
13149 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013150 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013151 lt_prog_compiler_wl_F77='-Wl,'
13152 # All Alpha code is PIC.
13153 lt_prog_compiler_static_F77='-non_shared'
13154 ;;
13155 esac
13156 ;;
13157
13158 osf3* | osf4* | osf5*)
13159 lt_prog_compiler_wl_F77='-Wl,'
13160 # All OSF/1 code is PIC.
13161 lt_prog_compiler_static_F77='-non_shared'
13162 ;;
13163
13164 sco3.2v5*)
13165 lt_prog_compiler_pic_F77='-Kpic'
13166 lt_prog_compiler_static_F77='-dn'
13167 ;;
13168
13169 solaris*)
13170 lt_prog_compiler_wl_F77='-Wl,'
13171 lt_prog_compiler_pic_F77='-KPIC'
13172 lt_prog_compiler_static_F77='-Bstatic'
13173 ;;
13174
13175 sunos4*)
13176 lt_prog_compiler_wl_F77='-Qoption ld '
13177 lt_prog_compiler_pic_F77='-PIC'
13178 lt_prog_compiler_static_F77='-Bstatic'
13179 ;;
13180
13181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13182 lt_prog_compiler_wl_F77='-Wl,'
13183 lt_prog_compiler_pic_F77='-KPIC'
13184 lt_prog_compiler_static_F77='-Bstatic'
13185 ;;
13186
13187 sysv4*MP*)
13188 if test -d /usr/nec ;then
13189 lt_prog_compiler_pic_F77='-Kconform_pic'
13190 lt_prog_compiler_static_F77='-Bstatic'
13191 fi
13192 ;;
13193
13194 uts4*)
13195 lt_prog_compiler_pic_F77='-pic'
13196 lt_prog_compiler_static_F77='-Bstatic'
13197 ;;
13198
13199 *)
13200 lt_prog_compiler_can_build_shared_F77=no
13201 ;;
13202 esac
13203 fi
13204
13205echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13206echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13207
13208#
13209# Check to make sure the PIC flag actually works.
13210#
13211if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013212
13213echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013214echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13215if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217else
13218 lt_prog_compiler_pic_works_F77=no
13219 ac_outfile=conftest.$ac_objext
13220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13221 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13222 # Insert the option either (1) after the last *FLAGS variable, or
13223 # (2) before a word containing "conftest.", or (3) at the end.
13224 # Note that $ac_compile itself does not contain backslashes and begins
13225 # with a dollar sign (not a hyphen), so the echo should work correctly.
13226 # The option is referenced via a variable to avoid confusing sed.
13227 lt_compile=`echo "$ac_compile" | $SED \
13228 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13230 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000013231 (eval echo "\"\$as_me:13231: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013232 (eval "$lt_compile" 2>conftest.err)
13233 ac_status=$?
13234 cat conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000013235 echo "$as_me:13235: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013236 if (exit $ac_status) && test -s "$ac_outfile"; then
13237 # The compiler can only warn and ignore the option if not recognized
13238 # So say no if there are warnings
13239 if test ! -s conftest.err; then
13240 lt_prog_compiler_pic_works_F77=yes
13241 fi
13242 fi
13243 $rm conftest*
13244
13245fi
13246echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13247echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13248
13249if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13250 case $lt_prog_compiler_pic_F77 in
13251 "" | " "*) ;;
13252 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13253 esac
13254else
13255 lt_prog_compiler_pic_F77=
13256 lt_prog_compiler_can_build_shared_F77=no
13257fi
13258
13259fi
13260case "$host_os" in
13261 # For platforms which do not support PIC, -DPIC is meaningless:
13262 *djgpp*)
13263 lt_prog_compiler_pic_F77=
13264 ;;
13265 *)
13266 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13267 ;;
13268esac
13269
13270echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13271echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13272if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13274else
13275 lt_cv_prog_compiler_c_o_F77=no
13276 $rm -r conftest 2>/dev/null
13277 mkdir conftest
13278 cd conftest
13279 mkdir out
13280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13281
John Criswell47fdd832003-07-14 16:52:07 +000013282 lt_compiler_flag="-o out/conftest2.$ac_objext"
13283 # Insert the option either (1) after the last *FLAGS variable, or
13284 # (2) before a word containing "conftest.", or (3) at the end.
13285 # Note that $ac_compile itself does not contain backslashes and begins
13286 # with a dollar sign (not a hyphen), so the echo should work correctly.
13287 lt_compile=`echo "$ac_compile" | $SED \
13288 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13290 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000013291 (eval echo "\"\$as_me:13291: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013292 (eval "$lt_compile" 2>out/conftest.err)
13293 ac_status=$?
13294 cat out/conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000013295 echo "$as_me:13295: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13297 then
13298 # The compiler can only warn and ignore the option if not recognized
13299 # So say no if there are warnings
13300 if test ! -s out/conftest.err; then
13301 lt_cv_prog_compiler_c_o_F77=yes
13302 fi
13303 fi
13304 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000013305 $rm conftest*
13306 # SGI C++ compiler will create directory out/ii_files/ for
13307 # template instantiation
13308 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013310 cd ..
13311 rmdir conftest
13312 $rm conftest*
13313
13314fi
13315echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13317
13318
13319hard_links="nottested"
13320if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321 # do not overwrite the value of need_locks provided by the user
13322 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13324 hard_links=yes
13325 $rm conftest*
13326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13327 touch conftest.a
13328 ln conftest.a conftest.b 2>&5 || hard_links=no
13329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330 echo "$as_me:$LINENO: result: $hard_links" >&5
13331echo "${ECHO_T}$hard_links" >&6
13332 if test "$hard_links" = no; then
13333 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13335 need_locks=warn
13336 fi
13337else
13338 need_locks=no
13339fi
13340
13341echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13343
13344 runpath_var=
13345 allow_undefined_flag_F77=
13346 enable_shared_with_static_runtimes_F77=no
13347 archive_cmds_F77=
13348 archive_expsym_cmds_F77=
13349 old_archive_From_new_cmds_F77=
13350 old_archive_from_expsyms_cmds_F77=
13351 export_dynamic_flag_spec_F77=
13352 whole_archive_flag_spec_F77=
13353 thread_safe_flag_spec_F77=
13354 hardcode_libdir_flag_spec_F77=
13355 hardcode_libdir_flag_spec_ld_F77=
13356 hardcode_libdir_separator_F77=
13357 hardcode_direct_F77=no
13358 hardcode_minus_L_F77=no
13359 hardcode_shlibpath_var_F77=unsupported
13360 link_all_deplibs_F77=unknown
13361 hardcode_automatic_F77=no
13362 module_cmds_F77=
13363 module_expsym_cmds_F77=
13364 always_export_symbols_F77=no
13365 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366 # include_expsyms should be a list of space-separated symbols to be *always*
13367 # included in the symbol list
13368 include_expsyms_F77=
13369 # exclude_expsyms can be an extended regexp of symbols to exclude
13370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372 # as well as any symbol that contains `d'.
13373 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375 # platforms (ab)use it in PIC code, but their linkers get confused if
13376 # the symbol is explicitly referenced. Since portable code cannot
13377 # rely on this symbol name, it's probably fine to never include it in
13378 # preloaded symbol tables.
13379 extract_expsyms_cmds=
13380
13381 case $host_os in
13382 cygwin* | mingw* | pw32*)
13383 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13384 # When not using gcc, we currently assume that we are using
13385 # Microsoft Visual C++.
13386 if test "$GCC" != yes; then
13387 with_gnu_ld=no
13388 fi
13389 ;;
13390 openbsd*)
13391 with_gnu_ld=no
13392 ;;
13393 esac
13394
13395 ld_shlibs_F77=yes
13396 if test "$with_gnu_ld" = yes; then
13397 # If archive_cmds runs LD, not CC, wlarc should be empty
13398 wlarc='${wl}'
13399
13400 # See if GNU ld supports shared libraries.
13401 case $host_os in
13402 aix3* | aix4* | aix5*)
13403 # On AIX/PPC, the GNU linker is very broken
13404 if test "$host_cpu" != ia64; then
13405 ld_shlibs_F77=no
13406 cat <<EOF 1>&2
13407
13408*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13409*** to be unable to reliably create shared libraries on AIX.
13410*** Therefore, libtool is disabling shared libraries support. If you
13411*** really care for shared libraries, you may want to modify your PATH
13412*** so that a non-GNU linker is found, and then restart.
13413
13414EOF
13415 fi
13416 ;;
13417
13418 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013419 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)'
John Criswell47fdd832003-07-14 16:52:07 +000013420 hardcode_libdir_flag_spec_F77='-L$libdir'
13421 hardcode_minus_L_F77=yes
13422
13423 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13424 # that the semantics of dynamic libraries on AmigaOS, at least up
13425 # to version 4, is to share data among multiple programs linked
13426 # with the same dynamic library. Since this doesn't match the
13427 # behavior of shared libraries on other platforms, we can't use
13428 # them.
13429 ld_shlibs_F77=no
13430 ;;
13431
13432 beos*)
13433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13434 allow_undefined_flag_F77=unsupported
13435 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13436 # support --undefined. This deserves some investigation. FIXME
13437 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 else
13439 ld_shlibs_F77=no
13440 fi
13441 ;;
13442
13443 cygwin* | mingw* | pw32*)
13444 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13445 # as there is no search path for DLLs.
13446 hardcode_libdir_flag_spec_F77='-L$libdir'
13447 allow_undefined_flag_F77=unsupported
13448 always_export_symbols_F77=no
13449 enable_shared_with_static_runtimes_F77=yes
13450 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13451
13452 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13453 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13454 # If the export-symbols file already is a .def file (1st line
13455 # is EXPORTS), use it as is; otherwise, prepend...
13456 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13457 cp $export_symbols $output_objdir/$soname.def;
13458 else
13459 echo EXPORTS > $output_objdir/$soname.def;
13460 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013461 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000013462 else
13463 ld_shlibs=no
13464 fi
13465 ;;
13466
13467 netbsd*)
13468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13469 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13470 wlarc=
13471 else
13472 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13473 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13474 fi
13475 ;;
13476
13477 solaris* | sysv5*)
13478 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13479 ld_shlibs_F77=no
13480 cat <<EOF 1>&2
13481
13482*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13483*** create shared libraries on Solaris systems. Therefore, libtool
13484*** is disabling shared libraries support. We urge you to upgrade GNU
13485*** binutils to release 2.9.1 or newer. Another option is to modify
13486*** your PATH or compiler configuration so that the native linker is
13487*** used, and then restart.
13488
13489EOF
13490 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13491 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13493 else
13494 ld_shlibs_F77=no
13495 fi
13496 ;;
13497
13498 sunos4*)
13499 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13500 wlarc=
13501 hardcode_direct_F77=yes
13502 hardcode_shlibpath_var_F77=no
13503 ;;
13504
Reid Spencer2706f8c2004-09-19 23:53:36 +000013505 linux*)
13506 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13507 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13508 archive_cmds_F77="$tmp_archive_cmds"
13509 supports_anon_versioning=no
13510 case `$LD -v 2>/dev/null` in
13511 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13514 *\ 2.11.*) ;; # other 2.11 versions
13515 *) supports_anon_versioning=yes ;;
13516 esac
13517 if test $supports_anon_versioning = yes; then
13518 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13519 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13520 else
13521 archive_expsym_cmds_F77="$tmp_archive_cmds"
13522 fi
13523 else
13524 ld_shlibs_F77=no
13525 fi
13526 ;;
13527
John Criswell47fdd832003-07-14 16:52:07 +000013528 *)
13529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13530 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13532 else
13533 ld_shlibs_F77=no
13534 fi
13535 ;;
13536 esac
13537
13538 if test "$ld_shlibs_F77" = yes; then
13539 runpath_var=LD_RUN_PATH
13540 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13541 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13542 # ancient GNU ld didn't support --whole-archive et. al.
13543 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13544 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13545 else
13546 whole_archive_flag_spec_F77=
13547 fi
13548 fi
13549 else
13550 # PORTME fill in a description of your system's linker (not GNU ld)
13551 case $host_os in
13552 aix3*)
13553 allow_undefined_flag_F77=unsupported
13554 always_export_symbols_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013555 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'
John Criswell47fdd832003-07-14 16:52:07 +000013556 # Note: this linker hardcodes the directories in LIBPATH if there
13557 # are no directories specified by -L.
13558 hardcode_minus_L_F77=yes
13559 if test "$GCC" = yes && test -z "$link_static_flag"; then
13560 # Neither direct hardcoding nor static linking is supported with a
13561 # broken collect2.
13562 hardcode_direct_F77=unsupported
13563 fi
13564 ;;
13565
13566 aix4* | aix5*)
13567 if test "$host_cpu" = ia64; then
13568 # On IA64, the linker does run time linking by default, so we don't
13569 # have to do anything special.
13570 aix_use_runtimelinking=no
13571 exp_sym_flag='-Bexport'
13572 no_entry_flag=""
13573 else
13574 # If we're using GNU nm, then we don't want the "-C" option.
13575 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13576 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13577 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'
13578 else
13579 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'
13580 fi
13581 aix_use_runtimelinking=no
13582
13583 # Test if we are trying to use run time linking or normal
13584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13585 # need to do runtime linking.
13586 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13587 for ld_flag in $LDFLAGS; do
13588 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13589 aix_use_runtimelinking=yes
13590 break
13591 fi
13592 done
13593 esac
13594
13595 exp_sym_flag='-bexport'
13596 no_entry_flag='-bnoentry'
13597 fi
13598
13599 # When large executables or shared objects are built, AIX ld can
13600 # have problems creating the table of contents. If linking a library
13601 # or program results in "error TOC overflow" add -mminimal-toc to
13602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13604
13605 archive_cmds_F77=''
13606 hardcode_direct_F77=yes
13607 hardcode_libdir_separator_F77=':'
13608 link_all_deplibs_F77=yes
13609
13610 if test "$GCC" = yes; then
13611 case $host_os in aix4.012|aix4.012.*)
13612 # We only want to do this on AIX 4.2 and lower, the check
13613 # below for broken collect2 doesn't work under 4.3+
13614 collect2name=`${CC} -print-prog-name=collect2`
13615 if test -f "$collect2name" && \
13616 strings "$collect2name" | grep resolve_lib_name >/dev/null
13617 then
13618 # We have reworked collect2
13619 hardcode_direct_F77=yes
13620 else
13621 # We have old collect2
13622 hardcode_direct_F77=unsupported
13623 # It fails to find uninstalled libraries when the uninstalled
13624 # path is not listed in the libpath. Setting hardcode_minus_L
13625 # to unsupported forces relinking
13626 hardcode_minus_L_F77=yes
13627 hardcode_libdir_flag_spec_F77='-L$libdir'
13628 hardcode_libdir_separator_F77=
13629 fi
13630 esac
13631 shared_flag='-shared'
13632 else
13633 # not using gcc
13634 if test "$host_cpu" = ia64; then
13635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636 # chokes on -Wl,-G. The following line is correct:
13637 shared_flag='-G'
13638 else
13639 if test "$aix_use_runtimelinking" = yes; then
13640 shared_flag='${wl}-G'
13641 else
13642 shared_flag='${wl}-bM:SRE'
13643 fi
13644 fi
13645 fi
13646
13647 # It seems that -bexpall does not export symbols beginning with
13648 # underscore (_), so it is better to generate a list of symbols to export.
13649 always_export_symbols_F77=yes
13650 if test "$aix_use_runtimelinking" = yes; then
13651 # Warning - without using the other runtime loading flags (-brtl),
13652 # -berok will link without error, but may produce a broken library.
13653 allow_undefined_flag_F77='-berok'
13654 # Determine the default libpath from the value encoded in an empty executable.
13655 cat >conftest.$ac_ext <<_ACEOF
13656 program main
13657
13658 end
13659_ACEOF
13660rm -f conftest.$ac_objext conftest$ac_exeext
13661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013662 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013669 { ac_try='test -z "$ac_f77_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682
13683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13684}'`
13685# Check for a 64-bit object if we didn't find anything.
13686if 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; }
13687}'`; fi
13688else
13689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013690sed 's/^/| /' conftest.$ac_ext >&5
13691
John Criswell47fdd832003-07-14 16:52:07 +000013692fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013693rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13696
13697 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13698 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"
13699 else
13700 if test "$host_cpu" = ia64; then
13701 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13702 allow_undefined_flag_F77="-z nodefs"
13703 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"
13704 else
13705 # Determine the default libpath from the value encoded in an empty executable.
13706 cat >conftest.$ac_ext <<_ACEOF
13707 program main
13708
13709 end
13710_ACEOF
13711rm -f conftest.$ac_objext conftest$ac_exeext
13712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013713 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013720 { ac_try='test -z "$ac_f77_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733
13734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13735}'`
13736# Check for a 64-bit object if we didn't find anything.
13737if 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; }
13738}'`; fi
13739else
13740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013741sed 's/^/| /' conftest.$ac_ext >&5
13742
John Criswell47fdd832003-07-14 16:52:07 +000013743fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013744rm -f conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13747
13748 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13749 # Warning - without using the other run time loading flags,
13750 # -berok will link without error, but may produce a broken library.
13751 no_undefined_flag_F77=' ${wl}-bernotok'
13752 allow_undefined_flag_F77=' ${wl}-berok'
13753 # -bexpall does not export symbols beginning with underscore (_)
13754 always_export_symbols_F77=yes
13755 # Exported symbols can be pulled into shared objects from archives
13756 whole_archive_flag_spec_F77=' '
13757 archive_cmds_need_lc_F77=yes
13758 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013759 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'
John Criswell47fdd832003-07-14 16:52:07 +000013760 fi
13761 fi
13762 ;;
13763
13764 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013765 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)'
John Criswell47fdd832003-07-14 16:52:07 +000013766 hardcode_libdir_flag_spec_F77='-L$libdir'
13767 hardcode_minus_L_F77=yes
13768 # see comment about different semantics on the GNU ld section
13769 ld_shlibs_F77=no
13770 ;;
13771
Reid Spencer2706f8c2004-09-19 23:53:36 +000013772 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013773 export_dynamic_flag_spec_F77=-rdynamic
13774 ;;
13775
13776 cygwin* | mingw* | pw32*)
13777 # When not using gcc, we currently assume that we are using
13778 # Microsoft Visual C++.
13779 # hardcode_libdir_flag_spec is actually meaningless, as there is
13780 # no search path for DLLs.
13781 hardcode_libdir_flag_spec_F77=' '
13782 allow_undefined_flag_F77=unsupported
13783 # Tell ltmain to make .lib files, not .a files.
13784 libext=lib
13785 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013786 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013787 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013788 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
John Criswell47fdd832003-07-14 16:52:07 +000013789 # The linker will automatically build a .lib file if we build a DLL.
13790 old_archive_From_new_cmds_F77='true'
13791 # FIXME: Should let the user specify the lib program.
13792 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13793 fix_srcfile_path='`cygpath -w "$srcfile"`'
13794 enable_shared_with_static_runtimes_F77=yes
13795 ;;
13796
13797 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000013798 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013799 rhapsody* | darwin1.[012])
13800 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13801 ;;
13802 *) # Darwin 1.3 on
13803 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13804 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13805 else
13806 case ${MACOSX_DEPLOYMENT_TARGET} in
13807 10.[012])
13808 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13809 ;;
13810 10.*)
13811 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13812 ;;
13813 esac
13814 fi
13815 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013816 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013817 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013818 hardcode_direct_F77=no
13819 hardcode_automatic_F77=yes
13820 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013821 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000013822 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 if test "$GCC" = yes ; then
13824 output_verbose_link_cmd='echo'
13825 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13826 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13828 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13829 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}'
13830 else
13831 case "$cc_basename" in
13832 xlc*)
13833 output_verbose_link_cmd='echo'
13834 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13835 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13837 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13838 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}'
13839 ;;
13840 *)
13841 ld_shlibs_F77=no
13842 ;;
13843 esac
John Criswell47fdd832003-07-14 16:52:07 +000013844 fi
13845 ;;
13846
13847 dgux*)
13848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849 hardcode_libdir_flag_spec_F77='-L$libdir'
13850 hardcode_shlibpath_var_F77=no
13851 ;;
13852
13853 freebsd1*)
13854 ld_shlibs_F77=no
13855 ;;
13856
13857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13858 # support. Future versions do this automatically, but an explicit c++rt0.o
13859 # does not break anything, and helps significantly (at the cost of a little
13860 # extra space).
13861 freebsd2.2*)
13862 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13863 hardcode_libdir_flag_spec_F77='-R$libdir'
13864 hardcode_direct_F77=yes
13865 hardcode_shlibpath_var_F77=no
13866 ;;
13867
13868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13869 freebsd2*)
13870 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13871 hardcode_direct_F77=yes
13872 hardcode_minus_L_F77=yes
13873 hardcode_shlibpath_var_F77=no
13874 ;;
13875
13876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013877 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013878 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13880 hardcode_direct_F77=yes
13881 hardcode_shlibpath_var_F77=no
13882 ;;
13883
13884 hpux9*)
13885 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013886 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'
John Criswell47fdd832003-07-14 16:52:07 +000013887 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013888 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'
John Criswell47fdd832003-07-14 16:52:07 +000013889 fi
13890 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13891 hardcode_libdir_separator_F77=:
13892 hardcode_direct_F77=yes
13893
13894 # hardcode_minus_L: Not really in the search PATH,
13895 # but as the default location of the library.
13896 hardcode_minus_L_F77=yes
13897 export_dynamic_flag_spec_F77='${wl}-E'
13898 ;;
13899
13900 hpux10* | hpux11*)
13901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13902 case "$host_cpu" in
13903 hppa*64*|ia64*)
13904 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 ;;
13906 *)
13907 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13908 ;;
13909 esac
13910 else
13911 case "$host_cpu" in
13912 hppa*64*|ia64*)
13913 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13914 ;;
13915 *)
13916 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13917 ;;
13918 esac
13919 fi
13920 if test "$with_gnu_ld" = no; then
13921 case "$host_cpu" in
13922 hppa*64*)
13923 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13924 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13925 hardcode_libdir_separator_F77=:
13926 hardcode_direct_F77=no
13927 hardcode_shlibpath_var_F77=no
13928 ;;
13929 ia64*)
13930 hardcode_libdir_flag_spec_F77='-L$libdir'
13931 hardcode_direct_F77=no
13932 hardcode_shlibpath_var_F77=no
13933
13934 # hardcode_minus_L: Not really in the search PATH,
13935 # but as the default location of the library.
13936 hardcode_minus_L_F77=yes
13937 ;;
13938 *)
13939 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13940 hardcode_libdir_separator_F77=:
13941 hardcode_direct_F77=yes
13942 export_dynamic_flag_spec_F77='${wl}-E'
13943
13944 # hardcode_minus_L: Not really in the search PATH,
13945 # but as the default location of the library.
13946 hardcode_minus_L_F77=yes
13947 ;;
13948 esac
13949 fi
13950 ;;
13951
13952 irix5* | irix6* | nonstopux*)
13953 if test "$GCC" = yes; then
13954 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'
13955 else
13956 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'
13957 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13958 fi
13959 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13960 hardcode_libdir_separator_F77=:
13961 link_all_deplibs_F77=yes
13962 ;;
13963
13964 netbsd*)
13965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13966 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13967 else
13968 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13969 fi
13970 hardcode_libdir_flag_spec_F77='-R$libdir'
13971 hardcode_direct_F77=yes
13972 hardcode_shlibpath_var_F77=no
13973 ;;
13974
13975 newsos6)
13976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13977 hardcode_direct_F77=yes
13978 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13979 hardcode_libdir_separator_F77=:
13980 hardcode_shlibpath_var_F77=no
13981 ;;
13982
13983 openbsd*)
13984 hardcode_direct_F77=yes
13985 hardcode_shlibpath_var_F77=no
13986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13987 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013988 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000013989 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13990 export_dynamic_flag_spec_F77='${wl}-E'
13991 else
13992 case $host_os in
13993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13995 hardcode_libdir_flag_spec_F77='-R$libdir'
13996 ;;
13997 *)
13998 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13999 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14000 ;;
14001 esac
14002 fi
14003 ;;
14004
14005 os2*)
14006 hardcode_libdir_flag_spec_F77='-L$libdir'
14007 hardcode_minus_L_F77=yes
14008 allow_undefined_flag_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014009 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'
John Criswell47fdd832003-07-14 16:52:07 +000014010 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14011 ;;
14012
14013 osf3*)
14014 if test "$GCC" = yes; then
14015 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14016 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'
14017 else
14018 allow_undefined_flag_F77=' -expect_unresolved \*'
14019 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'
14020 fi
14021 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14022 hardcode_libdir_separator_F77=:
14023 ;;
14024
14025 osf4* | osf5*) # as osf3* with the addition of -msym flag
14026 if test "$GCC" = yes; then
14027 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14028 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'
14029 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14030 else
14031 allow_undefined_flag_F77=' -expect_unresolved \*'
14032 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014033 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; $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'
John Criswell47fdd832003-07-14 16:52:07 +000014034 # Both c and cxx compiler support -rpath directly
14035 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14036 fi
14037 hardcode_libdir_separator_F77=:
14038 ;;
14039
14040 sco3.2v5*)
14041 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042 hardcode_shlibpath_var_F77=no
14043 export_dynamic_flag_spec_F77='${wl}-Bexport'
14044 runpath_var=LD_RUN_PATH
14045 hardcode_runpath_var=yes
14046 ;;
14047
14048 solaris*)
14049 no_undefined_flag_F77=' -z text'
14050 if test "$GCC" = yes; then
14051 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014052 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014053 else
14054 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014055 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014056 fi
14057 hardcode_libdir_flag_spec_F77='-R$libdir'
14058 hardcode_shlibpath_var_F77=no
14059 case $host_os in
14060 solaris2.[0-5] | solaris2.[0-5].*) ;;
14061 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14062 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14063 esac
14064 link_all_deplibs_F77=yes
14065 ;;
14066
14067 sunos4*)
14068 if test "x$host_vendor" = xsequent; then
14069 # Use $CC to link under sequent, because it throws in some extra .o
14070 # files that make .init and .fini sections work.
14071 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14072 else
14073 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14074 fi
14075 hardcode_libdir_flag_spec_F77='-L$libdir'
14076 hardcode_direct_F77=yes
14077 hardcode_minus_L_F77=yes
14078 hardcode_shlibpath_var_F77=no
14079 ;;
14080
14081 sysv4)
14082 case $host_vendor in
14083 sni)
14084 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_direct_F77=yes # is this really true???
14086 ;;
14087 siemens)
14088 ## LD is ld it makes a PLAMLIB
14089 ## CC just makes a GrossModule.
14090 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14091 reload_cmds_F77='$CC -r -o $output$reload_objs'
14092 hardcode_direct_F77=no
14093 ;;
14094 motorola)
14095 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14097 ;;
14098 esac
14099 runpath_var='LD_RUN_PATH'
14100 hardcode_shlibpath_var_F77=no
14101 ;;
14102
14103 sysv4.3*)
14104 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105 hardcode_shlibpath_var_F77=no
14106 export_dynamic_flag_spec_F77='-Bexport'
14107 ;;
14108
14109 sysv4*MP*)
14110 if test -d /usr/nec; then
14111 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14112 hardcode_shlibpath_var_F77=no
14113 runpath_var=LD_RUN_PATH
14114 hardcode_runpath_var=yes
14115 ld_shlibs_F77=yes
14116 fi
14117 ;;
14118
14119 sysv4.2uw2*)
14120 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=yes
14122 hardcode_minus_L_F77=no
14123 hardcode_shlibpath_var_F77=no
14124 hardcode_runpath_var=yes
14125 runpath_var=LD_RUN_PATH
14126 ;;
14127
14128 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14129 no_undefined_flag_F77='${wl}-z ${wl}text'
14130 if test "$GCC" = yes; then
14131 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14132 else
14133 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134 fi
14135 runpath_var='LD_RUN_PATH'
14136 hardcode_shlibpath_var_F77=no
14137 ;;
14138
14139 sysv5*)
14140 no_undefined_flag_F77=' -z text'
14141 # $CC -shared without GNU ld will not create a library from C++
14142 # object files and a static libstdc++, better avoid it by now
14143 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014144 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000014145 hardcode_libdir_flag_spec_F77=
14146 hardcode_shlibpath_var_F77=no
14147 runpath_var='LD_RUN_PATH'
14148 ;;
14149
14150 uts4*)
14151 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14152 hardcode_libdir_flag_spec_F77='-L$libdir'
14153 hardcode_shlibpath_var_F77=no
14154 ;;
14155
14156 *)
14157 ld_shlibs_F77=no
14158 ;;
14159 esac
14160 fi
14161
14162echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14163echo "${ECHO_T}$ld_shlibs_F77" >&6
14164test "$ld_shlibs_F77" = no && can_build_shared=no
14165
14166variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14167if test "$GCC" = yes; then
14168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14169fi
14170
14171#
14172# Do we need to explicitly link libc?
14173#
14174case "x$archive_cmds_need_lc_F77" in
14175x|xyes)
14176 # Assume -lc should be added
14177 archive_cmds_need_lc_F77=yes
14178
14179 if test "$enable_shared" = yes && test "$GCC" = yes; then
14180 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014181 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014182 # FIXME: we may have to deal with multi-command sequences.
14183 ;;
14184 '$CC '*)
14185 # Test whether the compiler implicitly links with -lc since on some
14186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14187 # to ld, don't add -lc before -lgcc.
14188 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14189echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14190 $rm conftest*
14191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14192
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } 2>conftest.err; then
14198 soname=conftest
14199 lib=conftest
14200 libobjs=conftest.$ac_objext
14201 deplibs=
14202 wl=$lt_prog_compiler_wl_F77
14203 compiler_flags=-v
14204 linker_flags=-v
14205 verstring=
14206 output_objdir=.
14207 libname=conftest
14208 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14209 allow_undefined_flag_F77=
14210 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14211 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }
14215 then
14216 archive_cmds_need_lc_F77=no
14217 else
14218 archive_cmds_need_lc_F77=yes
14219 fi
14220 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14221 else
14222 cat conftest.err 1>&5
14223 fi
14224 $rm conftest*
14225 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14226echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14227 ;;
14228 esac
14229 fi
14230 ;;
14231esac
14232
John Criswell47fdd832003-07-14 16:52:07 +000014233echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14234echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14235library_names_spec=
14236libname_spec='lib$name'
14237soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014238shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000014239postinstall_cmds=
14240postuninstall_cmds=
14241finish_cmds=
14242finish_eval=
14243shlibpath_var=
14244shlibpath_overrides_runpath=unknown
14245version_type=none
14246dynamic_linker="$host_os ld.so"
14247sys_lib_dlsearch_path_spec="/lib /usr/lib"
14248if test "$GCC" = yes; then
14249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14251 # if the path contains ";" then we assume it to be the separator
14252 # otherwise default to the standard path separator (i.e. ":") - it is
14253 # assumed that no part of a normal pathname contains ";" but that should
14254 # okay in the real world where ";" in dirpaths is itself problematic.
14255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14256 else
14257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14258 fi
14259else
14260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14261fi
14262need_lib_prefix=unknown
14263hardcode_into_libs=no
14264
14265# when you set need_version to no, make sure it does not cause -set_version
14266# flags to be left without arguments
14267need_version=unknown
14268
14269case $host_os in
14270aix3*)
14271 version_type=linux
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14273 shlibpath_var=LIBPATH
14274
14275 # AIX 3 has no versioning support, so we append a major version to the name.
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 ;;
14278
14279aix4* | aix5*)
14280 version_type=linux
14281 need_lib_prefix=no
14282 need_version=no
14283 hardcode_into_libs=yes
14284 if test "$host_cpu" = ia64; then
14285 # AIX 5 supports IA64
14286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14287 shlibpath_var=LD_LIBRARY_PATH
14288 else
14289 # With GCC up to 2.95.x, collect2 would create an import file
14290 # for dependence libraries. The import file would start with
14291 # the line `#! .'. This would cause the generated library to
14292 # depend on `.', always an invalid library. This was fixed in
14293 # development snapshots of GCC prior to 3.0.
14294 case $host_os in
14295 aix4 | aix4.[01] | aix4.[01].*)
14296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14297 echo ' yes '
14298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14299 :
14300 else
14301 can_build_shared=no
14302 fi
14303 ;;
14304 esac
14305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14306 # soname into executable. Probably we can add versioning support to
14307 # collect2, so additional links can be useful in future.
14308 if test "$aix_use_runtimelinking" = yes; then
14309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14310 # instead of lib<name>.a to let people know that these are not
14311 # typical AIX shared libraries.
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 else
14314 # We preserve .a as extension for shared libraries through AIX4.2
14315 # and later when we are not doing run time linking.
14316 library_names_spec='${libname}${release}.a $libname.a'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 fi
14319 shlibpath_var=LIBPATH
14320 fi
14321 ;;
14322
14323amigaos*)
14324 library_names_spec='$libname.ixlibrary $libname.a'
14325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014326 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'
John Criswell47fdd832003-07-14 16:52:07 +000014327 ;;
14328
14329beos*)
14330 library_names_spec='${libname}${shared_ext}'
14331 dynamic_linker="$host_os ld.so"
14332 shlibpath_var=LIBRARY_PATH
14333 ;;
14334
Reid Spencer2706f8c2004-09-19 23:53:36 +000014335bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014336 version_type=linux
14337 need_version=no
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 soname_spec='${libname}${release}${shared_ext}$major'
14340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14344 # the default ld.so.conf also contains /usr/contrib/lib and
14345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14346 # libtool to hard-code these into programs
14347 ;;
14348
14349cygwin* | mingw* | pw32*)
14350 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000014351 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014352 need_version=no
14353 need_lib_prefix=no
14354
14355 case $GCC,$host_os in
14356 yes,cygwin* | yes,mingw* | yes,pw32*)
14357 library_names_spec='$libname.dll.a'
14358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000014359 postinstall_cmds='base_file=`basename \${file}`;
14360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14361 dldir=$destdir/`dirname \$dlpath`;
14362 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000014363 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14365 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000014366 $rm \$dlpath'
14367 shlibpath_overrides_runpath=yes
14368
14369 case $host_os in
14370 cygwin*)
14371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014373 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014374 ;;
14375 mingw*)
14376 # MinGW DLLs use traditional 'lib' prefix
14377 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14378 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14379 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14380 # It is most probably a Windows format PATH printed by
14381 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14382 # path with ; separators, and with drive letters. We can handle the
14383 # drive letters (cygwin fileutils understands them), so leave them,
14384 # especially as we might pass files found there to a mingw objdump,
14385 # which wouldn't understand a cygwinified path. Ahh.
14386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14387 else
14388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14389 fi
14390 ;;
14391 pw32*)
14392 # pw32 DLLs use 'pw' prefix rather than 'lib'
14393 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14394 ;;
14395 esac
14396 ;;
14397
14398 *)
14399 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14400 ;;
14401 esac
14402 dynamic_linker='Win32 ld.exe'
14403 # FIXME: first we should search . and the directory the executable is in
14404 shlibpath_var=PATH
14405 ;;
14406
14407darwin* | rhapsody*)
14408 dynamic_linker="$host_os dyld"
14409 version_type=darwin
14410 need_lib_prefix=no
14411 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000014412 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000014413 soname_spec='${libname}${release}${major}$shared_ext'
14414 shlibpath_overrides_runpath=yes
14415 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000014416 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000014417 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014418 if test "$GCC" = yes; then
14419 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"`
14420 else
14421 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014422 fi
14423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14424 ;;
14425
14426dgux*)
14427 version_type=linux
14428 need_lib_prefix=no
14429 need_version=no
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 ;;
14434
14435freebsd1*)
14436 dynamic_linker=no
14437 ;;
14438
Reid Spencer2706f8c2004-09-19 23:53:36 +000014439kfreebsd*-gnu)
14440 version_type=linux
14441 need_lib_prefix=no
14442 need_version=no
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=no
14447 hardcode_into_libs=yes
14448 dynamic_linker='GNU ld.so'
14449 ;;
14450
John Criswell47fdd832003-07-14 16:52:07 +000014451freebsd*)
14452 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14453 version_type=freebsd-$objformat
14454 case $version_type in
14455 freebsd-elf*)
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14457 need_version=no
14458 need_lib_prefix=no
14459 ;;
14460 freebsd-*)
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14462 need_version=yes
14463 ;;
14464 esac
14465 shlibpath_var=LD_LIBRARY_PATH
14466 case $host_os in
14467 freebsd2*)
14468 shlibpath_overrides_runpath=yes
14469 ;;
14470 freebsd3.01* | freebsdelf3.01*)
14471 shlibpath_overrides_runpath=yes
14472 hardcode_into_libs=yes
14473 ;;
14474 *) # from 3.2 on
14475 shlibpath_overrides_runpath=no
14476 hardcode_into_libs=yes
14477 ;;
14478 esac
14479 ;;
14480
14481gnu*)
14482 version_type=linux
14483 need_lib_prefix=no
14484 need_version=no
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 hardcode_into_libs=yes
14489 ;;
14490
14491hpux9* | hpux10* | hpux11*)
14492 # Give a soname corresponding to the major version so that dld.sl refuses to
14493 # link against other versions.
14494 version_type=sunos
14495 need_lib_prefix=no
14496 need_version=no
14497 case "$host_cpu" in
14498 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014499 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000014500 hardcode_into_libs=yes
14501 dynamic_linker="$host_os dld.so"
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 if test "X$HPUX_IA64_MODE" = X32; then
14507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14508 else
14509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14510 fi
14511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14512 ;;
14513 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014514 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014515 hardcode_into_libs=yes
14516 dynamic_linker="$host_os dld.sl"
14517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14523 ;;
14524 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014525 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014526 dynamic_linker="$host_os dld.sl"
14527 shlibpath_var=SHLIB_PATH
14528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 ;;
14532 esac
14533 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14534 postinstall_cmds='chmod 555 $lib'
14535 ;;
14536
14537irix5* | irix6* | nonstopux*)
14538 case $host_os in
14539 nonstopux*) version_type=nonstopux ;;
14540 *)
14541 if test "$lt_cv_prog_gnu_ld" = yes; then
14542 version_type=linux
14543 else
14544 version_type=irix
14545 fi ;;
14546 esac
14547 need_lib_prefix=no
14548 need_version=no
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14551 case $host_os in
14552 irix5* | nonstopux*)
14553 libsuff= shlibsuff=
14554 ;;
14555 *)
14556 case $LD in # libtool.m4 will add one of these switches to LD
14557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14558 libsuff= shlibsuff= libmagic=32-bit;;
14559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14560 libsuff=32 shlibsuff=N32 libmagic=N32;;
14561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14563 *) libsuff= shlibsuff= libmagic=never-match;;
14564 esac
14565 ;;
14566 esac
14567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14568 shlibpath_overrides_runpath=no
14569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14571 hardcode_into_libs=yes
14572 ;;
14573
14574# No shared lib support for Linux oldld, aout, or coff.
14575linux*oldld* | linux*aout* | linux*coff*)
14576 dynamic_linker=no
14577 ;;
14578
14579# This must be Linux ELF.
14580linux*)
14581 version_type=linux
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14587 shlibpath_var=LD_LIBRARY_PATH
14588 shlibpath_overrides_runpath=no
14589 # This implies no fast_install, which is unacceptable.
14590 # Some rework will be needed to allow for fast_install
14591 # before this can be enabled.
14592 hardcode_into_libs=yes
14593
Reid Spencer2706f8c2004-09-19 23:53:36 +000014594 # Append ld.so.conf contents to the search path
14595 if test -f /etc/ld.so.conf; then
14596 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14597 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14598 fi
14599
John Criswell47fdd832003-07-14 16:52:07 +000014600 # We used to test for /lib/ld.so.1 and disable shared libraries on
14601 # powerpc, because MkLinux only supported shared libraries with the
14602 # GNU dynamic linker. Since this was broken with cross compilers,
14603 # most powerpc-linux boxes support dynamic linking these days and
14604 # people can always --disable-shared, the test was removed, and we
14605 # assume the GNU/Linux dynamic linker is in use.
14606 dynamic_linker='GNU/Linux ld.so'
14607 ;;
14608
Reid Spencer2706f8c2004-09-19 23:53:36 +000014609knetbsd*-gnu)
14610 version_type=linux
14611 need_lib_prefix=no
14612 need_version=no
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14618 dynamic_linker='GNU ld.so'
14619 ;;
14620
John Criswell47fdd832003-07-14 16:52:07 +000014621netbsd*)
14622 version_type=sunos
14623 need_lib_prefix=no
14624 need_version=no
14625 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14628 dynamic_linker='NetBSD (a.out) ld.so'
14629 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000014631 soname_spec='${libname}${release}${shared_ext}$major'
14632 dynamic_linker='NetBSD ld.elf_so'
14633 fi
14634 shlibpath_var=LD_LIBRARY_PATH
14635 shlibpath_overrides_runpath=yes
14636 hardcode_into_libs=yes
14637 ;;
14638
14639newsos6)
14640 version_type=linux
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 shlibpath_overrides_runpath=yes
14644 ;;
14645
Reid Spencer2706f8c2004-09-19 23:53:36 +000014646nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014647 version_type=linux
14648 need_lib_prefix=no
14649 need_version=no
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 ;;
14655
14656openbsd*)
14657 version_type=sunos
14658 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014659 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14662 shlibpath_var=LD_LIBRARY_PATH
14663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14664 case $host_os in
14665 openbsd2.[89] | openbsd2.[89].*)
14666 shlibpath_overrides_runpath=no
14667 ;;
14668 *)
14669 shlibpath_overrides_runpath=yes
14670 ;;
14671 esac
14672 else
14673 shlibpath_overrides_runpath=yes
14674 fi
14675 ;;
14676
14677os2*)
14678 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014679 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014680 need_lib_prefix=no
14681 library_names_spec='$libname${shared_ext} $libname.a'
14682 dynamic_linker='OS/2 ld.exe'
14683 shlibpath_var=LIBPATH
14684 ;;
14685
14686osf3* | osf4* | osf5*)
14687 version_type=osf
14688 need_lib_prefix=no
14689 need_version=no
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14695 ;;
14696
14697sco3.2v5*)
14698 version_type=osf
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 ;;
14703
14704solaris*)
14705 version_type=linux
14706 need_lib_prefix=no
14707 need_version=no
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709 soname_spec='${libname}${release}${shared_ext}$major'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=yes
14712 hardcode_into_libs=yes
14713 # ldd complains unless libraries are executable
14714 postinstall_cmds='chmod +x $lib'
14715 ;;
14716
14717sunos4*)
14718 version_type=sunos
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes
14723 if test "$with_gnu_ld" = yes; then
14724 need_lib_prefix=no
14725 fi
14726 need_version=yes
14727 ;;
14728
14729sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14730 version_type=linux
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 soname_spec='${libname}${release}${shared_ext}$major'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 case $host_vendor in
14735 sni)
14736 shlibpath_overrides_runpath=no
14737 need_lib_prefix=no
14738 export_dynamic_flag_spec='${wl}-Blargedynsym'
14739 runpath_var=LD_RUN_PATH
14740 ;;
14741 siemens)
14742 need_lib_prefix=no
14743 ;;
14744 motorola)
14745 need_lib_prefix=no
14746 need_version=no
14747 shlibpath_overrides_runpath=no
14748 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14749 ;;
14750 esac
14751 ;;
14752
14753sysv4*MP*)
14754 if test -d /usr/nec ;then
14755 version_type=linux
14756 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14757 soname_spec='$libname${shared_ext}.$major'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 fi
14760 ;;
14761
14762uts4*)
14763 version_type=linux
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 ;;
14768
14769*)
14770 dynamic_linker=no
14771 ;;
14772esac
14773echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14774echo "${ECHO_T}$dynamic_linker" >&6
14775test "$dynamic_linker" = no && can_build_shared=no
14776
Reid Spencer2706f8c2004-09-19 23:53:36 +000014777echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14778echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14779hardcode_action_F77=
14780if test -n "$hardcode_libdir_flag_spec_F77" || \
14781 test -n "$runpath_var_F77" || \
14782 test "X$hardcode_automatic_F77" = "Xyes" ; then
14783
14784 # We can hardcode non-existant directories.
14785 if test "$hardcode_direct_F77" != no &&
14786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14787 # have to relink, otherwise we might link with an installed library
14788 # when we should be linking with a yet-to-be-installed one
14789 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14790 test "$hardcode_minus_L_F77" != no; then
14791 # Linking always hardcodes the temporary library directory.
14792 hardcode_action_F77=relink
14793 else
14794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14795 hardcode_action_F77=immediate
14796 fi
14797else
14798 # We cannot hardcode anything, or else we can only hardcode existing
14799 # directories.
14800 hardcode_action_F77=unsupported
14801fi
14802echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14803echo "${ECHO_T}$hardcode_action_F77" >&6
14804
14805if test "$hardcode_action_F77" = relink; then
14806 # Fast installation is not supported
14807 enable_fast_install=no
14808elif test "$shlibpath_overrides_runpath" = yes ||
14809 test "$enable_shared" = no; then
14810 # Fast installation is not necessary
14811 enable_fast_install=needless
14812fi
14813
14814striplib=
14815old_striplib=
14816echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14817echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14818if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14819 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14820 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14821 echo "$as_me:$LINENO: result: yes" >&5
14822echo "${ECHO_T}yes" >&6
14823else
14824# FIXME - insert some real tests, host_os isn't really good enough
14825 case $host_os in
14826 darwin*)
14827 if test -n "$STRIP" ; then
14828 striplib="$STRIP -x"
14829 echo "$as_me:$LINENO: result: yes" >&5
14830echo "${ECHO_T}yes" >&6
14831 else
14832 echo "$as_me:$LINENO: result: no" >&5
14833echo "${ECHO_T}no" >&6
14834fi
14835 ;;
14836 *)
14837 echo "$as_me:$LINENO: result: no" >&5
14838echo "${ECHO_T}no" >&6
14839 ;;
14840 esac
14841fi
14842
14843
John Criswell47fdd832003-07-14 16:52:07 +000014844
14845# The else clause should only fire when bootstrapping the
14846# libtool distribution, otherwise you forgot to ship ltmain.sh
14847# with your package, and you will get complaints that there are
14848# no rules to generate ltmain.sh.
14849if test -f "$ltmain"; then
14850 # See if we are running on zsh, and set the options which allow our commands through
14851 # without removal of \ escapes.
14852 if test -n "${ZSH_VERSION+set}" ; then
14853 setopt NO_GLOB_SUBST
14854 fi
14855 # Now quote all the things that may contain metacharacters while being
14856 # careful not to overquote the AC_SUBSTed values. We take copies of the
14857 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014858 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14859 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14862 deplibs_check_method reload_flag reload_cmds need_locks \
14863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14864 lt_cv_sys_global_symbol_to_c_name_address \
14865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14866 old_postinstall_cmds old_postuninstall_cmds \
14867 compiler_F77 \
14868 CC_F77 \
14869 LD_F77 \
14870 lt_prog_compiler_wl_F77 \
14871 lt_prog_compiler_pic_F77 \
14872 lt_prog_compiler_static_F77 \
14873 lt_prog_compiler_no_builtin_flag_F77 \
14874 export_dynamic_flag_spec_F77 \
14875 thread_safe_flag_spec_F77 \
14876 whole_archive_flag_spec_F77 \
14877 enable_shared_with_static_runtimes_F77 \
14878 old_archive_cmds_F77 \
14879 old_archive_from_new_cmds_F77 \
14880 predep_objects_F77 \
14881 postdep_objects_F77 \
14882 predeps_F77 \
14883 postdeps_F77 \
14884 compiler_lib_search_path_F77 \
14885 archive_cmds_F77 \
14886 archive_expsym_cmds_F77 \
14887 postinstall_cmds_F77 \
14888 postuninstall_cmds_F77 \
14889 old_archive_from_expsyms_cmds_F77 \
14890 allow_undefined_flag_F77 \
14891 no_undefined_flag_F77 \
14892 export_symbols_cmds_F77 \
14893 hardcode_libdir_flag_spec_F77 \
14894 hardcode_libdir_flag_spec_ld_F77 \
14895 hardcode_libdir_separator_F77 \
14896 hardcode_automatic_F77 \
14897 module_cmds_F77 \
14898 module_expsym_cmds_F77 \
14899 lt_cv_prog_compiler_c_o_F77 \
14900 exclude_expsyms_F77 \
14901 include_expsyms_F77; do
14902
14903 case $var in
14904 old_archive_cmds_F77 | \
14905 old_archive_from_new_cmds_F77 | \
14906 archive_cmds_F77 | \
14907 archive_expsym_cmds_F77 | \
14908 module_cmds_F77 | \
14909 module_expsym_cmds_F77 | \
14910 old_archive_from_expsyms_cmds_F77 | \
14911 export_symbols_cmds_F77 | \
14912 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14913 postinstall_cmds | postuninstall_cmds | \
14914 old_postinstall_cmds | old_postuninstall_cmds | \
14915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14916 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014917 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000014918 ;;
14919 *)
14920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14921 ;;
14922 esac
14923 done
14924
14925 case $lt_echo in
14926 *'\$0 --fallback-echo"')
14927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14928 ;;
14929 esac
14930
14931cfgfile="$ofile"
14932
14933 cat <<__EOF__ >> "$cfgfile"
14934# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14935
14936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14937
14938# Shell to use when invoking shell scripts.
14939SHELL=$lt_SHELL
14940
14941# Whether or not to build shared libraries.
14942build_libtool_libs=$enable_shared
14943
14944# Whether or not to build static libraries.
14945build_old_libs=$enable_static
14946
14947# Whether or not to add -lc for building shared libraries.
14948build_libtool_need_lc=$archive_cmds_need_lc_F77
14949
14950# Whether or not to disallow shared libs when runtime libs are static
14951allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14952
14953# Whether or not to optimize for fast installation.
14954fast_install=$enable_fast_install
14955
14956# The host system.
14957host_alias=$host_alias
14958host=$host
14959
14960# An echo program that does not interpret backslashes.
14961echo=$lt_echo
14962
14963# The archiver.
14964AR=$lt_AR
14965AR_FLAGS=$lt_AR_FLAGS
14966
14967# A C compiler.
14968LTCC=$lt_LTCC
14969
14970# A language-specific compiler.
14971CC=$lt_compiler_F77
14972
14973# Is the compiler the GNU C compiler?
14974with_gcc=$GCC_F77
14975
14976# An ERE matcher.
14977EGREP=$lt_EGREP
14978
14979# The linker used to build libraries.
14980LD=$lt_LD_F77
14981
14982# Whether we need hard or soft links.
14983LN_S=$lt_LN_S
14984
14985# A BSD-compatible nm program.
14986NM=$lt_NM
14987
14988# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014989STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000014990
14991# Used to examine libraries when file_magic_cmd begins "file"
14992MAGIC_CMD=$MAGIC_CMD
14993
14994# Used on cygwin: DLL creation program.
14995DLLTOOL="$DLLTOOL"
14996
14997# Used on cygwin: object dumper.
14998OBJDUMP="$OBJDUMP"
14999
15000# Used on cygwin: assembler.
15001AS="$AS"
15002
15003# The name of the directory that contains temporary libtool files.
15004objdir=$objdir
15005
15006# How to create reloadable object files.
15007reload_flag=$lt_reload_flag
15008reload_cmds=$lt_reload_cmds
15009
15010# How to pass a linker flag through the compiler.
15011wl=$lt_lt_prog_compiler_wl_F77
15012
15013# Object file suffix (normally "o").
15014objext="$ac_objext"
15015
15016# Old archive suffix (normally "a").
15017libext="$libext"
15018
15019# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015020shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015021
15022# Executable file suffix (normally "").
15023exeext="$exeext"
15024
15025# Additional compiler flags for building library objects.
15026pic_flag=$lt_lt_prog_compiler_pic_F77
15027pic_mode=$pic_mode
15028
15029# What is the maximum length of a command?
15030max_cmd_len=$lt_cv_sys_max_cmd_len
15031
15032# Does compiler simultaneously support -c and -o options?
15033compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15034
15035# Must we lock files when doing compilation ?
15036need_locks=$lt_need_locks
15037
15038# Do we need the lib prefix for modules?
15039need_lib_prefix=$need_lib_prefix
15040
15041# Do we need a version for libraries?
15042need_version=$need_version
15043
15044# Whether dlopen is supported.
15045dlopen_support=$enable_dlopen
15046
15047# Whether dlopen of programs is supported.
15048dlopen_self=$enable_dlopen_self
15049
15050# Whether dlopen of statically linked programs is supported.
15051dlopen_self_static=$enable_dlopen_self_static
15052
15053# Compiler flag to prevent dynamic linking.
15054link_static_flag=$lt_lt_prog_compiler_static_F77
15055
15056# Compiler flag to turn off builtin functions.
15057no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15058
15059# Compiler flag to allow reflexive dlopens.
15060export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15061
15062# Compiler flag to generate shared objects directly from archives.
15063whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15064
15065# Compiler flag to generate thread-safe objects.
15066thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15067
15068# Library versioning type.
15069version_type=$version_type
15070
15071# Format of library name prefix.
15072libname_spec=$lt_libname_spec
15073
15074# List of archive names. First name is the real one, the rest are links.
15075# The last name is the one that the linker finds with -lNAME.
15076library_names_spec=$lt_library_names_spec
15077
15078# The coded name of the library, if different from the real name.
15079soname_spec=$lt_soname_spec
15080
15081# Commands used to build and install an old-style archive.
15082RANLIB=$lt_RANLIB
15083old_archive_cmds=$lt_old_archive_cmds_F77
15084old_postinstall_cmds=$lt_old_postinstall_cmds
15085old_postuninstall_cmds=$lt_old_postuninstall_cmds
15086
15087# Create an old-style archive from a shared archive.
15088old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15089
15090# Create a temporary old-style archive to link instead of a shared archive.
15091old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15092
15093# Commands used to build and install a shared archive.
15094archive_cmds=$lt_archive_cmds_F77
15095archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15096postinstall_cmds=$lt_postinstall_cmds
15097postuninstall_cmds=$lt_postuninstall_cmds
15098
15099# Commands used to build a loadable module (assumed same as above if empty)
15100module_cmds=$lt_module_cmds_F77
15101module_expsym_cmds=$lt_module_expsym_cmds_F77
15102
15103# Commands to strip libraries.
15104old_striplib=$lt_old_striplib
15105striplib=$lt_striplib
15106
15107# Dependencies to place before the objects being linked to create a
15108# shared library.
15109predep_objects=$lt_predep_objects_F77
15110
15111# Dependencies to place after the objects being linked to create a
15112# shared library.
15113postdep_objects=$lt_postdep_objects_F77
15114
15115# Dependencies to place before the objects being linked to create a
15116# shared library.
15117predeps=$lt_predeps_F77
15118
15119# Dependencies to place after the objects being linked to create a
15120# shared library.
15121postdeps=$lt_postdeps_F77
15122
15123# The library search path used internally by the compiler when linking
15124# a shared library.
15125compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15126
15127# Method to check whether dependent libraries are shared objects.
15128deplibs_check_method=$lt_deplibs_check_method
15129
15130# Command to use when deplibs_check_method == file_magic.
15131file_magic_cmd=$lt_file_magic_cmd
15132
15133# Flag that allows shared libraries with undefined symbols to be built.
15134allow_undefined_flag=$lt_allow_undefined_flag_F77
15135
15136# Flag that forces no undefined symbols.
15137no_undefined_flag=$lt_no_undefined_flag_F77
15138
15139# Commands used to finish a libtool library installation in a directory.
15140finish_cmds=$lt_finish_cmds
15141
15142# Same as above, but a single script fragment to be evaled but not shown.
15143finish_eval=$lt_finish_eval
15144
15145# Take the output of nm and produce a listing of raw symbols and C names.
15146global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15147
15148# Transform the output of nm in a proper C declaration
15149global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15150
15151# Transform the output of nm in a C name address pair
15152global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15153
15154# This is the shared library runtime path variable.
15155runpath_var=$runpath_var
15156
15157# This is the shared library path variable.
15158shlibpath_var=$shlibpath_var
15159
15160# Is shlibpath searched before the hard-coded library search path?
15161shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15162
15163# How to hardcode a shared library path into an executable.
15164hardcode_action=$hardcode_action_F77
15165
15166# Whether we should hardcode library paths into libraries.
15167hardcode_into_libs=$hardcode_into_libs
15168
15169# Flag to hardcode \$libdir into a binary during linking.
15170# This must work even if \$libdir does not exist.
15171hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15172
15173# If ld is used when linking, flag to hardcode \$libdir into
15174# a binary during linking. This must work even if \$libdir does
15175# not exist.
15176hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15177
15178# Whether we need a single -rpath flag with a separated argument.
15179hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15180
15181# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15182# resulting binary.
15183hardcode_direct=$hardcode_direct_F77
15184
15185# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15186# resulting binary.
15187hardcode_minus_L=$hardcode_minus_L_F77
15188
15189# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15190# the resulting binary.
15191hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15192
15193# Set to yes if building a shared library automatically hardcodes DIR into the library
15194# and all subsequent libraries and executables linked against it.
15195hardcode_automatic=$hardcode_automatic_F77
15196
15197# Variables whose values should be saved in libtool wrapper scripts and
15198# restored at relink time.
15199variables_saved_for_relink="$variables_saved_for_relink"
15200
15201# Whether libtool must link a program against all its dependency libraries.
15202link_all_deplibs=$link_all_deplibs_F77
15203
15204# Compile-time system search path for libraries
15205sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15206
15207# Run-time system search path for libraries
15208sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15209
15210# Fix the shell variable \$srcfile for the compiler.
15211fix_srcfile_path="$fix_srcfile_path_F77"
15212
15213# Set to yes if exported symbols are required.
15214always_export_symbols=$always_export_symbols_F77
15215
15216# The commands to list exported symbols.
15217export_symbols_cmds=$lt_export_symbols_cmds_F77
15218
15219# The commands to extract the exported symbol list from a shared archive.
15220extract_expsyms_cmds=$lt_extract_expsyms_cmds
15221
15222# Symbols that should not be listed in the preloaded symbols.
15223exclude_expsyms=$lt_exclude_expsyms_F77
15224
15225# Symbols that must always be exported.
15226include_expsyms=$lt_include_expsyms_F77
15227
15228# ### END LIBTOOL TAG CONFIG: $tagname
15229
15230__EOF__
15231
15232
15233else
15234 # If there is no Makefile yet, we rely on a make rule to execute
15235 # `config.status --recheck' to rerun these tests and create the
15236 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015237 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15238 if test -f "$ltmain_in"; then
15239 test -f Makefile && make "$ltmain"
15240 fi
John Criswell47fdd832003-07-14 16:52:07 +000015241fi
15242
15243
15244ac_ext=c
15245ac_cpp='$CPP $CPPFLAGS'
15246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15248ac_compiler_gnu=$ac_cv_c_compiler_gnu
15249
15250CC="$lt_save_CC"
15251
15252 else
15253 tagname=""
15254 fi
15255 ;;
15256
15257 GCJ)
15258 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015259 ac_ext=c
15260ac_cpp='$CPP $CPPFLAGS'
15261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15263ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000015264
15265
15266# Source file extension for Java test sources.
15267ac_ext=java
15268
15269# Object file extension for compiled Java test sources.
15270objext=o
15271objext_GCJ=$objext
15272
15273# Code to be used in simple compile tests
15274lt_simple_compile_test_code="class foo {}\n"
15275
15276# Code to be used in simple link tests
15277lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15278
15279# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15280
15281# If no C compiler was specified, use CC.
15282LTCC=${LTCC-"$CC"}
15283
15284# Allow CC to be a program name with arguments.
15285compiler=$CC
15286
15287
15288# Allow CC to be a program name with arguments.
15289lt_save_CC="$CC"
15290CC=${GCJ-"gcj"}
15291compiler=$CC
15292compiler_GCJ=$CC
15293
15294# GCJ did not exist at the time GCC didn't implicitly link libc in.
15295archive_cmds_need_lc_GCJ=no
15296
John Criswell47fdd832003-07-14 16:52:07 +000015297
15298lt_prog_compiler_no_builtin_flag_GCJ=
15299
15300if test "$GCC" = yes; then
15301 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15302
Reid Spencer2706f8c2004-09-19 23:53:36 +000015303
15304echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015305echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15306if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308else
15309 lt_cv_prog_compiler_rtti_exceptions=no
15310 ac_outfile=conftest.$ac_objext
15311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15312 lt_compiler_flag="-fno-rtti -fno-exceptions"
15313 # Insert the option either (1) after the last *FLAGS variable, or
15314 # (2) before a word containing "conftest.", or (3) at the end.
15315 # Note that $ac_compile itself does not contain backslashes and begins
15316 # with a dollar sign (not a hyphen), so the echo should work correctly.
15317 # The option is referenced via a variable to avoid confusing sed.
15318 lt_compile=`echo "$ac_compile" | $SED \
15319 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15321 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000015322 (eval echo "\"\$as_me:15322: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015323 (eval "$lt_compile" 2>conftest.err)
15324 ac_status=$?
15325 cat conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000015326 echo "$as_me:15326: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015327 if (exit $ac_status) && test -s "$ac_outfile"; then
15328 # The compiler can only warn and ignore the option if not recognized
15329 # So say no if there are warnings
15330 if test ! -s conftest.err; then
15331 lt_cv_prog_compiler_rtti_exceptions=yes
15332 fi
15333 fi
15334 $rm conftest*
15335
15336fi
15337echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15338echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15339
15340if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15341 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15342else
15343 :
15344fi
15345
15346fi
15347
15348lt_prog_compiler_wl_GCJ=
15349lt_prog_compiler_pic_GCJ=
15350lt_prog_compiler_static_GCJ=
15351
15352echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15353echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15354
15355 if test "$GCC" = yes; then
15356 lt_prog_compiler_wl_GCJ='-Wl,'
15357 lt_prog_compiler_static_GCJ='-static'
15358
15359 case $host_os in
15360 aix*)
15361 # All AIX code is PIC.
15362 if test "$host_cpu" = ia64; then
15363 # AIX 5 now supports IA64 processor
15364 lt_prog_compiler_static_GCJ='-Bstatic'
15365 fi
15366 ;;
15367
15368 amigaos*)
15369 # FIXME: we need at least 68020 code to build shared libraries, but
15370 # adding the `-m68020' flag to GCC prevents building anything better,
15371 # like `-m68040'.
15372 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15373 ;;
15374
15375 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15376 # PIC is the default for these OSes.
15377 ;;
15378
15379 mingw* | pw32* | os2*)
15380 # This hack is so that the source file can tell whether it is being
15381 # built for inclusion in a dll (and should export symbols for example).
15382 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15383 ;;
15384
15385 darwin* | rhapsody*)
15386 # PIC is the default on this platform
15387 # Common symbols not allowed in MH_DYLIB files
15388 lt_prog_compiler_pic_GCJ='-fno-common'
15389 ;;
15390
15391 msdosdjgpp*)
15392 # Just because we use GCC doesn't mean we suddenly get shared libraries
15393 # on systems that don't support them.
15394 lt_prog_compiler_can_build_shared_GCJ=no
15395 enable_shared=no
15396 ;;
15397
15398 sysv4*MP*)
15399 if test -d /usr/nec; then
15400 lt_prog_compiler_pic_GCJ=-Kconform_pic
15401 fi
15402 ;;
15403
15404 hpux*)
15405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15406 # not for PA HP-UX.
15407 case "$host_cpu" in
15408 hppa*64*|ia64*)
15409 # +Z the default
15410 ;;
15411 *)
15412 lt_prog_compiler_pic_GCJ='-fPIC'
15413 ;;
15414 esac
15415 ;;
15416
15417 *)
15418 lt_prog_compiler_pic_GCJ='-fPIC'
15419 ;;
15420 esac
15421 else
15422 # PORTME Check for flag to pass linker flags through the system compiler.
15423 case $host_os in
15424 aix*)
15425 lt_prog_compiler_wl_GCJ='-Wl,'
15426 if test "$host_cpu" = ia64; then
15427 # AIX 5 now supports IA64 processor
15428 lt_prog_compiler_static_GCJ='-Bstatic'
15429 else
15430 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15431 fi
15432 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015433 darwin*)
15434 # PIC is the default on this platform
15435 # Common symbols not allowed in MH_DYLIB files
15436 case "$cc_basename" in
15437 xlc*)
15438 lt_prog_compiler_pic_GCJ='-qnocommon'
15439 lt_prog_compiler_wl_GCJ='-Wl,'
15440 ;;
15441 esac
15442 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015443
15444 mingw* | pw32* | os2*)
15445 # This hack is so that the source file can tell whether it is being
15446 # built for inclusion in a dll (and should export symbols for example).
15447 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15448 ;;
15449
15450 hpux9* | hpux10* | hpux11*)
15451 lt_prog_compiler_wl_GCJ='-Wl,'
15452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15453 # not for PA HP-UX.
15454 case "$host_cpu" in
15455 hppa*64*|ia64*)
15456 # +Z the default
15457 ;;
15458 *)
15459 lt_prog_compiler_pic_GCJ='+Z'
15460 ;;
15461 esac
15462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15463 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15464 ;;
15465
15466 irix5* | irix6* | nonstopux*)
15467 lt_prog_compiler_wl_GCJ='-Wl,'
15468 # PIC (with -KPIC) is the default.
15469 lt_prog_compiler_static_GCJ='-non_shared'
15470 ;;
15471
15472 newsos6)
15473 lt_prog_compiler_pic_GCJ='-KPIC'
15474 lt_prog_compiler_static_GCJ='-Bstatic'
15475 ;;
15476
15477 linux*)
15478 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015479 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015480 lt_prog_compiler_wl_GCJ='-Wl,'
15481 lt_prog_compiler_pic_GCJ='-KPIC'
15482 lt_prog_compiler_static_GCJ='-static'
15483 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015484 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015485 lt_prog_compiler_wl_GCJ='-Wl,'
15486 # All Alpha code is PIC.
15487 lt_prog_compiler_static_GCJ='-non_shared'
15488 ;;
15489 esac
15490 ;;
15491
15492 osf3* | osf4* | osf5*)
15493 lt_prog_compiler_wl_GCJ='-Wl,'
15494 # All OSF/1 code is PIC.
15495 lt_prog_compiler_static_GCJ='-non_shared'
15496 ;;
15497
15498 sco3.2v5*)
15499 lt_prog_compiler_pic_GCJ='-Kpic'
15500 lt_prog_compiler_static_GCJ='-dn'
15501 ;;
15502
15503 solaris*)
15504 lt_prog_compiler_wl_GCJ='-Wl,'
15505 lt_prog_compiler_pic_GCJ='-KPIC'
15506 lt_prog_compiler_static_GCJ='-Bstatic'
15507 ;;
15508
15509 sunos4*)
15510 lt_prog_compiler_wl_GCJ='-Qoption ld '
15511 lt_prog_compiler_pic_GCJ='-PIC'
15512 lt_prog_compiler_static_GCJ='-Bstatic'
15513 ;;
15514
15515 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15516 lt_prog_compiler_wl_GCJ='-Wl,'
15517 lt_prog_compiler_pic_GCJ='-KPIC'
15518 lt_prog_compiler_static_GCJ='-Bstatic'
15519 ;;
15520
15521 sysv4*MP*)
15522 if test -d /usr/nec ;then
15523 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15524 lt_prog_compiler_static_GCJ='-Bstatic'
15525 fi
15526 ;;
15527
15528 uts4*)
15529 lt_prog_compiler_pic_GCJ='-pic'
15530 lt_prog_compiler_static_GCJ='-Bstatic'
15531 ;;
15532
15533 *)
15534 lt_prog_compiler_can_build_shared_GCJ=no
15535 ;;
15536 esac
15537 fi
15538
15539echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15540echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15541
15542#
15543# Check to make sure the PIC flag actually works.
15544#
15545if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015546
15547echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015548echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15549if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551else
15552 lt_prog_compiler_pic_works_GCJ=no
15553 ac_outfile=conftest.$ac_objext
15554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15555 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15556 # Insert the option either (1) after the last *FLAGS variable, or
15557 # (2) before a word containing "conftest.", or (3) at the end.
15558 # Note that $ac_compile itself does not contain backslashes and begins
15559 # with a dollar sign (not a hyphen), so the echo should work correctly.
15560 # The option is referenced via a variable to avoid confusing sed.
15561 lt_compile=`echo "$ac_compile" | $SED \
15562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15564 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000015565 (eval echo "\"\$as_me:15565: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015566 (eval "$lt_compile" 2>conftest.err)
15567 ac_status=$?
15568 cat conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000015569 echo "$as_me:15569: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015570 if (exit $ac_status) && test -s "$ac_outfile"; then
15571 # The compiler can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 if test ! -s conftest.err; then
15574 lt_prog_compiler_pic_works_GCJ=yes
15575 fi
15576 fi
15577 $rm conftest*
15578
15579fi
15580echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15581echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15582
15583if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15584 case $lt_prog_compiler_pic_GCJ in
15585 "" | " "*) ;;
15586 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15587 esac
15588else
15589 lt_prog_compiler_pic_GCJ=
15590 lt_prog_compiler_can_build_shared_GCJ=no
15591fi
15592
15593fi
15594case "$host_os" in
15595 # For platforms which do not support PIC, -DPIC is meaningless:
15596 *djgpp*)
15597 lt_prog_compiler_pic_GCJ=
15598 ;;
15599 *)
15600 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15601 ;;
15602esac
15603
15604echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15605echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15606if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15608else
15609 lt_cv_prog_compiler_c_o_GCJ=no
15610 $rm -r conftest 2>/dev/null
15611 mkdir conftest
15612 cd conftest
15613 mkdir out
15614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15615
John Criswell47fdd832003-07-14 16:52:07 +000015616 lt_compiler_flag="-o out/conftest2.$ac_objext"
15617 # Insert the option either (1) after the last *FLAGS variable, or
15618 # (2) before a word containing "conftest.", or (3) at the end.
15619 # Note that $ac_compile itself does not contain backslashes and begins
15620 # with a dollar sign (not a hyphen), so the echo should work correctly.
15621 lt_compile=`echo "$ac_compile" | $SED \
15622 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15624 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b93e7a2004-09-21 17:14:44 +000015625 (eval echo "\"\$as_me:15625: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015626 (eval "$lt_compile" 2>out/conftest.err)
15627 ac_status=$?
15628 cat out/conftest.err >&5
Reid Spencer8b93e7a2004-09-21 17:14:44 +000015629 echo "$as_me:15629: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15631 then
15632 # The compiler can only warn and ignore the option if not recognized
15633 # So say no if there are warnings
15634 if test ! -s out/conftest.err; then
15635 lt_cv_prog_compiler_c_o_GCJ=yes
15636 fi
15637 fi
15638 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000015639 $rm conftest*
15640 # SGI C++ compiler will create directory out/ii_files/ for
15641 # template instantiation
15642 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15643 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015644 cd ..
15645 rmdir conftest
15646 $rm conftest*
15647
15648fi
15649echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15650echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15651
15652
15653hard_links="nottested"
15654if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15655 # do not overwrite the value of need_locks provided by the user
15656 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15657echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15658 hard_links=yes
15659 $rm conftest*
15660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15661 touch conftest.a
15662 ln conftest.a conftest.b 2>&5 || hard_links=no
15663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15664 echo "$as_me:$LINENO: result: $hard_links" >&5
15665echo "${ECHO_T}$hard_links" >&6
15666 if test "$hard_links" = no; then
15667 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15668echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15669 need_locks=warn
15670 fi
15671else
15672 need_locks=no
15673fi
15674
15675echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15676echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15677
15678 runpath_var=
15679 allow_undefined_flag_GCJ=
15680 enable_shared_with_static_runtimes_GCJ=no
15681 archive_cmds_GCJ=
15682 archive_expsym_cmds_GCJ=
15683 old_archive_From_new_cmds_GCJ=
15684 old_archive_from_expsyms_cmds_GCJ=
15685 export_dynamic_flag_spec_GCJ=
15686 whole_archive_flag_spec_GCJ=
15687 thread_safe_flag_spec_GCJ=
15688 hardcode_libdir_flag_spec_GCJ=
15689 hardcode_libdir_flag_spec_ld_GCJ=
15690 hardcode_libdir_separator_GCJ=
15691 hardcode_direct_GCJ=no
15692 hardcode_minus_L_GCJ=no
15693 hardcode_shlibpath_var_GCJ=unsupported
15694 link_all_deplibs_GCJ=unknown
15695 hardcode_automatic_GCJ=no
15696 module_cmds_GCJ=
15697 module_expsym_cmds_GCJ=
15698 always_export_symbols_GCJ=no
15699 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15700 # include_expsyms should be a list of space-separated symbols to be *always*
15701 # included in the symbol list
15702 include_expsyms_GCJ=
15703 # exclude_expsyms can be an extended regexp of symbols to exclude
15704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15706 # as well as any symbol that contains `d'.
15707 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15709 # platforms (ab)use it in PIC code, but their linkers get confused if
15710 # the symbol is explicitly referenced. Since portable code cannot
15711 # rely on this symbol name, it's probably fine to never include it in
15712 # preloaded symbol tables.
15713 extract_expsyms_cmds=
15714
15715 case $host_os in
15716 cygwin* | mingw* | pw32*)
15717 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15718 # When not using gcc, we currently assume that we are using
15719 # Microsoft Visual C++.
15720 if test "$GCC" != yes; then
15721 with_gnu_ld=no
15722 fi
15723 ;;
15724 openbsd*)
15725 with_gnu_ld=no
15726 ;;
15727 esac
15728
15729 ld_shlibs_GCJ=yes
15730 if test "$with_gnu_ld" = yes; then
15731 # If archive_cmds runs LD, not CC, wlarc should be empty
15732 wlarc='${wl}'
15733
15734 # See if GNU ld supports shared libraries.
15735 case $host_os in
15736 aix3* | aix4* | aix5*)
15737 # On AIX/PPC, the GNU linker is very broken
15738 if test "$host_cpu" != ia64; then
15739 ld_shlibs_GCJ=no
15740 cat <<EOF 1>&2
15741
15742*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15743*** to be unable to reliably create shared libraries on AIX.
15744*** Therefore, libtool is disabling shared libraries support. If you
15745*** really care for shared libraries, you may want to modify your PATH
15746*** so that a non-GNU linker is found, and then restart.
15747
15748EOF
15749 fi
15750 ;;
15751
15752 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015753 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)'
John Criswell47fdd832003-07-14 16:52:07 +000015754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15755 hardcode_minus_L_GCJ=yes
15756
15757 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15758 # that the semantics of dynamic libraries on AmigaOS, at least up
15759 # to version 4, is to share data among multiple programs linked
15760 # with the same dynamic library. Since this doesn't match the
15761 # behavior of shared libraries on other platforms, we can't use
15762 # them.
15763 ld_shlibs_GCJ=no
15764 ;;
15765
15766 beos*)
15767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15768 allow_undefined_flag_GCJ=unsupported
15769 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15770 # support --undefined. This deserves some investigation. FIXME
15771 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 else
15773 ld_shlibs_GCJ=no
15774 fi
15775 ;;
15776
15777 cygwin* | mingw* | pw32*)
15778 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15779 # as there is no search path for DLLs.
15780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781 allow_undefined_flag_GCJ=unsupported
15782 always_export_symbols_GCJ=no
15783 enable_shared_with_static_runtimes_GCJ=yes
15784 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15785
15786 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15787 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15788 # If the export-symbols file already is a .def file (1st line
15789 # is EXPORTS), use it as is; otherwise, prepend...
15790 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15791 cp $export_symbols $output_objdir/$soname.def;
15792 else
15793 echo EXPORTS > $output_objdir/$soname.def;
15794 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015795 fi;$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
John Criswell47fdd832003-07-14 16:52:07 +000015796 else
15797 ld_shlibs=no
15798 fi
15799 ;;
15800
15801 netbsd*)
15802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15803 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15804 wlarc=
15805 else
15806 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15807 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15808 fi
15809 ;;
15810
15811 solaris* | sysv5*)
15812 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15813 ld_shlibs_GCJ=no
15814 cat <<EOF 1>&2
15815
15816*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15817*** create shared libraries on Solaris systems. Therefore, libtool
15818*** is disabling shared libraries support. We urge you to upgrade GNU
15819*** binutils to release 2.9.1 or newer. Another option is to modify
15820*** your PATH or compiler configuration so that the native linker is
15821*** used, and then restart.
15822
15823EOF
15824 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15826 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15827 else
15828 ld_shlibs_GCJ=no
15829 fi
15830 ;;
15831
15832 sunos4*)
15833 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15834 wlarc=
15835 hardcode_direct_GCJ=yes
15836 hardcode_shlibpath_var_GCJ=no
15837 ;;
15838
Reid Spencer2706f8c2004-09-19 23:53:36 +000015839 linux*)
15840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15841 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842 archive_cmds_GCJ="$tmp_archive_cmds"
15843 supports_anon_versioning=no
15844 case `$LD -v 2>/dev/null` in
15845 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15848 *\ 2.11.*) ;; # other 2.11 versions
15849 *) supports_anon_versioning=yes ;;
15850 esac
15851 if test $supports_anon_versioning = yes; then
15852 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15853 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15854 else
15855 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15856 fi
15857 else
15858 ld_shlibs_GCJ=no
15859 fi
15860 ;;
15861
John Criswell47fdd832003-07-14 16:52:07 +000015862 *)
15863 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15864 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15865 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15866 else
15867 ld_shlibs_GCJ=no
15868 fi
15869 ;;
15870 esac
15871
15872 if test "$ld_shlibs_GCJ" = yes; then
15873 runpath_var=LD_RUN_PATH
15874 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15875 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15876 # ancient GNU ld didn't support --whole-archive et. al.
15877 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15878 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15879 else
15880 whole_archive_flag_spec_GCJ=
15881 fi
15882 fi
15883 else
15884 # PORTME fill in a description of your system's linker (not GNU ld)
15885 case $host_os in
15886 aix3*)
15887 allow_undefined_flag_GCJ=unsupported
15888 always_export_symbols_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015889 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'
John Criswell47fdd832003-07-14 16:52:07 +000015890 # Note: this linker hardcodes the directories in LIBPATH if there
15891 # are no directories specified by -L.
15892 hardcode_minus_L_GCJ=yes
15893 if test "$GCC" = yes && test -z "$link_static_flag"; then
15894 # Neither direct hardcoding nor static linking is supported with a
15895 # broken collect2.
15896 hardcode_direct_GCJ=unsupported
15897 fi
15898 ;;
15899
15900 aix4* | aix5*)
15901 if test "$host_cpu" = ia64; then
15902 # On IA64, the linker does run time linking by default, so we don't
15903 # have to do anything special.
15904 aix_use_runtimelinking=no
15905 exp_sym_flag='-Bexport'
15906 no_entry_flag=""
15907 else
15908 # If we're using GNU nm, then we don't want the "-C" option.
15909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15911 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'
15912 else
15913 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'
15914 fi
15915 aix_use_runtimelinking=no
15916
15917 # Test if we are trying to use run time linking or normal
15918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15919 # need to do runtime linking.
15920 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15921 for ld_flag in $LDFLAGS; do
15922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15923 aix_use_runtimelinking=yes
15924 break
15925 fi
15926 done
15927 esac
15928
15929 exp_sym_flag='-bexport'
15930 no_entry_flag='-bnoentry'
15931 fi
15932
15933 # When large executables or shared objects are built, AIX ld can
15934 # have problems creating the table of contents. If linking a library
15935 # or program results in "error TOC overflow" add -mminimal-toc to
15936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15938
15939 archive_cmds_GCJ=''
15940 hardcode_direct_GCJ=yes
15941 hardcode_libdir_separator_GCJ=':'
15942 link_all_deplibs_GCJ=yes
15943
15944 if test "$GCC" = yes; then
15945 case $host_os in aix4.012|aix4.012.*)
15946 # We only want to do this on AIX 4.2 and lower, the check
15947 # below for broken collect2 doesn't work under 4.3+
15948 collect2name=`${CC} -print-prog-name=collect2`
15949 if test -f "$collect2name" && \
15950 strings "$collect2name" | grep resolve_lib_name >/dev/null
15951 then
15952 # We have reworked collect2
15953 hardcode_direct_GCJ=yes
15954 else
15955 # We have old collect2
15956 hardcode_direct_GCJ=unsupported
15957 # It fails to find uninstalled libraries when the uninstalled
15958 # path is not listed in the libpath. Setting hardcode_minus_L
15959 # to unsupported forces relinking
15960 hardcode_minus_L_GCJ=yes
15961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15962 hardcode_libdir_separator_GCJ=
15963 fi
15964 esac
15965 shared_flag='-shared'
15966 else
15967 # not using gcc
15968 if test "$host_cpu" = ia64; then
15969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15970 # chokes on -Wl,-G. The following line is correct:
15971 shared_flag='-G'
15972 else
15973 if test "$aix_use_runtimelinking" = yes; then
15974 shared_flag='${wl}-G'
15975 else
15976 shared_flag='${wl}-bM:SRE'
15977 fi
15978 fi
15979 fi
15980
15981 # It seems that -bexpall does not export symbols beginning with
15982 # underscore (_), so it is better to generate a list of symbols to export.
15983 always_export_symbols_GCJ=yes
15984 if test "$aix_use_runtimelinking" = yes; then
15985 # Warning - without using the other runtime loading flags (-brtl),
15986 # -berok will link without error, but may produce a broken library.
15987 allow_undefined_flag_GCJ='-berok'
15988 # Determine the default libpath from the value encoded in an empty executable.
15989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015990/* confdefs.h. */
15991_ACEOF
15992cat confdefs.h >>conftest.$ac_ext
15993cat >>conftest.$ac_ext <<_ACEOF
15994/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015995
John Criswell47fdd832003-07-14 16:52:07 +000015996int
15997main ()
15998{
15999
16000 ;
16001 return 0;
16002}
16003_ACEOF
16004rm -f conftest.$ac_objext conftest$ac_exeext
16005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016006 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026
16027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16028}'`
16029# Check for a 64-bit object if we didn't find anything.
16030if 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; }
16031}'`; fi
16032else
16033 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016034sed 's/^/| /' conftest.$ac_ext >&5
16035
John Criswell47fdd832003-07-14 16:52:07 +000016036fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016037rm -f conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016039if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16040
16041 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16042 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"
16043 else
16044 if test "$host_cpu" = ia64; then
16045 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16046 allow_undefined_flag_GCJ="-z nodefs"
16047 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"
16048 else
16049 # Determine the default libpath from the value encoded in an empty executable.
16050 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016051/* confdefs.h. */
16052_ACEOF
16053cat confdefs.h >>conftest.$ac_ext
16054cat >>conftest.$ac_ext <<_ACEOF
16055/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016056
John Criswell47fdd832003-07-14 16:52:07 +000016057int
16058main ()
16059{
16060
16061 ;
16062 return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext conftest$ac_exeext
16066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016067 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087
16088aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16089}'`
16090# Check for a 64-bit object if we didn't find anything.
16091if 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; }
16092}'`; fi
16093else
16094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016095sed 's/^/| /' conftest.$ac_ext >&5
16096
John Criswell47fdd832003-07-14 16:52:07 +000016097fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016098rm -f conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16101
16102 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16103 # Warning - without using the other run time loading flags,
16104 # -berok will link without error, but may produce a broken library.
16105 no_undefined_flag_GCJ=' ${wl}-bernotok'
16106 allow_undefined_flag_GCJ=' ${wl}-berok'
16107 # -bexpall does not export symbols beginning with underscore (_)
16108 always_export_symbols_GCJ=yes
16109 # Exported symbols can be pulled into shared objects from archives
16110 whole_archive_flag_spec_GCJ=' '
16111 archive_cmds_need_lc_GCJ=yes
16112 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016113 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'
John Criswell47fdd832003-07-14 16:52:07 +000016114 fi
16115 fi
16116 ;;
16117
16118 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119 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)'
John Criswell47fdd832003-07-14 16:52:07 +000016120 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16121 hardcode_minus_L_GCJ=yes
16122 # see comment about different semantics on the GNU ld section
16123 ld_shlibs_GCJ=no
16124 ;;
16125
Reid Spencer2706f8c2004-09-19 23:53:36 +000016126 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016127 export_dynamic_flag_spec_GCJ=-rdynamic
16128 ;;
16129
16130 cygwin* | mingw* | pw32*)
16131 # When not using gcc, we currently assume that we are using
16132 # Microsoft Visual C++.
16133 # hardcode_libdir_flag_spec is actually meaningless, as there is
16134 # no search path for DLLs.
16135 hardcode_libdir_flag_spec_GCJ=' '
16136 allow_undefined_flag_GCJ=unsupported
16137 # Tell ltmain to make .lib files, not .a files.
16138 libext=lib
16139 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016140 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016141 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016142 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
John Criswell47fdd832003-07-14 16:52:07 +000016143 # The linker will automatically build a .lib file if we build a DLL.
16144 old_archive_From_new_cmds_GCJ='true'
16145 # FIXME: Should let the user specify the lib program.
16146 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16147 fix_srcfile_path='`cygpath -w "$srcfile"`'
16148 enable_shared_with_static_runtimes_GCJ=yes
16149 ;;
16150
16151 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016152 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016153 rhapsody* | darwin1.[012])
16154 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16155 ;;
16156 *) # Darwin 1.3 on
16157 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16158 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16159 else
16160 case ${MACOSX_DEPLOYMENT_TARGET} in
16161 10.[012])
16162 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16163 ;;
16164 10.*)
16165 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16166 ;;
16167 esac
16168 fi
16169 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016170 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016171 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000016172 hardcode_direct_GCJ=no
16173 hardcode_automatic_GCJ=yes
16174 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016175 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000016176 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016177 if test "$GCC" = yes ; then
16178 output_verbose_link_cmd='echo'
16179 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16180 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16182 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16183 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}'
16184 else
16185 case "$cc_basename" in
16186 xlc*)
16187 output_verbose_link_cmd='echo'
16188 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16189 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16191 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym;$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring;nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16192 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}'
16193 ;;
16194 *)
16195 ld_shlibs_GCJ=no
16196 ;;
16197 esac
John Criswell47fdd832003-07-14 16:52:07 +000016198 fi
16199 ;;
16200
16201 dgux*)
16202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16204 hardcode_shlibpath_var_GCJ=no
16205 ;;
16206
16207 freebsd1*)
16208 ld_shlibs_GCJ=no
16209 ;;
16210
16211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16212 # support. Future versions do this automatically, but an explicit c++rt0.o
16213 # does not break anything, and helps significantly (at the cost of a little
16214 # extra space).
16215 freebsd2.2*)
16216 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16217 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16218 hardcode_direct_GCJ=yes
16219 hardcode_shlibpath_var_GCJ=no
16220 ;;
16221
16222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16223 freebsd2*)
16224 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16225 hardcode_direct_GCJ=yes
16226 hardcode_minus_L_GCJ=yes
16227 hardcode_shlibpath_var_GCJ=no
16228 ;;
16229
16230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016231 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016232 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16233 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234 hardcode_direct_GCJ=yes
16235 hardcode_shlibpath_var_GCJ=no
16236 ;;
16237
16238 hpux9*)
16239 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016240 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'
John Criswell47fdd832003-07-14 16:52:07 +000016241 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016242 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'
John Criswell47fdd832003-07-14 16:52:07 +000016243 fi
16244 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16245 hardcode_libdir_separator_GCJ=:
16246 hardcode_direct_GCJ=yes
16247
16248 # hardcode_minus_L: Not really in the search PATH,
16249 # but as the default location of the library.
16250 hardcode_minus_L_GCJ=yes
16251 export_dynamic_flag_spec_GCJ='${wl}-E'
16252 ;;
16253
16254 hpux10* | hpux11*)
16255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16256 case "$host_cpu" in
16257 hppa*64*|ia64*)
16258 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 ;;
16260 *)
16261 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16262 ;;
16263 esac
16264 else
16265 case "$host_cpu" in
16266 hppa*64*|ia64*)
16267 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 ;;
16269 *)
16270 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16271 ;;
16272 esac
16273 fi
16274 if test "$with_gnu_ld" = no; then
16275 case "$host_cpu" in
16276 hppa*64*)
16277 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16278 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16279 hardcode_libdir_separator_GCJ=:
16280 hardcode_direct_GCJ=no
16281 hardcode_shlibpath_var_GCJ=no
16282 ;;
16283 ia64*)
16284 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16285 hardcode_direct_GCJ=no
16286 hardcode_shlibpath_var_GCJ=no
16287
16288 # hardcode_minus_L: Not really in the search PATH,
16289 # but as the default location of the library.
16290 hardcode_minus_L_GCJ=yes
16291 ;;
16292 *)
16293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16294 hardcode_libdir_separator_GCJ=:
16295 hardcode_direct_GCJ=yes
16296 export_dynamic_flag_spec_GCJ='${wl}-E'
16297
16298 # hardcode_minus_L: Not really in the search PATH,
16299 # but as the default location of the library.
16300 hardcode_minus_L_GCJ=yes
16301 ;;
16302 esac
16303 fi
16304 ;;
16305
16306 irix5* | irix6* | nonstopux*)
16307 if test "$GCC" = yes; then
16308 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'
16309 else
16310 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'
16311 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16312 fi
16313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16314 hardcode_libdir_separator_GCJ=:
16315 link_all_deplibs_GCJ=yes
16316 ;;
16317
16318 netbsd*)
16319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16321 else
16322 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16323 fi
16324 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16325 hardcode_direct_GCJ=yes
16326 hardcode_shlibpath_var_GCJ=no
16327 ;;
16328
16329 newsos6)
16330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16331 hardcode_direct_GCJ=yes
16332 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16333 hardcode_libdir_separator_GCJ=:
16334 hardcode_shlibpath_var_GCJ=no
16335 ;;
16336
16337 openbsd*)
16338 hardcode_direct_GCJ=yes
16339 hardcode_shlibpath_var_GCJ=no
16340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16341 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016342 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000016343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16344 export_dynamic_flag_spec_GCJ='${wl}-E'
16345 else
16346 case $host_os in
16347 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16348 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16349 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16350 ;;
16351 *)
16352 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16354 ;;
16355 esac
16356 fi
16357 ;;
16358
16359 os2*)
16360 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16361 hardcode_minus_L_GCJ=yes
16362 allow_undefined_flag_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016363 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'
John Criswell47fdd832003-07-14 16:52:07 +000016364 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16365 ;;
16366
16367 osf3*)
16368 if test "$GCC" = yes; then
16369 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16370 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'
16371 else
16372 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16373 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'
16374 fi
16375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16376 hardcode_libdir_separator_GCJ=:
16377 ;;
16378
16379 osf4* | osf5*) # as osf3* with the addition of -msym flag
16380 if test "$GCC" = yes; then
16381 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16382 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'
16383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16384 else
16385 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16386 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016387 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; $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'
John Criswell47fdd832003-07-14 16:52:07 +000016388 # Both c and cxx compiler support -rpath directly
16389 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16390 fi
16391 hardcode_libdir_separator_GCJ=:
16392 ;;
16393
16394 sco3.2v5*)
16395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396 hardcode_shlibpath_var_GCJ=no
16397 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16398 runpath_var=LD_RUN_PATH
16399 hardcode_runpath_var=yes
16400 ;;
16401
16402 solaris*)
16403 no_undefined_flag_GCJ=' -z text'
16404 if test "$GCC" = yes; then
16405 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016406 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016407 else
16408 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016410 fi
16411 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16412 hardcode_shlibpath_var_GCJ=no
16413 case $host_os in
16414 solaris2.[0-5] | solaris2.[0-5].*) ;;
16415 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16416 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16417 esac
16418 link_all_deplibs_GCJ=yes
16419 ;;
16420
16421 sunos4*)
16422 if test "x$host_vendor" = xsequent; then
16423 # Use $CC to link under sequent, because it throws in some extra .o
16424 # files that make .init and .fini sections work.
16425 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16426 else
16427 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16428 fi
16429 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430 hardcode_direct_GCJ=yes
16431 hardcode_minus_L_GCJ=yes
16432 hardcode_shlibpath_var_GCJ=no
16433 ;;
16434
16435 sysv4)
16436 case $host_vendor in
16437 sni)
16438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16439 hardcode_direct_GCJ=yes # is this really true???
16440 ;;
16441 siemens)
16442 ## LD is ld it makes a PLAMLIB
16443 ## CC just makes a GrossModule.
16444 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16445 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16446 hardcode_direct_GCJ=no
16447 ;;
16448 motorola)
16449 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16451 ;;
16452 esac
16453 runpath_var='LD_RUN_PATH'
16454 hardcode_shlibpath_var_GCJ=no
16455 ;;
16456
16457 sysv4.3*)
16458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16459 hardcode_shlibpath_var_GCJ=no
16460 export_dynamic_flag_spec_GCJ='-Bexport'
16461 ;;
16462
16463 sysv4*MP*)
16464 if test -d /usr/nec; then
16465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_shlibpath_var_GCJ=no
16467 runpath_var=LD_RUN_PATH
16468 hardcode_runpath_var=yes
16469 ld_shlibs_GCJ=yes
16470 fi
16471 ;;
16472
16473 sysv4.2uw2*)
16474 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16475 hardcode_direct_GCJ=yes
16476 hardcode_minus_L_GCJ=no
16477 hardcode_shlibpath_var_GCJ=no
16478 hardcode_runpath_var=yes
16479 runpath_var=LD_RUN_PATH
16480 ;;
16481
16482 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16483 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16484 if test "$GCC" = yes; then
16485 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 else
16487 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 fi
16489 runpath_var='LD_RUN_PATH'
16490 hardcode_shlibpath_var_GCJ=no
16491 ;;
16492
16493 sysv5*)
16494 no_undefined_flag_GCJ=' -z text'
16495 # $CC -shared without GNU ld will not create a library from C++
16496 # object files and a static libstdc++, better avoid it by now
16497 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016498 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016499 hardcode_libdir_flag_spec_GCJ=
16500 hardcode_shlibpath_var_GCJ=no
16501 runpath_var='LD_RUN_PATH'
16502 ;;
16503
16504 uts4*)
16505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16507 hardcode_shlibpath_var_GCJ=no
16508 ;;
16509
16510 *)
16511 ld_shlibs_GCJ=no
16512 ;;
16513 esac
16514 fi
16515
16516echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16517echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16518test "$ld_shlibs_GCJ" = no && can_build_shared=no
16519
16520variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16521if test "$GCC" = yes; then
16522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16523fi
16524
16525#
16526# Do we need to explicitly link libc?
16527#
16528case "x$archive_cmds_need_lc_GCJ" in
16529x|xyes)
16530 # Assume -lc should be added
16531 archive_cmds_need_lc_GCJ=yes
16532
16533 if test "$enable_shared" = yes && test "$GCC" = yes; then
16534 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016535 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016536 # FIXME: we may have to deal with multi-command sequences.
16537 ;;
16538 '$CC '*)
16539 # Test whether the compiler implicitly links with -lc since on some
16540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16541 # to ld, don't add -lc before -lgcc.
16542 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16543echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16544 $rm conftest*
16545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16546
16547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16548 (eval $ac_compile) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } 2>conftest.err; then
16552 soname=conftest
16553 lib=conftest
16554 libobjs=conftest.$ac_objext
16555 deplibs=
16556 wl=$lt_prog_compiler_wl_GCJ
16557 compiler_flags=-v
16558 linker_flags=-v
16559 verstring=
16560 output_objdir=.
16561 libname=conftest
16562 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16563 allow_undefined_flag_GCJ=
16564 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16565 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }
16569 then
16570 archive_cmds_need_lc_GCJ=no
16571 else
16572 archive_cmds_need_lc_GCJ=yes
16573 fi
16574 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16575 else
16576 cat conftest.err 1>&5
16577 fi
16578 $rm conftest*
16579 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16580echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16581 ;;
16582 esac
16583 fi
16584 ;;
16585esac
16586
John Criswell47fdd832003-07-14 16:52:07 +000016587echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16588echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16589library_names_spec=
16590libname_spec='lib$name'
16591soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016592shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016593postinstall_cmds=
16594postuninstall_cmds=
16595finish_cmds=
16596finish_eval=
16597shlibpath_var=
16598shlibpath_overrides_runpath=unknown
16599version_type=none
16600dynamic_linker="$host_os ld.so"
16601sys_lib_dlsearch_path_spec="/lib /usr/lib"
16602if test "$GCC" = yes; then
16603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16604 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16605 # if the path contains ";" then we assume it to be the separator
16606 # otherwise default to the standard path separator (i.e. ":") - it is
16607 # assumed that no part of a normal pathname contains ";" but that should
16608 # okay in the real world where ";" in dirpaths is itself problematic.
16609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16610 else
16611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16612 fi
16613else
16614 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16615fi
16616need_lib_prefix=unknown
16617hardcode_into_libs=no
16618
16619# when you set need_version to no, make sure it does not cause -set_version
16620# flags to be left without arguments
16621need_version=unknown
16622
16623case $host_os in
16624aix3*)
16625 version_type=linux
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16627 shlibpath_var=LIBPATH
16628
16629 # AIX 3 has no versioning support, so we append a major version to the name.
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 ;;
16632
16633aix4* | aix5*)
16634 version_type=linux
16635 need_lib_prefix=no
16636 need_version=no
16637 hardcode_into_libs=yes
16638 if test "$host_cpu" = ia64; then
16639 # AIX 5 supports IA64
16640 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16641 shlibpath_var=LD_LIBRARY_PATH
16642 else
16643 # With GCC up to 2.95.x, collect2 would create an import file
16644 # for dependence libraries. The import file would start with
16645 # the line `#! .'. This would cause the generated library to
16646 # depend on `.', always an invalid library. This was fixed in
16647 # development snapshots of GCC prior to 3.0.
16648 case $host_os in
16649 aix4 | aix4.[01] | aix4.[01].*)
16650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16651 echo ' yes '
16652 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16653 :
16654 else
16655 can_build_shared=no
16656 fi
16657 ;;
16658 esac
16659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16660 # soname into executable. Probably we can add versioning support to
16661 # collect2, so additional links can be useful in future.
16662 if test "$aix_use_runtimelinking" = yes; then
16663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16664 # instead of lib<name>.a to let people know that these are not
16665 # typical AIX shared libraries.
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 else
16668 # We preserve .a as extension for shared libraries through AIX4.2
16669 # and later when we are not doing run time linking.
16670 library_names_spec='${libname}${release}.a $libname.a'
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 fi
16673 shlibpath_var=LIBPATH
16674 fi
16675 ;;
16676
16677amigaos*)
16678 library_names_spec='$libname.ixlibrary $libname.a'
16679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016680 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'
John Criswell47fdd832003-07-14 16:52:07 +000016681 ;;
16682
16683beos*)
16684 library_names_spec='${libname}${shared_ext}'
16685 dynamic_linker="$host_os ld.so"
16686 shlibpath_var=LIBRARY_PATH
16687 ;;
16688
Reid Spencer2706f8c2004-09-19 23:53:36 +000016689bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016690 version_type=linux
16691 need_version=no
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16698 # the default ld.so.conf also contains /usr/contrib/lib and
16699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16700 # libtool to hard-code these into programs
16701 ;;
16702
16703cygwin* | mingw* | pw32*)
16704 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016705 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016706 need_version=no
16707 need_lib_prefix=no
16708
16709 case $GCC,$host_os in
16710 yes,cygwin* | yes,mingw* | yes,pw32*)
16711 library_names_spec='$libname.dll.a'
16712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000016713 postinstall_cmds='base_file=`basename \${file}`;
16714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16715 dldir=$destdir/`dirname \$dlpath`;
16716 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000016717 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16719 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000016720 $rm \$dlpath'
16721 shlibpath_overrides_runpath=yes
16722
16723 case $host_os in
16724 cygwin*)
16725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016728 ;;
16729 mingw*)
16730 # MinGW DLLs use traditional 'lib' prefix
16731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16733 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16734 # It is most probably a Windows format PATH printed by
16735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16736 # path with ; separators, and with drive letters. We can handle the
16737 # drive letters (cygwin fileutils understands them), so leave them,
16738 # especially as we might pass files found there to a mingw objdump,
16739 # which wouldn't understand a cygwinified path. Ahh.
16740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16741 else
16742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16743 fi
16744 ;;
16745 pw32*)
16746 # pw32 DLLs use 'pw' prefix rather than 'lib'
16747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16748 ;;
16749 esac
16750 ;;
16751
16752 *)
16753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16754 ;;
16755 esac
16756 dynamic_linker='Win32 ld.exe'
16757 # FIXME: first we should search . and the directory the executable is in
16758 shlibpath_var=PATH
16759 ;;
16760
16761darwin* | rhapsody*)
16762 dynamic_linker="$host_os dyld"
16763 version_type=darwin
16764 need_lib_prefix=no
16765 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016766 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016767 soname_spec='${libname}${release}${major}$shared_ext'
16768 shlibpath_overrides_runpath=yes
16769 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016770 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016771 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772 if test "$GCC" = yes; then
16773 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"`
16774 else
16775 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016776 fi
16777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16778 ;;
16779
16780dgux*)
16781 version_type=linux
16782 need_lib_prefix=no
16783 need_version=no
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 ;;
16788
16789freebsd1*)
16790 dynamic_linker=no
16791 ;;
16792
Reid Spencer2706f8c2004-09-19 23:53:36 +000016793kfreebsd*-gnu)
16794 version_type=linux
16795 need_lib_prefix=no
16796 need_version=no
16797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16798 soname_spec='${libname}${release}${shared_ext}$major'
16799 shlibpath_var=LD_LIBRARY_PATH
16800 shlibpath_overrides_runpath=no
16801 hardcode_into_libs=yes
16802 dynamic_linker='GNU ld.so'
16803 ;;
16804
John Criswell47fdd832003-07-14 16:52:07 +000016805freebsd*)
16806 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16807 version_type=freebsd-$objformat
16808 case $version_type in
16809 freebsd-elf*)
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16811 need_version=no
16812 need_lib_prefix=no
16813 ;;
16814 freebsd-*)
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16816 need_version=yes
16817 ;;
16818 esac
16819 shlibpath_var=LD_LIBRARY_PATH
16820 case $host_os in
16821 freebsd2*)
16822 shlibpath_overrides_runpath=yes
16823 ;;
16824 freebsd3.01* | freebsdelf3.01*)
16825 shlibpath_overrides_runpath=yes
16826 hardcode_into_libs=yes
16827 ;;
16828 *) # from 3.2 on
16829 shlibpath_overrides_runpath=no
16830 hardcode_into_libs=yes
16831 ;;
16832 esac
16833 ;;
16834
16835gnu*)
16836 version_type=linux
16837 need_lib_prefix=no
16838 need_version=no
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 hardcode_into_libs=yes
16843 ;;
16844
16845hpux9* | hpux10* | hpux11*)
16846 # Give a soname corresponding to the major version so that dld.sl refuses to
16847 # link against other versions.
16848 version_type=sunos
16849 need_lib_prefix=no
16850 need_version=no
16851 case "$host_cpu" in
16852 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016853 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016854 hardcode_into_libs=yes
16855 dynamic_linker="$host_os dld.so"
16856 shlibpath_var=LD_LIBRARY_PATH
16857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 if test "X$HPUX_IA64_MODE" = X32; then
16861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16862 else
16863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16864 fi
16865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16866 ;;
16867 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016868 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016869 hardcode_into_libs=yes
16870 dynamic_linker="$host_os dld.sl"
16871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16877 ;;
16878 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016879 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016880 dynamic_linker="$host_os dld.sl"
16881 shlibpath_var=SHLIB_PATH
16882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 ;;
16886 esac
16887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16888 postinstall_cmds='chmod 555 $lib'
16889 ;;
16890
16891irix5* | irix6* | nonstopux*)
16892 case $host_os in
16893 nonstopux*) version_type=nonstopux ;;
16894 *)
16895 if test "$lt_cv_prog_gnu_ld" = yes; then
16896 version_type=linux
16897 else
16898 version_type=irix
16899 fi ;;
16900 esac
16901 need_lib_prefix=no
16902 need_version=no
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16905 case $host_os in
16906 irix5* | nonstopux*)
16907 libsuff= shlibsuff=
16908 ;;
16909 *)
16910 case $LD in # libtool.m4 will add one of these switches to LD
16911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16912 libsuff= shlibsuff= libmagic=32-bit;;
16913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16914 libsuff=32 shlibsuff=N32 libmagic=N32;;
16915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16917 *) libsuff= shlibsuff= libmagic=never-match;;
16918 esac
16919 ;;
16920 esac
16921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16922 shlibpath_overrides_runpath=no
16923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16925 hardcode_into_libs=yes
16926 ;;
16927
16928# No shared lib support for Linux oldld, aout, or coff.
16929linux*oldld* | linux*aout* | linux*coff*)
16930 dynamic_linker=no
16931 ;;
16932
16933# This must be Linux ELF.
16934linux*)
16935 version_type=linux
16936 need_lib_prefix=no
16937 need_version=no
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 shlibpath_overrides_runpath=no
16943 # This implies no fast_install, which is unacceptable.
16944 # Some rework will be needed to allow for fast_install
16945 # before this can be enabled.
16946 hardcode_into_libs=yes
16947
Reid Spencer2706f8c2004-09-19 23:53:36 +000016948 # Append ld.so.conf contents to the search path
16949 if test -f /etc/ld.so.conf; then
16950 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16952 fi
16953
John Criswell47fdd832003-07-14 16:52:07 +000016954 # We used to test for /lib/ld.so.1 and disable shared libraries on
16955 # powerpc, because MkLinux only supported shared libraries with the
16956 # GNU dynamic linker. Since this was broken with cross compilers,
16957 # most powerpc-linux boxes support dynamic linking these days and
16958 # people can always --disable-shared, the test was removed, and we
16959 # assume the GNU/Linux dynamic linker is in use.
16960 dynamic_linker='GNU/Linux ld.so'
16961 ;;
16962
Reid Spencer2706f8c2004-09-19 23:53:36 +000016963knetbsd*-gnu)
16964 version_type=linux
16965 need_lib_prefix=no
16966 need_version=no
16967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16968 soname_spec='${libname}${release}${shared_ext}$major'
16969 shlibpath_var=LD_LIBRARY_PATH
16970 shlibpath_overrides_runpath=no
16971 hardcode_into_libs=yes
16972 dynamic_linker='GNU ld.so'
16973 ;;
16974
John Criswell47fdd832003-07-14 16:52:07 +000016975netbsd*)
16976 version_type=sunos
16977 need_lib_prefix=no
16978 need_version=no
16979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16982 dynamic_linker='NetBSD (a.out) ld.so'
16983 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016985 soname_spec='${libname}${release}${shared_ext}$major'
16986 dynamic_linker='NetBSD ld.elf_so'
16987 fi
16988 shlibpath_var=LD_LIBRARY_PATH
16989 shlibpath_overrides_runpath=yes
16990 hardcode_into_libs=yes
16991 ;;
16992
16993newsos6)
16994 version_type=linux
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=yes
16998 ;;
16999
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017001 version_type=linux
17002 need_lib_prefix=no
17003 need_version=no
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=yes
17008 ;;
17009
17010openbsd*)
17011 version_type=sunos
17012 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017013 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016 shlibpath_var=LD_LIBRARY_PATH
17017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17018 case $host_os in
17019 openbsd2.[89] | openbsd2.[89].*)
17020 shlibpath_overrides_runpath=no
17021 ;;
17022 *)
17023 shlibpath_overrides_runpath=yes
17024 ;;
17025 esac
17026 else
17027 shlibpath_overrides_runpath=yes
17028 fi
17029 ;;
17030
17031os2*)
17032 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017033 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017034 need_lib_prefix=no
17035 library_names_spec='$libname${shared_ext} $libname.a'
17036 dynamic_linker='OS/2 ld.exe'
17037 shlibpath_var=LIBPATH
17038 ;;
17039
17040osf3* | osf4* | osf5*)
17041 version_type=osf
17042 need_lib_prefix=no
17043 need_version=no
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17046 shlibpath_var=LD_LIBRARY_PATH
17047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17049 ;;
17050
17051sco3.2v5*)
17052 version_type=osf
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 shlibpath_var=LD_LIBRARY_PATH
17056 ;;
17057
17058solaris*)
17059 version_type=linux
17060 need_lib_prefix=no
17061 need_version=no
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 shlibpath_var=LD_LIBRARY_PATH
17065 shlibpath_overrides_runpath=yes
17066 hardcode_into_libs=yes
17067 # ldd complains unless libraries are executable
17068 postinstall_cmds='chmod +x $lib'
17069 ;;
17070
17071sunos4*)
17072 version_type=sunos
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17075 shlibpath_var=LD_LIBRARY_PATH
17076 shlibpath_overrides_runpath=yes
17077 if test "$with_gnu_ld" = yes; then
17078 need_lib_prefix=no
17079 fi
17080 need_version=yes
17081 ;;
17082
17083sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17084 version_type=linux
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 case $host_vendor in
17089 sni)
17090 shlibpath_overrides_runpath=no
17091 need_lib_prefix=no
17092 export_dynamic_flag_spec='${wl}-Blargedynsym'
17093 runpath_var=LD_RUN_PATH
17094 ;;
17095 siemens)
17096 need_lib_prefix=no
17097 ;;
17098 motorola)
17099 need_lib_prefix=no
17100 need_version=no
17101 shlibpath_overrides_runpath=no
17102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17103 ;;
17104 esac
17105 ;;
17106
17107sysv4*MP*)
17108 if test -d /usr/nec ;then
17109 version_type=linux
17110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17111 soname_spec='$libname${shared_ext}.$major'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 fi
17114 ;;
17115
17116uts4*)
17117 version_type=linux
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 ;;
17122
17123*)
17124 dynamic_linker=no
17125 ;;
17126esac
17127echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17128echo "${ECHO_T}$dynamic_linker" >&6
17129test "$dynamic_linker" = no && can_build_shared=no
17130
Reid Spencer2706f8c2004-09-19 23:53:36 +000017131echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17132echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17133hardcode_action_GCJ=
17134if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17135 test -n "$runpath_var_GCJ" || \
17136 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17137
17138 # We can hardcode non-existant directories.
17139 if test "$hardcode_direct_GCJ" != no &&
17140 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17141 # have to relink, otherwise we might link with an installed library
17142 # when we should be linking with a yet-to-be-installed one
17143 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17144 test "$hardcode_minus_L_GCJ" != no; then
17145 # Linking always hardcodes the temporary library directory.
17146 hardcode_action_GCJ=relink
17147 else
17148 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17149 hardcode_action_GCJ=immediate
17150 fi
17151else
17152 # We cannot hardcode anything, or else we can only hardcode existing
17153 # directories.
17154 hardcode_action_GCJ=unsupported
17155fi
17156echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17157echo "${ECHO_T}$hardcode_action_GCJ" >&6
17158
17159if test "$hardcode_action_GCJ" = relink; then
17160 # Fast installation is not supported
17161 enable_fast_install=no
17162elif test "$shlibpath_overrides_runpath" = yes ||
17163 test "$enable_shared" = no; then
17164 # Fast installation is not necessary
17165 enable_fast_install=needless
17166fi
17167
17168striplib=
17169old_striplib=
17170echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17171echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17172if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17175 echo "$as_me:$LINENO: result: yes" >&5
17176echo "${ECHO_T}yes" >&6
17177else
17178# FIXME - insert some real tests, host_os isn't really good enough
17179 case $host_os in
17180 darwin*)
17181 if test -n "$STRIP" ; then
17182 striplib="$STRIP -x"
17183 echo "$as_me:$LINENO: result: yes" >&5
17184echo "${ECHO_T}yes" >&6
17185 else
17186 echo "$as_me:$LINENO: result: no" >&5
17187echo "${ECHO_T}no" >&6
17188fi
17189 ;;
17190 *)
17191 echo "$as_me:$LINENO: result: no" >&5
17192echo "${ECHO_T}no" >&6
17193 ;;
17194 esac
17195fi
17196
John Criswell47fdd832003-07-14 16:52:07 +000017197if test "x$enable_dlopen" != xyes; then
17198 enable_dlopen=unknown
17199 enable_dlopen_self=unknown
17200 enable_dlopen_self_static=unknown
17201else
17202 lt_cv_dlopen=no
17203 lt_cv_dlopen_libs=
17204
17205 case $host_os in
17206 beos*)
17207 lt_cv_dlopen="load_add_on"
17208 lt_cv_dlopen_libs=
17209 lt_cv_dlopen_self=yes
17210 ;;
17211
17212 mingw* | pw32*)
17213 lt_cv_dlopen="LoadLibrary"
17214 lt_cv_dlopen_libs=
17215 ;;
17216
17217 cygwin*)
17218 lt_cv_dlopen="dlopen"
17219 lt_cv_dlopen_libs=
17220 ;;
17221
17222 darwin*)
17223 # if libdl is installed we need to link against it
17224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17225echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17226if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17228else
17229 ac_check_lib_save_LIBS=$LIBS
17230LIBS="-ldl $LIBS"
17231cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017237
17238/* Override any gcc2 internal prototype to avoid an error. */
17239#ifdef __cplusplus
17240extern "C"
17241#endif
17242/* We use char because int might match the return type of a gcc2
17243 builtin and then its argument prototype would still apply. */
17244char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017245int
17246main ()
17247{
17248dlopen ();
17249 ;
17250 return 0;
17251}
17252_ACEOF
17253rm -f conftest.$ac_objext conftest$ac_exeext
17254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017255 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017262 { ac_try='test -z "$ac_c_werror_flag"
17263 || test ! -s conftest.err'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; }; then
17275 ac_cv_lib_dl_dlopen=yes
17276else
17277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017278sed 's/^/| /' conftest.$ac_ext >&5
17279
John Criswell47fdd832003-07-14 16:52:07 +000017280ac_cv_lib_dl_dlopen=no
17281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017282rm -f conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +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
17292 lt_cv_dlopen="dyld"
17293 lt_cv_dlopen_libs=
17294 lt_cv_dlopen_self=yes
17295
17296fi
17297
17298 ;;
17299
17300 *)
17301 echo "$as_me:$LINENO: checking for shl_load" >&5
17302echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17303if test "${ac_cv_func_shl_load+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305else
17306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017307/* confdefs.h. */
17308_ACEOF
17309cat confdefs.h >>conftest.$ac_ext
17310cat >>conftest.$ac_ext <<_ACEOF
17311/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017312/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17314#define shl_load innocuous_shl_load
17315
John Criswell47fdd832003-07-14 16:52:07 +000017316/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017317 which can conflict with char shl_load (); below.
17318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017320
John Criswell0c38eaf2003-09-10 15:17:25 +000017321#ifdef __STDC__
17322# include <limits.h>
17323#else
17324# include <assert.h>
17325#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017326
17327#undef shl_load
17328
John Criswell47fdd832003-07-14 16:52:07 +000017329/* Override any gcc2 internal prototype to avoid an error. */
17330#ifdef __cplusplus
17331extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017332{
John Criswell47fdd832003-07-14 16:52:07 +000017333#endif
17334/* We use char because int might match the return type of a gcc2
17335 builtin and then its argument prototype would still apply. */
17336char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017337/* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340#if defined (__stub_shl_load) || defined (__stub___shl_load)
17341choke me
17342#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017343char (*f) () = shl_load;
17344#endif
17345#ifdef __cplusplus
17346}
John Criswell47fdd832003-07-14 16:52:07 +000017347#endif
17348
John Criswell0c38eaf2003-09-10 15:17:25 +000017349int
17350main ()
17351{
17352return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017353 ;
17354 return 0;
17355}
17356_ACEOF
17357rm -f conftest.$ac_objext conftest$ac_exeext
17358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017359 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017366 { ac_try='test -z "$ac_c_werror_flag"
17367 || test ! -s conftest.err'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } &&
17373 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_cv_func_shl_load=yes
17380else
17381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017382sed 's/^/| /' conftest.$ac_ext >&5
17383
John Criswell47fdd832003-07-14 16:52:07 +000017384ac_cv_func_shl_load=no
17385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017386rm -f conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017388fi
17389echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17390echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17391if test $ac_cv_func_shl_load = yes; then
17392 lt_cv_dlopen="shl_load"
17393else
17394 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17395echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17396if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398else
17399 ac_check_lib_save_LIBS=$LIBS
17400LIBS="-ldld $LIBS"
17401cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017407
17408/* Override any gcc2 internal prototype to avoid an error. */
17409#ifdef __cplusplus
17410extern "C"
17411#endif
17412/* We use char because int might match the return type of a gcc2
17413 builtin and then its argument prototype would still apply. */
17414char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017415int
17416main ()
17417{
17418shl_load ();
17419 ;
17420 return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext conftest$ac_exeext
17424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017425 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017427 grep -v '^ *+' conftest.er1 >conftest.err
17428 rm -f conftest.er1
17429 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432 { ac_try='test -z "$ac_c_werror_flag"
17433 || test ! -s conftest.err'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_cv_lib_dld_shl_load=yes
17446else
17447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017448sed 's/^/| /' conftest.$ac_ext >&5
17449
John Criswell47fdd832003-07-14 16:52:07 +000017450ac_cv_lib_dld_shl_load=no
17451fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017452rm -f conftest.err conftest.$ac_objext \
17453 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017454LIBS=$ac_check_lib_save_LIBS
17455fi
17456echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17457echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17458if test $ac_cv_lib_dld_shl_load = yes; then
17459 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17460else
17461 echo "$as_me:$LINENO: checking for dlopen" >&5
17462echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17463if test "${ac_cv_func_dlopen+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17465else
17466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017467/* confdefs.h. */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017472/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17474#define dlopen innocuous_dlopen
17475
John Criswell47fdd832003-07-14 16:52:07 +000017476/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017477 which can conflict with char dlopen (); below.
17478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17479 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017480
John Criswell0c38eaf2003-09-10 15:17:25 +000017481#ifdef __STDC__
17482# include <limits.h>
17483#else
17484# include <assert.h>
17485#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486
17487#undef dlopen
17488
John Criswell47fdd832003-07-14 16:52:07 +000017489/* Override any gcc2 internal prototype to avoid an error. */
17490#ifdef __cplusplus
17491extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017492{
John Criswell47fdd832003-07-14 16:52:07 +000017493#endif
17494/* We use char because int might match the return type of a gcc2
17495 builtin and then its argument prototype would still apply. */
17496char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017497/* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500#if defined (__stub_dlopen) || defined (__stub___dlopen)
17501choke me
17502#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017503char (*f) () = dlopen;
17504#endif
17505#ifdef __cplusplus
17506}
John Criswell47fdd832003-07-14 16:52:07 +000017507#endif
17508
John Criswell0c38eaf2003-09-10 15:17:25 +000017509int
17510main ()
17511{
17512return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext conftest$ac_exeext
17518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017519 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017526 { ac_try='test -z "$ac_c_werror_flag"
17527 || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_func_dlopen=yes
17540else
17541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017542sed 's/^/| /' conftest.$ac_ext >&5
17543
John Criswell47fdd832003-07-14 16:52:07 +000017544ac_cv_func_dlopen=no
17545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017546rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017548fi
17549echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17550echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17551if test $ac_cv_func_dlopen = yes; then
17552 lt_cv_dlopen="dlopen"
17553else
17554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17556if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558else
17559 ac_check_lib_save_LIBS=$LIBS
17560LIBS="-ldl $LIBS"
17561cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017562/* confdefs.h. */
17563_ACEOF
17564cat confdefs.h >>conftest.$ac_ext
17565cat >>conftest.$ac_ext <<_ACEOF
17566/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017567
17568/* Override any gcc2 internal prototype to avoid an error. */
17569#ifdef __cplusplus
17570extern "C"
17571#endif
17572/* We use char because int might match the return type of a gcc2
17573 builtin and then its argument prototype would still apply. */
17574char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017575int
17576main ()
17577{
17578dlopen ();
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext conftest$ac_exeext
17584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017585 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017592 { ac_try='test -z "$ac_c_werror_flag"
17593 || test ! -s conftest.err'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_lib_dl_dlopen=yes
17606else
17607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017608sed 's/^/| /' conftest.$ac_ext >&5
17609
John Criswell47fdd832003-07-14 16:52:07 +000017610ac_cv_lib_dl_dlopen=no
17611fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017612rm -f conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017614LIBS=$ac_check_lib_save_LIBS
17615fi
17616echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17617echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17618if test $ac_cv_lib_dl_dlopen = yes; then
17619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17620else
17621 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17622echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17623if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 ac_check_lib_save_LIBS=$LIBS
17627LIBS="-lsvld $LIBS"
17628cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017629/* confdefs.h. */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017634
17635/* Override any gcc2 internal prototype to avoid an error. */
17636#ifdef __cplusplus
17637extern "C"
17638#endif
17639/* We use char because int might match the return type of a gcc2
17640 builtin and then its argument prototype would still apply. */
17641char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017642int
17643main ()
17644{
17645dlopen ();
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext conftest$ac_exeext
17651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017652 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017653 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_cv_lib_svld_dlopen=yes
17673else
17674 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017675sed 's/^/| /' conftest.$ac_ext >&5
17676
John Criswell47fdd832003-07-14 16:52:07 +000017677ac_cv_lib_svld_dlopen=no
17678fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017679rm -f conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017681LIBS=$ac_check_lib_save_LIBS
17682fi
17683echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17684echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17685if test $ac_cv_lib_svld_dlopen = yes; then
17686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17687else
17688 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17689echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17690if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17692else
17693 ac_check_lib_save_LIBS=$LIBS
17694LIBS="-ldld $LIBS"
17695cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017696/* confdefs.h. */
17697_ACEOF
17698cat confdefs.h >>conftest.$ac_ext
17699cat >>conftest.$ac_ext <<_ACEOF
17700/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017701
17702/* Override any gcc2 internal prototype to avoid an error. */
17703#ifdef __cplusplus
17704extern "C"
17705#endif
17706/* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017709int
17710main ()
17711{
17712dld_link ();
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext conftest$ac_exeext
17718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017719 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_lib_dld_dld_link=yes
17740else
17741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017742sed 's/^/| /' conftest.$ac_ext >&5
17743
John Criswell47fdd832003-07-14 16:52:07 +000017744ac_cv_lib_dld_dld_link=no
17745fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746rm -f conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017748LIBS=$ac_check_lib_save_LIBS
17749fi
17750echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17751echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17752if test $ac_cv_lib_dld_dld_link = yes; then
17753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17754fi
17755
17756
17757fi
17758
17759
17760fi
17761
17762
17763fi
17764
17765
17766fi
17767
17768
17769fi
17770
17771 ;;
17772 esac
17773
17774 if test "x$lt_cv_dlopen" != xno; then
17775 enable_dlopen=yes
17776 else
17777 enable_dlopen=no
17778 fi
17779
17780 case $lt_cv_dlopen in
17781 dlopen)
17782 save_CPPFLAGS="$CPPFLAGS"
17783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17784
17785 save_LDFLAGS="$LDFLAGS"
17786 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17787
17788 save_LIBS="$LIBS"
17789 LIBS="$lt_cv_dlopen_libs $LIBS"
17790
17791 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17792echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17793if test "${lt_cv_dlopen_self+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 if test "$cross_compiling" = yes; then :
17797 lt_cv_dlopen_self=cross
17798else
17799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17800 lt_status=$lt_dlunknown
17801 cat > conftest.$ac_ext <<EOF
Reid Spencer8b93e7a2004-09-21 17:14:44 +000017802#line 17802 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017803#include "confdefs.h"
17804
17805#if HAVE_DLFCN_H
17806#include <dlfcn.h>
17807#endif
17808
17809#include <stdio.h>
17810
17811#ifdef RTLD_GLOBAL
17812# define LT_DLGLOBAL RTLD_GLOBAL
17813#else
17814# ifdef DL_GLOBAL
17815# define LT_DLGLOBAL DL_GLOBAL
17816# else
17817# define LT_DLGLOBAL 0
17818# endif
17819#endif
17820
17821/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17822 find out it does not work in some platform. */
17823#ifndef LT_DLLAZY_OR_NOW
17824# ifdef RTLD_LAZY
17825# define LT_DLLAZY_OR_NOW RTLD_LAZY
17826# else
17827# ifdef DL_LAZY
17828# define LT_DLLAZY_OR_NOW DL_LAZY
17829# else
17830# ifdef RTLD_NOW
17831# define LT_DLLAZY_OR_NOW RTLD_NOW
17832# else
17833# ifdef DL_NOW
17834# define LT_DLLAZY_OR_NOW DL_NOW
17835# else
17836# define LT_DLLAZY_OR_NOW 0
17837# endif
17838# endif
17839# endif
17840# endif
17841#endif
17842
17843#ifdef __cplusplus
17844extern "C" void exit (int);
17845#endif
17846
17847void fnord() { int i=42;}
17848int main ()
17849{
17850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17851 int status = $lt_dlunknown;
17852
17853 if (self)
17854 {
17855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17857 /* dlclose (self); */
17858 }
17859
17860 exit (status);
17861}
17862EOF
17863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864 (eval $ac_link) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17868 (./conftest; exit; ) 2>/dev/null
17869 lt_status=$?
17870 case x$lt_status in
17871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17873 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17874 esac
17875 else :
17876 # compilation failed
17877 lt_cv_dlopen_self=no
17878 fi
17879fi
17880rm -fr conftest*
17881
17882
17883fi
17884echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17885echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17886
17887 if test "x$lt_cv_dlopen_self" = xyes; then
17888 LDFLAGS="$LDFLAGS $link_static_flag"
17889 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17890echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17891if test "${lt_cv_dlopen_self_static+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893else
17894 if test "$cross_compiling" = yes; then :
17895 lt_cv_dlopen_self_static=cross
17896else
17897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17898 lt_status=$lt_dlunknown
17899 cat > conftest.$ac_ext <<EOF
Reid Spencer8b93e7a2004-09-21 17:14:44 +000017900#line 17900 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017901#include "confdefs.h"
17902
17903#if HAVE_DLFCN_H
17904#include <dlfcn.h>
17905#endif
17906
17907#include <stdio.h>
17908
17909#ifdef RTLD_GLOBAL
17910# define LT_DLGLOBAL RTLD_GLOBAL
17911#else
17912# ifdef DL_GLOBAL
17913# define LT_DLGLOBAL DL_GLOBAL
17914# else
17915# define LT_DLGLOBAL 0
17916# endif
17917#endif
17918
17919/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17920 find out it does not work in some platform. */
17921#ifndef LT_DLLAZY_OR_NOW
17922# ifdef RTLD_LAZY
17923# define LT_DLLAZY_OR_NOW RTLD_LAZY
17924# else
17925# ifdef DL_LAZY
17926# define LT_DLLAZY_OR_NOW DL_LAZY
17927# else
17928# ifdef RTLD_NOW
17929# define LT_DLLAZY_OR_NOW RTLD_NOW
17930# else
17931# ifdef DL_NOW
17932# define LT_DLLAZY_OR_NOW DL_NOW
17933# else
17934# define LT_DLLAZY_OR_NOW 0
17935# endif
17936# endif
17937# endif
17938# endif
17939#endif
17940
17941#ifdef __cplusplus
17942extern "C" void exit (int);
17943#endif
17944
17945void fnord() { int i=42;}
17946int main ()
17947{
17948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17949 int status = $lt_dlunknown;
17950
17951 if (self)
17952 {
17953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17955 /* dlclose (self); */
17956 }
17957
17958 exit (status);
17959}
17960EOF
17961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962 (eval $ac_link) 2>&5
17963 ac_status=$?
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17966 (./conftest; exit; ) 2>/dev/null
17967 lt_status=$?
17968 case x$lt_status in
17969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17971 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17972 esac
17973 else :
17974 # compilation failed
17975 lt_cv_dlopen_self_static=no
17976 fi
17977fi
17978rm -fr conftest*
17979
17980
17981fi
17982echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17983echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17984 fi
17985
17986 CPPFLAGS="$save_CPPFLAGS"
17987 LDFLAGS="$save_LDFLAGS"
17988 LIBS="$save_LIBS"
17989 ;;
17990 esac
17991
17992 case $lt_cv_dlopen_self in
17993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17994 *) enable_dlopen_self=unknown ;;
17995 esac
17996
17997 case $lt_cv_dlopen_self_static in
17998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17999 *) enable_dlopen_self_static=unknown ;;
18000 esac
18001fi
18002
18003
18004# The else clause should only fire when bootstrapping the
18005# libtool distribution, otherwise you forgot to ship ltmain.sh
18006# with your package, and you will get complaints that there are
18007# no rules to generate ltmain.sh.
18008if test -f "$ltmain"; then
18009 # See if we are running on zsh, and set the options which allow our commands through
18010 # without removal of \ escapes.
18011 if test -n "${ZSH_VERSION+set}" ; then
18012 setopt NO_GLOB_SUBST
18013 fi
18014 # Now quote all the things that may contain metacharacters while being
18015 # careful not to overquote the AC_SUBSTed values. We take copies of the
18016 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18018 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18021 deplibs_check_method reload_flag reload_cmds need_locks \
18022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18023 lt_cv_sys_global_symbol_to_c_name_address \
18024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18025 old_postinstall_cmds old_postuninstall_cmds \
18026 compiler_GCJ \
18027 CC_GCJ \
18028 LD_GCJ \
18029 lt_prog_compiler_wl_GCJ \
18030 lt_prog_compiler_pic_GCJ \
18031 lt_prog_compiler_static_GCJ \
18032 lt_prog_compiler_no_builtin_flag_GCJ \
18033 export_dynamic_flag_spec_GCJ \
18034 thread_safe_flag_spec_GCJ \
18035 whole_archive_flag_spec_GCJ \
18036 enable_shared_with_static_runtimes_GCJ \
18037 old_archive_cmds_GCJ \
18038 old_archive_from_new_cmds_GCJ \
18039 predep_objects_GCJ \
18040 postdep_objects_GCJ \
18041 predeps_GCJ \
18042 postdeps_GCJ \
18043 compiler_lib_search_path_GCJ \
18044 archive_cmds_GCJ \
18045 archive_expsym_cmds_GCJ \
18046 postinstall_cmds_GCJ \
18047 postuninstall_cmds_GCJ \
18048 old_archive_from_expsyms_cmds_GCJ \
18049 allow_undefined_flag_GCJ \
18050 no_undefined_flag_GCJ \
18051 export_symbols_cmds_GCJ \
18052 hardcode_libdir_flag_spec_GCJ \
18053 hardcode_libdir_flag_spec_ld_GCJ \
18054 hardcode_libdir_separator_GCJ \
18055 hardcode_automatic_GCJ \
18056 module_cmds_GCJ \
18057 module_expsym_cmds_GCJ \
18058 lt_cv_prog_compiler_c_o_GCJ \
18059 exclude_expsyms_GCJ \
18060 include_expsyms_GCJ; do
18061
18062 case $var in
18063 old_archive_cmds_GCJ | \
18064 old_archive_from_new_cmds_GCJ | \
18065 archive_cmds_GCJ | \
18066 archive_expsym_cmds_GCJ | \
18067 module_cmds_GCJ | \
18068 module_expsym_cmds_GCJ | \
18069 old_archive_from_expsyms_cmds_GCJ | \
18070 export_symbols_cmds_GCJ | \
18071 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18072 postinstall_cmds | postuninstall_cmds | \
18073 old_postinstall_cmds | old_postuninstall_cmds | \
18074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18075 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000018077 ;;
18078 *)
18079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18080 ;;
18081 esac
18082 done
18083
18084 case $lt_echo in
18085 *'\$0 --fallback-echo"')
18086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18087 ;;
18088 esac
18089
18090cfgfile="$ofile"
18091
18092 cat <<__EOF__ >> "$cfgfile"
18093# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18094
18095# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18096
18097# Shell to use when invoking shell scripts.
18098SHELL=$lt_SHELL
18099
18100# Whether or not to build shared libraries.
18101build_libtool_libs=$enable_shared
18102
18103# Whether or not to build static libraries.
18104build_old_libs=$enable_static
18105
18106# Whether or not to add -lc for building shared libraries.
18107build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18108
18109# Whether or not to disallow shared libs when runtime libs are static
18110allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18111
18112# Whether or not to optimize for fast installation.
18113fast_install=$enable_fast_install
18114
18115# The host system.
18116host_alias=$host_alias
18117host=$host
18118
18119# An echo program that does not interpret backslashes.
18120echo=$lt_echo
18121
18122# The archiver.
18123AR=$lt_AR
18124AR_FLAGS=$lt_AR_FLAGS
18125
18126# A C compiler.
18127LTCC=$lt_LTCC
18128
18129# A language-specific compiler.
18130CC=$lt_compiler_GCJ
18131
18132# Is the compiler the GNU C compiler?
18133with_gcc=$GCC_GCJ
18134
18135# An ERE matcher.
18136EGREP=$lt_EGREP
18137
18138# The linker used to build libraries.
18139LD=$lt_LD_GCJ
18140
18141# Whether we need hard or soft links.
18142LN_S=$lt_LN_S
18143
18144# A BSD-compatible nm program.
18145NM=$lt_NM
18146
18147# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018148STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018149
18150# Used to examine libraries when file_magic_cmd begins "file"
18151MAGIC_CMD=$MAGIC_CMD
18152
18153# Used on cygwin: DLL creation program.
18154DLLTOOL="$DLLTOOL"
18155
18156# Used on cygwin: object dumper.
18157OBJDUMP="$OBJDUMP"
18158
18159# Used on cygwin: assembler.
18160AS="$AS"
18161
18162# The name of the directory that contains temporary libtool files.
18163objdir=$objdir
18164
18165# How to create reloadable object files.
18166reload_flag=$lt_reload_flag
18167reload_cmds=$lt_reload_cmds
18168
18169# How to pass a linker flag through the compiler.
18170wl=$lt_lt_prog_compiler_wl_GCJ
18171
18172# Object file suffix (normally "o").
18173objext="$ac_objext"
18174
18175# Old archive suffix (normally "a").
18176libext="$libext"
18177
18178# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018179shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018180
18181# Executable file suffix (normally "").
18182exeext="$exeext"
18183
18184# Additional compiler flags for building library objects.
18185pic_flag=$lt_lt_prog_compiler_pic_GCJ
18186pic_mode=$pic_mode
18187
18188# What is the maximum length of a command?
18189max_cmd_len=$lt_cv_sys_max_cmd_len
18190
18191# Does compiler simultaneously support -c and -o options?
18192compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18193
18194# Must we lock files when doing compilation ?
18195need_locks=$lt_need_locks
18196
18197# Do we need the lib prefix for modules?
18198need_lib_prefix=$need_lib_prefix
18199
18200# Do we need a version for libraries?
18201need_version=$need_version
18202
18203# Whether dlopen is supported.
18204dlopen_support=$enable_dlopen
18205
18206# Whether dlopen of programs is supported.
18207dlopen_self=$enable_dlopen_self
18208
18209# Whether dlopen of statically linked programs is supported.
18210dlopen_self_static=$enable_dlopen_self_static
18211
18212# Compiler flag to prevent dynamic linking.
18213link_static_flag=$lt_lt_prog_compiler_static_GCJ
18214
18215# Compiler flag to turn off builtin functions.
18216no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18217
18218# Compiler flag to allow reflexive dlopens.
18219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18220
18221# Compiler flag to generate shared objects directly from archives.
18222whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18223
18224# Compiler flag to generate thread-safe objects.
18225thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18226
18227# Library versioning type.
18228version_type=$version_type
18229
18230# Format of library name prefix.
18231libname_spec=$lt_libname_spec
18232
18233# List of archive names. First name is the real one, the rest are links.
18234# The last name is the one that the linker finds with -lNAME.
18235library_names_spec=$lt_library_names_spec
18236
18237# The coded name of the library, if different from the real name.
18238soname_spec=$lt_soname_spec
18239
18240# Commands used to build and install an old-style archive.
18241RANLIB=$lt_RANLIB
18242old_archive_cmds=$lt_old_archive_cmds_GCJ
18243old_postinstall_cmds=$lt_old_postinstall_cmds
18244old_postuninstall_cmds=$lt_old_postuninstall_cmds
18245
18246# Create an old-style archive from a shared archive.
18247old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18248
18249# Create a temporary old-style archive to link instead of a shared archive.
18250old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18251
18252# Commands used to build and install a shared archive.
18253archive_cmds=$lt_archive_cmds_GCJ
18254archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18255postinstall_cmds=$lt_postinstall_cmds
18256postuninstall_cmds=$lt_postuninstall_cmds
18257
18258# Commands used to build a loadable module (assumed same as above if empty)
18259module_cmds=$lt_module_cmds_GCJ
18260module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18261
18262# Commands to strip libraries.
18263old_striplib=$lt_old_striplib
18264striplib=$lt_striplib
18265
18266# Dependencies to place before the objects being linked to create a
18267# shared library.
18268predep_objects=$lt_predep_objects_GCJ
18269
18270# Dependencies to place after the objects being linked to create a
18271# shared library.
18272postdep_objects=$lt_postdep_objects_GCJ
18273
18274# Dependencies to place before the objects being linked to create a
18275# shared library.
18276predeps=$lt_predeps_GCJ
18277
18278# Dependencies to place after the objects being linked to create a
18279# shared library.
18280postdeps=$lt_postdeps_GCJ
18281
18282# The library search path used internally by the compiler when linking
18283# a shared library.
18284compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18285
18286# Method to check whether dependent libraries are shared objects.
18287deplibs_check_method=$lt_deplibs_check_method
18288
18289# Command to use when deplibs_check_method == file_magic.
18290file_magic_cmd=$lt_file_magic_cmd
18291
18292# Flag that allows shared libraries with undefined symbols to be built.
18293allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18294
18295# Flag that forces no undefined symbols.
18296no_undefined_flag=$lt_no_undefined_flag_GCJ
18297
18298# Commands used to finish a libtool library installation in a directory.
18299finish_cmds=$lt_finish_cmds
18300
18301# Same as above, but a single script fragment to be evaled but not shown.
18302finish_eval=$lt_finish_eval
18303
18304# Take the output of nm and produce a listing of raw symbols and C names.
18305global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18306
18307# Transform the output of nm in a proper C declaration
18308global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18309
18310# Transform the output of nm in a C name address pair
18311global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18312
18313# This is the shared library runtime path variable.
18314runpath_var=$runpath_var
18315
18316# This is the shared library path variable.
18317shlibpath_var=$shlibpath_var
18318
18319# Is shlibpath searched before the hard-coded library search path?
18320shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18321
18322# How to hardcode a shared library path into an executable.
18323hardcode_action=$hardcode_action_GCJ
18324
18325# Whether we should hardcode library paths into libraries.
18326hardcode_into_libs=$hardcode_into_libs
18327
18328# Flag to hardcode \$libdir into a binary during linking.
18329# This must work even if \$libdir does not exist.
18330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18331
18332# If ld is used when linking, flag to hardcode \$libdir into
18333# a binary during linking. This must work even if \$libdir does
18334# not exist.
18335hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18336
18337# Whether we need a single -rpath flag with a separated argument.
18338hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18339
18340# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18341# resulting binary.
18342hardcode_direct=$hardcode_direct_GCJ
18343
18344# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18345# resulting binary.
18346hardcode_minus_L=$hardcode_minus_L_GCJ
18347
18348# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18349# the resulting binary.
18350hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18351
18352# Set to yes if building a shared library automatically hardcodes DIR into the library
18353# and all subsequent libraries and executables linked against it.
18354hardcode_automatic=$hardcode_automatic_GCJ
18355
18356# Variables whose values should be saved in libtool wrapper scripts and
18357# restored at relink time.
18358variables_saved_for_relink="$variables_saved_for_relink"
18359
18360# Whether libtool must link a program against all its dependency libraries.
18361link_all_deplibs=$link_all_deplibs_GCJ
18362
18363# Compile-time system search path for libraries
18364sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18365
18366# Run-time system search path for libraries
18367sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18368
18369# Fix the shell variable \$srcfile for the compiler.
18370fix_srcfile_path="$fix_srcfile_path_GCJ"
18371
18372# Set to yes if exported symbols are required.
18373always_export_symbols=$always_export_symbols_GCJ
18374
18375# The commands to list exported symbols.
18376export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18377
18378# The commands to extract the exported symbol list from a shared archive.
18379extract_expsyms_cmds=$lt_extract_expsyms_cmds
18380
18381# Symbols that should not be listed in the preloaded symbols.
18382exclude_expsyms=$lt_exclude_expsyms_GCJ
18383
18384# Symbols that must always be exported.
18385include_expsyms=$lt_include_expsyms_GCJ
18386
18387# ### END LIBTOOL TAG CONFIG: $tagname
18388
18389__EOF__
18390
18391
18392else
18393 # If there is no Makefile yet, we rely on a make rule to execute
18394 # `config.status --recheck' to rerun these tests and create the
18395 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018396 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18397 if test -f "$ltmain_in"; then
18398 test -f Makefile && make "$ltmain"
18399 fi
John Criswell47fdd832003-07-14 16:52:07 +000018400fi
18401
18402
18403ac_ext=c
18404ac_cpp='$CPP $CPPFLAGS'
18405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18407ac_compiler_gnu=$ac_cv_c_compiler_gnu
18408
18409CC="$lt_save_CC"
18410
18411 else
18412 tagname=""
18413 fi
18414 ;;
18415
18416 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018417 ac_ext=c
18418ac_cpp='$CPP $CPPFLAGS'
18419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000018422
18423
18424# Source file extension for RC test sources.
18425ac_ext=rc
18426
18427# Object file extension for compiled RC test sources.
18428objext=o
18429objext_RC=$objext
18430
18431# Code to be used in simple compile tests
18432lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18433
18434# Code to be used in simple link tests
18435lt_simple_link_test_code="$lt_simple_compile_test_code"
18436
18437# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18438
18439# If no C compiler was specified, use CC.
18440LTCC=${LTCC-"$CC"}
18441
18442# Allow CC to be a program name with arguments.
18443compiler=$CC
18444
18445
18446# Allow CC to be a program name with arguments.
18447lt_save_CC="$CC"
18448CC=${RC-"windres"}
18449compiler=$CC
18450compiler_RC=$CC
18451lt_cv_prog_compiler_c_o_RC=yes
18452
18453# The else clause should only fire when bootstrapping the
18454# libtool distribution, otherwise you forgot to ship ltmain.sh
18455# with your package, and you will get complaints that there are
18456# no rules to generate ltmain.sh.
18457if test -f "$ltmain"; then
18458 # See if we are running on zsh, and set the options which allow our commands through
18459 # without removal of \ escapes.
18460 if test -n "${ZSH_VERSION+set}" ; then
18461 setopt NO_GLOB_SUBST
18462 fi
18463 # Now quote all the things that may contain metacharacters while being
18464 # careful not to overquote the AC_SUBSTed values. We take copies of the
18465 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18467 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18470 deplibs_check_method reload_flag reload_cmds need_locks \
18471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18472 lt_cv_sys_global_symbol_to_c_name_address \
18473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18474 old_postinstall_cmds old_postuninstall_cmds \
18475 compiler_RC \
18476 CC_RC \
18477 LD_RC \
18478 lt_prog_compiler_wl_RC \
18479 lt_prog_compiler_pic_RC \
18480 lt_prog_compiler_static_RC \
18481 lt_prog_compiler_no_builtin_flag_RC \
18482 export_dynamic_flag_spec_RC \
18483 thread_safe_flag_spec_RC \
18484 whole_archive_flag_spec_RC \
18485 enable_shared_with_static_runtimes_RC \
18486 old_archive_cmds_RC \
18487 old_archive_from_new_cmds_RC \
18488 predep_objects_RC \
18489 postdep_objects_RC \
18490 predeps_RC \
18491 postdeps_RC \
18492 compiler_lib_search_path_RC \
18493 archive_cmds_RC \
18494 archive_expsym_cmds_RC \
18495 postinstall_cmds_RC \
18496 postuninstall_cmds_RC \
18497 old_archive_from_expsyms_cmds_RC \
18498 allow_undefined_flag_RC \
18499 no_undefined_flag_RC \
18500 export_symbols_cmds_RC \
18501 hardcode_libdir_flag_spec_RC \
18502 hardcode_libdir_flag_spec_ld_RC \
18503 hardcode_libdir_separator_RC \
18504 hardcode_automatic_RC \
18505 module_cmds_RC \
18506 module_expsym_cmds_RC \
18507 lt_cv_prog_compiler_c_o_RC \
18508 exclude_expsyms_RC \
18509 include_expsyms_RC; do
18510
18511 case $var in
18512 old_archive_cmds_RC | \
18513 old_archive_from_new_cmds_RC | \
18514 archive_cmds_RC | \
18515 archive_expsym_cmds_RC | \
18516 module_cmds_RC | \
18517 module_expsym_cmds_RC | \
18518 old_archive_from_expsyms_cmds_RC | \
18519 export_symbols_cmds_RC | \
18520 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18521 postinstall_cmds | postuninstall_cmds | \
18522 old_postinstall_cmds | old_postuninstall_cmds | \
18523 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18524 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000018526 ;;
18527 *)
18528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18529 ;;
18530 esac
18531 done
18532
18533 case $lt_echo in
18534 *'\$0 --fallback-echo"')
18535 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18536 ;;
18537 esac
18538
18539cfgfile="$ofile"
18540
18541 cat <<__EOF__ >> "$cfgfile"
18542# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18543
18544# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18545
18546# Shell to use when invoking shell scripts.
18547SHELL=$lt_SHELL
18548
18549# Whether or not to build shared libraries.
18550build_libtool_libs=$enable_shared
18551
18552# Whether or not to build static libraries.
18553build_old_libs=$enable_static
18554
18555# Whether or not to add -lc for building shared libraries.
18556build_libtool_need_lc=$archive_cmds_need_lc_RC
18557
18558# Whether or not to disallow shared libs when runtime libs are static
18559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18560
18561# Whether or not to optimize for fast installation.
18562fast_install=$enable_fast_install
18563
18564# The host system.
18565host_alias=$host_alias
18566host=$host
18567
18568# An echo program that does not interpret backslashes.
18569echo=$lt_echo
18570
18571# The archiver.
18572AR=$lt_AR
18573AR_FLAGS=$lt_AR_FLAGS
18574
18575# A C compiler.
18576LTCC=$lt_LTCC
18577
18578# A language-specific compiler.
18579CC=$lt_compiler_RC
18580
18581# Is the compiler the GNU C compiler?
18582with_gcc=$GCC_RC
18583
18584# An ERE matcher.
18585EGREP=$lt_EGREP
18586
18587# The linker used to build libraries.
18588LD=$lt_LD_RC
18589
18590# Whether we need hard or soft links.
18591LN_S=$lt_LN_S
18592
18593# A BSD-compatible nm program.
18594NM=$lt_NM
18595
18596# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018597STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018598
18599# Used to examine libraries when file_magic_cmd begins "file"
18600MAGIC_CMD=$MAGIC_CMD
18601
18602# Used on cygwin: DLL creation program.
18603DLLTOOL="$DLLTOOL"
18604
18605# Used on cygwin: object dumper.
18606OBJDUMP="$OBJDUMP"
18607
18608# Used on cygwin: assembler.
18609AS="$AS"
18610
18611# The name of the directory that contains temporary libtool files.
18612objdir=$objdir
18613
18614# How to create reloadable object files.
18615reload_flag=$lt_reload_flag
18616reload_cmds=$lt_reload_cmds
18617
18618# How to pass a linker flag through the compiler.
18619wl=$lt_lt_prog_compiler_wl_RC
18620
18621# Object file suffix (normally "o").
18622objext="$ac_objext"
18623
18624# Old archive suffix (normally "a").
18625libext="$libext"
18626
18627# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018628shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018629
18630# Executable file suffix (normally "").
18631exeext="$exeext"
18632
18633# Additional compiler flags for building library objects.
18634pic_flag=$lt_lt_prog_compiler_pic_RC
18635pic_mode=$pic_mode
18636
18637# What is the maximum length of a command?
18638max_cmd_len=$lt_cv_sys_max_cmd_len
18639
18640# Does compiler simultaneously support -c and -o options?
18641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18642
18643# Must we lock files when doing compilation ?
18644need_locks=$lt_need_locks
18645
18646# Do we need the lib prefix for modules?
18647need_lib_prefix=$need_lib_prefix
18648
18649# Do we need a version for libraries?
18650need_version=$need_version
18651
18652# Whether dlopen is supported.
18653dlopen_support=$enable_dlopen
18654
18655# Whether dlopen of programs is supported.
18656dlopen_self=$enable_dlopen_self
18657
18658# Whether dlopen of statically linked programs is supported.
18659dlopen_self_static=$enable_dlopen_self_static
18660
18661# Compiler flag to prevent dynamic linking.
18662link_static_flag=$lt_lt_prog_compiler_static_RC
18663
18664# Compiler flag to turn off builtin functions.
18665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18666
18667# Compiler flag to allow reflexive dlopens.
18668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18669
18670# Compiler flag to generate shared objects directly from archives.
18671whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18672
18673# Compiler flag to generate thread-safe objects.
18674thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18675
18676# Library versioning type.
18677version_type=$version_type
18678
18679# Format of library name prefix.
18680libname_spec=$lt_libname_spec
18681
18682# List of archive names. First name is the real one, the rest are links.
18683# The last name is the one that the linker finds with -lNAME.
18684library_names_spec=$lt_library_names_spec
18685
18686# The coded name of the library, if different from the real name.
18687soname_spec=$lt_soname_spec
18688
18689# Commands used to build and install an old-style archive.
18690RANLIB=$lt_RANLIB
18691old_archive_cmds=$lt_old_archive_cmds_RC
18692old_postinstall_cmds=$lt_old_postinstall_cmds
18693old_postuninstall_cmds=$lt_old_postuninstall_cmds
18694
18695# Create an old-style archive from a shared archive.
18696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18697
18698# Create a temporary old-style archive to link instead of a shared archive.
18699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18700
18701# Commands used to build and install a shared archive.
18702archive_cmds=$lt_archive_cmds_RC
18703archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18704postinstall_cmds=$lt_postinstall_cmds
18705postuninstall_cmds=$lt_postuninstall_cmds
18706
18707# Commands used to build a loadable module (assumed same as above if empty)
18708module_cmds=$lt_module_cmds_RC
18709module_expsym_cmds=$lt_module_expsym_cmds_RC
18710
18711# Commands to strip libraries.
18712old_striplib=$lt_old_striplib
18713striplib=$lt_striplib
18714
18715# Dependencies to place before the objects being linked to create a
18716# shared library.
18717predep_objects=$lt_predep_objects_RC
18718
18719# Dependencies to place after the objects being linked to create a
18720# shared library.
18721postdep_objects=$lt_postdep_objects_RC
18722
18723# Dependencies to place before the objects being linked to create a
18724# shared library.
18725predeps=$lt_predeps_RC
18726
18727# Dependencies to place after the objects being linked to create a
18728# shared library.
18729postdeps=$lt_postdeps_RC
18730
18731# The library search path used internally by the compiler when linking
18732# a shared library.
18733compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18734
18735# Method to check whether dependent libraries are shared objects.
18736deplibs_check_method=$lt_deplibs_check_method
18737
18738# Command to use when deplibs_check_method == file_magic.
18739file_magic_cmd=$lt_file_magic_cmd
18740
18741# Flag that allows shared libraries with undefined symbols to be built.
18742allow_undefined_flag=$lt_allow_undefined_flag_RC
18743
18744# Flag that forces no undefined symbols.
18745no_undefined_flag=$lt_no_undefined_flag_RC
18746
18747# Commands used to finish a libtool library installation in a directory.
18748finish_cmds=$lt_finish_cmds
18749
18750# Same as above, but a single script fragment to be evaled but not shown.
18751finish_eval=$lt_finish_eval
18752
18753# Take the output of nm and produce a listing of raw symbols and C names.
18754global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18755
18756# Transform the output of nm in a proper C declaration
18757global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18758
18759# Transform the output of nm in a C name address pair
18760global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18761
18762# This is the shared library runtime path variable.
18763runpath_var=$runpath_var
18764
18765# This is the shared library path variable.
18766shlibpath_var=$shlibpath_var
18767
18768# Is shlibpath searched before the hard-coded library search path?
18769shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18770
18771# How to hardcode a shared library path into an executable.
18772hardcode_action=$hardcode_action_RC
18773
18774# Whether we should hardcode library paths into libraries.
18775hardcode_into_libs=$hardcode_into_libs
18776
18777# Flag to hardcode \$libdir into a binary during linking.
18778# This must work even if \$libdir does not exist.
18779hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18780
18781# If ld is used when linking, flag to hardcode \$libdir into
18782# a binary during linking. This must work even if \$libdir does
18783# not exist.
18784hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18785
18786# Whether we need a single -rpath flag with a separated argument.
18787hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18788
18789# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18790# resulting binary.
18791hardcode_direct=$hardcode_direct_RC
18792
18793# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18794# resulting binary.
18795hardcode_minus_L=$hardcode_minus_L_RC
18796
18797# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18798# the resulting binary.
18799hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18800
18801# Set to yes if building a shared library automatically hardcodes DIR into the library
18802# and all subsequent libraries and executables linked against it.
18803hardcode_automatic=$hardcode_automatic_RC
18804
18805# Variables whose values should be saved in libtool wrapper scripts and
18806# restored at relink time.
18807variables_saved_for_relink="$variables_saved_for_relink"
18808
18809# Whether libtool must link a program against all its dependency libraries.
18810link_all_deplibs=$link_all_deplibs_RC
18811
18812# Compile-time system search path for libraries
18813sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18814
18815# Run-time system search path for libraries
18816sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18817
18818# Fix the shell variable \$srcfile for the compiler.
18819fix_srcfile_path="$fix_srcfile_path_RC"
18820
18821# Set to yes if exported symbols are required.
18822always_export_symbols=$always_export_symbols_RC
18823
18824# The commands to list exported symbols.
18825export_symbols_cmds=$lt_export_symbols_cmds_RC
18826
18827# The commands to extract the exported symbol list from a shared archive.
18828extract_expsyms_cmds=$lt_extract_expsyms_cmds
18829
18830# Symbols that should not be listed in the preloaded symbols.
18831exclude_expsyms=$lt_exclude_expsyms_RC
18832
18833# Symbols that must always be exported.
18834include_expsyms=$lt_include_expsyms_RC
18835
18836# ### END LIBTOOL TAG CONFIG: $tagname
18837
18838__EOF__
18839
18840
18841else
18842 # If there is no Makefile yet, we rely on a make rule to execute
18843 # `config.status --recheck' to rerun these tests and create the
18844 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18846 if test -f "$ltmain_in"; then
18847 test -f Makefile && make "$ltmain"
18848 fi
John Criswell47fdd832003-07-14 16:52:07 +000018849fi
18850
18851
18852ac_ext=c
18853ac_cpp='$CPP $CPPFLAGS'
18854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856ac_compiler_gnu=$ac_cv_c_compiler_gnu
18857
18858CC="$lt_save_CC"
18859
18860 ;;
18861
18862 *)
18863 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18864echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18865 { (exit 1); exit 1; }; }
18866 ;;
18867 esac
18868
18869 # Append the new tag name to the list of available tags.
18870 if test -n "$tagname" ; then
18871 available_tags="$available_tags $tagname"
18872 fi
18873 fi
18874 done
18875 IFS="$lt_save_ifs"
18876
18877 # Now substitute the updated list of available tags.
18878 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18879 mv "${ofile}T" "$ofile"
18880 chmod +x "$ofile"
18881 else
18882 rm -f "${ofile}T"
18883 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18884echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18885 { (exit 1); exit 1; }; }
18886 fi
18887fi
John Criswell7a73b802003-06-30 21:59:07 +000018888
18889
18890
18891# This can be used to rebuild libtool when needed
18892LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18893
18894# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018895LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018896
18897# Prevent multiple expansion
18898
18899
18900
John Criswell47fdd832003-07-14 16:52:07 +000018901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
John Criswell7a73b802003-06-30 21:59:07 +000018919# Extract the first word of "dot", so it can be a program name with args.
18920set dummy dot; ac_word=$2
18921echo "$as_me:$LINENO: checking for $ac_word" >&5
18922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18923if test "${ac_cv_path_DOT+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925else
18926 case $DOT in
18927 [\\/]* | ?:[\\/]*)
18928 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18929 ;;
18930 *)
18931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18932for as_dir in $PATH
18933do
18934 IFS=$as_save_IFS
18935 test -z "$as_dir" && as_dir=.
18936 for ac_exec_ext in '' $ac_executable_extensions; do
18937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18938 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18940 break 2
18941 fi
18942done
18943done
18944
Brian Gaeke26be9c52004-01-13 06:43:16 +000018945 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018946 ;;
18947esac
18948fi
18949DOT=$ac_cv_path_DOT
18950
18951if test -n "$DOT"; then
18952 echo "$as_me:$LINENO: result: $DOT" >&5
18953echo "${ECHO_T}$DOT" >&6
18954else
18955 echo "$as_me:$LINENO: result: no" >&5
18956echo "${ECHO_T}no" >&6
18957fi
18958
18959# Extract the first word of "etags", so it can be a program name with args.
18960set dummy etags; ac_word=$2
18961echo "$as_me:$LINENO: checking for $ac_word" >&5
18962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18963if test "${ac_cv_path_ETAGS+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965else
18966 case $ETAGS in
18967 [\\/]* | ?:[\\/]*)
18968 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18969 ;;
18970 *)
18971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972for as_dir in $PATH
18973do
18974 IFS=$as_save_IFS
18975 test -z "$as_dir" && as_dir=.
18976 for ac_exec_ext in '' $ac_executable_extensions; do
18977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18980 break 2
18981 fi
18982done
18983done
18984
Brian Gaeke26be9c52004-01-13 06:43:16 +000018985 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018986 ;;
18987esac
18988fi
18989ETAGS=$ac_cv_path_ETAGS
18990
18991if test -n "$ETAGS"; then
18992 echo "$as_me:$LINENO: result: $ETAGS" >&5
18993echo "${ECHO_T}$ETAGS" >&6
18994else
18995 echo "$as_me:$LINENO: result: no" >&5
18996echo "${ECHO_T}no" >&6
18997fi
18998
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018999etags_version=`$ETAGS --version 2>&1`
19000case "$etags_version" in
19001 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19002 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19003 *) ETAGSFLAGS="" ;;
19004esac
19005ETAGSFLAGS=$ETAGSFLAGS
19006
John Criswellde00db22003-08-25 16:49:54 +000019007# Extract the first word of "python", so it can be a program name with args.
19008set dummy python; ac_word=$2
19009echo "$as_me:$LINENO: checking for $ac_word" >&5
19010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19011if test "${ac_cv_path_PYTHON+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 case $PYTHON in
19015 [\\/]* | ?:[\\/]*)
19016 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19017 ;;
19018 *)
19019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020for as_dir in $PATH
19021do
19022 IFS=$as_save_IFS
19023 test -z "$as_dir" && as_dir=.
19024 for ac_exec_ext in '' $ac_executable_extensions; do
19025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19026 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19028 break 2
19029 fi
19030done
19031done
19032
Brian Gaeke26be9c52004-01-13 06:43:16 +000019033 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019034 ;;
19035esac
19036fi
19037PYTHON=$ac_cv_path_PYTHON
19038
19039if test -n "$PYTHON"; then
19040 echo "$as_me:$LINENO: result: $PYTHON" >&5
19041echo "${ECHO_T}$PYTHON" >&6
19042else
19043 echo "$as_me:$LINENO: result: no" >&5
19044echo "${ECHO_T}no" >&6
19045fi
19046
Brian Gaeke26be9c52004-01-13 06:43:16 +000019047if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019048then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019049 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19050echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019051fi
John Criswellde00db22003-08-25 16:49:54 +000019052# Extract the first word of "qmtest", so it can be a program name with args.
19053set dummy qmtest; ac_word=$2
19054echo "$as_me:$LINENO: checking for $ac_word" >&5
19055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19056if test "${ac_cv_path_QMTEST+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058else
19059 case $QMTEST in
19060 [\\/]* | ?:[\\/]*)
19061 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19062 ;;
19063 *)
19064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19065for as_dir in $PATH
19066do
19067 IFS=$as_save_IFS
19068 test -z "$as_dir" && as_dir=.
19069 for ac_exec_ext in '' $ac_executable_extensions; do
19070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19071 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19073 break 2
19074 fi
19075done
19076done
19077
Brian Gaeke26be9c52004-01-13 06:43:16 +000019078 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019079 ;;
19080esac
19081fi
19082QMTEST=$ac_cv_path_QMTEST
19083
19084if test -n "$QMTEST"; then
19085 echo "$as_me:$LINENO: result: $QMTEST" >&5
19086echo "${ECHO_T}$QMTEST" >&6
19087else
19088 echo "$as_me:$LINENO: result: no" >&5
19089echo "${ECHO_T}no" >&6
19090fi
19091
Brian Gaeke26be9c52004-01-13 06:43:16 +000019092if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019093then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019094 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19095echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019096fi
John Criswellde00db22003-08-25 16:49:54 +000019097
19098pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19099pymajor=`echo $pyversion | cut -d. -f1`
19100pyminor=`echo $pyversion | cut -d. -f2`
19101
19102if test "$pymajor" -ge "2"
19103then
19104 if test "$pymajor" -eq "2"
19105 then
19106 if test "$pyminor" -lt "2"
19107 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019108 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19109echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019110 fi
19111 fi
19112else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019113 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19114echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019115fi
John Criswell7a73b802003-06-30 21:59:07 +000019116
19117
John Criswell7a73b802003-06-30 21:59:07 +000019118echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19119echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19120if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122else
19123 ac_check_lib_save_LIBS=$LIBS
19124LIBS="-lelf $LIBS"
19125cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019131
19132/* Override any gcc2 internal prototype to avoid an error. */
19133#ifdef __cplusplus
19134extern "C"
19135#endif
19136/* We use char because int might match the return type of a gcc2
19137 builtin and then its argument prototype would still apply. */
19138char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019139int
19140main ()
19141{
19142elf_begin ();
19143 ;
19144 return 0;
19145}
19146_ACEOF
19147rm -f conftest.$ac_objext conftest$ac_exeext
19148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019149 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019151 grep -v '^ *+' conftest.er1 >conftest.err
19152 rm -f conftest.er1
19153 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019156 { ac_try='test -z "$ac_c_werror_flag"
19157 || test ! -s conftest.err'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19160 ac_status=$?
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_cv_lib_elf_elf_begin=yes
19170else
19171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019172sed 's/^/| /' conftest.$ac_ext >&5
19173
John Criswell7a73b802003-06-30 21:59:07 +000019174ac_cv_lib_elf_elf_begin=no
19175fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019176rm -f conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019178LIBS=$ac_check_lib_save_LIBS
19179fi
19180echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19181echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19182if test $ac_cv_lib_elf_elf_begin = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184#define HAVE_LIBELF 1
19185_ACEOF
19186
19187 LIBS="-lelf $LIBS"
19188
19189fi
19190
19191
19192echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19193echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19194if test "${ac_cv_search_dlopen+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19196else
19197 ac_func_search_save_LIBS=$LIBS
19198ac_cv_search_dlopen=no
19199cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019205
19206/* Override any gcc2 internal prototype to avoid an error. */
19207#ifdef __cplusplus
19208extern "C"
19209#endif
19210/* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19212char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019213int
19214main ()
19215{
19216dlopen ();
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019223 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019224 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_cv_search_dlopen="none required"
19244else
19245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019246sed 's/^/| /' conftest.$ac_ext >&5
19247
John Criswell7a73b802003-06-30 21:59:07 +000019248fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019249rm -f conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019251if test "$ac_cv_search_dlopen" = no; then
19252 for ac_lib in dl; do
19253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019255/* confdefs.h. */
19256_ACEOF
19257cat confdefs.h >>conftest.$ac_ext
19258cat >>conftest.$ac_ext <<_ACEOF
19259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019260
19261/* Override any gcc2 internal prototype to avoid an error. */
19262#ifdef __cplusplus
19263extern "C"
19264#endif
19265/* We use char because int might match the return type of a gcc2
19266 builtin and then its argument prototype would still apply. */
19267char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019268int
19269main ()
19270{
19271dlopen ();
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext conftest$ac_exeext
19277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019278 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019285 { ac_try='test -z "$ac_c_werror_flag"
19286 || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_search_dlopen="-l$ac_lib"
19299break
19300else
19301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019302sed 's/^/| /' conftest.$ac_ext >&5
19303
John Criswell7a73b802003-06-30 21:59:07 +000019304fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019305rm -f conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019307 done
19308fi
19309LIBS=$ac_func_search_save_LIBS
19310fi
19311echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19312echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19313if test "$ac_cv_search_dlopen" != no; then
19314 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019315
19316cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019317#define HAVE_DLOPEN 1
19318_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019319
19320else
Brian Gaekec45be042003-10-07 06:01:34 +000019321 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19322echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019323fi
19324
19325
19326echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19327echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19328if test "${ac_cv_search_mallinfo+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 ac_func_search_save_LIBS=$LIBS
19332ac_cv_search_mallinfo=no
19333cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019334/* confdefs.h. */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019339
19340/* Override any gcc2 internal prototype to avoid an error. */
19341#ifdef __cplusplus
19342extern "C"
19343#endif
19344/* We use char because int might match the return type of a gcc2
19345 builtin and then its argument prototype would still apply. */
19346char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019347int
19348main ()
19349{
19350mallinfo ();
19351 ;
19352 return 0;
19353}
19354_ACEOF
19355rm -f conftest.$ac_objext conftest$ac_exeext
19356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019357 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019358 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019364 { ac_try='test -z "$ac_c_werror_flag"
19365 || test ! -s conftest.err'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; } &&
19371 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_cv_search_mallinfo="none required"
19378else
19379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019380sed 's/^/| /' conftest.$ac_ext >&5
19381
John Criswell7a73b802003-06-30 21:59:07 +000019382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019383rm -f conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019385if test "$ac_cv_search_mallinfo" = no; then
19386 for ac_lib in malloc; do
19387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19388 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019389/* confdefs.h. */
19390_ACEOF
19391cat confdefs.h >>conftest.$ac_ext
19392cat >>conftest.$ac_ext <<_ACEOF
19393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019394
19395/* Override any gcc2 internal prototype to avoid an error. */
19396#ifdef __cplusplus
19397extern "C"
19398#endif
19399/* We use char because int might match the return type of a gcc2
19400 builtin and then its argument prototype would still apply. */
19401char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019402int
19403main ()
19404{
19405mallinfo ();
19406 ;
19407 return 0;
19408}
19409_ACEOF
19410rm -f conftest.$ac_objext conftest$ac_exeext
19411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019412 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019414 grep -v '^ *+' conftest.er1 >conftest.err
19415 rm -f conftest.er1
19416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_search_mallinfo="-l$ac_lib"
19433break
19434else
19435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019436sed 's/^/| /' conftest.$ac_ext >&5
19437
John Criswell7a73b802003-06-30 21:59:07 +000019438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019439rm -f conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019441 done
19442fi
19443LIBS=$ac_func_search_save_LIBS
19444fi
19445echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19446echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19447if test "$ac_cv_search_mallinfo" != no; then
19448 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019449
19450cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019451#define HAVE_MALLINFO 1
19452_ACEOF
19453
19454fi
19455
19456
Brian Gaeke5f268f72003-12-05 19:29:01 +000019457echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19458echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19459if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461else
19462 ac_func_search_save_LIBS=$LIBS
19463ac_cv_search_pthread_mutex_lock=no
19464cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019465/* confdefs.h. */
19466_ACEOF
19467cat confdefs.h >>conftest.$ac_ext
19468cat >>conftest.$ac_ext <<_ACEOF
19469/* end confdefs.h. */
19470
19471/* Override any gcc2 internal prototype to avoid an error. */
19472#ifdef __cplusplus
19473extern "C"
19474#endif
19475/* We use char because int might match the return type of a gcc2
19476 builtin and then its argument prototype would still apply. */
19477char pthread_mutex_lock ();
19478int
19479main ()
19480{
19481pthread_mutex_lock ();
19482 ;
19483 return 0;
19484}
19485_ACEOF
19486rm -f conftest.$ac_objext conftest$ac_exeext
19487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019488 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019490 grep -v '^ *+' conftest.er1 >conftest.err
19491 rm -f conftest.er1
19492 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019495 { ac_try='test -z "$ac_c_werror_flag"
19496 || test ! -s conftest.err'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; }; then
19508 ac_cv_search_pthread_mutex_lock="none required"
19509else
19510 echo "$as_me: failed program was:" >&5
19511sed 's/^/| /' conftest.$ac_ext >&5
19512
19513fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019514rm -f conftest.err conftest.$ac_objext \
19515 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019516if test "$ac_cv_search_pthread_mutex_lock" = no; then
19517 for ac_lib in pthread; do
19518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19519 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525
19526/* Override any gcc2 internal prototype to avoid an error. */
19527#ifdef __cplusplus
19528extern "C"
19529#endif
19530/* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19532char pthread_mutex_lock ();
19533int
19534main ()
19535{
19536pthread_mutex_lock ();
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext conftest$ac_exeext
19542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019543 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019550 { ac_try='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19564break
19565else
19566 echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019570rm -f conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019572 done
19573fi
19574LIBS=$ac_func_search_save_LIBS
19575fi
19576echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19577echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19578if test "$ac_cv_search_pthread_mutex_lock" != no; then
19579 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019580 HAVE_PTHREAD_MUTEX_LOCK=1
19581else
19582 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019583fi
19584
19585
Brian Gaekec9a410c2004-02-23 21:30:37 +000019586
John Criswell7a73b802003-06-30 21:59:07 +000019587echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19588echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19589if test "${ac_cv_header_stdc+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19591else
19592 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019593/* confdefs.h. */
19594_ACEOF
19595cat confdefs.h >>conftest.$ac_ext
19596cat >>conftest.$ac_ext <<_ACEOF
19597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019598#include <stdlib.h>
19599#include <stdarg.h>
19600#include <string.h>
19601#include <float.h>
19602
John Criswell0c38eaf2003-09-10 15:17:25 +000019603int
19604main ()
19605{
19606
19607 ;
19608 return 0;
19609}
John Criswell7a73b802003-06-30 21:59:07 +000019610_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019611rm -f conftest.$ac_objext
19612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019613 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019614 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019619 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019633 ac_cv_header_stdc=yes
19634else
19635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019639fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019641
19642if test $ac_cv_header_stdc = yes; then
19643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019645/* confdefs.h. */
19646_ACEOF
19647cat confdefs.h >>conftest.$ac_ext
19648cat >>conftest.$ac_ext <<_ACEOF
19649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019650#include <string.h>
19651
19652_ACEOF
19653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019654 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019655 :
19656else
19657 ac_cv_header_stdc=no
19658fi
19659rm -f conftest*
19660
19661fi
19662
19663if test $ac_cv_header_stdc = yes; then
19664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019671#include <stdlib.h>
19672
19673_ACEOF
19674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019675 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019676 :
19677else
19678 ac_cv_header_stdc=no
19679fi
19680rm -f conftest*
19681
19682fi
19683
19684if test $ac_cv_header_stdc = yes; then
19685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19686 if test "$cross_compiling" = yes; then
19687 :
19688else
19689 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
19694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019695#include <ctype.h>
19696#if ((' ' & 0x0FF) == 0x020)
19697# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19698# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19699#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019700# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019701 (('a' <= (c) && (c) <= 'i') \
19702 || ('j' <= (c) && (c) <= 'r') \
19703 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019704# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19705#endif
19706
19707#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19708int
19709main ()
19710{
19711 int i;
19712 for (i = 0; i < 256; i++)
19713 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000019714 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019715 exit(2);
19716 exit (0);
19717}
19718_ACEOF
19719rm -f conftest$ac_exeext
19720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721 (eval $ac_link) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 :
19731else
19732 echo "$as_me: program exited with status $ac_status" >&5
19733echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019734sed 's/^/| /' conftest.$ac_ext >&5
19735
John Criswell7a73b802003-06-30 21:59:07 +000019736( exit $ac_status )
19737ac_cv_header_stdc=no
19738fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019739rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019740fi
19741fi
19742fi
19743echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19744echo "${ECHO_T}$ac_cv_header_stdc" >&6
19745if test $ac_cv_header_stdc = yes; then
19746
19747cat >>confdefs.h <<\_ACEOF
19748#define STDC_HEADERS 1
19749_ACEOF
19750
19751fi
19752
19753echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19754echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19755if test "${ac_cv_header_sys_wait_h+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19757else
19758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019759/* confdefs.h. */
19760_ACEOF
19761cat confdefs.h >>conftest.$ac_ext
19762cat >>conftest.$ac_ext <<_ACEOF
19763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019764#include <sys/types.h>
19765#include <sys/wait.h>
19766#ifndef WEXITSTATUS
19767# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19768#endif
19769#ifndef WIFEXITED
19770# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19771#endif
19772
John Criswell7a73b802003-06-30 21:59:07 +000019773int
19774main ()
19775{
19776 int s;
19777 wait (&s);
19778 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19779 ;
19780 return 0;
19781}
19782_ACEOF
19783rm -f conftest.$ac_objext
19784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019785 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019792 { ac_try='test -z "$ac_c_werror_flag"
19793 || test ! -s conftest.err'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } &&
19799 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; }; then
19805 ac_cv_header_sys_wait_h=yes
19806else
19807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019808sed 's/^/| /' conftest.$ac_ext >&5
19809
John Criswell7a73b802003-06-30 21:59:07 +000019810ac_cv_header_sys_wait_h=no
19811fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019813fi
19814echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19815echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19816if test $ac_cv_header_sys_wait_h = yes; then
19817
19818cat >>confdefs.h <<\_ACEOF
19819#define HAVE_SYS_WAIT_H 1
19820_ACEOF
19821
19822fi
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
Brian Gaeke26be9c52004-01-13 06:43:16 +000019833
Brian Gaekef5261472004-02-20 06:40:57 +000019834
John Criswellb2815e02004-05-27 20:40:39 +000019835
19836for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
John Criswell7a73b802003-06-30 21:59:07 +000019837do
19838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19839if eval "test \"\${$as_ac_Header+set}\" = set"; then
19840 echo "$as_me:$LINENO: checking for $ac_header" >&5
19841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19842if eval "test \"\${$as_ac_Header+set}\" = set"; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844fi
19845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847else
19848 # Is the header compilable?
19849echo "$as_me:$LINENO: checking $ac_header usability" >&5
19850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19851cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019852/* confdefs.h. */
19853_ACEOF
19854cat confdefs.h >>conftest.$ac_ext
19855cat >>conftest.$ac_ext <<_ACEOF
19856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019857$ac_includes_default
19858#include <$ac_header>
19859_ACEOF
19860rm -f conftest.$ac_objext
19861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019862 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_header_compiler=yes
19883else
19884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019885sed 's/^/| /' conftest.$ac_ext >&5
19886
John Criswell7a73b802003-06-30 21:59:07 +000019887ac_header_compiler=no
19888fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891echo "${ECHO_T}$ac_header_compiler" >&6
19892
19893# Is the header present?
19894echo "$as_me:$LINENO: checking $ac_header presence" >&5
19895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19896cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019902#include <$ac_header>
19903_ACEOF
19904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19906 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019907 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null; then
19912 if test -s conftest.err; then
19913 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000019914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019915 else
19916 ac_cpp_err=
19917 fi
19918else
19919 ac_cpp_err=yes
19920fi
19921if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19923else
19924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019925sed 's/^/| /' conftest.$ac_ext >&5
19926
John Criswell7a73b802003-06-30 21:59:07 +000019927 ac_header_preproc=no
19928fi
19929rm -f conftest.err conftest.$ac_ext
19930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931echo "${ECHO_T}$ac_header_preproc" >&6
19932
19933# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19935 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19940 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019941 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019942 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000019943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000019951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000019955 (
19956 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000019957## ----------------------------------- ##
19958## Report this to llvmbugs@cs.uiuc.edu ##
19959## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019960_ASBOX
19961 ) |
19962 sed "s/^/$as_me: WARNING: /" >&2
19963 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019964esac
19965echo "$as_me:$LINENO: checking for $ac_header" >&5
19966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19967if eval "test \"\${$as_ac_Header+set}\" = set"; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019971fi
19972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19974
19975fi
19976if test `eval echo '${'$as_ac_Header'}'` = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19979_ACEOF
19980
19981fi
19982
19983done
19984
19985
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019986if test "${ac_cv_header_sys_types_h+set}" = set; then
19987 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19988echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19989if test "${ac_cv_header_sys_types_h+set}" = set; then
19990 echo $ECHO_N "(cached) $ECHO_C" >&6
19991fi
19992echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19993echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19994else
19995 # Is the header compilable?
19996echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19997echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19998cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019999/* confdefs.h. */
20000_ACEOF
20001cat confdefs.h >>conftest.$ac_ext
20002cat >>conftest.$ac_ext <<_ACEOF
20003/* end confdefs.h. */
20004$ac_includes_default
20005#include <sys/types.h>
20006_ACEOF
20007rm -f conftest.$ac_objext
20008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020009 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020010 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020011 grep -v '^ *+' conftest.er1 >conftest.err
20012 rm -f conftest.er1
20013 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020016 { ac_try='test -z "$ac_c_werror_flag"
20017 || test ! -s conftest.err'
20018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20019 (eval $ac_try) 2>&5
20020 ac_status=$?
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; } &&
20023 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; }; then
20029 ac_header_compiler=yes
20030else
20031 echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034ac_header_compiler=no
20035fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020037echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20038echo "${ECHO_T}$ac_header_compiler" >&6
20039
20040# Is the header present?
20041echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20042echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20043cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
20049#include <sys/types.h>
20050_ACEOF
20051if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } >/dev/null; then
20059 if test -s conftest.err; then
20060 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020062 else
20063 ac_cpp_err=
20064 fi
20065else
20066 ac_cpp_err=yes
20067fi
20068if test -z "$ac_cpp_err"; then
20069 ac_header_preproc=yes
20070else
20071 echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074 ac_header_preproc=no
20075fi
20076rm -f conftest.err conftest.$ac_ext
20077echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20078echo "${ECHO_T}$ac_header_preproc" >&6
20079
20080# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20082 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020083 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20084echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020085 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20086echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20087 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020088 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020090 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20091echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020092 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20093echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20094 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20095echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20097echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020098 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20099echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020100 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20101echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020102 (
20103 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020104## ----------------------------------- ##
20105## Report this to llvmbugs@cs.uiuc.edu ##
20106## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020107_ASBOX
20108 ) |
20109 sed "s/^/$as_me: WARNING: /" >&2
20110 ;;
20111esac
20112echo "$as_me:$LINENO: checking for sys/types.h" >&5
20113echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20114if test "${ac_cv_header_sys_types_h+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116else
20117 ac_cv_header_sys_types_h=$ac_header_preproc
20118fi
20119echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20120echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20121
20122fi
20123if test $ac_cv_header_sys_types_h = yes; then
20124 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
20125else
20126 INCLUDE_SYS_TYPES_H=''
20127fi
20128
20129
20130
20131if test "${ac_cv_header_inttypes_h+set}" = set; then
20132 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20133echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20134if test "${ac_cv_header_inttypes_h+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136fi
20137echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20138echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20139else
20140 # Is the header compilable?
20141echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20142echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20143cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020144/* confdefs.h. */
20145_ACEOF
20146cat confdefs.h >>conftest.$ac_ext
20147cat >>conftest.$ac_ext <<_ACEOF
20148/* end confdefs.h. */
20149$ac_includes_default
20150#include <inttypes.h>
20151_ACEOF
20152rm -f conftest.$ac_objext
20153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020154 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020161 { ac_try='test -z "$ac_c_werror_flag"
20162 || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_header_compiler=yes
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179ac_header_compiler=no
20180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185# Is the header present?
20186echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20187echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20188cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194#include <inttypes.h>
20195_ACEOF
20196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null; then
20204 if test -s conftest.err; then
20205 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020207 else
20208 ac_cpp_err=
20209 fi
20210else
20211 ac_cpp_err=yes
20212fi
20213if test -z "$ac_cpp_err"; then
20214 ac_header_preproc=yes
20215else
20216 echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_header_preproc=no
20220fi
20221rm -f conftest.err conftest.$ac_ext
20222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020228 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20231echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20232 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020233 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020234 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020235 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20236echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020237 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20238echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20240echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20242echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020243 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20244echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20246echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020247 (
20248 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020249## ----------------------------------- ##
20250## Report this to llvmbugs@cs.uiuc.edu ##
20251## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020252_ASBOX
20253 ) |
20254 sed "s/^/$as_me: WARNING: /" >&2
20255 ;;
20256esac
20257echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20259if test "${ac_cv_header_inttypes_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261else
20262 ac_cv_header_inttypes_h=$ac_header_preproc
20263fi
20264echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20265echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20266
20267fi
20268if test $ac_cv_header_inttypes_h = yes; then
20269 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20270else
20271 INCLUDE_INTTYPES_H=''
20272fi
20273
20274
20275
John Criswell7ed43ad2004-07-19 16:12:29 +000020276if test "${ac_cv_header_stdint_h+set}" = set; then
20277 echo "$as_me:$LINENO: checking for stdint.h" >&5
20278echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20279if test "${ac_cv_header_stdint_h+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20281fi
20282echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20283echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20284else
20285 # Is the header compilable?
20286echo "$as_me:$LINENO: checking stdint.h usability" >&5
20287echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20288cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294$ac_includes_default
20295#include <stdint.h>
20296_ACEOF
20297rm -f conftest.$ac_objext
20298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020299 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_header_compiler=yes
20320else
20321 echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324ac_header_compiler=no
20325fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20328echo "${ECHO_T}$ac_header_compiler" >&6
20329
20330# Is the header present?
20331echo "$as_me:$LINENO: checking stdint.h presence" >&5
20332echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20333cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020334/* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
20339#include <stdint.h>
20340_ACEOF
20341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } >/dev/null; then
20349 if test -s conftest.err; then
20350 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020352 else
20353 ac_cpp_err=
20354 fi
20355else
20356 ac_cpp_err=yes
20357fi
20358if test -z "$ac_cpp_err"; then
20359 ac_header_preproc=yes
20360else
20361 echo "$as_me: failed program was:" >&5
20362sed 's/^/| /' conftest.$ac_ext >&5
20363
20364 ac_header_preproc=no
20365fi
20366rm -f conftest.err conftest.$ac_ext
20367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20368echo "${ECHO_T}$ac_header_preproc" >&6
20369
20370# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20372 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020373 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20374echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020375 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20376echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20377 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020378 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020379 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020380 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20381echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020382 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20383echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20384 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20385echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20387echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020388 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20389echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020390 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20391echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020392 (
20393 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020394## ----------------------------------- ##
20395## Report this to llvmbugs@cs.uiuc.edu ##
20396## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020397_ASBOX
20398 ) |
20399 sed "s/^/$as_me: WARNING: /" >&2
20400 ;;
20401esac
20402echo "$as_me:$LINENO: checking for stdint.h" >&5
20403echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20404if test "${ac_cv_header_stdint_h+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20406else
20407 ac_cv_header_stdint_h=$ac_header_preproc
20408fi
20409echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20410echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20411
20412fi
20413if test $ac_cv_header_stdint_h = yes; then
20414 INCLUDE_STDINT_H='#include <stdint.h>'
20415else
20416 INCLUDE_STDINT_H=''
20417fi
20418
20419
20420
20421
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020422
John Criswell7a73b802003-06-30 21:59:07 +000020423echo "$as_me:$LINENO: checking for pid_t" >&5
20424echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20425if test "${ac_cv_type_pid_t+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427else
20428 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020429/* confdefs.h. */
20430_ACEOF
20431cat confdefs.h >>conftest.$ac_ext
20432cat >>conftest.$ac_ext <<_ACEOF
20433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020434$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020435int
20436main ()
20437{
20438if ((pid_t *) 0)
20439 return 0;
20440if (sizeof (pid_t))
20441 return 0;
20442 ;
20443 return 0;
20444}
20445_ACEOF
20446rm -f conftest.$ac_objext
20447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020448 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020449 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020450 grep -v '^ *+' conftest.er1 >conftest.err
20451 rm -f conftest.er1
20452 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020455 { ac_try='test -z "$ac_c_werror_flag"
20456 || test ! -s conftest.err'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; } &&
20462 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_type_pid_t=yes
20469else
20470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020471sed 's/^/| /' conftest.$ac_ext >&5
20472
John Criswell7a73b802003-06-30 21:59:07 +000020473ac_cv_type_pid_t=no
20474fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020476fi
20477echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20478echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20479if test $ac_cv_type_pid_t = yes; then
20480 :
20481else
20482
20483cat >>confdefs.h <<_ACEOF
20484#define pid_t int
20485_ACEOF
20486
20487fi
20488
20489echo "$as_me:$LINENO: checking for size_t" >&5
20490echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20491if test "${ac_cv_type_size_t+set}" = set; then
20492 echo $ECHO_N "(cached) $ECHO_C" >&6
20493else
20494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020495/* confdefs.h. */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020500$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020501int
20502main ()
20503{
20504if ((size_t *) 0)
20505 return 0;
20506if (sizeof (size_t))
20507 return 0;
20508 ;
20509 return 0;
20510}
20511_ACEOF
20512rm -f conftest.$ac_objext
20513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020514 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020515 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020521 { ac_try='test -z "$ac_c_werror_flag"
20522 || test ! -s conftest.err'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; } &&
20528 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_cv_type_size_t=yes
20535else
20536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020537sed 's/^/| /' conftest.$ac_ext >&5
20538
John Criswell7a73b802003-06-30 21:59:07 +000020539ac_cv_type_size_t=no
20540fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020542fi
20543echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20544echo "${ECHO_T}$ac_cv_type_size_t" >&6
20545if test $ac_cv_type_size_t = yes; then
20546 :
20547else
20548
20549cat >>confdefs.h <<_ACEOF
20550#define size_t unsigned
20551_ACEOF
20552
20553fi
20554
20555echo "$as_me:$LINENO: checking for int64_t" >&5
20556echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20557if test "${ac_cv_type_int64_t+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20559else
20560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020561/* confdefs.h. */
20562_ACEOF
20563cat confdefs.h >>conftest.$ac_ext
20564cat >>conftest.$ac_ext <<_ACEOF
20565/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020566$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020567int
20568main ()
20569{
20570if ((int64_t *) 0)
20571 return 0;
20572if (sizeof (int64_t))
20573 return 0;
20574 ;
20575 return 0;
20576}
20577_ACEOF
20578rm -f conftest.$ac_objext
20579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020580 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020582 grep -v '^ *+' conftest.er1 >conftest.err
20583 rm -f conftest.er1
20584 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020587 { ac_try='test -z "$ac_c_werror_flag"
20588 || test ! -s conftest.err'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_cv_type_int64_t=yes
20601else
20602 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020603sed 's/^/| /' conftest.$ac_ext >&5
20604
John Criswell7a73b802003-06-30 21:59:07 +000020605ac_cv_type_int64_t=no
20606fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020608fi
20609echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20610echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20611if test $ac_cv_type_int64_t = yes; then
20612
20613cat >>confdefs.h <<_ACEOF
20614#define HAVE_INT64_T 1
20615_ACEOF
20616
20617
20618else
20619 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20620echo "$as_me: error: Type int64_t required but not found" >&2;}
20621 { (exit 1); exit 1; }; }
20622fi
20623
20624echo "$as_me:$LINENO: checking for uint64_t" >&5
20625echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20626if test "${ac_cv_type_uint64_t+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020630/* confdefs.h. */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020635$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020636int
20637main ()
20638{
20639if ((uint64_t *) 0)
20640 return 0;
20641if (sizeof (uint64_t))
20642 return 0;
20643 ;
20644 return 0;
20645}
20646_ACEOF
20647rm -f conftest.$ac_objext
20648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020649 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020656 { ac_try='test -z "$ac_c_werror_flag"
20657 || test ! -s conftest.err'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } &&
20663 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ac_cv_type_uint64_t=yes
20670else
20671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020672sed 's/^/| /' conftest.$ac_ext >&5
20673
John Criswell7a73b802003-06-30 21:59:07 +000020674ac_cv_type_uint64_t=no
20675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020677fi
20678echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20679echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20680if test $ac_cv_type_uint64_t = yes; then
20681
20682cat >>confdefs.h <<_ACEOF
20683#define HAVE_UINT64_T 1
20684_ACEOF
20685
20686
20687else
Misha Brukmanceca9042004-09-02 23:02:30 +000020688 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000020689echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20690if test "${ac_cv_type_u_int64_t+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692else
20693 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000020694/* confdefs.h. */
20695_ACEOF
20696cat confdefs.h >>conftest.$ac_ext
20697cat >>conftest.$ac_ext <<_ACEOF
20698/* end confdefs.h. */
20699$ac_includes_default
20700int
20701main ()
20702{
20703if ((u_int64_t *) 0)
20704 return 0;
20705if (sizeof (u_int64_t))
20706 return 0;
20707 ;
20708 return 0;
20709}
20710_ACEOF
20711rm -f conftest.$ac_objext
20712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020713 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000020714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020715 grep -v '^ *+' conftest.er1 >conftest.err
20716 rm -f conftest.er1
20717 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000020718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020720 { ac_try='test -z "$ac_c_werror_flag"
20721 || test ! -s conftest.err'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000020728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20730 ac_status=$?
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; }; then
20733 ac_cv_type_u_int64_t=yes
20734else
20735 echo "$as_me: failed program was:" >&5
20736sed 's/^/| /' conftest.$ac_ext >&5
20737
20738ac_cv_type_u_int64_t=no
20739fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000020741fi
20742echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20743echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20744if test $ac_cv_type_u_int64_t = yes; then
20745
20746cat >>confdefs.h <<_ACEOF
20747#define HAVE_U_INT64_T 1
20748_ACEOF
20749
20750
Misha Brukmanceca9042004-09-02 23:02:30 +000020751else
20752 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20753echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20754 { (exit 1); exit 1; }; }
20755fi
20756
John Criswell679ff312004-09-02 18:44:44 +000020757fi
20758
John Criswell7a73b802003-06-30 21:59:07 +000020759echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20760echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20761if test "${ac_cv_header_time+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020765/* confdefs.h. */
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
20769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020770#include <sys/types.h>
20771#include <sys/time.h>
20772#include <time.h>
20773
John Criswell7a73b802003-06-30 21:59:07 +000020774int
20775main ()
20776{
20777if ((struct tm *) 0)
20778return 0;
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783rm -f conftest.$ac_objext
20784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020785 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020786 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020792 { ac_try='test -z "$ac_c_werror_flag"
20793 || test ! -s conftest.err'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ac_cv_header_time=yes
20806else
20807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020808sed 's/^/| /' conftest.$ac_ext >&5
20809
John Criswell7a73b802003-06-30 21:59:07 +000020810ac_cv_header_time=no
20811fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020813fi
20814echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20815echo "${ECHO_T}$ac_cv_header_time" >&6
20816if test $ac_cv_header_time = yes; then
20817
20818cat >>confdefs.h <<\_ACEOF
20819#define TIME_WITH_SYS_TIME 1
20820_ACEOF
20821
20822fi
20823
20824echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20825echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20826if test "${ac_cv_struct_tm+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828else
20829 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020835#include <sys/types.h>
20836#include <time.h>
20837
John Criswell7a73b802003-06-30 21:59:07 +000020838int
20839main ()
20840{
20841struct tm *tp; tp->tm_sec;
20842 ;
20843 return 0;
20844}
20845_ACEOF
20846rm -f conftest.$ac_objext
20847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020848 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020849 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020855 { ac_try='test -z "$ac_c_werror_flag"
20856 || test ! -s conftest.err'
20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; } &&
20862 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_cv_struct_tm=time.h
20869else
20870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020871sed 's/^/| /' conftest.$ac_ext >&5
20872
John Criswell7a73b802003-06-30 21:59:07 +000020873ac_cv_struct_tm=sys/time.h
20874fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020876fi
20877echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20878echo "${ECHO_T}$ac_cv_struct_tm" >&6
20879if test $ac_cv_struct_tm = sys/time.h; then
20880
20881cat >>confdefs.h <<\_ACEOF
20882#define TM_IN_SYS_TIME 1
20883_ACEOF
20884
20885fi
20886
20887
John Criswella0137d32003-10-13 16:22:01 +000020888
Reid Spencer2706f8c2004-09-19 23:53:36 +000020889 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020890echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000020891 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000020892ac_cpp='$CPP $CPPFLAGS'
20893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895ac_compiler_gnu=$ac_cv_c_compiler_gnu
20896
Reid Spencer2706f8c2004-09-19 23:53:36 +000020897 if test "$cross_compiling" = yes; then
20898 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000020899else
20900 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000020901
20902 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000020903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
20906/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000020907
John Criswella0137d32003-10-13 16:22:01 +000020908#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000020909#include <stdlib.h>
20910
John Criswella0137d32003-10-13 16:22:01 +000020911int
20912main ()
20913{
20914
Reid Spencer2706f8c2004-09-19 23:53:36 +000020915volatile double A, B;
20916char Buffer[100];
20917A = 1;
20918A /= 10.0;
20919sprintf(Buffer, "%a", A);
20920B = atof(Buffer);
20921if (A != B)
20922 return (1);
20923if (A != 0x1.999999999999ap-4)
20924 return (1);
20925return (0);
John Criswella0137d32003-10-13 16:22:01 +000020926 ;
20927 return 0;
20928}
20929_ACEOF
20930rm -f conftest$ac_exeext
20931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932 (eval $ac_link) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 ac_c_printf_a=yes
20942else
20943 echo "$as_me: program exited with status $ac_status" >&5
20944echo "$as_me: failed program was:" >&5
20945sed 's/^/| /' conftest.$ac_ext >&5
20946
20947( exit $ac_status )
20948ac_c_printf_a=no
20949fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020950rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020951fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020952 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000020953ac_cpp='$CPP $CPPFLAGS'
20954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957
Reid Spencer2706f8c2004-09-19 23:53:36 +000020958 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020959echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000020960 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000020961
20962cat >>confdefs.h <<\_ACEOF
20963#define HAVE_PRINTF_A 1
20964_ACEOF
20965
Reid Spencer2706f8c2004-09-19 23:53:36 +000020966 fi
John Criswella0137d32003-10-13 16:22:01 +000020967
20968
John Criswell0021c312004-02-13 21:57:29 +000020969echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20970echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20971if test "${ac_cv_c_bigendian+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973else
20974 # See if sys/param.h defines the BYTE_ORDER macro.
20975cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020976/* confdefs.h. */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h. */
20981#include <sys/types.h>
20982#include <sys/param.h>
20983
20984int
20985main ()
20986{
20987#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20988 bogus endian macros
20989#endif
20990
20991 ;
20992 return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext
20996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020997 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020999 grep -v '^ *+' conftest.er1 >conftest.err
21000 rm -f conftest.er1
21001 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021004 { ac_try='test -z "$ac_c_werror_flag"
21005 || test ! -s conftest.err'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; } &&
21011 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; }; then
21017 # It does; now see whether it defined to BIG_ENDIAN or not.
21018cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024#include <sys/types.h>
21025#include <sys/param.h>
21026
21027int
21028main ()
21029{
21030#if BYTE_ORDER != BIG_ENDIAN
21031 not big endian
21032#endif
21033
21034 ;
21035 return 0;
21036}
21037_ACEOF
21038rm -f conftest.$ac_objext
21039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021040 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021042 grep -v '^ *+' conftest.er1 >conftest.err
21043 rm -f conftest.er1
21044 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021047 { ac_try='test -z "$ac_c_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_c_bigendian=yes
21061else
21062 echo "$as_me: failed program was:" >&5
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
21065ac_cv_c_bigendian=no
21066fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021068else
21069 echo "$as_me: failed program was:" >&5
21070sed 's/^/| /' conftest.$ac_ext >&5
21071
21072# It does not; compile a test program.
21073if test "$cross_compiling" = yes; then
21074 # try to guess the endianness by grepping values into an object file
21075 ac_cv_c_bigendian=unknown
21076 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21083short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21084void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21085short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21086short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21087void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21088int
21089main ()
21090{
21091 _ascii (); _ebcdic ();
21092 ;
21093 return 0;
21094}
21095_ACEOF
21096rm -f conftest.$ac_objext
21097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021098 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021099 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021105 { ac_try='test -z "$ac_c_werror_flag"
21106 || test ! -s conftest.err'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; } &&
21112 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21119 ac_cv_c_bigendian=yes
21120fi
21121if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21122 if test "$ac_cv_c_bigendian" = unknown; then
21123 ac_cv_c_bigendian=no
21124 else
21125 # finding both strings is unlikely to happen, but who knows?
21126 ac_cv_c_bigendian=unknown
21127 fi
21128fi
21129else
21130 echo "$as_me: failed program was:" >&5
21131sed 's/^/| /' conftest.$ac_ext >&5
21132
21133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021135else
21136 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021137/* confdefs.h. */
21138_ACEOF
21139cat confdefs.h >>conftest.$ac_ext
21140cat >>conftest.$ac_ext <<_ACEOF
21141/* end confdefs.h. */
21142int
21143main ()
21144{
21145 /* Are we little or big endian? From Harbison&Steele. */
21146 union
21147 {
21148 long l;
21149 char c[sizeof (long)];
21150 } u;
21151 u.l = 1;
21152 exit (u.c[sizeof (long) - 1] == 1);
21153}
21154_ACEOF
21155rm -f conftest$ac_exeext
21156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157 (eval $ac_link) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ac_cv_c_bigendian=no
21167else
21168 echo "$as_me: program exited with status $ac_status" >&5
21169echo "$as_me: failed program was:" >&5
21170sed 's/^/| /' conftest.$ac_ext >&5
21171
21172( exit $ac_status )
21173ac_cv_c_bigendian=yes
21174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021176fi
21177fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021179fi
21180echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21181echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21182case $ac_cv_c_bigendian in
21183 yes)
21184 ENDIAN=big
21185 ;;
21186 no)
21187 ENDIAN=little
21188 ;;
21189 *)
21190 { { echo "$as_me:$LINENO: error: unknown endianness
21191presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21192echo "$as_me: error: unknown endianness
21193presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21194 { (exit 1); exit 1; }; } ;;
21195esac
21196
21197
John Criswell7a73b802003-06-30 21:59:07 +000021198echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21199echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21200if test "${ac_cv_cxx_namespaces+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21202else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021203 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021204ac_cpp='$CXXCPP $CPPFLAGS'
21205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021215namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021216int
21217main ()
21218{
21219using namespace Outer::Inner; return i;
21220 ;
21221 return 0;
21222}
21223_ACEOF
21224rm -f conftest.$ac_objext
21225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021226 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021233 { ac_try='test -z "$ac_cxx_werror_flag"
21234 || test ! -s conftest.err'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242 (eval $ac_try) 2>&5
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 ac_cv_cxx_namespaces=yes
21247else
21248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021249sed 's/^/| /' conftest.$ac_ext >&5
21250
John Criswell7a73b802003-06-30 21:59:07 +000021251ac_cv_cxx_namespaces=no
21252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021254 ac_ext=c
21255ac_cpp='$CPP $CPPFLAGS'
21256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259
21260
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21263echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21264if test "$ac_cv_cxx_namespaces" = yes; then
21265
21266cat >>confdefs.h <<\_ACEOF
21267#define HAVE_NAMESPACES
21268_ACEOF
21269
21270fi
21271
Brian Gaeke90583492003-11-10 03:06:28 +000021272echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21273echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21274if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276else
21277
John Criswell7a73b802003-06-30 21:59:07 +000021278 ac_ext=cc
21279ac_cpp='$CXXCPP $CPPFLAGS'
21280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
21284 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021290#include <ext/hash_map>
21291#ifdef HAVE_NAMESPACES
21292using namespace std;
21293#endif
John Criswell7a73b802003-06-30 21:59:07 +000021294int
21295main ()
21296{
Brian Gaeke90583492003-11-10 03:06:28 +000021297hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021304 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021305 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021311 { ac_try='test -z "$ac_cxx_werror_flag"
21312 || test ! -s conftest.err'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021324 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021325else
21326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021327sed 's/^/| /' conftest.$ac_ext >&5
21328
Brian Gaeke90583492003-11-10 03:06:28 +000021329ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021330fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021332 ac_ext=c
21333ac_cpp='$CPP $CPPFLAGS'
21334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336ac_compiler_gnu=$ac_cv_c_compiler_gnu
21337
John Criswell7a73b802003-06-30 21:59:07 +000021338fi
Brian Gaeke90583492003-11-10 03:06:28 +000021339echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21340echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021341 HAVE_STD_EXT_HASH_MAP=0
21342 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21343 then
21344 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021345 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021346
Brian Gaeke90583492003-11-10 03:06:28 +000021347 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21348echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21349if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351else
21352
Brian Gaeke90583492003-11-10 03:06:28 +000021353 ac_ext=cc
21354ac_cpp='$CXXCPP $CPPFLAGS'
21355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21358
21359 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021360/* confdefs.h. */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h. */
21365#include <ext/hash_map>
21366#ifdef HAVE_NAMESPACES
21367using namespace __gnu_cxx;
21368#endif
21369int
21370main ()
21371{
21372hash_map<int,int> t;
21373 ;
21374 return 0;
21375}
21376_ACEOF
21377rm -f conftest.$ac_objext
21378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021379 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021386 { ac_try='test -z "$ac_cxx_werror_flag"
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 ac_cv_cxx_have_gnu_ext_hash_map=yes
21400else
21401 echo "$as_me: failed program was:" >&5
21402sed 's/^/| /' conftest.$ac_ext >&5
21403
21404ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021405fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021407 ac_ext=c
21408ac_cpp='$CPP $CPPFLAGS'
21409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412
21413fi
21414echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21415echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021416 HAVE_GNU_EXT_HASH_MAP=0
21417 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21418 then
21419 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021420 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021421
Brian Gaeke90583492003-11-10 03:06:28 +000021422 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21423echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21424if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426else
John Criswell7a73b802003-06-30 21:59:07 +000021427
Brian Gaeke90583492003-11-10 03:06:28 +000021428 ac_ext=cc
21429ac_cpp='$CXXCPP $CPPFLAGS'
21430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21433
21434 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021435/* confdefs.h. */
21436_ACEOF
21437cat confdefs.h >>conftest.$ac_ext
21438cat >>conftest.$ac_ext <<_ACEOF
21439/* end confdefs.h. */
21440#include <hash_map>
21441int
21442main ()
21443{
21444hash_map<int,int> t;
21445 ;
21446 return 0;
21447}
21448_ACEOF
21449rm -f conftest.$ac_objext
21450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021451 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021458 { ac_try='test -z "$ac_cxx_werror_flag"
21459 || test ! -s conftest.err'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
21471 ac_cv_cxx_have_global_hash_map=yes
21472else
21473 echo "$as_me: failed program was:" >&5
21474sed 's/^/| /' conftest.$ac_ext >&5
21475
21476ac_cv_cxx_have_global_hash_map=no
21477fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021479 ac_ext=c
21480ac_cpp='$CPP $CPPFLAGS'
21481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21483ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484
21485fi
21486echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21487echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021488 HAVE_GLOBAL_HASH_MAP=0
21489 if test "$ac_cv_cxx_have_global_hash_map" = yes
21490 then
21491 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021492 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021493
Brian Gaeke90583492003-11-10 03:06:28 +000021494echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21495echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21496if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498else
21499
John Criswell7a73b802003-06-30 21:59:07 +000021500 ac_ext=cc
21501ac_cpp='$CXXCPP $CPPFLAGS'
21502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21505
21506 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021512#include <ext/hash_set>
21513#ifdef HAVE_NAMESPACES
21514using namespace std;
21515#endif
John Criswell7a73b802003-06-30 21:59:07 +000021516int
21517main ()
21518{
Brian Gaeke90583492003-11-10 03:06:28 +000021519hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021520 ;
21521 return 0;
21522}
21523_ACEOF
21524rm -f conftest.$ac_objext
21525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021526 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021527 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021533 { ac_try='test -z "$ac_cxx_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021546 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021547else
21548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021549sed 's/^/| /' conftest.$ac_ext >&5
21550
Brian Gaeke90583492003-11-10 03:06:28 +000021551ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021552fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021554 ac_ext=c
21555ac_cpp='$CPP $CPPFLAGS'
21556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558ac_compiler_gnu=$ac_cv_c_compiler_gnu
21559
21560fi
21561echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21562echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021563 HAVE_STD_EXT_HASH_SET=0
21564 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21565 then
21566 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021567 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021568
Brian Gaeke90583492003-11-10 03:06:28 +000021569 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21570echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21571if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573else
21574
Brian Gaeke90583492003-11-10 03:06:28 +000021575 ac_ext=cc
21576ac_cpp='$CXXCPP $CPPFLAGS'
21577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21580
John Criswell7a73b802003-06-30 21:59:07 +000021581 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021582/* confdefs.h. */
21583_ACEOF
21584cat confdefs.h >>conftest.$ac_ext
21585cat >>conftest.$ac_ext <<_ACEOF
21586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021587#include <ext/hash_set>
21588#ifdef HAVE_NAMESPACES
21589using namespace __gnu_cxx;
21590#endif
John Criswell7a73b802003-06-30 21:59:07 +000021591int
21592main ()
21593{
Brian Gaeke90583492003-11-10 03:06:28 +000021594hash_set<int> t;
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599rm -f conftest.$ac_objext
21600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021601 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021608 { ac_try='test -z "$ac_cxx_werror_flag"
21609 || test ! -s conftest.err'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; } &&
21615 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 ac_cv_cxx_have_gnu_ext_hash_set=yes
21622else
21623 echo "$as_me: failed program was:" >&5
21624sed 's/^/| /' conftest.$ac_ext >&5
21625
21626ac_cv_cxx_have_gnu_ext_hash_set=no
21627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021629 ac_ext=c
21630ac_cpp='$CPP $CPPFLAGS'
21631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633ac_compiler_gnu=$ac_cv_c_compiler_gnu
21634
21635fi
21636echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21637echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021638 HAVE_GNU_EXT_HASH_SET=0
21639 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21640 then
21641 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021642 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021643
Brian Gaeke90583492003-11-10 03:06:28 +000021644 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21645echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21646if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648else
21649
Brian Gaeke90583492003-11-10 03:06:28 +000021650 ac_ext=cc
21651ac_cpp='$CXXCPP $CPPFLAGS'
21652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21655
21656 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21662#include <hash_set>
21663int
21664main ()
21665{
John Criswell7a73b802003-06-30 21:59:07 +000021666hash_set<int> t; return 0;
21667 ;
21668 return 0;
21669}
21670_ACEOF
21671rm -f conftest.$ac_objext
21672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021673 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021674 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021680 { ac_try='test -z "$ac_cxx_werror_flag"
21681 || test ! -s conftest.err'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021693 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021694else
21695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021696sed 's/^/| /' conftest.$ac_ext >&5
21697
Brian Gaeke90583492003-11-10 03:06:28 +000021698ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021699fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021701 ac_ext=c
21702ac_cpp='$CPP $CPPFLAGS'
21703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21705ac_compiler_gnu=$ac_cv_c_compiler_gnu
21706
John Criswell7a73b802003-06-30 21:59:07 +000021707fi
Brian Gaeke90583492003-11-10 03:06:28 +000021708echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21709echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021710 HAVE_GLOBAL_HASH_SET=0
21711 if test "$ac_cv_cxx_have_global_hash_set" = yes
21712 then
21713 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021714 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021715
John Criswell7a73b802003-06-30 21:59:07 +000021716echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21717echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21718if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21719 echo $ECHO_N "(cached) $ECHO_C" >&6
21720else
21721
John Criswell7a73b802003-06-30 21:59:07 +000021722 ac_ext=cc
21723ac_cpp='$CXXCPP $CPPFLAGS'
21724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21727
21728 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021729/* confdefs.h. */
21730_ACEOF
21731cat confdefs.h >>conftest.$ac_ext
21732cat >>conftest.$ac_ext <<_ACEOF
21733/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021734#include <iterator>
21735#ifdef HAVE_NAMESPACES
21736using namespace std;
21737#endif
John Criswell7a73b802003-06-30 21:59:07 +000021738int
21739main ()
21740{
21741iterator<int,int,int> t; return 0;
21742 ;
21743 return 0;
21744}
21745_ACEOF
21746rm -f conftest.$ac_objext
21747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021748 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021750 grep -v '^ *+' conftest.er1 >conftest.err
21751 rm -f conftest.er1
21752 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021755 { ac_try='test -z "$ac_cxx_werror_flag"
21756 || test ! -s conftest.err'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21765 ac_status=$?
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; }; then
21768 ac_cv_cxx_have_std_iterator=yes
21769else
21770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021771sed 's/^/| /' conftest.$ac_ext >&5
21772
John Criswell7a73b802003-06-30 21:59:07 +000021773ac_cv_cxx_have_std_iterator=no
21774fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021776 ac_ext=c
21777ac_cpp='$CPP $CPPFLAGS'
21778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781
21782
21783fi
21784echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21785echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021786HAVE_STD_ITERATOR=0
21787if test "$ac_cv_cxx_have_std_iterator" = yes
21788then
21789 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021790fi
21791
21792echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21793echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21794if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796else
21797
John Criswell7a73b802003-06-30 21:59:07 +000021798 ac_ext=cc
21799ac_cpp='$CXXCPP $CPPFLAGS'
21800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21803
21804 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021805/* confdefs.h. */
21806_ACEOF
21807cat confdefs.h >>conftest.$ac_ext
21808cat >>conftest.$ac_ext <<_ACEOF
21809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021810#include <iterator>
21811#ifdef HAVE_NAMESPACES
21812using namespace std;
21813#endif
John Criswell7a73b802003-06-30 21:59:07 +000021814int
21815main ()
21816{
John Criswellc78022e2003-07-29 19:11:58 +000021817bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021818 ;
21819 return 0;
21820}
21821_ACEOF
21822rm -f conftest.$ac_objext
21823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021824 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021825 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021826 grep -v '^ *+' conftest.er1 >conftest.err
21827 rm -f conftest.er1
21828 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021831 { ac_try='test -z "$ac_cxx_werror_flag"
21832 || test ! -s conftest.err'
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; } &&
21838 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_cv_cxx_have_bi_iterator=yes
21845else
21846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021847sed 's/^/| /' conftest.$ac_ext >&5
21848
John Criswell7a73b802003-06-30 21:59:07 +000021849ac_cv_cxx_have_bi_iterator=no
21850fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021852 ac_ext=c
21853ac_cpp='$CPP $CPPFLAGS'
21854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856ac_compiler_gnu=$ac_cv_c_compiler_gnu
21857
21858
21859fi
21860echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21861echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021862HAVE_BI_ITERATOR=0
21863if test "$ac_cv_cxx_have_bi_iterator" = yes
21864then
21865 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021866fi
21867
21868echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21869echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21870if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872else
21873
John Criswell7a73b802003-06-30 21:59:07 +000021874 ac_ext=cc
21875ac_cpp='$CXXCPP $CPPFLAGS'
21876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21879
21880 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021881/* confdefs.h. */
21882_ACEOF
21883cat confdefs.h >>conftest.$ac_ext
21884cat >>conftest.$ac_ext <<_ACEOF
21885/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021886#include <iterator>
21887#ifdef HAVE_NAMESPACES
21888using namespace std;
21889#endif
John Criswell7a73b802003-06-30 21:59:07 +000021890int
21891main ()
21892{
John Criswellc78022e2003-07-29 19:11:58 +000021893forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021894 ;
21895 return 0;
21896}
21897_ACEOF
21898rm -f conftest.$ac_objext
21899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021900 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021901 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021907 { ac_try='test -z "$ac_cxx_werror_flag"
21908 || test ! -s conftest.err'
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; } &&
21914 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916 (eval $ac_try) 2>&5
21917 ac_status=$?
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); }; }; then
21920 ac_cv_cxx_have_fwd_iterator=yes
21921else
21922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021923sed 's/^/| /' conftest.$ac_ext >&5
21924
John Criswell7a73b802003-06-30 21:59:07 +000021925ac_cv_cxx_have_fwd_iterator=no
21926fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021928 ac_ext=c
21929ac_cpp='$CPP $CPPFLAGS'
21930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21932ac_compiler_gnu=$ac_cv_c_compiler_gnu
21933
21934
21935fi
21936echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21937echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021938HAVE_FWD_ITERATOR=0
21939if test "$ac_cv_cxx_have_fwd_iterator" = yes
21940then
21941 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021942fi
21943
21944
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021945
21946echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21947echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21948if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21950else
21951 ac_ext=cc
21952ac_cpp='$CXXCPP $CPPFLAGS'
21953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21956
21957 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021958/* confdefs.h. */
21959_ACEOF
21960cat confdefs.h >>conftest.$ac_ext
21961cat >>conftest.$ac_ext <<_ACEOF
21962/* end confdefs.h. */
21963#include <math.h>
21964 int foo(float f) {return isnan(f);}
21965_ACEOF
21966rm -f conftest.$ac_objext
21967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021968 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021975 { ac_try='test -z "$ac_cxx_werror_flag"
21976 || test ! -s conftest.err'
21977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984 (eval $ac_try) 2>&5
21985 ac_status=$?
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 ac_cv_func_isnan_in_math_h=yes
21989else
21990 echo "$as_me: failed program was:" >&5
21991sed 's/^/| /' conftest.$ac_ext >&5
21992
21993ac_cv_func_isnan_in_math_h=no
21994fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021996 ac_ext=c
21997ac_cpp='$CPP $CPPFLAGS'
21998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22000ac_compiler_gnu=$ac_cv_c_compiler_gnu
22001
22002fi
22003echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22004echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22005 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22006 then
22007
22008cat >>confdefs.h <<\_ACEOF
22009#define HAVE_ISNAN_IN_MATH_H 1
22010_ACEOF
22011
22012 fi
22013echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22014echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22015if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018 ac_ext=cc
22019ac_cpp='$CXXCPP $CPPFLAGS'
22020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22023
22024 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022025/* confdefs.h. */
22026_ACEOF
22027cat confdefs.h >>conftest.$ac_ext
22028cat >>conftest.$ac_ext <<_ACEOF
22029/* end confdefs.h. */
22030#include <cmath>
22031 int foo(float f) {return isnan(f);}
22032_ACEOF
22033rm -f conftest.$ac_objext
22034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022035 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022037 grep -v '^ *+' conftest.er1 >conftest.err
22038 rm -f conftest.er1
22039 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022042 { ac_try='test -z "$ac_cxx_werror_flag"
22043 || test ! -s conftest.err'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 ac_cv_func_isnan_in_cmath=yes
22056else
22057 echo "$as_me: failed program was:" >&5
22058sed 's/^/| /' conftest.$ac_ext >&5
22059
22060ac_cv_func_isnan_in_cmath=no
22061fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022063 ac_ext=c
22064ac_cpp='$CPP $CPPFLAGS'
22065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22067ac_compiler_gnu=$ac_cv_c_compiler_gnu
22068
22069fi
22070echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22071echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22072 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22073 then
22074
22075cat >>confdefs.h <<\_ACEOF
22076#define HAVE_ISNAN_IN_CMATH 1
22077_ACEOF
22078
22079 fi
22080echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22081echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22082if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22084else
22085 ac_ext=cc
22086ac_cpp='$CXXCPP $CPPFLAGS'
22087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22090
22091 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022092/* confdefs.h. */
22093_ACEOF
22094cat confdefs.h >>conftest.$ac_ext
22095cat >>conftest.$ac_ext <<_ACEOF
22096/* end confdefs.h. */
22097#include <cmath>
22098 using std::isnan; int foo(float f) {return isnan(f);}
22099_ACEOF
22100rm -f conftest.$ac_objext
22101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022102 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022109 { ac_try='test -z "$ac_cxx_werror_flag"
22110 || test ! -s conftest.err'
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 ac_cv_func_std_isnan_in_cmath=yes
22123else
22124 echo "$as_me: failed program was:" >&5
22125sed 's/^/| /' conftest.$ac_ext >&5
22126
22127ac_cv_func_std_isnan_in_cmath=no
22128fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022130 ac_ext=c
22131ac_cpp='$CPP $CPPFLAGS'
22132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22134ac_compiler_gnu=$ac_cv_c_compiler_gnu
22135
22136fi
22137echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22138echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22139 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22140 then
22141
22142cat >>confdefs.h <<\_ACEOF
22143#define HAVE_STD_ISNAN_IN_CMATH 1
22144_ACEOF
22145
22146 fi
22147
22148
Brian Gaeke52a551d2004-07-21 03:14:12 +000022149echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22150echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22151if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22152 echo $ECHO_N "(cached) $ECHO_C" >&6
22153else
22154 ac_ext=cc
22155ac_cpp='$CXXCPP $CPPFLAGS'
22156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22159
22160 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022161/* confdefs.h. */
22162_ACEOF
22163cat confdefs.h >>conftest.$ac_ext
22164cat >>conftest.$ac_ext <<_ACEOF
22165/* end confdefs.h. */
22166#include <math.h>
22167 int foo(float f) {return isinf(f);}
22168_ACEOF
22169rm -f conftest.$ac_objext
22170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022171 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022172 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022173 grep -v '^ *+' conftest.er1 >conftest.err
22174 rm -f conftest.er1
22175 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022178 { ac_try='test -z "$ac_cxx_werror_flag"
22179 || test ! -s conftest.err'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; } &&
22185 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; }; then
22191 ac_cv_func_isinf_in_math_h=yes
22192else
22193 echo "$as_me: failed program was:" >&5
22194sed 's/^/| /' conftest.$ac_ext >&5
22195
22196ac_cv_func_isinf_in_math_h=no
22197fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022199 ac_ext=c
22200ac_cpp='$CPP $CPPFLAGS'
22201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22203ac_compiler_gnu=$ac_cv_c_compiler_gnu
22204
22205fi
22206echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22207echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22208 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22209 then
22210
22211cat >>confdefs.h <<\_ACEOF
22212#define HAVE_ISINF_IN_MATH_H 1
22213_ACEOF
22214
22215 fi
22216echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22217echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22218if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22220else
22221 ac_ext=cc
22222ac_cpp='$CXXCPP $CPPFLAGS'
22223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22226
22227 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022228/* confdefs.h. */
22229_ACEOF
22230cat confdefs.h >>conftest.$ac_ext
22231cat >>conftest.$ac_ext <<_ACEOF
22232/* end confdefs.h. */
22233#include <cmath>
22234 int foo(float f) {return isinf(f);}
22235_ACEOF
22236rm -f conftest.$ac_objext
22237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022238 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022240 grep -v '^ *+' conftest.er1 >conftest.err
22241 rm -f conftest.er1
22242 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022245 { ac_try='test -z "$ac_cxx_werror_flag"
22246 || test ! -s conftest.err'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; } &&
22252 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_func_isinf_in_cmath=yes
22259else
22260 echo "$as_me: failed program was:" >&5
22261sed 's/^/| /' conftest.$ac_ext >&5
22262
22263ac_cv_func_isinf_in_cmath=no
22264fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022266 ac_ext=c
22267ac_cpp='$CPP $CPPFLAGS'
22268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272fi
22273echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22274echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22275 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22276 then
22277
22278cat >>confdefs.h <<\_ACEOF
22279#define HAVE_ISINF_IN_CMATH 1
22280_ACEOF
22281
22282 fi
22283echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22284echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22285if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287else
22288 ac_ext=cc
22289ac_cpp='$CXXCPP $CPPFLAGS'
22290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22293
22294 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022295/* confdefs.h. */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h. */
22300#include <cmath>
22301 using std::isinf; int foo(float f) {return isinf(f);}
22302_ACEOF
22303rm -f conftest.$ac_objext
22304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022305 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022306 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022307 grep -v '^ *+' conftest.er1 >conftest.err
22308 rm -f conftest.er1
22309 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022312 { ac_try='test -z "$ac_cxx_werror_flag"
22313 || test ! -s conftest.err'
22314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315 (eval $ac_try) 2>&5
22316 ac_status=$?
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); }; } &&
22319 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321 (eval $ac_try) 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
22325 ac_cv_func_std_isinf_in_cmath=yes
22326else
22327 echo "$as_me: failed program was:" >&5
22328sed 's/^/| /' conftest.$ac_ext >&5
22329
22330ac_cv_func_std_isinf_in_cmath=no
22331fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022333 ac_ext=c
22334ac_cpp='$CPP $CPPFLAGS'
22335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337ac_compiler_gnu=$ac_cv_c_compiler_gnu
22338
22339fi
22340echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22341echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22342 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22343 then
22344
22345cat >>confdefs.h <<\_ACEOF
22346#define HAVE_STD_ISINF_IN_CMATH 1
22347_ACEOF
22348
22349 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022350echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22351echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22352if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354else
22355 ac_ext=cc
22356ac_cpp='$CXXCPP $CPPFLAGS'
22357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22360
22361 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
22367#include <ieeefp.h>
22368 int foo(float f) {return finite(f);}
22369_ACEOF
22370rm -f conftest.$ac_objext
22371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022372 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022379 { ac_try='test -z "$ac_cxx_werror_flag"
22380 || test ! -s conftest.err'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } &&
22386 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 ac_cv_func_finite_in_ieeefp_h=yes
22393else
22394 echo "$as_me: failed program was:" >&5
22395sed 's/^/| /' conftest.$ac_ext >&5
22396
22397ac_cv_func_finite_in_ieeefp_h=no
22398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022400 ac_ext=c
22401ac_cpp='$CPP $CPPFLAGS'
22402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22404ac_compiler_gnu=$ac_cv_c_compiler_gnu
22405
22406fi
22407echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22408echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22409 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22410 then
22411
22412cat >>confdefs.h <<\_ACEOF
22413#define HAVE_FINITE_IN_IEEEFP_H 1
22414_ACEOF
22415
22416 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022417
22418
John Criswell7a73b802003-06-30 21:59:07 +000022419# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22420# for constant arguments. Useless!
22421echo "$as_me:$LINENO: checking for working alloca.h" >&5
22422echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22423if test "${ac_cv_working_alloca_h+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22425else
22426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022427/* confdefs.h. */
22428_ACEOF
22429cat confdefs.h >>conftest.$ac_ext
22430cat >>conftest.$ac_ext <<_ACEOF
22431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022432#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022433int
22434main ()
22435{
22436char *p = (char *) alloca (2 * sizeof (int));
22437 ;
22438 return 0;
22439}
22440_ACEOF
22441rm -f conftest.$ac_objext conftest$ac_exeext
22442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022445 grep -v '^ *+' conftest.er1 >conftest.err
22446 rm -f conftest.er1
22447 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022450 { ac_try='test -z "$ac_c_werror_flag"
22451 || test ! -s conftest.err'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_working_alloca_h=yes
22464else
22465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022466sed 's/^/| /' conftest.$ac_ext >&5
22467
John Criswell7a73b802003-06-30 21:59:07 +000022468ac_cv_working_alloca_h=no
22469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022470rm -f conftest.err conftest.$ac_objext \
22471 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022472fi
22473echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22474echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22475if test $ac_cv_working_alloca_h = yes; then
22476
22477cat >>confdefs.h <<\_ACEOF
22478#define HAVE_ALLOCA_H 1
22479_ACEOF
22480
22481fi
22482
22483echo "$as_me:$LINENO: checking for alloca" >&5
22484echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22485if test "${ac_cv_func_alloca_works+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22487else
22488 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022489/* confdefs.h. */
22490_ACEOF
22491cat confdefs.h >>conftest.$ac_ext
22492cat >>conftest.$ac_ext <<_ACEOF
22493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022494#ifdef __GNUC__
22495# define alloca __builtin_alloca
22496#else
22497# ifdef _MSC_VER
22498# include <malloc.h>
22499# define alloca _alloca
22500# else
22501# if HAVE_ALLOCA_H
22502# include <alloca.h>
22503# else
22504# ifdef _AIX
22505 #pragma alloca
22506# else
22507# ifndef alloca /* predefined by HP cc +Olibcalls */
22508char *alloca ();
22509# endif
22510# endif
22511# endif
22512# endif
22513#endif
22514
John Criswell7a73b802003-06-30 21:59:07 +000022515int
22516main ()
22517{
22518char *p = (char *) alloca (1);
22519 ;
22520 return 0;
22521}
22522_ACEOF
22523rm -f conftest.$ac_objext conftest$ac_exeext
22524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022525 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022532 { ac_try='test -z "$ac_c_werror_flag"
22533 || test ! -s conftest.err'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; } &&
22539 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 ac_cv_func_alloca_works=yes
22546else
22547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022548sed 's/^/| /' conftest.$ac_ext >&5
22549
John Criswell7a73b802003-06-30 21:59:07 +000022550ac_cv_func_alloca_works=no
22551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022552rm -f conftest.err conftest.$ac_objext \
22553 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022554fi
22555echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22556echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22557
22558if test $ac_cv_func_alloca_works = yes; then
22559
22560cat >>confdefs.h <<\_ACEOF
22561#define HAVE_ALLOCA 1
22562_ACEOF
22563
22564else
22565 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22566# that cause trouble. Some versions do not even contain alloca or
22567# contain a buggy version. If you still want to use their alloca,
22568# use ar to extract alloca.o from them instead of compiling alloca.c.
22569
22570ALLOCA=alloca.$ac_objext
22571
22572cat >>confdefs.h <<\_ACEOF
22573#define C_ALLOCA 1
22574_ACEOF
22575
22576
22577echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22578echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22579if test "${ac_cv_os_cray+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581else
22582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022583/* confdefs.h. */
22584_ACEOF
22585cat confdefs.h >>conftest.$ac_ext
22586cat >>conftest.$ac_ext <<_ACEOF
22587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022588#if defined(CRAY) && ! defined(CRAY2)
22589webecray
22590#else
22591wenotbecray
22592#endif
22593
22594_ACEOF
22595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022596 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022597 ac_cv_os_cray=yes
22598else
22599 ac_cv_os_cray=no
22600fi
22601rm -f conftest*
22602
22603fi
22604echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22605echo "${ECHO_T}$ac_cv_os_cray" >&6
22606if test $ac_cv_os_cray = yes; then
22607 for ac_func in _getb67 GETB67 getb67; do
22608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22609echo "$as_me:$LINENO: checking for $ac_func" >&5
22610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22611if eval "test \"\${$as_ac_var+set}\" = set"; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22613else
22614 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022615/* confdefs.h. */
22616_ACEOF
22617cat confdefs.h >>conftest.$ac_ext
22618cat >>conftest.$ac_ext <<_ACEOF
22619/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22622#define $ac_func innocuous_$ac_func
22623
John Criswell7a73b802003-06-30 21:59:07 +000022624/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022625 which can conflict with char $ac_func (); below.
22626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22627 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022628
John Criswell0c38eaf2003-09-10 15:17:25 +000022629#ifdef __STDC__
22630# include <limits.h>
22631#else
22632# include <assert.h>
22633#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022634
22635#undef $ac_func
22636
John Criswell7a73b802003-06-30 21:59:07 +000022637/* Override any gcc2 internal prototype to avoid an error. */
22638#ifdef __cplusplus
22639extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022640{
John Criswell7a73b802003-06-30 21:59:07 +000022641#endif
22642/* We use char because int might match the return type of a gcc2
22643 builtin and then its argument prototype would still apply. */
22644char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022645/* The GNU C library defines this for functions which it implements
22646 to always fail with ENOSYS. Some functions are actually named
22647 something starting with __ and the normal name is an alias. */
22648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22649choke me
22650#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022651char (*f) () = $ac_func;
22652#endif
22653#ifdef __cplusplus
22654}
John Criswell7a73b802003-06-30 21:59:07 +000022655#endif
22656
John Criswell0c38eaf2003-09-10 15:17:25 +000022657int
22658main ()
22659{
22660return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022661 ;
22662 return 0;
22663}
22664_ACEOF
22665rm -f conftest.$ac_objext conftest$ac_exeext
22666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022667 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 eval "$as_ac_var=yes"
22688else
22689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022690sed 's/^/| /' conftest.$ac_ext >&5
22691
John Criswell7a73b802003-06-30 21:59:07 +000022692eval "$as_ac_var=no"
22693fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022694rm -f conftest.err conftest.$ac_objext \
22695 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022696fi
22697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22699if test `eval echo '${'$as_ac_var'}'` = yes; then
22700
22701cat >>confdefs.h <<_ACEOF
22702#define CRAY_STACKSEG_END $ac_func
22703_ACEOF
22704
22705 break
22706fi
22707
22708 done
22709fi
22710
22711echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22712echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22713if test "${ac_cv_c_stack_direction+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22715else
22716 if test "$cross_compiling" = yes; then
22717 ac_cv_c_stack_direction=0
22718else
22719 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022720/* confdefs.h. */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022725int
22726find_stack_direction ()
22727{
22728 static char *addr = 0;
22729 auto char dummy;
22730 if (addr == 0)
22731 {
22732 addr = &dummy;
22733 return find_stack_direction ();
22734 }
22735 else
22736 return (&dummy > addr) ? 1 : -1;
22737}
22738
22739int
22740main ()
22741{
22742 exit (find_stack_direction () < 0);
22743}
22744_ACEOF
22745rm -f conftest$ac_exeext
22746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22747 (eval $ac_link) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; }; then
22756 ac_cv_c_stack_direction=1
22757else
22758 echo "$as_me: program exited with status $ac_status" >&5
22759echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022760sed 's/^/| /' conftest.$ac_ext >&5
22761
John Criswell7a73b802003-06-30 21:59:07 +000022762( exit $ac_status )
22763ac_cv_c_stack_direction=-1
22764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022766fi
22767fi
22768echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22769echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22770
22771cat >>confdefs.h <<_ACEOF
22772#define STACK_DIRECTION $ac_cv_c_stack_direction
22773_ACEOF
22774
22775
22776fi
22777
John Criswell7a73b802003-06-30 21:59:07 +000022778
22779
22780for ac_header in stdlib.h unistd.h
22781do
22782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22783if eval "test \"\${$as_ac_Header+set}\" = set"; then
22784 echo "$as_me:$LINENO: checking for $ac_header" >&5
22785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22786if eval "test \"\${$as_ac_Header+set}\" = set"; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788fi
22789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22791else
22792 # Is the header compilable?
22793echo "$as_me:$LINENO: checking $ac_header usability" >&5
22794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22795cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022801$ac_includes_default
22802#include <$ac_header>
22803_ACEOF
22804rm -f conftest.$ac_objext
22805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022806 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022813 { ac_try='test -z "$ac_c_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_header_compiler=yes
22827else
22828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022829sed 's/^/| /' conftest.$ac_ext >&5
22830
John Criswell7a73b802003-06-30 21:59:07 +000022831ac_header_compiler=no
22832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22835echo "${ECHO_T}$ac_header_compiler" >&6
22836
22837# Is the header present?
22838echo "$as_me:$LINENO: checking $ac_header presence" >&5
22839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22840cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022841/* confdefs.h. */
22842_ACEOF
22843cat confdefs.h >>conftest.$ac_ext
22844cat >>conftest.$ac_ext <<_ACEOF
22845/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022846#include <$ac_header>
22847_ACEOF
22848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22850 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022851 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022852 rm -f conftest.er1
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } >/dev/null; then
22856 if test -s conftest.err; then
22857 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000022858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022859 else
22860 ac_cpp_err=
22861 fi
22862else
22863 ac_cpp_err=yes
22864fi
22865if test -z "$ac_cpp_err"; then
22866 ac_header_preproc=yes
22867else
22868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022869sed 's/^/| /' conftest.$ac_ext >&5
22870
John Criswell7a73b802003-06-30 21:59:07 +000022871 ac_header_preproc=no
22872fi
22873rm -f conftest.err conftest.$ac_ext
22874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22875echo "${ECHO_T}$ac_header_preproc" >&6
22876
22877# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22879 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22884 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000022885 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022886 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000022887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022899 (
22900 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000022901## ----------------------------------- ##
22902## Report this to llvmbugs@cs.uiuc.edu ##
22903## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022904_ASBOX
22905 ) |
22906 sed "s/^/$as_me: WARNING: /" >&2
22907 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022908esac
22909echo "$as_me:$LINENO: checking for $ac_header" >&5
22910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22911if eval "test \"\${$as_ac_Header+set}\" = set"; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022914 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022915fi
22916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22918
22919fi
22920if test `eval echo '${'$as_ac_Header'}'` = yes; then
22921 cat >>confdefs.h <<_ACEOF
22922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22923_ACEOF
22924
22925fi
22926
22927done
22928
22929
22930for ac_func in getpagesize
22931do
22932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22933echo "$as_me:$LINENO: checking for $ac_func" >&5
22934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22935if eval "test \"\${$as_ac_var+set}\" = set"; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937else
22938 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022939/* confdefs.h. */
22940_ACEOF
22941cat confdefs.h >>conftest.$ac_ext
22942cat >>conftest.$ac_ext <<_ACEOF
22943/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22946#define $ac_func innocuous_$ac_func
22947
John Criswell7a73b802003-06-30 21:59:07 +000022948/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022949 which can conflict with char $ac_func (); below.
22950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22951 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022952
John Criswell0c38eaf2003-09-10 15:17:25 +000022953#ifdef __STDC__
22954# include <limits.h>
22955#else
22956# include <assert.h>
22957#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022958
22959#undef $ac_func
22960
John Criswell7a73b802003-06-30 21:59:07 +000022961/* Override any gcc2 internal prototype to avoid an error. */
22962#ifdef __cplusplus
22963extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022964{
John Criswell7a73b802003-06-30 21:59:07 +000022965#endif
22966/* We use char because int might match the return type of a gcc2
22967 builtin and then its argument prototype would still apply. */
22968char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022969/* The GNU C library defines this for functions which it implements
22970 to always fail with ENOSYS. Some functions are actually named
22971 something starting with __ and the normal name is an alias. */
22972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22973choke me
22974#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022975char (*f) () = $ac_func;
22976#endif
22977#ifdef __cplusplus
22978}
John Criswell7a73b802003-06-30 21:59:07 +000022979#endif
22980
John Criswell0c38eaf2003-09-10 15:17:25 +000022981int
22982main ()
22983{
22984return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022985 ;
22986 return 0;
22987}
22988_ACEOF
22989rm -f conftest.$ac_objext conftest$ac_exeext
22990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022991 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022998 { ac_try='test -z "$ac_c_werror_flag"
22999 || test ! -s conftest.err'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 eval "$as_ac_var=yes"
23012else
23013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023014sed 's/^/| /' conftest.$ac_ext >&5
23015
John Criswell7a73b802003-06-30 21:59:07 +000023016eval "$as_ac_var=no"
23017fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023018rm -f conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023020fi
23021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23022echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23023if test `eval echo '${'$as_ac_var'}'` = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23026_ACEOF
23027
23028fi
23029done
23030
23031echo "$as_me:$LINENO: checking for working mmap" >&5
23032echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23033if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23035else
23036 if test "$cross_compiling" = yes; then
23037 ac_cv_func_mmap_fixed_mapped=no
23038else
23039 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023040/* confdefs.h. */
23041_ACEOF
23042cat confdefs.h >>conftest.$ac_ext
23043cat >>conftest.$ac_ext <<_ACEOF
23044/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023045$ac_includes_default
23046/* malloc might have been renamed as rpl_malloc. */
23047#undef malloc
23048
23049/* Thanks to Mike Haertel and Jim Avera for this test.
23050 Here is a matrix of mmap possibilities:
23051 mmap private not fixed
23052 mmap private fixed at somewhere currently unmapped
23053 mmap private fixed at somewhere already mapped
23054 mmap shared not fixed
23055 mmap shared fixed at somewhere currently unmapped
23056 mmap shared fixed at somewhere already mapped
23057 For private mappings, we should verify that changes cannot be read()
23058 back from the file, nor mmap's back from the file at a different
23059 address. (There have been systems where private was not correctly
23060 implemented like the infamous i386 svr4.0, and systems where the
23061 VM page cache was not coherent with the file system buffer cache
23062 like early versions of FreeBSD and possibly contemporary NetBSD.)
23063 For shared mappings, we should conversely verify that changes get
23064 propagated back to all the places they're supposed to be.
23065
23066 Grep wants private fixed already mapped.
23067 The main things grep needs to know about mmap are:
23068 * does it exist and is it safe to write into the mmap'd area
23069 * how to use it (BSD variants) */
23070
23071#include <fcntl.h>
23072#include <sys/mman.h>
23073
23074#if !STDC_HEADERS && !HAVE_STDLIB_H
23075char *malloc ();
23076#endif
23077
23078/* This mess was copied from the GNU getpagesize.h. */
23079#if !HAVE_GETPAGESIZE
23080/* Assume that all systems that can run configure have sys/param.h. */
23081# if !HAVE_SYS_PARAM_H
23082# define HAVE_SYS_PARAM_H 1
23083# endif
23084
23085# ifdef _SC_PAGESIZE
23086# define getpagesize() sysconf(_SC_PAGESIZE)
23087# else /* no _SC_PAGESIZE */
23088# if HAVE_SYS_PARAM_H
23089# include <sys/param.h>
23090# ifdef EXEC_PAGESIZE
23091# define getpagesize() EXEC_PAGESIZE
23092# else /* no EXEC_PAGESIZE */
23093# ifdef NBPG
23094# define getpagesize() NBPG * CLSIZE
23095# ifndef CLSIZE
23096# define CLSIZE 1
23097# endif /* no CLSIZE */
23098# else /* no NBPG */
23099# ifdef NBPC
23100# define getpagesize() NBPC
23101# else /* no NBPC */
23102# ifdef PAGESIZE
23103# define getpagesize() PAGESIZE
23104# endif /* PAGESIZE */
23105# endif /* no NBPC */
23106# endif /* no NBPG */
23107# endif /* no EXEC_PAGESIZE */
23108# else /* no HAVE_SYS_PARAM_H */
23109# define getpagesize() 8192 /* punt totally */
23110# endif /* no HAVE_SYS_PARAM_H */
23111# endif /* no _SC_PAGESIZE */
23112
23113#endif /* no HAVE_GETPAGESIZE */
23114
23115int
23116main ()
23117{
23118 char *data, *data2, *data3;
23119 int i, pagesize;
23120 int fd;
23121
23122 pagesize = getpagesize ();
23123
23124 /* First, make a file with some known garbage in it. */
23125 data = (char *) malloc (pagesize);
23126 if (!data)
23127 exit (1);
23128 for (i = 0; i < pagesize; ++i)
23129 *(data + i) = rand ();
23130 umask (0);
23131 fd = creat ("conftest.mmap", 0600);
23132 if (fd < 0)
23133 exit (1);
23134 if (write (fd, data, pagesize) != pagesize)
23135 exit (1);
23136 close (fd);
23137
23138 /* Next, try to mmap the file at a fixed address which already has
23139 something else allocated at it. If we can, also make sure that
23140 we see the same garbage. */
23141 fd = open ("conftest.mmap", O_RDWR);
23142 if (fd < 0)
23143 exit (1);
23144 data2 = (char *) malloc (2 * pagesize);
23145 if (!data2)
23146 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023147 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023150 exit (1);
23151 for (i = 0; i < pagesize; ++i)
23152 if (*(data + i) != *(data2 + i))
23153 exit (1);
23154
23155 /* Finally, make sure that changes to the mapped area do not
23156 percolate back to the file as seen by read(). (This is a bug on
23157 some variants of i386 svr4.0.) */
23158 for (i = 0; i < pagesize; ++i)
23159 *(data2 + i) = *(data2 + i) + 1;
23160 data3 = (char *) malloc (pagesize);
23161 if (!data3)
23162 exit (1);
23163 if (read (fd, data3, pagesize) != pagesize)
23164 exit (1);
23165 for (i = 0; i < pagesize; ++i)
23166 if (*(data + i) != *(data3 + i))
23167 exit (1);
23168 close (fd);
23169 exit (0);
23170}
23171_ACEOF
23172rm -f conftest$ac_exeext
23173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23174 (eval $ac_link) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_func_mmap_fixed_mapped=yes
23184else
23185 echo "$as_me: program exited with status $ac_status" >&5
23186echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023187sed 's/^/| /' conftest.$ac_ext >&5
23188
John Criswell7a73b802003-06-30 21:59:07 +000023189( exit $ac_status )
23190ac_cv_func_mmap_fixed_mapped=no
23191fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023192rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023193fi
23194fi
23195echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23196echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23197if test $ac_cv_func_mmap_fixed_mapped = yes; then
23198
23199cat >>confdefs.h <<\_ACEOF
23200#define HAVE_MMAP 1
23201_ACEOF
23202
23203fi
23204rm -f conftest.mmap
23205
Brian Gaeke26be9c52004-01-13 06:43:16 +000023206if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23207then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023208 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23209echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023210fi
John Criswell7a73b802003-06-30 21:59:07 +000023211echo "$as_me:$LINENO: checking for mmap of files" >&5
23212echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23213if test "${ac_cv_func_mmap_file+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23215else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023216 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023217ac_cpp='$CPP $CPPFLAGS'
23218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23220ac_compiler_gnu=$ac_cv_c_compiler_gnu
23221
23222 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023223 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023224else
23225 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023226
Reid Spencer777ce172004-09-20 04:09:56 +000023227 /* confdefs.h. */
23228_ACEOF
23229cat confdefs.h >>conftest.$ac_ext
23230cat >>conftest.$ac_ext <<_ACEOF
23231/* end confdefs.h. */
23232
John Criswell7a73b802003-06-30 21:59:07 +000023233#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023234#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023235#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023236
23237int
23238main ()
23239{
John Criswell7a73b802003-06-30 21:59:07 +000023240
23241 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023242 fd = creat ("foo",0777);
23243 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23244 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023245 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023246 ;
23247 return 0;
23248}
John Criswell7a73b802003-06-30 21:59:07 +000023249_ACEOF
23250rm -f conftest$ac_exeext
23251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23252 (eval $ac_link) 2>&5
23253 ac_status=$?
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 ac_cv_func_mmap_file=yes
23262else
23263 echo "$as_me: program exited with status $ac_status" >&5
23264echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023265sed 's/^/| /' conftest.$ac_ext >&5
23266
John Criswell7a73b802003-06-30 21:59:07 +000023267( exit $ac_status )
23268ac_cv_func_mmap_file=no
23269fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023271fi
23272 ac_ext=c
23273ac_cpp='$CPP $CPPFLAGS'
23274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276ac_compiler_gnu=$ac_cv_c_compiler_gnu
23277
23278
23279fi
23280echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23281echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23282if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023283
23284cat >>confdefs.h <<\_ACEOF
23285#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023286_ACEOF
23287
23288 MMAP_FILE=yes
23289
23290fi
23291
Brian Gaeke26be9c52004-01-13 06:43:16 +000023292if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023293then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023294 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23295echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023296fi
23297echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23298echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23299if test "${ac_cv_header_mmap_anon+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023302 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023303ac_cpp='$CPP $CPPFLAGS'
23304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23306ac_compiler_gnu=$ac_cv_c_compiler_gnu
23307
23308 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023309/* confdefs.h. */
23310_ACEOF
23311cat confdefs.h >>conftest.$ac_ext
23312cat >>conftest.$ac_ext <<_ACEOF
23313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023314#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000023315#include <unistd.h>
23316#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023317int
23318main ()
23319{
23320mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23321 ;
23322 return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext
23326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023327 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023328 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023334 { ac_try='test -z "$ac_c_werror_flag"
23335 || test ! -s conftest.err'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_header_mmap_anon=yes
23348else
23349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023350sed 's/^/| /' conftest.$ac_ext >&5
23351
John Criswell7a73b802003-06-30 21:59:07 +000023352ac_cv_header_mmap_anon=no
23353fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023355 ac_ext=c
23356ac_cpp='$CPP $CPPFLAGS'
23357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23359ac_compiler_gnu=$ac_cv_c_compiler_gnu
23360
23361
23362fi
23363echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23364echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23365if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023366
23367cat >>confdefs.h <<\_ACEOF
23368#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023369_ACEOF
23370
23371fi
23372
23373echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23374echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23375if test "${ac_cv_type_signal+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377else
23378 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023379/* confdefs.h. */
23380_ACEOF
23381cat confdefs.h >>conftest.$ac_ext
23382cat >>conftest.$ac_ext <<_ACEOF
23383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023384#include <sys/types.h>
23385#include <signal.h>
23386#ifdef signal
23387# undef signal
23388#endif
23389#ifdef __cplusplus
23390extern "C" void (*signal (int, void (*)(int)))(int);
23391#else
23392void (*signal ()) ();
23393#endif
23394
John Criswell7a73b802003-06-30 21:59:07 +000023395int
23396main ()
23397{
23398int i;
23399 ;
23400 return 0;
23401}
23402_ACEOF
23403rm -f conftest.$ac_objext
23404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023405 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023407 grep -v '^ *+' conftest.er1 >conftest.err
23408 rm -f conftest.er1
23409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023412 { ac_try='test -z "$ac_c_werror_flag"
23413 || test ! -s conftest.err'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; } &&
23419 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 ac_cv_type_signal=void
23426else
23427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023428sed 's/^/| /' conftest.$ac_ext >&5
23429
John Criswell7a73b802003-06-30 21:59:07 +000023430ac_cv_type_signal=int
23431fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023433fi
23434echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23435echo "${ECHO_T}$ac_cv_type_signal" >&6
23436
23437cat >>confdefs.h <<_ACEOF
23438#define RETSIGTYPE $ac_cv_type_signal
23439_ACEOF
23440
23441
23442
23443
23444
23445
23446
Brian Gaekef5261472004-02-20 06:40:57 +000023447
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023448
John Criswelld6621562004-06-07 14:26:24 +000023449
23450
John Criswell7ed43ad2004-07-19 16:12:29 +000023451for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023452do
23453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23454echo "$as_me:$LINENO: checking for $ac_func" >&5
23455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23456if eval "test \"\${$as_ac_var+set}\" = set"; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23458else
23459 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023460/* confdefs.h. */
23461_ACEOF
23462cat confdefs.h >>conftest.$ac_ext
23463cat >>conftest.$ac_ext <<_ACEOF
23464/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23467#define $ac_func innocuous_$ac_func
23468
John Criswell7a73b802003-06-30 21:59:07 +000023469/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023470 which can conflict with char $ac_func (); below.
23471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23472 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023473
John Criswell0c38eaf2003-09-10 15:17:25 +000023474#ifdef __STDC__
23475# include <limits.h>
23476#else
23477# include <assert.h>
23478#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023479
23480#undef $ac_func
23481
John Criswell7a73b802003-06-30 21:59:07 +000023482/* Override any gcc2 internal prototype to avoid an error. */
23483#ifdef __cplusplus
23484extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023485{
John Criswell7a73b802003-06-30 21:59:07 +000023486#endif
23487/* We use char because int might match the return type of a gcc2
23488 builtin and then its argument prototype would still apply. */
23489char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023490/* The GNU C library defines this for functions which it implements
23491 to always fail with ENOSYS. Some functions are actually named
23492 something starting with __ and the normal name is an alias. */
23493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23494choke me
23495#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023496char (*f) () = $ac_func;
23497#endif
23498#ifdef __cplusplus
23499}
John Criswell7a73b802003-06-30 21:59:07 +000023500#endif
23501
John Criswell0c38eaf2003-09-10 15:17:25 +000023502int
23503main ()
23504{
23505return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023506 ;
23507 return 0;
23508}
23509_ACEOF
23510rm -f conftest.$ac_objext conftest$ac_exeext
23511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023512 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023514 grep -v '^ *+' conftest.er1 >conftest.err
23515 rm -f conftest.er1
23516 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023519 { ac_try='test -z "$ac_c_werror_flag"
23520 || test ! -s conftest.err'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; } &&
23526 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; }; then
23532 eval "$as_ac_var=yes"
23533else
23534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023535sed 's/^/| /' conftest.$ac_ext >&5
23536
John Criswell7a73b802003-06-30 21:59:07 +000023537eval "$as_ac_var=no"
23538fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023539rm -f conftest.err conftest.$ac_objext \
23540 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023541fi
23542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23543echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23544if test `eval echo '${'$as_ac_var'}'` = yes; then
23545 cat >>confdefs.h <<_ACEOF
23546#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23547_ACEOF
23548
23549fi
23550done
23551
John Criswell7a73b802003-06-30 21:59:07 +000023552echo "$as_me:$LINENO: checking for mprotect" >&5
23553echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23554if test "${ac_cv_func_mprotect+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23556else
23557 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023558/* confdefs.h. */
23559_ACEOF
23560cat confdefs.h >>conftest.$ac_ext
23561cat >>conftest.$ac_ext <<_ACEOF
23562/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023563/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23565#define mprotect innocuous_mprotect
23566
John Criswell7a73b802003-06-30 21:59:07 +000023567/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023568 which can conflict with char mprotect (); below.
23569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23570 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023571
John Criswell0c38eaf2003-09-10 15:17:25 +000023572#ifdef __STDC__
23573# include <limits.h>
23574#else
23575# include <assert.h>
23576#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023577
23578#undef mprotect
23579
John Criswell7a73b802003-06-30 21:59:07 +000023580/* Override any gcc2 internal prototype to avoid an error. */
23581#ifdef __cplusplus
23582extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023583{
John Criswell7a73b802003-06-30 21:59:07 +000023584#endif
23585/* We use char because int might match the return type of a gcc2
23586 builtin and then its argument prototype would still apply. */
23587char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023588/* The GNU C library defines this for functions which it implements
23589 to always fail with ENOSYS. Some functions are actually named
23590 something starting with __ and the normal name is an alias. */
23591#if defined (__stub_mprotect) || defined (__stub___mprotect)
23592choke me
23593#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023594char (*f) () = mprotect;
23595#endif
23596#ifdef __cplusplus
23597}
John Criswell7a73b802003-06-30 21:59:07 +000023598#endif
23599
John Criswell0c38eaf2003-09-10 15:17:25 +000023600int
23601main ()
23602{
23603return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023604 ;
23605 return 0;
23606}
23607_ACEOF
23608rm -f conftest.$ac_objext conftest$ac_exeext
23609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023610 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023612 grep -v '^ *+' conftest.er1 >conftest.err
23613 rm -f conftest.er1
23614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023617 { ac_try='test -z "$ac_c_werror_flag"
23618 || test ! -s conftest.err'
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; } &&
23624 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626 (eval $ac_try) 2>&5
23627 ac_status=$?
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); }; }; then
23630 ac_cv_func_mprotect=yes
23631else
23632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023633sed 's/^/| /' conftest.$ac_ext >&5
23634
John Criswell7a73b802003-06-30 21:59:07 +000023635ac_cv_func_mprotect=no
23636fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023637rm -f conftest.err conftest.$ac_objext \
23638 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023639fi
23640echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23641echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23642if test $ac_cv_func_mprotect = yes; then
23643 :
23644else
23645 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23646echo "$as_me: error: Function mprotect() required but not found" >&2;}
23647 { (exit 1); exit 1; }; }
23648fi
23649
23650
John Criswellb13092b2003-07-22 21:00:24 +000023651
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023652 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23653echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023654 ac_ext=c
23655ac_cpp='$CPP $CPPFLAGS'
23656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23658ac_compiler_gnu=$ac_cv_c_compiler_gnu
23659
Brian Gaekef91a15c2003-11-18 06:20:41 +000023660 oldcflags="$CFLAGS"
23661 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023662 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000023663/* confdefs.h. */
23664_ACEOF
23665cat confdefs.h >>conftest.$ac_ext
23666cat >>conftest.$ac_ext <<_ACEOF
23667/* end confdefs.h. */
23668
23669int
23670main ()
23671{
Brian Gaekef91a15c2003-11-18 06:20:41 +000023672int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000023673 ;
23674 return 0;
23675}
John Criswellcb7a1eb2003-11-17 19:46:02 +000023676_ACEOF
23677rm -f conftest.$ac_objext conftest$ac_exeext
23678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023679 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023680 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023686 { ac_try='test -z "$ac_c_werror_flag"
23687 || test ! -s conftest.err'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; } &&
23693 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695 (eval $ac_try) 2>&5
23696 ac_status=$?
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ac_cv_link_use_r=yes
23700else
23701 echo "$as_me: failed program was:" >&5
23702sed 's/^/| /' conftest.$ac_ext >&5
23703
Brian Gaekef91a15c2003-11-18 06:20:41 +000023704ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023705fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023706rm -f conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023708 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023709 ac_ext=c
23710ac_cpp='$CPP $CPPFLAGS'
23711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713ac_compiler_gnu=$ac_cv_c_compiler_gnu
23714
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023715 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23716echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023717 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023718 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023719
23720cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023721#define HAVE_LINK_R 1
23722_ACEOF
23723
23724 fi
23725
23726
John Criswell7a73b802003-06-30 21:59:07 +000023727# Check whether --enable-optimized or --disable-optimized was given.
23728if test "${enable_optimized+set}" = set; then
23729 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023730
23731else
John Criswellb13092b2003-07-22 21:00:24 +000023732 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023733fi;
John Criswellb13092b2003-07-22 21:00:24 +000023734if test ${enableval} = "no"
23735then
23736 ENABLE_OPTIMIZED=
23737
23738else
23739 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23740
23741fi
23742
John Criswellb13092b2003-07-22 21:00:24 +000023743# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023744if test "${enable_jit+set}" = set; then
23745 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023746
23747else
John Criswellc78022e2003-07-29 19:11:58 +000023748 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023749fi;
John Criswellb13092b2003-07-22 21:00:24 +000023750if test ${enableval} = "no"
23751then
23752 JIT=
23753
23754else
John Criswellc78022e2003-07-29 19:11:58 +000023755 case $target in
23756 *i*86*)
23757 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023758
John Criswellc78022e2003-07-29 19:11:58 +000023759 ;;
23760 *sparc*)
23761 JIT=TARGET_HAS_JIT=1
23762
23763 ;;
23764 *)
23765 JIT=
23766
23767 ;;
23768 esac
John Criswellb13092b2003-07-22 21:00:24 +000023769fi
John Criswell7a73b802003-06-30 21:59:07 +000023770
23771
John Criswell7a73b802003-06-30 21:59:07 +000023772# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23773if test "${with_llvmgccdir+set}" = set; then
23774 withval="$with_llvmgccdir"
23775 LLVMGCCDIR=$withval
23776
23777fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023778echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23779echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23780LLVM_GCC_CHECK=no
23781if test -d "$LLVMGCCDIR"
23782then
23783 if test -x "$LLVMGCCDIR/bin/gcc"
23784 then
23785 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23786 fi
23787fi
23788llvmgccwarn=no
23789echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23790echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23791if test "$LLVM_GCC_CHECK" = "no"
23792then
23793 llvmgccwarn=yes
23794fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023795echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23796echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23797LLVM_GCC_SANE=no
23798if test -x "$LLVM_GCC_CHECK"
23799then
23800 cp /dev/null conftest.c
23801 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23802 if test $? -eq 0
23803 then
23804 LLVM_GCC_SANE=yes
23805 fi
23806 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023807 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023808 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023809
23810 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023811 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023812
Brian Gaekef3b24102003-11-16 18:38:14 +000023813fi
23814echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23815echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23816if test "$LLVM_GCC_SANE" = "no"
23817then
23818 llvmgccwarn=yes
23819fi
23820
Brian Gaeke554831c2004-01-21 19:39:29 +000023821echo "$as_me:$LINENO: checking for shared library suffix" >&5
23822echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000023823eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000023824echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23825echo "${ECHO_T}$SHLIBEXT" >&6
23826SHLIBEXT=$SHLIBEXT
23827
23828
23829cat >>confdefs.h <<_ACEOF
23830#define SHLIBEXT "$SHLIBEXT"
23831_ACEOF
23832
23833
Reid Spencere9de0912004-08-20 09:03:57 +000023834# Translate the various configuration directories and other basic
23835# information into substitutions that will end up in config.h.in so
23836# that these configured values can be hard-wired into a program.
23837eval LLVM_PREFIX="${prefix}";
23838eval LLVM_BINDIR="${prefix}/bin";
23839eval LLVM_LIBDIR="${prefix}/lib";
23840eval LLVM_DATADIR="${prefix}/data";
23841eval LLVM_DOCSDIR="${prefix}/docs";
23842eval LLVM_ETCDIR="${prefix}/etc";
23843eval LLVM_INCLUDEDIR="${prefix}/include";
23844eval LLVM_INFODIR="${prefix}/info";
23845eval LLVM_MANDIR="${prefix}/man";
23846LLVM_CONFIGTIME=`date`
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858cat >>confdefs.h <<_ACEOF
23859#define LLVM_PREFIX "$LLVM_PREFIX"
23860_ACEOF
23861
23862
23863cat >>confdefs.h <<_ACEOF
23864#define LLVM_BINDIR "$LLVM_BINDIR"
23865_ACEOF
23866
23867
23868cat >>confdefs.h <<_ACEOF
23869#define LLVM_LIBDIR "$LLVM_LIBDIR"
23870_ACEOF
23871
23872
23873cat >>confdefs.h <<_ACEOF
23874#define LLVM_DATADIR "$LLVM_DATADIR"
23875_ACEOF
23876
23877
23878cat >>confdefs.h <<_ACEOF
23879#define LLVM_DATADIR "$LLVM_DOCSDIR"
23880_ACEOF
23881
23882
23883cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023884#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023885_ACEOF
23886
23887
23888cat >>confdefs.h <<_ACEOF
23889#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23890_ACEOF
23891
23892
23893cat >>confdefs.h <<_ACEOF
23894#define LLVM_INFODIR "$LLVM_INFODIR"
23895_ACEOF
23896
23897
23898cat >>confdefs.h <<_ACEOF
23899#define LLVM_MANDIR "$LLVM_MANDIR"
23900_ACEOF
23901
23902
23903cat >>confdefs.h <<_ACEOF
23904#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23905_ACEOF
23906
23907
John Criswell7a73b802003-06-30 21:59:07 +000023908cat >confcache <<\_ACEOF
23909# This file is a shell script that caches the results of configure
23910# tests run on this system so they can be shared between configure
23911# scripts and configure runs, see configure's option --config-cache.
23912# It is not useful on other systems. If it contains results you don't
23913# want to keep, you may remove or edit it.
23914#
23915# config.status only pays attention to the cache file if you give it
23916# the --recheck option to rerun configure.
23917#
John Criswell0c38eaf2003-09-10 15:17:25 +000023918# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023919# loading this file, other *unset* `ac_cv_foo' will be assigned the
23920# following values.
23921
23922_ACEOF
23923
23924# The following way of writing the cache mishandles newlines in values,
23925# but we know of no workaround that is simple, portable, and efficient.
23926# So, don't put newlines in cache variables' values.
23927# Ultrix sh set writes to stderr and can't be redirected directly,
23928# and sets the high bit in the cache file unless we assign to the vars.
23929{
23930 (set) 2>&1 |
23931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23932 *ac_space=\ *)
23933 # `set' does not quote correctly, so add quotes (double-quote
23934 # substitution turns \\\\ into \\, and sed turns \\ into \).
23935 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023936 "s/'/'\\\\''/g;
23937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023938 ;;
23939 *)
23940 # `set' quotes correctly as required by POSIX, so do not add quotes.
23941 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023943 ;;
23944 esac;
23945} |
23946 sed '
23947 t clear
23948 : clear
23949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23950 t end
23951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23952 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023953if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023954 if test -w $cache_file; then
23955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23956 cat confcache >$cache_file
23957 else
23958 echo "not updating unwritable cache $cache_file"
23959 fi
23960fi
23961rm -f confcache
23962
23963test "x$prefix" = xNONE && prefix=$ac_default_prefix
23964# Let make expand exec_prefix.
23965test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23966
23967# VPATH may cause trouble with some makes, so we remove $(srcdir),
23968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23969# trailing colons and then remove the whole line if VPATH becomes empty
23970# (actually we leave an empty line to preserve line numbers).
23971if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023973s/:*\$(srcdir):*/:/;
23974s/:*\${srcdir}:*/:/;
23975s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023976s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023977s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023978s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023979}'
23980fi
23981
23982DEFS=-DHAVE_CONFIG_H
23983
John Criswell0c38eaf2003-09-10 15:17:25 +000023984ac_libobjs=
23985ac_ltlibobjs=
23986for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23987 # 1. Remove the extension, and $U if already installed.
23988 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000023989 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023990 # 2. Add them.
23991 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23992 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23993done
23994LIBOBJS=$ac_libobjs
23995
23996LTLIBOBJS=$ac_ltlibobjs
23997
23998
John Criswell7a73b802003-06-30 21:59:07 +000023999
24000: ${CONFIG_STATUS=./config.status}
24001ac_clean_files_save=$ac_clean_files
24002ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24003{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24004echo "$as_me: creating $CONFIG_STATUS" >&6;}
24005cat >$CONFIG_STATUS <<_ACEOF
24006#! $SHELL
24007# Generated by $as_me.
24008# Run this file to recreate the current configuration.
24009# Compiler output produced by configure, useful for debugging
24010# configure, is in config.log if it exists.
24011
24012debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000024013ac_cs_recheck=false
24014ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000024015SHELL=\${CONFIG_SHELL-$SHELL}
24016_ACEOF
24017
24018cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024019## --------------------- ##
24020## M4sh Initialization. ##
24021## --------------------- ##
24022
24023# Be Bourne compatible
24024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24025 emulate sh
24026 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024027 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24028 # is contrary to our usage. Disable this feature.
24029 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024030elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24031 set -o posix
24032fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024033DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024034
John Criswell7a73b802003-06-30 21:59:07 +000024035# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024036if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024037 as_unset=unset
24038else
24039 as_unset=false
24040fi
24041
John Criswell0c38eaf2003-09-10 15:17:25 +000024042
24043# Work around bugs in pre-3.0 UWIN ksh.
24044$as_unset ENV MAIL MAILPATH
24045PS1='$ '
24046PS2='> '
24047PS4='+ '
24048
24049# NLS nuisances.
24050for as_var in \
24051 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24052 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24053 LC_TELEPHONE LC_TIME
24054do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024055 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024056 eval $as_var=C; export $as_var
24057 else
24058 $as_unset $as_var
24059 fi
24060done
24061
24062# Required to use basename.
24063if expr a : '\(a\)' >/dev/null 2>&1; then
24064 as_expr=expr
24065else
24066 as_expr=false
24067fi
24068
24069if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24070 as_basename=basename
24071else
24072 as_basename=false
24073fi
John Criswell7a73b802003-06-30 21:59:07 +000024074
24075
24076# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024077as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24079 X"$0" : 'X\(//\)$' \| \
24080 X"$0" : 'X\(/\)$' \| \
24081 . : '\(.\)' 2>/dev/null ||
24082echo X/"$0" |
24083 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24084 /^X\/\(\/\/\)$/{ s//\1/; q; }
24085 /^X\/\(\/\).*/{ s//\1/; q; }
24086 s/.*/./; q'`
24087
John Criswell0c38eaf2003-09-10 15:17:25 +000024088
John Criswell7a73b802003-06-30 21:59:07 +000024089# PATH needs CR, and LINENO needs CR and PATH.
24090# Avoid depending upon Character Ranges.
24091as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24092as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24093as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24094as_cr_digits='0123456789'
24095as_cr_alnum=$as_cr_Letters$as_cr_digits
24096
24097# The user is always right.
24098if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024099 echo "#! /bin/sh" >conf$$.sh
24100 echo "exit 0" >>conf$$.sh
24101 chmod +x conf$$.sh
24102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024103 PATH_SEPARATOR=';'
24104 else
24105 PATH_SEPARATOR=:
24106 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024107 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024108fi
24109
24110
24111 as_lineno_1=$LINENO
24112 as_lineno_2=$LINENO
24113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24114 test "x$as_lineno_1" != "x$as_lineno_2" &&
24115 test "x$as_lineno_3" = "x$as_lineno_2" || {
24116 # Find who we are. Look in the path if we contain no path at all
24117 # relative or not.
24118 case $0 in
24119 *[\\/]* ) as_myself=$0 ;;
24120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24121for as_dir in $PATH
24122do
24123 IFS=$as_save_IFS
24124 test -z "$as_dir" && as_dir=.
24125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24126done
24127
24128 ;;
24129 esac
24130 # We did not find ourselves, most probably we were run as `sh COMMAND'
24131 # in which case we are not to be found in the path.
24132 if test "x$as_myself" = x; then
24133 as_myself=$0
24134 fi
24135 if test ! -f "$as_myself"; then
24136 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24137echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24138 { (exit 1); exit 1; }; }
24139 fi
24140 case $CONFIG_SHELL in
24141 '')
24142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24143for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24144do
24145 IFS=$as_save_IFS
24146 test -z "$as_dir" && as_dir=.
24147 for as_base in sh bash ksh sh5; do
24148 case $as_dir in
24149 /*)
24150 if ("$as_dir/$as_base" -c '
24151 as_lineno_1=$LINENO
24152 as_lineno_2=$LINENO
24153 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24154 test "x$as_lineno_1" != "x$as_lineno_2" &&
24155 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024156 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24157 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024158 CONFIG_SHELL=$as_dir/$as_base
24159 export CONFIG_SHELL
24160 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24161 fi;;
24162 esac
24163 done
24164done
24165;;
24166 esac
24167
24168 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24169 # uniformly replaced by the line number. The first 'sed' inserts a
24170 # line-number line before each line; the second 'sed' does the real
24171 # work. The second script uses 'N' to pair each line-number line
24172 # with the numbered line, and appends trailing '-' during
24173 # substitution so that $LINENO is not a special case at line end.
24174 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24175 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24176 sed '=' <$as_myself |
24177 sed '
24178 N
24179 s,$,-,
24180 : loop
24181 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24182 t loop
24183 s,-$,,
24184 s,^['$as_cr_digits']*\n,,
24185 ' >$as_me.lineno &&
24186 chmod +x $as_me.lineno ||
24187 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24188echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24189 { (exit 1); exit 1; }; }
24190
24191 # Don't try to exec as it changes $[0], causing all sort of problems
24192 # (the dirname of $[0] is not the place where we might find the
24193 # original and so on. Autoconf is especially sensible to this).
24194 . ./$as_me.lineno
24195 # Exit status is that of the last command.
24196 exit
24197}
24198
24199
24200case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24201 *c*,-n*) ECHO_N= ECHO_C='
24202' ECHO_T=' ' ;;
24203 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24204 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24205esac
24206
24207if expr a : '\(a\)' >/dev/null 2>&1; then
24208 as_expr=expr
24209else
24210 as_expr=false
24211fi
24212
24213rm -f conf$$ conf$$.exe conf$$.file
24214echo >conf$$.file
24215if ln -s conf$$.file conf$$ 2>/dev/null; then
24216 # We could just check for DJGPP; but this test a) works b) is more generic
24217 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24218 if test -f conf$$.exe; then
24219 # Don't use ln at all; we don't have any links
24220 as_ln_s='cp -p'
24221 else
24222 as_ln_s='ln -s'
24223 fi
24224elif ln conf$$.file conf$$ 2>/dev/null; then
24225 as_ln_s=ln
24226else
24227 as_ln_s='cp -p'
24228fi
24229rm -f conf$$ conf$$.exe conf$$.file
24230
John Criswell0c38eaf2003-09-10 15:17:25 +000024231if mkdir -p . 2>/dev/null; then
24232 as_mkdir_p=:
24233else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024234 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024235 as_mkdir_p=false
24236fi
24237
John Criswell7a73b802003-06-30 21:59:07 +000024238as_executable_p="test -f"
24239
24240# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024241as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024242
24243# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024244as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024245
24246
24247# IFS
24248# We need space, tab and new line, in precisely that order.
24249as_nl='
24250'
24251IFS=" $as_nl"
24252
24253# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024254$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024255
24256exec 6>&1
24257
24258# Open the log real soon, to keep \$[0] and so on meaningful, and to
24259# report actual input values of CONFIG_FILES etc. instead of their
24260# values after options handling. Logging --version etc. is OK.
24261exec 5>>config.log
24262{
24263 echo
24264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24265## Running $as_me. ##
24266_ASBOX
24267} >&5
24268cat >&5 <<_CSEOF
24269
Reid Spencere9de0912004-08-20 09:03:57 +000024270This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000024271generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024272
24273 CONFIG_FILES = $CONFIG_FILES
24274 CONFIG_HEADERS = $CONFIG_HEADERS
24275 CONFIG_LINKS = $CONFIG_LINKS
24276 CONFIG_COMMANDS = $CONFIG_COMMANDS
24277 $ $0 $@
24278
24279_CSEOF
24280echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24281echo >&5
24282_ACEOF
24283
24284# Files that config.status was made for.
24285if test -n "$ac_config_files"; then
24286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24287fi
24288
24289if test -n "$ac_config_headers"; then
24290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24291fi
24292
24293if test -n "$ac_config_links"; then
24294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24295fi
24296
24297if test -n "$ac_config_commands"; then
24298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24299fi
24300
24301cat >>$CONFIG_STATUS <<\_ACEOF
24302
24303ac_cs_usage="\
24304\`$as_me' instantiates files from templates according to the
24305current configuration.
24306
24307Usage: $0 [OPTIONS] [FILE]...
24308
24309 -h, --help print this help, then exit
24310 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024311 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024312 -d, --debug don't remove temporary files
24313 --recheck update $as_me by reconfiguring in the same conditions
24314 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024315 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024316 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024317 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024318
24319Configuration files:
24320$config_files
24321
24322Configuration headers:
24323$config_headers
24324
Reid Spencerde8c47f2004-08-29 19:35:28 +000024325Configuration links:
24326$config_links
24327
John Criswellc764fbc2003-09-06 15:17:13 +000024328Configuration commands:
24329$config_commands
24330
John Criswell7a73b802003-06-30 21:59:07 +000024331Report bugs to <bug-autoconf@gnu.org>."
24332_ACEOF
24333
24334cat >>$CONFIG_STATUS <<_ACEOF
24335ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024336LLVM config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000024337configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024338 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24339
Reid Spencer2706f8c2004-09-19 23:53:36 +000024340Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024341This config.status script is free software; the Free Software Foundation
24342gives unlimited permission to copy, distribute and modify it."
24343srcdir=$srcdir
24344INSTALL="$INSTALL"
24345_ACEOF
24346
24347cat >>$CONFIG_STATUS <<\_ACEOF
24348# If no file are specified by the user, then we need to provide default
24349# value. By we need to know if files were specified by the user.
24350ac_need_defaults=:
24351while test $# != 0
24352do
24353 case $1 in
24354 --*=*)
24355 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24356 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024357 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024358 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024359 -*)
24360 ac_option=$1
24361 ac_optarg=$2
24362 ac_shift=shift
24363 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024364 *) # This is not an option, so the user has probably given explicit
24365 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024366 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024367 ac_need_defaults=false;;
24368 esac
24369
John Criswell0c38eaf2003-09-10 15:17:25 +000024370 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024371 # Handling of the options.
24372_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024373cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24375 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024376 --version | --vers* | -V )
24377 echo "$ac_cs_version"; exit 0 ;;
24378 --he | --h)
24379 # Conflict between --help and --header
24380 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24381Try \`$0 --help' for more information." >&5
24382echo "$as_me: error: ambiguous option: $1
24383Try \`$0 --help' for more information." >&2;}
24384 { (exit 1); exit 1; }; };;
24385 --help | --hel | -h )
24386 echo "$ac_cs_usage"; exit 0 ;;
24387 --debug | --d* | -d )
24388 debug=: ;;
24389 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024390 $ac_shift
24391 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024392 ac_need_defaults=false;;
24393 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024394 $ac_shift
24395 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024396 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24398 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24399 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024400
24401 # This is an error.
24402 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24403Try \`$0 --help' for more information." >&5
24404echo "$as_me: error: unrecognized option: $1
24405Try \`$0 --help' for more information." >&2;}
24406 { (exit 1); exit 1; }; } ;;
24407
24408 *) ac_config_targets="$ac_config_targets $1" ;;
24409
24410 esac
24411 shift
24412done
24413
John Criswell0c38eaf2003-09-10 15:17:25 +000024414ac_configure_extra_args=
24415
24416if $ac_cs_silent; then
24417 exec 6>/dev/null
24418 ac_configure_extra_args="$ac_configure_extra_args --silent"
24419fi
24420
24421_ACEOF
24422cat >>$CONFIG_STATUS <<_ACEOF
24423if \$ac_cs_recheck; then
24424 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24425 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24426fi
24427
John Criswell7a73b802003-06-30 21:59:07 +000024428_ACEOF
24429
John Criswellc764fbc2003-09-06 15:17:13 +000024430cat >>$CONFIG_STATUS <<_ACEOF
24431#
24432# INIT-COMMANDS section.
24433#
John Criswell7a73b802003-06-30 21:59:07 +000024434
John Criswellc764fbc2003-09-06 15:17:13 +000024435${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24436${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024437${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024438${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024439${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024440${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24441${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024442${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24443${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024444${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024445${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024446${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024447
24448_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024449
24450
24451
24452cat >>$CONFIG_STATUS <<\_ACEOF
24453for ac_config_target in $ac_config_targets
24454do
24455 case "$ac_config_target" in
24456 # Handling of arguments.
24457 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024458 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24459 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24460 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24461 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24462 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024463 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024464 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24465 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024466 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024467 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024468 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024469 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24470 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024471 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24472 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024473 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024474 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024475 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024476 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024477 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24478echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24479 { (exit 1); exit 1; }; };;
24480 esac
24481done
24482
24483# If the user did not use the arguments to specify the items to instantiate,
24484# then the envvar interface is used. Set only those that are not.
24485# We use the long form for the default assignment because of an extremely
24486# bizarre bug on SunOS 4.1.3.
24487if $ac_need_defaults; then
24488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024490 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024492fi
24493
John Criswell0c38eaf2003-09-10 15:17:25 +000024494# Have a temporary directory for convenience. Make it in the build tree
24495# simply because there is no reason to put it here, and in addition,
24496# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024497# Create a temporary directory, and hook for its removal unless debugging.
24498$debug ||
24499{
24500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24501 trap '{ (exit 1); exit 1; }' 1 2 13 15
24502}
24503
24504# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024505
John Criswell7a73b802003-06-30 21:59:07 +000024506{
John Criswell0c38eaf2003-09-10 15:17:25 +000024507 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024508 test -n "$tmp" && test -d "$tmp"
24509} ||
24510{
John Criswell0c38eaf2003-09-10 15:17:25 +000024511 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024512 (umask 077 && mkdir $tmp)
24513} ||
24514{
John Criswell0c38eaf2003-09-10 15:17:25 +000024515 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024516 { (exit 1); exit 1; }
24517}
24518
24519_ACEOF
24520
24521cat >>$CONFIG_STATUS <<_ACEOF
24522
24523#
24524# CONFIG_FILES section.
24525#
24526
24527# No need to generate the scripts if there are no CONFIG_FILES.
24528# This happens for instance when ./config.status config.h
24529if test -n "\$CONFIG_FILES"; then
24530 # Protect against being on the right side of a sed subst in config.status.
24531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24533s,@SHELL@,$SHELL,;t t
24534s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24535s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24536s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24537s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24538s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24539s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24540s,@exec_prefix@,$exec_prefix,;t t
24541s,@prefix@,$prefix,;t t
24542s,@program_transform_name@,$program_transform_name,;t t
24543s,@bindir@,$bindir,;t t
24544s,@sbindir@,$sbindir,;t t
24545s,@libexecdir@,$libexecdir,;t t
24546s,@datadir@,$datadir,;t t
24547s,@sysconfdir@,$sysconfdir,;t t
24548s,@sharedstatedir@,$sharedstatedir,;t t
24549s,@localstatedir@,$localstatedir,;t t
24550s,@libdir@,$libdir,;t t
24551s,@includedir@,$includedir,;t t
24552s,@oldincludedir@,$oldincludedir,;t t
24553s,@infodir@,$infodir,;t t
24554s,@mandir@,$mandir,;t t
24555s,@build_alias@,$build_alias,;t t
24556s,@host_alias@,$host_alias,;t t
24557s,@target_alias@,$target_alias,;t t
24558s,@DEFS@,$DEFS,;t t
24559s,@ECHO_C@,$ECHO_C,;t t
24560s,@ECHO_N@,$ECHO_N,;t t
24561s,@ECHO_T@,$ECHO_T,;t t
24562s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024563s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024564s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24565s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24566s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24567s,@build@,$build,;t t
24568s,@build_cpu@,$build_cpu,;t t
24569s,@build_vendor@,$build_vendor,;t t
24570s,@build_os@,$build_os,;t t
24571s,@host@,$host,;t t
24572s,@host_cpu@,$host_cpu,;t t
24573s,@host_vendor@,$host_vendor,;t t
24574s,@host_os@,$host_os,;t t
24575s,@target@,$target,;t t
24576s,@target_cpu@,$target_cpu,;t t
24577s,@target_vendor@,$target_vendor,;t t
24578s,@target_os@,$target_os,;t t
24579s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024580s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024581s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024582s,@CXX@,$CXX,;t t
24583s,@CXXFLAGS@,$CXXFLAGS,;t t
24584s,@LDFLAGS@,$LDFLAGS,;t t
24585s,@CPPFLAGS@,$CPPFLAGS,;t t
24586s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24587s,@EXEEXT@,$EXEEXT,;t t
24588s,@OBJEXT@,$OBJEXT,;t t
24589s,@CC@,$CC,;t t
24590s,@CFLAGS@,$CFLAGS,;t t
24591s,@ac_ct_CC@,$ac_ct_CC,;t t
24592s,@CPP@,$CPP,;t t
24593s,@ifGNUmake@,$ifGNUmake,;t t
24594s,@LEX@,$LEX,;t t
24595s,@LEXLIB@,$LEXLIB,;t t
24596s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000024597s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024598s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024599s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024600s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024601s,@LN_S@,$LN_S,;t t
24602s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024603s,@AR@,$AR,;t t
24604s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024605s,@RANLIB@,$RANLIB,;t t
24606s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24607s,@STRIP@,$STRIP,;t t
24608s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024609s,@CXXCPP@,$CXXCPP,;t t
24610s,@F77@,$F77,;t t
24611s,@FFLAGS@,$FFLAGS,;t t
24612s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024613s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024614s,@DOT@,$DOT,;t t
24615s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024616s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024617s,@PYTHON@,$PYTHON,;t t
24618s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024619s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024620s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24621s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024622s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024623s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024624s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24625s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24626s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24627s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24628s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24629s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024630s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24631s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24632s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024633s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024634s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024635s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024636s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024637s,@LLVMCC1@,$LLVMCC1,;t t
24638s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024639s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024640s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24641s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24642s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24643s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24644s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24645s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24646s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24647s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24648s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24649s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024650s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024651s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024652CEOF
24653
24654_ACEOF
24655
24656 cat >>$CONFIG_STATUS <<\_ACEOF
24657 # Split the substitutions into bite-sized pieces for seds with
24658 # small command number limits, like on Digital OSF/1 and HP-UX.
24659 ac_max_sed_lines=48
24660 ac_sed_frag=1 # Number of current file.
24661 ac_beg=1 # First line for current file.
24662 ac_end=$ac_max_sed_lines # Line after last line for current file.
24663 ac_more_lines=:
24664 ac_sed_cmds=
24665 while $ac_more_lines; do
24666 if test $ac_beg -gt 1; then
24667 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24668 else
24669 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24670 fi
24671 if test ! -s $tmp/subs.frag; then
24672 ac_more_lines=false
24673 else
24674 # The purpose of the label and of the branching condition is to
24675 # speed up the sed processing (if there are no `@' at all, there
24676 # is no need to browse any of the substitutions).
24677 # These are the two extra sed commands mentioned above.
24678 (echo ':t
24679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24680 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024681 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024682 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024683 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024684 fi
24685 ac_sed_frag=`expr $ac_sed_frag + 1`
24686 ac_beg=$ac_end
24687 ac_end=`expr $ac_end + $ac_max_sed_lines`
24688 fi
24689 done
24690 if test -z "$ac_sed_cmds"; then
24691 ac_sed_cmds=cat
24692 fi
24693fi # test -n "$CONFIG_FILES"
24694
24695_ACEOF
24696cat >>$CONFIG_STATUS <<\_ACEOF
24697for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24699 case $ac_file in
24700 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000024701 cat >$tmp/stdin
24702 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024704 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024706 * ) ac_file_in=$ac_file.in ;;
24707 esac
24708
24709 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24710 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24711$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024712 X"$ac_file" : 'X\(//\)[^/]' \| \
24713 X"$ac_file" : 'X\(//\)$' \| \
24714 X"$ac_file" : 'X\(/\)' \| \
24715 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024716echo X"$ac_file" |
24717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24719 /^X\(\/\/\)$/{ s//\1/; q; }
24720 /^X\(\/\).*/{ s//\1/; q; }
24721 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024722 { if $as_mkdir_p; then
24723 mkdir -p "$ac_dir"
24724 else
24725 as_dir="$ac_dir"
24726 as_dirs=
24727 while test ! -d "$as_dir"; do
24728 as_dirs="$as_dir $as_dirs"
24729 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24730$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024731 X"$as_dir" : 'X\(//\)[^/]' \| \
24732 X"$as_dir" : 'X\(//\)$' \| \
24733 X"$as_dir" : 'X\(/\)' \| \
24734 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024735echo X"$as_dir" |
24736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24738 /^X\(\/\/\)$/{ s//\1/; q; }
24739 /^X\(\/\).*/{ s//\1/; q; }
24740 s/.*/./; q'`
24741 done
24742 test ! -n "$as_dirs" || mkdir $as_dirs
24743 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24744echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24745 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024746
24747 ac_builddir=.
24748
24749if test "$ac_dir" != .; then
24750 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24751 # A "../" for each directory in $ac_dir_suffix.
24752 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24753else
24754 ac_dir_suffix= ac_top_builddir=
24755fi
24756
24757case $srcdir in
24758 .) # No --srcdir option. We are building in place.
24759 ac_srcdir=.
24760 if test -z "$ac_top_builddir"; then
24761 ac_top_srcdir=.
24762 else
24763 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24764 fi ;;
24765 [\\/]* | ?:[\\/]* ) # Absolute path.
24766 ac_srcdir=$srcdir$ac_dir_suffix;
24767 ac_top_srcdir=$srcdir ;;
24768 *) # Relative path.
24769 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24770 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24771esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024772
24773# Do not use `cd foo && pwd` to compute absolute paths, because
24774# the directories may not exist.
24775case `pwd` in
24776.) ac_abs_builddir="$ac_dir";;
24777*)
24778 case "$ac_dir" in
24779 .) ac_abs_builddir=`pwd`;;
24780 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24781 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24782 esac;;
24783esac
24784case $ac_abs_builddir in
24785.) ac_abs_top_builddir=${ac_top_builddir}.;;
24786*)
24787 case ${ac_top_builddir}. in
24788 .) ac_abs_top_builddir=$ac_abs_builddir;;
24789 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24790 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24791 esac;;
24792esac
24793case $ac_abs_builddir in
24794.) ac_abs_srcdir=$ac_srcdir;;
24795*)
24796 case $ac_srcdir in
24797 .) ac_abs_srcdir=$ac_abs_builddir;;
24798 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24799 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24800 esac;;
24801esac
24802case $ac_abs_builddir in
24803.) ac_abs_top_srcdir=$ac_top_srcdir;;
24804*)
24805 case $ac_top_srcdir in
24806 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24807 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24808 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24809 esac;;
24810esac
John Criswell7a73b802003-06-30 21:59:07 +000024811
24812
24813 case $INSTALL in
24814 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24815 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24816 esac
24817
24818 if test x"$ac_file" != x-; then
24819 { echo "$as_me:$LINENO: creating $ac_file" >&5
24820echo "$as_me: creating $ac_file" >&6;}
24821 rm -f "$ac_file"
24822 fi
24823 # Let's still pretend it is `configure' which instantiates (i.e., don't
24824 # use $as_me), people would be surprised to read:
24825 # /* config.h. Generated by config.status. */
24826 if test x"$ac_file" = x-; then
24827 configure_input=
24828 else
24829 configure_input="$ac_file. "
24830 fi
24831 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024832 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024833
24834 # First look for the input files in the build tree, otherwise in the
24835 # src tree.
24836 ac_file_inputs=`IFS=:
24837 for f in $ac_file_in; do
24838 case $f in
24839 -) echo $tmp/stdin ;;
24840 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024841 # Absolute (can't be DOS-style, as IFS=:)
24842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024843echo "$as_me: error: cannot find input file: $f" >&2;}
24844 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024845 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024846 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 if test -f "$f"; then
24848 # Build tree
24849 echo "$f"
24850 elif test -f "$srcdir/$f"; then
24851 # Source tree
24852 echo "$srcdir/$f"
24853 else
24854 # /dev/null tree
24855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024856echo "$as_me: error: cannot find input file: $f" >&2;}
24857 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024858 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024859 esac
24860 done` || { (exit 1); exit 1; }
24861_ACEOF
24862cat >>$CONFIG_STATUS <<_ACEOF
24863 sed "$ac_vpsub
24864$extrasub
24865_ACEOF
24866cat >>$CONFIG_STATUS <<\_ACEOF
24867:t
24868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24869s,@configure_input@,$configure_input,;t t
24870s,@srcdir@,$ac_srcdir,;t t
24871s,@abs_srcdir@,$ac_abs_srcdir,;t t
24872s,@top_srcdir@,$ac_top_srcdir,;t t
24873s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24874s,@builddir@,$ac_builddir,;t t
24875s,@abs_builddir@,$ac_abs_builddir,;t t
24876s,@top_builddir@,$ac_top_builddir,;t t
24877s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24878s,@INSTALL@,$ac_INSTALL,;t t
24879" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24880 rm -f $tmp/stdin
24881 if test x"$ac_file" != x-; then
24882 mv $tmp/out $ac_file
24883 else
24884 cat $tmp/out
24885 rm -f $tmp/out
24886 fi
24887
24888done
24889_ACEOF
24890cat >>$CONFIG_STATUS <<\_ACEOF
24891
24892#
24893# CONFIG_HEADER section.
24894#
24895
24896# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24897# NAME is the cpp macro being defined and VALUE is the value it is being given.
24898#
24899# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024900ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24901ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024902ac_dC=' '
24903ac_dD=',;t'
24904# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000024905ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024906ac_uB='$,\1#\2define\3'
24907ac_uC=' '
24908ac_uD=',;t'
24909
24910for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24912 case $ac_file in
24913 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000024914 cat >$tmp/stdin
24915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024919 * ) ac_file_in=$ac_file.in ;;
24920 esac
24921
24922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24923echo "$as_me: creating $ac_file" >&6;}
24924
24925 # First look for the input files in the build tree, otherwise in the
24926 # src tree.
24927 ac_file_inputs=`IFS=:
24928 for f in $ac_file_in; do
24929 case $f in
24930 -) echo $tmp/stdin ;;
24931 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024932 # Absolute (can't be DOS-style, as IFS=:)
24933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024934echo "$as_me: error: cannot find input file: $f" >&2;}
24935 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024936 # Do quote $f, to prevent DOS paths from being IFS'd.
24937 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024938 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000024939 if test -f "$f"; then
24940 # Build tree
24941 echo "$f"
24942 elif test -f "$srcdir/$f"; then
24943 # Source tree
24944 echo "$srcdir/$f"
24945 else
24946 # /dev/null tree
24947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024948echo "$as_me: error: cannot find input file: $f" >&2;}
24949 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024950 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024951 esac
24952 done` || { (exit 1); exit 1; }
24953 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024955
24956_ACEOF
24957
24958# Transform confdefs.h into two sed scripts, `conftest.defines' and
24959# `conftest.undefs', that substitutes the proper values into
24960# config.h.in to produce config.h. The first handles `#define'
24961# templates, and the second `#undef' templates.
24962# And first: Protect against being on the right side of a sed subst in
24963# config.status. Protect against being in an unquoted here document
24964# in config.status.
24965rm -f conftest.defines conftest.undefs
24966# Using a here document instead of a string reduces the quoting nightmare.
24967# Putting comments in sed scripts is not portable.
24968#
24969# `end' is used to avoid that the second main sed command (meant for
24970# 0-ary CPP macros) applies to n-ary macro definitions.
24971# See the Autoconf documentation for `clear'.
24972cat >confdef2sed.sed <<\_ACEOF
24973s/[\\&,]/\\&/g
24974s,[\\$`],\\&,g
24975t clear
24976: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000024977s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024978t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000024979s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024980: end
24981_ACEOF
24982# If some macros were called several times there might be several times
24983# the same #defines, which is useless. Nevertheless, we may not want to
24984# sort them, since we want the *last* AC-DEFINE to be honored.
24985uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24986sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24987rm -f confdef2sed.sed
24988
24989# This sed command replaces #undef with comments. This is necessary, for
24990# example, in the case of _POSIX_SOURCE, which is predefined and required
24991# on some systems where configure will not decide to define it.
24992cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000024993s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000024994_ACEOF
24995
24996# Break up conftest.defines because some shells have a limit on the size
24997# of here documents, and old seds have small limits too (100 cmds).
24998echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000024999echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025000echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25001echo ' :' >>$CONFIG_STATUS
25002rm -f conftest.tail
25003while grep . conftest.defines >/dev/null
25004do
25005 # Write a limited-size here document to $tmp/defines.sed.
25006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25007 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025009 # Work around the forget-to-reset-the-flag bug.
25010 echo 't clr' >>$CONFIG_STATUS
25011 echo ': clr' >>$CONFIG_STATUS
25012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25013 echo 'CEOF
25014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25015 rm -f $tmp/in
25016 mv $tmp/out $tmp/in
25017' >>$CONFIG_STATUS
25018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25019 rm -f conftest.defines
25020 mv conftest.tail conftest.defines
25021done
25022rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025023echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025024echo >>$CONFIG_STATUS
25025
25026# Break up conftest.undefs because some shells have a limit on the size
25027# of here documents, and old seds have small limits too (100 cmds).
25028echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25029rm -f conftest.tail
25030while grep . conftest.undefs >/dev/null
25031do
25032 # Write a limited-size here document to $tmp/undefs.sed.
25033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25034 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025036 # Work around the forget-to-reset-the-flag bug.
25037 echo 't clr' >>$CONFIG_STATUS
25038 echo ': clr' >>$CONFIG_STATUS
25039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25040 echo 'CEOF
25041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25042 rm -f $tmp/in
25043 mv $tmp/out $tmp/in
25044' >>$CONFIG_STATUS
25045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25046 rm -f conftest.undefs
25047 mv conftest.tail conftest.undefs
25048done
25049rm -f conftest.undefs
25050
25051cat >>$CONFIG_STATUS <<\_ACEOF
25052 # Let's still pretend it is `configure' which instantiates (i.e., don't
25053 # use $as_me), people would be surprised to read:
25054 # /* config.h. Generated by config.status. */
25055 if test x"$ac_file" = x-; then
25056 echo "/* Generated by configure. */" >$tmp/config.h
25057 else
25058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25059 fi
25060 cat $tmp/in >>$tmp/config.h
25061 rm -f $tmp/in
25062 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25065echo "$as_me: $ac_file is unchanged" >&6;}
25066 else
25067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025069 X"$ac_file" : 'X\(//\)[^/]' \| \
25070 X"$ac_file" : 'X\(//\)$' \| \
25071 X"$ac_file" : 'X\(/\)' \| \
25072 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025073echo X"$ac_file" |
25074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25076 /^X\(\/\/\)$/{ s//\1/; q; }
25077 /^X\(\/\).*/{ s//\1/; q; }
25078 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025079 { if $as_mkdir_p; then
25080 mkdir -p "$ac_dir"
25081 else
25082 as_dir="$ac_dir"
25083 as_dirs=
25084 while test ! -d "$as_dir"; do
25085 as_dirs="$as_dir $as_dirs"
25086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025088 X"$as_dir" : 'X\(//\)[^/]' \| \
25089 X"$as_dir" : 'X\(//\)$' \| \
25090 X"$as_dir" : 'X\(/\)' \| \
25091 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025092echo X"$as_dir" |
25093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25095 /^X\(\/\/\)$/{ s//\1/; q; }
25096 /^X\(\/\).*/{ s//\1/; q; }
25097 s/.*/./; q'`
25098 done
25099 test ! -n "$as_dirs" || mkdir $as_dirs
25100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25102 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025103
25104 rm -f $ac_file
25105 mv $tmp/config.h $ac_file
25106 fi
25107 else
25108 cat $tmp/config.h
25109 rm -f $tmp/config.h
25110 fi
25111done
25112_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025113cat >>$CONFIG_STATUS <<\_ACEOF
25114
25115#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025116# CONFIG_LINKS section.
25117#
25118
25119for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25120 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25121 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25122
25123 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25124echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25125
25126 if test ! -r $srcdir/$ac_source; then
25127 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25128echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25129 { (exit 1); exit 1; }; }
25130 fi
25131 rm -f $ac_dest
25132
25133 # Make relative symlinks.
25134 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25135$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025136 X"$ac_dest" : 'X\(//\)[^/]' \| \
25137 X"$ac_dest" : 'X\(//\)$' \| \
25138 X"$ac_dest" : 'X\(/\)' \| \
25139 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025140echo X"$ac_dest" |
25141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25143 /^X\(\/\/\)$/{ s//\1/; q; }
25144 /^X\(\/\).*/{ s//\1/; q; }
25145 s/.*/./; q'`
25146 { if $as_mkdir_p; then
25147 mkdir -p "$ac_dest_dir"
25148 else
25149 as_dir="$ac_dest_dir"
25150 as_dirs=
25151 while test ! -d "$as_dir"; do
25152 as_dirs="$as_dir $as_dirs"
25153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25154$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025155 X"$as_dir" : 'X\(//\)[^/]' \| \
25156 X"$as_dir" : 'X\(//\)$' \| \
25157 X"$as_dir" : 'X\(/\)' \| \
25158 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025159echo X"$as_dir" |
25160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162 /^X\(\/\/\)$/{ s//\1/; q; }
25163 /^X\(\/\).*/{ s//\1/; q; }
25164 s/.*/./; q'`
25165 done
25166 test ! -n "$as_dirs" || mkdir $as_dirs
25167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25168echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25169 { (exit 1); exit 1; }; }; }
25170
25171 ac_builddir=.
25172
25173if test "$ac_dest_dir" != .; then
25174 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25175 # A "../" for each directory in $ac_dir_suffix.
25176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25177else
25178 ac_dir_suffix= ac_top_builddir=
25179fi
25180
25181case $srcdir in
25182 .) # No --srcdir option. We are building in place.
25183 ac_srcdir=.
25184 if test -z "$ac_top_builddir"; then
25185 ac_top_srcdir=.
25186 else
25187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25188 fi ;;
25189 [\\/]* | ?:[\\/]* ) # Absolute path.
25190 ac_srcdir=$srcdir$ac_dir_suffix;
25191 ac_top_srcdir=$srcdir ;;
25192 *) # Relative path.
25193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25195esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025196
25197# Do not use `cd foo && pwd` to compute absolute paths, because
25198# the directories may not exist.
25199case `pwd` in
25200.) ac_abs_builddir="$ac_dest_dir";;
25201*)
25202 case "$ac_dest_dir" in
25203 .) ac_abs_builddir=`pwd`;;
25204 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25205 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25206 esac;;
25207esac
25208case $ac_abs_builddir in
25209.) ac_abs_top_builddir=${ac_top_builddir}.;;
25210*)
25211 case ${ac_top_builddir}. in
25212 .) ac_abs_top_builddir=$ac_abs_builddir;;
25213 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25214 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25215 esac;;
25216esac
25217case $ac_abs_builddir in
25218.) ac_abs_srcdir=$ac_srcdir;;
25219*)
25220 case $ac_srcdir in
25221 .) ac_abs_srcdir=$ac_abs_builddir;;
25222 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25223 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25224 esac;;
25225esac
25226case $ac_abs_builddir in
25227.) ac_abs_top_srcdir=$ac_top_srcdir;;
25228*)
25229 case $ac_top_srcdir in
25230 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25231 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25232 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25233 esac;;
25234esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025235
25236
25237 case $srcdir in
25238 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25239 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25240 esac
25241
25242 # Try a symlink, then a hard link, then a copy.
25243 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25244 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25245 cp -p $srcdir/$ac_source $ac_dest ||
25246 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25247echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25248 { (exit 1); exit 1; }; }
25249done
25250_ACEOF
25251cat >>$CONFIG_STATUS <<\_ACEOF
25252
25253#
John Criswellc764fbc2003-09-06 15:17:13 +000025254# CONFIG_COMMANDS section.
25255#
25256for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25257 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25258 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25259 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25260$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025261 X"$ac_dest" : 'X\(//\)[^/]' \| \
25262 X"$ac_dest" : 'X\(//\)$' \| \
25263 X"$ac_dest" : 'X\(/\)' \| \
25264 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025265echo X"$ac_dest" |
25266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25268 /^X\(\/\/\)$/{ s//\1/; q; }
25269 /^X\(\/\).*/{ s//\1/; q; }
25270 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 { if $as_mkdir_p; then
25272 mkdir -p "$ac_dir"
25273 else
25274 as_dir="$ac_dir"
25275 as_dirs=
25276 while test ! -d "$as_dir"; do
25277 as_dirs="$as_dir $as_dirs"
25278 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25279$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25280 X"$as_dir" : 'X\(//\)[^/]' \| \
25281 X"$as_dir" : 'X\(//\)$' \| \
25282 X"$as_dir" : 'X\(/\)' \| \
25283 . : '\(.\)' 2>/dev/null ||
25284echo X"$as_dir" |
25285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25287 /^X\(\/\/\)$/{ s//\1/; q; }
25288 /^X\(\/\).*/{ s//\1/; q; }
25289 s/.*/./; q'`
25290 done
25291 test ! -n "$as_dirs" || mkdir $as_dirs
25292 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25293echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25294 { (exit 1); exit 1; }; }; }
25295
John Criswellc764fbc2003-09-06 15:17:13 +000025296 ac_builddir=.
25297
25298if test "$ac_dir" != .; then
25299 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25300 # A "../" for each directory in $ac_dir_suffix.
25301 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25302else
25303 ac_dir_suffix= ac_top_builddir=
25304fi
25305
25306case $srcdir in
25307 .) # No --srcdir option. We are building in place.
25308 ac_srcdir=.
25309 if test -z "$ac_top_builddir"; then
25310 ac_top_srcdir=.
25311 else
25312 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25313 fi ;;
25314 [\\/]* | ?:[\\/]* ) # Absolute path.
25315 ac_srcdir=$srcdir$ac_dir_suffix;
25316 ac_top_srcdir=$srcdir ;;
25317 *) # Relative path.
25318 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25319 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25320esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025321
25322# Do not use `cd foo && pwd` to compute absolute paths, because
25323# the directories may not exist.
25324case `pwd` in
25325.) ac_abs_builddir="$ac_dir";;
25326*)
25327 case "$ac_dir" in
25328 .) ac_abs_builddir=`pwd`;;
25329 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25330 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25331 esac;;
25332esac
25333case $ac_abs_builddir in
25334.) ac_abs_top_builddir=${ac_top_builddir}.;;
25335*)
25336 case ${ac_top_builddir}. in
25337 .) ac_abs_top_builddir=$ac_abs_builddir;;
25338 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25339 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25340 esac;;
25341esac
25342case $ac_abs_builddir in
25343.) ac_abs_srcdir=$ac_srcdir;;
25344*)
25345 case $ac_srcdir in
25346 .) ac_abs_srcdir=$ac_abs_builddir;;
25347 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25348 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25349 esac;;
25350esac
25351case $ac_abs_builddir in
25352.) ac_abs_top_srcdir=$ac_top_srcdir;;
25353*)
25354 case $ac_top_srcdir in
25355 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25356 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25357 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25358 esac;;
25359esac
John Criswellc764fbc2003-09-06 15:17:13 +000025360
25361
25362 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25363echo "$as_me: executing $ac_dest commands" >&6;}
25364 case $ac_dest in
25365 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25366 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025367 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025368 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025369 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025370 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25371 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025372 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25373 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025374 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025375 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025376 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025377 esac
25378done
25379_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025380
25381cat >>$CONFIG_STATUS <<\_ACEOF
25382
25383{ (exit 0); exit 0; }
25384_ACEOF
25385chmod +x $CONFIG_STATUS
25386ac_clean_files=$ac_clean_files_save
25387
25388
25389# configure is writing to config.log, and then calls config.status.
25390# config.status does its own redirection, appending to config.log.
25391# Unfortunately, on DOS this fails, as config.log is still kept open
25392# by configure, so config.status won't be able to write to it; its
25393# output is simply discarded. So we exec the FD to /dev/null,
25394# effectively closing config.log, so it can be properly (re)opened and
25395# appended to by config.status. When coming back to configure, we
25396# need to make the FD available again.
25397if test "$no_create" != yes; then
25398 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025399 ac_config_status_args=
25400 test "$silent" = yes &&
25401 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025402 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025404 exec 5>>config.log
25405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25406 # would make configure fail if this is the last instruction.
25407 $ac_cs_success || { (exit 1); exit 1; }
25408fi
25409
John Criswell12399a12003-09-30 15:55:44 +000025410#
25411# CONFIG_SUBDIRS section.
25412#
25413if test "$no_recursion" != yes; then
25414
25415 # Remove --cache-file and --srcdir arguments so they do not pile up.
25416 ac_sub_configure_args=
25417 ac_prev=
25418 for ac_arg in $ac_configure_args; do
25419 if test -n "$ac_prev"; then
25420 ac_prev=
25421 continue
25422 fi
25423 case $ac_arg in
25424 -cache-file | --cache-file | --cache-fil | --cache-fi \
25425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25426 ac_prev=cache_file ;;
25427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25429 | --c=*)
25430 ;;
25431 --config-cache | -C)
25432 ;;
25433 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25434 ac_prev=srcdir ;;
25435 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25436 ;;
25437 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25438 ac_prev=prefix ;;
25439 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25440 ;;
25441 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25442 esac
25443 done
25444
25445 # Always prepend --prefix to ensure using the same prefix
25446 # in subdir configurations.
25447 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25448
25449 ac_popdir=`pwd`
25450 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25451
25452 # Do not complain, so a configure script can configure whichever
25453 # parts of a large source tree are present.
25454 test -d $srcdir/$ac_dir || continue
25455
25456 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25457echo "$as_me: configuring in $ac_dir" >&6;}
25458 { if $as_mkdir_p; then
25459 mkdir -p "$ac_dir"
25460 else
25461 as_dir="$ac_dir"
25462 as_dirs=
25463 while test ! -d "$as_dir"; do
25464 as_dirs="$as_dir $as_dirs"
25465 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25466$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025467 X"$as_dir" : 'X\(//\)[^/]' \| \
25468 X"$as_dir" : 'X\(//\)$' \| \
25469 X"$as_dir" : 'X\(/\)' \| \
25470 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025471echo X"$as_dir" |
25472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25474 /^X\(\/\/\)$/{ s//\1/; q; }
25475 /^X\(\/\).*/{ s//\1/; q; }
25476 s/.*/./; q'`
25477 done
25478 test ! -n "$as_dirs" || mkdir $as_dirs
25479 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25480echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25481 { (exit 1); exit 1; }; }; }
25482
25483 ac_builddir=.
25484
25485if test "$ac_dir" != .; then
25486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25487 # A "../" for each directory in $ac_dir_suffix.
25488 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25489else
25490 ac_dir_suffix= ac_top_builddir=
25491fi
25492
25493case $srcdir in
25494 .) # No --srcdir option. We are building in place.
25495 ac_srcdir=.
25496 if test -z "$ac_top_builddir"; then
25497 ac_top_srcdir=.
25498 else
25499 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25500 fi ;;
25501 [\\/]* | ?:[\\/]* ) # Absolute path.
25502 ac_srcdir=$srcdir$ac_dir_suffix;
25503 ac_top_srcdir=$srcdir ;;
25504 *) # Relative path.
25505 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25506 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25507esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025508
25509# Do not use `cd foo && pwd` to compute absolute paths, because
25510# the directories may not exist.
25511case `pwd` in
25512.) ac_abs_builddir="$ac_dir";;
25513*)
25514 case "$ac_dir" in
25515 .) ac_abs_builddir=`pwd`;;
25516 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25517 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25518 esac;;
25519esac
25520case $ac_abs_builddir in
25521.) ac_abs_top_builddir=${ac_top_builddir}.;;
25522*)
25523 case ${ac_top_builddir}. in
25524 .) ac_abs_top_builddir=$ac_abs_builddir;;
25525 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25526 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25527 esac;;
25528esac
25529case $ac_abs_builddir in
25530.) ac_abs_srcdir=$ac_srcdir;;
25531*)
25532 case $ac_srcdir in
25533 .) ac_abs_srcdir=$ac_abs_builddir;;
25534 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25535 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25536 esac;;
25537esac
25538case $ac_abs_builddir in
25539.) ac_abs_top_srcdir=$ac_top_srcdir;;
25540*)
25541 case $ac_top_srcdir in
25542 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25543 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25544 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25545 esac;;
25546esac
John Criswell12399a12003-09-30 15:55:44 +000025547
25548
25549 cd $ac_dir
25550
25551 # Check for guested configure; otherwise get Cygnus style configure.
25552 if test -f $ac_srcdir/configure.gnu; then
25553 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25554 elif test -f $ac_srcdir/configure; then
25555 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25556 elif test -f $ac_srcdir/configure.in; then
25557 ac_sub_configure=$ac_configure
25558 else
25559 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25560echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25561 ac_sub_configure=
25562 fi
25563
25564 # The recursion is here.
25565 if test -n "$ac_sub_configure"; then
25566 # Make the cache file name correct relative to the subdirectory.
25567 case $cache_file in
25568 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25569 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025570 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025571 esac
25572
25573 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25574echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25575 # The eval makes quoting arguments work.
25576 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025577 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25578 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025579echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25580 { (exit 1); exit 1; }; }
25581 fi
25582
25583 cd $ac_popdir
25584 done
25585fi
25586
Brian Gaekef3b24102003-11-16 18:38:14 +000025587
25588if test $llvmgccwarn = yes
25589then
25590 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25591echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25592 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25593echo "$as_me: WARNING: ***** appear to be working." >&2;}
25594 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25595echo "$as_me: WARNING: ***** " >&2;}
25596 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25597echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25598 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25599echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25600 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25601echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25602fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025603