blob: 5e1fd585c6d3fb10b1c26eec836760aefffb8702 [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 Spencer37130d22004-10-04 07:05:07 +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_ZLIB HAVE_BZIP2 ENDIAN 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 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001591 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1592echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001593 ;;
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
John Criswell40468462004-09-24 21:19:06 +00001601 ac_config_files="$ac_config_files Makefile.config"
John Criswell5fbb1f82004-09-24 13:28:51 +00001602
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
John Criswelldc76e322004-07-23 15:40:57 +00001604
John Criswell9f011862004-09-24 18:28:00 +00001605 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1606
1607 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1608
John Criswell40468462004-09-24 21:19:06 +00001609 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1610
1611 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1612
John Criswelldc76e322004-07-23 15:40:57 +00001613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
Reid Spencer5f285392004-08-24 16:32:21 +00001620 ac_config_commands="$ac_config_commands examples/Makefile"
1621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswellf424d742003-10-07 21:13:47 +00001635 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1636
1637
1638 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
Brian Gaekec45be042003-10-07 06:01:34 +00001644 ac_config_commands="$ac_config_commands utils/Makefile"
1645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell392aaa32003-07-22 19:18:09 +00001650
John Criswell7a73b802003-06-30 21:59:07 +00001651# Find a good install program. We prefer a C program (faster),
1652# so one script is as good as another. But avoid the broken or
1653# incompatible versions:
1654# SysV /etc/install, /usr/sbin/install
1655# SunOS /usr/etc/install
1656# IRIX /sbin/install
1657# AIX /bin/install
1658# AmigaOS /C/install, which installs bootblocks on floppy discs
1659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2706f8c2004-09-19 23:53:36 +00001662# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001663# ./install, which can be erroneously created by make from ./install.sh.
1664echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666if test -z "$INSTALL"; then
1667if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 # Account for people who put trailing slashes in PATH elements.
1676case $as_dir/ in
1677 ./ | .// | /cC/* | \
1678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001680 /usr/ucb/* ) ;;
1681 *)
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1684 # by default.
1685 for ac_prog in ginstall scoinst install; do
1686 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2706f8c2004-09-19 23:53:36 +00001687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1691 :
1692 elif test $ac_prog = install &&
1693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1695 :
1696 else
1697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698 break 3
1699 fi
1700 fi
John Criswell7a73b802003-06-30 21:59:07 +00001701 done
1702 done
1703 ;;
1704esac
1705done
1706
1707
1708fi
1709 if test "${ac_cv_path_install+set}" = set; then
1710 INSTALL=$ac_cv_path_install
1711 else
1712 # As a last resort, use the slow shell script. We don't cache a
1713 # path for INSTALL within a source directory, because that will
1714 # break other packages using the cache if that directory is
1715 # removed, or if the path is relative.
1716 INSTALL=$ac_install_sh
1717 fi
1718fi
1719echo "$as_me:$LINENO: result: $INSTALL" >&5
1720echo "${ECHO_T}$INSTALL" >&6
1721
1722# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723# It thinks the first close brace ends the variable substitution.
1724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1725
1726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1727
1728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1729
1730
1731# Make sure we can run config.sub.
1732$ac_config_sub sun4 >/dev/null 2>&1 ||
1733 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735 { (exit 1); exit 1; }; }
1736
1737echo "$as_me:$LINENO: checking build system type" >&5
1738echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739if test "${ac_cv_build+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742 ac_cv_build_alias=$build_alias
1743test -z "$ac_cv_build_alias" &&
1744 ac_cv_build_alias=`$ac_config_guess`
1745test -z "$ac_cv_build_alias" &&
1746 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748 { (exit 1); exit 1; }; }
1749ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752 { (exit 1); exit 1; }; }
1753
1754fi
1755echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756echo "${ECHO_T}$ac_cv_build" >&6
1757build=$ac_cv_build
1758build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763echo "$as_me:$LINENO: checking host system type" >&5
1764echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765if test "${ac_cv_host+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768 ac_cv_host_alias=$host_alias
1769test -z "$ac_cv_host_alias" &&
1770 ac_cv_host_alias=$ac_cv_build_alias
1771ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774 { (exit 1); exit 1; }; }
1775
1776fi
1777echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778echo "${ECHO_T}$ac_cv_host" >&6
1779host=$ac_cv_host
1780host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1783
1784
1785echo "$as_me:$LINENO: checking target system type" >&5
1786echo $ECHO_N "checking target system type... $ECHO_C" >&6
1787if test "${ac_cv_target+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790 ac_cv_target_alias=$target_alias
1791test "x$ac_cv_target_alias" = "x" &&
1792 ac_cv_target_alias=$ac_cv_host_alias
1793ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1794 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1795echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1796 { (exit 1); exit 1; }; }
1797
1798fi
1799echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1800echo "${ECHO_T}$ac_cv_target" >&6
1801target=$ac_cv_target
1802target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1803target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1804target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1805
1806
1807# The aliases save the names the user supplied, while $host etc.
1808# will get canonicalized.
1809test -n "$target_alias" &&
1810 test "$program_prefix$program_suffix$program_transform_name" = \
1811 NONENONEs,x,x, &&
1812 program_prefix=${target_alias}-
1813
Reid Spencer73fb5482004-08-31 14:20:36 +00001814
1815echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1816echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001817case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001818 *-*-aix*)
1819 OS=AIX
1820
1821 platform_type="AIX"
1822 ;;
1823 *-*-cygwin*)
1824 OS=Cygwin
1825
1826 platform_type="Cygwin"
1827 ;;
1828 *-*-darwin*)
1829 OS=Darwin
1830
1831 platform_type="Darwin"
1832 ;;
1833 *-*-freebsd*)
1834 OS=Linux
1835
Reid Spencera11e4db2004-08-31 18:03:23 +00001836 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001837 ;;
1838 *-*-interix*)
1839 OS=SunOS
1840
Reid Spencera11e4db2004-08-31 18:03:23 +00001841 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001842 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001843 *-*-linux*)
1844 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001845
Reid Spencerde8c47f2004-08-29 19:35:28 +00001846 platform_type="Linux"
1847 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1848 then
1849 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001850
Reid Spencerde8c47f2004-08-29 19:35:28 +00001851 fi
1852 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001853 *-*-solaris*)
1854 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001855
Reid Spencerde8c47f2004-08-29 19:35:28 +00001856 platform_type="SunOS"
1857 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1858 then
1859 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001860
Reid Spencerde8c47f2004-08-29 19:35:28 +00001861 fi
1862 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001863 *-*-win32*)
1864 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001865
Reid Spencerde8c47f2004-08-29 19:35:28 +00001866 platform_type="Win32"
1867 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001868 *-*-mingw*)
1869 OS=Win32
1870
1871 platform_type="Win32"
1872 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001873 *)
1874 OS=Unknown
1875
1876 platform_type="Unknown"
1877 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001878esac
1879
Reid Spencer73fb5482004-08-31 14:20:36 +00001880if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001881 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1882echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1883 { (exit 1); exit 1; }; }
1884fi
1885
Reid Spencerde8c47f2004-08-29 19:35:28 +00001886 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1887
1888
Reid Spencer73fb5482004-08-31 14:20:36 +00001889
1890echo "$as_me:$LINENO: checking target architecture" >&5
1891echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001892case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001894
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001895 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001896esac
1897
John Criswell76595452003-07-01 22:07:39 +00001898case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001899 i*86-*)
1900 ARCH="x86"
1901 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001902
Reid Spencer73fb5482004-08-31 14:20:36 +00001903 ;;
1904 sparc*-*)
1905 ARCH="Sparc"
1906 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001907
Reid Spencer73fb5482004-08-31 14:20:36 +00001908 ;;
1909 powerpc*-*)
1910 ARCH="PowerPC"
1911 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001912
Reid Spencer73fb5482004-08-31 14:20:36 +00001913 ;;
1914 *)
1915 ARCH="Unknown"
1916 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001917
Reid Spencer73fb5482004-08-31 14:20:36 +00001918 ;;
John Criswell76595452003-07-01 22:07:39 +00001919esac
1920
Reid Spencer73fb5482004-08-31 14:20:36 +00001921echo "$as_me:$LINENO: result: $ARCH" >&5
1922echo "${ECHO_T}$ARCH" >&6
1923
John Criswell7a73b802003-06-30 21:59:07 +00001924ac_ext=cc
1925ac_cpp='$CXXCPP $CPPFLAGS'
1926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1929if test -n "$ac_tool_prefix"; then
1930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1931 do
1932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_CXX+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 if test -n "$CXX"; then
1940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956fi
1957fi
1958CXX=$ac_cv_prog_CXX
1959if test -n "$CXX"; then
1960 echo "$as_me:$LINENO: result: $CXX" >&5
1961echo "${ECHO_T}$CXX" >&6
1962else
1963 echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965fi
1966
1967 test -n "$CXX" && break
1968 done
1969fi
1970if test -z "$CXX"; then
1971 ac_ct_CXX=$CXX
1972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1973do
1974 # Extract the first word of "$ac_prog", so it can be a program name with args.
1975set dummy $ac_prog; ac_word=$2
1976echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 if test -n "$ac_ct_CXX"; then
1982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991 ac_cv_prog_ac_ct_CXX="$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997
1998fi
1999fi
2000ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2001if test -n "$ac_ct_CXX"; then
2002 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2003echo "${ECHO_T}$ac_ct_CXX" >&6
2004else
2005 echo "$as_me:$LINENO: result: no" >&5
2006echo "${ECHO_T}no" >&6
2007fi
2008
2009 test -n "$ac_ct_CXX" && break
2010done
2011test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2012
2013 CXX=$ac_ct_CXX
2014fi
2015
2016
2017# Provide some information about the compiler.
2018echo "$as_me:$LINENO:" \
2019 "checking for C++ compiler version" >&5
2020ac_compiler=`set X $ac_compile; echo $2`
2021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev/null >&5) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev/null >&5) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev/null >&5) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2036
2037cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002038/* confdefs.h. */
2039_ACEOF
2040cat confdefs.h >>conftest.$ac_ext
2041cat >>conftest.$ac_ext <<_ACEOF
2042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002043
John Criswell7a73b802003-06-30 21:59:07 +00002044int
2045main ()
2046{
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002053ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002054# Try to create an executable without -o first, disregard a.out.
2055# It will help us diagnose broken compilers, and finding out an intuition
2056# of exeext.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002057echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2058echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002059ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 (eval $ac_link_default) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # Find the output, starting from the most likely. This scheme is
2066# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067# resort.
2068
2069# Be careful to initialize this variable, since it used to be cached.
2070# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002072# b.out is created by i960 compilers.
2073for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074do
2075 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002076 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002078 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002079 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002080 # This is the source file.
2081 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002082 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002083 # We found the default executable, but exeext='' is most
2084 # certainly right.
2085 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002086 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 # but it would be cool to find out if it's true. Does anybody
2090 # maintain Libtool? --akim.
2091 export ac_cv_exeext
2092 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002093 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002094 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002095 esac
2096done
2097else
2098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002099sed 's/^/| /' conftest.$ac_ext >&5
2100
2101{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2102See \`config.log' for more details." >&5
2103echo "$as_me: error: C++ compiler cannot create executables
2104See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002105 { (exit 77); exit 77; }; }
2106fi
2107
2108ac_exeext=$ac_cv_exeext
2109echo "$as_me:$LINENO: result: $ac_file" >&5
2110echo "${ECHO_T}$ac_file" >&6
2111
2112# Check the compiler produces executables we can run. If not, either
2113# the compiler is broken, or we cross compile.
2114echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2115echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2116# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117# If not cross compiling, check that we can run a simple program.
2118if test "$cross_compiling" != yes; then
2119 if { ac_try='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 cross_compiling=no
2126 else
2127 if test "$cross_compiling" = maybe; then
2128 cross_compiling=yes
2129 else
2130 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002131If you meant to cross compile, use \`--host'.
2132See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002133echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002134If you meant to cross compile, use \`--host'.
2135See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002136 { (exit 1); exit 1; }; }
2137 fi
2138 fi
2139fi
2140echo "$as_me:$LINENO: result: yes" >&5
2141echo "${ECHO_T}yes" >&6
2142
John Criswell0c38eaf2003-09-10 15:17:25 +00002143rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002144ac_clean_files=$ac_clean_files_save
2145# Check the compiler produces executables we can run. If not, either
2146# the compiler is broken, or we cross compile.
2147echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150echo "${ECHO_T}$cross_compiling" >&6
2151
2152echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 (eval $ac_link) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161# work properly (i.e., refer to `conftest.exe'), while it won't with
2162# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002163for ac_file in conftest.exe conftest conftest.*; do
2164 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002165 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002168 export ac_cv_exeext
2169 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002170 * ) break;;
2171 esac
2172done
2173else
John Criswell0c38eaf2003-09-10 15:17:25 +00002174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175See \`config.log' for more details." >&5
2176echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002178 { (exit 1); exit 1; }; }
2179fi
2180
2181rm -f conftest$ac_cv_exeext
2182echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183echo "${ECHO_T}$ac_cv_exeext" >&6
2184
2185rm -f conftest.$ac_ext
2186EXEEXT=$ac_cv_exeext
2187ac_exeext=$EXEEXT
2188echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190if test "${ac_cv_objext+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002194/* confdefs.h. */
2195_ACEOF
2196cat confdefs.h >>conftest.$ac_ext
2197cat >>conftest.$ac_ext <<_ACEOF
2198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002199
John Criswell7a73b802003-06-30 21:59:07 +00002200int
2201main ()
2202{
2203
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208rm -f conftest.o conftest.obj
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; then
2214 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2215 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218 break;;
2219 esac
2220done
2221else
2222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002223sed 's/^/| /' conftest.$ac_ext >&5
2224
2225{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002229 { (exit 1); exit 1; }; }
2230fi
2231
2232rm -f conftest.$ac_cv_objext conftest.$ac_ext
2233fi
2234echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235echo "${ECHO_T}$ac_cv_objext" >&6
2236OBJEXT=$ac_cv_objext
2237ac_objext=$OBJEXT
2238echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242else
2243 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002244/* confdefs.h. */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002249
John Criswell7a73b802003-06-30 21:59:07 +00002250int
2251main ()
2252{
2253#ifndef __GNUC__
2254 choke me
2255#endif
2256
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002263 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002264 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002270 { ac_try='test -z "$ac_cxx_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 ac_compiler_gnu=yes
2284else
2285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002286sed 's/^/| /' conftest.$ac_ext >&5
2287
John Criswell7a73b802003-06-30 21:59:07 +00002288ac_compiler_gnu=no
2289fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002291ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2292
2293fi
2294echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2295echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2296GXX=`test $ac_compiler_gnu = yes && echo yes`
2297ac_test_CXXFLAGS=${CXXFLAGS+set}
2298ac_save_CXXFLAGS=$CXXFLAGS
2299CXXFLAGS="-g"
2300echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2301echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2302if test "${ac_cv_prog_cxx_g+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002306/* confdefs.h. */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002311
John Criswell7a73b802003-06-30 21:59:07 +00002312int
2313main ()
2314{
2315
2316 ;
2317 return 0;
2318}
2319_ACEOF
2320rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002322 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002329 { ac_try='test -z "$ac_cxx_werror_flag"
2330 || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 (eval $ac_try) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2342 ac_cv_prog_cxx_g=yes
2343else
2344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002345sed 's/^/| /' conftest.$ac_ext >&5
2346
John Criswell7a73b802003-06-30 21:59:07 +00002347ac_cv_prog_cxx_g=no
2348fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002350fi
2351echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2352echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2353if test "$ac_test_CXXFLAGS" = set; then
2354 CXXFLAGS=$ac_save_CXXFLAGS
2355elif test $ac_cv_prog_cxx_g = yes; then
2356 if test "$GXX" = yes; then
2357 CXXFLAGS="-g -O2"
2358 else
2359 CXXFLAGS="-g"
2360 fi
2361else
2362 if test "$GXX" = yes; then
2363 CXXFLAGS="-O2"
2364 else
2365 CXXFLAGS=
2366 fi
2367fi
2368for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002369 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002370 'extern "C" void std::exit (int) throw (); using std::exit;' \
2371 'extern "C" void std::exit (int); using std::exit;' \
2372 'extern "C" void exit (int) throw ();' \
2373 'extern "C" void exit (int);' \
2374 'void exit (int);'
2375do
2376 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002382$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002384int
2385main ()
2386{
2387exit (42);
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392rm -f conftest.$ac_objext
2393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002394 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002401 { ac_try='test -z "$ac_cxx_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2414 :
2415else
2416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002417sed 's/^/| /' conftest.$ac_ext >&5
2418
John Criswell7a73b802003-06-30 21:59:07 +00002419continue
2420fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002422 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002428$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002429int
2430main ()
2431{
2432exit (42);
2433 ;
2434 return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext
2438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002439 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002446 { ac_try='test -z "$ac_cxx_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 break
2460else
2461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002462sed 's/^/| /' conftest.$ac_ext >&5
2463
John Criswell7a73b802003-06-30 21:59:07 +00002464fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002466done
2467rm -f conftest*
2468if test -n "$ac_declaration"; then
2469 echo '#ifdef __cplusplus' >>confdefs.h
2470 echo $ac_declaration >>confdefs.h
2471 echo '#endif' >>confdefs.h
2472fi
2473
2474ac_ext=c
2475ac_cpp='$CPP $CPPFLAGS'
2476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480ac_ext=c
2481ac_cpp='$CPP $CPPFLAGS'
2482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485if test -n "$ac_tool_prefix"; then
2486 for ac_prog in gcc
2487 do
2488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
2511
2512fi
2513fi
2514CC=$ac_cv_prog_CC
2515if test -n "$CC"; then
2516 echo "$as_me:$LINENO: result: $CC" >&5
2517echo "${ECHO_T}$CC" >&6
2518else
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
2521fi
2522
2523 test -n "$CC" && break
2524 done
2525fi
2526if test -z "$CC"; then
2527 ac_ct_CC=$CC
2528 for ac_prog in gcc
2529do
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531set dummy $ac_prog; ac_word=$2
2532echo "$as_me:$LINENO: checking for $ac_word" >&5
2533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 if test -n "$ac_ct_CC"; then
2538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_ac_ct_CC="$ac_prog"
2548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551done
2552done
2553
2554fi
2555fi
2556ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557if test -n "$ac_ct_CC"; then
2558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2559echo "${ECHO_T}$ac_ct_CC" >&6
2560else
2561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
2563fi
2564
2565 test -n "$ac_ct_CC" && break
2566done
2567
2568 CC=$ac_ct_CC
2569fi
2570
2571
John Criswell0c38eaf2003-09-10 15:17:25 +00002572test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2573See \`config.log' for more details." >&5
2574echo "$as_me: error: no acceptable C compiler found in \$PATH
2575See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002576 { (exit 1); exit 1; }; }
2577
2578# Provide some information about the compiler.
2579echo "$as_me:$LINENO:" \
2580 "checking for C compiler version" >&5
2581ac_compiler=`set X $ac_compile; echo $2`
2582{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2583 (eval $ac_compiler --version </dev/null >&5) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2588 (eval $ac_compiler -v </dev/null >&5) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }
2592{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2593 (eval $ac_compiler -V </dev/null >&5) 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }
2597
2598echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002609
John Criswell7a73b802003-06-30 21:59:07 +00002610int
2611main ()
2612{
2613#ifndef __GNUC__
2614 choke me
2615#endif
2616
2617 ;
2618 return 0;
2619}
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002623 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 ac_compiler_gnu=yes
2644else
2645 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002646sed 's/^/| /' conftest.$ac_ext >&5
2647
John Criswell7a73b802003-06-30 21:59:07 +00002648ac_compiler_gnu=no
2649fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002651ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652
2653fi
2654echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656GCC=`test $ac_compiler_gnu = yes && echo yes`
2657ac_test_CFLAGS=${CFLAGS+set}
2658ac_save_CFLAGS=$CFLAGS
2659CFLAGS="-g"
2660echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662if test "${ac_cv_prog_cc_g+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002666/* confdefs.h. */
2667_ACEOF
2668cat confdefs.h >>conftest.$ac_ext
2669cat >>conftest.$ac_ext <<_ACEOF
2670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002671
John Criswell7a73b802003-06-30 21:59:07 +00002672int
2673main ()
2674{
2675
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002682 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002684 grep -v '^ *+' conftest.er1 >conftest.err
2685 rm -f conftest.er1
2686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692 (eval $ac_try) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 ac_cv_prog_cc_g=yes
2703else
2704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002705sed 's/^/| /' conftest.$ac_ext >&5
2706
John Criswell7a73b802003-06-30 21:59:07 +00002707ac_cv_prog_cc_g=no
2708fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
2711echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2713if test "$ac_test_CFLAGS" = set; then
2714 CFLAGS=$ac_save_CFLAGS
2715elif test $ac_cv_prog_cc_g = yes; then
2716 if test "$GCC" = yes; then
2717 CFLAGS="-g -O2"
2718 else
2719 CFLAGS="-g"
2720 fi
2721else
2722 if test "$GCC" = yes; then
2723 CFLAGS="-O2"
2724 else
2725 CFLAGS=
2726 fi
2727fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002728echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2729echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2730if test "${ac_cv_prog_cc_stdc+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733 ac_cv_prog_cc_stdc=no
2734ac_save_CC=$CC
2735cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h. */
2741#include <stdarg.h>
2742#include <stdio.h>
2743#include <sys/types.h>
2744#include <sys/stat.h>
2745/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2746struct buf { int x; };
2747FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748static char *e (p, i)
2749 char **p;
2750 int i;
2751{
2752 return p[i];
2753}
2754static char *f (char * (*g) (char **, int), char **p, ...)
2755{
2756 char *s;
2757 va_list v;
2758 va_start (v,p);
2759 s = g (p, va_arg (v,int));
2760 va_end (v);
2761 return s;
2762}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002763
2764/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2765 function prototypes and stuff, but not '\xHH' hex character constants.
2766 These don't provoke an error unfortunately, instead are silently treated
2767 as 'x'. The following induces an error, until -std1 is added to get
2768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2769 array size at least. It's necessary to write '\x00'==0 to get something
2770 that's true only with -std1. */
2771int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2772
John Criswell0c38eaf2003-09-10 15:17:25 +00002773int test (int i, double x);
2774struct s1 {int (*f) (int a);};
2775struct s2 {int (*f) (double a);};
2776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2777int argc;
2778char **argv;
2779int
2780main ()
2781{
2782return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787# Don't try gcc -ansi; that turns off useful extensions and
2788# breaks some systems' header files.
2789# AIX -qlanglvl=ansi
2790# Ultrix and OSF/1 -std1
2791# HP-UX 10.20 and later -Ae
2792# HP-UX older versions -Aa -D_HPUX_SOURCE
2793# SVR4 -Xc -D__EXTENSIONS__
2794for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2795do
2796 CC="$ac_save_CC $ac_arg"
2797 rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002806 { ac_try='test -z "$ac_c_werror_flag"
2807 || test ! -s conftest.err'
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_cv_prog_cc_stdc=$ac_arg
2820break
2821else
2822 echo "$as_me: failed program was:" >&5
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002826rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002827done
2828rm -f conftest.$ac_ext conftest.$ac_objext
2829CC=$ac_save_CC
2830
2831fi
2832
2833case "x$ac_cv_prog_cc_stdc" in
2834 x|xno)
2835 echo "$as_me:$LINENO: result: none needed" >&5
2836echo "${ECHO_T}none needed" >&6 ;;
2837 *)
2838 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2839echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2840 CC="$CC $ac_cv_prog_cc_stdc" ;;
2841esac
2842
John Criswell7a73b802003-06-30 21:59:07 +00002843# Some people use a C++ compiler to compile C. Since we use `exit',
2844# in C++ we need to declare it. In case someone uses the same compiler
2845# for both compiling C and C++ we need to have the C++ compiler decide
2846# the declaration of exit, since it's the most demanding environment.
2847cat >conftest.$ac_ext <<_ACEOF
2848#ifndef __cplusplus
2849 choke me
2850#endif
2851_ACEOF
2852rm -f conftest.$ac_objext
2853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002854 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002855 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002875 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002876 'extern "C" void std::exit (int) throw (); using std::exit;' \
2877 'extern "C" void std::exit (int); using std::exit;' \
2878 'extern "C" void exit (int) throw ();' \
2879 'extern "C" void exit (int);' \
2880 'void exit (int);'
2881do
2882 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002883/* confdefs.h. */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002888$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002889#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002890int
2891main ()
2892{
2893exit (42);
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext
2899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002900 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002901 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 :
2921else
2922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002923sed 's/^/| /' conftest.$ac_ext >&5
2924
John Criswell7a73b802003-06-30 21:59:07 +00002925continue
2926fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002934$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002935int
2936main ()
2937{
2938exit (42);
2939 ;
2940 return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002945 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002946 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002947 grep -v '^ *+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2965 break
2966else
2967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002968sed 's/^/| /' conftest.$ac_ext >&5
2969
John Criswell7a73b802003-06-30 21:59:07 +00002970fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002972done
2973rm -f conftest*
2974if test -n "$ac_declaration"; then
2975 echo '#ifdef __cplusplus' >>confdefs.h
2976 echo $ac_declaration >>confdefs.h
2977 echo '#endif' >>confdefs.h
2978fi
2979
2980else
2981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002982sed 's/^/| /' conftest.$ac_ext >&5
2983
John Criswell7a73b802003-06-30 21:59:07 +00002984fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002986ac_ext=c
2987ac_cpp='$CPP $CPPFLAGS'
2988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991
Reid Spencer2706f8c2004-09-19 23:53:36 +00002992if test "$GCC" != "yes"
2993then
2994 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2995echo "$as_me: error: gcc required but not found" >&2;}
2996 { (exit 1); exit 1; }; }
2997fi
John Criswell7a73b802003-06-30 21:59:07 +00002998ac_ext=c
2999ac_cpp='$CPP $CPPFLAGS'
3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3004echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3005# On Suns, sometimes $CPP names a directory.
3006if test -n "$CPP" && test -d "$CPP"; then
3007 CPP=
3008fi
3009if test -z "$CPP"; then
3010 if test "${ac_cv_prog_CPP+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012else
3013 # Double quotes because CPP needs to be expanded
3014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3015 do
3016 ac_preproc_ok=false
3017for ac_c_preproc_warn_flag in '' yes
3018do
3019 # Use a header file that comes with gcc, so configuring glibc
3020 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003023 # On the NeXT, cc -E runs the code through the compiler's parser,
3024 # not just through cpp. "Syntax error" is here to catch this case.
3025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031#ifdef __STDC__
3032# include <limits.h>
3033#else
3034# include <assert.h>
3035#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003036 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003037_ACEOF
3038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003041 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003042 rm -f conftest.er1
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev/null; then
3046 if test -s conftest.err; then
3047 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003049 else
3050 ac_cpp_err=
3051 fi
3052else
3053 ac_cpp_err=yes
3054fi
3055if test -z "$ac_cpp_err"; then
3056 :
3057else
3058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003059sed 's/^/| /' conftest.$ac_ext >&5
3060
John Criswell7a73b802003-06-30 21:59:07 +00003061 # Broken: fails on valid input.
3062continue
3063fi
3064rm -f conftest.err conftest.$ac_ext
3065
3066 # OK, works on sane cases. Now check whether non-existent headers
3067 # can be detected and how.
3068 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003074#include <ac_nonexistent.h>
3075_ACEOF
3076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003079 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003087 else
3088 ac_cpp_err=
3089 fi
3090else
3091 ac_cpp_err=yes
3092fi
3093if test -z "$ac_cpp_err"; then
3094 # Broken: success on invalid input.
3095continue
3096else
3097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003098sed 's/^/| /' conftest.$ac_ext >&5
3099
John Criswell7a73b802003-06-30 21:59:07 +00003100 # Passes both tests.
3101ac_preproc_ok=:
3102break
3103fi
3104rm -f conftest.err conftest.$ac_ext
3105
3106done
3107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108rm -f conftest.err conftest.$ac_ext
3109if $ac_preproc_ok; then
3110 break
3111fi
3112
3113 done
3114 ac_cv_prog_CPP=$CPP
3115
3116fi
3117 CPP=$ac_cv_prog_CPP
3118else
3119 ac_cv_prog_CPP=$CPP
3120fi
3121echo "$as_me:$LINENO: result: $CPP" >&5
3122echo "${ECHO_T}$CPP" >&6
3123ac_preproc_ok=false
3124for ac_c_preproc_warn_flag in '' yes
3125do
3126 # Use a header file that comes with gcc, so configuring glibc
3127 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003130 # On the NeXT, cc -E runs the code through the compiler's parser,
3131 # not just through cpp. "Syntax error" is here to catch this case.
3132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138#ifdef __STDC__
3139# include <limits.h>
3140#else
3141# include <assert.h>
3142#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003143 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003144_ACEOF
3145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003148 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003149 rm -f conftest.er1
3150 cat conftest.err >&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } >/dev/null; then
3153 if test -s conftest.err; then
3154 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003156 else
3157 ac_cpp_err=
3158 fi
3159else
3160 ac_cpp_err=yes
3161fi
3162if test -z "$ac_cpp_err"; then
3163 :
3164else
3165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003166sed 's/^/| /' conftest.$ac_ext >&5
3167
John Criswell7a73b802003-06-30 21:59:07 +00003168 # Broken: fails on valid input.
3169continue
3170fi
3171rm -f conftest.err conftest.$ac_ext
3172
3173 # OK, works on sane cases. Now check whether non-existent headers
3174 # can be detected and how.
3175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003181#include <ac_nonexistent.h>
3182_ACEOF
3183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003186 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003194 else
3195 ac_cpp_err=
3196 fi
3197else
3198 ac_cpp_err=yes
3199fi
3200if test -z "$ac_cpp_err"; then
3201 # Broken: success on invalid input.
3202continue
3203else
3204 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003205sed 's/^/| /' conftest.$ac_ext >&5
3206
John Criswell7a73b802003-06-30 21:59:07 +00003207 # Passes both tests.
3208ac_preproc_ok=:
3209break
3210fi
3211rm -f conftest.err conftest.$ac_ext
3212
3213done
3214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3215rm -f conftest.err conftest.$ac_ext
3216if $ac_preproc_ok; then
3217 :
3218else
John Criswell0c38eaf2003-09-10 15:17:25 +00003219 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3220See \`config.log' for more details." >&5
3221echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3222See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003223 { (exit 1); exit 1; }; }
3224fi
3225
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
John Criswell7a73b802003-06-30 21:59:07 +00003232if test "$GXX" != "yes"
3233then
3234 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3235echo "$as_me: error: g++ required but not found" >&2;}
3236 { (exit 1); exit 1; }; }
3237fi
3238
John Criswellde00db22003-08-25 16:49:54 +00003239gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3240if test "$gccmajor" -lt "3"
3241then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003242 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3243echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003244 { (exit 1); exit 1; }; }
3245fi
3246
John Criswell7a73b802003-06-30 21:59:07 +00003247 echo "$as_me:$LINENO: checking for GNU make" >&5
3248echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3249if test "${_cv_gnu_make_command+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251else
3252 _cv_gnu_make_command='' ;
3253 for a in "$MAKE" make gmake gnumake ; do
3254 if test -z "$a" ; then continue ; fi ;
3255 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3256 _cv_gnu_make_command=$a ;
3257 break;
3258 fi
3259 done ;
3260
3261fi
3262echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3263echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3264 if test "x$_cv_gnu_make_command" != "x" ; then
3265 ifGNUmake='' ;
3266 else
3267 ifGNUmake='#' ;
3268 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3269echo "${ECHO_T}\"Not found\"" >&6;
3270 fi
3271
3272
3273if test -z "$_cv_gnu_make_command"
3274then
3275 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3276echo "$as_me: error: GNU Make required but not found" >&2;}
3277 { (exit 1); exit 1; }; }
3278fi
3279
3280
3281echo "$as_me:$LINENO: checking " >&5
3282echo $ECHO_N "checking ... $ECHO_C" >&6
3283if test "${ac_cv_has_flex+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 for ac_prog in flex lex
3287do
3288 # Extract the first word of "$ac_prog", so it can be a program name with args.
3289set dummy $ac_prog; ac_word=$2
3290echo "$as_me:$LINENO: checking for $ac_word" >&5
3291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292if test "${ac_cv_prog_LEX+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 if test -n "$LEX"; then
3296 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_LEX="$ac_prog"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3308 fi
3309done
3310done
3311
3312fi
3313fi
3314LEX=$ac_cv_prog_LEX
3315if test -n "$LEX"; then
3316 echo "$as_me:$LINENO: result: $LEX" >&5
3317echo "${ECHO_T}$LEX" >&6
3318else
3319 echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323 test -n "$LEX" && break
3324done
3325test -n "$LEX" || LEX=":"
3326
3327if test -z "$LEXLIB"
3328then
3329 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3330echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3331if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334 ac_check_lib_save_LIBS=$LIBS
3335LIBS="-lfl $LIBS"
3336cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003342
3343/* Override any gcc2 internal prototype to avoid an error. */
3344#ifdef __cplusplus
3345extern "C"
3346#endif
3347/* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3349char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003350int
3351main ()
3352{
3353yywrap ();
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext conftest$ac_exeext
3359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003360 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003361 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003367 { ac_try='test -z "$ac_c_werror_flag"
3368 || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 (eval $ac_try) 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_lib_fl_yywrap=yes
3381else
3382 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003383sed 's/^/| /' conftest.$ac_ext >&5
3384
John Criswell7a73b802003-06-30 21:59:07 +00003385ac_cv_lib_fl_yywrap=no
3386fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003387rm -f conftest.err conftest.$ac_objext \
3388 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003389LIBS=$ac_check_lib_save_LIBS
3390fi
3391echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3392echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3393if test $ac_cv_lib_fl_yywrap = yes; then
3394 LEXLIB="-lfl"
3395else
3396 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3397echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3398if test "${ac_cv_lib_l_yywrap+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 ac_check_lib_save_LIBS=$LIBS
3402LIBS="-ll $LIBS"
3403cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003409
3410/* Override any gcc2 internal prototype to avoid an error. */
3411#ifdef __cplusplus
3412extern "C"
3413#endif
3414/* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3416char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003417int
3418main ()
3419{
3420yywrap ();
3421 ;
3422 return 0;
3423}
3424_ACEOF
3425rm -f conftest.$ac_objext conftest$ac_exeext
3426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003427 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003428 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003434 { ac_try='test -z "$ac_c_werror_flag"
3435 || test ! -s conftest.err'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; } &&
3441 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 (eval $ac_try) 2>&5
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; }; then
3447 ac_cv_lib_l_yywrap=yes
3448else
3449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003450sed 's/^/| /' conftest.$ac_ext >&5
3451
John Criswell7a73b802003-06-30 21:59:07 +00003452ac_cv_lib_l_yywrap=no
3453fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003454rm -f conftest.err conftest.$ac_objext \
3455 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003456LIBS=$ac_check_lib_save_LIBS
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3459echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3460if test $ac_cv_lib_l_yywrap = yes; then
3461 LEXLIB="-ll"
3462fi
3463
3464fi
3465
3466fi
3467
3468if test "x$LEX" != "x:"; then
3469 echo "$as_me:$LINENO: checking lex output file root" >&5
3470echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3471if test "${ac_cv_prog_lex_root+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473else
3474 # The minimal lex program is just a single line: %%. But some broken lexes
3475# (Solaris, I think it was) want two %% lines, so accommodate them.
3476cat >conftest.l <<_ACEOF
3477%%
3478%%
3479_ACEOF
3480{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3481 (eval $LEX conftest.l) 2>&5
3482 ac_status=$?
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }
3485if test -f lex.yy.c; then
3486 ac_cv_prog_lex_root=lex.yy
3487elif test -f lexyy.c; then
3488 ac_cv_prog_lex_root=lexyy
3489else
3490 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3491echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3492 { (exit 1); exit 1; }; }
3493fi
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3496echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3497rm -f conftest.l
3498LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3499
3500echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3501echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3502if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505 # POSIX says lex can declare yytext either as a pointer or an array; the
3506# default is implementation-dependent. Figure out which it is, since
3507# not all implementations provide the %pointer and %array declarations.
3508ac_cv_prog_lex_yytext_pointer=no
3509echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3510ac_save_LIBS=$LIBS
3511LIBS="$LIBS $LEXLIB"
3512cat >conftest.$ac_ext <<_ACEOF
3513`cat $LEX_OUTPUT_ROOT.c`
3514_ACEOF
3515rm -f conftest.$ac_objext conftest$ac_exeext
3516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003517 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003518 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003524 { ac_try='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 (eval $ac_try) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 ac_cv_prog_lex_yytext_pointer=yes
3538else
3539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003540sed 's/^/| /' conftest.$ac_ext >&5
3541
John Criswell7a73b802003-06-30 21:59:07 +00003542fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003543rm -f conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003545LIBS=$ac_save_LIBS
3546rm -f "${LEX_OUTPUT_ROOT}.c"
3547
3548fi
3549echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3550echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3551if test $ac_cv_prog_lex_yytext_pointer = yes; then
3552
3553cat >>confdefs.h <<\_ACEOF
3554#define YYTEXT_POINTER 1
3555_ACEOF
3556
3557fi
3558
3559fi
3560
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3563echo "${ECHO_T}$ac_cv_has_flex" >&6
3564if test "$LEX" != "flex"; then
3565 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3566echo "$as_me: error: flex not found but required" >&2;}
3567 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003568else
3569 FLEX=flex
3570
John Criswell7a73b802003-06-30 21:59:07 +00003571fi
3572
3573echo "$as_me:$LINENO: checking " >&5
3574echo $ECHO_N "checking ... $ECHO_C" >&6
3575if test "${ac_cv_has_bison+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 for ac_prog in 'bison -y' byacc
3579do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
3582echo "$as_me:$LINENO: checking for $ac_word" >&5
3583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584if test "${ac_cv_prog_YACC+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587 if test -n "$YACC"; then
3588 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_YACC="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601done
3602done
3603
3604fi
3605fi
3606YACC=$ac_cv_prog_YACC
3607if test -n "$YACC"; then
3608 echo "$as_me:$LINENO: result: $YACC" >&5
3609echo "${ECHO_T}$YACC" >&6
3610else
3611 echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613fi
3614
3615 test -n "$YACC" && break
3616done
3617test -n "$YACC" || YACC="yacc"
3618
3619
3620fi
3621echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3622echo "${ECHO_T}$ac_cv_has_bison" >&6
3623if test "$YACC" != "bison -y"; then
3624 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3625echo "$as_me: error: bison not found but required" >&2;}
3626 { (exit 1); exit 1; }; }
3627else
Brian Gaeke12810632004-01-13 06:52:10 +00003628 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003629
3630fi
3631
John Criswell7a73b802003-06-30 21:59:07 +00003632# Check whether --enable-shared or --disable-shared was given.
3633if test "${enable_shared+set}" = set; then
3634 enableval="$enable_shared"
3635 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003636 case $enableval in
3637 yes) enable_shared=yes ;;
3638 no) enable_shared=no ;;
3639 *)
3640 enable_shared=no
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3644 IFS="$lt_save_ifs"
3645 if test "X$pkg" = "X$p"; then
3646 enable_shared=yes
3647 fi
3648 done
3649 IFS="$lt_save_ifs"
3650 ;;
3651 esac
John Criswell7a73b802003-06-30 21:59:07 +00003652else
3653 enable_shared=yes
3654fi;
John Criswell47fdd832003-07-14 16:52:07 +00003655
John Criswell7a73b802003-06-30 21:59:07 +00003656# Check whether --enable-static or --disable-static was given.
3657if test "${enable_static+set}" = set; then
3658 enableval="$enable_static"
3659 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003660 case $enableval in
3661 yes) enable_static=yes ;;
3662 no) enable_static=no ;;
3663 *)
3664 enable_static=no
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3668 IFS="$lt_save_ifs"
3669 if test "X$pkg" = "X$p"; then
3670 enable_static=yes
3671 fi
3672 done
3673 IFS="$lt_save_ifs"
3674 ;;
3675 esac
John Criswell7a73b802003-06-30 21:59:07 +00003676else
3677 enable_static=yes
3678fi;
John Criswell47fdd832003-07-14 16:52:07 +00003679
John Criswell7a73b802003-06-30 21:59:07 +00003680# Check whether --enable-fast-install or --disable-fast-install was given.
3681if test "${enable_fast_install+set}" = set; then
3682 enableval="$enable_fast_install"
3683 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003684 case $enableval in
3685 yes) enable_fast_install=yes ;;
3686 no) enable_fast_install=no ;;
3687 *)
3688 enable_fast_install=no
3689 # Look at the argument we got. We use all the common list separators.
3690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691 for pkg in $enableval; do
3692 IFS="$lt_save_ifs"
3693 if test "X$pkg" = "X$p"; then
3694 enable_fast_install=yes
3695 fi
3696 done
3697 IFS="$lt_save_ifs"
3698 ;;
3699 esac
John Criswell7a73b802003-06-30 21:59:07 +00003700else
3701 enable_fast_install=yes
3702fi;
John Criswell47fdd832003-07-14 16:52:07 +00003703
3704echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3705echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3706if test "${lt_cv_path_SED+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709 # Loop through the user's path and test for sed and gsed.
3710# Then use that list of sed's as ones to test for truncation.
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for lt_ac_prog in sed gsed; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3719 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3720 fi
3721 done
3722 done
3723done
3724lt_ac_max=0
3725lt_ac_count=0
3726# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3727# along with /bin/sed that truncates output.
3728for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3729 test ! -f $lt_ac_sed && break
3730 cat /dev/null > conftest.in
3731 lt_ac_count=0
3732 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3733 # Check for GNU sed and select it if it is found.
3734 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3735 lt_cv_path_SED=$lt_ac_sed
3736 break
3737 fi
3738 while true; do
3739 cat conftest.in conftest.in >conftest.tmp
3740 mv conftest.tmp conftest.in
3741 cp conftest.in conftest.nl
3742 echo >>conftest.nl
3743 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3744 cmp -s conftest.out conftest.nl || break
3745 # 10000 chars as input seems more than enough
3746 test $lt_ac_count -gt 10 && break
3747 lt_ac_count=`expr $lt_ac_count + 1`
3748 if test $lt_ac_count -gt $lt_ac_max; then
3749 lt_ac_max=$lt_ac_count
3750 lt_cv_path_SED=$lt_ac_sed
3751 fi
3752 done
3753done
John Criswell47fdd832003-07-14 16:52:07 +00003754
John Criswell7a73b802003-06-30 21:59:07 +00003755fi
3756
Reid Spencer2706f8c2004-09-19 23:53:36 +00003757SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00003758echo "$as_me:$LINENO: result: $SED" >&5
3759echo "${ECHO_T}$SED" >&6
3760
3761echo "$as_me:$LINENO: checking for egrep" >&5
3762echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3763if test "${ac_cv_prog_egrep+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3767 then ac_cv_prog_egrep='grep -E'
3768 else ac_cv_prog_egrep='egrep'
3769 fi
3770fi
3771echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3772echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3773 EGREP=$ac_cv_prog_egrep
3774
3775
John Criswell7a73b802003-06-30 21:59:07 +00003776
3777# Check whether --with-gnu-ld or --without-gnu-ld was given.
3778if test "${with_gnu_ld+set}" = set; then
3779 withval="$with_gnu_ld"
3780 test "$withval" = no || with_gnu_ld=yes
3781else
3782 with_gnu_ld=no
3783fi;
3784ac_prog=ld
3785if test "$GCC" = yes; then
3786 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003787 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3788echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003789 case $host in
3790 *-*-mingw*)
3791 # gcc leaves a trailing carriage return which upsets mingw
3792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3793 *)
3794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3795 esac
3796 case $ac_prog in
3797 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003798 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003799 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003800 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003801 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003802 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003803 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003804 done
3805 test -z "$LD" && LD="$ac_prog"
3806 ;;
3807 "")
3808 # If it fails, then pretend we aren't using GCC.
3809 ac_prog=ld
3810 ;;
3811 *)
3812 # If it is relative, then search for the first ld in PATH.
3813 with_gnu_ld=unknown
3814 ;;
3815 esac
3816elif test "$with_gnu_ld" = yes; then
3817 echo "$as_me:$LINENO: checking for GNU ld" >&5
3818echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3819else
3820 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3821echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3822fi
3823if test "${lt_cv_path_LD+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003828 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003829 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003830 test -z "$ac_dir" && ac_dir=.
3831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3832 lt_cv_path_LD="$ac_dir/$ac_prog"
3833 # Check to see if the program is GNU ld. I'd rather use --version,
3834 # but apparently some GNU ld's only accept -v.
3835 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003836 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3837 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003838 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003839 ;;
3840 *)
John Criswell7a73b802003-06-30 21:59:07 +00003841 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003842 ;;
3843 esac
John Criswell7a73b802003-06-30 21:59:07 +00003844 fi
3845 done
John Criswell47fdd832003-07-14 16:52:07 +00003846 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003847else
3848 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3849fi
3850fi
3851
3852LD="$lt_cv_path_LD"
3853if test -n "$LD"; then
3854 echo "$as_me:$LINENO: result: $LD" >&5
3855echo "${ECHO_T}$LD" >&6
3856else
3857 echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3861echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3862 { (exit 1); exit 1; }; }
3863echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3864echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3865if test "${lt_cv_prog_gnu_ld+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003869case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003870*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003871 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003872 ;;
3873*)
John Criswell7a73b802003-06-30 21:59:07 +00003874 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003875 ;;
3876esac
John Criswell7a73b802003-06-30 21:59:07 +00003877fi
3878echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3879echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3880with_gnu_ld=$lt_cv_prog_gnu_ld
3881
3882
3883echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3884echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3885if test "${lt_cv_ld_reload_flag+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 lt_cv_ld_reload_flag='-r'
3889fi
3890echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3891echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3892reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003893case $reload_flag in
3894"" | " "*) ;;
3895*) reload_flag=" $reload_flag" ;;
3896esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00003897reload_cmds='$LD$reload_flag -o $output$reload_objs'
3898case $host_os in
3899 darwin*)
3900 if test "$GCC" = yes; then
3901 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3902 else
3903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3904 fi
3905 ;;
3906esac
John Criswell7a73b802003-06-30 21:59:07 +00003907
3908echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3909echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3910if test "${lt_cv_path_NM+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913 if test -n "$NM"; then
3914 # Let the user override the test.
3915 lt_cv_path_NM="$NM"
3916else
John Criswell47fdd832003-07-14 16:52:07 +00003917 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003918 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003919 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003920 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003921 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3922 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003923 # Check to see if the nm accepts a BSD-compat flag.
3924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925 # nm: unknown option "B" ignored
3926 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003927 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003929 lt_cv_path_NM="$tmp_nm -B"
3930 break
John Criswell47fdd832003-07-14 16:52:07 +00003931 ;;
3932 *)
3933 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3934 */dev/null*)
3935 lt_cv_path_NM="$tmp_nm -p"
3936 break
3937 ;;
3938 *)
3939 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940 continue # so that we can try to find one that supports BSD flags
3941 ;;
3942 esac
3943 esac
John Criswell7a73b802003-06-30 21:59:07 +00003944 fi
3945 done
John Criswell47fdd832003-07-14 16:52:07 +00003946 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003947 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3948fi
3949fi
John Criswell47fdd832003-07-14 16:52:07 +00003950echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3951echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003952NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003953
3954echo "$as_me:$LINENO: checking whether ln -s works" >&5
3955echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3956LN_S=$as_ln_s
3957if test "$LN_S" = "ln -s"; then
3958 echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6
3960else
3961 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3962echo "${ECHO_T}no, using $LN_S" >&6
3963fi
3964
John Criswell47fdd832003-07-14 16:52:07 +00003965echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3966echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003967if test "${lt_cv_deplibs_check_method+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970 lt_cv_file_magic_cmd='$MAGIC_CMD'
3971lt_cv_file_magic_test_file=
3972lt_cv_deplibs_check_method='unknown'
3973# Need to set the preceding variable on all platforms that support
3974# interlibrary dependencies.
3975# 'none' -- dependencies not supported.
3976# `unknown' -- same as none, but documents that we really don't know.
3977# 'pass_all' -- all dependencies passed with no checks.
3978# 'test_compile' -- check by making test program.
3979# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003980# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003981# If you have `file' or equivalent on your system and you're not sure
3982# whether `pass_all' will *always* work, you probably want this one.
3983
3984case $host_os in
3985aix4* | aix5*)
3986 lt_cv_deplibs_check_method=pass_all
3987 ;;
3988
3989beos*)
3990 lt_cv_deplibs_check_method=pass_all
3991 ;;
3992
Reid Spencer2706f8c2004-09-19 23:53:36 +00003993bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00003994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3995 lt_cv_file_magic_cmd='/usr/bin/file -L'
3996 lt_cv_file_magic_test_file=/shlib/libc.so
3997 ;;
3998
Reid Spencer2706f8c2004-09-19 23:53:36 +00003999cygwin*)
4000 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00004001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004002 lt_cv_file_magic_cmd='func_win32_libid'
4003 ;;
4004
4005mingw* | pw32*)
4006 # Base MSYS/MinGW do not provide the 'file' command needed by
4007 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004010 ;;
4011
4012darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004013 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004014 ;;
4015
Reid Spencer2706f8c2004-09-19 23:53:36 +00004016freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004017 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4018 case $host_cpu in
4019 i*86 )
4020 # Not sure whether the presence of OpenBSD here was a mistake.
4021 # Let's accept both of them until this is cleared up.
4022 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4023 lt_cv_file_magic_cmd=/usr/bin/file
4024 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4025 ;;
4026 esac
4027 else
4028 lt_cv_deplibs_check_method=pass_all
4029 fi
4030 ;;
4031
4032gnu*)
4033 lt_cv_deplibs_check_method=pass_all
4034 ;;
4035
John Criswell47fdd832003-07-14 16:52:07 +00004036hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004037 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004038 case "$host_cpu" in
4039 ia64*)
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4042 ;;
4043 hppa*64*)
4044 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]'
4045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4046 ;;
4047 *)
4048 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4050 ;;
4051 esac
John Criswell7a73b802003-06-30 21:59:07 +00004052 ;;
4053
John Criswell47fdd832003-07-14 16:52:07 +00004054irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004055 case $LD in
4056 *-32|*"-32 ") libmagic=32-bit;;
4057 *-n32|*"-n32 ") libmagic=N32;;
4058 *-64|*"-64 ") libmagic=64-bit;;
4059 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004060 esac
John Criswell7a73b802003-06-30 21:59:07 +00004061 lt_cv_deplibs_check_method=pass_all
4062 ;;
4063
4064# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004065linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004066 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004067 ;;
4068
4069netbsd*)
4070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004072 else
John Criswell47fdd832003-07-14 16:52:07 +00004073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004074 fi
4075 ;;
4076
4077newos6*)
4078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4079 lt_cv_file_magic_cmd=/usr/bin/file
4080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4081 ;;
4082
Reid Spencer2706f8c2004-09-19 23:53:36 +00004083nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004084 lt_cv_deplibs_check_method=unknown
4085 ;;
4086
John Criswell7a73b802003-06-30 21:59:07 +00004087openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004088 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 +00004089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004090 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004092 fi
4093 ;;
4094
4095osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004096 lt_cv_deplibs_check_method=pass_all
4097 ;;
4098
4099sco3.2v5*)
4100 lt_cv_deplibs_check_method=pass_all
4101 ;;
4102
4103solaris*)
4104 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004105 ;;
4106
John Criswell7a73b802003-06-30 21:59:07 +00004107sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4108 case $host_vendor in
4109 motorola)
4110 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]'
4111 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4112 ;;
4113 ncr)
4114 lt_cv_deplibs_check_method=pass_all
4115 ;;
4116 sequent)
4117 lt_cv_file_magic_cmd='/bin/file'
4118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4119 ;;
4120 sni)
4121 lt_cv_file_magic_cmd='/bin/file'
4122 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4123 lt_cv_file_magic_test_file=/lib/libc.so
4124 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004125 siemens)
4126 lt_cv_deplibs_check_method=pass_all
4127 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004128 esac
4129 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004130
4131sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4132 lt_cv_deplibs_check_method=pass_all
4133 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004134esac
4135
4136fi
4137echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4138echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4139file_magic_cmd=$lt_cv_file_magic_cmd
4140deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004141test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004142
4143
4144
4145
John Criswell47fdd832003-07-14 16:52:07 +00004146# If no C compiler was specified, use CC.
4147LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004148
John Criswell47fdd832003-07-14 16:52:07 +00004149# Allow CC to be a program name with arguments.
4150compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004151
John Criswell47fdd832003-07-14 16:52:07 +00004152# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4153if test "${enable_libtool_lock+set}" = set; then
4154 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004155
John Criswell47fdd832003-07-14 16:52:07 +00004156fi;
4157test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004158
John Criswell47fdd832003-07-14 16:52:07 +00004159# Some flags need to be propagated to the compiler or linker for good
4160# libtool support.
4161case $host in
4162ia64-*-hpux*)
4163 # Find out which ABI we are using.
4164 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004170 case `/usr/bin/file conftest.$ac_objext` in
4171 *ELF-32*)
4172 HPUX_IA64_MODE="32"
4173 ;;
4174 *ELF-64*)
4175 HPUX_IA64_MODE="64"
4176 ;;
4177 esac
4178 fi
4179 rm -rf conftest*
4180 ;;
4181*-*-irix6*)
4182 # Find out which ABI we are using.
John Criswell40468462004-09-24 21:19:06 +00004183 echo '#line 4183 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004188 (exit $ac_status); }; then
4189 if test "$lt_cv_prog_gnu_ld" = yes; then
4190 case `/usr/bin/file conftest.$ac_objext` in
4191 *32-bit*)
4192 LD="${LD-ld} -melf32bsmip"
4193 ;;
4194 *N32*)
4195 LD="${LD-ld} -melf32bmipn32"
4196 ;;
4197 *64-bit*)
4198 LD="${LD-ld} -melf64bmip"
4199 ;;
4200 esac
4201 else
4202 case `/usr/bin/file conftest.$ac_objext` in
4203 *32-bit*)
4204 LD="${LD-ld} -32"
4205 ;;
4206 *N32*)
4207 LD="${LD-ld} -n32"
4208 ;;
4209 *64-bit*)
4210 LD="${LD-ld} -64"
4211 ;;
4212 esac
4213 fi
4214 fi
4215 rm -rf conftest*
4216 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004217
John Criswell47fdd832003-07-14 16:52:07 +00004218x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4219 # Find out which ABI we are using.
4220 echo 'int i;' > conftest.$ac_ext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 case "`/usr/bin/file conftest.o`" in
4227 *32-bit*)
4228 case $host in
4229 x86_64-*linux*)
4230 LD="${LD-ld} -m elf_i386"
4231 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004232 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004233 LD="${LD-ld} -m elf32ppclinux"
4234 ;;
4235 s390x-*linux*)
4236 LD="${LD-ld} -m elf_s390"
4237 ;;
4238 sparc64-*linux*)
4239 LD="${LD-ld} -m elf32_sparc"
4240 ;;
4241 esac
4242 ;;
4243 *64-bit*)
4244 case $host in
4245 x86_64-*linux*)
4246 LD="${LD-ld} -m elf_x86_64"
4247 ;;
4248 ppc*-*linux*|powerpc*-*linux*)
4249 LD="${LD-ld} -m elf64ppc"
4250 ;;
4251 s390*-*linux*)
4252 LD="${LD-ld} -m elf64_s390"
4253 ;;
4254 sparc*-*linux*)
4255 LD="${LD-ld} -m elf64_sparc"
4256 ;;
4257 esac
4258 ;;
4259 esac
4260 fi
4261 rm -rf conftest*
4262 ;;
4263
4264*-*-sco3.2v5*)
4265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4266 SAVE_CFLAGS="$CFLAGS"
4267 CFLAGS="$CFLAGS -belf"
4268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4270if test "${lt_cv_cc_needs_belf+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273 ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004285
John Criswell47fdd832003-07-14 16:52:07 +00004286_ACEOF
4287rm -f conftest.$ac_objext conftest$ac_exeext
4288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004289 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004310else
John Criswell47fdd832003-07-14 16:52:07 +00004311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004312sed 's/^/| /' conftest.$ac_ext >&5
4313
John Criswell47fdd832003-07-14 16:52:07 +00004314lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004316rm -f conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004318 ac_ext=c
4319ac_cpp='$CPP $CPPFLAGS'
4320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
John Criswell7a73b802003-06-30 21:59:07 +00004324fi
John Criswell47fdd832003-07-14 16:52:07 +00004325echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4326echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4329 CFLAGS="$SAVE_CFLAGS"
4330 fi
4331 ;;
4332
4333esac
4334
4335need_locks="$enable_libtool_lock"
4336
John Criswell7a73b802003-06-30 21:59:07 +00004337
4338
4339echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4340echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4341if test "${ac_cv_header_stdc+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004345/* confdefs.h. */
4346_ACEOF
4347cat confdefs.h >>conftest.$ac_ext
4348cat >>conftest.$ac_ext <<_ACEOF
4349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004350#include <stdlib.h>
4351#include <stdarg.h>
4352#include <string.h>
4353#include <float.h>
4354
John Criswell0c38eaf2003-09-10 15:17:25 +00004355int
4356main ()
4357{
4358
4359 ;
4360 return 0;
4361}
John Criswell7a73b802003-06-30 21:59:07 +00004362_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004363rm -f conftest.$ac_objext
4364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004365 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004371 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004385 ac_cv_header_stdc=yes
4386else
4387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004391fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004393
4394if test $ac_cv_header_stdc = yes; then
4395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004397/* confdefs.h. */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004402#include <string.h>
4403
4404_ACEOF
4405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004406 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004407 :
4408else
4409 ac_cv_header_stdc=no
4410fi
4411rm -f conftest*
4412
4413fi
4414
4415if test $ac_cv_header_stdc = yes; then
4416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004418/* confdefs.h. */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
4422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004423#include <stdlib.h>
4424
4425_ACEOF
4426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004427 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004428 :
4429else
4430 ac_cv_header_stdc=no
4431fi
4432rm -f conftest*
4433
4434fi
4435
4436if test $ac_cv_header_stdc = yes; then
4437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4438 if test "$cross_compiling" = yes; then
4439 :
4440else
4441 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004447#include <ctype.h>
4448#if ((' ' & 0x0FF) == 0x020)
4449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004452# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004453 (('a' <= (c) && (c) <= 'i') \
4454 || ('j' <= (c) && (c) <= 'r') \
4455 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457#endif
4458
4459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4460int
4461main ()
4462{
4463 int i;
4464 for (i = 0; i < 256; i++)
4465 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004466 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004467 exit(2);
4468 exit (0);
4469}
4470_ACEOF
4471rm -f conftest$ac_exeext
4472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4473 (eval $ac_link) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 (eval $ac_try) 2>&5
4479 ac_status=$?
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 :
4483else
4484 echo "$as_me: program exited with status $ac_status" >&5
4485echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004486sed 's/^/| /' conftest.$ac_ext >&5
4487
John Criswell7a73b802003-06-30 21:59:07 +00004488( exit $ac_status )
4489ac_cv_header_stdc=no
4490fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004492fi
4493fi
4494fi
4495echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4496echo "${ECHO_T}$ac_cv_header_stdc" >&6
4497if test $ac_cv_header_stdc = yes; then
4498
4499cat >>confdefs.h <<\_ACEOF
4500#define STDC_HEADERS 1
4501_ACEOF
4502
4503fi
4504
4505# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004516 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004517do
4518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519echo "$as_me:$LINENO: checking for $ac_header" >&5
4520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004530$ac_includes_default
4531
4532#include <$ac_header>
4533_ACEOF
4534rm -f conftest.$ac_objext
4535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004536 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004543 { ac_try='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 eval "$as_ac_Header=yes"
4557else
4558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004559sed 's/^/| /' conftest.$ac_ext >&5
4560
John Criswell7a73b802003-06-30 21:59:07 +00004561eval "$as_ac_Header=no"
4562fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004564fi
4565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4567if test `eval echo '${'$as_ac_Header'}'` = yes; then
4568 cat >>confdefs.h <<_ACEOF
4569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570_ACEOF
4571
4572fi
4573
4574done
4575
4576
4577
4578for ac_header in dlfcn.h
4579do
4580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004581if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004586fi
4587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004589else
Brian Gaeke0a621332004-09-08 20:38:05 +00004590 # Is the header compilable?
4591echo "$as_me:$LINENO: checking $ac_header usability" >&5
4592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4593cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004594/* confdefs.h. */
4595_ACEOF
4596cat confdefs.h >>conftest.$ac_ext
4597cat >>conftest.$ac_ext <<_ACEOF
4598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004599$ac_includes_default
4600#include <$ac_header>
4601_ACEOF
4602rm -f conftest.$ac_objext
4603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004604 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004605 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004624 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004625else
4626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004627sed 's/^/| /' conftest.$ac_ext >&5
4628
Brian Gaeke0a621332004-09-08 20:38:05 +00004629ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004630fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633echo "${ECHO_T}$ac_header_compiler" >&6
4634
4635# Is the header present?
4636echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4638cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
4644#include <$ac_header>
4645_ACEOF
4646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } >/dev/null; then
4654 if test -s conftest.err; then
4655 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00004657 else
4658 ac_cpp_err=
4659 fi
4660else
4661 ac_cpp_err=yes
4662fi
4663if test -z "$ac_cpp_err"; then
4664 ac_header_preproc=yes
4665else
4666 echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 ac_header_preproc=no
4670fi
4671rm -f conftest.err conftest.$ac_ext
4672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673echo "${ECHO_T}$ac_header_preproc" >&6
4674
4675# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4677 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00004678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00004683 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004684 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00004685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004697 (
4698 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00004699## ----------------------------------- ##
4700## Report this to llvmbugs@cs.uiuc.edu ##
4701## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00004702_ASBOX
4703 ) |
4704 sed "s/^/$as_me: WARNING: /" >&2
4705 ;;
4706esac
4707echo "$as_me:$LINENO: checking for $ac_header" >&5
4708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004712 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004713fi
4714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004716
4717fi
John Criswell7a73b802003-06-30 21:59:07 +00004718if test `eval echo '${'$as_ac_Header'}'` = yes; then
4719 cat >>confdefs.h <<_ACEOF
4720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721_ACEOF
4722
4723fi
4724
4725done
4726
Reid Spencer2706f8c2004-09-19 23:53:36 +00004727
4728
4729if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4730 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4731 (test "X$CXX" != "Xg++"))) ; then
4732 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00004733ac_cpp='$CXXCPP $CPPFLAGS'
4734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4737echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4738echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4739if test -z "$CXXCPP"; then
4740 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742else
John Criswell47fdd832003-07-14 16:52:07 +00004743 # Double quotes because CXXCPP needs to be expanded
4744 for CXXCPP in "$CXX -E" "/lib/cpp"
4745 do
4746 ac_preproc_ok=false
4747for ac_cxx_preproc_warn_flag in '' yes
4748do
4749 # Use a header file that comes with gcc, so configuring glibc
4750 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004753 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004756/* confdefs.h. */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h. */
4761#ifdef __STDC__
4762# include <limits.h>
4763#else
4764# include <assert.h>
4765#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004766 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004767_ACEOF
4768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004771 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004778 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004779 else
John Criswell47fdd832003-07-14 16:52:07 +00004780 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004781 fi
John Criswell47fdd832003-07-14 16:52:07 +00004782else
4783 ac_cpp_err=yes
4784fi
4785if test -z "$ac_cpp_err"; then
4786 :
4787else
4788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004789sed 's/^/| /' conftest.$ac_ext >&5
4790
John Criswell47fdd832003-07-14 16:52:07 +00004791 # Broken: fails on valid input.
4792continue
4793fi
4794rm -f conftest.err conftest.$ac_ext
4795
4796 # OK, works on sane cases. Now check whether non-existent headers
4797 # can be detected and how.
4798 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004799/* confdefs.h. */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004804#include <ac_nonexistent.h>
4805_ACEOF
4806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004809 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null; then
4814 if test -s conftest.err; then
4815 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004817 else
4818 ac_cpp_err=
4819 fi
4820else
4821 ac_cpp_err=yes
4822fi
4823if test -z "$ac_cpp_err"; then
4824 # Broken: success on invalid input.
4825continue
4826else
4827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004828sed 's/^/| /' conftest.$ac_ext >&5
4829
John Criswell47fdd832003-07-14 16:52:07 +00004830 # Passes both tests.
4831ac_preproc_ok=:
4832break
4833fi
4834rm -f conftest.err conftest.$ac_ext
4835
4836done
4837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838rm -f conftest.err conftest.$ac_ext
4839if $ac_preproc_ok; then
4840 break
John Criswell7a73b802003-06-30 21:59:07 +00004841fi
4842
John Criswell47fdd832003-07-14 16:52:07 +00004843 done
4844 ac_cv_prog_CXXCPP=$CXXCPP
4845
4846fi
4847 CXXCPP=$ac_cv_prog_CXXCPP
4848else
4849 ac_cv_prog_CXXCPP=$CXXCPP
4850fi
4851echo "$as_me:$LINENO: result: $CXXCPP" >&5
4852echo "${ECHO_T}$CXXCPP" >&6
4853ac_preproc_ok=false
4854for ac_cxx_preproc_warn_flag in '' yes
4855do
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004863/* confdefs.h. */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h. */
4868#ifdef __STDC__
4869# include <limits.h>
4870#else
4871# include <assert.h>
4872#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004873 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004874_ACEOF
4875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004878 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null; then
4883 if test -s conftest.err; then
4884 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004886 else
4887 ac_cpp_err=
4888 fi
4889else
4890 ac_cpp_err=yes
4891fi
4892if test -z "$ac_cpp_err"; then
4893 :
4894else
4895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004896sed 's/^/| /' conftest.$ac_ext >&5
4897
John Criswell47fdd832003-07-14 16:52:07 +00004898 # Broken: fails on valid input.
4899continue
4900fi
4901rm -f conftest.err conftest.$ac_ext
4902
4903 # OK, works on sane cases. Now check whether non-existent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004911#include <ac_nonexistent.h>
4912_ACEOF
4913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004916 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004923 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004924 else
4925 ac_cpp_err=
4926 fi
4927else
4928 ac_cpp_err=yes
4929fi
4930if test -z "$ac_cpp_err"; then
4931 # Broken: success on invalid input.
4932continue
4933else
4934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004935sed 's/^/| /' conftest.$ac_ext >&5
4936
John Criswell47fdd832003-07-14 16:52:07 +00004937 # Passes both tests.
4938ac_preproc_ok=:
4939break
4940fi
4941rm -f conftest.err conftest.$ac_ext
4942
4943done
4944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945rm -f conftest.err conftest.$ac_ext
4946if $ac_preproc_ok; then
4947 :
4948else
John Criswell0c38eaf2003-09-10 15:17:25 +00004949 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4950See \`config.log' for more details." >&5
4951echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4952See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004953 { (exit 1); exit 1; }; }
4954fi
4955
4956ac_ext=cc
4957ac_cpp='$CXXCPP $CPPFLAGS'
4958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961
Reid Spencer2706f8c2004-09-19 23:53:36 +00004962fi
4963
John Criswell47fdd832003-07-14 16:52:07 +00004964
4965ac_ext=f
4966ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4967ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4969if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004970 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 +00004971 do
4972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4974echo "$as_me:$LINENO: checking for $ac_word" >&5
4975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4976if test "${ac_cv_prog_F77+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978else
4979 if test -n "$F77"; then
4980 ac_cv_prog_F77="$F77" # Let the user override the test.
4981else
4982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983for as_dir in $PATH
4984do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993done
4994done
4995
4996fi
4997fi
4998F77=$ac_cv_prog_F77
4999if test -n "$F77"; then
5000 echo "$as_me:$LINENO: result: $F77" >&5
5001echo "${ECHO_T}$F77" >&6
5002else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005fi
5006
5007 test -n "$F77" && break
5008 done
5009fi
5010if test -z "$F77"; then
5011 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005012 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 +00005013do
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015set dummy $ac_prog; ac_word=$2
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021 if test -n "$ac_ct_F77"; then
5022 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_F77="$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035done
5036done
5037
5038fi
5039fi
5040ac_ct_F77=$ac_cv_prog_ac_ct_F77
5041if test -n "$ac_ct_F77"; then
5042 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5043echo "${ECHO_T}$ac_ct_F77" >&6
5044else
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047fi
5048
5049 test -n "$ac_ct_F77" && break
5050done
5051
5052 F77=$ac_ct_F77
5053fi
5054
5055
5056# Provide some information about the compiler.
Reid Spencer177dbe22004-10-13 01:01:03 +00005057echo "$as_me:5057:" \
John Criswell47fdd832003-07-14 16:52:07 +00005058 "checking for Fortran 77 compiler version" >&5
5059ac_compiler=`set X $ac_compile; echo $2`
5060{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5061 (eval $ac_compiler --version </dev/null >&5) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }
5065{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5066 (eval $ac_compiler -v </dev/null >&5) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }
5070{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5071 (eval $ac_compiler -V </dev/null >&5) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005075rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005076
5077# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005078# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005079ac_save_ext=$ac_ext
5080ac_ext=F
5081echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5082echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5083if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 program main
5088#ifndef __GNUC__
5089 choke me
5090#endif
5091
5092 end
5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005096 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005103 { ac_try='test -z "$ac_f77_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_compiler_gnu=yes
5117else
5118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005119sed 's/^/| /' conftest.$ac_ext >&5
5120
John Criswell47fdd832003-07-14 16:52:07 +00005121ac_compiler_gnu=no
5122fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005124ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5125
5126fi
5127echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5128echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5129ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005130ac_test_FFLAGS=${FFLAGS+set}
5131ac_save_FFLAGS=$FFLAGS
5132FFLAGS=
5133echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5134echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5135if test "${ac_cv_prog_f77_g+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 FFLAGS=-g
5139cat >conftest.$ac_ext <<_ACEOF
5140 program main
5141
5142 end
5143_ACEOF
5144rm -f conftest.$ac_objext
5145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005146 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005153 { ac_try='test -z "$ac_f77_werror_flag"
5154 || test ! -s conftest.err'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; } &&
5160 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 (eval $ac_try) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_prog_f77_g=yes
5167else
5168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005169sed 's/^/| /' conftest.$ac_ext >&5
5170
John Criswell47fdd832003-07-14 16:52:07 +00005171ac_cv_prog_f77_g=no
5172fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005174
5175fi
5176echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5177echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5178if test "$ac_test_FFLAGS" = set; then
5179 FFLAGS=$ac_save_FFLAGS
5180elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005181 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005182 FFLAGS="-g -O2"
5183 else
5184 FFLAGS="-g"
5185 fi
5186else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005187 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005188 FFLAGS="-O2"
5189 else
5190 FFLAGS=
5191 fi
5192fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005193
5194G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005195ac_ext=c
5196ac_cpp='$CPP $CPPFLAGS'
5197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
5201
5202
5203# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5204
5205# find the maximum length of command line arguments
5206echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5207echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5208if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00005212 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00005213
5214 case $build_os in
5215 msdosdjgpp*)
5216 # On DJGPP, this test can blow up pretty badly due to problems in libc
5217 # (any single argument exceeding 2000 bytes causes a buffer overrun
5218 # during glob expansion). Even if it were fixed, the result of this
5219 # check would be larger than it should be.
5220 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5221 ;;
5222
5223 gnu*)
5224 # Under GNU Hurd, this test is not required because there is
5225 # no limit to the length of command line arguments.
5226 # Libtool will interpret -1 as no limit whatsoever
5227 lt_cv_sys_max_cmd_len=-1;
5228 ;;
5229
5230 cygwin* | mingw*)
5231 # On Win9x/ME, this test blows up -- it succeeds, but takes
5232 # about 5 minutes as the teststring grows exponentially.
5233 # Worse, since 9x/ME are not pre-emptively multitasking,
5234 # you end up with a "frozen" computer, even though with patience
5235 # the test eventually succeeds (with a max line length of 256k).
5236 # Instead, let's just punt: use the minimum linelength reported by
5237 # all of the supported platforms: 8192 (on NT/2K/XP).
5238 lt_cv_sys_max_cmd_len=8192;
5239 ;;
5240
Reid Spencer2706f8c2004-09-19 23:53:36 +00005241 amigaos*)
5242 # On AmigaOS with pdksh, this test takes hours, literally.
5243 # So we just punt and use a minimum line length of 8192.
5244 lt_cv_sys_max_cmd_len=8192;
5245 ;;
5246
5247 netbsd* | freebsd* | openbsd* | darwin* )
5248 # This has been around since 386BSD, at least. Likely further.
5249 if test -x /sbin/sysctl; then
5250 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5251 elif test -x /usr/sbin/sysctl; then
5252 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5253 else
5254 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5255 fi
5256 # And add a safety zone
5257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5258 ;;
5259
John Criswell47fdd832003-07-14 16:52:07 +00005260 *)
5261 # If test is not a shell built-in, we'll probably end up computing a
5262 # maximum length that is only half of the actual maximum length, but
5263 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00005264 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5265 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5266 = "XX$teststring") >/dev/null 2>&1 &&
5267 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00005268 lt_cv_sys_max_cmd_len=$new_result &&
5269 test $i != 17 # 1/2 MB should be enough
5270 do
5271 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00005272 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00005273 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00005274 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00005275 # Add a significant safety factor because C++ compilers can tack on massive
5276 # amounts of additional arguments before passing them to the linker.
5277 # It appears as though 1/2 is a usable value.
5278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5279 ;;
5280 esac
5281
5282fi
5283
5284if test -n $lt_cv_sys_max_cmd_len ; then
5285 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5286echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5287else
5288 echo "$as_me:$LINENO: result: none" >&5
5289echo "${ECHO_T}none" >&6
5290fi
5291
5292
5293
5294
5295# Check for command to grab the raw symbol name followed by C symbol from nm.
5296echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5297echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5298if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301
5302# These are sane defaults that work on at least a few old systems.
5303# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5304
5305# Character class describing NM global symbol codes.
5306symcode='[BCDEGRST]'
5307
5308# Regexp to match symbols that can be accessed directly from C.
5309sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5310
5311# Transform the above into a raw symbol and a C symbol.
5312symxfrm='\1 \2\3 \3'
5313
5314# Transform an extracted symbol line into a proper C declaration
5315lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5316
5317# Transform an extracted symbol line into symbol name and symbol address
5318lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5319
5320# Define system-specific variables.
5321case $host_os in
5322aix*)
5323 symcode='[BCDT]'
5324 ;;
5325cygwin* | mingw* | pw32*)
5326 symcode='[ABCDGISTW]'
5327 ;;
5328hpux*) # Its linker distinguishes data from code symbols
5329 if test "$host_cpu" = ia64; then
5330 symcode='[ABCDEGRST]'
5331 fi
5332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5334 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005335linux*)
5336 if test "$host_cpu" = ia64; then
5337 symcode='[ABCDGIRSTW]'
5338 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5339 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'"
5340 fi
5341 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005342irix* | nonstopux*)
5343 symcode='[BCDEGRST]'
5344 ;;
5345osf*)
5346 symcode='[BCDEGQRST]'
5347 ;;
5348solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005349 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00005350 ;;
5351sysv4)
5352 symcode='[DFNSTU]'
5353 ;;
5354esac
5355
5356# Handle CRLF in mingw tool chain
5357opt_cr=
5358case $build_os in
5359mingw*)
5360 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361 ;;
5362esac
5363
5364# If we're using GNU nm, then use its standard symbol codes.
5365case `$NM -V 2>&1` in
5366*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005367 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00005368esac
5369
5370# Try without a prefix undercore, then with it.
5371for ac_symprfx in "" "_"; do
5372
5373 # Write the raw and C identifiers.
5374 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5375
5376 # Check to see that the pipe works correctly.
5377 pipe_works=no
5378
5379 rm -f conftest*
5380 cat > conftest.$ac_ext <<EOF
5381#ifdef __cplusplus
5382extern "C" {
5383#endif
5384char nm_test_var;
5385void nm_test_func(){}
5386#ifdef __cplusplus
5387}
5388#endif
5389int main(){nm_test_var='a';nm_test_func();return(0);}
5390EOF
5391
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; then
5397 # Now try to grab the symbols.
5398 nlist=conftest.nm
5399 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5400 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && test -s "$nlist"; then
5404 # Try sorting and uniquifying the output.
5405 if sort "$nlist" | uniq > "$nlist"T; then
5406 mv -f "$nlist"T "$nlist"
5407 else
5408 rm -f "$nlist"T
5409 fi
5410
5411 # Make sure that we snagged all the symbols we need.
5412 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5413 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5414 cat <<EOF > conftest.$ac_ext
5415#ifdef __cplusplus
5416extern "C" {
5417#endif
5418
5419EOF
5420 # Now generate the symbol file.
5421 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5422
5423 cat <<EOF >> conftest.$ac_ext
5424#if defined (__STDC__) && __STDC__
5425# define lt_ptr_t void *
5426#else
5427# define lt_ptr_t char *
5428# define const
5429#endif
5430
5431/* The mapping between symbol names and symbols. */
5432const struct {
5433 const char *name;
5434 lt_ptr_t address;
5435}
5436lt_preloaded_symbols[] =
5437{
5438EOF
5439 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5440 cat <<\EOF >> conftest.$ac_ext
5441 {0, (lt_ptr_t) 0}
5442};
5443
5444#ifdef __cplusplus
5445}
5446#endif
5447EOF
5448 # Now try linking the two files.
5449 mv conftest.$ac_objext conftstm.$ac_objext
5450 lt_save_LIBS="$LIBS"
5451 lt_save_CFLAGS="$CFLAGS"
5452 LIBS="conftstm.$ac_objext"
5453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5459 pipe_works=yes
5460 fi
5461 LIBS="$lt_save_LIBS"
5462 CFLAGS="$lt_save_CFLAGS"
5463 else
5464 echo "cannot find nm_test_func in $nlist" >&5
5465 fi
5466 else
5467 echo "cannot find nm_test_var in $nlist" >&5
5468 fi
5469 else
5470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5471 fi
5472 else
5473 echo "$progname: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5475 fi
5476 rm -f conftest* conftst*
5477
5478 # Do not use the global_symbol_pipe unless it works.
5479 if test "$pipe_works" = yes; then
5480 break
5481 else
5482 lt_cv_sys_global_symbol_pipe=
5483 fi
5484done
5485
5486fi
5487
5488if test -z "$lt_cv_sys_global_symbol_pipe"; then
5489 lt_cv_sys_global_symbol_to_cdecl=
5490fi
5491if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5492 echo "$as_me:$LINENO: result: failed" >&5
5493echo "${ECHO_T}failed" >&6
5494else
5495 echo "$as_me:$LINENO: result: ok" >&5
5496echo "${ECHO_T}ok" >&6
5497fi
5498
5499echo "$as_me:$LINENO: checking for objdir" >&5
5500echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5501if test "${lt_cv_objdir+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 rm -f .libs 2>/dev/null
5505mkdir .libs 2>/dev/null
5506if test -d .libs; then
5507 lt_cv_objdir=.libs
5508else
5509 # MS-DOS does not allow filenames that begin with a dot.
5510 lt_cv_objdir=_libs
5511fi
5512rmdir .libs 2>/dev/null
5513fi
5514echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5515echo "${ECHO_T}$lt_cv_objdir" >&6
5516objdir=$lt_cv_objdir
5517
5518
5519
5520
5521
5522case $host_os in
5523aix3*)
5524 # AIX sometimes has problems with the GCC collect2 program. For some
5525 # reason, if we set the COLLECT_NAMES environment variable, the problems
5526 # vanish in a puff of smoke.
5527 if test "X${COLLECT_NAMES+set}" != Xset; then
5528 COLLECT_NAMES=
5529 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005530 fi
5531 ;;
5532esac
5533
John Criswell47fdd832003-07-14 16:52:07 +00005534# Sed substitution that helps us do robust quoting. It backslashifies
5535# metacharacters that are still active within double-quoted strings.
5536Xsed='sed -e s/^X//'
5537sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5538
5539# Same as above, but do not quote variable references.
5540double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5541
5542# Sed substitution to delay expansion of an escaped shell variable in a
5543# double_quote_subst'ed string.
5544delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5545
5546# Sed substitution to avoid accidental globbing in evaled expressions
5547no_glob_subst='s/\*/\\\*/g'
5548
5549# Constants:
5550rm="rm -f"
5551
5552# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00005553default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005554can_build_shared=yes
5555
5556# All known linkers require a `.a' archive for static linking (except M$VC,
5557# which needs '.lib').
5558libext=a
5559ltmain="$ac_aux_dir/ltmain.sh"
5560ofile="$default_ofile"
5561with_gnu_ld="$lt_cv_prog_gnu_ld"
5562
5563if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5565set dummy ${ac_tool_prefix}ar; ac_word=$2
5566echo "$as_me:$LINENO: checking for $ac_word" >&5
5567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568if test "${ac_cv_prog_AR+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571 if test -n "$AR"; then
5572 ac_cv_prog_AR="$AR" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_AR="${ac_tool_prefix}ar"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585done
5586done
5587
5588fi
5589fi
5590AR=$ac_cv_prog_AR
5591if test -n "$AR"; then
5592 echo "$as_me:$LINENO: result: $AR" >&5
5593echo "${ECHO_T}$AR" >&6
5594else
5595 echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597fi
5598
5599fi
5600if test -z "$ac_cv_prog_AR"; then
5601 ac_ct_AR=$AR
5602 # Extract the first word of "ar", so it can be a program name with args.
5603set dummy ar; ac_word=$2
5604echo "$as_me:$LINENO: checking for $ac_word" >&5
5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 if test -n "$ac_ct_AR"; then
5610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_ac_ct_AR="ar"
5620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624done
5625
5626 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5627fi
5628fi
5629ac_ct_AR=$ac_cv_prog_ac_ct_AR
5630if test -n "$ac_ct_AR"; then
5631 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5632echo "${ECHO_T}$ac_ct_AR" >&6
5633else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636fi
5637
5638 AR=$ac_ct_AR
5639else
5640 AR="$ac_cv_prog_AR"
5641fi
5642
John Criswell7a73b802003-06-30 21:59:07 +00005643if test -n "$ac_tool_prefix"; then
5644 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5645set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5646echo "$as_me:$LINENO: checking for $ac_word" >&5
5647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648if test "${ac_cv_prog_RANLIB+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651 if test -n "$RANLIB"; then
5652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666done
5667
5668fi
5669fi
5670RANLIB=$ac_cv_prog_RANLIB
5671if test -n "$RANLIB"; then
5672 echo "$as_me:$LINENO: result: $RANLIB" >&5
5673echo "${ECHO_T}$RANLIB" >&6
5674else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677fi
5678
5679fi
5680if test -z "$ac_cv_prog_RANLIB"; then
5681 ac_ct_RANLIB=$RANLIB
5682 # Extract the first word of "ranlib", so it can be a program name with args.
5683set dummy ranlib; ac_word=$2
5684echo "$as_me:$LINENO: checking for $ac_word" >&5
5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689 if test -n "$ac_ct_RANLIB"; then
5690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_ac_ct_RANLIB="ranlib"
5700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5702 fi
5703done
5704done
5705
5706 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5707fi
5708fi
5709ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5710if test -n "$ac_ct_RANLIB"; then
5711 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5712echo "${ECHO_T}$ac_ct_RANLIB" >&6
5713else
5714 echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718 RANLIB=$ac_ct_RANLIB
5719else
5720 RANLIB="$ac_cv_prog_RANLIB"
5721fi
5722
5723if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}strip; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_STRIP+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731 if test -n "$STRIP"; then
5732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745done
5746done
5747
5748fi
5749fi
5750STRIP=$ac_cv_prog_STRIP
5751if test -n "$STRIP"; then
5752 echo "$as_me:$LINENO: result: $STRIP" >&5
5753echo "${ECHO_T}$STRIP" >&6
5754else
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759fi
5760if test -z "$ac_cv_prog_STRIP"; then
5761 ac_ct_STRIP=$STRIP
5762 # Extract the first word of "strip", so it can be a program name with args.
5763set dummy strip; ac_word=$2
5764echo "$as_me:$LINENO: checking for $ac_word" >&5
5765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769 if test -n "$ac_ct_STRIP"; then
5770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_STRIP="strip"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783done
5784done
5785
5786 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5787fi
5788fi
5789ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5790if test -n "$ac_ct_STRIP"; then
5791 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5792echo "${ECHO_T}$ac_ct_STRIP" >&6
5793else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798 STRIP=$ac_ct_STRIP
5799else
5800 STRIP="$ac_cv_prog_STRIP"
5801fi
5802
5803
John Criswell7a73b802003-06-30 21:59:07 +00005804old_CC="$CC"
5805old_CFLAGS="$CFLAGS"
5806
5807# Set sane defaults for various variables
5808test -z "$AR" && AR=ar
5809test -z "$AR_FLAGS" && AR_FLAGS=cru
5810test -z "$AS" && AS=as
5811test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005812test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005813test -z "$DLLTOOL" && DLLTOOL=dlltool
5814test -z "$LD" && LD=ld
5815test -z "$LN_S" && LN_S="ln -s"
5816test -z "$MAGIC_CMD" && MAGIC_CMD=file
5817test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005818test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005819test -z "$OBJDUMP" && OBJDUMP=objdump
5820test -z "$RANLIB" && RANLIB=:
5821test -z "$STRIP" && STRIP=:
5822test -z "$ac_objext" && ac_objext=o
5823
John Criswell7a73b802003-06-30 21:59:07 +00005824# Determine commands to create old-style static archives.
5825old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5826old_postinstall_cmds='chmod 644 $oldlib'
5827old_postuninstall_cmds=
5828
5829if test -n "$RANLIB"; then
5830 case $host_os in
5831 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +00005832 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005833 ;;
5834 *)
Reid Spencer177dbe22004-10-13 01:01:03 +00005835 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005836 ;;
5837 esac
Reid Spencer177dbe22004-10-13 01:01:03 +00005838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005839fi
5840
Reid Spencer2706f8c2004-09-19 23:53:36 +00005841cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5842
John Criswell47fdd832003-07-14 16:52:07 +00005843# Only perform the check for file, if the check method requires it
5844case $deplibs_check_method in
5845file_magic*)
5846 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5847 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5848echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5849if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005851else
John Criswell47fdd832003-07-14 16:52:07 +00005852 case $MAGIC_CMD in
5853[\\/*] | ?:[\\/]*)
5854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5855 ;;
5856*)
5857 lt_save_MAGIC_CMD="$MAGIC_CMD"
5858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5860 for ac_dir in $ac_dummy; do
5861 IFS="$lt_save_ifs"
5862 test -z "$ac_dir" && ac_dir=.
5863 if test -f $ac_dir/${ac_tool_prefix}file; then
5864 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5865 if test -n "$file_magic_test_file"; then
5866 case $deplibs_check_method in
5867 "file_magic "*)
5868 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5871 $EGREP "$file_magic_regex" > /dev/null; then
5872 :
5873 else
5874 cat <<EOF 1>&2
5875
5876*** Warning: the command libtool uses to detect shared libraries,
5877*** $file_magic_cmd, produces output that libtool cannot recognize.
5878*** The result is that libtool may fail to recognize shared libraries
5879*** as such. This will affect the creation of libtool libraries that
5880*** depend on shared libraries, but programs linked with such libtool
5881*** libraries will work regardless of this problem. Nevertheless, you
5882*** may want to report the problem to your system manager and/or to
5883*** bug-libtool@gnu.org
5884
5885EOF
5886 fi ;;
5887 esac
5888 fi
5889 break
5890 fi
5891 done
5892 IFS="$lt_save_ifs"
5893 MAGIC_CMD="$lt_save_MAGIC_CMD"
5894 ;;
5895esac
John Criswell7a73b802003-06-30 21:59:07 +00005896fi
John Criswell7a73b802003-06-30 21:59:07 +00005897
John Criswell47fdd832003-07-14 16:52:07 +00005898MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5899if test -n "$MAGIC_CMD"; then
5900 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5901echo "${ECHO_T}$MAGIC_CMD" >&6
5902else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
John Criswell7a73b802003-06-30 21:59:07 +00005906
John Criswell47fdd832003-07-14 16:52:07 +00005907if test -z "$lt_cv_path_MAGIC_CMD"; then
5908 if test -n "$ac_tool_prefix"; then
5909 echo "$as_me:$LINENO: checking for file" >&5
5910echo $ECHO_N "checking for file... $ECHO_C" >&6
5911if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 case $MAGIC_CMD in
5915[\\/*] | ?:[\\/]*)
5916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5917 ;;
5918*)
5919 lt_save_MAGIC_CMD="$MAGIC_CMD"
5920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5922 for ac_dir in $ac_dummy; do
5923 IFS="$lt_save_ifs"
5924 test -z "$ac_dir" && ac_dir=.
5925 if test -f $ac_dir/file; then
5926 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5927 if test -n "$file_magic_test_file"; then
5928 case $deplibs_check_method in
5929 "file_magic "*)
5930 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5933 $EGREP "$file_magic_regex" > /dev/null; then
5934 :
5935 else
5936 cat <<EOF 1>&2
5937
5938*** Warning: the command libtool uses to detect shared libraries,
5939*** $file_magic_cmd, produces output that libtool cannot recognize.
5940*** The result is that libtool may fail to recognize shared libraries
5941*** as such. This will affect the creation of libtool libraries that
5942*** depend on shared libraries, but programs linked with such libtool
5943*** libraries will work regardless of this problem. Nevertheless, you
5944*** may want to report the problem to your system manager and/or to
5945*** bug-libtool@gnu.org
5946
5947EOF
5948 fi ;;
5949 esac
5950 fi
5951 break
5952 fi
5953 done
5954 IFS="$lt_save_ifs"
5955 MAGIC_CMD="$lt_save_MAGIC_CMD"
5956 ;;
5957esac
5958fi
5959
5960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5961if test -n "$MAGIC_CMD"; then
5962 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5963echo "${ECHO_T}$MAGIC_CMD" >&6
5964else
5965 echo "$as_me:$LINENO: result: no" >&5
5966echo "${ECHO_T}no" >&6
5967fi
5968
5969 else
5970 MAGIC_CMD=:
5971 fi
5972fi
5973
5974 fi
5975 ;;
5976esac
5977
5978enable_dlopen=no
5979enable_win32_dll=no
5980
5981# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5982if test "${enable_libtool_lock+set}" = set; then
5983 enableval="$enable_libtool_lock"
5984
5985fi;
5986test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5987
John Criswell7a73b802003-06-30 21:59:07 +00005988
5989# Check whether --with-pic or --without-pic was given.
5990if test "${with_pic+set}" = set; then
5991 withval="$with_pic"
5992 pic_mode="$withval"
5993else
5994 pic_mode=default
5995fi;
5996test -z "$pic_mode" && pic_mode=default
5997
John Criswell47fdd832003-07-14 16:52:07 +00005998# Use C for the default configuration in the libtool script
5999tagname=
6000lt_save_CC="$CC"
6001ac_ext=c
6002ac_cpp='$CPP $CPPFLAGS'
6003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006
6007
6008# Source file extension for C test sources.
6009ac_ext=c
6010
6011# Object file extension for compiled C test sources.
6012objext=o
6013objext=$objext
6014
6015# Code to be used in simple compile tests
6016lt_simple_compile_test_code="int some_variable = 0;\n"
6017
6018# Code to be used in simple link tests
6019lt_simple_link_test_code='int main(){return(0);}\n'
6020
6021
6022# If no C compiler was specified, use CC.
6023LTCC=${LTCC-"$CC"}
6024
6025# Allow CC to be a program name with arguments.
6026compiler=$CC
6027
6028
6029#
6030# Check for any special shared library compilation flags.
6031#
6032lt_prog_cc_shlib=
6033if test "$GCC" = no; then
6034 case $host_os in
6035 sco3.2v5*)
6036 lt_prog_cc_shlib='-belf'
6037 ;;
6038 esac
6039fi
6040if test -n "$lt_prog_cc_shlib"; then
6041 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6042echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6043 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6044 else
6045 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6046echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6047 lt_cv_prog_cc_can_build_shared=no
6048 fi
6049fi
6050
6051
6052#
6053# Check to make sure the static flag actually works.
6054#
6055echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6056echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6057if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
John Criswell47fdd832003-07-14 16:52:07 +00006060 lt_prog_compiler_static_works=no
6061 save_LDFLAGS="$LDFLAGS"
6062 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6063 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6065 # The compiler can only warn and ignore the option if not recognized
6066 # So say no if there are warnings
6067 if test -s conftest.err; then
6068 # Append any errors to the config.log.
6069 cat conftest.err 1>&5
6070 else
6071 lt_prog_compiler_static_works=yes
6072 fi
6073 fi
6074 $rm conftest*
6075 LDFLAGS="$save_LDFLAGS"
6076
6077fi
6078echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6079echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6080
6081if test x"$lt_prog_compiler_static_works" = xyes; then
6082 :
6083else
6084 lt_prog_compiler_static=
6085fi
6086
6087
6088
John Criswell47fdd832003-07-14 16:52:07 +00006089
6090lt_prog_compiler_no_builtin_flag=
6091
6092if test "$GCC" = yes; then
6093 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6094
Reid Spencer2706f8c2004-09-19 23:53:36 +00006095
6096echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006097echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6098if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 lt_cv_prog_compiler_rtti_exceptions=no
6102 ac_outfile=conftest.$ac_objext
6103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6104 lt_compiler_flag="-fno-rtti -fno-exceptions"
6105 # Insert the option either (1) after the last *FLAGS variable, or
6106 # (2) before a word containing "conftest.", or (3) at the end.
6107 # Note that $ac_compile itself does not contain backslashes and begins
6108 # with a dollar sign (not a hyphen), so the echo should work correctly.
6109 # The option is referenced via a variable to avoid confusing sed.
6110 lt_compile=`echo "$ac_compile" | $SED \
6111 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6113 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +00006114 (eval echo "\"\$as_me:6114: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006115 (eval "$lt_compile" 2>conftest.err)
6116 ac_status=$?
6117 cat conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +00006118 echo "$as_me:6118: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006119 if (exit $ac_status) && test -s "$ac_outfile"; then
6120 # The compiler can only warn and ignore the option if not recognized
6121 # So say no if there are warnings
6122 if test ! -s conftest.err; then
6123 lt_cv_prog_compiler_rtti_exceptions=yes
6124 fi
6125 fi
6126 $rm conftest*
6127
6128fi
6129echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6130echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6131
6132if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6133 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6134else
6135 :
6136fi
6137
6138fi
6139
6140lt_prog_compiler_wl=
6141lt_prog_compiler_pic=
6142lt_prog_compiler_static=
6143
6144echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6145echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006146
6147 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006148 lt_prog_compiler_wl='-Wl,'
6149 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006150
6151 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006152 aix*)
6153 # All AIX code is PIC.
6154 if test "$host_cpu" = ia64; then
6155 # AIX 5 now supports IA64 processor
6156 lt_prog_compiler_static='-Bstatic'
6157 fi
John Criswell7a73b802003-06-30 21:59:07 +00006158 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006159
John Criswell7a73b802003-06-30 21:59:07 +00006160 amigaos*)
6161 # FIXME: we need at least 68020 code to build shared libraries, but
6162 # adding the `-m68020' flag to GCC prevents building anything better,
6163 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006164 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006165 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006166
6167 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006168 # PIC is the default for these OSes.
6169 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006170
6171 mingw* | pw32* | os2*)
6172 # This hack is so that the source file can tell whether it is being
6173 # built for inclusion in a dll (and should export symbols for example).
6174 lt_prog_compiler_pic='-DDLL_EXPORT'
6175 ;;
6176
John Criswell7a73b802003-06-30 21:59:07 +00006177 darwin* | rhapsody*)
6178 # PIC is the default on this platform
6179 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006180 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006181 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006182
6183 msdosdjgpp*)
6184 # Just because we use GCC doesn't mean we suddenly get shared libraries
6185 # on systems that don't support them.
6186 lt_prog_compiler_can_build_shared=no
6187 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006188 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006189
John Criswell7a73b802003-06-30 21:59:07 +00006190 sysv4*MP*)
6191 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006192 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006193 fi
6194 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006195
6196 hpux*)
6197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6198 # not for PA HP-UX.
6199 case "$host_cpu" in
6200 hppa*64*|ia64*)
6201 # +Z the default
6202 ;;
6203 *)
6204 lt_prog_compiler_pic='-fPIC'
6205 ;;
6206 esac
6207 ;;
6208
John Criswell7a73b802003-06-30 21:59:07 +00006209 *)
John Criswell47fdd832003-07-14 16:52:07 +00006210 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006211 ;;
6212 esac
6213 else
John Criswell47fdd832003-07-14 16:52:07 +00006214 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006215 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006216 aix*)
6217 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006218 if test "$host_cpu" = ia64; then
6219 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006220 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006221 else
John Criswell47fdd832003-07-14 16:52:07 +00006222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006223 fi
6224 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006225 darwin*)
6226 # PIC is the default on this platform
6227 # Common symbols not allowed in MH_DYLIB files
6228 case "$cc_basename" in
6229 xlc*)
6230 lt_prog_compiler_pic='-qnocommon'
6231 lt_prog_compiler_wl='-Wl,'
6232 ;;
6233 esac
6234 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006235
John Criswell47fdd832003-07-14 16:52:07 +00006236 mingw* | pw32* | os2*)
6237 # This hack is so that the source file can tell whether it is being
6238 # built for inclusion in a dll (and should export symbols for example).
6239 lt_prog_compiler_pic='-DDLL_EXPORT'
6240 ;;
6241
John Criswell7a73b802003-06-30 21:59:07 +00006242 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006243 lt_prog_compiler_wl='-Wl,'
6244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6245 # not for PA HP-UX.
6246 case "$host_cpu" in
6247 hppa*64*|ia64*)
6248 # +Z the default
6249 ;;
6250 *)
6251 lt_prog_compiler_pic='+Z'
6252 ;;
6253 esac
6254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6255 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006256 ;;
6257
John Criswell47fdd832003-07-14 16:52:07 +00006258 irix5* | irix6* | nonstopux*)
6259 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006260 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006261 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006262 ;;
6263
6264 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006265 lt_prog_compiler_pic='-KPIC'
6266 lt_prog_compiler_static='-Bstatic'
6267 ;;
6268
6269 linux*)
6270 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006271 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006272 lt_prog_compiler_wl='-Wl,'
6273 lt_prog_compiler_pic='-KPIC'
6274 lt_prog_compiler_static='-static'
6275 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006276 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006277 lt_prog_compiler_wl='-Wl,'
6278 # All Alpha code is PIC.
6279 lt_prog_compiler_static='-non_shared'
6280 ;;
6281 esac
John Criswell7a73b802003-06-30 21:59:07 +00006282 ;;
6283
6284 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006285 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006286 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006287 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006288 ;;
6289
6290 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006291 lt_prog_compiler_pic='-Kpic'
6292 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006293 ;;
6294
6295 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006296 lt_prog_compiler_wl='-Wl,'
6297 lt_prog_compiler_pic='-KPIC'
6298 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006299 ;;
6300
6301 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006302 lt_prog_compiler_wl='-Qoption ld '
6303 lt_prog_compiler_pic='-PIC'
6304 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006305 ;;
6306
6307 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006308 lt_prog_compiler_wl='-Wl,'
6309 lt_prog_compiler_pic='-KPIC'
6310 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006311 ;;
6312
6313 sysv4*MP*)
6314 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006315 lt_prog_compiler_pic='-Kconform_pic'
6316 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006317 fi
6318 ;;
6319
John Criswell47fdd832003-07-14 16:52:07 +00006320 uts4*)
6321 lt_prog_compiler_pic='-pic'
6322 lt_prog_compiler_static='-Bstatic'
6323 ;;
6324
John Criswell7a73b802003-06-30 21:59:07 +00006325 *)
John Criswell47fdd832003-07-14 16:52:07 +00006326 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006327 ;;
6328 esac
6329 fi
6330
John Criswell47fdd832003-07-14 16:52:07 +00006331echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6332echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006333
John Criswell47fdd832003-07-14 16:52:07 +00006334#
6335# Check to make sure the PIC flag actually works.
6336#
6337if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006338
6339echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006340echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6341if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
John Criswell47fdd832003-07-14 16:52:07 +00006344 lt_prog_compiler_pic_works=no
6345 ac_outfile=conftest.$ac_objext
6346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6348 # Insert the option either (1) after the last *FLAGS variable, or
6349 # (2) before a word containing "conftest.", or (3) at the end.
6350 # Note that $ac_compile itself does not contain backslashes and begins
6351 # with a dollar sign (not a hyphen), so the echo should work correctly.
6352 # The option is referenced via a variable to avoid confusing sed.
6353 lt_compile=`echo "$ac_compile" | $SED \
6354 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6356 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +00006357 (eval echo "\"\$as_me:6357: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006358 (eval "$lt_compile" 2>conftest.err)
6359 ac_status=$?
6360 cat conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +00006361 echo "$as_me:6361: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006362 if (exit $ac_status) && test -s "$ac_outfile"; then
6363 # The compiler can only warn and ignore the option if not recognized
6364 # So say no if there are warnings
6365 if test ! -s conftest.err; then
6366 lt_prog_compiler_pic_works=yes
6367 fi
6368 fi
6369 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006370
John Criswell47fdd832003-07-14 16:52:07 +00006371fi
6372echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6373echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006374
John Criswell47fdd832003-07-14 16:52:07 +00006375if test x"$lt_prog_compiler_pic_works" = xyes; then
6376 case $lt_prog_compiler_pic in
6377 "" | " "*) ;;
6378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6379 esac
John Criswell7a73b802003-06-30 21:59:07 +00006380else
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_pic=
6382 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006383fi
6384
John Criswell7a73b802003-06-30 21:59:07 +00006385fi
John Criswell47fdd832003-07-14 16:52:07 +00006386case "$host_os" in
6387 # For platforms which do not support PIC, -DPIC is meaningless:
6388 *djgpp*)
6389 lt_prog_compiler_pic=
6390 ;;
6391 *)
6392 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6393 ;;
6394esac
John Criswell7a73b802003-06-30 21:59:07 +00006395
John Criswell7a73b802003-06-30 21:59:07 +00006396echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6397echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006398if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_cv_prog_compiler_c_o=no
6402 $rm -r conftest 2>/dev/null
6403 mkdir conftest
6404 cd conftest
6405 mkdir out
6406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006407
John Criswell47fdd832003-07-14 16:52:07 +00006408 lt_compiler_flag="-o out/conftest2.$ac_objext"
6409 # Insert the option either (1) after the last *FLAGS variable, or
6410 # (2) before a word containing "conftest.", or (3) at the end.
6411 # Note that $ac_compile itself does not contain backslashes and begins
6412 # with a dollar sign (not a hyphen), so the echo should work correctly.
6413 lt_compile=`echo "$ac_compile" | $SED \
6414 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +00006417 (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006418 (eval "$lt_compile" 2>out/conftest.err)
6419 ac_status=$?
6420 cat out/conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +00006421 echo "$as_me:6421: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6423 then
6424 # The compiler can only warn and ignore the option if not recognized
6425 # So say no if there are warnings
6426 if test ! -s out/conftest.err; then
6427 lt_cv_prog_compiler_c_o=yes
6428 fi
6429 fi
6430 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00006431 $rm conftest*
6432 # SGI C++ compiler will create directory out/ii_files/ for
6433 # template instantiation
6434 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6435 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006436 cd ..
6437 rmdir conftest
6438 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006439
6440fi
John Criswell47fdd832003-07-14 16:52:07 +00006441echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6442echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006443
John Criswell7a73b802003-06-30 21:59:07 +00006444
John Criswell7a73b802003-06-30 21:59:07 +00006445hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006446if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006447 # do not overwrite the value of need_locks provided by the user
6448 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6449echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6450 hard_links=yes
6451 $rm conftest*
6452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6453 touch conftest.a
6454 ln conftest.a conftest.b 2>&5 || hard_links=no
6455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456 echo "$as_me:$LINENO: result: $hard_links" >&5
6457echo "${ECHO_T}$hard_links" >&6
6458 if test "$hard_links" = no; then
6459 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6460echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6461 need_locks=warn
6462 fi
6463else
6464 need_locks=no
6465fi
John Criswell7a73b802003-06-30 21:59:07 +00006466
John Criswell47fdd832003-07-14 16:52:07 +00006467echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6468echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6469
6470 runpath_var=
6471 allow_undefined_flag=
6472 enable_shared_with_static_runtimes=no
6473 archive_cmds=
6474 archive_expsym_cmds=
6475 old_archive_From_new_cmds=
6476 old_archive_from_expsyms_cmds=
6477 export_dynamic_flag_spec=
6478 whole_archive_flag_spec=
6479 thread_safe_flag_spec=
6480 hardcode_libdir_flag_spec=
6481 hardcode_libdir_flag_spec_ld=
6482 hardcode_libdir_separator=
6483 hardcode_direct=no
6484 hardcode_minus_L=no
6485 hardcode_shlibpath_var=unsupported
6486 link_all_deplibs=unknown
6487 hardcode_automatic=no
6488 module_cmds=
6489 module_expsym_cmds=
6490 always_export_symbols=no
6491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6492 # include_expsyms should be a list of space-separated symbols to be *always*
6493 # included in the symbol list
6494 include_expsyms=
6495 # exclude_expsyms can be an extended regexp of symbols to exclude
6496 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6497 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6498 # as well as any symbol that contains `d'.
6499 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6501 # platforms (ab)use it in PIC code, but their linkers get confused if
6502 # the symbol is explicitly referenced. Since portable code cannot
6503 # rely on this symbol name, it's probably fine to never include it in
6504 # preloaded symbol tables.
6505 extract_expsyms_cmds=
6506
6507 case $host_os in
6508 cygwin* | mingw* | pw32*)
6509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6510 # When not using gcc, we currently assume that we are using
6511 # Microsoft Visual C++.
6512 if test "$GCC" != yes; then
6513 with_gnu_ld=no
6514 fi
6515 ;;
6516 openbsd*)
6517 with_gnu_ld=no
6518 ;;
6519 esac
6520
6521 ld_shlibs=yes
6522 if test "$with_gnu_ld" = yes; then
6523 # If archive_cmds runs LD, not CC, wlarc should be empty
6524 wlarc='${wl}'
6525
6526 # See if GNU ld supports shared libraries.
6527 case $host_os in
6528 aix3* | aix4* | aix5*)
6529 # On AIX/PPC, the GNU linker is very broken
6530 if test "$host_cpu" != ia64; then
6531 ld_shlibs=no
6532 cat <<EOF 1>&2
6533
6534*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6535*** to be unable to reliably create shared libraries on AIX.
6536*** Therefore, libtool is disabling shared libraries support. If you
6537*** really care for shared libraries, you may want to modify your PATH
6538*** so that a non-GNU linker is found, and then restart.
6539
6540EOF
6541 fi
6542 ;;
6543
6544 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006545 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 +00006546 hardcode_libdir_flag_spec='-L$libdir'
6547 hardcode_minus_L=yes
6548
6549 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6550 # that the semantics of dynamic libraries on AmigaOS, at least up
6551 # to version 4, is to share data among multiple programs linked
6552 # with the same dynamic library. Since this doesn't match the
6553 # behavior of shared libraries on other platforms, we can't use
6554 # them.
6555 ld_shlibs=no
6556 ;;
6557
6558 beos*)
6559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6560 allow_undefined_flag=unsupported
6561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6562 # support --undefined. This deserves some investigation. FIXME
6563 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6564 else
6565 ld_shlibs=no
6566 fi
6567 ;;
6568
6569 cygwin* | mingw* | pw32*)
6570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6571 # as there is no search path for DLLs.
6572 hardcode_libdir_flag_spec='-L$libdir'
6573 allow_undefined_flag=unsupported
6574 always_export_symbols=no
6575 enable_shared_with_static_runtimes=yes
6576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6577
6578 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6580 # If the export-symbols file already is a .def file (1st line
6581 # is EXPORTS), use it as is; otherwise, prepend...
6582 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6583 cp $export_symbols $output_objdir/$soname.def;
6584 else
6585 echo EXPORTS > $output_objdir/$soname.def;
6586 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00006587 fi~
6588 $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 +00006589 else
6590 ld_shlibs=no
6591 fi
6592 ;;
6593
6594 netbsd*)
6595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6596 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6597 wlarc=
6598 else
6599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6601 fi
6602 ;;
6603
6604 solaris* | sysv5*)
6605 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6606 ld_shlibs=no
6607 cat <<EOF 1>&2
6608
6609*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6610*** create shared libraries on Solaris systems. Therefore, libtool
6611*** is disabling shared libraries support. We urge you to upgrade GNU
6612*** binutils to release 2.9.1 or newer. Another option is to modify
6613*** your PATH or compiler configuration so that the native linker is
6614*** used, and then restart.
6615
6616EOF
6617 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6620 else
6621 ld_shlibs=no
6622 fi
6623 ;;
6624
6625 sunos4*)
6626 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6627 wlarc=
6628 hardcode_direct=yes
6629 hardcode_shlibpath_var=no
6630 ;;
6631
Reid Spencer2706f8c2004-09-19 23:53:36 +00006632 linux*)
6633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6634 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635 archive_cmds="$tmp_archive_cmds"
6636 supports_anon_versioning=no
6637 case `$LD -v 2>/dev/null` in
6638 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6641 *\ 2.11.*) ;; # other 2.11 versions
6642 *) supports_anon_versioning=yes ;;
6643 esac
6644 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00006645 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6646cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6647$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +00006648 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6649 else
6650 archive_expsym_cmds="$tmp_archive_cmds"
6651 fi
6652 else
6653 ld_shlibs=no
6654 fi
6655 ;;
6656
John Criswell47fdd832003-07-14 16:52:07 +00006657 *)
6658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661 else
6662 ld_shlibs=no
6663 fi
6664 ;;
6665 esac
6666
6667 if test "$ld_shlibs" = yes; then
6668 runpath_var=LD_RUN_PATH
6669 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6670 export_dynamic_flag_spec='${wl}--export-dynamic'
6671 # ancient GNU ld didn't support --whole-archive et. al.
6672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6674 else
6675 whole_archive_flag_spec=
6676 fi
6677 fi
6678 else
6679 # PORTME fill in a description of your system's linker (not GNU ld)
6680 case $host_os in
6681 aix3*)
6682 allow_undefined_flag=unsupported
6683 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +00006684 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 +00006685 # Note: this linker hardcodes the directories in LIBPATH if there
6686 # are no directories specified by -L.
6687 hardcode_minus_L=yes
6688 if test "$GCC" = yes && test -z "$link_static_flag"; then
6689 # Neither direct hardcoding nor static linking is supported with a
6690 # broken collect2.
6691 hardcode_direct=unsupported
6692 fi
6693 ;;
6694
6695 aix4* | aix5*)
6696 if test "$host_cpu" = ia64; then
6697 # On IA64, the linker does run time linking by default, so we don't
6698 # have to do anything special.
6699 aix_use_runtimelinking=no
6700 exp_sym_flag='-Bexport'
6701 no_entry_flag=""
6702 else
6703 # If we're using GNU nm, then we don't want the "-C" option.
6704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6705 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6706 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'
6707 else
6708 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'
6709 fi
6710 aix_use_runtimelinking=no
6711
6712 # Test if we are trying to use run time linking or normal
6713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6714 # need to do runtime linking.
6715 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6716 for ld_flag in $LDFLAGS; do
6717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6718 aix_use_runtimelinking=yes
6719 break
6720 fi
6721 done
6722 esac
6723
6724 exp_sym_flag='-bexport'
6725 no_entry_flag='-bnoentry'
6726 fi
6727
6728 # When large executables or shared objects are built, AIX ld can
6729 # have problems creating the table of contents. If linking a library
6730 # or program results in "error TOC overflow" add -mminimal-toc to
6731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6733
6734 archive_cmds=''
6735 hardcode_direct=yes
6736 hardcode_libdir_separator=':'
6737 link_all_deplibs=yes
6738
6739 if test "$GCC" = yes; then
6740 case $host_os in aix4.012|aix4.012.*)
6741 # We only want to do this on AIX 4.2 and lower, the check
6742 # below for broken collect2 doesn't work under 4.3+
6743 collect2name=`${CC} -print-prog-name=collect2`
6744 if test -f "$collect2name" && \
6745 strings "$collect2name" | grep resolve_lib_name >/dev/null
6746 then
6747 # We have reworked collect2
6748 hardcode_direct=yes
6749 else
6750 # We have old collect2
6751 hardcode_direct=unsupported
6752 # It fails to find uninstalled libraries when the uninstalled
6753 # path is not listed in the libpath. Setting hardcode_minus_L
6754 # to unsupported forces relinking
6755 hardcode_minus_L=yes
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 hardcode_libdir_separator=
6758 fi
6759 esac
6760 shared_flag='-shared'
6761 else
6762 # not using gcc
6763 if test "$host_cpu" = ia64; then
6764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6765 # chokes on -Wl,-G. The following line is correct:
6766 shared_flag='-G'
6767 else
6768 if test "$aix_use_runtimelinking" = yes; then
6769 shared_flag='${wl}-G'
6770 else
6771 shared_flag='${wl}-bM:SRE'
6772 fi
6773 fi
6774 fi
6775
6776 # It seems that -bexpall does not export symbols beginning with
6777 # underscore (_), so it is better to generate a list of symbols to export.
6778 always_export_symbols=yes
6779 if test "$aix_use_runtimelinking" = yes; then
6780 # Warning - without using the other runtime loading flags (-brtl),
6781 # -berok will link without error, but may produce a broken library.
6782 allow_undefined_flag='-berok'
6783 # Determine the default libpath from the value encoded in an empty executable.
6784 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006790
John Criswell7a73b802003-06-30 21:59:07 +00006791int
6792main ()
6793{
John Criswell47fdd832003-07-14 16:52:07 +00006794
John Criswell7a73b802003-06-30 21:59:07 +00006795 ;
6796 return 0;
6797}
6798_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006799rm -f conftest.$ac_objext conftest$ac_exeext
6800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006801 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (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); }; } &&
6815 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006821
John Criswell47fdd832003-07-14 16:52:07 +00006822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6823}'`
6824# Check for a 64-bit object if we didn't find anything.
6825if 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; }
6826}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006827else
6828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006829sed 's/^/| /' conftest.$ac_ext >&5
6830
John Criswell7a73b802003-06-30 21:59:07 +00006831fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006832rm -f conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006835
John Criswell47fdd832003-07-14 16:52:07 +00006836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6837 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"
6838 else
6839 if test "$host_cpu" = ia64; then
6840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6841 allow_undefined_flag="-z nodefs"
6842 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"
6843 else
6844 # Determine the default libpath from the value encoded in an empty executable.
6845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006851
John Criswell47fdd832003-07-14 16:52:07 +00006852int
6853main ()
6854{
John Criswell7a73b802003-06-30 21:59:07 +00006855
John Criswell47fdd832003-07-14 16:52:07 +00006856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext
6861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006862 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (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); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006882
John Criswell47fdd832003-07-14 16:52:07 +00006883aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6884}'`
6885# Check for a 64-bit object if we didn't find anything.
6886if 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; }
6887}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006888else
John Criswell47fdd832003-07-14 16:52:07 +00006889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006890sed 's/^/| /' conftest.$ac_ext >&5
6891
John Criswell47fdd832003-07-14 16:52:07 +00006892fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006893rm -f conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006896
John Criswell47fdd832003-07-14 16:52:07 +00006897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6898 # Warning - without using the other run time loading flags,
6899 # -berok will link without error, but may produce a broken library.
6900 no_undefined_flag=' ${wl}-bernotok'
6901 allow_undefined_flag=' ${wl}-berok'
6902 # -bexpall does not export symbols beginning with underscore (_)
6903 always_export_symbols=yes
6904 # Exported symbols can be pulled into shared objects from archives
6905 whole_archive_flag_spec=' '
6906 archive_cmds_need_lc=yes
6907 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00006908 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 +00006909 fi
6910 fi
John Criswell7a73b802003-06-30 21:59:07 +00006911 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006912
6913 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006914 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 +00006915 hardcode_libdir_flag_spec='-L$libdir'
6916 hardcode_minus_L=yes
6917 # see comment about different semantics on the GNU ld section
6918 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006919 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006920
Reid Spencer2706f8c2004-09-19 23:53:36 +00006921 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00006922 export_dynamic_flag_spec=-rdynamic
6923 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006924
John Criswell47fdd832003-07-14 16:52:07 +00006925 cygwin* | mingw* | pw32*)
6926 # When not using gcc, we currently assume that we are using
6927 # Microsoft Visual C++.
6928 # hardcode_libdir_flag_spec is actually meaningless, as there is
6929 # no search path for DLLs.
6930 hardcode_libdir_flag_spec=' '
6931 allow_undefined_flag=unsupported
6932 # Tell ltmain to make .lib files, not .a files.
6933 libext=lib
6934 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006935 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00006936 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +00006937 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006938 # The linker will automatically build a .lib file if we build a DLL.
6939 old_archive_From_new_cmds='true'
6940 # FIXME: Should let the user specify the lib program.
6941 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942 fix_srcfile_path='`cygpath -w "$srcfile"`'
6943 enable_shared_with_static_runtimes=yes
6944 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006945
John Criswell47fdd832003-07-14 16:52:07 +00006946 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00006947 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006948 rhapsody* | darwin1.[012])
6949 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6950 ;;
6951 *) # Darwin 1.3 on
6952 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954 else
6955 case ${MACOSX_DEPLOYMENT_TARGET} in
6956 10.[012])
6957 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6958 ;;
6959 10.*)
6960 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6961 ;;
6962 esac
6963 fi
6964 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006965 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00006966 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00006967 hardcode_direct=no
6968 hardcode_automatic=yes
6969 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00006970 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00006971 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006972 if test "$GCC" = yes ; then
6973 output_verbose_link_cmd='echo'
6974 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6975 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +00006977 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}'
6978 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00006979 else
6980 case "$cc_basename" in
6981 xlc*)
6982 output_verbose_link_cmd='echo'
6983 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6984 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +00006986 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}'
6987 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00006988 ;;
6989 *)
6990 ld_shlibs=no
6991 ;;
6992 esac
John Criswell7a73b802003-06-30 21:59:07 +00006993 fi
John Criswell47fdd832003-07-14 16:52:07 +00006994 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006995
John Criswell47fdd832003-07-14 16:52:07 +00006996 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006998 hardcode_libdir_flag_spec='-L$libdir'
6999 hardcode_shlibpath_var=no
7000 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007001
John Criswell47fdd832003-07-14 16:52:07 +00007002 freebsd1*)
7003 ld_shlibs=no
7004 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007005
John Criswell47fdd832003-07-14 16:52:07 +00007006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7007 # support. Future versions do this automatically, but an explicit c++rt0.o
7008 # does not break anything, and helps significantly (at the cost of a little
7009 # extra space).
7010 freebsd2.2*)
7011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7012 hardcode_libdir_flag_spec='-R$libdir'
7013 hardcode_direct=yes
7014 hardcode_shlibpath_var=no
7015 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007016
John Criswell47fdd832003-07-14 16:52:07 +00007017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7018 freebsd2*)
7019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7020 hardcode_direct=yes
7021 hardcode_minus_L=yes
7022 hardcode_shlibpath_var=no
7023 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007024
John Criswell47fdd832003-07-14 16:52:07 +00007025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007026 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7028 hardcode_libdir_flag_spec='-R$libdir'
7029 hardcode_direct=yes
7030 hardcode_shlibpath_var=no
7031 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007032
John Criswell47fdd832003-07-14 16:52:07 +00007033 hpux9*)
7034 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007035 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 +00007036 else
Reid Spencer177dbe22004-10-13 01:01:03 +00007037 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 +00007038 fi
7039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7040 hardcode_libdir_separator=:
7041 hardcode_direct=yes
7042
7043 # hardcode_minus_L: Not really in the search PATH,
7044 # but as the default location of the library.
7045 hardcode_minus_L=yes
7046 export_dynamic_flag_spec='${wl}-E'
7047 ;;
7048
7049 hpux10* | hpux11*)
7050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7051 case "$host_cpu" in
7052 hppa*64*|ia64*)
7053 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054 ;;
7055 *)
7056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7057 ;;
7058 esac
7059 else
7060 case "$host_cpu" in
7061 hppa*64*|ia64*)
7062 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7063 ;;
7064 *)
7065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7066 ;;
7067 esac
7068 fi
7069 if test "$with_gnu_ld" = no; then
7070 case "$host_cpu" in
7071 hppa*64*)
7072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7073 hardcode_libdir_flag_spec_ld='+b $libdir'
7074 hardcode_libdir_separator=:
7075 hardcode_direct=no
7076 hardcode_shlibpath_var=no
7077 ;;
7078 ia64*)
7079 hardcode_libdir_flag_spec='-L$libdir'
7080 hardcode_direct=no
7081 hardcode_shlibpath_var=no
7082
7083 # hardcode_minus_L: Not really in the search PATH,
7084 # but as the default location of the library.
7085 hardcode_minus_L=yes
7086 ;;
7087 *)
7088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7089 hardcode_libdir_separator=:
7090 hardcode_direct=yes
7091 export_dynamic_flag_spec='${wl}-E'
7092
7093 # hardcode_minus_L: Not really in the search PATH,
7094 # but as the default location of the library.
7095 hardcode_minus_L=yes
7096 ;;
7097 esac
7098 fi
7099 ;;
7100
7101 irix5* | irix6* | nonstopux*)
7102 if test "$GCC" = yes; then
7103 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'
7104 else
7105 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'
7106 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7107 fi
7108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110 link_all_deplibs=yes
7111 ;;
7112
7113 netbsd*)
7114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7116 else
7117 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7118 fi
7119 hardcode_libdir_flag_spec='-R$libdir'
7120 hardcode_direct=yes
7121 hardcode_shlibpath_var=no
7122 ;;
7123
7124 newsos6)
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126 hardcode_direct=yes
7127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7128 hardcode_libdir_separator=:
7129 hardcode_shlibpath_var=no
7130 ;;
7131
7132 openbsd*)
7133 hardcode_direct=yes
7134 hardcode_shlibpath_var=no
7135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007137 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 +00007138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139 export_dynamic_flag_spec='${wl}-E'
7140 else
7141 case $host_os in
7142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_libdir_flag_spec='-R$libdir'
7145 ;;
7146 *)
7147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149 ;;
7150 esac
7151 fi
7152 ;;
7153
7154 os2*)
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_minus_L=yes
7157 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +00007158 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 +00007159 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7160 ;;
7161
7162 osf3*)
7163 if test "$GCC" = yes; then
7164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165 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'
7166 else
7167 allow_undefined_flag=' -expect_unresolved \*'
7168 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'
7169 fi
7170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171 hardcode_libdir_separator=:
7172 ;;
7173
7174 osf4* | osf5*) # as osf3* with the addition of -msym flag
7175 if test "$GCC" = yes; then
7176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177 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'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179 else
7180 allow_undefined_flag=' -expect_unresolved \*'
7181 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 Spencer177dbe22004-10-13 01:01:03 +00007182 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7183 $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'
7184
John Criswell47fdd832003-07-14 16:52:07 +00007185 # Both c and cxx compiler support -rpath directly
7186 hardcode_libdir_flag_spec='-rpath $libdir'
7187 fi
7188 hardcode_libdir_separator=:
7189 ;;
7190
7191 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007194 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007195 runpath_var=LD_RUN_PATH
7196 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007197 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007198
John Criswell47fdd832003-07-14 16:52:07 +00007199 solaris*)
7200 no_undefined_flag=' -z text'
7201 if test "$GCC" = yes; then
7202 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007203 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7204 $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 +00007205 else
7206 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7208 $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 +00007209 fi
7210 hardcode_libdir_flag_spec='-R$libdir'
7211 hardcode_shlibpath_var=no
7212 case $host_os in
7213 solaris2.[0-5] | solaris2.[0-5].*) ;;
7214 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7216 esac
7217 link_all_deplibs=yes
7218 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007219
John Criswell47fdd832003-07-14 16:52:07 +00007220 sunos4*)
7221 if test "x$host_vendor" = xsequent; then
7222 # Use $CC to link under sequent, because it throws in some extra .o
7223 # files that make .init and .fini sections work.
7224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7225 else
7226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7227 fi
7228 hardcode_libdir_flag_spec='-L$libdir'
7229 hardcode_direct=yes
7230 hardcode_minus_L=yes
7231 hardcode_shlibpath_var=no
7232 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007233
John Criswell47fdd832003-07-14 16:52:07 +00007234 sysv4)
7235 case $host_vendor in
7236 sni)
7237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238 hardcode_direct=yes # is this really true???
7239 ;;
7240 siemens)
7241 ## LD is ld it makes a PLAMLIB
7242 ## CC just makes a GrossModule.
7243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244 reload_cmds='$CC -r -o $output$reload_objs'
7245 hardcode_direct=no
7246 ;;
7247 motorola)
7248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7250 ;;
7251 esac
7252 runpath_var='LD_RUN_PATH'
7253 hardcode_shlibpath_var=no
7254 ;;
7255
7256 sysv4.3*)
7257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258 hardcode_shlibpath_var=no
7259 export_dynamic_flag_spec='-Bexport'
7260 ;;
7261
7262 sysv4*MP*)
7263 if test -d /usr/nec; then
7264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265 hardcode_shlibpath_var=no
7266 runpath_var=LD_RUN_PATH
7267 hardcode_runpath_var=yes
7268 ld_shlibs=yes
7269 fi
7270 ;;
7271
7272 sysv4.2uw2*)
7273 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7274 hardcode_direct=yes
7275 hardcode_minus_L=no
7276 hardcode_shlibpath_var=no
7277 hardcode_runpath_var=yes
7278 runpath_var=LD_RUN_PATH
7279 ;;
7280
7281 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7282 no_undefined_flag='${wl}-z ${wl}text'
7283 if test "$GCC" = yes; then
7284 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7285 else
7286 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7287 fi
7288 runpath_var='LD_RUN_PATH'
7289 hardcode_shlibpath_var=no
7290 ;;
7291
7292 sysv5*)
7293 no_undefined_flag=' -z text'
7294 # $CC -shared without GNU ld will not create a library from C++
7295 # object files and a static libstdc++, better avoid it by now
7296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7298 $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 +00007299 hardcode_libdir_flag_spec=
7300 hardcode_shlibpath_var=no
7301 runpath_var='LD_RUN_PATH'
7302 ;;
7303
7304 uts4*)
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_libdir_flag_spec='-L$libdir'
7307 hardcode_shlibpath_var=no
7308 ;;
7309
7310 *)
7311 ld_shlibs=no
7312 ;;
7313 esac
7314 fi
7315
John Criswell7a73b802003-06-30 21:59:07 +00007316echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7317echo "${ECHO_T}$ld_shlibs" >&6
7318test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007319
John Criswell47fdd832003-07-14 16:52:07 +00007320variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7321if test "$GCC" = yes; then
7322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7323fi
7324
7325#
7326# Do we need to explicitly link libc?
7327#
7328case "x$archive_cmds_need_lc" in
7329x|xyes)
7330 # Assume -lc should be added
7331 archive_cmds_need_lc=yes
7332
7333 if test "$enable_shared" = yes && test "$GCC" = yes; then
7334 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007335 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00007336 # FIXME: we may have to deal with multi-command sequences.
7337 ;;
7338 '$CC '*)
7339 # Test whether the compiler implicitly links with -lc since on some
7340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7341 # to ld, don't add -lc before -lgcc.
7342 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7343echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7344 $rm conftest*
7345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7346
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } 2>conftest.err; then
7352 soname=conftest
7353 lib=conftest
7354 libobjs=conftest.$ac_objext
7355 deplibs=
7356 wl=$lt_prog_compiler_wl
7357 compiler_flags=-v
7358 linker_flags=-v
7359 verstring=
7360 output_objdir=.
7361 libname=conftest
7362 lt_save_allow_undefined_flag=$allow_undefined_flag
7363 allow_undefined_flag=
7364 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7365 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7366 ac_status=$?
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }
7369 then
7370 archive_cmds_need_lc=no
7371 else
7372 archive_cmds_need_lc=yes
7373 fi
7374 allow_undefined_flag=$lt_save_allow_undefined_flag
7375 else
7376 cat conftest.err 1>&5
7377 fi
7378 $rm conftest*
7379 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7380echo "${ECHO_T}$archive_cmds_need_lc" >&6
7381 ;;
7382 esac
7383 fi
7384 ;;
7385esac
7386
John Criswell7a73b802003-06-30 21:59:07 +00007387echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7388echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7389library_names_spec=
7390libname_spec='lib$name'
7391soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00007392shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007393postinstall_cmds=
7394postuninstall_cmds=
7395finish_cmds=
7396finish_eval=
7397shlibpath_var=
7398shlibpath_overrides_runpath=unknown
7399version_type=none
7400dynamic_linker="$host_os ld.so"
7401sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007402if test "$GCC" = yes; then
7403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7404 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7405 # if the path contains ";" then we assume it to be the separator
7406 # otherwise default to the standard path separator (i.e. ":") - it is
7407 # assumed that no part of a normal pathname contains ";" but that should
7408 # okay in the real world where ";" in dirpaths is itself problematic.
7409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7410 else
7411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7412 fi
7413else
7414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7415fi
7416need_lib_prefix=unknown
7417hardcode_into_libs=no
7418
7419# when you set need_version to no, make sure it does not cause -set_version
7420# flags to be left without arguments
7421need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007422
7423case $host_os in
7424aix3*)
7425 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007427 shlibpath_var=LIBPATH
7428
John Criswell47fdd832003-07-14 16:52:07 +00007429 # AIX 3 has no versioning support, so we append a major version to the name.
7430 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007431 ;;
7432
7433aix4* | aix5*)
7434 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007435 need_lib_prefix=no
7436 need_version=no
7437 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007438 if test "$host_cpu" = ia64; then
7439 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007441 shlibpath_var=LD_LIBRARY_PATH
7442 else
7443 # With GCC up to 2.95.x, collect2 would create an import file
7444 # for dependence libraries. The import file would start with
7445 # the line `#! .'. This would cause the generated library to
7446 # depend on `.', always an invalid library. This was fixed in
7447 # development snapshots of GCC prior to 3.0.
7448 case $host_os in
7449 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7451 echo ' yes '
7452 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7453 :
7454 else
7455 can_build_shared=no
7456 fi
7457 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007458 esac
John Criswell47fdd832003-07-14 16:52:07 +00007459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7460 # soname into executable. Probably we can add versioning support to
7461 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007462 if test "$aix_use_runtimelinking" = yes; then
7463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7464 # instead of lib<name>.a to let people know that these are not
7465 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007467 else
7468 # We preserve .a as extension for shared libraries through AIX4.2
7469 # and later when we are not doing run time linking.
7470 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007471 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007472 fi
7473 shlibpath_var=LIBPATH
7474 fi
7475 ;;
7476
7477amigaos*)
7478 library_names_spec='$libname.ixlibrary $libname.a'
7479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007480 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 +00007481 ;;
7482
7483beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007484 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007485 dynamic_linker="$host_os ld.so"
7486 shlibpath_var=LIBRARY_PATH
7487 ;;
7488
Reid Spencer2706f8c2004-09-19 23:53:36 +00007489bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00007490 version_type=linux
7491 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7493 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7495 shlibpath_var=LD_LIBRARY_PATH
7496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007498 # the default ld.so.conf also contains /usr/contrib/lib and
7499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7500 # libtool to hard-code these into programs
7501 ;;
7502
7503cygwin* | mingw* | pw32*)
7504 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00007505 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007506 need_version=no
7507 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007508
John Criswell7a73b802003-06-30 21:59:07 +00007509 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007510 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007511 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +00007513 postinstall_cmds='base_file=`basename \${file}`~
7514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7515 dldir=$destdir/`dirname \$dlpath`~
7516 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007517 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +00007518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7519 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +00007520 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007521 shlibpath_overrides_runpath=yes
7522
7523 case $host_os in
7524 cygwin*)
7525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7526 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 +00007527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007528 ;;
7529 mingw*)
7530 # MinGW DLLs use traditional 'lib' prefix
7531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7533 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7534 # It is most probably a Windows format PATH printed by
7535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7536 # path with ; separators, and with drive letters. We can handle the
7537 # drive letters (cygwin fileutils understands them), so leave them,
7538 # especially as we might pass files found there to a mingw objdump,
7539 # which wouldn't understand a cygwinified path. Ahh.
7540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7541 else
7542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7543 fi
7544 ;;
7545 pw32*)
7546 # pw32 DLLs use 'pw' prefix rather than 'lib'
7547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7548 ;;
7549 esac
John Criswell7a73b802003-06-30 21:59:07 +00007550 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007551
John Criswell7a73b802003-06-30 21:59:07 +00007552 *)
John Criswell47fdd832003-07-14 16:52:07 +00007553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007554 ;;
7555 esac
7556 dynamic_linker='Win32 ld.exe'
7557 # FIXME: first we should search . and the directory the executable is in
7558 shlibpath_var=PATH
7559 ;;
7560
7561darwin* | rhapsody*)
7562 dynamic_linker="$host_os dyld"
7563 version_type=darwin
7564 need_lib_prefix=no
7565 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00007566 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007567 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007568 shlibpath_overrides_runpath=yes
7569 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00007570 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00007571 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007572 if test "$GCC" = yes; then
7573 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"`
7574 else
7575 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007576 fi
7577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7578 ;;
7579
7580dgux*)
7581 version_type=linux
7582 need_lib_prefix=no
7583 need_version=no
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7585 soname_spec='${libname}${release}${shared_ext}$major'
7586 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007587 ;;
7588
7589freebsd1*)
7590 dynamic_linker=no
7591 ;;
7592
Reid Spencer2706f8c2004-09-19 23:53:36 +00007593kfreebsd*-gnu)
7594 version_type=linux
7595 need_lib_prefix=no
7596 need_version=no
7597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7598 soname_spec='${libname}${release}${shared_ext}$major'
7599 shlibpath_var=LD_LIBRARY_PATH
7600 shlibpath_overrides_runpath=no
7601 hardcode_into_libs=yes
7602 dynamic_linker='GNU ld.so'
7603 ;;
7604
John Criswell7a73b802003-06-30 21:59:07 +00007605freebsd*)
7606 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7607 version_type=freebsd-$objformat
7608 case $version_type in
7609 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007611 need_version=no
7612 need_lib_prefix=no
7613 ;;
7614 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007616 need_version=yes
7617 ;;
7618 esac
7619 shlibpath_var=LD_LIBRARY_PATH
7620 case $host_os in
7621 freebsd2*)
7622 shlibpath_overrides_runpath=yes
7623 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007624 freebsd3.01* | freebsdelf3.01*)
7625 shlibpath_overrides_runpath=yes
7626 hardcode_into_libs=yes
7627 ;;
7628 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007629 shlibpath_overrides_runpath=no
7630 hardcode_into_libs=yes
7631 ;;
7632 esac
7633 ;;
7634
7635gnu*)
7636 version_type=linux
7637 need_lib_prefix=no
7638 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7640 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007641 shlibpath_var=LD_LIBRARY_PATH
7642 hardcode_into_libs=yes
7643 ;;
7644
7645hpux9* | hpux10* | hpux11*)
7646 # Give a soname corresponding to the major version so that dld.sl refuses to
7647 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007648 version_type=sunos
7649 need_lib_prefix=no
7650 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007651 case "$host_cpu" in
7652 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007653 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00007654 hardcode_into_libs=yes
7655 dynamic_linker="$host_os dld.so"
7656 shlibpath_var=LD_LIBRARY_PATH
7657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659 soname_spec='${libname}${release}${shared_ext}$major'
7660 if test "X$HPUX_IA64_MODE" = X32; then
7661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7662 else
7663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7664 fi
7665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7666 ;;
7667 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007668 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007669 hardcode_into_libs=yes
7670 dynamic_linker="$host_os dld.sl"
7671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 soname_spec='${libname}${release}${shared_ext}$major'
7675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7677 ;;
7678 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007679 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007680 dynamic_linker="$host_os dld.sl"
7681 shlibpath_var=SHLIB_PATH
7682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7684 soname_spec='${libname}${release}${shared_ext}$major'
7685 ;;
7686 esac
John Criswell7a73b802003-06-30 21:59:07 +00007687 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7688 postinstall_cmds='chmod 555 $lib'
7689 ;;
7690
John Criswell47fdd832003-07-14 16:52:07 +00007691irix5* | irix6* | nonstopux*)
7692 case $host_os in
7693 nonstopux*) version_type=nonstopux ;;
7694 *)
7695 if test "$lt_cv_prog_gnu_ld" = yes; then
7696 version_type=linux
7697 else
7698 version_type=irix
7699 fi ;;
7700 esac
John Criswell7a73b802003-06-30 21:59:07 +00007701 need_lib_prefix=no
7702 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007703 soname_spec='${libname}${release}${shared_ext}$major'
7704 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 +00007705 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007706 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007707 libsuff= shlibsuff=
7708 ;;
7709 *)
7710 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7712 libsuff= shlibsuff= libmagic=32-bit;;
7713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7714 libsuff=32 shlibsuff=N32 libmagic=N32;;
7715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7716 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007717 *) libsuff= shlibsuff= libmagic=never-match;;
7718 esac
7719 ;;
7720 esac
7721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7722 shlibpath_overrides_runpath=no
7723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007725 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007726 ;;
7727
7728# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007729linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007730 dynamic_linker=no
7731 ;;
7732
7733# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007734linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007735 version_type=linux
7736 need_lib_prefix=no
7737 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7739 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7741 shlibpath_var=LD_LIBRARY_PATH
7742 shlibpath_overrides_runpath=no
7743 # This implies no fast_install, which is unacceptable.
7744 # Some rework will be needed to allow for fast_install
7745 # before this can be enabled.
7746 hardcode_into_libs=yes
7747
Reid Spencer2706f8c2004-09-19 23:53:36 +00007748 # Append ld.so.conf contents to the search path
7749 if test -f /etc/ld.so.conf; then
7750 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7752 fi
7753
John Criswell7a73b802003-06-30 21:59:07 +00007754 # We used to test for /lib/ld.so.1 and disable shared libraries on
7755 # powerpc, because MkLinux only supported shared libraries with the
7756 # GNU dynamic linker. Since this was broken with cross compilers,
7757 # most powerpc-linux boxes support dynamic linking these days and
7758 # people can always --disable-shared, the test was removed, and we
7759 # assume the GNU/Linux dynamic linker is in use.
7760 dynamic_linker='GNU/Linux ld.so'
7761 ;;
7762
Reid Spencer2706f8c2004-09-19 23:53:36 +00007763knetbsd*-gnu)
7764 version_type=linux
7765 need_lib_prefix=no
7766 need_version=no
7767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7768 soname_spec='${libname}${release}${shared_ext}$major'
7769 shlibpath_var=LD_LIBRARY_PATH
7770 shlibpath_overrides_runpath=no
7771 hardcode_into_libs=yes
7772 dynamic_linker='GNU ld.so'
7773 ;;
7774
John Criswell7a73b802003-06-30 21:59:07 +00007775netbsd*)
7776 version_type=sunos
7777 need_lib_prefix=no
7778 need_version=no
7779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7782 dynamic_linker='NetBSD (a.out) ld.so'
7783 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00007785 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007786 dynamic_linker='NetBSD ld.elf_so'
7787 fi
7788 shlibpath_var=LD_LIBRARY_PATH
7789 shlibpath_overrides_runpath=yes
7790 hardcode_into_libs=yes
7791 ;;
7792
7793newsos6)
7794 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796 shlibpath_var=LD_LIBRARY_PATH
7797 shlibpath_overrides_runpath=yes
7798 ;;
7799
Reid Spencer2706f8c2004-09-19 23:53:36 +00007800nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007801 version_type=linux
7802 need_lib_prefix=no
7803 need_version=no
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007806 shlibpath_var=LD_LIBRARY_PATH
7807 shlibpath_overrides_runpath=yes
7808 ;;
7809
7810openbsd*)
7811 version_type=sunos
7812 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007813 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7816 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007817 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 +00007818 case $host_os in
7819 openbsd2.[89] | openbsd2.[89].*)
7820 shlibpath_overrides_runpath=no
7821 ;;
7822 *)
7823 shlibpath_overrides_runpath=yes
7824 ;;
7825 esac
John Criswell7a73b802003-06-30 21:59:07 +00007826 else
7827 shlibpath_overrides_runpath=yes
7828 fi
John Criswell7a73b802003-06-30 21:59:07 +00007829 ;;
7830
7831os2*)
7832 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007833 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007834 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007835 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007836 dynamic_linker='OS/2 ld.exe'
7837 shlibpath_var=LIBPATH
7838 ;;
7839
7840osf3* | osf4* | osf5*)
7841 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007842 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007843 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007844 soname_spec='${libname}${release}${shared_ext}$major'
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007846 shlibpath_var=LD_LIBRARY_PATH
7847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7849 ;;
7850
7851sco3.2v5*)
7852 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007853 soname_spec='${libname}${release}${shared_ext}$major'
7854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007855 shlibpath_var=LD_LIBRARY_PATH
7856 ;;
7857
7858solaris*)
7859 version_type=linux
7860 need_lib_prefix=no
7861 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=yes
7866 hardcode_into_libs=yes
7867 # ldd complains unless libraries are executable
7868 postinstall_cmds='chmod +x $lib'
7869 ;;
7870
7871sunos4*)
7872 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=yes
7877 if test "$with_gnu_ld" = yes; then
7878 need_lib_prefix=no
7879 fi
7880 need_version=yes
7881 ;;
7882
7883sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7884 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007887 shlibpath_var=LD_LIBRARY_PATH
7888 case $host_vendor in
7889 sni)
7890 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007891 need_lib_prefix=no
7892 export_dynamic_flag_spec='${wl}-Blargedynsym'
7893 runpath_var=LD_RUN_PATH
7894 ;;
7895 siemens)
7896 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007897 ;;
7898 motorola)
7899 need_lib_prefix=no
7900 need_version=no
7901 shlibpath_overrides_runpath=no
7902 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7903 ;;
7904 esac
7905 ;;
7906
John Criswell7a73b802003-06-30 21:59:07 +00007907sysv4*MP*)
7908 if test -d /usr/nec ;then
7909 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007910 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7911 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007912 shlibpath_var=LD_LIBRARY_PATH
7913 fi
7914 ;;
7915
John Criswell47fdd832003-07-14 16:52:07 +00007916uts4*)
7917 version_type=linux
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
7920 shlibpath_var=LD_LIBRARY_PATH
7921 ;;
7922
John Criswell7a73b802003-06-30 21:59:07 +00007923*)
7924 dynamic_linker=no
7925 ;;
7926esac
7927echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7928echo "${ECHO_T}$dynamic_linker" >&6
7929test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007930
Reid Spencer2706f8c2004-09-19 23:53:36 +00007931echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7932echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7933hardcode_action=
7934if test -n "$hardcode_libdir_flag_spec" || \
7935 test -n "$runpath_var" || \
7936 test "X$hardcode_automatic" = "Xyes" ; then
7937
7938 # We can hardcode non-existant directories.
7939 if test "$hardcode_direct" != no &&
7940 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7941 # have to relink, otherwise we might link with an installed library
7942 # when we should be linking with a yet-to-be-installed one
7943 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7944 test "$hardcode_minus_L" != no; then
7945 # Linking always hardcodes the temporary library directory.
7946 hardcode_action=relink
7947 else
7948 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7949 hardcode_action=immediate
7950 fi
7951else
7952 # We cannot hardcode anything, or else we can only hardcode existing
7953 # directories.
7954 hardcode_action=unsupported
7955fi
7956echo "$as_me:$LINENO: result: $hardcode_action" >&5
7957echo "${ECHO_T}$hardcode_action" >&6
7958
7959if test "$hardcode_action" = relink; then
7960 # Fast installation is not supported
7961 enable_fast_install=no
7962elif test "$shlibpath_overrides_runpath" = yes ||
7963 test "$enable_shared" = no; then
7964 # Fast installation is not necessary
7965 enable_fast_install=needless
7966fi
7967
7968striplib=
7969old_striplib=
7970echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7971echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7972if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7973 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7974 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7975 echo "$as_me:$LINENO: result: yes" >&5
7976echo "${ECHO_T}yes" >&6
7977else
7978# FIXME - insert some real tests, host_os isn't really good enough
7979 case $host_os in
7980 darwin*)
7981 if test -n "$STRIP" ; then
7982 striplib="$STRIP -x"
7983 echo "$as_me:$LINENO: result: yes" >&5
7984echo "${ECHO_T}yes" >&6
7985 else
7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
7988fi
7989 ;;
7990 *)
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 ;;
7994 esac
7995fi
7996
John Criswell7a73b802003-06-30 21:59:07 +00007997if test "x$enable_dlopen" != xyes; then
7998 enable_dlopen=unknown
7999 enable_dlopen_self=unknown
8000 enable_dlopen_self_static=unknown
8001else
8002 lt_cv_dlopen=no
8003 lt_cv_dlopen_libs=
8004
8005 case $host_os in
8006 beos*)
8007 lt_cv_dlopen="load_add_on"
8008 lt_cv_dlopen_libs=
8009 lt_cv_dlopen_self=yes
8010 ;;
8011
John Criswell47fdd832003-07-14 16:52:07 +00008012 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008013 lt_cv_dlopen="LoadLibrary"
8014 lt_cv_dlopen_libs=
8015 ;;
8016
John Criswell47fdd832003-07-14 16:52:07 +00008017 cygwin*)
8018 lt_cv_dlopen="dlopen"
8019 lt_cv_dlopen_libs=
8020 ;;
8021
8022 darwin*)
8023 # if libdl is installed we need to link against it
8024 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8025echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8026if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029 ac_check_lib_save_LIBS=$LIBS
8030LIBS="-ldl $LIBS"
8031cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008037
8038/* Override any gcc2 internal prototype to avoid an error. */
8039#ifdef __cplusplus
8040extern "C"
8041#endif
8042/* We use char because int might match the return type of a gcc2
8043 builtin and then its argument prototype would still apply. */
8044char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008045int
8046main ()
8047{
8048dlopen ();
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext conftest$ac_exeext
8054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008055 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008062 { ac_try='test -z "$ac_c_werror_flag"
8063 || test ! -s conftest.err'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_lib_dl_dlopen=yes
8076else
8077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008078sed 's/^/| /' conftest.$ac_ext >&5
8079
John Criswell47fdd832003-07-14 16:52:07 +00008080ac_cv_lib_dl_dlopen=no
8081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008082rm -f conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008084LIBS=$ac_check_lib_save_LIBS
8085fi
8086echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8087echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8088if test $ac_cv_lib_dl_dlopen = yes; then
8089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8090else
8091
8092 lt_cv_dlopen="dyld"
8093 lt_cv_dlopen_libs=
8094 lt_cv_dlopen_self=yes
8095
8096fi
8097
8098 ;;
8099
John Criswell7a73b802003-06-30 21:59:07 +00008100 *)
8101 echo "$as_me:$LINENO: checking for shl_load" >&5
8102echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8103if test "${ac_cv_func_shl_load+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008112/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8114#define shl_load innocuous_shl_load
8115
John Criswell7a73b802003-06-30 21:59:07 +00008116/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008117 which can conflict with char shl_load (); below.
8118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8119 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008120
John Criswell0c38eaf2003-09-10 15:17:25 +00008121#ifdef __STDC__
8122# include <limits.h>
8123#else
8124# include <assert.h>
8125#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008126
8127#undef shl_load
8128
John Criswell7a73b802003-06-30 21:59:07 +00008129/* Override any gcc2 internal prototype to avoid an error. */
8130#ifdef __cplusplus
8131extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008132{
John Criswell7a73b802003-06-30 21:59:07 +00008133#endif
8134/* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008137/* The GNU C library defines this for functions which it implements
8138 to always fail with ENOSYS. Some functions are actually named
8139 something starting with __ and the normal name is an alias. */
8140#if defined (__stub_shl_load) || defined (__stub___shl_load)
8141choke me
8142#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008143char (*f) () = shl_load;
8144#endif
8145#ifdef __cplusplus
8146}
John Criswell7a73b802003-06-30 21:59:07 +00008147#endif
8148
John Criswell0c38eaf2003-09-10 15:17:25 +00008149int
8150main ()
8151{
8152return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008153 ;
8154 return 0;
8155}
8156_ACEOF
8157rm -f conftest.$ac_objext conftest$ac_exeext
8158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008159 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008160 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008166 { ac_try='test -z "$ac_c_werror_flag"
8167 || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 (eval $ac_try) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_func_shl_load=yes
8180else
8181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008182sed 's/^/| /' conftest.$ac_ext >&5
8183
John Criswell7a73b802003-06-30 21:59:07 +00008184ac_cv_func_shl_load=no
8185fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008186rm -f conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008188fi
8189echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8190echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8191if test $ac_cv_func_shl_load = yes; then
8192 lt_cv_dlopen="shl_load"
8193else
8194 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8195echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8196if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199 ac_check_lib_save_LIBS=$LIBS
8200LIBS="-ldld $LIBS"
8201cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008202/* confdefs.h. */
8203_ACEOF
8204cat confdefs.h >>conftest.$ac_ext
8205cat >>conftest.$ac_ext <<_ACEOF
8206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008207
8208/* Override any gcc2 internal prototype to avoid an error. */
8209#ifdef __cplusplus
8210extern "C"
8211#endif
8212/* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8214char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008215int
8216main ()
8217{
8218shl_load ();
8219 ;
8220 return 0;
8221}
8222_ACEOF
8223rm -f conftest.$ac_objext conftest$ac_exeext
8224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008225 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008226 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008232 { ac_try='test -z "$ac_c_werror_flag"
8233 || test ! -s conftest.err'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_cv_lib_dld_shl_load=yes
8246else
8247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008248sed 's/^/| /' conftest.$ac_ext >&5
8249
John Criswell7a73b802003-06-30 21:59:07 +00008250ac_cv_lib_dld_shl_load=no
8251fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008252rm -f conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008254LIBS=$ac_check_lib_save_LIBS
8255fi
8256echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8257echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8258if test $ac_cv_lib_dld_shl_load = yes; then
8259 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8260else
8261 echo "$as_me:$LINENO: checking for dlopen" >&5
8262echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8263if test "${ac_cv_func_dlopen+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008272/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274#define dlopen innocuous_dlopen
8275
John Criswell7a73b802003-06-30 21:59:07 +00008276/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008277 which can conflict with char dlopen (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008280
John Criswell0c38eaf2003-09-10 15:17:25 +00008281#ifdef __STDC__
8282# include <limits.h>
8283#else
8284# include <assert.h>
8285#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008286
8287#undef dlopen
8288
John Criswell7a73b802003-06-30 21:59:07 +00008289/* Override any gcc2 internal prototype to avoid an error. */
8290#ifdef __cplusplus
8291extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008292{
John Criswell7a73b802003-06-30 21:59:07 +00008293#endif
8294/* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008297/* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300#if defined (__stub_dlopen) || defined (__stub___dlopen)
8301choke me
8302#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008303char (*f) () = dlopen;
8304#endif
8305#ifdef __cplusplus
8306}
John Criswell7a73b802003-06-30 21:59:07 +00008307#endif
8308
John Criswell0c38eaf2003-09-10 15:17:25 +00008309int
8310main ()
8311{
8312return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
8318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008319 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008320 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_dlopen=yes
8340else
8341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008342sed 's/^/| /' conftest.$ac_ext >&5
8343
John Criswell7a73b802003-06-30 21:59:07 +00008344ac_cv_func_dlopen=no
8345fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008346rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008348fi
8349echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8350echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8351if test $ac_cv_func_dlopen = yes; then
8352 lt_cv_dlopen="dlopen"
8353else
8354 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8355echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8356if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359 ac_check_lib_save_LIBS=$LIBS
8360LIBS="-ldl $LIBS"
8361cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008362/* confdefs.h. */
8363_ACEOF
8364cat confdefs.h >>conftest.$ac_ext
8365cat >>conftest.$ac_ext <<_ACEOF
8366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008367
8368/* Override any gcc2 internal prototype to avoid an error. */
8369#ifdef __cplusplus
8370extern "C"
8371#endif
8372/* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008375int
8376main ()
8377{
8378dlopen ();
8379 ;
8380 return 0;
8381}
8382_ACEOF
8383rm -f conftest.$ac_objext conftest$ac_exeext
8384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008385 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008392 { ac_try='test -z "$ac_c_werror_flag"
8393 || test ! -s conftest.err'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; } &&
8399 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 ac_cv_lib_dl_dlopen=yes
8406else
8407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008408sed 's/^/| /' conftest.$ac_ext >&5
8409
John Criswell7a73b802003-06-30 21:59:07 +00008410ac_cv_lib_dl_dlopen=no
8411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008412rm -f conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008414LIBS=$ac_check_lib_save_LIBS
8415fi
8416echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8417echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8418if test $ac_cv_lib_dl_dlopen = yes; then
8419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8420else
8421 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8422echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8423if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8425else
8426 ac_check_lib_save_LIBS=$LIBS
8427LIBS="-lsvld $LIBS"
8428cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008429/* confdefs.h. */
8430_ACEOF
8431cat confdefs.h >>conftest.$ac_ext
8432cat >>conftest.$ac_ext <<_ACEOF
8433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008434
8435/* Override any gcc2 internal prototype to avoid an error. */
8436#ifdef __cplusplus
8437extern "C"
8438#endif
8439/* We use char because int might match the return type of a gcc2
8440 builtin and then its argument prototype would still apply. */
8441char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008442int
8443main ()
8444{
8445dlopen ();
8446 ;
8447 return 0;
8448}
8449_ACEOF
8450rm -f conftest.$ac_objext conftest$ac_exeext
8451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008452 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008453 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008459 { ac_try='test -z "$ac_c_werror_flag"
8460 || test ! -s conftest.err'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 (eval $ac_try) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; } &&
8466 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_lib_svld_dlopen=yes
8473else
8474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008475sed 's/^/| /' conftest.$ac_ext >&5
8476
John Criswell7a73b802003-06-30 21:59:07 +00008477ac_cv_lib_svld_dlopen=no
8478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008479rm -f conftest.err conftest.$ac_objext \
8480 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008481LIBS=$ac_check_lib_save_LIBS
8482fi
8483echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8484echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8485if test $ac_cv_lib_svld_dlopen = yes; then
8486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8487else
8488 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8489echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8490if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493 ac_check_lib_save_LIBS=$LIBS
8494LIBS="-ldld $LIBS"
8495cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008496/* confdefs.h. */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
8500/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008501
8502/* Override any gcc2 internal prototype to avoid an error. */
8503#ifdef __cplusplus
8504extern "C"
8505#endif
8506/* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8508char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008509int
8510main ()
8511{
8512dld_link ();
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517rm -f conftest.$ac_objext conftest$ac_exeext
8518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008519 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008526 { ac_try='test -z "$ac_c_werror_flag"
8527 || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_lib_dld_dld_link=yes
8540else
8541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008542sed 's/^/| /' conftest.$ac_ext >&5
8543
John Criswell7a73b802003-06-30 21:59:07 +00008544ac_cv_lib_dld_dld_link=no
8545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008546rm -f conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008548LIBS=$ac_check_lib_save_LIBS
8549fi
8550echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8551echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8552if test $ac_cv_lib_dld_dld_link = yes; then
8553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8554fi
8555
8556
8557fi
8558
8559
8560fi
8561
8562
8563fi
8564
8565
8566fi
8567
8568
8569fi
8570
8571 ;;
8572 esac
8573
8574 if test "x$lt_cv_dlopen" != xno; then
8575 enable_dlopen=yes
8576 else
8577 enable_dlopen=no
8578 fi
8579
8580 case $lt_cv_dlopen in
8581 dlopen)
8582 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008584
8585 save_LDFLAGS="$LDFLAGS"
8586 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8587
8588 save_LIBS="$LIBS"
8589 LIBS="$lt_cv_dlopen_libs $LIBS"
8590
8591 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8592echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8593if test "${lt_cv_dlopen_self+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 if test "$cross_compiling" = yes; then :
8597 lt_cv_dlopen_self=cross
8598else
John Criswell47fdd832003-07-14 16:52:07 +00008599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008600 lt_status=$lt_dlunknown
8601 cat > conftest.$ac_ext <<EOF
Reid Spencer177dbe22004-10-13 01:01:03 +00008602#line 8602 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008603#include "confdefs.h"
8604
8605#if HAVE_DLFCN_H
8606#include <dlfcn.h>
8607#endif
8608
8609#include <stdio.h>
8610
8611#ifdef RTLD_GLOBAL
8612# define LT_DLGLOBAL RTLD_GLOBAL
8613#else
8614# ifdef DL_GLOBAL
8615# define LT_DLGLOBAL DL_GLOBAL
8616# else
8617# define LT_DLGLOBAL 0
8618# endif
8619#endif
8620
8621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8622 find out it does not work in some platform. */
8623#ifndef LT_DLLAZY_OR_NOW
8624# ifdef RTLD_LAZY
8625# define LT_DLLAZY_OR_NOW RTLD_LAZY
8626# else
8627# ifdef DL_LAZY
8628# define LT_DLLAZY_OR_NOW DL_LAZY
8629# else
8630# ifdef RTLD_NOW
8631# define LT_DLLAZY_OR_NOW RTLD_NOW
8632# else
8633# ifdef DL_NOW
8634# define LT_DLLAZY_OR_NOW DL_NOW
8635# else
8636# define LT_DLLAZY_OR_NOW 0
8637# endif
8638# endif
8639# endif
8640# endif
8641#endif
8642
8643#ifdef __cplusplus
8644extern "C" void exit (int);
8645#endif
8646
8647void fnord() { int i=42;}
8648int main ()
8649{
8650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8651 int status = $lt_dlunknown;
8652
8653 if (self)
8654 {
8655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8657 /* dlclose (self); */
8658 }
8659
8660 exit (status);
8661}
8662EOF
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8668 (./conftest; exit; ) 2>/dev/null
8669 lt_status=$?
8670 case x$lt_status in
8671 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8672 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8673 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8674 esac
8675 else :
8676 # compilation failed
8677 lt_cv_dlopen_self=no
8678 fi
8679fi
8680rm -fr conftest*
8681
8682
8683fi
8684echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8685echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8686
8687 if test "x$lt_cv_dlopen_self" = xyes; then
8688 LDFLAGS="$LDFLAGS $link_static_flag"
8689 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8690echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8691if test "${lt_cv_dlopen_self_static+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694 if test "$cross_compiling" = yes; then :
8695 lt_cv_dlopen_self_static=cross
8696else
John Criswell47fdd832003-07-14 16:52:07 +00008697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008698 lt_status=$lt_dlunknown
8699 cat > conftest.$ac_ext <<EOF
Reid Spencer177dbe22004-10-13 01:01:03 +00008700#line 8700 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008701#include "confdefs.h"
8702
8703#if HAVE_DLFCN_H
8704#include <dlfcn.h>
8705#endif
8706
8707#include <stdio.h>
8708
8709#ifdef RTLD_GLOBAL
8710# define LT_DLGLOBAL RTLD_GLOBAL
8711#else
8712# ifdef DL_GLOBAL
8713# define LT_DLGLOBAL DL_GLOBAL
8714# else
8715# define LT_DLGLOBAL 0
8716# endif
8717#endif
8718
8719/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8720 find out it does not work in some platform. */
8721#ifndef LT_DLLAZY_OR_NOW
8722# ifdef RTLD_LAZY
8723# define LT_DLLAZY_OR_NOW RTLD_LAZY
8724# else
8725# ifdef DL_LAZY
8726# define LT_DLLAZY_OR_NOW DL_LAZY
8727# else
8728# ifdef RTLD_NOW
8729# define LT_DLLAZY_OR_NOW RTLD_NOW
8730# else
8731# ifdef DL_NOW
8732# define LT_DLLAZY_OR_NOW DL_NOW
8733# else
8734# define LT_DLLAZY_OR_NOW 0
8735# endif
8736# endif
8737# endif
8738# endif
8739#endif
8740
8741#ifdef __cplusplus
8742extern "C" void exit (int);
8743#endif
8744
8745void fnord() { int i=42;}
8746int main ()
8747{
8748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8749 int status = $lt_dlunknown;
8750
8751 if (self)
8752 {
8753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8754 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8755 /* dlclose (self); */
8756 }
8757
8758 exit (status);
8759}
8760EOF
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8766 (./conftest; exit; ) 2>/dev/null
8767 lt_status=$?
8768 case x$lt_status in
8769 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8770 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8771 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8772 esac
8773 else :
8774 # compilation failed
8775 lt_cv_dlopen_self_static=no
8776 fi
8777fi
8778rm -fr conftest*
8779
8780
8781fi
8782echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8783echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8784 fi
8785
8786 CPPFLAGS="$save_CPPFLAGS"
8787 LDFLAGS="$save_LDFLAGS"
8788 LIBS="$save_LIBS"
8789 ;;
8790 esac
8791
8792 case $lt_cv_dlopen_self in
8793 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8794 *) enable_dlopen_self=unknown ;;
8795 esac
8796
8797 case $lt_cv_dlopen_self_static in
8798 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8799 *) enable_dlopen_self_static=unknown ;;
8800 esac
8801fi
8802
8803
John Criswell47fdd832003-07-14 16:52:07 +00008804# Report which librarie types wil actually be built
8805echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8806echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8807echo "$as_me:$LINENO: result: $can_build_shared" >&5
8808echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008809
John Criswell47fdd832003-07-14 16:52:07 +00008810echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8811echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8812test "$can_build_shared" = "no" && enable_shared=no
8813
8814# On AIX, shared libraries and static libraries use the same namespace, and
8815# are all built from PIC.
8816case "$host_os" in
8817aix3*)
8818 test "$enable_shared" = yes && enable_static=no
8819 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00008820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008821 postinstall_cmds='$RANLIB $lib'
8822 fi
8823 ;;
8824
Reid Spencer2706f8c2004-09-19 23:53:36 +00008825aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00008826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8827 test "$enable_shared" = yes && enable_static=no
8828 fi
John Criswell7a73b802003-06-30 21:59:07 +00008829 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008830esac
8831echo "$as_me:$LINENO: result: $enable_shared" >&5
8832echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008833
John Criswell47fdd832003-07-14 16:52:07 +00008834echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8835echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8836# Make sure either enable_shared or enable_static is yes.
8837test "$enable_shared" = yes || enable_static=yes
8838echo "$as_me:$LINENO: result: $enable_static" >&5
8839echo "${ECHO_T}$enable_static" >&6
8840
8841# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008842# libtool distribution, otherwise you forgot to ship ltmain.sh
8843# with your package, and you will get complaints that there are
8844# no rules to generate ltmain.sh.
8845if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008846 # See if we are running on zsh, and set the options which allow our commands through
8847 # without removal of \ escapes.
8848 if test -n "${ZSH_VERSION+set}" ; then
8849 setopt NO_GLOB_SUBST
8850 fi
John Criswell7a73b802003-06-30 21:59:07 +00008851 # Now quote all the things that may contain metacharacters while being
8852 # careful not to overquote the AC_SUBSTed values. We take copies of the
8853 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008854 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8855 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8858 deplibs_check_method reload_flag reload_cmds need_locks \
8859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8860 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008862 old_postinstall_cmds old_postuninstall_cmds \
8863 compiler \
8864 CC \
8865 LD \
8866 lt_prog_compiler_wl \
8867 lt_prog_compiler_pic \
8868 lt_prog_compiler_static \
8869 lt_prog_compiler_no_builtin_flag \
8870 export_dynamic_flag_spec \
8871 thread_safe_flag_spec \
8872 whole_archive_flag_spec \
8873 enable_shared_with_static_runtimes \
8874 old_archive_cmds \
8875 old_archive_from_new_cmds \
8876 predep_objects \
8877 postdep_objects \
8878 predeps \
8879 postdeps \
8880 compiler_lib_search_path \
8881 archive_cmds \
8882 archive_expsym_cmds \
8883 postinstall_cmds \
8884 postuninstall_cmds \
8885 old_archive_from_expsyms_cmds \
8886 allow_undefined_flag \
8887 no_undefined_flag \
8888 export_symbols_cmds \
8889 hardcode_libdir_flag_spec \
8890 hardcode_libdir_flag_spec_ld \
8891 hardcode_libdir_separator \
8892 hardcode_automatic \
8893 module_cmds \
8894 module_expsym_cmds \
8895 lt_cv_prog_compiler_c_o \
8896 exclude_expsyms \
8897 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008898
8899 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008900 old_archive_cmds | \
8901 old_archive_from_new_cmds | \
8902 archive_cmds | \
8903 archive_expsym_cmds | \
8904 module_cmds | \
8905 module_expsym_cmds | \
8906 old_archive_from_expsyms_cmds | \
8907 export_symbols_cmds | \
8908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008909 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008910 old_postinstall_cmds | old_postuninstall_cmds | \
8911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008912 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008913 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 +00008914 ;;
8915 *)
8916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8917 ;;
8918 esac
8919 done
8920
John Criswell47fdd832003-07-14 16:52:07 +00008921 case $lt_echo in
8922 *'\$0 --fallback-echo"')
8923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8924 ;;
8925 esac
8926
8927cfgfile="${ofile}T"
8928 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8929 $rm -f "$cfgfile"
8930 { echo "$as_me:$LINENO: creating $ofile" >&5
8931echo "$as_me: creating $ofile" >&6;}
8932
8933 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008934#! $SHELL
8935
John Criswell47fdd832003-07-14 16:52:07 +00008936# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008937# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8938# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8939#
John Criswell47fdd832003-07-14 16:52:07 +00008940# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8941# Free Software Foundation, Inc.
8942#
8943# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008944# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8945#
8946# This program is free software; you can redistribute it and/or modify
8947# it under the terms of the GNU General Public License as published by
8948# the Free Software Foundation; either version 2 of the License, or
8949# (at your option) any later version.
8950#
8951# This program is distributed in the hope that it will be useful, but
8952# WITHOUT ANY WARRANTY; without even the implied warranty of
8953# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8954# General Public License for more details.
8955#
8956# You should have received a copy of the GNU General Public License
8957# along with this program; if not, write to the Free Software
8958# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8959#
8960# As a special exception to the GNU General Public License, if you
8961# distribute this file as part of a program that contains a
8962# configuration script generated by Autoconf, you may include it under
8963# the same distribution terms that you use for the rest of that program.
8964
John Criswell47fdd832003-07-14 16:52:07 +00008965# A sed program that does not truncate output.
8966SED=$lt_SED
8967
John Criswell7a73b802003-06-30 21:59:07 +00008968# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008969Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008970
8971# The HP-UX ksh and POSIX shell print the target directory to stdout
8972# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008973(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00008974
John Criswell47fdd832003-07-14 16:52:07 +00008975# The names of the tagged configurations supported by this script.
8976available_tags=
8977
John Criswell7a73b802003-06-30 21:59:07 +00008978# ### BEGIN LIBTOOL CONFIG
8979
8980# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8981
8982# Shell to use when invoking shell scripts.
8983SHELL=$lt_SHELL
8984
8985# Whether or not to build shared libraries.
8986build_libtool_libs=$enable_shared
8987
8988# Whether or not to build static libraries.
8989build_old_libs=$enable_static
8990
8991# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008992build_libtool_need_lc=$archive_cmds_need_lc
8993
8994# Whether or not to disallow shared libs when runtime libs are static
8995allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008996
8997# Whether or not to optimize for fast installation.
8998fast_install=$enable_fast_install
8999
9000# The host system.
9001host_alias=$host_alias
9002host=$host
9003
9004# An echo program that does not interpret backslashes.
9005echo=$lt_echo
9006
9007# The archiver.
9008AR=$lt_AR
9009AR_FLAGS=$lt_AR_FLAGS
9010
John Criswell47fdd832003-07-14 16:52:07 +00009011# A C compiler.
9012LTCC=$lt_LTCC
9013
9014# A language-specific compiler.
9015CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009016
9017# Is the compiler the GNU C compiler?
9018with_gcc=$GCC
9019
John Criswell47fdd832003-07-14 16:52:07 +00009020# An ERE matcher.
9021EGREP=$lt_EGREP
9022
John Criswell7a73b802003-06-30 21:59:07 +00009023# The linker used to build libraries.
9024LD=$lt_LD
9025
9026# Whether we need hard or soft links.
9027LN_S=$lt_LN_S
9028
9029# A BSD-compatible nm program.
9030NM=$lt_NM
9031
9032# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009033STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009034
9035# Used to examine libraries when file_magic_cmd begins "file"
9036MAGIC_CMD=$MAGIC_CMD
9037
9038# Used on cygwin: DLL creation program.
9039DLLTOOL="$DLLTOOL"
9040
9041# Used on cygwin: object dumper.
9042OBJDUMP="$OBJDUMP"
9043
9044# Used on cygwin: assembler.
9045AS="$AS"
9046
9047# The name of the directory that contains temporary libtool files.
9048objdir=$objdir
9049
9050# How to create reloadable object files.
9051reload_flag=$lt_reload_flag
9052reload_cmds=$lt_reload_cmds
9053
9054# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009055wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009056
9057# Object file suffix (normally "o").
9058objext="$ac_objext"
9059
9060# Old archive suffix (normally "a").
9061libext="$libext"
9062
John Criswell47fdd832003-07-14 16:52:07 +00009063# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009064shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009065
John Criswell7a73b802003-06-30 21:59:07 +00009066# Executable file suffix (normally "").
9067exeext="$exeext"
9068
9069# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009070pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009071pic_mode=$pic_mode
9072
John Criswell47fdd832003-07-14 16:52:07 +00009073# What is the maximum length of a command?
9074max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009075
John Criswell47fdd832003-07-14 16:52:07 +00009076# Does compiler simultaneously support -c and -o options?
9077compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009078
9079# Must we lock files when doing compilation ?
9080need_locks=$lt_need_locks
9081
9082# Do we need the lib prefix for modules?
9083need_lib_prefix=$need_lib_prefix
9084
9085# Do we need a version for libraries?
9086need_version=$need_version
9087
9088# Whether dlopen is supported.
9089dlopen_support=$enable_dlopen
9090
9091# Whether dlopen of programs is supported.
9092dlopen_self=$enable_dlopen_self
9093
9094# Whether dlopen of statically linked programs is supported.
9095dlopen_self_static=$enable_dlopen_self_static
9096
9097# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009098link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009099
9100# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009101no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009102
9103# Compiler flag to allow reflexive dlopens.
9104export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9105
9106# Compiler flag to generate shared objects directly from archives.
9107whole_archive_flag_spec=$lt_whole_archive_flag_spec
9108
9109# Compiler flag to generate thread-safe objects.
9110thread_safe_flag_spec=$lt_thread_safe_flag_spec
9111
9112# Library versioning type.
9113version_type=$version_type
9114
9115# Format of library name prefix.
9116libname_spec=$lt_libname_spec
9117
9118# List of archive names. First name is the real one, the rest are links.
9119# The last name is the one that the linker finds with -lNAME.
9120library_names_spec=$lt_library_names_spec
9121
9122# The coded name of the library, if different from the real name.
9123soname_spec=$lt_soname_spec
9124
9125# Commands used to build and install an old-style archive.
9126RANLIB=$lt_RANLIB
9127old_archive_cmds=$lt_old_archive_cmds
9128old_postinstall_cmds=$lt_old_postinstall_cmds
9129old_postuninstall_cmds=$lt_old_postuninstall_cmds
9130
9131# Create an old-style archive from a shared archive.
9132old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9133
9134# Create a temporary old-style archive to link instead of a shared archive.
9135old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9136
9137# Commands used to build and install a shared archive.
9138archive_cmds=$lt_archive_cmds
9139archive_expsym_cmds=$lt_archive_expsym_cmds
9140postinstall_cmds=$lt_postinstall_cmds
9141postuninstall_cmds=$lt_postuninstall_cmds
9142
John Criswell47fdd832003-07-14 16:52:07 +00009143# Commands used to build a loadable module (assumed same as above if empty)
9144module_cmds=$lt_module_cmds
9145module_expsym_cmds=$lt_module_expsym_cmds
9146
John Criswell7a73b802003-06-30 21:59:07 +00009147# Commands to strip libraries.
9148old_striplib=$lt_old_striplib
9149striplib=$lt_striplib
9150
John Criswell47fdd832003-07-14 16:52:07 +00009151# Dependencies to place before the objects being linked to create a
9152# shared library.
9153predep_objects=$lt_predep_objects
9154
9155# Dependencies to place after the objects being linked to create a
9156# shared library.
9157postdep_objects=$lt_postdep_objects
9158
9159# Dependencies to place before the objects being linked to create a
9160# shared library.
9161predeps=$lt_predeps
9162
9163# Dependencies to place after the objects being linked to create a
9164# shared library.
9165postdeps=$lt_postdeps
9166
9167# The library search path used internally by the compiler when linking
9168# a shared library.
9169compiler_lib_search_path=$lt_compiler_lib_search_path
9170
John Criswell7a73b802003-06-30 21:59:07 +00009171# Method to check whether dependent libraries are shared objects.
9172deplibs_check_method=$lt_deplibs_check_method
9173
9174# Command to use when deplibs_check_method == file_magic.
9175file_magic_cmd=$lt_file_magic_cmd
9176
9177# Flag that allows shared libraries with undefined symbols to be built.
9178allow_undefined_flag=$lt_allow_undefined_flag
9179
9180# Flag that forces no undefined symbols.
9181no_undefined_flag=$lt_no_undefined_flag
9182
9183# Commands used to finish a libtool library installation in a directory.
9184finish_cmds=$lt_finish_cmds
9185
9186# Same as above, but a single script fragment to be evaled but not shown.
9187finish_eval=$lt_finish_eval
9188
9189# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009190global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009191
9192# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009193global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009194
9195# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009196global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009197
9198# This is the shared library runtime path variable.
9199runpath_var=$runpath_var
9200
9201# This is the shared library path variable.
9202shlibpath_var=$shlibpath_var
9203
9204# Is shlibpath searched before the hard-coded library search path?
9205shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9206
9207# How to hardcode a shared library path into an executable.
9208hardcode_action=$hardcode_action
9209
9210# Whether we should hardcode library paths into libraries.
9211hardcode_into_libs=$hardcode_into_libs
9212
9213# Flag to hardcode \$libdir into a binary during linking.
9214# This must work even if \$libdir does not exist.
9215hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9216
John Criswell47fdd832003-07-14 16:52:07 +00009217# If ld is used when linking, flag to hardcode \$libdir into
9218# a binary during linking. This must work even if \$libdir does
9219# not exist.
9220hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9221
John Criswell7a73b802003-06-30 21:59:07 +00009222# Whether we need a single -rpath flag with a separated argument.
9223hardcode_libdir_separator=$lt_hardcode_libdir_separator
9224
John Criswell47fdd832003-07-14 16:52:07 +00009225# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009226# resulting binary.
9227hardcode_direct=$hardcode_direct
9228
9229# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9230# resulting binary.
9231hardcode_minus_L=$hardcode_minus_L
9232
9233# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9234# the resulting binary.
9235hardcode_shlibpath_var=$hardcode_shlibpath_var
9236
John Criswell47fdd832003-07-14 16:52:07 +00009237# Set to yes if building a shared library automatically hardcodes DIR into the library
9238# and all subsequent libraries and executables linked against it.
9239hardcode_automatic=$hardcode_automatic
9240
John Criswell7a73b802003-06-30 21:59:07 +00009241# Variables whose values should be saved in libtool wrapper scripts and
9242# restored at relink time.
9243variables_saved_for_relink="$variables_saved_for_relink"
9244
9245# Whether libtool must link a program against all its dependency libraries.
9246link_all_deplibs=$link_all_deplibs
9247
9248# Compile-time system search path for libraries
9249sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9250
9251# Run-time system search path for libraries
9252sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9253
9254# Fix the shell variable \$srcfile for the compiler.
9255fix_srcfile_path="$fix_srcfile_path"
9256
9257# Set to yes if exported symbols are required.
9258always_export_symbols=$always_export_symbols
9259
9260# The commands to list exported symbols.
9261export_symbols_cmds=$lt_export_symbols_cmds
9262
9263# The commands to extract the exported symbol list from a shared archive.
9264extract_expsyms_cmds=$lt_extract_expsyms_cmds
9265
9266# Symbols that should not be listed in the preloaded symbols.
9267exclude_expsyms=$lt_exclude_expsyms
9268
9269# Symbols that must always be exported.
9270include_expsyms=$lt_include_expsyms
9271
9272# ### END LIBTOOL CONFIG
9273
9274__EOF__
9275
John Criswell47fdd832003-07-14 16:52:07 +00009276
John Criswell7a73b802003-06-30 21:59:07 +00009277 case $host_os in
9278 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009279 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009280
9281# AIX sometimes has problems with the GCC collect2 program. For some
9282# reason, if we set the COLLECT_NAMES environment variable, the problems
9283# vanish in a puff of smoke.
9284if test "X${COLLECT_NAMES+set}" != Xset; then
9285 COLLECT_NAMES=
9286 export COLLECT_NAMES
9287fi
9288EOF
9289 ;;
9290 esac
9291
John Criswell7a73b802003-06-30 21:59:07 +00009292 # We use sed instead of cat because bash on DJGPP gets confused if
9293 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9294 # text mode, it properly converts lines to CR/LF. This bash problem
9295 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009296 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009297
John Criswell47fdd832003-07-14 16:52:07 +00009298 mv -f "$cfgfile" "$ofile" || \
9299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009300 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009301
9302else
9303 # If there is no Makefile yet, we rely on a make rule to execute
9304 # `config.status --recheck' to rerun these tests and create the
9305 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009306 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9307 if test -f "$ltmain_in"; then
9308 test -f Makefile && make "$ltmain"
9309 fi
John Criswell7a73b802003-06-30 21:59:07 +00009310fi
John Criswell7a73b802003-06-30 21:59:07 +00009311
9312
John Criswell47fdd832003-07-14 16:52:07 +00009313ac_ext=c
9314ac_cpp='$CPP $CPPFLAGS'
9315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9317ac_compiler_gnu=$ac_cv_c_compiler_gnu
9318
9319CC="$lt_save_CC"
9320
9321
9322# Check whether --with-tags or --without-tags was given.
9323if test "${with_tags+set}" = set; then
9324 withval="$with_tags"
9325 tagnames="$withval"
9326fi;
9327
9328if test -f "$ltmain" && test -n "$tagnames"; then
9329 if test ! -f "${ofile}"; then
9330 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9331echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9332 fi
9333
9334 if test -z "$LTCC"; then
9335 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9336 if test -z "$LTCC"; then
9337 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9338echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9339 else
9340 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9341echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9342 fi
9343 fi
9344
9345 # Extract list of available tagged configurations in $ofile.
9346 # Note that this assumes the entire list is on one line.
9347 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9348
9349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9350 for tagname in $tagnames; do
9351 IFS="$lt_save_ifs"
9352 # Check whether tagname contains only valid characters
9353 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9354 "") ;;
9355 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9356echo "$as_me: error: invalid tag name: $tagname" >&2;}
9357 { (exit 1); exit 1; }; }
9358 ;;
9359 esac
9360
9361 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9362 then
9363 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9364echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9365 { (exit 1); exit 1; }; }
9366 fi
9367
9368 # Update the list of available tags.
9369 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009370 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +00009371
9372 case $tagname in
9373 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009374 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9375 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9376 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +00009377 ac_ext=cc
9378ac_cpp='$CXXCPP $CPPFLAGS'
9379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9382
9383
9384
9385
9386archive_cmds_need_lc_CXX=no
9387allow_undefined_flag_CXX=
9388always_export_symbols_CXX=no
9389archive_expsym_cmds_CXX=
9390export_dynamic_flag_spec_CXX=
9391hardcode_direct_CXX=no
9392hardcode_libdir_flag_spec_CXX=
9393hardcode_libdir_flag_spec_ld_CXX=
9394hardcode_libdir_separator_CXX=
9395hardcode_minus_L_CXX=no
9396hardcode_automatic_CXX=no
9397module_cmds_CXX=
9398module_expsym_cmds_CXX=
9399link_all_deplibs_CXX=unknown
9400old_archive_cmds_CXX=$old_archive_cmds
9401no_undefined_flag_CXX=
9402whole_archive_flag_spec_CXX=
9403enable_shared_with_static_runtimes_CXX=no
9404
9405# Dependencies to place before and after the object being linked:
9406predep_objects_CXX=
9407postdep_objects_CXX=
9408predeps_CXX=
9409postdeps_CXX=
9410compiler_lib_search_path_CXX=
9411
9412# Source file extension for C++ test sources.
9413ac_ext=cc
9414
9415# Object file extension for compiled C++ test sources.
9416objext=o
9417objext_CXX=$objext
9418
9419# Code to be used in simple compile tests
9420lt_simple_compile_test_code="int some_variable = 0;\n"
9421
9422# Code to be used in simple link tests
9423lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9424
9425# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9426
9427# If no C compiler was specified, use CC.
9428LTCC=${LTCC-"$CC"}
9429
9430# Allow CC to be a program name with arguments.
9431compiler=$CC
9432
9433
9434# Allow CC to be a program name with arguments.
9435lt_save_CC=$CC
9436lt_save_LD=$LD
9437lt_save_GCC=$GCC
9438GCC=$GXX
9439lt_save_with_gnu_ld=$with_gnu_ld
9440lt_save_path_LD=$lt_cv_path_LD
9441if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9442 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9443else
9444 unset lt_cv_prog_gnu_ld
9445fi
9446if test -n "${lt_cv_path_LDCXX+set}"; then
9447 lt_cv_path_LD=$lt_cv_path_LDCXX
9448else
9449 unset lt_cv_path_LD
9450fi
9451test -z "${LDCXX+set}" || LD=$LDCXX
9452CC=${CXX-"c++"}
9453compiler=$CC
9454compiler_CXX=$CC
9455cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9456
9457# We don't want -fno-exception wen compiling C++ code, so set the
9458# no_builtin_flag separately
9459if test "$GXX" = yes; then
9460 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9461else
9462 lt_prog_compiler_no_builtin_flag_CXX=
9463fi
9464
9465if test "$GXX" = yes; then
9466 # Set up default GNU C++ configuration
9467
9468
9469# Check whether --with-gnu-ld or --without-gnu-ld was given.
9470if test "${with_gnu_ld+set}" = set; then
9471 withval="$with_gnu_ld"
9472 test "$withval" = no || with_gnu_ld=yes
9473else
9474 with_gnu_ld=no
9475fi;
9476ac_prog=ld
9477if test "$GCC" = yes; then
9478 # Check if gcc -print-prog-name=ld gives a path.
9479 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9480echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9481 case $host in
9482 *-*-mingw*)
9483 # gcc leaves a trailing carriage return which upsets mingw
9484 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9485 *)
9486 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9487 esac
9488 case $ac_prog in
9489 # Accept absolute paths.
9490 [\\/]* | ?:[\\/]*)
9491 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009492 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009493 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9494 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9495 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9496 done
9497 test -z "$LD" && LD="$ac_prog"
9498 ;;
9499 "")
9500 # If it fails, then pretend we aren't using GCC.
9501 ac_prog=ld
9502 ;;
9503 *)
9504 # If it is relative, then search for the first ld in PATH.
9505 with_gnu_ld=unknown
9506 ;;
9507 esac
9508elif test "$with_gnu_ld" = yes; then
9509 echo "$as_me:$LINENO: checking for GNU ld" >&5
9510echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9511else
9512 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9513echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9514fi
9515if test "${lt_cv_path_LD+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518 if test -z "$LD"; then
9519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9520 for ac_dir in $PATH; do
9521 IFS="$lt_save_ifs"
9522 test -z "$ac_dir" && ac_dir=.
9523 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9524 lt_cv_path_LD="$ac_dir/$ac_prog"
9525 # Check to see if the program is GNU ld. I'd rather use --version,
9526 # but apparently some GNU ld's only accept -v.
9527 # Break only if it was the GNU/non-GNU ld that we prefer.
9528 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9529 *GNU* | *'with BFD'*)
9530 test "$with_gnu_ld" != no && break
9531 ;;
9532 *)
9533 test "$with_gnu_ld" != yes && break
9534 ;;
9535 esac
9536 fi
9537 done
9538 IFS="$lt_save_ifs"
9539else
9540 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9541fi
9542fi
9543
9544LD="$lt_cv_path_LD"
9545if test -n "$LD"; then
9546 echo "$as_me:$LINENO: result: $LD" >&5
9547echo "${ECHO_T}$LD" >&6
9548else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551fi
9552test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9553echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9554 { (exit 1); exit 1; }; }
9555echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9556echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9557if test "${lt_cv_prog_gnu_ld+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559else
9560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009561case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009562*GNU* | *'with BFD'*)
9563 lt_cv_prog_gnu_ld=yes
9564 ;;
9565*)
9566 lt_cv_prog_gnu_ld=no
9567 ;;
9568esac
9569fi
9570echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9571echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9572with_gnu_ld=$lt_cv_prog_gnu_ld
9573
9574
9575
9576 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9577 # archiving commands below assume that GNU ld is being used.
9578 if test "$with_gnu_ld" = yes; then
9579 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 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'
9581
9582 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9583 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9584
9585 # If archive_cmds runs LD, not CC, wlarc should be empty
9586 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9587 # investigate it a little bit more. (MM)
9588 wlarc='${wl}'
9589
9590 # ancient GNU ld didn't support --whole-archive et. al.
9591 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9592 grep 'no-whole-archive' > /dev/null; then
9593 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9594 else
9595 whole_archive_flag_spec_CXX=
9596 fi
9597 else
9598 with_gnu_ld=no
9599 wlarc=
9600
9601 # A generic and very simple default shared library creation
9602 # command for GNU C++ for the case where it uses the native
9603 # linker, instead of GNU ld. If possible, this setting should
9604 # overridden to take advantage of the native linker features on
9605 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009607 fi
9608
9609 # Commands to make compiler produce verbose output that lists
9610 # what "hidden" libraries, object files and flags are used when
9611 # linking a shared library.
9612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9613
9614else
9615 GXX=no
9616 with_gnu_ld=no
9617 wlarc=
9618fi
9619
9620# PORTME: fill in a description of your system's C++ link characteristics
9621echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9622echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9623ld_shlibs_CXX=yes
9624case $host_os in
9625 aix3*)
9626 # FIXME: insert proper C++ library support
9627 ld_shlibs_CXX=no
9628 ;;
9629 aix4* | aix5*)
9630 if test "$host_cpu" = ia64; then
9631 # On IA64, the linker does run time linking by default, so we don't
9632 # have to do anything special.
9633 aix_use_runtimelinking=no
9634 exp_sym_flag='-Bexport'
9635 no_entry_flag=""
9636 else
9637 aix_use_runtimelinking=no
9638
9639 # Test if we are trying to use run time linking or normal
9640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9641 # need to do runtime linking.
9642 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9643 for ld_flag in $LDFLAGS; do
9644 case $ld_flag in
9645 *-brtl*)
9646 aix_use_runtimelinking=yes
9647 break
9648 ;;
9649 esac
9650 done
9651 esac
9652
9653 exp_sym_flag='-bexport'
9654 no_entry_flag='-bnoentry'
9655 fi
9656
9657 # When large executables or shared objects are built, AIX ld can
9658 # have problems creating the table of contents. If linking a library
9659 # or program results in "error TOC overflow" add -mminimal-toc to
9660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9662
9663 archive_cmds_CXX=''
9664 hardcode_direct_CXX=yes
9665 hardcode_libdir_separator_CXX=':'
9666 link_all_deplibs_CXX=yes
9667
9668 if test "$GXX" = yes; then
9669 case $host_os in aix4.012|aix4.012.*)
9670 # We only want to do this on AIX 4.2 and lower, the check
9671 # below for broken collect2 doesn't work under 4.3+
9672 collect2name=`${CC} -print-prog-name=collect2`
9673 if test -f "$collect2name" && \
9674 strings "$collect2name" | grep resolve_lib_name >/dev/null
9675 then
9676 # We have reworked collect2
9677 hardcode_direct_CXX=yes
9678 else
9679 # We have old collect2
9680 hardcode_direct_CXX=unsupported
9681 # It fails to find uninstalled libraries when the uninstalled
9682 # path is not listed in the libpath. Setting hardcode_minus_L
9683 # to unsupported forces relinking
9684 hardcode_minus_L_CXX=yes
9685 hardcode_libdir_flag_spec_CXX='-L$libdir'
9686 hardcode_libdir_separator_CXX=
9687 fi
9688 esac
9689 shared_flag='-shared'
9690 else
9691 # not using gcc
9692 if test "$host_cpu" = ia64; then
9693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9694 # chokes on -Wl,-G. The following line is correct:
9695 shared_flag='-G'
9696 else
9697 if test "$aix_use_runtimelinking" = yes; then
9698 shared_flag='${wl}-G'
9699 else
9700 shared_flag='${wl}-bM:SRE'
9701 fi
9702 fi
9703 fi
9704
9705 # It seems that -bexpall does not export symbols beginning with
9706 # underscore (_), so it is better to generate a list of symbols to export.
9707 always_export_symbols_CXX=yes
9708 if test "$aix_use_runtimelinking" = yes; then
9709 # Warning - without using the other runtime loading flags (-brtl),
9710 # -berok will link without error, but may produce a broken library.
9711 allow_undefined_flag_CXX='-berok'
9712 # Determine the default libpath from the value encoded in an empty executable.
9713 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009714/* confdefs.h. */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009719
John Criswell47fdd832003-07-14 16:52:07 +00009720int
9721main ()
9722{
9723
9724 ;
9725 return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
9729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009730 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009731 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009737 { ac_try='test -z "$ac_cxx_werror_flag"
9738 || test ! -s conftest.err'
9739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750
9751aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9752}'`
9753# Check for a 64-bit object if we didn't find anything.
9754if 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; }
9755}'`; fi
9756else
9757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009758sed 's/^/| /' conftest.$ac_ext >&5
9759
John Criswell47fdd832003-07-14 16:52:07 +00009760fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009761rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9766
9767 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"
9768 else
9769 if test "$host_cpu" = ia64; then
9770 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9771 allow_undefined_flag_CXX="-z nodefs"
9772 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"
9773 else
9774 # Determine the default libpath from the value encoded in an empty executable.
9775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009781
John Criswell47fdd832003-07-14 16:52:07 +00009782int
9783main ()
9784{
9785
9786 ;
9787 return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009792 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009793 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009799 { ac_try='test -z "$ac_cxx_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812
9813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9814}'`
9815# Check for a 64-bit object if we didn't find anything.
9816if 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; }
9817}'`; fi
9818else
9819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009820sed 's/^/| /' conftest.$ac_ext >&5
9821
John Criswell47fdd832003-07-14 16:52:07 +00009822fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009823rm -f conftest.err conftest.$ac_objext \
9824 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9826
9827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9828 # Warning - without using the other run time loading flags,
9829 # -berok will link without error, but may produce a broken library.
9830 no_undefined_flag_CXX=' ${wl}-bernotok'
9831 allow_undefined_flag_CXX=' ${wl}-berok'
9832 # -bexpall does not export symbols beginning with underscore (_)
9833 always_export_symbols_CXX=yes
9834 # Exported symbols can be pulled into shared objects from archives
9835 whole_archive_flag_spec_CXX=' '
9836 archive_cmds_need_lc_CXX=yes
9837 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00009838 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 +00009839 fi
9840 fi
9841 ;;
9842 chorus*)
9843 case $cc_basename in
9844 *)
9845 # FIXME: insert proper C++ library support
9846 ld_shlibs_CXX=no
9847 ;;
9848 esac
9849 ;;
9850
Reid Spencer2706f8c2004-09-19 23:53:36 +00009851
John Criswell47fdd832003-07-14 16:52:07 +00009852 cygwin* | mingw* | pw32*)
9853 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9854 # as there is no search path for DLLs.
9855 hardcode_libdir_flag_spec_CXX='-L$libdir'
9856 allow_undefined_flag_CXX=unsupported
9857 always_export_symbols_CXX=no
9858 enable_shared_with_static_runtimes_CXX=yes
9859
9860 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9861 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'
9862 # If the export-symbols file already is a .def file (1st line
9863 # is EXPORTS), use it as is; otherwise, prepend...
9864 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9865 cp $export_symbols $output_objdir/$soname.def;
9866 else
9867 echo EXPORTS > $output_objdir/$soname.def;
9868 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00009869 fi~
9870 $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 +00009871 else
9872 ld_shlibs_CXX=no
9873 fi
9874 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009875 darwin* | rhapsody*)
9876 case "$host_os" in
9877 rhapsody* | darwin1.[012])
9878 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9879 ;;
9880 *) # Darwin 1.3 on
9881 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9882 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9883 else
9884 case ${MACOSX_DEPLOYMENT_TARGET} in
9885 10.[012])
9886 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9887 ;;
9888 10.*)
9889 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9890 ;;
9891 esac
9892 fi
9893 ;;
9894 esac
9895 archive_cmds_need_lc_CXX=no
9896 hardcode_direct_CXX=no
9897 hardcode_automatic_CXX=yes
9898 hardcode_shlibpath_var_CXX=unsupported
9899 whole_archive_flag_spec_CXX=''
9900 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +00009901
Reid Spencer2706f8c2004-09-19 23:53:36 +00009902 if test "$GXX" = yes ; then
9903 lt_int_apple_cc_single_mod=no
9904 output_verbose_link_cmd='echo'
9905 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9906 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009907 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009908 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009909 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 +00009910 else
Reid Spencer177dbe22004-10-13 01:01:03 +00009911 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009912 fi
9913 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9915 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009916 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009917 else
Reid Spencer177dbe22004-10-13 01:01:03 +00009918 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009919 fi
Reid Spencer177dbe22004-10-13 01:01:03 +00009920 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009921 else
9922 case "$cc_basename" in
9923 xlc*)
9924 output_verbose_link_cmd='echo'
9925 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'
9926 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9927 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +00009928 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}'
9929 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009930 ;;
9931 *)
9932 ld_shlibs_CXX=no
9933 ;;
9934 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009935 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009936 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009937
9938 dgux*)
9939 case $cc_basename in
9940 ec++)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 ghcx)
9945 # Green Hills C++ Compiler
9946 # FIXME: insert proper C++ library support
9947 ld_shlibs_CXX=no
9948 ;;
9949 *)
9950 # FIXME: insert proper C++ library support
9951 ld_shlibs_CXX=no
9952 ;;
9953 esac
9954 ;;
9955 freebsd12*)
9956 # C++ shared libraries reported to be fairly broken before switch to ELF
9957 ld_shlibs_CXX=no
9958 ;;
9959 freebsd-elf*)
9960 archive_cmds_need_lc_CXX=no
9961 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009962 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009963 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9964 # conventions
9965 ld_shlibs_CXX=yes
9966 ;;
9967 gnu*)
9968 ;;
9969 hpux9*)
9970 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971 hardcode_libdir_separator_CXX=:
9972 export_dynamic_flag_spec_CXX='${wl}-E'
9973 hardcode_direct_CXX=yes
9974 hardcode_minus_L_CXX=yes # Not in the search PATH,
9975 # but as the default
9976 # location of the library.
9977
9978 case $cc_basename in
9979 CC)
9980 # FIXME: insert proper C++ library support
9981 ld_shlibs_CXX=no
9982 ;;
9983 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +00009984 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 +00009985 # Commands to make compiler produce verbose output that lists
9986 # what "hidden" libraries, object files and flags are used when
9987 # linking a shared library.
9988 #
9989 # There doesn't appear to be a way to prevent this compiler from
9990 # explicitly linking system object files so we need to strip them
9991 # from the output so that they don't get included in the library
9992 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009993 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 +00009994 ;;
9995 *)
9996 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009997 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 +00009998 else
9999 # FIXME: insert proper C++ library support
10000 ld_shlibs_CXX=no
10001 fi
10002 ;;
10003 esac
10004 ;;
10005 hpux10*|hpux11*)
10006 if test $with_gnu_ld = no; then
10007 case "$host_cpu" in
10008 hppa*64*)
10009 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10011 hardcode_libdir_separator_CXX=:
10012 ;;
10013 ia64*)
10014 hardcode_libdir_flag_spec_CXX='-L$libdir'
10015 ;;
10016 *)
10017 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10018 hardcode_libdir_separator_CXX=:
10019 export_dynamic_flag_spec_CXX='${wl}-E'
10020 ;;
10021 esac
10022 fi
10023 case "$host_cpu" in
10024 hppa*64*)
10025 hardcode_direct_CXX=no
10026 hardcode_shlibpath_var_CXX=no
10027 ;;
10028 ia64*)
10029 hardcode_direct_CXX=no
10030 hardcode_shlibpath_var_CXX=no
10031 hardcode_minus_L_CXX=yes # Not in the search PATH,
10032 # but as the default
10033 # location of the library.
10034 ;;
10035 *)
10036 hardcode_direct_CXX=yes
10037 hardcode_minus_L_CXX=yes # Not in the search PATH,
10038 # but as the default
10039 # location of the library.
10040 ;;
10041 esac
10042
10043 case $cc_basename in
10044 CC)
10045 # FIXME: insert proper C++ library support
10046 ld_shlibs_CXX=no
10047 ;;
10048 aCC)
10049 case "$host_cpu" in
10050 hppa*64*|ia64*)
10051 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10052 ;;
10053 *)
10054 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10055 ;;
10056 esac
10057 # Commands to make compiler produce verbose output that lists
10058 # what "hidden" libraries, object files and flags are used when
10059 # linking a shared library.
10060 #
10061 # There doesn't appear to be a way to prevent this compiler from
10062 # explicitly linking system object files so we need to strip them
10063 # from the output so that they don't get included in the library
10064 # dependencies.
10065 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'
10066 ;;
10067 *)
10068 if test "$GXX" = yes; then
10069 if test $with_gnu_ld = no; then
10070 case "$host_cpu" in
10071 ia64*|hppa*64*)
10072 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10073 ;;
10074 *)
10075 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'
10076 ;;
10077 esac
10078 fi
10079 else
10080 # FIXME: insert proper C++ library support
10081 ld_shlibs_CXX=no
10082 fi
10083 ;;
10084 esac
10085 ;;
10086 irix5* | irix6*)
10087 case $cc_basename in
10088 CC)
10089 # SGI C++
10090 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'
10091
10092 # Archives containing C++ object files must be created using
10093 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10094 # necessary to make sure instantiated templates are included
10095 # in the archive.
10096 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10097 ;;
10098 *)
10099 if test "$GXX" = yes; then
10100 if test "$with_gnu_ld" = no; then
10101 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'
10102 else
10103 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'
10104 fi
10105 fi
10106 link_all_deplibs_CXX=yes
10107 ;;
10108 esac
10109 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10110 hardcode_libdir_separator_CXX=:
10111 ;;
10112 linux*)
10113 case $cc_basename in
10114 KCC)
10115 # Kuck and Associates, Inc. (KAI) C++ Compiler
10116
10117 # KCC will only create a shared library if the output file
10118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10119 # to its proper name (with version) after linking.
10120 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'
10121 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'
10122 # Commands to make compiler produce verbose output that lists
10123 # what "hidden" libraries, object files and flags are used when
10124 # linking a shared library.
10125 #
10126 # There doesn't appear to be a way to prevent this compiler from
10127 # explicitly linking system object files so we need to strip them
10128 # from the output so that they don't get included in the library
10129 # dependencies.
10130 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'
10131
10132 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10133 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10134
10135 # Archives containing C++ object files must be created using
10136 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10137 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10138 ;;
10139 icpc)
10140 # Intel C++
10141 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010142 # version 8.0 and above of icpc choke on multiply defined symbols
10143 # if we add $predep_objects and $postdep_objects, however 7.1 and
10144 # earlier do not add the objects themselves.
10145 case `$CC -V 2>&1` in
10146 *"Version 7."*)
10147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148 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'
10149 ;;
10150 *) # Version 8.0 or newer
10151 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153 ;;
10154 esac
John Criswell47fdd832003-07-14 16:52:07 +000010155 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10158 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10159 ;;
10160 cxx)
10161 # Compaq C++
10162 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163 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'
10164
10165 runpath_var=LD_RUN_PATH
10166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10167 hardcode_libdir_separator_CXX=:
10168
10169 # Commands to make compiler produce verbose output that lists
10170 # what "hidden" libraries, object files and flags are used when
10171 # linking a shared library.
10172 #
10173 # There doesn't appear to be a way to prevent this compiler from
10174 # explicitly linking system object files so we need to strip them
10175 # from the output so that they don't get included in the library
10176 # dependencies.
10177 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'
10178 ;;
10179 esac
10180 ;;
10181 lynxos*)
10182 # FIXME: insert proper C++ library support
10183 ld_shlibs_CXX=no
10184 ;;
10185 m88k*)
10186 # FIXME: insert proper C++ library support
10187 ld_shlibs_CXX=no
10188 ;;
10189 mvs*)
10190 case $cc_basename in
10191 cxx)
10192 # FIXME: insert proper C++ library support
10193 ld_shlibs_CXX=no
10194 ;;
10195 *)
10196 # FIXME: insert proper C++ library support
10197 ld_shlibs_CXX=no
10198 ;;
10199 esac
10200 ;;
10201 netbsd*)
10202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10203 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10204 wlarc=
10205 hardcode_libdir_flag_spec_CXX='-R$libdir'
10206 hardcode_direct_CXX=yes
10207 hardcode_shlibpath_var_CXX=no
10208 fi
10209 # Workaround some broken pre-1.5 toolchains
10210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10211 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010212 openbsd2*)
10213 # C++ shared libraries are fairly broken
10214 ld_shlibs_CXX=no
10215 ;;
10216 openbsd*)
10217 hardcode_direct_CXX=yes
10218 hardcode_shlibpath_var_CXX=no
10219 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10220 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10222 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10223 export_dynamic_flag_spec_CXX='${wl}-E'
10224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10225 fi
10226 output_verbose_link_cmd='echo'
10227 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010228 osf3*)
10229 case $cc_basename in
10230 KCC)
10231 # Kuck and Associates, Inc. (KAI) C++ Compiler
10232
10233 # KCC will only create a shared library if the output file
10234 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10235 # to its proper name (with version) after linking.
10236 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'
10237
10238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10239 hardcode_libdir_separator_CXX=:
10240
10241 # Archives containing C++ object files must be created using
10242 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10243 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10244
10245 ;;
10246 RCC)
10247 # Rational C++ 2.4.1
10248 # FIXME: insert proper C++ library support
10249 ld_shlibs_CXX=no
10250 ;;
10251 cxx)
10252 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10253 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'
10254
10255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10256 hardcode_libdir_separator_CXX=:
10257
10258 # Commands to make compiler produce verbose output that lists
10259 # what "hidden" libraries, object files and flags are used when
10260 # linking a shared library.
10261 #
10262 # There doesn't appear to be a way to prevent this compiler from
10263 # explicitly linking system object files so we need to strip them
10264 # from the output so that they don't get included in the library
10265 # dependencies.
10266 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'
10267 ;;
10268 *)
10269 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10270 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10271 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'
10272
10273 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10274 hardcode_libdir_separator_CXX=:
10275
10276 # Commands to make compiler produce verbose output that lists
10277 # what "hidden" libraries, object files and flags are used when
10278 # linking a shared library.
10279 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10280
10281 else
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 fi
10285 ;;
10286 esac
10287 ;;
10288 osf4* | osf5*)
10289 case $cc_basename in
10290 KCC)
10291 # Kuck and Associates, Inc. (KAI) C++ Compiler
10292
10293 # KCC will only create a shared library if the output file
10294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295 # to its proper name (with version) after linking.
10296 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'
10297
10298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10299 hardcode_libdir_separator_CXX=:
10300
10301 # Archives containing C++ object files must be created using
10302 # the KAI C++ compiler.
10303 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10304 ;;
10305 RCC)
10306 # Rational C++ 2.4.1
10307 # FIXME: insert proper C++ library support
10308 ld_shlibs_CXX=no
10309 ;;
10310 cxx)
10311 allow_undefined_flag_CXX=' -expect_unresolved \*'
10312 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 Spencer177dbe22004-10-13 01:01:03 +000010313 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10314 echo "-hidden">> $lib.exp~
10315 $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~
10316 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010317
10318 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10319 hardcode_libdir_separator_CXX=:
10320
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10324 #
10325 # There doesn't appear to be a way to prevent this compiler from
10326 # explicitly linking system object files so we need to strip them
10327 # from the output so that they don't get included in the library
10328 # dependencies.
10329 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'
10330 ;;
10331 *)
10332 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10333 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10334 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'
10335
10336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10337 hardcode_libdir_separator_CXX=:
10338
10339 # Commands to make compiler produce verbose output that lists
10340 # what "hidden" libraries, object files and flags are used when
10341 # linking a shared library.
10342 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10343
10344 else
10345 # FIXME: insert proper C++ library support
10346 ld_shlibs_CXX=no
10347 fi
10348 ;;
10349 esac
10350 ;;
10351 psos*)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355 sco*)
10356 archive_cmds_need_lc_CXX=no
10357 case $cc_basename in
10358 CC)
10359 # FIXME: insert proper C++ library support
10360 ld_shlibs_CXX=no
10361 ;;
10362 *)
10363 # FIXME: insert proper C++ library support
10364 ld_shlibs_CXX=no
10365 ;;
10366 esac
10367 ;;
10368 sunos4*)
10369 case $cc_basename in
10370 CC)
10371 # Sun C++ 4.x
10372 # FIXME: insert proper C++ library support
10373 ld_shlibs_CXX=no
10374 ;;
10375 lcc)
10376 # Lucid
10377 # FIXME: insert proper C++ library support
10378 ld_shlibs_CXX=no
10379 ;;
10380 *)
10381 # FIXME: insert proper C++ library support
10382 ld_shlibs_CXX=no
10383 ;;
10384 esac
10385 ;;
10386 solaris*)
10387 case $cc_basename in
10388 CC)
10389 # Sun C++ 4.2, 5.x and Centerline C++
10390 no_undefined_flag_CXX=' -zdefs'
10391 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000010392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10393 $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 +000010394
10395 hardcode_libdir_flag_spec_CXX='-R$libdir'
10396 hardcode_shlibpath_var_CXX=no
10397 case $host_os in
10398 solaris2.0-5 | solaris2.0-5.*) ;;
10399 *)
10400 # The C++ compiler is used as linker so we must use $wl
10401 # flag to pass the commands to the underlying system
10402 # linker.
10403 # Supported since Solaris 2.6 (maybe 2.5.1?)
10404 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10405 ;;
10406 esac
10407 link_all_deplibs_CXX=yes
10408
10409 # Commands to make compiler produce verbose output that lists
10410 # what "hidden" libraries, object files and flags are used when
10411 # linking a shared library.
10412 #
10413 # There doesn't appear to be a way to prevent this compiler from
10414 # explicitly linking system object files so we need to strip them
10415 # from the output so that they don't get included in the library
10416 # dependencies.
10417 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'
10418
10419 # Archives containing C++ object files must be created using
10420 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10421 # necessary to make sure instantiated templates are included
10422 # in the archive.
10423 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10424 ;;
10425 gcx)
10426 # Green Hills C++ Compiler
10427 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10428
10429 # The C++ compiler must be used to create the archive.
10430 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10431 ;;
10432 *)
10433 # GNU C++ compiler with Solaris linker
10434 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10435 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10436 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010437 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000010438 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10439 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10440
John Criswell47fdd832003-07-14 16:52:07 +000010441 # Commands to make compiler produce verbose output that lists
10442 # what "hidden" libraries, object files and flags are used when
10443 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010444 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010445 else
10446 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10447 # platform.
10448 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000010449 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10450 $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 +000010451
10452 # Commands to make compiler produce verbose output that lists
10453 # what "hidden" libraries, object files and flags are used when
10454 # linking a shared library.
10455 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10456 fi
10457
10458 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10459 fi
10460 ;;
10461 esac
10462 ;;
10463 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10464 archive_cmds_need_lc_CXX=no
10465 ;;
10466 tandem*)
10467 case $cc_basename in
10468 NCC)
10469 # NonStop-UX NCC 3.20
10470 # FIXME: insert proper C++ library support
10471 ld_shlibs_CXX=no
10472 ;;
10473 *)
10474 # FIXME: insert proper C++ library support
10475 ld_shlibs_CXX=no
10476 ;;
10477 esac
10478 ;;
10479 vxworks*)
10480 # FIXME: insert proper C++ library support
10481 ld_shlibs_CXX=no
10482 ;;
10483 *)
10484 # FIXME: insert proper C++ library support
10485 ld_shlibs_CXX=no
10486 ;;
10487esac
10488echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10489echo "${ECHO_T}$ld_shlibs_CXX" >&6
10490test "$ld_shlibs_CXX" = no && can_build_shared=no
10491
10492GCC_CXX="$GXX"
10493LD_CXX="$LD"
10494
John Criswell47fdd832003-07-14 16:52:07 +000010495
10496cat > conftest.$ac_ext <<EOF
10497class Foo
10498{
10499public:
10500 Foo (void) { a = 0; }
10501private:
10502 int a;
10503};
10504EOF
10505
10506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10507 (eval $ac_compile) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; then
10511 # Parse the compiler output and extract the necessary
10512 # objects, libraries and library flags.
10513
10514 # Sentinel used to keep track of whether or not we are before
10515 # the conftest object file.
10516 pre_test_object_deps_done=no
10517
10518 # The `*' in the case matches for architectures that use `case' in
10519 # $output_verbose_cmd can trigger glob expansion during the loop
10520 # eval without this substitution.
10521 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10522
10523 for p in `eval $output_verbose_link_cmd`; do
10524 case $p in
10525
10526 -L* | -R* | -l*)
10527 # Some compilers place space between "-{L,R}" and the path.
10528 # Remove the space.
10529 if test $p = "-L" \
10530 || test $p = "-R"; then
10531 prev=$p
10532 continue
10533 else
10534 prev=
10535 fi
10536
10537 if test "$pre_test_object_deps_done" = no; then
10538 case $p in
10539 -L* | -R*)
10540 # Internal compiler library paths should come after those
10541 # provided the user. The postdeps already come after the
10542 # user supplied libs so there is no need to process them.
10543 if test -z "$compiler_lib_search_path_CXX"; then
10544 compiler_lib_search_path_CXX="${prev}${p}"
10545 else
10546 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10547 fi
10548 ;;
10549 # The "-l" case would never come before the object being
10550 # linked, so don't bother handling this case.
10551 esac
10552 else
10553 if test -z "$postdeps_CXX"; then
10554 postdeps_CXX="${prev}${p}"
10555 else
10556 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10557 fi
10558 fi
10559 ;;
10560
10561 *.$objext)
10562 # This assumes that the test object file only shows up
10563 # once in the compiler output.
10564 if test "$p" = "conftest.$objext"; then
10565 pre_test_object_deps_done=yes
10566 continue
10567 fi
10568
10569 if test "$pre_test_object_deps_done" = no; then
10570 if test -z "$predep_objects_CXX"; then
10571 predep_objects_CXX="$p"
10572 else
10573 predep_objects_CXX="$predep_objects_CXX $p"
10574 fi
10575 else
10576 if test -z "$postdep_objects_CXX"; then
10577 postdep_objects_CXX="$p"
10578 else
10579 postdep_objects_CXX="$postdep_objects_CXX $p"
10580 fi
10581 fi
10582 ;;
10583
10584 *) ;; # Ignore the rest.
10585
10586 esac
10587 done
10588
10589 # Clean up.
10590 rm -f a.out a.exe
10591else
10592 echo "libtool.m4: error: problem compiling CXX test program"
10593fi
10594
10595$rm -f confest.$objext
10596
10597case " $postdeps_CXX " in
10598*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10599esac
10600
10601lt_prog_compiler_wl_CXX=
10602lt_prog_compiler_pic_CXX=
10603lt_prog_compiler_static_CXX=
10604
10605echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10606echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10607
10608 # C++ specific cases for pic, static, wl, etc.
10609 if test "$GXX" = yes; then
10610 lt_prog_compiler_wl_CXX='-Wl,'
10611 lt_prog_compiler_static_CXX='-static'
10612
10613 case $host_os in
10614 aix*)
10615 # All AIX code is PIC.
10616 if test "$host_cpu" = ia64; then
10617 # AIX 5 now supports IA64 processor
10618 lt_prog_compiler_static_CXX='-Bstatic'
10619 fi
10620 ;;
10621 amigaos*)
10622 # FIXME: we need at least 68020 code to build shared libraries, but
10623 # adding the `-m68020' flag to GCC prevents building anything better,
10624 # like `-m68040'.
10625 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10626 ;;
10627 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10628 # PIC is the default for these OSes.
10629 ;;
10630 mingw* | os2* | pw32*)
10631 # This hack is so that the source file can tell whether it is being
10632 # built for inclusion in a dll (and should export symbols for example).
10633 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10634 ;;
10635 darwin* | rhapsody*)
10636 # PIC is the default on this platform
10637 # Common symbols not allowed in MH_DYLIB files
10638 lt_prog_compiler_pic_CXX='-fno-common'
10639 ;;
10640 *djgpp*)
10641 # DJGPP does not support shared libraries at all
10642 lt_prog_compiler_pic_CXX=
10643 ;;
10644 sysv4*MP*)
10645 if test -d /usr/nec; then
10646 lt_prog_compiler_pic_CXX=-Kconform_pic
10647 fi
10648 ;;
10649 hpux*)
10650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10651 # not for PA HP-UX.
10652 case "$host_cpu" in
10653 hppa*64*|ia64*)
10654 ;;
10655 *)
10656 lt_prog_compiler_pic_CXX='-fPIC'
10657 ;;
10658 esac
10659 ;;
10660 *)
10661 lt_prog_compiler_pic_CXX='-fPIC'
10662 ;;
10663 esac
10664 else
10665 case $host_os in
10666 aix4* | aix5*)
10667 # All AIX code is PIC.
10668 if test "$host_cpu" = ia64; then
10669 # AIX 5 now supports IA64 processor
10670 lt_prog_compiler_static_CXX='-Bstatic'
10671 else
10672 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10673 fi
10674 ;;
10675 chorus*)
10676 case $cc_basename in
10677 cxch68)
10678 # Green Hills C++ Compiler
10679 # _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"
10680 ;;
10681 esac
10682 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010683 darwin*)
10684 # PIC is the default on this platform
10685 # Common symbols not allowed in MH_DYLIB files
10686 case "$cc_basename" in
10687 xlc*)
10688 lt_prog_compiler_pic_CXX='-qnocommon'
10689 lt_prog_compiler_wl_CXX='-Wl,'
10690 ;;
10691 esac
10692 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010693 dgux*)
10694 case $cc_basename in
10695 ec++)
10696 lt_prog_compiler_pic_CXX='-KPIC'
10697 ;;
10698 ghcx)
10699 # Green Hills C++ Compiler
10700 lt_prog_compiler_pic_CXX='-pic'
10701 ;;
10702 *)
10703 ;;
10704 esac
10705 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010706 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010707 # FreeBSD uses GNU C++
10708 ;;
10709 hpux9* | hpux10* | hpux11*)
10710 case $cc_basename in
10711 CC)
10712 lt_prog_compiler_wl_CXX='-Wl,'
10713 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10714 if test "$host_cpu" != ia64; then
10715 lt_prog_compiler_pic_CXX='+Z'
10716 fi
10717 ;;
10718 aCC)
10719 lt_prog_compiler_wl_CXX='-Wl,'
10720 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10721 case "$host_cpu" in
10722 hppa*64*|ia64*)
10723 # +Z the default
10724 ;;
10725 *)
10726 lt_prog_compiler_pic_CXX='+Z'
10727 ;;
10728 esac
10729 ;;
10730 *)
10731 ;;
10732 esac
10733 ;;
10734 irix5* | irix6* | nonstopux*)
10735 case $cc_basename in
10736 CC)
10737 lt_prog_compiler_wl_CXX='-Wl,'
10738 lt_prog_compiler_static_CXX='-non_shared'
10739 # CC pic flag -KPIC is the default.
10740 ;;
10741 *)
10742 ;;
10743 esac
10744 ;;
10745 linux*)
10746 case $cc_basename in
10747 KCC)
10748 # KAI C++ Compiler
10749 lt_prog_compiler_wl_CXX='--backend -Wl,'
10750 lt_prog_compiler_pic_CXX='-fPIC'
10751 ;;
10752 icpc)
10753 # Intel C++
10754 lt_prog_compiler_wl_CXX='-Wl,'
10755 lt_prog_compiler_pic_CXX='-KPIC'
10756 lt_prog_compiler_static_CXX='-static'
10757 ;;
10758 cxx)
10759 # Compaq C++
10760 # Make sure the PIC flag is empty. It appears that all Alpha
10761 # Linux and Compaq Tru64 Unix objects are PIC.
10762 lt_prog_compiler_pic_CXX=
10763 lt_prog_compiler_static_CXX='-non_shared'
10764 ;;
10765 *)
10766 ;;
10767 esac
10768 ;;
10769 lynxos*)
10770 ;;
10771 m88k*)
10772 ;;
10773 mvs*)
10774 case $cc_basename in
10775 cxx)
10776 lt_prog_compiler_pic_CXX='-W c,exportall'
10777 ;;
10778 *)
10779 ;;
10780 esac
10781 ;;
10782 netbsd*)
10783 ;;
10784 osf3* | osf4* | osf5*)
10785 case $cc_basename in
10786 KCC)
10787 lt_prog_compiler_wl_CXX='--backend -Wl,'
10788 ;;
10789 RCC)
10790 # Rational C++ 2.4.1
10791 lt_prog_compiler_pic_CXX='-pic'
10792 ;;
10793 cxx)
10794 # Digital/Compaq C++
10795 lt_prog_compiler_wl_CXX='-Wl,'
10796 # Make sure the PIC flag is empty. It appears that all Alpha
10797 # Linux and Compaq Tru64 Unix objects are PIC.
10798 lt_prog_compiler_pic_CXX=
10799 lt_prog_compiler_static_CXX='-non_shared'
10800 ;;
10801 *)
10802 ;;
10803 esac
10804 ;;
10805 psos*)
10806 ;;
10807 sco*)
10808 case $cc_basename in
10809 CC)
10810 lt_prog_compiler_pic_CXX='-fPIC'
10811 ;;
10812 *)
10813 ;;
10814 esac
10815 ;;
10816 solaris*)
10817 case $cc_basename in
10818 CC)
10819 # Sun C++ 4.2, 5.x and Centerline C++
10820 lt_prog_compiler_pic_CXX='-KPIC'
10821 lt_prog_compiler_static_CXX='-Bstatic'
10822 lt_prog_compiler_wl_CXX='-Qoption ld '
10823 ;;
10824 gcx)
10825 # Green Hills C++ Compiler
10826 lt_prog_compiler_pic_CXX='-PIC'
10827 ;;
10828 *)
10829 ;;
10830 esac
10831 ;;
10832 sunos4*)
10833 case $cc_basename in
10834 CC)
10835 # Sun C++ 4.x
10836 lt_prog_compiler_pic_CXX='-pic'
10837 lt_prog_compiler_static_CXX='-Bstatic'
10838 ;;
10839 lcc)
10840 # Lucid
10841 lt_prog_compiler_pic_CXX='-pic'
10842 ;;
10843 *)
10844 ;;
10845 esac
10846 ;;
10847 tandem*)
10848 case $cc_basename in
10849 NCC)
10850 # NonStop-UX NCC 3.20
10851 lt_prog_compiler_pic_CXX='-KPIC'
10852 ;;
10853 *)
10854 ;;
10855 esac
10856 ;;
10857 unixware*)
10858 ;;
10859 vxworks*)
10860 ;;
10861 *)
10862 lt_prog_compiler_can_build_shared_CXX=no
10863 ;;
10864 esac
10865 fi
10866
10867echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10868echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10869
10870#
10871# Check to make sure the PIC flag actually works.
10872#
10873if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010874
10875echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010876echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10877if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880 lt_prog_compiler_pic_works_CXX=no
10881 ac_outfile=conftest.$ac_objext
10882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10883 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10884 # Insert the option either (1) after the last *FLAGS variable, or
10885 # (2) before a word containing "conftest.", or (3) at the end.
10886 # Note that $ac_compile itself does not contain backslashes and begins
10887 # with a dollar sign (not a hyphen), so the echo should work correctly.
10888 # The option is referenced via a variable to avoid confusing sed.
10889 lt_compile=`echo "$ac_compile" | $SED \
10890 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10892 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000010893 (eval echo "\"\$as_me:10893: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010894 (eval "$lt_compile" 2>conftest.err)
10895 ac_status=$?
10896 cat conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000010897 echo "$as_me:10897: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010898 if (exit $ac_status) && test -s "$ac_outfile"; then
10899 # The compiler can only warn and ignore the option if not recognized
10900 # So say no if there are warnings
10901 if test ! -s conftest.err; then
10902 lt_prog_compiler_pic_works_CXX=yes
10903 fi
10904 fi
10905 $rm conftest*
10906
10907fi
10908echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10909echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10910
10911if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10912 case $lt_prog_compiler_pic_CXX in
10913 "" | " "*) ;;
10914 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10915 esac
10916else
10917 lt_prog_compiler_pic_CXX=
10918 lt_prog_compiler_can_build_shared_CXX=no
10919fi
10920
10921fi
10922case "$host_os" in
10923 # For platforms which do not support PIC, -DPIC is meaningless:
10924 *djgpp*)
10925 lt_prog_compiler_pic_CXX=
10926 ;;
10927 *)
10928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10929 ;;
10930esac
10931
10932echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10933echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10934if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 lt_cv_prog_compiler_c_o_CXX=no
10938 $rm -r conftest 2>/dev/null
10939 mkdir conftest
10940 cd conftest
10941 mkdir out
10942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10943
John Criswell47fdd832003-07-14 16:52:07 +000010944 lt_compiler_flag="-o out/conftest2.$ac_objext"
10945 # Insert the option either (1) after the last *FLAGS variable, or
10946 # (2) before a word containing "conftest.", or (3) at the end.
10947 # Note that $ac_compile itself does not contain backslashes and begins
10948 # with a dollar sign (not a hyphen), so the echo should work correctly.
10949 lt_compile=`echo "$ac_compile" | $SED \
10950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10952 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000010953 (eval echo "\"\$as_me:10953: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010954 (eval "$lt_compile" 2>out/conftest.err)
10955 ac_status=$?
10956 cat out/conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000010957 echo "$as_me:10957: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10959 then
10960 # The compiler can only warn and ignore the option if not recognized
10961 # So say no if there are warnings
10962 if test ! -s out/conftest.err; then
10963 lt_cv_prog_compiler_c_o_CXX=yes
10964 fi
10965 fi
10966 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000010967 $rm conftest*
10968 # SGI C++ compiler will create directory out/ii_files/ for
10969 # template instantiation
10970 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10971 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010972 cd ..
10973 rmdir conftest
10974 $rm conftest*
10975
10976fi
10977echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10978echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10979
10980
10981hard_links="nottested"
10982if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10983 # do not overwrite the value of need_locks provided by the user
10984 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10985echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10986 hard_links=yes
10987 $rm conftest*
10988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10989 touch conftest.a
10990 ln conftest.a conftest.b 2>&5 || hard_links=no
10991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10992 echo "$as_me:$LINENO: result: $hard_links" >&5
10993echo "${ECHO_T}$hard_links" >&6
10994 if test "$hard_links" = no; then
10995 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10996echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10997 need_locks=warn
10998 fi
10999else
11000 need_locks=no
11001fi
11002
11003echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11004echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11005
11006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11007 case $host_os in
11008 aix4* | aix5*)
11009 # If we're using GNU nm, then we don't want the "-C" option.
11010 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11011 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11012 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'
11013 else
11014 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'
11015 fi
11016 ;;
11017 pw32*)
11018 export_symbols_cmds_CXX="$ltdll_cmds"
11019 ;;
11020 cygwin* | mingw*)
11021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11022 ;;
11023 *)
11024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11025 ;;
11026 esac
11027
11028echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11029echo "${ECHO_T}$ld_shlibs_CXX" >&6
11030test "$ld_shlibs_CXX" = no && can_build_shared=no
11031
11032variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11033if test "$GCC" = yes; then
11034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11035fi
11036
11037#
11038# Do we need to explicitly link libc?
11039#
11040case "x$archive_cmds_need_lc_CXX" in
11041x|xyes)
11042 # Assume -lc should be added
11043 archive_cmds_need_lc_CXX=yes
11044
11045 if test "$enable_shared" = yes && test "$GCC" = yes; then
11046 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011047 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011048 # FIXME: we may have to deal with multi-command sequences.
11049 ;;
11050 '$CC '*)
11051 # Test whether the compiler implicitly links with -lc since on some
11052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11053 # to ld, don't add -lc before -lgcc.
11054 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11055echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11056 $rm conftest*
11057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11058
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060 (eval $ac_compile) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } 2>conftest.err; then
11064 soname=conftest
11065 lib=conftest
11066 libobjs=conftest.$ac_objext
11067 deplibs=
11068 wl=$lt_prog_compiler_wl_CXX
11069 compiler_flags=-v
11070 linker_flags=-v
11071 verstring=
11072 output_objdir=.
11073 libname=conftest
11074 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11075 allow_undefined_flag_CXX=
11076 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11077 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }
11081 then
11082 archive_cmds_need_lc_CXX=no
11083 else
11084 archive_cmds_need_lc_CXX=yes
11085 fi
11086 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11087 else
11088 cat conftest.err 1>&5
11089 fi
11090 $rm conftest*
11091 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11092echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11093 ;;
11094 esac
11095 fi
11096 ;;
11097esac
11098
John Criswell47fdd832003-07-14 16:52:07 +000011099echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11100echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11101library_names_spec=
11102libname_spec='lib$name'
11103soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011104shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011105postinstall_cmds=
11106postuninstall_cmds=
11107finish_cmds=
11108finish_eval=
11109shlibpath_var=
11110shlibpath_overrides_runpath=unknown
11111version_type=none
11112dynamic_linker="$host_os ld.so"
11113sys_lib_dlsearch_path_spec="/lib /usr/lib"
11114if test "$GCC" = yes; then
11115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11116 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11117 # if the path contains ";" then we assume it to be the separator
11118 # otherwise default to the standard path separator (i.e. ":") - it is
11119 # assumed that no part of a normal pathname contains ";" but that should
11120 # okay in the real world where ";" in dirpaths is itself problematic.
11121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11122 else
11123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11124 fi
11125else
11126 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11127fi
11128need_lib_prefix=unknown
11129hardcode_into_libs=no
11130
11131# when you set need_version to no, make sure it does not cause -set_version
11132# flags to be left without arguments
11133need_version=unknown
11134
11135case $host_os in
11136aix3*)
11137 version_type=linux
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11139 shlibpath_var=LIBPATH
11140
11141 # AIX 3 has no versioning support, so we append a major version to the name.
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 ;;
11144
11145aix4* | aix5*)
11146 version_type=linux
11147 need_lib_prefix=no
11148 need_version=no
11149 hardcode_into_libs=yes
11150 if test "$host_cpu" = ia64; then
11151 # AIX 5 supports IA64
11152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 else
11155 # With GCC up to 2.95.x, collect2 would create an import file
11156 # for dependence libraries. The import file would start with
11157 # the line `#! .'. This would cause the generated library to
11158 # depend on `.', always an invalid library. This was fixed in
11159 # development snapshots of GCC prior to 3.0.
11160 case $host_os in
11161 aix4 | aix4.[01] | aix4.[01].*)
11162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11163 echo ' yes '
11164 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11165 :
11166 else
11167 can_build_shared=no
11168 fi
11169 ;;
11170 esac
11171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11172 # soname into executable. Probably we can add versioning support to
11173 # collect2, so additional links can be useful in future.
11174 if test "$aix_use_runtimelinking" = yes; then
11175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11176 # instead of lib<name>.a to let people know that these are not
11177 # typical AIX shared libraries.
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 else
11180 # We preserve .a as extension for shared libraries through AIX4.2
11181 # and later when we are not doing run time linking.
11182 library_names_spec='${libname}${release}.a $libname.a'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 fi
11185 shlibpath_var=LIBPATH
11186 fi
11187 ;;
11188
11189amigaos*)
11190 library_names_spec='$libname.ixlibrary $libname.a'
11191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011192 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 +000011193 ;;
11194
11195beos*)
11196 library_names_spec='${libname}${shared_ext}'
11197 dynamic_linker="$host_os ld.so"
11198 shlibpath_var=LIBRARY_PATH
11199 ;;
11200
Reid Spencer2706f8c2004-09-19 23:53:36 +000011201bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000011202 version_type=linux
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11209 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11210 # the default ld.so.conf also contains /usr/contrib/lib and
11211 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11212 # libtool to hard-code these into programs
11213 ;;
11214
11215cygwin* | mingw* | pw32*)
11216 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000011217 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011218 need_version=no
11219 need_lib_prefix=no
11220
11221 case $GCC,$host_os in
11222 yes,cygwin* | yes,mingw* | yes,pw32*)
11223 library_names_spec='$libname.dll.a'
11224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000011225 postinstall_cmds='base_file=`basename \${file}`~
11226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11227 dldir=$destdir/`dirname \$dlpath`~
11228 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000011229 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000011230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11231 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000011232 $rm \$dlpath'
11233 shlibpath_overrides_runpath=yes
11234
11235 case $host_os in
11236 cygwin*)
11237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11238 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 +000011239 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011240 ;;
11241 mingw*)
11242 # MinGW DLLs use traditional 'lib' prefix
11243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11245 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11246 # It is most probably a Windows format PATH printed by
11247 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11248 # path with ; separators, and with drive letters. We can handle the
11249 # drive letters (cygwin fileutils understands them), so leave them,
11250 # especially as we might pass files found there to a mingw objdump,
11251 # which wouldn't understand a cygwinified path. Ahh.
11252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11253 else
11254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11255 fi
11256 ;;
11257 pw32*)
11258 # pw32 DLLs use 'pw' prefix rather than 'lib'
11259 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11260 ;;
11261 esac
11262 ;;
11263
11264 *)
11265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11266 ;;
11267 esac
11268 dynamic_linker='Win32 ld.exe'
11269 # FIXME: first we should search . and the directory the executable is in
11270 shlibpath_var=PATH
11271 ;;
11272
11273darwin* | rhapsody*)
11274 dynamic_linker="$host_os dyld"
11275 version_type=darwin
11276 need_lib_prefix=no
11277 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000011278 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000011279 soname_spec='${libname}${release}${major}$shared_ext'
11280 shlibpath_overrides_runpath=yes
11281 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000011282 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000011283 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011284 if test "$GCC" = yes; then
11285 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"`
11286 else
11287 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011288 fi
11289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11290 ;;
11291
11292dgux*)
11293 version_type=linux
11294 need_lib_prefix=no
11295 need_version=no
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 ;;
11300
11301freebsd1*)
11302 dynamic_linker=no
11303 ;;
11304
Reid Spencer2706f8c2004-09-19 23:53:36 +000011305kfreebsd*-gnu)
11306 version_type=linux
11307 need_lib_prefix=no
11308 need_version=no
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=no
11313 hardcode_into_libs=yes
11314 dynamic_linker='GNU ld.so'
11315 ;;
11316
John Criswell47fdd832003-07-14 16:52:07 +000011317freebsd*)
11318 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11319 version_type=freebsd-$objformat
11320 case $version_type in
11321 freebsd-elf*)
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11323 need_version=no
11324 need_lib_prefix=no
11325 ;;
11326 freebsd-*)
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11328 need_version=yes
11329 ;;
11330 esac
11331 shlibpath_var=LD_LIBRARY_PATH
11332 case $host_os in
11333 freebsd2*)
11334 shlibpath_overrides_runpath=yes
11335 ;;
11336 freebsd3.01* | freebsdelf3.01*)
11337 shlibpath_overrides_runpath=yes
11338 hardcode_into_libs=yes
11339 ;;
11340 *) # from 3.2 on
11341 shlibpath_overrides_runpath=no
11342 hardcode_into_libs=yes
11343 ;;
11344 esac
11345 ;;
11346
11347gnu*)
11348 version_type=linux
11349 need_lib_prefix=no
11350 need_version=no
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 hardcode_into_libs=yes
11355 ;;
11356
11357hpux9* | hpux10* | hpux11*)
11358 # Give a soname corresponding to the major version so that dld.sl refuses to
11359 # link against other versions.
11360 version_type=sunos
11361 need_lib_prefix=no
11362 need_version=no
11363 case "$host_cpu" in
11364 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011365 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000011366 hardcode_into_libs=yes
11367 dynamic_linker="$host_os dld.so"
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 if test "X$HPUX_IA64_MODE" = X32; then
11373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11374 else
11375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11376 fi
11377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11378 ;;
11379 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011380 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011381 hardcode_into_libs=yes
11382 dynamic_linker="$host_os dld.sl"
11383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11389 ;;
11390 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011391 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011392 dynamic_linker="$host_os dld.sl"
11393 shlibpath_var=SHLIB_PATH
11394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 ;;
11398 esac
11399 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11400 postinstall_cmds='chmod 555 $lib'
11401 ;;
11402
11403irix5* | irix6* | nonstopux*)
11404 case $host_os in
11405 nonstopux*) version_type=nonstopux ;;
11406 *)
11407 if test "$lt_cv_prog_gnu_ld" = yes; then
11408 version_type=linux
11409 else
11410 version_type=irix
11411 fi ;;
11412 esac
11413 need_lib_prefix=no
11414 need_version=no
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11417 case $host_os in
11418 irix5* | nonstopux*)
11419 libsuff= shlibsuff=
11420 ;;
11421 *)
11422 case $LD in # libtool.m4 will add one of these switches to LD
11423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11424 libsuff= shlibsuff= libmagic=32-bit;;
11425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11426 libsuff=32 shlibsuff=N32 libmagic=N32;;
11427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11429 *) libsuff= shlibsuff= libmagic=never-match;;
11430 esac
11431 ;;
11432 esac
11433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434 shlibpath_overrides_runpath=no
11435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11437 hardcode_into_libs=yes
11438 ;;
11439
11440# No shared lib support for Linux oldld, aout, or coff.
11441linux*oldld* | linux*aout* | linux*coff*)
11442 dynamic_linker=no
11443 ;;
11444
11445# This must be Linux ELF.
11446linux*)
11447 version_type=linux
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=no
11455 # This implies no fast_install, which is unacceptable.
11456 # Some rework will be needed to allow for fast_install
11457 # before this can be enabled.
11458 hardcode_into_libs=yes
11459
Reid Spencer2706f8c2004-09-19 23:53:36 +000011460 # Append ld.so.conf contents to the search path
11461 if test -f /etc/ld.so.conf; then
11462 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11464 fi
11465
John Criswell47fdd832003-07-14 16:52:07 +000011466 # We used to test for /lib/ld.so.1 and disable shared libraries on
11467 # powerpc, because MkLinux only supported shared libraries with the
11468 # GNU dynamic linker. Since this was broken with cross compilers,
11469 # most powerpc-linux boxes support dynamic linking these days and
11470 # people can always --disable-shared, the test was removed, and we
11471 # assume the GNU/Linux dynamic linker is in use.
11472 dynamic_linker='GNU/Linux ld.so'
11473 ;;
11474
Reid Spencer2706f8c2004-09-19 23:53:36 +000011475knetbsd*-gnu)
11476 version_type=linux
11477 need_lib_prefix=no
11478 need_version=no
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=no
11483 hardcode_into_libs=yes
11484 dynamic_linker='GNU ld.so'
11485 ;;
11486
John Criswell47fdd832003-07-14 16:52:07 +000011487netbsd*)
11488 version_type=sunos
11489 need_lib_prefix=no
11490 need_version=no
11491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494 dynamic_linker='NetBSD (a.out) ld.so'
11495 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000011497 soname_spec='${libname}${release}${shared_ext}$major'
11498 dynamic_linker='NetBSD ld.elf_so'
11499 fi
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11503 ;;
11504
11505newsos6)
11506 version_type=linux
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 ;;
11511
Reid Spencer2706f8c2004-09-19 23:53:36 +000011512nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011513 version_type=linux
11514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 ;;
11521
11522openbsd*)
11523 version_type=sunos
11524 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011525 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11530 case $host_os in
11531 openbsd2.[89] | openbsd2.[89].*)
11532 shlibpath_overrides_runpath=no
11533 ;;
11534 *)
11535 shlibpath_overrides_runpath=yes
11536 ;;
11537 esac
11538 else
11539 shlibpath_overrides_runpath=yes
11540 fi
11541 ;;
11542
11543os2*)
11544 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011545 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011546 need_lib_prefix=no
11547 library_names_spec='$libname${shared_ext} $libname.a'
11548 dynamic_linker='OS/2 ld.exe'
11549 shlibpath_var=LIBPATH
11550 ;;
11551
11552osf3* | osf4* | osf5*)
11553 version_type=osf
11554 need_lib_prefix=no
11555 need_version=no
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 shlibpath_var=LD_LIBRARY_PATH
11559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11561 ;;
11562
11563sco3.2v5*)
11564 version_type=osf
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 ;;
11569
11570solaris*)
11571 version_type=linux
11572 need_lib_prefix=no
11573 need_version=no
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11579 # ldd complains unless libraries are executable
11580 postinstall_cmds='chmod +x $lib'
11581 ;;
11582
11583sunos4*)
11584 version_type=sunos
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 if test "$with_gnu_ld" = yes; then
11590 need_lib_prefix=no
11591 fi
11592 need_version=yes
11593 ;;
11594
11595sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11596 version_type=linux
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 case $host_vendor in
11601 sni)
11602 shlibpath_overrides_runpath=no
11603 need_lib_prefix=no
11604 export_dynamic_flag_spec='${wl}-Blargedynsym'
11605 runpath_var=LD_RUN_PATH
11606 ;;
11607 siemens)
11608 need_lib_prefix=no
11609 ;;
11610 motorola)
11611 need_lib_prefix=no
11612 need_version=no
11613 shlibpath_overrides_runpath=no
11614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11615 ;;
11616 esac
11617 ;;
11618
11619sysv4*MP*)
11620 if test -d /usr/nec ;then
11621 version_type=linux
11622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11623 soname_spec='$libname${shared_ext}.$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 fi
11626 ;;
11627
11628uts4*)
11629 version_type=linux
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LD_LIBRARY_PATH
11633 ;;
11634
11635*)
11636 dynamic_linker=no
11637 ;;
11638esac
11639echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11640echo "${ECHO_T}$dynamic_linker" >&6
11641test "$dynamic_linker" = no && can_build_shared=no
11642
Reid Spencer2706f8c2004-09-19 23:53:36 +000011643echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11644echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11645hardcode_action_CXX=
11646if test -n "$hardcode_libdir_flag_spec_CXX" || \
11647 test -n "$runpath_var_CXX" || \
11648 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11649
11650 # We can hardcode non-existant directories.
11651 if test "$hardcode_direct_CXX" != no &&
11652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11653 # have to relink, otherwise we might link with an installed library
11654 # when we should be linking with a yet-to-be-installed one
11655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11656 test "$hardcode_minus_L_CXX" != no; then
11657 # Linking always hardcodes the temporary library directory.
11658 hardcode_action_CXX=relink
11659 else
11660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11661 hardcode_action_CXX=immediate
11662 fi
11663else
11664 # We cannot hardcode anything, or else we can only hardcode existing
11665 # directories.
11666 hardcode_action_CXX=unsupported
11667fi
11668echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11669echo "${ECHO_T}$hardcode_action_CXX" >&6
11670
11671if test "$hardcode_action_CXX" = relink; then
11672 # Fast installation is not supported
11673 enable_fast_install=no
11674elif test "$shlibpath_overrides_runpath" = yes ||
11675 test "$enable_shared" = no; then
11676 # Fast installation is not necessary
11677 enable_fast_install=needless
11678fi
11679
11680striplib=
11681old_striplib=
11682echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11683echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11684if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11686 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11687 echo "$as_me:$LINENO: result: yes" >&5
11688echo "${ECHO_T}yes" >&6
11689else
11690# FIXME - insert some real tests, host_os isn't really good enough
11691 case $host_os in
11692 darwin*)
11693 if test -n "$STRIP" ; then
11694 striplib="$STRIP -x"
11695 echo "$as_me:$LINENO: result: yes" >&5
11696echo "${ECHO_T}yes" >&6
11697 else
11698 echo "$as_me:$LINENO: result: no" >&5
11699echo "${ECHO_T}no" >&6
11700fi
11701 ;;
11702 *)
11703 echo "$as_me:$LINENO: result: no" >&5
11704echo "${ECHO_T}no" >&6
11705 ;;
11706 esac
11707fi
11708
John Criswell47fdd832003-07-14 16:52:07 +000011709if test "x$enable_dlopen" != xyes; then
11710 enable_dlopen=unknown
11711 enable_dlopen_self=unknown
11712 enable_dlopen_self_static=unknown
11713else
11714 lt_cv_dlopen=no
11715 lt_cv_dlopen_libs=
11716
11717 case $host_os in
11718 beos*)
11719 lt_cv_dlopen="load_add_on"
11720 lt_cv_dlopen_libs=
11721 lt_cv_dlopen_self=yes
11722 ;;
11723
11724 mingw* | pw32*)
11725 lt_cv_dlopen="LoadLibrary"
11726 lt_cv_dlopen_libs=
11727 ;;
11728
11729 cygwin*)
11730 lt_cv_dlopen="dlopen"
11731 lt_cv_dlopen_libs=
11732 ;;
11733
11734 darwin*)
11735 # if libdl is installed we need to link against it
11736 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11737echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11738if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740else
11741 ac_check_lib_save_LIBS=$LIBS
11742LIBS="-ldl $LIBS"
11743cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011749
11750/* Override any gcc2 internal prototype to avoid an error. */
11751#ifdef __cplusplus
11752extern "C"
11753#endif
11754/* We use char because int might match the return type of a gcc2
11755 builtin and then its argument prototype would still apply. */
11756char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011757int
11758main ()
11759{
11760dlopen ();
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext conftest$ac_exeext
11766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011767 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011774 { ac_try='test -z "$ac_cxx_werror_flag"
11775 || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_lib_dl_dlopen=yes
11788else
11789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011790sed 's/^/| /' conftest.$ac_ext >&5
11791
John Criswell47fdd832003-07-14 16:52:07 +000011792ac_cv_lib_dl_dlopen=no
11793fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011794rm -f conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011796LIBS=$ac_check_lib_save_LIBS
11797fi
11798echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11799echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11800if test $ac_cv_lib_dl_dlopen = yes; then
11801 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11802else
11803
11804 lt_cv_dlopen="dyld"
11805 lt_cv_dlopen_libs=
11806 lt_cv_dlopen_self=yes
11807
11808fi
11809
11810 ;;
11811
11812 *)
11813 echo "$as_me:$LINENO: checking for shl_load" >&5
11814echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11815if test "${ac_cv_func_shl_load+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11817else
11818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011819/* confdefs.h. */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011824/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11826#define shl_load innocuous_shl_load
11827
John Criswell47fdd832003-07-14 16:52:07 +000011828/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011829 which can conflict with char shl_load (); below.
11830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11831 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011832
John Criswell0c38eaf2003-09-10 15:17:25 +000011833#ifdef __STDC__
11834# include <limits.h>
11835#else
11836# include <assert.h>
11837#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011838
11839#undef shl_load
11840
John Criswell47fdd832003-07-14 16:52:07 +000011841/* Override any gcc2 internal prototype to avoid an error. */
11842#ifdef __cplusplus
11843extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011844{
John Criswell47fdd832003-07-14 16:52:07 +000011845#endif
11846/* We use char because int might match the return type of a gcc2
11847 builtin and then its argument prototype would still apply. */
11848char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011849/* The GNU C library defines this for functions which it implements
11850 to always fail with ENOSYS. Some functions are actually named
11851 something starting with __ and the normal name is an alias. */
11852#if defined (__stub_shl_load) || defined (__stub___shl_load)
11853choke me
11854#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011855char (*f) () = shl_load;
11856#endif
11857#ifdef __cplusplus
11858}
John Criswell47fdd832003-07-14 16:52:07 +000011859#endif
11860
John Criswell0c38eaf2003-09-10 15:17:25 +000011861int
11862main ()
11863{
11864return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest.$ac_objext conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011871 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011872 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011878 { ac_try='test -z "$ac_cxx_werror_flag"
11879 || test ! -s conftest.err'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; } &&
11885 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_func_shl_load=yes
11892else
11893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011894sed 's/^/| /' conftest.$ac_ext >&5
11895
John Criswell47fdd832003-07-14 16:52:07 +000011896ac_cv_func_shl_load=no
11897fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011898rm -f conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011900fi
11901echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11902echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11903if test $ac_cv_func_shl_load = yes; then
11904 lt_cv_dlopen="shl_load"
11905else
11906 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11907echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11908if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911 ac_check_lib_save_LIBS=$LIBS
11912LIBS="-ldld $LIBS"
11913cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011919
11920/* Override any gcc2 internal prototype to avoid an error. */
11921#ifdef __cplusplus
11922extern "C"
11923#endif
11924/* We use char because int might match the return type of a gcc2
11925 builtin and then its argument prototype would still apply. */
11926char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011927int
11928main ()
11929{
11930shl_load ();
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011937 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011944 { ac_try='test -z "$ac_cxx_werror_flag"
11945 || test ! -s conftest.err'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 ac_cv_lib_dld_shl_load=yes
11958else
11959 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011960sed 's/^/| /' conftest.$ac_ext >&5
11961
John Criswell47fdd832003-07-14 16:52:07 +000011962ac_cv_lib_dld_shl_load=no
11963fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011964rm -f conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011966LIBS=$ac_check_lib_save_LIBS
11967fi
11968echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11969echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11970if test $ac_cv_lib_dld_shl_load = yes; then
11971 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11972else
11973 echo "$as_me:$LINENO: checking for dlopen" >&5
11974echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11975if test "${ac_cv_func_dlopen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977else
11978 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011979/* confdefs.h. */
11980_ACEOF
11981cat confdefs.h >>conftest.$ac_ext
11982cat >>conftest.$ac_ext <<_ACEOF
11983/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011984/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11986#define dlopen innocuous_dlopen
11987
John Criswell47fdd832003-07-14 16:52:07 +000011988/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011989 which can conflict with char dlopen (); below.
11990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011992
John Criswell0c38eaf2003-09-10 15:17:25 +000011993#ifdef __STDC__
11994# include <limits.h>
11995#else
11996# include <assert.h>
11997#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011998
11999#undef dlopen
12000
John Criswell47fdd832003-07-14 16:52:07 +000012001/* Override any gcc2 internal prototype to avoid an error. */
12002#ifdef __cplusplus
12003extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012004{
John Criswell47fdd832003-07-14 16:52:07 +000012005#endif
12006/* We use char because int might match the return type of a gcc2
12007 builtin and then its argument prototype would still apply. */
12008char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012009/* The GNU C library defines this for functions which it implements
12010 to always fail with ENOSYS. Some functions are actually named
12011 something starting with __ and the normal name is an alias. */
12012#if defined (__stub_dlopen) || defined (__stub___dlopen)
12013choke me
12014#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012015char (*f) () = dlopen;
12016#endif
12017#ifdef __cplusplus
12018}
John Criswell47fdd832003-07-14 16:52:07 +000012019#endif
12020
John Criswell0c38eaf2003-09-10 15:17:25 +000012021int
12022main ()
12023{
12024return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext conftest$ac_exeext
12030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012031 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012032 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012038 { ac_try='test -z "$ac_cxx_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_func_dlopen=yes
12052else
12053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012054sed 's/^/| /' conftest.$ac_ext >&5
12055
John Criswell47fdd832003-07-14 16:52:07 +000012056ac_cv_func_dlopen=no
12057fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012058rm -f conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012060fi
12061echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12062echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12063if test $ac_cv_func_dlopen = yes; then
12064 lt_cv_dlopen="dlopen"
12065else
12066 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12067echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12068if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12070else
12071 ac_check_lib_save_LIBS=$LIBS
12072LIBS="-ldl $LIBS"
12073cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012074/* confdefs.h. */
12075_ACEOF
12076cat confdefs.h >>conftest.$ac_ext
12077cat >>conftest.$ac_ext <<_ACEOF
12078/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012079
12080/* Override any gcc2 internal prototype to avoid an error. */
12081#ifdef __cplusplus
12082extern "C"
12083#endif
12084/* We use char because int might match the return type of a gcc2
12085 builtin and then its argument prototype would still apply. */
12086char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012087int
12088main ()
12089{
12090dlopen ();
12091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext conftest$ac_exeext
12096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012097 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012104 { ac_try='test -z "$ac_cxx_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_dl_dlopen=yes
12118else
12119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012120sed 's/^/| /' conftest.$ac_ext >&5
12121
John Criswell47fdd832003-07-14 16:52:07 +000012122ac_cv_lib_dl_dlopen=no
12123fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012124rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012126LIBS=$ac_check_lib_save_LIBS
12127fi
12128echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12130if test $ac_cv_lib_dl_dlopen = yes; then
12131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12132else
12133 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12134echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12135if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 ac_check_lib_save_LIBS=$LIBS
12139LIBS="-lsvld $LIBS"
12140cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012146
12147/* Override any gcc2 internal prototype to avoid an error. */
12148#ifdef __cplusplus
12149extern "C"
12150#endif
12151/* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12153char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012154int
12155main ()
12156{
12157dlopen ();
12158 ;
12159 return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext conftest$ac_exeext
12163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012164 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012171 { ac_try='test -z "$ac_cxx_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_cv_lib_svld_dlopen=yes
12185else
12186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012187sed 's/^/| /' conftest.$ac_ext >&5
12188
John Criswell47fdd832003-07-14 16:52:07 +000012189ac_cv_lib_svld_dlopen=no
12190fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012191rm -f conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012193LIBS=$ac_check_lib_save_LIBS
12194fi
12195echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12196echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12197if test $ac_cv_lib_svld_dlopen = yes; then
12198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12199else
12200 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12201echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12202if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204else
12205 ac_check_lib_save_LIBS=$LIBS
12206LIBS="-ldld $LIBS"
12207cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012208/* confdefs.h. */
12209_ACEOF
12210cat confdefs.h >>conftest.$ac_ext
12211cat >>conftest.$ac_ext <<_ACEOF
12212/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012213
12214/* Override any gcc2 internal prototype to avoid an error. */
12215#ifdef __cplusplus
12216extern "C"
12217#endif
12218/* We use char because int might match the return type of a gcc2
12219 builtin and then its argument prototype would still apply. */
12220char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012221int
12222main ()
12223{
12224dld_link ();
12225 ;
12226 return 0;
12227}
12228_ACEOF
12229rm -f conftest.$ac_objext conftest$ac_exeext
12230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012231 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012238 { ac_try='test -z "$ac_cxx_werror_flag"
12239 || test ! -s conftest.err'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; } &&
12245 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_cv_lib_dld_dld_link=yes
12252else
12253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012254sed 's/^/| /' conftest.$ac_ext >&5
12255
John Criswell47fdd832003-07-14 16:52:07 +000012256ac_cv_lib_dld_dld_link=no
12257fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012258rm -f conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012260LIBS=$ac_check_lib_save_LIBS
12261fi
12262echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12263echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12264if test $ac_cv_lib_dld_dld_link = yes; then
12265 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12266fi
12267
12268
12269fi
12270
12271
12272fi
12273
12274
12275fi
12276
12277
12278fi
12279
12280
12281fi
12282
12283 ;;
12284 esac
12285
12286 if test "x$lt_cv_dlopen" != xno; then
12287 enable_dlopen=yes
12288 else
12289 enable_dlopen=no
12290 fi
12291
12292 case $lt_cv_dlopen in
12293 dlopen)
12294 save_CPPFLAGS="$CPPFLAGS"
12295 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12296
12297 save_LDFLAGS="$LDFLAGS"
12298 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12299
12300 save_LIBS="$LIBS"
12301 LIBS="$lt_cv_dlopen_libs $LIBS"
12302
12303 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12304echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12305if test "${lt_cv_dlopen_self+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307else
12308 if test "$cross_compiling" = yes; then :
12309 lt_cv_dlopen_self=cross
12310else
12311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312 lt_status=$lt_dlunknown
12313 cat > conftest.$ac_ext <<EOF
Reid Spencer177dbe22004-10-13 01:01:03 +000012314#line 12314 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012315#include "confdefs.h"
12316
12317#if HAVE_DLFCN_H
12318#include <dlfcn.h>
12319#endif
12320
12321#include <stdio.h>
12322
12323#ifdef RTLD_GLOBAL
12324# define LT_DLGLOBAL RTLD_GLOBAL
12325#else
12326# ifdef DL_GLOBAL
12327# define LT_DLGLOBAL DL_GLOBAL
12328# else
12329# define LT_DLGLOBAL 0
12330# endif
12331#endif
12332
12333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334 find out it does not work in some platform. */
12335#ifndef LT_DLLAZY_OR_NOW
12336# ifdef RTLD_LAZY
12337# define LT_DLLAZY_OR_NOW RTLD_LAZY
12338# else
12339# ifdef DL_LAZY
12340# define LT_DLLAZY_OR_NOW DL_LAZY
12341# else
12342# ifdef RTLD_NOW
12343# define LT_DLLAZY_OR_NOW RTLD_NOW
12344# else
12345# ifdef DL_NOW
12346# define LT_DLLAZY_OR_NOW DL_NOW
12347# else
12348# define LT_DLLAZY_OR_NOW 0
12349# endif
12350# endif
12351# endif
12352# endif
12353#endif
12354
12355#ifdef __cplusplus
12356extern "C" void exit (int);
12357#endif
12358
12359void fnord() { int i=42;}
12360int main ()
12361{
12362 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12363 int status = $lt_dlunknown;
12364
12365 if (self)
12366 {
12367 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12368 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12369 /* dlclose (self); */
12370 }
12371
12372 exit (status);
12373}
12374EOF
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12380 (./conftest; exit; ) 2>/dev/null
12381 lt_status=$?
12382 case x$lt_status in
12383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12385 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12386 esac
12387 else :
12388 # compilation failed
12389 lt_cv_dlopen_self=no
12390 fi
12391fi
12392rm -fr conftest*
12393
12394
12395fi
12396echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12397echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12398
12399 if test "x$lt_cv_dlopen_self" = xyes; then
12400 LDFLAGS="$LDFLAGS $link_static_flag"
12401 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12402echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12403if test "${lt_cv_dlopen_self_static+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 if test "$cross_compiling" = yes; then :
12407 lt_cv_dlopen_self_static=cross
12408else
12409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12410 lt_status=$lt_dlunknown
12411 cat > conftest.$ac_ext <<EOF
Reid Spencer177dbe22004-10-13 01:01:03 +000012412#line 12412 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012413#include "confdefs.h"
12414
12415#if HAVE_DLFCN_H
12416#include <dlfcn.h>
12417#endif
12418
12419#include <stdio.h>
12420
12421#ifdef RTLD_GLOBAL
12422# define LT_DLGLOBAL RTLD_GLOBAL
12423#else
12424# ifdef DL_GLOBAL
12425# define LT_DLGLOBAL DL_GLOBAL
12426# else
12427# define LT_DLGLOBAL 0
12428# endif
12429#endif
12430
12431/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12432 find out it does not work in some platform. */
12433#ifndef LT_DLLAZY_OR_NOW
12434# ifdef RTLD_LAZY
12435# define LT_DLLAZY_OR_NOW RTLD_LAZY
12436# else
12437# ifdef DL_LAZY
12438# define LT_DLLAZY_OR_NOW DL_LAZY
12439# else
12440# ifdef RTLD_NOW
12441# define LT_DLLAZY_OR_NOW RTLD_NOW
12442# else
12443# ifdef DL_NOW
12444# define LT_DLLAZY_OR_NOW DL_NOW
12445# else
12446# define LT_DLLAZY_OR_NOW 0
12447# endif
12448# endif
12449# endif
12450# endif
12451#endif
12452
12453#ifdef __cplusplus
12454extern "C" void exit (int);
12455#endif
12456
12457void fnord() { int i=42;}
12458int main ()
12459{
12460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461 int status = $lt_dlunknown;
12462
12463 if (self)
12464 {
12465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12467 /* dlclose (self); */
12468 }
12469
12470 exit (status);
12471}
12472EOF
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474 (eval $ac_link) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12478 (./conftest; exit; ) 2>/dev/null
12479 lt_status=$?
12480 case x$lt_status in
12481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12483 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12484 esac
12485 else :
12486 # compilation failed
12487 lt_cv_dlopen_self_static=no
12488 fi
12489fi
12490rm -fr conftest*
12491
12492
12493fi
12494echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12495echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12496 fi
12497
12498 CPPFLAGS="$save_CPPFLAGS"
12499 LDFLAGS="$save_LDFLAGS"
12500 LIBS="$save_LIBS"
12501 ;;
12502 esac
12503
12504 case $lt_cv_dlopen_self in
12505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12506 *) enable_dlopen_self=unknown ;;
12507 esac
12508
12509 case $lt_cv_dlopen_self_static in
12510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12511 *) enable_dlopen_self_static=unknown ;;
12512 esac
12513fi
12514
12515
12516# The else clause should only fire when bootstrapping the
12517# libtool distribution, otherwise you forgot to ship ltmain.sh
12518# with your package, and you will get complaints that there are
12519# no rules to generate ltmain.sh.
12520if test -f "$ltmain"; then
12521 # See if we are running on zsh, and set the options which allow our commands through
12522 # without removal of \ escapes.
12523 if test -n "${ZSH_VERSION+set}" ; then
12524 setopt NO_GLOB_SUBST
12525 fi
12526 # Now quote all the things that may contain metacharacters while being
12527 # careful not to overquote the AC_SUBSTed values. We take copies of the
12528 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012529 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12530 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12533 deplibs_check_method reload_flag reload_cmds need_locks \
12534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12535 lt_cv_sys_global_symbol_to_c_name_address \
12536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12537 old_postinstall_cmds old_postuninstall_cmds \
12538 compiler_CXX \
12539 CC_CXX \
12540 LD_CXX \
12541 lt_prog_compiler_wl_CXX \
12542 lt_prog_compiler_pic_CXX \
12543 lt_prog_compiler_static_CXX \
12544 lt_prog_compiler_no_builtin_flag_CXX \
12545 export_dynamic_flag_spec_CXX \
12546 thread_safe_flag_spec_CXX \
12547 whole_archive_flag_spec_CXX \
12548 enable_shared_with_static_runtimes_CXX \
12549 old_archive_cmds_CXX \
12550 old_archive_from_new_cmds_CXX \
12551 predep_objects_CXX \
12552 postdep_objects_CXX \
12553 predeps_CXX \
12554 postdeps_CXX \
12555 compiler_lib_search_path_CXX \
12556 archive_cmds_CXX \
12557 archive_expsym_cmds_CXX \
12558 postinstall_cmds_CXX \
12559 postuninstall_cmds_CXX \
12560 old_archive_from_expsyms_cmds_CXX \
12561 allow_undefined_flag_CXX \
12562 no_undefined_flag_CXX \
12563 export_symbols_cmds_CXX \
12564 hardcode_libdir_flag_spec_CXX \
12565 hardcode_libdir_flag_spec_ld_CXX \
12566 hardcode_libdir_separator_CXX \
12567 hardcode_automatic_CXX \
12568 module_cmds_CXX \
12569 module_expsym_cmds_CXX \
12570 lt_cv_prog_compiler_c_o_CXX \
12571 exclude_expsyms_CXX \
12572 include_expsyms_CXX; do
12573
12574 case $var in
12575 old_archive_cmds_CXX | \
12576 old_archive_from_new_cmds_CXX | \
12577 archive_cmds_CXX | \
12578 archive_expsym_cmds_CXX | \
12579 module_cmds_CXX | \
12580 module_expsym_cmds_CXX | \
12581 old_archive_from_expsyms_cmds_CXX | \
12582 export_symbols_cmds_CXX | \
12583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12584 postinstall_cmds | postuninstall_cmds | \
12585 old_postinstall_cmds | old_postuninstall_cmds | \
12586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12587 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012588 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 +000012589 ;;
12590 *)
12591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12592 ;;
12593 esac
12594 done
12595
12596 case $lt_echo in
12597 *'\$0 --fallback-echo"')
12598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12599 ;;
12600 esac
12601
12602cfgfile="$ofile"
12603
12604 cat <<__EOF__ >> "$cfgfile"
12605# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12606
12607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12608
12609# Shell to use when invoking shell scripts.
12610SHELL=$lt_SHELL
12611
12612# Whether or not to build shared libraries.
12613build_libtool_libs=$enable_shared
12614
12615# Whether or not to build static libraries.
12616build_old_libs=$enable_static
12617
12618# Whether or not to add -lc for building shared libraries.
12619build_libtool_need_lc=$archive_cmds_need_lc_CXX
12620
12621# Whether or not to disallow shared libs when runtime libs are static
12622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12623
12624# Whether or not to optimize for fast installation.
12625fast_install=$enable_fast_install
12626
12627# The host system.
12628host_alias=$host_alias
12629host=$host
12630
12631# An echo program that does not interpret backslashes.
12632echo=$lt_echo
12633
12634# The archiver.
12635AR=$lt_AR
12636AR_FLAGS=$lt_AR_FLAGS
12637
12638# A C compiler.
12639LTCC=$lt_LTCC
12640
12641# A language-specific compiler.
12642CC=$lt_compiler_CXX
12643
12644# Is the compiler the GNU C compiler?
12645with_gcc=$GCC_CXX
12646
12647# An ERE matcher.
12648EGREP=$lt_EGREP
12649
12650# The linker used to build libraries.
12651LD=$lt_LD_CXX
12652
12653# Whether we need hard or soft links.
12654LN_S=$lt_LN_S
12655
12656# A BSD-compatible nm program.
12657NM=$lt_NM
12658
12659# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000012660STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012661
12662# Used to examine libraries when file_magic_cmd begins "file"
12663MAGIC_CMD=$MAGIC_CMD
12664
12665# Used on cygwin: DLL creation program.
12666DLLTOOL="$DLLTOOL"
12667
12668# Used on cygwin: object dumper.
12669OBJDUMP="$OBJDUMP"
12670
12671# Used on cygwin: assembler.
12672AS="$AS"
12673
12674# The name of the directory that contains temporary libtool files.
12675objdir=$objdir
12676
12677# How to create reloadable object files.
12678reload_flag=$lt_reload_flag
12679reload_cmds=$lt_reload_cmds
12680
12681# How to pass a linker flag through the compiler.
12682wl=$lt_lt_prog_compiler_wl_CXX
12683
12684# Object file suffix (normally "o").
12685objext="$ac_objext"
12686
12687# Old archive suffix (normally "a").
12688libext="$libext"
12689
12690# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000012691shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000012692
12693# Executable file suffix (normally "").
12694exeext="$exeext"
12695
12696# Additional compiler flags for building library objects.
12697pic_flag=$lt_lt_prog_compiler_pic_CXX
12698pic_mode=$pic_mode
12699
12700# What is the maximum length of a command?
12701max_cmd_len=$lt_cv_sys_max_cmd_len
12702
12703# Does compiler simultaneously support -c and -o options?
12704compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12705
12706# Must we lock files when doing compilation ?
12707need_locks=$lt_need_locks
12708
12709# Do we need the lib prefix for modules?
12710need_lib_prefix=$need_lib_prefix
12711
12712# Do we need a version for libraries?
12713need_version=$need_version
12714
12715# Whether dlopen is supported.
12716dlopen_support=$enable_dlopen
12717
12718# Whether dlopen of programs is supported.
12719dlopen_self=$enable_dlopen_self
12720
12721# Whether dlopen of statically linked programs is supported.
12722dlopen_self_static=$enable_dlopen_self_static
12723
12724# Compiler flag to prevent dynamic linking.
12725link_static_flag=$lt_lt_prog_compiler_static_CXX
12726
12727# Compiler flag to turn off builtin functions.
12728no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12729
12730# Compiler flag to allow reflexive dlopens.
12731export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12732
12733# Compiler flag to generate shared objects directly from archives.
12734whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12735
12736# Compiler flag to generate thread-safe objects.
12737thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12738
12739# Library versioning type.
12740version_type=$version_type
12741
12742# Format of library name prefix.
12743libname_spec=$lt_libname_spec
12744
12745# List of archive names. First name is the real one, the rest are links.
12746# The last name is the one that the linker finds with -lNAME.
12747library_names_spec=$lt_library_names_spec
12748
12749# The coded name of the library, if different from the real name.
12750soname_spec=$lt_soname_spec
12751
12752# Commands used to build and install an old-style archive.
12753RANLIB=$lt_RANLIB
12754old_archive_cmds=$lt_old_archive_cmds_CXX
12755old_postinstall_cmds=$lt_old_postinstall_cmds
12756old_postuninstall_cmds=$lt_old_postuninstall_cmds
12757
12758# Create an old-style archive from a shared archive.
12759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12760
12761# Create a temporary old-style archive to link instead of a shared archive.
12762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12763
12764# Commands used to build and install a shared archive.
12765archive_cmds=$lt_archive_cmds_CXX
12766archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12767postinstall_cmds=$lt_postinstall_cmds
12768postuninstall_cmds=$lt_postuninstall_cmds
12769
12770# Commands used to build a loadable module (assumed same as above if empty)
12771module_cmds=$lt_module_cmds_CXX
12772module_expsym_cmds=$lt_module_expsym_cmds_CXX
12773
12774# Commands to strip libraries.
12775old_striplib=$lt_old_striplib
12776striplib=$lt_striplib
12777
12778# Dependencies to place before the objects being linked to create a
12779# shared library.
12780predep_objects=$lt_predep_objects_CXX
12781
12782# Dependencies to place after the objects being linked to create a
12783# shared library.
12784postdep_objects=$lt_postdep_objects_CXX
12785
12786# Dependencies to place before the objects being linked to create a
12787# shared library.
12788predeps=$lt_predeps_CXX
12789
12790# Dependencies to place after the objects being linked to create a
12791# shared library.
12792postdeps=$lt_postdeps_CXX
12793
12794# The library search path used internally by the compiler when linking
12795# a shared library.
12796compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12797
12798# Method to check whether dependent libraries are shared objects.
12799deplibs_check_method=$lt_deplibs_check_method
12800
12801# Command to use when deplibs_check_method == file_magic.
12802file_magic_cmd=$lt_file_magic_cmd
12803
12804# Flag that allows shared libraries with undefined symbols to be built.
12805allow_undefined_flag=$lt_allow_undefined_flag_CXX
12806
12807# Flag that forces no undefined symbols.
12808no_undefined_flag=$lt_no_undefined_flag_CXX
12809
12810# Commands used to finish a libtool library installation in a directory.
12811finish_cmds=$lt_finish_cmds
12812
12813# Same as above, but a single script fragment to be evaled but not shown.
12814finish_eval=$lt_finish_eval
12815
12816# Take the output of nm and produce a listing of raw symbols and C names.
12817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12818
12819# Transform the output of nm in a proper C declaration
12820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12821
12822# Transform the output of nm in a C name address pair
12823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12824
12825# This is the shared library runtime path variable.
12826runpath_var=$runpath_var
12827
12828# This is the shared library path variable.
12829shlibpath_var=$shlibpath_var
12830
12831# Is shlibpath searched before the hard-coded library search path?
12832shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12833
12834# How to hardcode a shared library path into an executable.
12835hardcode_action=$hardcode_action_CXX
12836
12837# Whether we should hardcode library paths into libraries.
12838hardcode_into_libs=$hardcode_into_libs
12839
12840# Flag to hardcode \$libdir into a binary during linking.
12841# This must work even if \$libdir does not exist.
12842hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12843
12844# If ld is used when linking, flag to hardcode \$libdir into
12845# a binary during linking. This must work even if \$libdir does
12846# not exist.
12847hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12848
12849# Whether we need a single -rpath flag with a separated argument.
12850hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12851
12852# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12853# resulting binary.
12854hardcode_direct=$hardcode_direct_CXX
12855
12856# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12857# resulting binary.
12858hardcode_minus_L=$hardcode_minus_L_CXX
12859
12860# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12861# the resulting binary.
12862hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12863
12864# Set to yes if building a shared library automatically hardcodes DIR into the library
12865# and all subsequent libraries and executables linked against it.
12866hardcode_automatic=$hardcode_automatic_CXX
12867
12868# Variables whose values should be saved in libtool wrapper scripts and
12869# restored at relink time.
12870variables_saved_for_relink="$variables_saved_for_relink"
12871
12872# Whether libtool must link a program against all its dependency libraries.
12873link_all_deplibs=$link_all_deplibs_CXX
12874
12875# Compile-time system search path for libraries
12876sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12877
12878# Run-time system search path for libraries
12879sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12880
12881# Fix the shell variable \$srcfile for the compiler.
12882fix_srcfile_path="$fix_srcfile_path_CXX"
12883
12884# Set to yes if exported symbols are required.
12885always_export_symbols=$always_export_symbols_CXX
12886
12887# The commands to list exported symbols.
12888export_symbols_cmds=$lt_export_symbols_cmds_CXX
12889
12890# The commands to extract the exported symbol list from a shared archive.
12891extract_expsyms_cmds=$lt_extract_expsyms_cmds
12892
12893# Symbols that should not be listed in the preloaded symbols.
12894exclude_expsyms=$lt_exclude_expsyms_CXX
12895
12896# Symbols that must always be exported.
12897include_expsyms=$lt_include_expsyms_CXX
12898
12899# ### END LIBTOOL TAG CONFIG: $tagname
12900
12901__EOF__
12902
12903
12904else
12905 # If there is no Makefile yet, we rely on a make rule to execute
12906 # `config.status --recheck' to rerun these tests and create the
12907 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12909 if test -f "$ltmain_in"; then
12910 test -f Makefile && make "$ltmain"
12911 fi
John Criswell47fdd832003-07-14 16:52:07 +000012912fi
12913
12914
12915ac_ext=c
12916ac_cpp='$CPP $CPPFLAGS'
12917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921CC=$lt_save_CC
12922LDCXX=$LD
12923LD=$lt_save_LD
12924GCC=$lt_save_GCC
12925with_gnu_ldcxx=$with_gnu_ld
12926with_gnu_ld=$lt_save_with_gnu_ld
12927lt_cv_path_LDCXX=$lt_cv_path_LD
12928lt_cv_path_LD=$lt_save_path_LD
12929lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12930lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12931
12932 else
12933 tagname=""
12934 fi
12935 ;;
12936
12937 F77)
12938 if test -n "$F77" && test "X$F77" != "Xno"; then
12939
12940ac_ext=f
12941ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12942ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12944
12945
12946archive_cmds_need_lc_F77=no
12947allow_undefined_flag_F77=
12948always_export_symbols_F77=no
12949archive_expsym_cmds_F77=
12950export_dynamic_flag_spec_F77=
12951hardcode_direct_F77=no
12952hardcode_libdir_flag_spec_F77=
12953hardcode_libdir_flag_spec_ld_F77=
12954hardcode_libdir_separator_F77=
12955hardcode_minus_L_F77=no
12956hardcode_automatic_F77=no
12957module_cmds_F77=
12958module_expsym_cmds_F77=
12959link_all_deplibs_F77=unknown
12960old_archive_cmds_F77=$old_archive_cmds
12961no_undefined_flag_F77=
12962whole_archive_flag_spec_F77=
12963enable_shared_with_static_runtimes_F77=no
12964
12965# Source file extension for f77 test sources.
12966ac_ext=f
12967
12968# Object file extension for compiled f77 test sources.
12969objext=o
12970objext_F77=$objext
12971
12972# Code to be used in simple compile tests
12973lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12974
12975# Code to be used in simple link tests
12976lt_simple_link_test_code=" program t\n end\n"
12977
12978# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12979
12980# If no C compiler was specified, use CC.
12981LTCC=${LTCC-"$CC"}
12982
12983# Allow CC to be a program name with arguments.
12984compiler=$CC
12985
12986
12987# Allow CC to be a program name with arguments.
12988lt_save_CC="$CC"
12989CC=${F77-"f77"}
12990compiler=$CC
12991compiler_F77=$CC
12992cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12993
12994echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12995echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12996echo "$as_me:$LINENO: result: $can_build_shared" >&5
12997echo "${ECHO_T}$can_build_shared" >&6
12998
12999echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13000echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13001test "$can_build_shared" = "no" && enable_shared=no
13002
13003# On AIX, shared libraries and static libraries use the same namespace, and
13004# are all built from PIC.
13005case "$host_os" in
13006aix3*)
13007 test "$enable_shared" = yes && enable_static=no
13008 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000013010 postinstall_cmds='$RANLIB $lib'
13011 fi
13012 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013013aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000013014 test "$enable_shared" = yes && enable_static=no
13015 ;;
13016esac
13017echo "$as_me:$LINENO: result: $enable_shared" >&5
13018echo "${ECHO_T}$enable_shared" >&6
13019
13020echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13021echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13022# Make sure either enable_shared or enable_static is yes.
13023test "$enable_shared" = yes || enable_static=yes
13024echo "$as_me:$LINENO: result: $enable_static" >&5
13025echo "${ECHO_T}$enable_static" >&6
13026
13027test "$ld_shlibs_F77" = no && can_build_shared=no
13028
13029GCC_F77="$G77"
13030LD_F77="$LD"
13031
13032lt_prog_compiler_wl_F77=
13033lt_prog_compiler_pic_F77=
13034lt_prog_compiler_static_F77=
13035
13036echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13037echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13038
13039 if test "$GCC" = yes; then
13040 lt_prog_compiler_wl_F77='-Wl,'
13041 lt_prog_compiler_static_F77='-static'
13042
13043 case $host_os in
13044 aix*)
13045 # All AIX code is PIC.
13046 if test "$host_cpu" = ia64; then
13047 # AIX 5 now supports IA64 processor
13048 lt_prog_compiler_static_F77='-Bstatic'
13049 fi
13050 ;;
13051
13052 amigaos*)
13053 # FIXME: we need at least 68020 code to build shared libraries, but
13054 # adding the `-m68020' flag to GCC prevents building anything better,
13055 # like `-m68040'.
13056 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13057 ;;
13058
13059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13060 # PIC is the default for these OSes.
13061 ;;
13062
13063 mingw* | pw32* | os2*)
13064 # This hack is so that the source file can tell whether it is being
13065 # built for inclusion in a dll (and should export symbols for example).
13066 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13067 ;;
13068
13069 darwin* | rhapsody*)
13070 # PIC is the default on this platform
13071 # Common symbols not allowed in MH_DYLIB files
13072 lt_prog_compiler_pic_F77='-fno-common'
13073 ;;
13074
13075 msdosdjgpp*)
13076 # Just because we use GCC doesn't mean we suddenly get shared libraries
13077 # on systems that don't support them.
13078 lt_prog_compiler_can_build_shared_F77=no
13079 enable_shared=no
13080 ;;
13081
13082 sysv4*MP*)
13083 if test -d /usr/nec; then
13084 lt_prog_compiler_pic_F77=-Kconform_pic
13085 fi
13086 ;;
13087
13088 hpux*)
13089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13090 # not for PA HP-UX.
13091 case "$host_cpu" in
13092 hppa*64*|ia64*)
13093 # +Z the default
13094 ;;
13095 *)
13096 lt_prog_compiler_pic_F77='-fPIC'
13097 ;;
13098 esac
13099 ;;
13100
13101 *)
13102 lt_prog_compiler_pic_F77='-fPIC'
13103 ;;
13104 esac
13105 else
13106 # PORTME Check for flag to pass linker flags through the system compiler.
13107 case $host_os in
13108 aix*)
13109 lt_prog_compiler_wl_F77='-Wl,'
13110 if test "$host_cpu" = ia64; then
13111 # AIX 5 now supports IA64 processor
13112 lt_prog_compiler_static_F77='-Bstatic'
13113 else
13114 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13115 fi
13116 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013117 darwin*)
13118 # PIC is the default on this platform
13119 # Common symbols not allowed in MH_DYLIB files
13120 case "$cc_basename" in
13121 xlc*)
13122 lt_prog_compiler_pic_F77='-qnocommon'
13123 lt_prog_compiler_wl_F77='-Wl,'
13124 ;;
13125 esac
13126 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013127
13128 mingw* | pw32* | os2*)
13129 # This hack is so that the source file can tell whether it is being
13130 # built for inclusion in a dll (and should export symbols for example).
13131 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13132 ;;
13133
13134 hpux9* | hpux10* | hpux11*)
13135 lt_prog_compiler_wl_F77='-Wl,'
13136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137 # not for PA HP-UX.
13138 case "$host_cpu" in
13139 hppa*64*|ia64*)
13140 # +Z the default
13141 ;;
13142 *)
13143 lt_prog_compiler_pic_F77='+Z'
13144 ;;
13145 esac
13146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13147 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13148 ;;
13149
13150 irix5* | irix6* | nonstopux*)
13151 lt_prog_compiler_wl_F77='-Wl,'
13152 # PIC (with -KPIC) is the default.
13153 lt_prog_compiler_static_F77='-non_shared'
13154 ;;
13155
13156 newsos6)
13157 lt_prog_compiler_pic_F77='-KPIC'
13158 lt_prog_compiler_static_F77='-Bstatic'
13159 ;;
13160
13161 linux*)
13162 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013163 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013164 lt_prog_compiler_wl_F77='-Wl,'
13165 lt_prog_compiler_pic_F77='-KPIC'
13166 lt_prog_compiler_static_F77='-static'
13167 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013168 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013169 lt_prog_compiler_wl_F77='-Wl,'
13170 # All Alpha code is PIC.
13171 lt_prog_compiler_static_F77='-non_shared'
13172 ;;
13173 esac
13174 ;;
13175
13176 osf3* | osf4* | osf5*)
13177 lt_prog_compiler_wl_F77='-Wl,'
13178 # All OSF/1 code is PIC.
13179 lt_prog_compiler_static_F77='-non_shared'
13180 ;;
13181
13182 sco3.2v5*)
13183 lt_prog_compiler_pic_F77='-Kpic'
13184 lt_prog_compiler_static_F77='-dn'
13185 ;;
13186
13187 solaris*)
13188 lt_prog_compiler_wl_F77='-Wl,'
13189 lt_prog_compiler_pic_F77='-KPIC'
13190 lt_prog_compiler_static_F77='-Bstatic'
13191 ;;
13192
13193 sunos4*)
13194 lt_prog_compiler_wl_F77='-Qoption ld '
13195 lt_prog_compiler_pic_F77='-PIC'
13196 lt_prog_compiler_static_F77='-Bstatic'
13197 ;;
13198
13199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13200 lt_prog_compiler_wl_F77='-Wl,'
13201 lt_prog_compiler_pic_F77='-KPIC'
13202 lt_prog_compiler_static_F77='-Bstatic'
13203 ;;
13204
13205 sysv4*MP*)
13206 if test -d /usr/nec ;then
13207 lt_prog_compiler_pic_F77='-Kconform_pic'
13208 lt_prog_compiler_static_F77='-Bstatic'
13209 fi
13210 ;;
13211
13212 uts4*)
13213 lt_prog_compiler_pic_F77='-pic'
13214 lt_prog_compiler_static_F77='-Bstatic'
13215 ;;
13216
13217 *)
13218 lt_prog_compiler_can_build_shared_F77=no
13219 ;;
13220 esac
13221 fi
13222
13223echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13224echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13225
13226#
13227# Check to make sure the PIC flag actually works.
13228#
13229if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013230
13231echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13233if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13235else
13236 lt_prog_compiler_pic_works_F77=no
13237 ac_outfile=conftest.$ac_objext
13238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13239 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13240 # Insert the option either (1) after the last *FLAGS variable, or
13241 # (2) before a word containing "conftest.", or (3) at the end.
13242 # Note that $ac_compile itself does not contain backslashes and begins
13243 # with a dollar sign (not a hyphen), so the echo should work correctly.
13244 # The option is referenced via a variable to avoid confusing sed.
13245 lt_compile=`echo "$ac_compile" | $SED \
13246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13248 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000013249 (eval echo "\"\$as_me:13249: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013250 (eval "$lt_compile" 2>conftest.err)
13251 ac_status=$?
13252 cat conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000013253 echo "$as_me:13253: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013254 if (exit $ac_status) && test -s "$ac_outfile"; then
13255 # The compiler can only warn and ignore the option if not recognized
13256 # So say no if there are warnings
13257 if test ! -s conftest.err; then
13258 lt_prog_compiler_pic_works_F77=yes
13259 fi
13260 fi
13261 $rm conftest*
13262
13263fi
13264echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13265echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13266
13267if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13268 case $lt_prog_compiler_pic_F77 in
13269 "" | " "*) ;;
13270 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13271 esac
13272else
13273 lt_prog_compiler_pic_F77=
13274 lt_prog_compiler_can_build_shared_F77=no
13275fi
13276
13277fi
13278case "$host_os" in
13279 # For platforms which do not support PIC, -DPIC is meaningless:
13280 *djgpp*)
13281 lt_prog_compiler_pic_F77=
13282 ;;
13283 *)
13284 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13285 ;;
13286esac
13287
13288echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13289echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13290if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293 lt_cv_prog_compiler_c_o_F77=no
13294 $rm -r conftest 2>/dev/null
13295 mkdir conftest
13296 cd conftest
13297 mkdir out
13298 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13299
John Criswell47fdd832003-07-14 16:52:07 +000013300 lt_compiler_flag="-o out/conftest2.$ac_objext"
13301 # Insert the option either (1) after the last *FLAGS variable, or
13302 # (2) before a word containing "conftest.", or (3) at the end.
13303 # Note that $ac_compile itself does not contain backslashes and begins
13304 # with a dollar sign (not a hyphen), so the echo should work correctly.
13305 lt_compile=`echo "$ac_compile" | $SED \
13306 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13308 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000013309 (eval echo "\"\$as_me:13309: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013310 (eval "$lt_compile" 2>out/conftest.err)
13311 ac_status=$?
13312 cat out/conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000013313 echo "$as_me:13313: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13315 then
13316 # The compiler can only warn and ignore the option if not recognized
13317 # So say no if there are warnings
13318 if test ! -s out/conftest.err; then
13319 lt_cv_prog_compiler_c_o_F77=yes
13320 fi
13321 fi
13322 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000013323 $rm conftest*
13324 # SGI C++ compiler will create directory out/ii_files/ for
13325 # template instantiation
13326 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13327 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013328 cd ..
13329 rmdir conftest
13330 $rm conftest*
13331
13332fi
13333echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13334echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13335
13336
13337hard_links="nottested"
13338if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13339 # do not overwrite the value of need_locks provided by the user
13340 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13341echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13342 hard_links=yes
13343 $rm conftest*
13344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13345 touch conftest.a
13346 ln conftest.a conftest.b 2>&5 || hard_links=no
13347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348 echo "$as_me:$LINENO: result: $hard_links" >&5
13349echo "${ECHO_T}$hard_links" >&6
13350 if test "$hard_links" = no; then
13351 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13352echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13353 need_locks=warn
13354 fi
13355else
13356 need_locks=no
13357fi
13358
13359echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13360echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13361
13362 runpath_var=
13363 allow_undefined_flag_F77=
13364 enable_shared_with_static_runtimes_F77=no
13365 archive_cmds_F77=
13366 archive_expsym_cmds_F77=
13367 old_archive_From_new_cmds_F77=
13368 old_archive_from_expsyms_cmds_F77=
13369 export_dynamic_flag_spec_F77=
13370 whole_archive_flag_spec_F77=
13371 thread_safe_flag_spec_F77=
13372 hardcode_libdir_flag_spec_F77=
13373 hardcode_libdir_flag_spec_ld_F77=
13374 hardcode_libdir_separator_F77=
13375 hardcode_direct_F77=no
13376 hardcode_minus_L_F77=no
13377 hardcode_shlibpath_var_F77=unsupported
13378 link_all_deplibs_F77=unknown
13379 hardcode_automatic_F77=no
13380 module_cmds_F77=
13381 module_expsym_cmds_F77=
13382 always_export_symbols_F77=no
13383 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13384 # include_expsyms should be a list of space-separated symbols to be *always*
13385 # included in the symbol list
13386 include_expsyms_F77=
13387 # exclude_expsyms can be an extended regexp of symbols to exclude
13388 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13389 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13390 # as well as any symbol that contains `d'.
13391 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13392 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13393 # platforms (ab)use it in PIC code, but their linkers get confused if
13394 # the symbol is explicitly referenced. Since portable code cannot
13395 # rely on this symbol name, it's probably fine to never include it in
13396 # preloaded symbol tables.
13397 extract_expsyms_cmds=
13398
13399 case $host_os in
13400 cygwin* | mingw* | pw32*)
13401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13402 # When not using gcc, we currently assume that we are using
13403 # Microsoft Visual C++.
13404 if test "$GCC" != yes; then
13405 with_gnu_ld=no
13406 fi
13407 ;;
13408 openbsd*)
13409 with_gnu_ld=no
13410 ;;
13411 esac
13412
13413 ld_shlibs_F77=yes
13414 if test "$with_gnu_ld" = yes; then
13415 # If archive_cmds runs LD, not CC, wlarc should be empty
13416 wlarc='${wl}'
13417
13418 # See if GNU ld supports shared libraries.
13419 case $host_os in
13420 aix3* | aix4* | aix5*)
13421 # On AIX/PPC, the GNU linker is very broken
13422 if test "$host_cpu" != ia64; then
13423 ld_shlibs_F77=no
13424 cat <<EOF 1>&2
13425
13426*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13427*** to be unable to reliably create shared libraries on AIX.
13428*** Therefore, libtool is disabling shared libraries support. If you
13429*** really care for shared libraries, you may want to modify your PATH
13430*** so that a non-GNU linker is found, and then restart.
13431
13432EOF
13433 fi
13434 ;;
13435
13436 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013437 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 +000013438 hardcode_libdir_flag_spec_F77='-L$libdir'
13439 hardcode_minus_L_F77=yes
13440
13441 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13442 # that the semantics of dynamic libraries on AmigaOS, at least up
13443 # to version 4, is to share data among multiple programs linked
13444 # with the same dynamic library. Since this doesn't match the
13445 # behavior of shared libraries on other platforms, we can't use
13446 # them.
13447 ld_shlibs_F77=no
13448 ;;
13449
13450 beos*)
13451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13452 allow_undefined_flag_F77=unsupported
13453 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13454 # support --undefined. This deserves some investigation. FIXME
13455 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13456 else
13457 ld_shlibs_F77=no
13458 fi
13459 ;;
13460
13461 cygwin* | mingw* | pw32*)
13462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13463 # as there is no search path for DLLs.
13464 hardcode_libdir_flag_spec_F77='-L$libdir'
13465 allow_undefined_flag_F77=unsupported
13466 always_export_symbols_F77=no
13467 enable_shared_with_static_runtimes_F77=yes
13468 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13469
13470 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13471 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13472 # If the export-symbols file already is a .def file (1st line
13473 # is EXPORTS), use it as is; otherwise, prepend...
13474 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13475 cp $export_symbols $output_objdir/$soname.def;
13476 else
13477 echo EXPORTS > $output_objdir/$soname.def;
13478 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000013479 fi~
13480 $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 +000013481 else
13482 ld_shlibs=no
13483 fi
13484 ;;
13485
13486 netbsd*)
13487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13488 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13489 wlarc=
13490 else
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 fi
13494 ;;
13495
13496 solaris* | sysv5*)
13497 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13498 ld_shlibs_F77=no
13499 cat <<EOF 1>&2
13500
13501*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13502*** create shared libraries on Solaris systems. Therefore, libtool
13503*** is disabling shared libraries support. We urge you to upgrade GNU
13504*** binutils to release 2.9.1 or newer. Another option is to modify
13505*** your PATH or compiler configuration so that the native linker is
13506*** used, and then restart.
13507
13508EOF
13509 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13510 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13512 else
13513 ld_shlibs_F77=no
13514 fi
13515 ;;
13516
13517 sunos4*)
13518 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13519 wlarc=
13520 hardcode_direct_F77=yes
13521 hardcode_shlibpath_var_F77=no
13522 ;;
13523
Reid Spencer2706f8c2004-09-19 23:53:36 +000013524 linux*)
13525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13526 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13527 archive_cmds_F77="$tmp_archive_cmds"
13528 supports_anon_versioning=no
13529 case `$LD -v 2>/dev/null` in
13530 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13531 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13532 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13533 *\ 2.11.*) ;; # other 2.11 versions
13534 *) supports_anon_versioning=yes ;;
13535 esac
13536 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013537 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13538cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13539$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000013540 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13541 else
13542 archive_expsym_cmds_F77="$tmp_archive_cmds"
13543 fi
13544 else
13545 ld_shlibs_F77=no
13546 fi
13547 ;;
13548
John Criswell47fdd832003-07-14 16:52:07 +000013549 *)
13550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13551 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13553 else
13554 ld_shlibs_F77=no
13555 fi
13556 ;;
13557 esac
13558
13559 if test "$ld_shlibs_F77" = yes; then
13560 runpath_var=LD_RUN_PATH
13561 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13562 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13563 # ancient GNU ld didn't support --whole-archive et. al.
13564 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13565 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13566 else
13567 whole_archive_flag_spec_F77=
13568 fi
13569 fi
13570 else
13571 # PORTME fill in a description of your system's linker (not GNU ld)
13572 case $host_os in
13573 aix3*)
13574 allow_undefined_flag_F77=unsupported
13575 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000013576 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 +000013577 # Note: this linker hardcodes the directories in LIBPATH if there
13578 # are no directories specified by -L.
13579 hardcode_minus_L_F77=yes
13580 if test "$GCC" = yes && test -z "$link_static_flag"; then
13581 # Neither direct hardcoding nor static linking is supported with a
13582 # broken collect2.
13583 hardcode_direct_F77=unsupported
13584 fi
13585 ;;
13586
13587 aix4* | aix5*)
13588 if test "$host_cpu" = ia64; then
13589 # On IA64, the linker does run time linking by default, so we don't
13590 # have to do anything special.
13591 aix_use_runtimelinking=no
13592 exp_sym_flag='-Bexport'
13593 no_entry_flag=""
13594 else
13595 # If we're using GNU nm, then we don't want the "-C" option.
13596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13597 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13598 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'
13599 else
13600 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'
13601 fi
13602 aix_use_runtimelinking=no
13603
13604 # Test if we are trying to use run time linking or normal
13605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13606 # need to do runtime linking.
13607 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13608 for ld_flag in $LDFLAGS; do
13609 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13610 aix_use_runtimelinking=yes
13611 break
13612 fi
13613 done
13614 esac
13615
13616 exp_sym_flag='-bexport'
13617 no_entry_flag='-bnoentry'
13618 fi
13619
13620 # When large executables or shared objects are built, AIX ld can
13621 # have problems creating the table of contents. If linking a library
13622 # or program results in "error TOC overflow" add -mminimal-toc to
13623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13625
13626 archive_cmds_F77=''
13627 hardcode_direct_F77=yes
13628 hardcode_libdir_separator_F77=':'
13629 link_all_deplibs_F77=yes
13630
13631 if test "$GCC" = yes; then
13632 case $host_os in aix4.012|aix4.012.*)
13633 # We only want to do this on AIX 4.2 and lower, the check
13634 # below for broken collect2 doesn't work under 4.3+
13635 collect2name=`${CC} -print-prog-name=collect2`
13636 if test -f "$collect2name" && \
13637 strings "$collect2name" | grep resolve_lib_name >/dev/null
13638 then
13639 # We have reworked collect2
13640 hardcode_direct_F77=yes
13641 else
13642 # We have old collect2
13643 hardcode_direct_F77=unsupported
13644 # It fails to find uninstalled libraries when the uninstalled
13645 # path is not listed in the libpath. Setting hardcode_minus_L
13646 # to unsupported forces relinking
13647 hardcode_minus_L_F77=yes
13648 hardcode_libdir_flag_spec_F77='-L$libdir'
13649 hardcode_libdir_separator_F77=
13650 fi
13651 esac
13652 shared_flag='-shared'
13653 else
13654 # not using gcc
13655 if test "$host_cpu" = ia64; then
13656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13657 # chokes on -Wl,-G. The following line is correct:
13658 shared_flag='-G'
13659 else
13660 if test "$aix_use_runtimelinking" = yes; then
13661 shared_flag='${wl}-G'
13662 else
13663 shared_flag='${wl}-bM:SRE'
13664 fi
13665 fi
13666 fi
13667
13668 # It seems that -bexpall does not export symbols beginning with
13669 # underscore (_), so it is better to generate a list of symbols to export.
13670 always_export_symbols_F77=yes
13671 if test "$aix_use_runtimelinking" = yes; then
13672 # Warning - without using the other runtime loading flags (-brtl),
13673 # -berok will link without error, but may produce a broken library.
13674 allow_undefined_flag_F77='-berok'
13675 # Determine the default libpath from the value encoded in an empty executable.
13676 cat >conftest.$ac_ext <<_ACEOF
13677 program main
13678
13679 end
13680_ACEOF
13681rm -f conftest.$ac_objext conftest$ac_exeext
13682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013683 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013690 { ac_try='test -z "$ac_f77_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703
13704aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13705}'`
13706# Check for a 64-bit object if we didn't find anything.
13707if 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; }
13708}'`; fi
13709else
13710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013711sed 's/^/| /' conftest.$ac_ext >&5
13712
John Criswell47fdd832003-07-14 16:52:07 +000013713fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013714rm -f conftest.err conftest.$ac_objext \
13715 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13717
13718 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13719 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"
13720 else
13721 if test "$host_cpu" = ia64; then
13722 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13723 allow_undefined_flag_F77="-z nodefs"
13724 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"
13725 else
13726 # Determine the default libpath from the value encoded in an empty executable.
13727 cat >conftest.$ac_ext <<_ACEOF
13728 program main
13729
13730 end
13731_ACEOF
13732rm -f conftest.$ac_objext conftest$ac_exeext
13733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013734 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013735 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013736 grep -v '^ *+' conftest.er1 >conftest.err
13737 rm -f conftest.er1
13738 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013741 { ac_try='test -z "$ac_f77_werror_flag"
13742 || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754
13755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13756}'`
13757# Check for a 64-bit object if we didn't find anything.
13758if 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; }
13759}'`; fi
13760else
13761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013762sed 's/^/| /' conftest.$ac_ext >&5
13763
John Criswell47fdd832003-07-14 16:52:07 +000013764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013765rm -f conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13768
13769 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13770 # Warning - without using the other run time loading flags,
13771 # -berok will link without error, but may produce a broken library.
13772 no_undefined_flag_F77=' ${wl}-bernotok'
13773 allow_undefined_flag_F77=' ${wl}-berok'
13774 # -bexpall does not export symbols beginning with underscore (_)
13775 always_export_symbols_F77=yes
13776 # Exported symbols can be pulled into shared objects from archives
13777 whole_archive_flag_spec_F77=' '
13778 archive_cmds_need_lc_F77=yes
13779 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000013780 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 +000013781 fi
13782 fi
13783 ;;
13784
13785 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013786 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 +000013787 hardcode_libdir_flag_spec_F77='-L$libdir'
13788 hardcode_minus_L_F77=yes
13789 # see comment about different semantics on the GNU ld section
13790 ld_shlibs_F77=no
13791 ;;
13792
Reid Spencer2706f8c2004-09-19 23:53:36 +000013793 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013794 export_dynamic_flag_spec_F77=-rdynamic
13795 ;;
13796
13797 cygwin* | mingw* | pw32*)
13798 # When not using gcc, we currently assume that we are using
13799 # Microsoft Visual C++.
13800 # hardcode_libdir_flag_spec is actually meaningless, as there is
13801 # no search path for DLLs.
13802 hardcode_libdir_flag_spec_F77=' '
13803 allow_undefined_flag_F77=unsupported
13804 # Tell ltmain to make .lib files, not .a files.
13805 libext=lib
13806 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013807 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013808 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000013809 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 +000013810 # The linker will automatically build a .lib file if we build a DLL.
13811 old_archive_From_new_cmds_F77='true'
13812 # FIXME: Should let the user specify the lib program.
13813 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13814 fix_srcfile_path='`cygpath -w "$srcfile"`'
13815 enable_shared_with_static_runtimes_F77=yes
13816 ;;
13817
13818 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000013819 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013820 rhapsody* | darwin1.[012])
13821 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13822 ;;
13823 *) # Darwin 1.3 on
13824 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13825 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13826 else
13827 case ${MACOSX_DEPLOYMENT_TARGET} in
13828 10.[012])
13829 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13830 ;;
13831 10.*)
13832 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13833 ;;
13834 esac
13835 fi
13836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013837 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013838 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013839 hardcode_direct_F77=no
13840 hardcode_automatic_F77=yes
13841 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013842 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000013843 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013844 if test "$GCC" = yes ; then
13845 output_verbose_link_cmd='echo'
13846 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13847 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000013849 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}'
13850 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013851 else
13852 case "$cc_basename" in
13853 xlc*)
13854 output_verbose_link_cmd='echo'
13855 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13856 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13857 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000013858 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}'
13859 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860 ;;
13861 *)
13862 ld_shlibs_F77=no
13863 ;;
13864 esac
John Criswell47fdd832003-07-14 16:52:07 +000013865 fi
13866 ;;
13867
13868 dgux*)
13869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_libdir_flag_spec_F77='-L$libdir'
13871 hardcode_shlibpath_var_F77=no
13872 ;;
13873
13874 freebsd1*)
13875 ld_shlibs_F77=no
13876 ;;
13877
13878 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13879 # support. Future versions do this automatically, but an explicit c++rt0.o
13880 # does not break anything, and helps significantly (at the cost of a little
13881 # extra space).
13882 freebsd2.2*)
13883 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13884 hardcode_libdir_flag_spec_F77='-R$libdir'
13885 hardcode_direct_F77=yes
13886 hardcode_shlibpath_var_F77=no
13887 ;;
13888
13889 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13890 freebsd2*)
13891 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_direct_F77=yes
13893 hardcode_minus_L_F77=yes
13894 hardcode_shlibpath_var_F77=no
13895 ;;
13896
13897 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013898 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013899 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13900 hardcode_libdir_flag_spec_F77='-R$libdir'
13901 hardcode_direct_F77=yes
13902 hardcode_shlibpath_var_F77=no
13903 ;;
13904
13905 hpux9*)
13906 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013907 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 +000013908 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013909 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 +000013910 fi
13911 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13912 hardcode_libdir_separator_F77=:
13913 hardcode_direct_F77=yes
13914
13915 # hardcode_minus_L: Not really in the search PATH,
13916 # but as the default location of the library.
13917 hardcode_minus_L_F77=yes
13918 export_dynamic_flag_spec_F77='${wl}-E'
13919 ;;
13920
13921 hpux10* | hpux11*)
13922 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13923 case "$host_cpu" in
13924 hppa*64*|ia64*)
13925 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 ;;
13927 *)
13928 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13929 ;;
13930 esac
13931 else
13932 case "$host_cpu" in
13933 hppa*64*|ia64*)
13934 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13935 ;;
13936 *)
13937 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13938 ;;
13939 esac
13940 fi
13941 if test "$with_gnu_ld" = no; then
13942 case "$host_cpu" in
13943 hppa*64*)
13944 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13946 hardcode_libdir_separator_F77=:
13947 hardcode_direct_F77=no
13948 hardcode_shlibpath_var_F77=no
13949 ;;
13950 ia64*)
13951 hardcode_libdir_flag_spec_F77='-L$libdir'
13952 hardcode_direct_F77=no
13953 hardcode_shlibpath_var_F77=no
13954
13955 # hardcode_minus_L: Not really in the search PATH,
13956 # but as the default location of the library.
13957 hardcode_minus_L_F77=yes
13958 ;;
13959 *)
13960 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13961 hardcode_libdir_separator_F77=:
13962 hardcode_direct_F77=yes
13963 export_dynamic_flag_spec_F77='${wl}-E'
13964
13965 # hardcode_minus_L: Not really in the search PATH,
13966 # but as the default location of the library.
13967 hardcode_minus_L_F77=yes
13968 ;;
13969 esac
13970 fi
13971 ;;
13972
13973 irix5* | irix6* | nonstopux*)
13974 if test "$GCC" = yes; then
13975 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'
13976 else
13977 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'
13978 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13979 fi
13980 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13981 hardcode_libdir_separator_F77=:
13982 link_all_deplibs_F77=yes
13983 ;;
13984
13985 netbsd*)
13986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13987 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13988 else
13989 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13990 fi
13991 hardcode_libdir_flag_spec_F77='-R$libdir'
13992 hardcode_direct_F77=yes
13993 hardcode_shlibpath_var_F77=no
13994 ;;
13995
13996 newsos6)
13997 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13998 hardcode_direct_F77=yes
13999 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14000 hardcode_libdir_separator_F77=:
14001 hardcode_shlibpath_var_F77=no
14002 ;;
14003
14004 openbsd*)
14005 hardcode_direct_F77=yes
14006 hardcode_shlibpath_var_F77=no
14007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14008 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014009 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 +000014010 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14011 export_dynamic_flag_spec_F77='${wl}-E'
14012 else
14013 case $host_os in
14014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14015 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14016 hardcode_libdir_flag_spec_F77='-R$libdir'
14017 ;;
14018 *)
14019 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14020 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14021 ;;
14022 esac
14023 fi
14024 ;;
14025
14026 os2*)
14027 hardcode_libdir_flag_spec_F77='-L$libdir'
14028 hardcode_minus_L_F77=yes
14029 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014030 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 +000014031 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14032 ;;
14033
14034 osf3*)
14035 if test "$GCC" = yes; then
14036 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14037 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'
14038 else
14039 allow_undefined_flag_F77=' -expect_unresolved \*'
14040 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'
14041 fi
14042 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14043 hardcode_libdir_separator_F77=:
14044 ;;
14045
14046 osf4* | osf5*) # as osf3* with the addition of -msym flag
14047 if test "$GCC" = yes; then
14048 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14049 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'
14050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14051 else
14052 allow_undefined_flag_F77=' -expect_unresolved \*'
14053 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 Spencer177dbe22004-10-13 01:01:03 +000014054 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~
14055 $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'
14056
John Criswell47fdd832003-07-14 16:52:07 +000014057 # Both c and cxx compiler support -rpath directly
14058 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14059 fi
14060 hardcode_libdir_separator_F77=:
14061 ;;
14062
14063 sco3.2v5*)
14064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065 hardcode_shlibpath_var_F77=no
14066 export_dynamic_flag_spec_F77='${wl}-Bexport'
14067 runpath_var=LD_RUN_PATH
14068 hardcode_runpath_var=yes
14069 ;;
14070
14071 solaris*)
14072 no_undefined_flag_F77=' -z text'
14073 if test "$GCC" = yes; then
14074 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014075 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14076 $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 +000014077 else
14078 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014079 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14080 $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 +000014081 fi
14082 hardcode_libdir_flag_spec_F77='-R$libdir'
14083 hardcode_shlibpath_var_F77=no
14084 case $host_os in
14085 solaris2.[0-5] | solaris2.[0-5].*) ;;
14086 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14087 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14088 esac
14089 link_all_deplibs_F77=yes
14090 ;;
14091
14092 sunos4*)
14093 if test "x$host_vendor" = xsequent; then
14094 # Use $CC to link under sequent, because it throws in some extra .o
14095 # files that make .init and .fini sections work.
14096 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14097 else
14098 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14099 fi
14100 hardcode_libdir_flag_spec_F77='-L$libdir'
14101 hardcode_direct_F77=yes
14102 hardcode_minus_L_F77=yes
14103 hardcode_shlibpath_var_F77=no
14104 ;;
14105
14106 sysv4)
14107 case $host_vendor in
14108 sni)
14109 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14110 hardcode_direct_F77=yes # is this really true???
14111 ;;
14112 siemens)
14113 ## LD is ld it makes a PLAMLIB
14114 ## CC just makes a GrossModule.
14115 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14116 reload_cmds_F77='$CC -r -o $output$reload_objs'
14117 hardcode_direct_F77=no
14118 ;;
14119 motorola)
14120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14122 ;;
14123 esac
14124 runpath_var='LD_RUN_PATH'
14125 hardcode_shlibpath_var_F77=no
14126 ;;
14127
14128 sysv4.3*)
14129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14130 hardcode_shlibpath_var_F77=no
14131 export_dynamic_flag_spec_F77='-Bexport'
14132 ;;
14133
14134 sysv4*MP*)
14135 if test -d /usr/nec; then
14136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_shlibpath_var_F77=no
14138 runpath_var=LD_RUN_PATH
14139 hardcode_runpath_var=yes
14140 ld_shlibs_F77=yes
14141 fi
14142 ;;
14143
14144 sysv4.2uw2*)
14145 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_direct_F77=yes
14147 hardcode_minus_L_F77=no
14148 hardcode_shlibpath_var_F77=no
14149 hardcode_runpath_var=yes
14150 runpath_var=LD_RUN_PATH
14151 ;;
14152
14153 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14154 no_undefined_flag_F77='${wl}-z ${wl}text'
14155 if test "$GCC" = yes; then
14156 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14157 else
14158 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159 fi
14160 runpath_var='LD_RUN_PATH'
14161 hardcode_shlibpath_var_F77=no
14162 ;;
14163
14164 sysv5*)
14165 no_undefined_flag_F77=' -z text'
14166 # $CC -shared without GNU ld will not create a library from C++
14167 # object files and a static libstdc++, better avoid it by now
14168 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014169 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14170 $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 +000014171 hardcode_libdir_flag_spec_F77=
14172 hardcode_shlibpath_var_F77=no
14173 runpath_var='LD_RUN_PATH'
14174 ;;
14175
14176 uts4*)
14177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14178 hardcode_libdir_flag_spec_F77='-L$libdir'
14179 hardcode_shlibpath_var_F77=no
14180 ;;
14181
14182 *)
14183 ld_shlibs_F77=no
14184 ;;
14185 esac
14186 fi
14187
14188echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14189echo "${ECHO_T}$ld_shlibs_F77" >&6
14190test "$ld_shlibs_F77" = no && can_build_shared=no
14191
14192variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14193if test "$GCC" = yes; then
14194 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14195fi
14196
14197#
14198# Do we need to explicitly link libc?
14199#
14200case "x$archive_cmds_need_lc_F77" in
14201x|xyes)
14202 # Assume -lc should be added
14203 archive_cmds_need_lc_F77=yes
14204
14205 if test "$enable_shared" = yes && test "$GCC" = yes; then
14206 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014207 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014208 # FIXME: we may have to deal with multi-command sequences.
14209 ;;
14210 '$CC '*)
14211 # Test whether the compiler implicitly links with -lc since on some
14212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14213 # to ld, don't add -lc before -lgcc.
14214 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14215echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14216 $rm conftest*
14217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220 (eval $ac_compile) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } 2>conftest.err; then
14224 soname=conftest
14225 lib=conftest
14226 libobjs=conftest.$ac_objext
14227 deplibs=
14228 wl=$lt_prog_compiler_wl_F77
14229 compiler_flags=-v
14230 linker_flags=-v
14231 verstring=
14232 output_objdir=.
14233 libname=conftest
14234 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14235 allow_undefined_flag_F77=
14236 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14237 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }
14241 then
14242 archive_cmds_need_lc_F77=no
14243 else
14244 archive_cmds_need_lc_F77=yes
14245 fi
14246 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14247 else
14248 cat conftest.err 1>&5
14249 fi
14250 $rm conftest*
14251 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14252echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14253 ;;
14254 esac
14255 fi
14256 ;;
14257esac
14258
John Criswell47fdd832003-07-14 16:52:07 +000014259echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14260echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14261library_names_spec=
14262libname_spec='lib$name'
14263soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014264shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000014265postinstall_cmds=
14266postuninstall_cmds=
14267finish_cmds=
14268finish_eval=
14269shlibpath_var=
14270shlibpath_overrides_runpath=unknown
14271version_type=none
14272dynamic_linker="$host_os ld.so"
14273sys_lib_dlsearch_path_spec="/lib /usr/lib"
14274if test "$GCC" = yes; then
14275 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14276 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14277 # if the path contains ";" then we assume it to be the separator
14278 # otherwise default to the standard path separator (i.e. ":") - it is
14279 # assumed that no part of a normal pathname contains ";" but that should
14280 # okay in the real world where ";" in dirpaths is itself problematic.
14281 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14282 else
14283 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14284 fi
14285else
14286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14287fi
14288need_lib_prefix=unknown
14289hardcode_into_libs=no
14290
14291# when you set need_version to no, make sure it does not cause -set_version
14292# flags to be left without arguments
14293need_version=unknown
14294
14295case $host_os in
14296aix3*)
14297 version_type=linux
14298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14299 shlibpath_var=LIBPATH
14300
14301 # AIX 3 has no versioning support, so we append a major version to the name.
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 ;;
14304
14305aix4* | aix5*)
14306 version_type=linux
14307 need_lib_prefix=no
14308 need_version=no
14309 hardcode_into_libs=yes
14310 if test "$host_cpu" = ia64; then
14311 # AIX 5 supports IA64
14312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14313 shlibpath_var=LD_LIBRARY_PATH
14314 else
14315 # With GCC up to 2.95.x, collect2 would create an import file
14316 # for dependence libraries. The import file would start with
14317 # the line `#! .'. This would cause the generated library to
14318 # depend on `.', always an invalid library. This was fixed in
14319 # development snapshots of GCC prior to 3.0.
14320 case $host_os in
14321 aix4 | aix4.[01] | aix4.[01].*)
14322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14323 echo ' yes '
14324 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14325 :
14326 else
14327 can_build_shared=no
14328 fi
14329 ;;
14330 esac
14331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14332 # soname into executable. Probably we can add versioning support to
14333 # collect2, so additional links can be useful in future.
14334 if test "$aix_use_runtimelinking" = yes; then
14335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14336 # instead of lib<name>.a to let people know that these are not
14337 # typical AIX shared libraries.
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 else
14340 # We preserve .a as extension for shared libraries through AIX4.2
14341 # and later when we are not doing run time linking.
14342 library_names_spec='${libname}${release}.a $libname.a'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 fi
14345 shlibpath_var=LIBPATH
14346 fi
14347 ;;
14348
14349amigaos*)
14350 library_names_spec='$libname.ixlibrary $libname.a'
14351 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014352 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 +000014353 ;;
14354
14355beos*)
14356 library_names_spec='${libname}${shared_ext}'
14357 dynamic_linker="$host_os ld.so"
14358 shlibpath_var=LIBRARY_PATH
14359 ;;
14360
Reid Spencer2706f8c2004-09-19 23:53:36 +000014361bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014362 version_type=linux
14363 need_version=no
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14365 soname_spec='${libname}${release}${shared_ext}$major'
14366 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14367 shlibpath_var=LD_LIBRARY_PATH
14368 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14369 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14370 # the default ld.so.conf also contains /usr/contrib/lib and
14371 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14372 # libtool to hard-code these into programs
14373 ;;
14374
14375cygwin* | mingw* | pw32*)
14376 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000014377 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014378 need_version=no
14379 need_lib_prefix=no
14380
14381 case $GCC,$host_os in
14382 yes,cygwin* | yes,mingw* | yes,pw32*)
14383 library_names_spec='$libname.dll.a'
14384 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000014385 postinstall_cmds='base_file=`basename \${file}`~
14386 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14387 dldir=$destdir/`dirname \$dlpath`~
14388 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000014389 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000014390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14391 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000014392 $rm \$dlpath'
14393 shlibpath_overrides_runpath=yes
14394
14395 case $host_os in
14396 cygwin*)
14397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14398 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 +000014399 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014400 ;;
14401 mingw*)
14402 # MinGW DLLs use traditional 'lib' prefix
14403 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14404 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14405 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14406 # It is most probably a Windows format PATH printed by
14407 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14408 # path with ; separators, and with drive letters. We can handle the
14409 # drive letters (cygwin fileutils understands them), so leave them,
14410 # especially as we might pass files found there to a mingw objdump,
14411 # which wouldn't understand a cygwinified path. Ahh.
14412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14413 else
14414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14415 fi
14416 ;;
14417 pw32*)
14418 # pw32 DLLs use 'pw' prefix rather than 'lib'
14419 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14420 ;;
14421 esac
14422 ;;
14423
14424 *)
14425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14426 ;;
14427 esac
14428 dynamic_linker='Win32 ld.exe'
14429 # FIXME: first we should search . and the directory the executable is in
14430 shlibpath_var=PATH
14431 ;;
14432
14433darwin* | rhapsody*)
14434 dynamic_linker="$host_os dyld"
14435 version_type=darwin
14436 need_lib_prefix=no
14437 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000014438 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000014439 soname_spec='${libname}${release}${major}$shared_ext'
14440 shlibpath_overrides_runpath=yes
14441 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000014442 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000014443 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014444 if test "$GCC" = yes; then
14445 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"`
14446 else
14447 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014448 fi
14449 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14450 ;;
14451
14452dgux*)
14453 version_type=linux
14454 need_lib_prefix=no
14455 need_version=no
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 ;;
14460
14461freebsd1*)
14462 dynamic_linker=no
14463 ;;
14464
Reid Spencer2706f8c2004-09-19 23:53:36 +000014465kfreebsd*-gnu)
14466 version_type=linux
14467 need_lib_prefix=no
14468 need_version=no
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 shlibpath_overrides_runpath=no
14473 hardcode_into_libs=yes
14474 dynamic_linker='GNU ld.so'
14475 ;;
14476
John Criswell47fdd832003-07-14 16:52:07 +000014477freebsd*)
14478 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14479 version_type=freebsd-$objformat
14480 case $version_type in
14481 freebsd-elf*)
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14483 need_version=no
14484 need_lib_prefix=no
14485 ;;
14486 freebsd-*)
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14488 need_version=yes
14489 ;;
14490 esac
14491 shlibpath_var=LD_LIBRARY_PATH
14492 case $host_os in
14493 freebsd2*)
14494 shlibpath_overrides_runpath=yes
14495 ;;
14496 freebsd3.01* | freebsdelf3.01*)
14497 shlibpath_overrides_runpath=yes
14498 hardcode_into_libs=yes
14499 ;;
14500 *) # from 3.2 on
14501 shlibpath_overrides_runpath=no
14502 hardcode_into_libs=yes
14503 ;;
14504 esac
14505 ;;
14506
14507gnu*)
14508 version_type=linux
14509 need_lib_prefix=no
14510 need_version=no
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 hardcode_into_libs=yes
14515 ;;
14516
14517hpux9* | hpux10* | hpux11*)
14518 # Give a soname corresponding to the major version so that dld.sl refuses to
14519 # link against other versions.
14520 version_type=sunos
14521 need_lib_prefix=no
14522 need_version=no
14523 case "$host_cpu" in
14524 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014525 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000014526 hardcode_into_libs=yes
14527 dynamic_linker="$host_os dld.so"
14528 shlibpath_var=LD_LIBRARY_PATH
14529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 if test "X$HPUX_IA64_MODE" = X32; then
14533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14534 else
14535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14536 fi
14537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14538 ;;
14539 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014540 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014541 hardcode_into_libs=yes
14542 dynamic_linker="$host_os dld.sl"
14543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14549 ;;
14550 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014551 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014552 dynamic_linker="$host_os dld.sl"
14553 shlibpath_var=SHLIB_PATH
14554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 ;;
14558 esac
14559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14560 postinstall_cmds='chmod 555 $lib'
14561 ;;
14562
14563irix5* | irix6* | nonstopux*)
14564 case $host_os in
14565 nonstopux*) version_type=nonstopux ;;
14566 *)
14567 if test "$lt_cv_prog_gnu_ld" = yes; then
14568 version_type=linux
14569 else
14570 version_type=irix
14571 fi ;;
14572 esac
14573 need_lib_prefix=no
14574 need_version=no
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14577 case $host_os in
14578 irix5* | nonstopux*)
14579 libsuff= shlibsuff=
14580 ;;
14581 *)
14582 case $LD in # libtool.m4 will add one of these switches to LD
14583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14584 libsuff= shlibsuff= libmagic=32-bit;;
14585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14586 libsuff=32 shlibsuff=N32 libmagic=N32;;
14587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14589 *) libsuff= shlibsuff= libmagic=never-match;;
14590 esac
14591 ;;
14592 esac
14593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14594 shlibpath_overrides_runpath=no
14595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14597 hardcode_into_libs=yes
14598 ;;
14599
14600# No shared lib support for Linux oldld, aout, or coff.
14601linux*oldld* | linux*aout* | linux*coff*)
14602 dynamic_linker=no
14603 ;;
14604
14605# This must be Linux ELF.
14606linux*)
14607 version_type=linux
14608 need_lib_prefix=no
14609 need_version=no
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=no
14615 # This implies no fast_install, which is unacceptable.
14616 # Some rework will be needed to allow for fast_install
14617 # before this can be enabled.
14618 hardcode_into_libs=yes
14619
Reid Spencer2706f8c2004-09-19 23:53:36 +000014620 # Append ld.so.conf contents to the search path
14621 if test -f /etc/ld.so.conf; then
14622 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14624 fi
14625
John Criswell47fdd832003-07-14 16:52:07 +000014626 # We used to test for /lib/ld.so.1 and disable shared libraries on
14627 # powerpc, because MkLinux only supported shared libraries with the
14628 # GNU dynamic linker. Since this was broken with cross compilers,
14629 # most powerpc-linux boxes support dynamic linking these days and
14630 # people can always --disable-shared, the test was removed, and we
14631 # assume the GNU/Linux dynamic linker is in use.
14632 dynamic_linker='GNU/Linux ld.so'
14633 ;;
14634
Reid Spencer2706f8c2004-09-19 23:53:36 +000014635knetbsd*-gnu)
14636 version_type=linux
14637 need_lib_prefix=no
14638 need_version=no
14639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640 soname_spec='${libname}${release}${shared_ext}$major'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14644 dynamic_linker='GNU ld.so'
14645 ;;
14646
John Criswell47fdd832003-07-14 16:52:07 +000014647netbsd*)
14648 version_type=sunos
14649 need_lib_prefix=no
14650 need_version=no
14651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14654 dynamic_linker='NetBSD (a.out) ld.so'
14655 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000014657 soname_spec='${libname}${release}${shared_ext}$major'
14658 dynamic_linker='NetBSD ld.elf_so'
14659 fi
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14662 hardcode_into_libs=yes
14663 ;;
14664
14665newsos6)
14666 version_type=linux
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 shlibpath_overrides_runpath=yes
14670 ;;
14671
Reid Spencer2706f8c2004-09-19 23:53:36 +000014672nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014673 version_type=linux
14674 need_lib_prefix=no
14675 need_version=no
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 shlibpath_overrides_runpath=yes
14680 ;;
14681
14682openbsd*)
14683 version_type=sunos
14684 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014685 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14690 case $host_os in
14691 openbsd2.[89] | openbsd2.[89].*)
14692 shlibpath_overrides_runpath=no
14693 ;;
14694 *)
14695 shlibpath_overrides_runpath=yes
14696 ;;
14697 esac
14698 else
14699 shlibpath_overrides_runpath=yes
14700 fi
14701 ;;
14702
14703os2*)
14704 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014705 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014706 need_lib_prefix=no
14707 library_names_spec='$libname${shared_ext} $libname.a'
14708 dynamic_linker='OS/2 ld.exe'
14709 shlibpath_var=LIBPATH
14710 ;;
14711
14712osf3* | osf4* | osf5*)
14713 version_type=osf
14714 need_lib_prefix=no
14715 need_version=no
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14721 ;;
14722
14723sco3.2v5*)
14724 version_type=osf
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 ;;
14729
14730solaris*)
14731 version_type=linux
14732 need_lib_prefix=no
14733 need_version=no
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735 soname_spec='${libname}${release}${shared_ext}$major'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=yes
14738 hardcode_into_libs=yes
14739 # ldd complains unless libraries are executable
14740 postinstall_cmds='chmod +x $lib'
14741 ;;
14742
14743sunos4*)
14744 version_type=sunos
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14746 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=yes
14749 if test "$with_gnu_ld" = yes; then
14750 need_lib_prefix=no
14751 fi
14752 need_version=yes
14753 ;;
14754
14755sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14756 version_type=linux
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 case $host_vendor in
14761 sni)
14762 shlibpath_overrides_runpath=no
14763 need_lib_prefix=no
14764 export_dynamic_flag_spec='${wl}-Blargedynsym'
14765 runpath_var=LD_RUN_PATH
14766 ;;
14767 siemens)
14768 need_lib_prefix=no
14769 ;;
14770 motorola)
14771 need_lib_prefix=no
14772 need_version=no
14773 shlibpath_overrides_runpath=no
14774 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14775 ;;
14776 esac
14777 ;;
14778
14779sysv4*MP*)
14780 if test -d /usr/nec ;then
14781 version_type=linux
14782 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14783 soname_spec='$libname${shared_ext}.$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 fi
14786 ;;
14787
14788uts4*)
14789 version_type=linux
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 ;;
14794
14795*)
14796 dynamic_linker=no
14797 ;;
14798esac
14799echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14800echo "${ECHO_T}$dynamic_linker" >&6
14801test "$dynamic_linker" = no && can_build_shared=no
14802
Reid Spencer2706f8c2004-09-19 23:53:36 +000014803echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14804echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14805hardcode_action_F77=
14806if test -n "$hardcode_libdir_flag_spec_F77" || \
14807 test -n "$runpath_var_F77" || \
14808 test "X$hardcode_automatic_F77" = "Xyes" ; then
14809
14810 # We can hardcode non-existant directories.
14811 if test "$hardcode_direct_F77" != no &&
14812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14813 # have to relink, otherwise we might link with an installed library
14814 # when we should be linking with a yet-to-be-installed one
14815 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14816 test "$hardcode_minus_L_F77" != no; then
14817 # Linking always hardcodes the temporary library directory.
14818 hardcode_action_F77=relink
14819 else
14820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14821 hardcode_action_F77=immediate
14822 fi
14823else
14824 # We cannot hardcode anything, or else we can only hardcode existing
14825 # directories.
14826 hardcode_action_F77=unsupported
14827fi
14828echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14829echo "${ECHO_T}$hardcode_action_F77" >&6
14830
14831if test "$hardcode_action_F77" = relink; then
14832 # Fast installation is not supported
14833 enable_fast_install=no
14834elif test "$shlibpath_overrides_runpath" = yes ||
14835 test "$enable_shared" = no; then
14836 # Fast installation is not necessary
14837 enable_fast_install=needless
14838fi
14839
14840striplib=
14841old_striplib=
14842echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14843echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14844if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14845 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14846 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14847 echo "$as_me:$LINENO: result: yes" >&5
14848echo "${ECHO_T}yes" >&6
14849else
14850# FIXME - insert some real tests, host_os isn't really good enough
14851 case $host_os in
14852 darwin*)
14853 if test -n "$STRIP" ; then
14854 striplib="$STRIP -x"
14855 echo "$as_me:$LINENO: result: yes" >&5
14856echo "${ECHO_T}yes" >&6
14857 else
14858 echo "$as_me:$LINENO: result: no" >&5
14859echo "${ECHO_T}no" >&6
14860fi
14861 ;;
14862 *)
14863 echo "$as_me:$LINENO: result: no" >&5
14864echo "${ECHO_T}no" >&6
14865 ;;
14866 esac
14867fi
14868
14869
John Criswell47fdd832003-07-14 16:52:07 +000014870
14871# The else clause should only fire when bootstrapping the
14872# libtool distribution, otherwise you forgot to ship ltmain.sh
14873# with your package, and you will get complaints that there are
14874# no rules to generate ltmain.sh.
14875if test -f "$ltmain"; then
14876 # See if we are running on zsh, and set the options which allow our commands through
14877 # without removal of \ escapes.
14878 if test -n "${ZSH_VERSION+set}" ; then
14879 setopt NO_GLOB_SUBST
14880 fi
14881 # Now quote all the things that may contain metacharacters while being
14882 # careful not to overquote the AC_SUBSTed values. We take copies of the
14883 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014884 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14885 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014886 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14887 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14888 deplibs_check_method reload_flag reload_cmds need_locks \
14889 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14890 lt_cv_sys_global_symbol_to_c_name_address \
14891 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14892 old_postinstall_cmds old_postuninstall_cmds \
14893 compiler_F77 \
14894 CC_F77 \
14895 LD_F77 \
14896 lt_prog_compiler_wl_F77 \
14897 lt_prog_compiler_pic_F77 \
14898 lt_prog_compiler_static_F77 \
14899 lt_prog_compiler_no_builtin_flag_F77 \
14900 export_dynamic_flag_spec_F77 \
14901 thread_safe_flag_spec_F77 \
14902 whole_archive_flag_spec_F77 \
14903 enable_shared_with_static_runtimes_F77 \
14904 old_archive_cmds_F77 \
14905 old_archive_from_new_cmds_F77 \
14906 predep_objects_F77 \
14907 postdep_objects_F77 \
14908 predeps_F77 \
14909 postdeps_F77 \
14910 compiler_lib_search_path_F77 \
14911 archive_cmds_F77 \
14912 archive_expsym_cmds_F77 \
14913 postinstall_cmds_F77 \
14914 postuninstall_cmds_F77 \
14915 old_archive_from_expsyms_cmds_F77 \
14916 allow_undefined_flag_F77 \
14917 no_undefined_flag_F77 \
14918 export_symbols_cmds_F77 \
14919 hardcode_libdir_flag_spec_F77 \
14920 hardcode_libdir_flag_spec_ld_F77 \
14921 hardcode_libdir_separator_F77 \
14922 hardcode_automatic_F77 \
14923 module_cmds_F77 \
14924 module_expsym_cmds_F77 \
14925 lt_cv_prog_compiler_c_o_F77 \
14926 exclude_expsyms_F77 \
14927 include_expsyms_F77; do
14928
14929 case $var in
14930 old_archive_cmds_F77 | \
14931 old_archive_from_new_cmds_F77 | \
14932 archive_cmds_F77 | \
14933 archive_expsym_cmds_F77 | \
14934 module_cmds_F77 | \
14935 module_expsym_cmds_F77 | \
14936 old_archive_from_expsyms_cmds_F77 | \
14937 export_symbols_cmds_F77 | \
14938 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14939 postinstall_cmds | postuninstall_cmds | \
14940 old_postinstall_cmds | old_postuninstall_cmds | \
14941 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14942 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014943 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 +000014944 ;;
14945 *)
14946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14947 ;;
14948 esac
14949 done
14950
14951 case $lt_echo in
14952 *'\$0 --fallback-echo"')
14953 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14954 ;;
14955 esac
14956
14957cfgfile="$ofile"
14958
14959 cat <<__EOF__ >> "$cfgfile"
14960# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14961
14962# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14963
14964# Shell to use when invoking shell scripts.
14965SHELL=$lt_SHELL
14966
14967# Whether or not to build shared libraries.
14968build_libtool_libs=$enable_shared
14969
14970# Whether or not to build static libraries.
14971build_old_libs=$enable_static
14972
14973# Whether or not to add -lc for building shared libraries.
14974build_libtool_need_lc=$archive_cmds_need_lc_F77
14975
14976# Whether or not to disallow shared libs when runtime libs are static
14977allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14978
14979# Whether or not to optimize for fast installation.
14980fast_install=$enable_fast_install
14981
14982# The host system.
14983host_alias=$host_alias
14984host=$host
14985
14986# An echo program that does not interpret backslashes.
14987echo=$lt_echo
14988
14989# The archiver.
14990AR=$lt_AR
14991AR_FLAGS=$lt_AR_FLAGS
14992
14993# A C compiler.
14994LTCC=$lt_LTCC
14995
14996# A language-specific compiler.
14997CC=$lt_compiler_F77
14998
14999# Is the compiler the GNU C compiler?
15000with_gcc=$GCC_F77
15001
15002# An ERE matcher.
15003EGREP=$lt_EGREP
15004
15005# The linker used to build libraries.
15006LD=$lt_LD_F77
15007
15008# Whether we need hard or soft links.
15009LN_S=$lt_LN_S
15010
15011# A BSD-compatible nm program.
15012NM=$lt_NM
15013
15014# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015015STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000015016
15017# Used to examine libraries when file_magic_cmd begins "file"
15018MAGIC_CMD=$MAGIC_CMD
15019
15020# Used on cygwin: DLL creation program.
15021DLLTOOL="$DLLTOOL"
15022
15023# Used on cygwin: object dumper.
15024OBJDUMP="$OBJDUMP"
15025
15026# Used on cygwin: assembler.
15027AS="$AS"
15028
15029# The name of the directory that contains temporary libtool files.
15030objdir=$objdir
15031
15032# How to create reloadable object files.
15033reload_flag=$lt_reload_flag
15034reload_cmds=$lt_reload_cmds
15035
15036# How to pass a linker flag through the compiler.
15037wl=$lt_lt_prog_compiler_wl_F77
15038
15039# Object file suffix (normally "o").
15040objext="$ac_objext"
15041
15042# Old archive suffix (normally "a").
15043libext="$libext"
15044
15045# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015046shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015047
15048# Executable file suffix (normally "").
15049exeext="$exeext"
15050
15051# Additional compiler flags for building library objects.
15052pic_flag=$lt_lt_prog_compiler_pic_F77
15053pic_mode=$pic_mode
15054
15055# What is the maximum length of a command?
15056max_cmd_len=$lt_cv_sys_max_cmd_len
15057
15058# Does compiler simultaneously support -c and -o options?
15059compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15060
15061# Must we lock files when doing compilation ?
15062need_locks=$lt_need_locks
15063
15064# Do we need the lib prefix for modules?
15065need_lib_prefix=$need_lib_prefix
15066
15067# Do we need a version for libraries?
15068need_version=$need_version
15069
15070# Whether dlopen is supported.
15071dlopen_support=$enable_dlopen
15072
15073# Whether dlopen of programs is supported.
15074dlopen_self=$enable_dlopen_self
15075
15076# Whether dlopen of statically linked programs is supported.
15077dlopen_self_static=$enable_dlopen_self_static
15078
15079# Compiler flag to prevent dynamic linking.
15080link_static_flag=$lt_lt_prog_compiler_static_F77
15081
15082# Compiler flag to turn off builtin functions.
15083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15084
15085# Compiler flag to allow reflexive dlopens.
15086export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15087
15088# Compiler flag to generate shared objects directly from archives.
15089whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15090
15091# Compiler flag to generate thread-safe objects.
15092thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15093
15094# Library versioning type.
15095version_type=$version_type
15096
15097# Format of library name prefix.
15098libname_spec=$lt_libname_spec
15099
15100# List of archive names. First name is the real one, the rest are links.
15101# The last name is the one that the linker finds with -lNAME.
15102library_names_spec=$lt_library_names_spec
15103
15104# The coded name of the library, if different from the real name.
15105soname_spec=$lt_soname_spec
15106
15107# Commands used to build and install an old-style archive.
15108RANLIB=$lt_RANLIB
15109old_archive_cmds=$lt_old_archive_cmds_F77
15110old_postinstall_cmds=$lt_old_postinstall_cmds
15111old_postuninstall_cmds=$lt_old_postuninstall_cmds
15112
15113# Create an old-style archive from a shared archive.
15114old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15115
15116# Create a temporary old-style archive to link instead of a shared archive.
15117old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15118
15119# Commands used to build and install a shared archive.
15120archive_cmds=$lt_archive_cmds_F77
15121archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15122postinstall_cmds=$lt_postinstall_cmds
15123postuninstall_cmds=$lt_postuninstall_cmds
15124
15125# Commands used to build a loadable module (assumed same as above if empty)
15126module_cmds=$lt_module_cmds_F77
15127module_expsym_cmds=$lt_module_expsym_cmds_F77
15128
15129# Commands to strip libraries.
15130old_striplib=$lt_old_striplib
15131striplib=$lt_striplib
15132
15133# Dependencies to place before the objects being linked to create a
15134# shared library.
15135predep_objects=$lt_predep_objects_F77
15136
15137# Dependencies to place after the objects being linked to create a
15138# shared library.
15139postdep_objects=$lt_postdep_objects_F77
15140
15141# Dependencies to place before the objects being linked to create a
15142# shared library.
15143predeps=$lt_predeps_F77
15144
15145# Dependencies to place after the objects being linked to create a
15146# shared library.
15147postdeps=$lt_postdeps_F77
15148
15149# The library search path used internally by the compiler when linking
15150# a shared library.
15151compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15152
15153# Method to check whether dependent libraries are shared objects.
15154deplibs_check_method=$lt_deplibs_check_method
15155
15156# Command to use when deplibs_check_method == file_magic.
15157file_magic_cmd=$lt_file_magic_cmd
15158
15159# Flag that allows shared libraries with undefined symbols to be built.
15160allow_undefined_flag=$lt_allow_undefined_flag_F77
15161
15162# Flag that forces no undefined symbols.
15163no_undefined_flag=$lt_no_undefined_flag_F77
15164
15165# Commands used to finish a libtool library installation in a directory.
15166finish_cmds=$lt_finish_cmds
15167
15168# Same as above, but a single script fragment to be evaled but not shown.
15169finish_eval=$lt_finish_eval
15170
15171# Take the output of nm and produce a listing of raw symbols and C names.
15172global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15173
15174# Transform the output of nm in a proper C declaration
15175global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15176
15177# Transform the output of nm in a C name address pair
15178global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15179
15180# This is the shared library runtime path variable.
15181runpath_var=$runpath_var
15182
15183# This is the shared library path variable.
15184shlibpath_var=$shlibpath_var
15185
15186# Is shlibpath searched before the hard-coded library search path?
15187shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15188
15189# How to hardcode a shared library path into an executable.
15190hardcode_action=$hardcode_action_F77
15191
15192# Whether we should hardcode library paths into libraries.
15193hardcode_into_libs=$hardcode_into_libs
15194
15195# Flag to hardcode \$libdir into a binary during linking.
15196# This must work even if \$libdir does not exist.
15197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15198
15199# If ld is used when linking, flag to hardcode \$libdir into
15200# a binary during linking. This must work even if \$libdir does
15201# not exist.
15202hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15203
15204# Whether we need a single -rpath flag with a separated argument.
15205hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15206
15207# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15208# resulting binary.
15209hardcode_direct=$hardcode_direct_F77
15210
15211# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15212# resulting binary.
15213hardcode_minus_L=$hardcode_minus_L_F77
15214
15215# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15216# the resulting binary.
15217hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15218
15219# Set to yes if building a shared library automatically hardcodes DIR into the library
15220# and all subsequent libraries and executables linked against it.
15221hardcode_automatic=$hardcode_automatic_F77
15222
15223# Variables whose values should be saved in libtool wrapper scripts and
15224# restored at relink time.
15225variables_saved_for_relink="$variables_saved_for_relink"
15226
15227# Whether libtool must link a program against all its dependency libraries.
15228link_all_deplibs=$link_all_deplibs_F77
15229
15230# Compile-time system search path for libraries
15231sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15232
15233# Run-time system search path for libraries
15234sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15235
15236# Fix the shell variable \$srcfile for the compiler.
15237fix_srcfile_path="$fix_srcfile_path_F77"
15238
15239# Set to yes if exported symbols are required.
15240always_export_symbols=$always_export_symbols_F77
15241
15242# The commands to list exported symbols.
15243export_symbols_cmds=$lt_export_symbols_cmds_F77
15244
15245# The commands to extract the exported symbol list from a shared archive.
15246extract_expsyms_cmds=$lt_extract_expsyms_cmds
15247
15248# Symbols that should not be listed in the preloaded symbols.
15249exclude_expsyms=$lt_exclude_expsyms_F77
15250
15251# Symbols that must always be exported.
15252include_expsyms=$lt_include_expsyms_F77
15253
15254# ### END LIBTOOL TAG CONFIG: $tagname
15255
15256__EOF__
15257
15258
15259else
15260 # If there is no Makefile yet, we rely on a make rule to execute
15261 # `config.status --recheck' to rerun these tests and create the
15262 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015263 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15264 if test -f "$ltmain_in"; then
15265 test -f Makefile && make "$ltmain"
15266 fi
John Criswell47fdd832003-07-14 16:52:07 +000015267fi
15268
15269
15270ac_ext=c
15271ac_cpp='$CPP $CPPFLAGS'
15272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274ac_compiler_gnu=$ac_cv_c_compiler_gnu
15275
15276CC="$lt_save_CC"
15277
15278 else
15279 tagname=""
15280 fi
15281 ;;
15282
15283 GCJ)
15284 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015285 ac_ext=c
15286ac_cpp='$CPP $CPPFLAGS'
15287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000015290
15291
15292# Source file extension for Java test sources.
15293ac_ext=java
15294
15295# Object file extension for compiled Java test sources.
15296objext=o
15297objext_GCJ=$objext
15298
15299# Code to be used in simple compile tests
15300lt_simple_compile_test_code="class foo {}\n"
15301
15302# Code to be used in simple link tests
15303lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15304
15305# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15306
15307# If no C compiler was specified, use CC.
15308LTCC=${LTCC-"$CC"}
15309
15310# Allow CC to be a program name with arguments.
15311compiler=$CC
15312
15313
15314# Allow CC to be a program name with arguments.
15315lt_save_CC="$CC"
15316CC=${GCJ-"gcj"}
15317compiler=$CC
15318compiler_GCJ=$CC
15319
15320# GCJ did not exist at the time GCC didn't implicitly link libc in.
15321archive_cmds_need_lc_GCJ=no
15322
John Criswell47fdd832003-07-14 16:52:07 +000015323
15324lt_prog_compiler_no_builtin_flag_GCJ=
15325
15326if test "$GCC" = yes; then
15327 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15328
Reid Spencer2706f8c2004-09-19 23:53:36 +000015329
15330echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015331echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15332if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15334else
15335 lt_cv_prog_compiler_rtti_exceptions=no
15336 ac_outfile=conftest.$ac_objext
15337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15338 lt_compiler_flag="-fno-rtti -fno-exceptions"
15339 # Insert the option either (1) after the last *FLAGS variable, or
15340 # (2) before a word containing "conftest.", or (3) at the end.
15341 # Note that $ac_compile itself does not contain backslashes and begins
15342 # with a dollar sign (not a hyphen), so the echo should work correctly.
15343 # The option is referenced via a variable to avoid confusing sed.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000015348 (eval echo "\"\$as_me:15348: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015349 (eval "$lt_compile" 2>conftest.err)
15350 ac_status=$?
15351 cat conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000015352 echo "$as_me:15352: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015353 if (exit $ac_status) && test -s "$ac_outfile"; then
15354 # The compiler can only warn and ignore the option if not recognized
15355 # So say no if there are warnings
15356 if test ! -s conftest.err; then
15357 lt_cv_prog_compiler_rtti_exceptions=yes
15358 fi
15359 fi
15360 $rm conftest*
15361
15362fi
15363echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15364echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15365
15366if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15367 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15368else
15369 :
15370fi
15371
15372fi
15373
15374lt_prog_compiler_wl_GCJ=
15375lt_prog_compiler_pic_GCJ=
15376lt_prog_compiler_static_GCJ=
15377
15378echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15379echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15380
15381 if test "$GCC" = yes; then
15382 lt_prog_compiler_wl_GCJ='-Wl,'
15383 lt_prog_compiler_static_GCJ='-static'
15384
15385 case $host_os in
15386 aix*)
15387 # All AIX code is PIC.
15388 if test "$host_cpu" = ia64; then
15389 # AIX 5 now supports IA64 processor
15390 lt_prog_compiler_static_GCJ='-Bstatic'
15391 fi
15392 ;;
15393
15394 amigaos*)
15395 # FIXME: we need at least 68020 code to build shared libraries, but
15396 # adding the `-m68020' flag to GCC prevents building anything better,
15397 # like `-m68040'.
15398 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15399 ;;
15400
15401 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15402 # PIC is the default for these OSes.
15403 ;;
15404
15405 mingw* | pw32* | os2*)
15406 # This hack is so that the source file can tell whether it is being
15407 # built for inclusion in a dll (and should export symbols for example).
15408 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15409 ;;
15410
15411 darwin* | rhapsody*)
15412 # PIC is the default on this platform
15413 # Common symbols not allowed in MH_DYLIB files
15414 lt_prog_compiler_pic_GCJ='-fno-common'
15415 ;;
15416
15417 msdosdjgpp*)
15418 # Just because we use GCC doesn't mean we suddenly get shared libraries
15419 # on systems that don't support them.
15420 lt_prog_compiler_can_build_shared_GCJ=no
15421 enable_shared=no
15422 ;;
15423
15424 sysv4*MP*)
15425 if test -d /usr/nec; then
15426 lt_prog_compiler_pic_GCJ=-Kconform_pic
15427 fi
15428 ;;
15429
15430 hpux*)
15431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15432 # not for PA HP-UX.
15433 case "$host_cpu" in
15434 hppa*64*|ia64*)
15435 # +Z the default
15436 ;;
15437 *)
15438 lt_prog_compiler_pic_GCJ='-fPIC'
15439 ;;
15440 esac
15441 ;;
15442
15443 *)
15444 lt_prog_compiler_pic_GCJ='-fPIC'
15445 ;;
15446 esac
15447 else
15448 # PORTME Check for flag to pass linker flags through the system compiler.
15449 case $host_os in
15450 aix*)
15451 lt_prog_compiler_wl_GCJ='-Wl,'
15452 if test "$host_cpu" = ia64; then
15453 # AIX 5 now supports IA64 processor
15454 lt_prog_compiler_static_GCJ='-Bstatic'
15455 else
15456 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15457 fi
15458 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015459 darwin*)
15460 # PIC is the default on this platform
15461 # Common symbols not allowed in MH_DYLIB files
15462 case "$cc_basename" in
15463 xlc*)
15464 lt_prog_compiler_pic_GCJ='-qnocommon'
15465 lt_prog_compiler_wl_GCJ='-Wl,'
15466 ;;
15467 esac
15468 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015469
15470 mingw* | pw32* | os2*)
15471 # This hack is so that the source file can tell whether it is being
15472 # built for inclusion in a dll (and should export symbols for example).
15473 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15474 ;;
15475
15476 hpux9* | hpux10* | hpux11*)
15477 lt_prog_compiler_wl_GCJ='-Wl,'
15478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15479 # not for PA HP-UX.
15480 case "$host_cpu" in
15481 hppa*64*|ia64*)
15482 # +Z the default
15483 ;;
15484 *)
15485 lt_prog_compiler_pic_GCJ='+Z'
15486 ;;
15487 esac
15488 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15489 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15490 ;;
15491
15492 irix5* | irix6* | nonstopux*)
15493 lt_prog_compiler_wl_GCJ='-Wl,'
15494 # PIC (with -KPIC) is the default.
15495 lt_prog_compiler_static_GCJ='-non_shared'
15496 ;;
15497
15498 newsos6)
15499 lt_prog_compiler_pic_GCJ='-KPIC'
15500 lt_prog_compiler_static_GCJ='-Bstatic'
15501 ;;
15502
15503 linux*)
15504 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015505 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015506 lt_prog_compiler_wl_GCJ='-Wl,'
15507 lt_prog_compiler_pic_GCJ='-KPIC'
15508 lt_prog_compiler_static_GCJ='-static'
15509 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015510 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015511 lt_prog_compiler_wl_GCJ='-Wl,'
15512 # All Alpha code is PIC.
15513 lt_prog_compiler_static_GCJ='-non_shared'
15514 ;;
15515 esac
15516 ;;
15517
15518 osf3* | osf4* | osf5*)
15519 lt_prog_compiler_wl_GCJ='-Wl,'
15520 # All OSF/1 code is PIC.
15521 lt_prog_compiler_static_GCJ='-non_shared'
15522 ;;
15523
15524 sco3.2v5*)
15525 lt_prog_compiler_pic_GCJ='-Kpic'
15526 lt_prog_compiler_static_GCJ='-dn'
15527 ;;
15528
15529 solaris*)
15530 lt_prog_compiler_wl_GCJ='-Wl,'
15531 lt_prog_compiler_pic_GCJ='-KPIC'
15532 lt_prog_compiler_static_GCJ='-Bstatic'
15533 ;;
15534
15535 sunos4*)
15536 lt_prog_compiler_wl_GCJ='-Qoption ld '
15537 lt_prog_compiler_pic_GCJ='-PIC'
15538 lt_prog_compiler_static_GCJ='-Bstatic'
15539 ;;
15540
15541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15542 lt_prog_compiler_wl_GCJ='-Wl,'
15543 lt_prog_compiler_pic_GCJ='-KPIC'
15544 lt_prog_compiler_static_GCJ='-Bstatic'
15545 ;;
15546
15547 sysv4*MP*)
15548 if test -d /usr/nec ;then
15549 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15550 lt_prog_compiler_static_GCJ='-Bstatic'
15551 fi
15552 ;;
15553
15554 uts4*)
15555 lt_prog_compiler_pic_GCJ='-pic'
15556 lt_prog_compiler_static_GCJ='-Bstatic'
15557 ;;
15558
15559 *)
15560 lt_prog_compiler_can_build_shared_GCJ=no
15561 ;;
15562 esac
15563 fi
15564
15565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15566echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15567
15568#
15569# Check to make sure the PIC flag actually works.
15570#
15571if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015572
15573echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015574echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15575if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577else
15578 lt_prog_compiler_pic_works_GCJ=no
15579 ac_outfile=conftest.$ac_objext
15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15582 # Insert the option either (1) after the last *FLAGS variable, or
15583 # (2) before a word containing "conftest.", or (3) at the end.
15584 # Note that $ac_compile itself does not contain backslashes and begins
15585 # with a dollar sign (not a hyphen), so the echo should work correctly.
15586 # The option is referenced via a variable to avoid confusing sed.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000015591 (eval echo "\"\$as_me:15591: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015592 (eval "$lt_compile" 2>conftest.err)
15593 ac_status=$?
15594 cat conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000015595 echo "$as_me:15595: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015596 if (exit $ac_status) && test -s "$ac_outfile"; then
15597 # The compiler can only warn and ignore the option if not recognized
15598 # So say no if there are warnings
15599 if test ! -s conftest.err; then
15600 lt_prog_compiler_pic_works_GCJ=yes
15601 fi
15602 fi
15603 $rm conftest*
15604
15605fi
15606echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15607echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15608
15609if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15610 case $lt_prog_compiler_pic_GCJ in
15611 "" | " "*) ;;
15612 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15613 esac
15614else
15615 lt_prog_compiler_pic_GCJ=
15616 lt_prog_compiler_can_build_shared_GCJ=no
15617fi
15618
15619fi
15620case "$host_os" in
15621 # For platforms which do not support PIC, -DPIC is meaningless:
15622 *djgpp*)
15623 lt_prog_compiler_pic_GCJ=
15624 ;;
15625 *)
15626 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15627 ;;
15628esac
15629
15630echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15631echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15632if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634else
15635 lt_cv_prog_compiler_c_o_GCJ=no
15636 $rm -r conftest 2>/dev/null
15637 mkdir conftest
15638 cd conftest
15639 mkdir out
15640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15641
John Criswell47fdd832003-07-14 16:52:07 +000015642 lt_compiler_flag="-o out/conftest2.$ac_objext"
15643 # Insert the option either (1) after the last *FLAGS variable, or
15644 # (2) before a word containing "conftest.", or (3) at the end.
15645 # Note that $ac_compile itself does not contain backslashes and begins
15646 # with a dollar sign (not a hyphen), so the echo should work correctly.
15647 lt_compile=`echo "$ac_compile" | $SED \
15648 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650 -e 's:$: $lt_compiler_flag:'`
Reid Spencer177dbe22004-10-13 01:01:03 +000015651 (eval echo "\"\$as_me:15651: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015652 (eval "$lt_compile" 2>out/conftest.err)
15653 ac_status=$?
15654 cat out/conftest.err >&5
Reid Spencer177dbe22004-10-13 01:01:03 +000015655 echo "$as_me:15655: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15657 then
15658 # The compiler can only warn and ignore the option if not recognized
15659 # So say no if there are warnings
15660 if test ! -s out/conftest.err; then
15661 lt_cv_prog_compiler_c_o_GCJ=yes
15662 fi
15663 fi
15664 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000015665 $rm conftest*
15666 # SGI C++ compiler will create directory out/ii_files/ for
15667 # template instantiation
15668 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15669 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015670 cd ..
15671 rmdir conftest
15672 $rm conftest*
15673
15674fi
15675echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15676echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15677
15678
15679hard_links="nottested"
15680if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15681 # do not overwrite the value of need_locks provided by the user
15682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15684 hard_links=yes
15685 $rm conftest*
15686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15687 touch conftest.a
15688 ln conftest.a conftest.b 2>&5 || hard_links=no
15689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15690 echo "$as_me:$LINENO: result: $hard_links" >&5
15691echo "${ECHO_T}$hard_links" >&6
15692 if test "$hard_links" = no; then
15693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15695 need_locks=warn
15696 fi
15697else
15698 need_locks=no
15699fi
15700
15701echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15702echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15703
15704 runpath_var=
15705 allow_undefined_flag_GCJ=
15706 enable_shared_with_static_runtimes_GCJ=no
15707 archive_cmds_GCJ=
15708 archive_expsym_cmds_GCJ=
15709 old_archive_From_new_cmds_GCJ=
15710 old_archive_from_expsyms_cmds_GCJ=
15711 export_dynamic_flag_spec_GCJ=
15712 whole_archive_flag_spec_GCJ=
15713 thread_safe_flag_spec_GCJ=
15714 hardcode_libdir_flag_spec_GCJ=
15715 hardcode_libdir_flag_spec_ld_GCJ=
15716 hardcode_libdir_separator_GCJ=
15717 hardcode_direct_GCJ=no
15718 hardcode_minus_L_GCJ=no
15719 hardcode_shlibpath_var_GCJ=unsupported
15720 link_all_deplibs_GCJ=unknown
15721 hardcode_automatic_GCJ=no
15722 module_cmds_GCJ=
15723 module_expsym_cmds_GCJ=
15724 always_export_symbols_GCJ=no
15725 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15726 # include_expsyms should be a list of space-separated symbols to be *always*
15727 # included in the symbol list
15728 include_expsyms_GCJ=
15729 # exclude_expsyms can be an extended regexp of symbols to exclude
15730 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15731 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15732 # as well as any symbol that contains `d'.
15733 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15735 # platforms (ab)use it in PIC code, but their linkers get confused if
15736 # the symbol is explicitly referenced. Since portable code cannot
15737 # rely on this symbol name, it's probably fine to never include it in
15738 # preloaded symbol tables.
15739 extract_expsyms_cmds=
15740
15741 case $host_os in
15742 cygwin* | mingw* | pw32*)
15743 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15744 # When not using gcc, we currently assume that we are using
15745 # Microsoft Visual C++.
15746 if test "$GCC" != yes; then
15747 with_gnu_ld=no
15748 fi
15749 ;;
15750 openbsd*)
15751 with_gnu_ld=no
15752 ;;
15753 esac
15754
15755 ld_shlibs_GCJ=yes
15756 if test "$with_gnu_ld" = yes; then
15757 # If archive_cmds runs LD, not CC, wlarc should be empty
15758 wlarc='${wl}'
15759
15760 # See if GNU ld supports shared libraries.
15761 case $host_os in
15762 aix3* | aix4* | aix5*)
15763 # On AIX/PPC, the GNU linker is very broken
15764 if test "$host_cpu" != ia64; then
15765 ld_shlibs_GCJ=no
15766 cat <<EOF 1>&2
15767
15768*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15769*** to be unable to reliably create shared libraries on AIX.
15770*** Therefore, libtool is disabling shared libraries support. If you
15771*** really care for shared libraries, you may want to modify your PATH
15772*** so that a non-GNU linker is found, and then restart.
15773
15774EOF
15775 fi
15776 ;;
15777
15778 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015779 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 +000015780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781 hardcode_minus_L_GCJ=yes
15782
15783 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15784 # that the semantics of dynamic libraries on AmigaOS, at least up
15785 # to version 4, is to share data among multiple programs linked
15786 # with the same dynamic library. Since this doesn't match the
15787 # behavior of shared libraries on other platforms, we can't use
15788 # them.
15789 ld_shlibs_GCJ=no
15790 ;;
15791
15792 beos*)
15793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15794 allow_undefined_flag_GCJ=unsupported
15795 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15796 # support --undefined. This deserves some investigation. FIXME
15797 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798 else
15799 ld_shlibs_GCJ=no
15800 fi
15801 ;;
15802
15803 cygwin* | mingw* | pw32*)
15804 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15805 # as there is no search path for DLLs.
15806 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807 allow_undefined_flag_GCJ=unsupported
15808 always_export_symbols_GCJ=no
15809 enable_shared_with_static_runtimes_GCJ=yes
15810 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15811
15812 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15813 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15814 # If the export-symbols file already is a .def file (1st line
15815 # is EXPORTS), use it as is; otherwise, prepend...
15816 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15817 cp $export_symbols $output_objdir/$soname.def;
15818 else
15819 echo EXPORTS > $output_objdir/$soname.def;
15820 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015821 fi~
15822 $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 +000015823 else
15824 ld_shlibs=no
15825 fi
15826 ;;
15827
15828 netbsd*)
15829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15830 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15831 wlarc=
15832 else
15833 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15834 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15835 fi
15836 ;;
15837
15838 solaris* | sysv5*)
15839 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15840 ld_shlibs_GCJ=no
15841 cat <<EOF 1>&2
15842
15843*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15844*** create shared libraries on Solaris systems. Therefore, libtool
15845*** is disabling shared libraries support. We urge you to upgrade GNU
15846*** binutils to release 2.9.1 or newer. Another option is to modify
15847*** your PATH or compiler configuration so that the native linker is
15848*** used, and then restart.
15849
15850EOF
15851 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15852 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15854 else
15855 ld_shlibs_GCJ=no
15856 fi
15857 ;;
15858
15859 sunos4*)
15860 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15861 wlarc=
15862 hardcode_direct_GCJ=yes
15863 hardcode_shlibpath_var_GCJ=no
15864 ;;
15865
Reid Spencer2706f8c2004-09-19 23:53:36 +000015866 linux*)
15867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15868 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869 archive_cmds_GCJ="$tmp_archive_cmds"
15870 supports_anon_versioning=no
15871 case `$LD -v 2>/dev/null` in
15872 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15873 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15874 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15875 *\ 2.11.*) ;; # other 2.11 versions
15876 *) supports_anon_versioning=yes ;;
15877 esac
15878 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015879 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15880cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15881$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000015882 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15883 else
15884 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15885 fi
15886 else
15887 ld_shlibs_GCJ=no
15888 fi
15889 ;;
15890
John Criswell47fdd832003-07-14 16:52:07 +000015891 *)
15892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15894 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15895 else
15896 ld_shlibs_GCJ=no
15897 fi
15898 ;;
15899 esac
15900
15901 if test "$ld_shlibs_GCJ" = yes; then
15902 runpath_var=LD_RUN_PATH
15903 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15904 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15905 # ancient GNU ld didn't support --whole-archive et. al.
15906 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15907 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15908 else
15909 whole_archive_flag_spec_GCJ=
15910 fi
15911 fi
15912 else
15913 # PORTME fill in a description of your system's linker (not GNU ld)
15914 case $host_os in
15915 aix3*)
15916 allow_undefined_flag_GCJ=unsupported
15917 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015918 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 +000015919 # Note: this linker hardcodes the directories in LIBPATH if there
15920 # are no directories specified by -L.
15921 hardcode_minus_L_GCJ=yes
15922 if test "$GCC" = yes && test -z "$link_static_flag"; then
15923 # Neither direct hardcoding nor static linking is supported with a
15924 # broken collect2.
15925 hardcode_direct_GCJ=unsupported
15926 fi
15927 ;;
15928
15929 aix4* | aix5*)
15930 if test "$host_cpu" = ia64; then
15931 # On IA64, the linker does run time linking by default, so we don't
15932 # have to do anything special.
15933 aix_use_runtimelinking=no
15934 exp_sym_flag='-Bexport'
15935 no_entry_flag=""
15936 else
15937 # If we're using GNU nm, then we don't want the "-C" option.
15938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15940 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'
15941 else
15942 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'
15943 fi
15944 aix_use_runtimelinking=no
15945
15946 # Test if we are trying to use run time linking or normal
15947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948 # need to do runtime linking.
15949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15950 for ld_flag in $LDFLAGS; do
15951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15952 aix_use_runtimelinking=yes
15953 break
15954 fi
15955 done
15956 esac
15957
15958 exp_sym_flag='-bexport'
15959 no_entry_flag='-bnoentry'
15960 fi
15961
15962 # When large executables or shared objects are built, AIX ld can
15963 # have problems creating the table of contents. If linking a library
15964 # or program results in "error TOC overflow" add -mminimal-toc to
15965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15967
15968 archive_cmds_GCJ=''
15969 hardcode_direct_GCJ=yes
15970 hardcode_libdir_separator_GCJ=':'
15971 link_all_deplibs_GCJ=yes
15972
15973 if test "$GCC" = yes; then
15974 case $host_os in aix4.012|aix4.012.*)
15975 # We only want to do this on AIX 4.2 and lower, the check
15976 # below for broken collect2 doesn't work under 4.3+
15977 collect2name=`${CC} -print-prog-name=collect2`
15978 if test -f "$collect2name" && \
15979 strings "$collect2name" | grep resolve_lib_name >/dev/null
15980 then
15981 # We have reworked collect2
15982 hardcode_direct_GCJ=yes
15983 else
15984 # We have old collect2
15985 hardcode_direct_GCJ=unsupported
15986 # It fails to find uninstalled libraries when the uninstalled
15987 # path is not listed in the libpath. Setting hardcode_minus_L
15988 # to unsupported forces relinking
15989 hardcode_minus_L_GCJ=yes
15990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15991 hardcode_libdir_separator_GCJ=
15992 fi
15993 esac
15994 shared_flag='-shared'
15995 else
15996 # not using gcc
15997 if test "$host_cpu" = ia64; then
15998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15999 # chokes on -Wl,-G. The following line is correct:
16000 shared_flag='-G'
16001 else
16002 if test "$aix_use_runtimelinking" = yes; then
16003 shared_flag='${wl}-G'
16004 else
16005 shared_flag='${wl}-bM:SRE'
16006 fi
16007 fi
16008 fi
16009
16010 # It seems that -bexpall does not export symbols beginning with
16011 # underscore (_), so it is better to generate a list of symbols to export.
16012 always_export_symbols_GCJ=yes
16013 if test "$aix_use_runtimelinking" = yes; then
16014 # Warning - without using the other runtime loading flags (-brtl),
16015 # -berok will link without error, but may produce a broken library.
16016 allow_undefined_flag_GCJ='-berok'
16017 # Determine the default libpath from the value encoded in an empty executable.
16018 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016019/* confdefs.h. */
16020_ACEOF
16021cat confdefs.h >>conftest.$ac_ext
16022cat >>conftest.$ac_ext <<_ACEOF
16023/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016024
John Criswell47fdd832003-07-14 16:52:07 +000016025int
16026main ()
16027{
16028
16029 ;
16030 return 0;
16031}
16032_ACEOF
16033rm -f conftest.$ac_objext conftest$ac_exeext
16034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016035 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016037 grep -v '^ *+' conftest.er1 >conftest.err
16038 rm -f conftest.er1
16039 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016042 { ac_try='test -z "$ac_c_werror_flag"
16043 || test ! -s conftest.err'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; } &&
16049 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055
16056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16057}'`
16058# Check for a 64-bit object if we didn't find anything.
16059if 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; }
16060}'`; fi
16061else
16062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016063sed 's/^/| /' conftest.$ac_ext >&5
16064
John Criswell47fdd832003-07-14 16:52:07 +000016065fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016066rm -f conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16069
16070 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16071 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"
16072 else
16073 if test "$host_cpu" = ia64; then
16074 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16075 allow_undefined_flag_GCJ="-z nodefs"
16076 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"
16077 else
16078 # Determine the default libpath from the value encoded in an empty executable.
16079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016080/* confdefs.h. */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016085
John Criswell47fdd832003-07-14 16:52:07 +000016086int
16087main ()
16088{
16089
16090 ;
16091 return 0;
16092}
16093_ACEOF
16094rm -f conftest.$ac_objext conftest$ac_exeext
16095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016096 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016097 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016103 { ac_try='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116
16117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16118}'`
16119# Check for a 64-bit object if we didn't find anything.
16120if 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; }
16121}'`; fi
16122else
16123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016124sed 's/^/| /' conftest.$ac_ext >&5
16125
John Criswell47fdd832003-07-14 16:52:07 +000016126fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016127rm -f conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016129if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16130
16131 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16132 # Warning - without using the other run time loading flags,
16133 # -berok will link without error, but may produce a broken library.
16134 no_undefined_flag_GCJ=' ${wl}-bernotok'
16135 allow_undefined_flag_GCJ=' ${wl}-berok'
16136 # -bexpall does not export symbols beginning with underscore (_)
16137 always_export_symbols_GCJ=yes
16138 # Exported symbols can be pulled into shared objects from archives
16139 whole_archive_flag_spec_GCJ=' '
16140 archive_cmds_need_lc_GCJ=yes
16141 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016142 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 +000016143 fi
16144 fi
16145 ;;
16146
16147 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016148 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 +000016149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150 hardcode_minus_L_GCJ=yes
16151 # see comment about different semantics on the GNU ld section
16152 ld_shlibs_GCJ=no
16153 ;;
16154
Reid Spencer2706f8c2004-09-19 23:53:36 +000016155 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016156 export_dynamic_flag_spec_GCJ=-rdynamic
16157 ;;
16158
16159 cygwin* | mingw* | pw32*)
16160 # When not using gcc, we currently assume that we are using
16161 # Microsoft Visual C++.
16162 # hardcode_libdir_flag_spec is actually meaningless, as there is
16163 # no search path for DLLs.
16164 hardcode_libdir_flag_spec_GCJ=' '
16165 allow_undefined_flag_GCJ=unsupported
16166 # Tell ltmain to make .lib files, not .a files.
16167 libext=lib
16168 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016169 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016170 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000016171 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 +000016172 # The linker will automatically build a .lib file if we build a DLL.
16173 old_archive_From_new_cmds_GCJ='true'
16174 # FIXME: Should let the user specify the lib program.
16175 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16176 fix_srcfile_path='`cygpath -w "$srcfile"`'
16177 enable_shared_with_static_runtimes_GCJ=yes
16178 ;;
16179
16180 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016181 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016182 rhapsody* | darwin1.[012])
16183 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16184 ;;
16185 *) # Darwin 1.3 on
16186 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16187 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16188 else
16189 case ${MACOSX_DEPLOYMENT_TARGET} in
16190 10.[012])
16191 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16192 ;;
16193 10.*)
16194 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16195 ;;
16196 esac
16197 fi
16198 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016199 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016200 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000016201 hardcode_direct_GCJ=no
16202 hardcode_automatic_GCJ=yes
16203 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016204 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000016205 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016206 if test "$GCC" = yes ; then
16207 output_verbose_link_cmd='echo'
16208 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16209 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16210 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000016211 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}'
16212 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016213 else
16214 case "$cc_basename" in
16215 xlc*)
16216 output_verbose_link_cmd='echo'
16217 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16218 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Reid Spencer177dbe22004-10-13 01:01:03 +000016220 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}'
16221 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016222 ;;
16223 *)
16224 ld_shlibs_GCJ=no
16225 ;;
16226 esac
John Criswell47fdd832003-07-14 16:52:07 +000016227 fi
16228 ;;
16229
16230 dgux*)
16231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16233 hardcode_shlibpath_var_GCJ=no
16234 ;;
16235
16236 freebsd1*)
16237 ld_shlibs_GCJ=no
16238 ;;
16239
16240 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16241 # support. Future versions do this automatically, but an explicit c++rt0.o
16242 # does not break anything, and helps significantly (at the cost of a little
16243 # extra space).
16244 freebsd2.2*)
16245 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16246 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16247 hardcode_direct_GCJ=yes
16248 hardcode_shlibpath_var_GCJ=no
16249 ;;
16250
16251 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16252 freebsd2*)
16253 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254 hardcode_direct_GCJ=yes
16255 hardcode_minus_L_GCJ=yes
16256 hardcode_shlibpath_var_GCJ=no
16257 ;;
16258
16259 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016260 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016261 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16262 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16263 hardcode_direct_GCJ=yes
16264 hardcode_shlibpath_var_GCJ=no
16265 ;;
16266
16267 hpux9*)
16268 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016269 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 +000016270 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016271 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 +000016272 fi
16273 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16274 hardcode_libdir_separator_GCJ=:
16275 hardcode_direct_GCJ=yes
16276
16277 # hardcode_minus_L: Not really in the search PATH,
16278 # but as the default location of the library.
16279 hardcode_minus_L_GCJ=yes
16280 export_dynamic_flag_spec_GCJ='${wl}-E'
16281 ;;
16282
16283 hpux10* | hpux11*)
16284 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16285 case "$host_cpu" in
16286 hppa*64*|ia64*)
16287 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16288 ;;
16289 *)
16290 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16291 ;;
16292 esac
16293 else
16294 case "$host_cpu" in
16295 hppa*64*|ia64*)
16296 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16297 ;;
16298 *)
16299 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16300 ;;
16301 esac
16302 fi
16303 if test "$with_gnu_ld" = no; then
16304 case "$host_cpu" in
16305 hppa*64*)
16306 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16307 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16308 hardcode_libdir_separator_GCJ=:
16309 hardcode_direct_GCJ=no
16310 hardcode_shlibpath_var_GCJ=no
16311 ;;
16312 ia64*)
16313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16314 hardcode_direct_GCJ=no
16315 hardcode_shlibpath_var_GCJ=no
16316
16317 # hardcode_minus_L: Not really in the search PATH,
16318 # but as the default location of the library.
16319 hardcode_minus_L_GCJ=yes
16320 ;;
16321 *)
16322 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16323 hardcode_libdir_separator_GCJ=:
16324 hardcode_direct_GCJ=yes
16325 export_dynamic_flag_spec_GCJ='${wl}-E'
16326
16327 # hardcode_minus_L: Not really in the search PATH,
16328 # but as the default location of the library.
16329 hardcode_minus_L_GCJ=yes
16330 ;;
16331 esac
16332 fi
16333 ;;
16334
16335 irix5* | irix6* | nonstopux*)
16336 if test "$GCC" = yes; then
16337 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'
16338 else
16339 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'
16340 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16341 fi
16342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16343 hardcode_libdir_separator_GCJ=:
16344 link_all_deplibs_GCJ=yes
16345 ;;
16346
16347 netbsd*)
16348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16350 else
16351 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16352 fi
16353 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16354 hardcode_direct_GCJ=yes
16355 hardcode_shlibpath_var_GCJ=no
16356 ;;
16357
16358 newsos6)
16359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360 hardcode_direct_GCJ=yes
16361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16362 hardcode_libdir_separator_GCJ=:
16363 hardcode_shlibpath_var_GCJ=no
16364 ;;
16365
16366 openbsd*)
16367 hardcode_direct_GCJ=yes
16368 hardcode_shlibpath_var_GCJ=no
16369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16370 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016371 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 +000016372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16373 export_dynamic_flag_spec_GCJ='${wl}-E'
16374 else
16375 case $host_os in
16376 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379 ;;
16380 *)
16381 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16383 ;;
16384 esac
16385 fi
16386 ;;
16387
16388 os2*)
16389 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390 hardcode_minus_L_GCJ=yes
16391 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016392 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 +000016393 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16394 ;;
16395
16396 osf3*)
16397 if test "$GCC" = yes; then
16398 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16399 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'
16400 else
16401 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16402 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'
16403 fi
16404 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16405 hardcode_libdir_separator_GCJ=:
16406 ;;
16407
16408 osf4* | osf5*) # as osf3* with the addition of -msym flag
16409 if test "$GCC" = yes; then
16410 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16411 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'
16412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413 else
16414 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16415 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 Spencer177dbe22004-10-13 01:01:03 +000016416 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~
16417 $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'
16418
John Criswell47fdd832003-07-14 16:52:07 +000016419 # Both c and cxx compiler support -rpath directly
16420 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16421 fi
16422 hardcode_libdir_separator_GCJ=:
16423 ;;
16424
16425 sco3.2v5*)
16426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16427 hardcode_shlibpath_var_GCJ=no
16428 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16429 runpath_var=LD_RUN_PATH
16430 hardcode_runpath_var=yes
16431 ;;
16432
16433 solaris*)
16434 no_undefined_flag_GCJ=' -z text'
16435 if test "$GCC" = yes; then
16436 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016437 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16438 $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 +000016439 else
16440 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16442 $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 +000016443 fi
16444 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16445 hardcode_shlibpath_var_GCJ=no
16446 case $host_os in
16447 solaris2.[0-5] | solaris2.[0-5].*) ;;
16448 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16449 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16450 esac
16451 link_all_deplibs_GCJ=yes
16452 ;;
16453
16454 sunos4*)
16455 if test "x$host_vendor" = xsequent; then
16456 # Use $CC to link under sequent, because it throws in some extra .o
16457 # files that make .init and .fini sections work.
16458 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16459 else
16460 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16461 fi
16462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16463 hardcode_direct_GCJ=yes
16464 hardcode_minus_L_GCJ=yes
16465 hardcode_shlibpath_var_GCJ=no
16466 ;;
16467
16468 sysv4)
16469 case $host_vendor in
16470 sni)
16471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_direct_GCJ=yes # is this really true???
16473 ;;
16474 siemens)
16475 ## LD is ld it makes a PLAMLIB
16476 ## CC just makes a GrossModule.
16477 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16478 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16479 hardcode_direct_GCJ=no
16480 ;;
16481 motorola)
16482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16483 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16484 ;;
16485 esac
16486 runpath_var='LD_RUN_PATH'
16487 hardcode_shlibpath_var_GCJ=no
16488 ;;
16489
16490 sysv4.3*)
16491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492 hardcode_shlibpath_var_GCJ=no
16493 export_dynamic_flag_spec_GCJ='-Bexport'
16494 ;;
16495
16496 sysv4*MP*)
16497 if test -d /usr/nec; then
16498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_shlibpath_var_GCJ=no
16500 runpath_var=LD_RUN_PATH
16501 hardcode_runpath_var=yes
16502 ld_shlibs_GCJ=yes
16503 fi
16504 ;;
16505
16506 sysv4.2uw2*)
16507 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_direct_GCJ=yes
16509 hardcode_minus_L_GCJ=no
16510 hardcode_shlibpath_var_GCJ=no
16511 hardcode_runpath_var=yes
16512 runpath_var=LD_RUN_PATH
16513 ;;
16514
16515 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16516 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16517 if test "$GCC" = yes; then
16518 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16519 else
16520 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 fi
16522 runpath_var='LD_RUN_PATH'
16523 hardcode_shlibpath_var_GCJ=no
16524 ;;
16525
16526 sysv5*)
16527 no_undefined_flag_GCJ=' -z text'
16528 # $CC -shared without GNU ld will not create a library from C++
16529 # object files and a static libstdc++, better avoid it by now
16530 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016531 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16532 $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 +000016533 hardcode_libdir_flag_spec_GCJ=
16534 hardcode_shlibpath_var_GCJ=no
16535 runpath_var='LD_RUN_PATH'
16536 ;;
16537
16538 uts4*)
16539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16541 hardcode_shlibpath_var_GCJ=no
16542 ;;
16543
16544 *)
16545 ld_shlibs_GCJ=no
16546 ;;
16547 esac
16548 fi
16549
16550echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16551echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16552test "$ld_shlibs_GCJ" = no && can_build_shared=no
16553
16554variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555if test "$GCC" = yes; then
16556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16557fi
16558
16559#
16560# Do we need to explicitly link libc?
16561#
16562case "x$archive_cmds_need_lc_GCJ" in
16563x|xyes)
16564 # Assume -lc should be added
16565 archive_cmds_need_lc_GCJ=yes
16566
16567 if test "$enable_shared" = yes && test "$GCC" = yes; then
16568 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016569 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016570 # FIXME: we may have to deal with multi-command sequences.
16571 ;;
16572 '$CC '*)
16573 # Test whether the compiler implicitly links with -lc since on some
16574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16575 # to ld, don't add -lc before -lgcc.
16576 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16577echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16578 $rm conftest*
16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16580
16581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582 (eval $ac_compile) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } 2>conftest.err; then
16586 soname=conftest
16587 lib=conftest
16588 libobjs=conftest.$ac_objext
16589 deplibs=
16590 wl=$lt_prog_compiler_wl_GCJ
16591 compiler_flags=-v
16592 linker_flags=-v
16593 verstring=
16594 output_objdir=.
16595 libname=conftest
16596 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16597 allow_undefined_flag_GCJ=
16598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16599 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }
16603 then
16604 archive_cmds_need_lc_GCJ=no
16605 else
16606 archive_cmds_need_lc_GCJ=yes
16607 fi
16608 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16609 else
16610 cat conftest.err 1>&5
16611 fi
16612 $rm conftest*
16613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16614echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16615 ;;
16616 esac
16617 fi
16618 ;;
16619esac
16620
John Criswell47fdd832003-07-14 16:52:07 +000016621echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16622echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16623library_names_spec=
16624libname_spec='lib$name'
16625soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016627postinstall_cmds=
16628postuninstall_cmds=
16629finish_cmds=
16630finish_eval=
16631shlibpath_var=
16632shlibpath_overrides_runpath=unknown
16633version_type=none
16634dynamic_linker="$host_os ld.so"
16635sys_lib_dlsearch_path_spec="/lib /usr/lib"
16636if test "$GCC" = yes; then
16637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16638 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16639 # if the path contains ";" then we assume it to be the separator
16640 # otherwise default to the standard path separator (i.e. ":") - it is
16641 # assumed that no part of a normal pathname contains ";" but that should
16642 # okay in the real world where ";" in dirpaths is itself problematic.
16643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16644 else
16645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16646 fi
16647else
16648 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16649fi
16650need_lib_prefix=unknown
16651hardcode_into_libs=no
16652
16653# when you set need_version to no, make sure it does not cause -set_version
16654# flags to be left without arguments
16655need_version=unknown
16656
16657case $host_os in
16658aix3*)
16659 version_type=linux
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16661 shlibpath_var=LIBPATH
16662
16663 # AIX 3 has no versioning support, so we append a major version to the name.
16664 soname_spec='${libname}${release}${shared_ext}$major'
16665 ;;
16666
16667aix4* | aix5*)
16668 version_type=linux
16669 need_lib_prefix=no
16670 need_version=no
16671 hardcode_into_libs=yes
16672 if test "$host_cpu" = ia64; then
16673 # AIX 5 supports IA64
16674 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 else
16677 # With GCC up to 2.95.x, collect2 would create an import file
16678 # for dependence libraries. The import file would start with
16679 # the line `#! .'. This would cause the generated library to
16680 # depend on `.', always an invalid library. This was fixed in
16681 # development snapshots of GCC prior to 3.0.
16682 case $host_os in
16683 aix4 | aix4.[01] | aix4.[01].*)
16684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16685 echo ' yes '
16686 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16687 :
16688 else
16689 can_build_shared=no
16690 fi
16691 ;;
16692 esac
16693 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16694 # soname into executable. Probably we can add versioning support to
16695 # collect2, so additional links can be useful in future.
16696 if test "$aix_use_runtimelinking" = yes; then
16697 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16698 # instead of lib<name>.a to let people know that these are not
16699 # typical AIX shared libraries.
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 else
16702 # We preserve .a as extension for shared libraries through AIX4.2
16703 # and later when we are not doing run time linking.
16704 library_names_spec='${libname}${release}.a $libname.a'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 fi
16707 shlibpath_var=LIBPATH
16708 fi
16709 ;;
16710
16711amigaos*)
16712 library_names_spec='$libname.ixlibrary $libname.a'
16713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016714 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 +000016715 ;;
16716
16717beos*)
16718 library_names_spec='${libname}${shared_ext}'
16719 dynamic_linker="$host_os ld.so"
16720 shlibpath_var=LIBRARY_PATH
16721 ;;
16722
Reid Spencer2706f8c2004-09-19 23:53:36 +000016723bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016724 version_type=linux
16725 need_version=no
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16732 # the default ld.so.conf also contains /usr/contrib/lib and
16733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16734 # libtool to hard-code these into programs
16735 ;;
16736
16737cygwin* | mingw* | pw32*)
16738 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016739 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016740 need_version=no
16741 need_lib_prefix=no
16742
16743 case $GCC,$host_os in
16744 yes,cygwin* | yes,mingw* | yes,pw32*)
16745 library_names_spec='$libname.dll.a'
16746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016747 postinstall_cmds='base_file=`basename \${file}`~
16748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16749 dldir=$destdir/`dirname \$dlpath`~
16750 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016751 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16753 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016754 $rm \$dlpath'
16755 shlibpath_overrides_runpath=yes
16756
16757 case $host_os in
16758 cygwin*)
16759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16760 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 +000016761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016762 ;;
16763 mingw*)
16764 # MinGW DLLs use traditional 'lib' prefix
16765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16768 # It is most probably a Windows format PATH printed by
16769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16770 # path with ; separators, and with drive letters. We can handle the
16771 # drive letters (cygwin fileutils understands them), so leave them,
16772 # especially as we might pass files found there to a mingw objdump,
16773 # which wouldn't understand a cygwinified path. Ahh.
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775 else
16776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16777 fi
16778 ;;
16779 pw32*)
16780 # pw32 DLLs use 'pw' prefix rather than 'lib'
16781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16782 ;;
16783 esac
16784 ;;
16785
16786 *)
16787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16788 ;;
16789 esac
16790 dynamic_linker='Win32 ld.exe'
16791 # FIXME: first we should search . and the directory the executable is in
16792 shlibpath_var=PATH
16793 ;;
16794
16795darwin* | rhapsody*)
16796 dynamic_linker="$host_os dyld"
16797 version_type=darwin
16798 need_lib_prefix=no
16799 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016801 soname_spec='${libname}${release}${major}$shared_ext'
16802 shlibpath_overrides_runpath=yes
16803 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016804 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016805 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016806 if test "$GCC" = yes; then
16807 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"`
16808 else
16809 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016810 fi
16811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16812 ;;
16813
16814dgux*)
16815 version_type=linux
16816 need_lib_prefix=no
16817 need_version=no
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 ;;
16822
16823freebsd1*)
16824 dynamic_linker=no
16825 ;;
16826
Reid Spencer2706f8c2004-09-19 23:53:36 +000016827kfreebsd*-gnu)
16828 version_type=linux
16829 need_lib_prefix=no
16830 need_version=no
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=no
16835 hardcode_into_libs=yes
16836 dynamic_linker='GNU ld.so'
16837 ;;
16838
John Criswell47fdd832003-07-14 16:52:07 +000016839freebsd*)
16840 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16841 version_type=freebsd-$objformat
16842 case $version_type in
16843 freebsd-elf*)
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16845 need_version=no
16846 need_lib_prefix=no
16847 ;;
16848 freebsd-*)
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16850 need_version=yes
16851 ;;
16852 esac
16853 shlibpath_var=LD_LIBRARY_PATH
16854 case $host_os in
16855 freebsd2*)
16856 shlibpath_overrides_runpath=yes
16857 ;;
16858 freebsd3.01* | freebsdelf3.01*)
16859 shlibpath_overrides_runpath=yes
16860 hardcode_into_libs=yes
16861 ;;
16862 *) # from 3.2 on
16863 shlibpath_overrides_runpath=no
16864 hardcode_into_libs=yes
16865 ;;
16866 esac
16867 ;;
16868
16869gnu*)
16870 version_type=linux
16871 need_lib_prefix=no
16872 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
16876 hardcode_into_libs=yes
16877 ;;
16878
16879hpux9* | hpux10* | hpux11*)
16880 # Give a soname corresponding to the major version so that dld.sl refuses to
16881 # link against other versions.
16882 version_type=sunos
16883 need_lib_prefix=no
16884 need_version=no
16885 case "$host_cpu" in
16886 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016888 hardcode_into_libs=yes
16889 dynamic_linker="$host_os dld.so"
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 if test "X$HPUX_IA64_MODE" = X32; then
16895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16896 else
16897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16898 fi
16899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16900 ;;
16901 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016903 hardcode_into_libs=yes
16904 dynamic_linker="$host_os dld.sl"
16905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16911 ;;
16912 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016913 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=SHLIB_PATH
16916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 ;;
16920 esac
16921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16922 postinstall_cmds='chmod 555 $lib'
16923 ;;
16924
16925irix5* | irix6* | nonstopux*)
16926 case $host_os in
16927 nonstopux*) version_type=nonstopux ;;
16928 *)
16929 if test "$lt_cv_prog_gnu_ld" = yes; then
16930 version_type=linux
16931 else
16932 version_type=irix
16933 fi ;;
16934 esac
16935 need_lib_prefix=no
16936 need_version=no
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16939 case $host_os in
16940 irix5* | nonstopux*)
16941 libsuff= shlibsuff=
16942 ;;
16943 *)
16944 case $LD in # libtool.m4 will add one of these switches to LD
16945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16946 libsuff= shlibsuff= libmagic=32-bit;;
16947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16948 libsuff=32 shlibsuff=N32 libmagic=N32;;
16949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16951 *) libsuff= shlibsuff= libmagic=never-match;;
16952 esac
16953 ;;
16954 esac
16955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16956 shlibpath_overrides_runpath=no
16957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16959 hardcode_into_libs=yes
16960 ;;
16961
16962# No shared lib support for Linux oldld, aout, or coff.
16963linux*oldld* | linux*aout* | linux*coff*)
16964 dynamic_linker=no
16965 ;;
16966
16967# This must be Linux ELF.
16968linux*)
16969 version_type=linux
16970 need_lib_prefix=no
16971 need_version=no
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 # This implies no fast_install, which is unacceptable.
16978 # Some rework will be needed to allow for fast_install
16979 # before this can be enabled.
16980 hardcode_into_libs=yes
16981
Reid Spencer2706f8c2004-09-19 23:53:36 +000016982 # Append ld.so.conf contents to the search path
16983 if test -f /etc/ld.so.conf; then
16984 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16986 fi
16987
John Criswell47fdd832003-07-14 16:52:07 +000016988 # We used to test for /lib/ld.so.1 and disable shared libraries on
16989 # powerpc, because MkLinux only supported shared libraries with the
16990 # GNU dynamic linker. Since this was broken with cross compilers,
16991 # most powerpc-linux boxes support dynamic linking these days and
16992 # people can always --disable-shared, the test was removed, and we
16993 # assume the GNU/Linux dynamic linker is in use.
16994 dynamic_linker='GNU/Linux ld.so'
16995 ;;
16996
Reid Spencer2706f8c2004-09-19 23:53:36 +000016997knetbsd*-gnu)
16998 version_type=linux
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 dynamic_linker='GNU ld.so'
17007 ;;
17008
John Criswell47fdd832003-07-14 16:52:07 +000017009netbsd*)
17010 version_type=sunos
17011 need_lib_prefix=no
17012 need_version=no
17013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016 dynamic_linker='NetBSD (a.out) ld.so'
17017 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017019 soname_spec='${libname}${release}${shared_ext}$major'
17020 dynamic_linker='NetBSD ld.elf_so'
17021 fi
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 hardcode_into_libs=yes
17025 ;;
17026
17027newsos6)
17028 version_type=linux
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes
17032 ;;
17033
Reid Spencer2706f8c2004-09-19 23:53:36 +000017034nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017035 version_type=linux
17036 need_lib_prefix=no
17037 need_version=no
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17042 ;;
17043
17044openbsd*)
17045 version_type=sunos
17046 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017047 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052 case $host_os in
17053 openbsd2.[89] | openbsd2.[89].*)
17054 shlibpath_overrides_runpath=no
17055 ;;
17056 *)
17057 shlibpath_overrides_runpath=yes
17058 ;;
17059 esac
17060 else
17061 shlibpath_overrides_runpath=yes
17062 fi
17063 ;;
17064
17065os2*)
17066 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017067 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017068 need_lib_prefix=no
17069 library_names_spec='$libname${shared_ext} $libname.a'
17070 dynamic_linker='OS/2 ld.exe'
17071 shlibpath_var=LIBPATH
17072 ;;
17073
17074osf3* | osf4* | osf5*)
17075 version_type=osf
17076 need_lib_prefix=no
17077 need_version=no
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17083 ;;
17084
17085sco3.2v5*)
17086 version_type=osf
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 ;;
17091
17092solaris*)
17093 version_type=linux
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17101 # ldd complains unless libraries are executable
17102 postinstall_cmds='chmod +x $lib'
17103 ;;
17104
17105sunos4*)
17106 version_type=sunos
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17111 if test "$with_gnu_ld" = yes; then
17112 need_lib_prefix=no
17113 fi
17114 need_version=yes
17115 ;;
17116
17117sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17118 version_type=linux
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 case $host_vendor in
17123 sni)
17124 shlibpath_overrides_runpath=no
17125 need_lib_prefix=no
17126 export_dynamic_flag_spec='${wl}-Blargedynsym'
17127 runpath_var=LD_RUN_PATH
17128 ;;
17129 siemens)
17130 need_lib_prefix=no
17131 ;;
17132 motorola)
17133 need_lib_prefix=no
17134 need_version=no
17135 shlibpath_overrides_runpath=no
17136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17137 ;;
17138 esac
17139 ;;
17140
17141sysv4*MP*)
17142 if test -d /usr/nec ;then
17143 version_type=linux
17144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145 soname_spec='$libname${shared_ext}.$major'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 fi
17148 ;;
17149
17150uts4*)
17151 version_type=linux
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 ;;
17156
17157*)
17158 dynamic_linker=no
17159 ;;
17160esac
17161echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162echo "${ECHO_T}$dynamic_linker" >&6
17163test "$dynamic_linker" = no && can_build_shared=no
17164
Reid Spencer2706f8c2004-09-19 23:53:36 +000017165echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167hardcode_action_GCJ=
17168if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17169 test -n "$runpath_var_GCJ" || \
17170 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17171
17172 # We can hardcode non-existant directories.
17173 if test "$hardcode_direct_GCJ" != no &&
17174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17175 # have to relink, otherwise we might link with an installed library
17176 # when we should be linking with a yet-to-be-installed one
17177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17178 test "$hardcode_minus_L_GCJ" != no; then
17179 # Linking always hardcodes the temporary library directory.
17180 hardcode_action_GCJ=relink
17181 else
17182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17183 hardcode_action_GCJ=immediate
17184 fi
17185else
17186 # We cannot hardcode anything, or else we can only hardcode existing
17187 # directories.
17188 hardcode_action_GCJ=unsupported
17189fi
17190echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17191echo "${ECHO_T}$hardcode_action_GCJ" >&6
17192
17193if test "$hardcode_action_GCJ" = relink; then
17194 # Fast installation is not supported
17195 enable_fast_install=no
17196elif test "$shlibpath_overrides_runpath" = yes ||
17197 test "$enable_shared" = no; then
17198 # Fast installation is not necessary
17199 enable_fast_install=needless
17200fi
17201
17202striplib=
17203old_striplib=
17204echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209 echo "$as_me:$LINENO: result: yes" >&5
17210echo "${ECHO_T}yes" >&6
17211else
17212# FIXME - insert some real tests, host_os isn't really good enough
17213 case $host_os in
17214 darwin*)
17215 if test -n "$STRIP" ; then
17216 striplib="$STRIP -x"
17217 echo "$as_me:$LINENO: result: yes" >&5
17218echo "${ECHO_T}yes" >&6
17219 else
17220 echo "$as_me:$LINENO: result: no" >&5
17221echo "${ECHO_T}no" >&6
17222fi
17223 ;;
17224 *)
17225 echo "$as_me:$LINENO: result: no" >&5
17226echo "${ECHO_T}no" >&6
17227 ;;
17228 esac
17229fi
17230
John Criswell47fdd832003-07-14 16:52:07 +000017231if test "x$enable_dlopen" != xyes; then
17232 enable_dlopen=unknown
17233 enable_dlopen_self=unknown
17234 enable_dlopen_self_static=unknown
17235else
17236 lt_cv_dlopen=no
17237 lt_cv_dlopen_libs=
17238
17239 case $host_os in
17240 beos*)
17241 lt_cv_dlopen="load_add_on"
17242 lt_cv_dlopen_libs=
17243 lt_cv_dlopen_self=yes
17244 ;;
17245
17246 mingw* | pw32*)
17247 lt_cv_dlopen="LoadLibrary"
17248 lt_cv_dlopen_libs=
17249 ;;
17250
17251 cygwin*)
17252 lt_cv_dlopen="dlopen"
17253 lt_cv_dlopen_libs=
17254 ;;
17255
17256 darwin*)
17257 # if libdl is installed we need to link against it
17258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
17263 ac_check_lib_save_LIBS=$LIBS
17264LIBS="-ldl $LIBS"
17265cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017271
17272/* Override any gcc2 internal prototype to avoid an error. */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276/* We use char because int might match the return type of a gcc2
17277 builtin and then its argument prototype would still apply. */
17278char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017279int
17280main ()
17281{
17282dlopen ();
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
17288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017289 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017296 { ac_try='test -z "$ac_c_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_lib_dl_dlopen=yes
17310else
17311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017312sed 's/^/| /' conftest.$ac_ext >&5
17313
John Criswell47fdd832003-07-14 16:52:07 +000017314ac_cv_lib_dl_dlopen=no
17315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017316rm -f conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017318LIBS=$ac_check_lib_save_LIBS
17319fi
17320echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322if test $ac_cv_lib_dl_dlopen = yes; then
17323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17324else
17325
17326 lt_cv_dlopen="dyld"
17327 lt_cv_dlopen_libs=
17328 lt_cv_dlopen_self=yes
17329
17330fi
17331
17332 ;;
17333
17334 *)
17335 echo "$as_me:$LINENO: checking for shl_load" >&5
17336echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337if test "${ac_cv_func_shl_load+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339else
17340 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017346/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348#define shl_load innocuous_shl_load
17349
John Criswell47fdd832003-07-14 16:52:07 +000017350/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017351 which can conflict with char shl_load (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017354
John Criswell0c38eaf2003-09-10 15:17:25 +000017355#ifdef __STDC__
17356# include <limits.h>
17357#else
17358# include <assert.h>
17359#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017360
17361#undef shl_load
17362
John Criswell47fdd832003-07-14 16:52:07 +000017363/* Override any gcc2 internal prototype to avoid an error. */
17364#ifdef __cplusplus
17365extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017366{
John Criswell47fdd832003-07-14 16:52:07 +000017367#endif
17368/* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17370char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017371/* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374#if defined (__stub_shl_load) || defined (__stub___shl_load)
17375choke me
17376#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017377char (*f) () = shl_load;
17378#endif
17379#ifdef __cplusplus
17380}
John Criswell47fdd832003-07-14 16:52:07 +000017381#endif
17382
John Criswell0c38eaf2003-09-10 15:17:25 +000017383int
17384main ()
17385{
17386return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest.$ac_objext conftest$ac_exeext
17392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017393 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017400 { ac_try='test -z "$ac_c_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_func_shl_load=yes
17414else
17415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017416sed 's/^/| /' conftest.$ac_ext >&5
17417
John Criswell47fdd832003-07-14 16:52:07 +000017418ac_cv_func_shl_load=no
17419fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017420rm -f conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017422fi
17423echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425if test $ac_cv_func_shl_load = yes; then
17426 lt_cv_dlopen="shl_load"
17427else
17428 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 ac_check_lib_save_LIBS=$LIBS
17434LIBS="-ldld $LIBS"
17435cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017441
17442/* Override any gcc2 internal prototype to avoid an error. */
17443#ifdef __cplusplus
17444extern "C"
17445#endif
17446/* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17448char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017449int
17450main ()
17451{
17452shl_load ();
17453 ;
17454 return 0;
17455}
17456_ACEOF
17457rm -f conftest.$ac_objext conftest$ac_exeext
17458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017459 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017466 { ac_try='test -z "$ac_c_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_dld_shl_load=yes
17480else
17481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017482sed 's/^/| /' conftest.$ac_ext >&5
17483
John Criswell47fdd832003-07-14 16:52:07 +000017484ac_cv_lib_dld_shl_load=no
17485fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486rm -f conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017488LIBS=$ac_check_lib_save_LIBS
17489fi
17490echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492if test $ac_cv_lib_dld_shl_load = yes; then
17493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17494else
17495 echo "$as_me:$LINENO: checking for dlopen" >&5
17496echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497if test "${ac_cv_func_dlopen+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499else
17500 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017501/* confdefs.h. */
17502_ACEOF
17503cat confdefs.h >>conftest.$ac_ext
17504cat >>conftest.$ac_ext <<_ACEOF
17505/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017506/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508#define dlopen innocuous_dlopen
17509
John Criswell47fdd832003-07-14 16:52:07 +000017510/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017511 which can conflict with char dlopen (); below.
17512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017514
John Criswell0c38eaf2003-09-10 15:17:25 +000017515#ifdef __STDC__
17516# include <limits.h>
17517#else
17518# include <assert.h>
17519#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017520
17521#undef dlopen
17522
John Criswell47fdd832003-07-14 16:52:07 +000017523/* Override any gcc2 internal prototype to avoid an error. */
17524#ifdef __cplusplus
17525extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017526{
John Criswell47fdd832003-07-14 16:52:07 +000017527#endif
17528/* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17530char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017531/* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534#if defined (__stub_dlopen) || defined (__stub___dlopen)
17535choke me
17536#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017537char (*f) () = dlopen;
17538#endif
17539#ifdef __cplusplus
17540}
John Criswell47fdd832003-07-14 16:52:07 +000017541#endif
17542
John Criswell0c38eaf2003-09-10 15:17:25 +000017543int
17544main ()
17545{
17546return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017547 ;
17548 return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
17552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017553 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017560 { ac_try='test -z "$ac_c_werror_flag"
17561 || test ! -s conftest.err'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17573 ac_cv_func_dlopen=yes
17574else
17575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017576sed 's/^/| /' conftest.$ac_ext >&5
17577
John Criswell47fdd832003-07-14 16:52:07 +000017578ac_cv_func_dlopen=no
17579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017580rm -f conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017582fi
17583echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585if test $ac_cv_func_dlopen = yes; then
17586 lt_cv_dlopen="dlopen"
17587else
17588 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592else
17593 ac_check_lib_save_LIBS=$LIBS
17594LIBS="-ldl $LIBS"
17595cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017601
17602/* Override any gcc2 internal prototype to avoid an error. */
17603#ifdef __cplusplus
17604extern "C"
17605#endif
17606/* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17608char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017609int
17610main ()
17611{
17612dlopen ();
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext conftest$ac_exeext
17618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017619 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017626 { ac_try='test -z "$ac_c_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_dl_dlopen=yes
17640else
17641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017642sed 's/^/| /' conftest.$ac_ext >&5
17643
John Criswell47fdd832003-07-14 16:52:07 +000017644ac_cv_lib_dl_dlopen=no
17645fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017646rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017648LIBS=$ac_check_lib_save_LIBS
17649fi
17650echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652if test $ac_cv_lib_dl_dlopen = yes; then
17653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17654else
17655 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659else
17660 ac_check_lib_save_LIBS=$LIBS
17661LIBS="-lsvld $LIBS"
17662cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017663/* confdefs.h. */
17664_ACEOF
17665cat confdefs.h >>conftest.$ac_ext
17666cat >>conftest.$ac_ext <<_ACEOF
17667/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017668
17669/* Override any gcc2 internal prototype to avoid an error. */
17670#ifdef __cplusplus
17671extern "C"
17672#endif
17673/* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17675char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017676int
17677main ()
17678{
17679dlopen ();
17680 ;
17681 return 0;
17682}
17683_ACEOF
17684rm -f conftest.$ac_objext conftest$ac_exeext
17685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017686 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693 { ac_try='test -z "$ac_c_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_lib_svld_dlopen=yes
17707else
17708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017709sed 's/^/| /' conftest.$ac_ext >&5
17710
John Criswell47fdd832003-07-14 16:52:07 +000017711ac_cv_lib_svld_dlopen=no
17712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017713rm -f conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017715LIBS=$ac_check_lib_save_LIBS
17716fi
17717echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719if test $ac_cv_lib_svld_dlopen = yes; then
17720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17721else
17722 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726else
17727 ac_check_lib_save_LIBS=$LIBS
17728LIBS="-ldld $LIBS"
17729cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017735
17736/* Override any gcc2 internal prototype to avoid an error. */
17737#ifdef __cplusplus
17738extern "C"
17739#endif
17740/* We use char because int might match the return type of a gcc2
17741 builtin and then its argument prototype would still apply. */
17742char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017743int
17744main ()
17745{
17746dld_link ();
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017753 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_lib_dld_dld_link=yes
17774else
17775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017776sed 's/^/| /' conftest.$ac_ext >&5
17777
John Criswell47fdd832003-07-14 16:52:07 +000017778ac_cv_lib_dld_dld_link=no
17779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017780rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017782LIBS=$ac_check_lib_save_LIBS
17783fi
17784echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786if test $ac_cv_lib_dld_dld_link = yes; then
17787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17788fi
17789
17790
17791fi
17792
17793
17794fi
17795
17796
17797fi
17798
17799
17800fi
17801
17802
17803fi
17804
17805 ;;
17806 esac
17807
17808 if test "x$lt_cv_dlopen" != xno; then
17809 enable_dlopen=yes
17810 else
17811 enable_dlopen=no
17812 fi
17813
17814 case $lt_cv_dlopen in
17815 dlopen)
17816 save_CPPFLAGS="$CPPFLAGS"
17817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17818
17819 save_LDFLAGS="$LDFLAGS"
17820 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17821
17822 save_LIBS="$LIBS"
17823 LIBS="$lt_cv_dlopen_libs $LIBS"
17824
17825 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827if test "${lt_cv_dlopen_self+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829else
17830 if test "$cross_compiling" = yes; then :
17831 lt_cv_dlopen_self=cross
17832else
17833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834 lt_status=$lt_dlunknown
17835 cat > conftest.$ac_ext <<EOF
Reid Spencer177dbe22004-10-13 01:01:03 +000017836#line 17836 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017837#include "confdefs.h"
17838
17839#if HAVE_DLFCN_H
17840#include <dlfcn.h>
17841#endif
17842
17843#include <stdio.h>
17844
17845#ifdef RTLD_GLOBAL
17846# define LT_DLGLOBAL RTLD_GLOBAL
17847#else
17848# ifdef DL_GLOBAL
17849# define LT_DLGLOBAL DL_GLOBAL
17850# else
17851# define LT_DLGLOBAL 0
17852# endif
17853#endif
17854
17855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856 find out it does not work in some platform. */
17857#ifndef LT_DLLAZY_OR_NOW
17858# ifdef RTLD_LAZY
17859# define LT_DLLAZY_OR_NOW RTLD_LAZY
17860# else
17861# ifdef DL_LAZY
17862# define LT_DLLAZY_OR_NOW DL_LAZY
17863# else
17864# ifdef RTLD_NOW
17865# define LT_DLLAZY_OR_NOW RTLD_NOW
17866# else
17867# ifdef DL_NOW
17868# define LT_DLLAZY_OR_NOW DL_NOW
17869# else
17870# define LT_DLLAZY_OR_NOW 0
17871# endif
17872# endif
17873# endif
17874# endif
17875#endif
17876
17877#ifdef __cplusplus
17878extern "C" void exit (int);
17879#endif
17880
17881void fnord() { int i=42;}
17882int main ()
17883{
17884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885 int status = $lt_dlunknown;
17886
17887 if (self)
17888 {
17889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891 /* dlclose (self); */
17892 }
17893
17894 exit (status);
17895}
17896EOF
17897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898 (eval $ac_link) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902 (./conftest; exit; ) 2>/dev/null
17903 lt_status=$?
17904 case x$lt_status in
17905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17908 esac
17909 else :
17910 # compilation failed
17911 lt_cv_dlopen_self=no
17912 fi
17913fi
17914rm -fr conftest*
17915
17916
17917fi
17918echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17920
17921 if test "x$lt_cv_dlopen_self" = xyes; then
17922 LDFLAGS="$LDFLAGS $link_static_flag"
17923 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925if test "${lt_cv_dlopen_self_static+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self_static=cross
17930else
17931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932 lt_status=$lt_dlunknown
17933 cat > conftest.$ac_ext <<EOF
Reid Spencer177dbe22004-10-13 01:01:03 +000017934#line 17934 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017935#include "confdefs.h"
17936
17937#if HAVE_DLFCN_H
17938#include <dlfcn.h>
17939#endif
17940
17941#include <stdio.h>
17942
17943#ifdef RTLD_GLOBAL
17944# define LT_DLGLOBAL RTLD_GLOBAL
17945#else
17946# ifdef DL_GLOBAL
17947# define LT_DLGLOBAL DL_GLOBAL
17948# else
17949# define LT_DLGLOBAL 0
17950# endif
17951#endif
17952
17953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955#ifndef LT_DLLAZY_OR_NOW
17956# ifdef RTLD_LAZY
17957# define LT_DLLAZY_OR_NOW RTLD_LAZY
17958# else
17959# ifdef DL_LAZY
17960# define LT_DLLAZY_OR_NOW DL_LAZY
17961# else
17962# ifdef RTLD_NOW
17963# define LT_DLLAZY_OR_NOW RTLD_NOW
17964# else
17965# ifdef DL_NOW
17966# define LT_DLLAZY_OR_NOW DL_NOW
17967# else
17968# define LT_DLLAZY_OR_NOW 0
17969# endif
17970# endif
17971# endif
17972# endif
17973#endif
17974
17975#ifdef __cplusplus
17976extern "C" void exit (int);
17977#endif
17978
17979void fnord() { int i=42;}
17980int main ()
17981{
17982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983 int status = $lt_dlunknown;
17984
17985 if (self)
17986 {
17987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 /* dlclose (self); */
17990 }
17991
17992 exit (status);
17993}
17994EOF
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) 2>/dev/null
18001 lt_status=$?
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18006 esac
18007 else :
18008 # compilation failed
18009 lt_cv_dlopen_self_static=no
18010 fi
18011fi
18012rm -fr conftest*
18013
18014
18015fi
18016echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18018 fi
18019
18020 CPPFLAGS="$save_CPPFLAGS"
18021 LDFLAGS="$save_LDFLAGS"
18022 LIBS="$save_LIBS"
18023 ;;
18024 esac
18025
18026 case $lt_cv_dlopen_self in
18027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028 *) enable_dlopen_self=unknown ;;
18029 esac
18030
18031 case $lt_cv_dlopen_self_static in
18032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033 *) enable_dlopen_self_static=unknown ;;
18034 esac
18035fi
18036
18037
18038# The else clause should only fire when bootstrapping the
18039# libtool distribution, otherwise you forgot to ship ltmain.sh
18040# with your package, and you will get complaints that there are
18041# no rules to generate ltmain.sh.
18042if test -f "$ltmain"; then
18043 # See if we are running on zsh, and set the options which allow our commands through
18044 # without removal of \ escapes.
18045 if test -n "${ZSH_VERSION+set}" ; then
18046 setopt NO_GLOB_SUBST
18047 fi
18048 # Now quote all the things that may contain metacharacters while being
18049 # careful not to overquote the AC_SUBSTed values. We take copies of the
18050 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18052 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055 deplibs_check_method reload_flag reload_cmds need_locks \
18056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057 lt_cv_sys_global_symbol_to_c_name_address \
18058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059 old_postinstall_cmds old_postuninstall_cmds \
18060 compiler_GCJ \
18061 CC_GCJ \
18062 LD_GCJ \
18063 lt_prog_compiler_wl_GCJ \
18064 lt_prog_compiler_pic_GCJ \
18065 lt_prog_compiler_static_GCJ \
18066 lt_prog_compiler_no_builtin_flag_GCJ \
18067 export_dynamic_flag_spec_GCJ \
18068 thread_safe_flag_spec_GCJ \
18069 whole_archive_flag_spec_GCJ \
18070 enable_shared_with_static_runtimes_GCJ \
18071 old_archive_cmds_GCJ \
18072 old_archive_from_new_cmds_GCJ \
18073 predep_objects_GCJ \
18074 postdep_objects_GCJ \
18075 predeps_GCJ \
18076 postdeps_GCJ \
18077 compiler_lib_search_path_GCJ \
18078 archive_cmds_GCJ \
18079 archive_expsym_cmds_GCJ \
18080 postinstall_cmds_GCJ \
18081 postuninstall_cmds_GCJ \
18082 old_archive_from_expsyms_cmds_GCJ \
18083 allow_undefined_flag_GCJ \
18084 no_undefined_flag_GCJ \
18085 export_symbols_cmds_GCJ \
18086 hardcode_libdir_flag_spec_GCJ \
18087 hardcode_libdir_flag_spec_ld_GCJ \
18088 hardcode_libdir_separator_GCJ \
18089 hardcode_automatic_GCJ \
18090 module_cmds_GCJ \
18091 module_expsym_cmds_GCJ \
18092 lt_cv_prog_compiler_c_o_GCJ \
18093 exclude_expsyms_GCJ \
18094 include_expsyms_GCJ; do
18095
18096 case $var in
18097 old_archive_cmds_GCJ | \
18098 old_archive_from_new_cmds_GCJ | \
18099 archive_cmds_GCJ | \
18100 archive_expsym_cmds_GCJ | \
18101 module_cmds_GCJ | \
18102 module_expsym_cmds_GCJ | \
18103 old_archive_from_expsyms_cmds_GCJ | \
18104 export_symbols_cmds_GCJ | \
18105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106 postinstall_cmds | postuninstall_cmds | \
18107 old_postinstall_cmds | old_postuninstall_cmds | \
18108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018110 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 +000018111 ;;
18112 *)
18113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18114 ;;
18115 esac
18116 done
18117
18118 case $lt_echo in
18119 *'\$0 --fallback-echo"')
18120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18121 ;;
18122 esac
18123
18124cfgfile="$ofile"
18125
18126 cat <<__EOF__ >> "$cfgfile"
18127# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18128
18129# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18130
18131# Shell to use when invoking shell scripts.
18132SHELL=$lt_SHELL
18133
18134# Whether or not to build shared libraries.
18135build_libtool_libs=$enable_shared
18136
18137# Whether or not to build static libraries.
18138build_old_libs=$enable_static
18139
18140# Whether or not to add -lc for building shared libraries.
18141build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18142
18143# Whether or not to disallow shared libs when runtime libs are static
18144allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18145
18146# Whether or not to optimize for fast installation.
18147fast_install=$enable_fast_install
18148
18149# The host system.
18150host_alias=$host_alias
18151host=$host
18152
18153# An echo program that does not interpret backslashes.
18154echo=$lt_echo
18155
18156# The archiver.
18157AR=$lt_AR
18158AR_FLAGS=$lt_AR_FLAGS
18159
18160# A C compiler.
18161LTCC=$lt_LTCC
18162
18163# A language-specific compiler.
18164CC=$lt_compiler_GCJ
18165
18166# Is the compiler the GNU C compiler?
18167with_gcc=$GCC_GCJ
18168
18169# An ERE matcher.
18170EGREP=$lt_EGREP
18171
18172# The linker used to build libraries.
18173LD=$lt_LD_GCJ
18174
18175# Whether we need hard or soft links.
18176LN_S=$lt_LN_S
18177
18178# A BSD-compatible nm program.
18179NM=$lt_NM
18180
18181# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018182STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018183
18184# Used to examine libraries when file_magic_cmd begins "file"
18185MAGIC_CMD=$MAGIC_CMD
18186
18187# Used on cygwin: DLL creation program.
18188DLLTOOL="$DLLTOOL"
18189
18190# Used on cygwin: object dumper.
18191OBJDUMP="$OBJDUMP"
18192
18193# Used on cygwin: assembler.
18194AS="$AS"
18195
18196# The name of the directory that contains temporary libtool files.
18197objdir=$objdir
18198
18199# How to create reloadable object files.
18200reload_flag=$lt_reload_flag
18201reload_cmds=$lt_reload_cmds
18202
18203# How to pass a linker flag through the compiler.
18204wl=$lt_lt_prog_compiler_wl_GCJ
18205
18206# Object file suffix (normally "o").
18207objext="$ac_objext"
18208
18209# Old archive suffix (normally "a").
18210libext="$libext"
18211
18212# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018213shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018214
18215# Executable file suffix (normally "").
18216exeext="$exeext"
18217
18218# Additional compiler flags for building library objects.
18219pic_flag=$lt_lt_prog_compiler_pic_GCJ
18220pic_mode=$pic_mode
18221
18222# What is the maximum length of a command?
18223max_cmd_len=$lt_cv_sys_max_cmd_len
18224
18225# Does compiler simultaneously support -c and -o options?
18226compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18227
18228# Must we lock files when doing compilation ?
18229need_locks=$lt_need_locks
18230
18231# Do we need the lib prefix for modules?
18232need_lib_prefix=$need_lib_prefix
18233
18234# Do we need a version for libraries?
18235need_version=$need_version
18236
18237# Whether dlopen is supported.
18238dlopen_support=$enable_dlopen
18239
18240# Whether dlopen of programs is supported.
18241dlopen_self=$enable_dlopen_self
18242
18243# Whether dlopen of statically linked programs is supported.
18244dlopen_self_static=$enable_dlopen_self_static
18245
18246# Compiler flag to prevent dynamic linking.
18247link_static_flag=$lt_lt_prog_compiler_static_GCJ
18248
18249# Compiler flag to turn off builtin functions.
18250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18251
18252# Compiler flag to allow reflexive dlopens.
18253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18254
18255# Compiler flag to generate shared objects directly from archives.
18256whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18257
18258# Compiler flag to generate thread-safe objects.
18259thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18260
18261# Library versioning type.
18262version_type=$version_type
18263
18264# Format of library name prefix.
18265libname_spec=$lt_libname_spec
18266
18267# List of archive names. First name is the real one, the rest are links.
18268# The last name is the one that the linker finds with -lNAME.
18269library_names_spec=$lt_library_names_spec
18270
18271# The coded name of the library, if different from the real name.
18272soname_spec=$lt_soname_spec
18273
18274# Commands used to build and install an old-style archive.
18275RANLIB=$lt_RANLIB
18276old_archive_cmds=$lt_old_archive_cmds_GCJ
18277old_postinstall_cmds=$lt_old_postinstall_cmds
18278old_postuninstall_cmds=$lt_old_postuninstall_cmds
18279
18280# Create an old-style archive from a shared archive.
18281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18282
18283# Create a temporary old-style archive to link instead of a shared archive.
18284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18285
18286# Commands used to build and install a shared archive.
18287archive_cmds=$lt_archive_cmds_GCJ
18288archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18289postinstall_cmds=$lt_postinstall_cmds
18290postuninstall_cmds=$lt_postuninstall_cmds
18291
18292# Commands used to build a loadable module (assumed same as above if empty)
18293module_cmds=$lt_module_cmds_GCJ
18294module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18295
18296# Commands to strip libraries.
18297old_striplib=$lt_old_striplib
18298striplib=$lt_striplib
18299
18300# Dependencies to place before the objects being linked to create a
18301# shared library.
18302predep_objects=$lt_predep_objects_GCJ
18303
18304# Dependencies to place after the objects being linked to create a
18305# shared library.
18306postdep_objects=$lt_postdep_objects_GCJ
18307
18308# Dependencies to place before the objects being linked to create a
18309# shared library.
18310predeps=$lt_predeps_GCJ
18311
18312# Dependencies to place after the objects being linked to create a
18313# shared library.
18314postdeps=$lt_postdeps_GCJ
18315
18316# The library search path used internally by the compiler when linking
18317# a shared library.
18318compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18319
18320# Method to check whether dependent libraries are shared objects.
18321deplibs_check_method=$lt_deplibs_check_method
18322
18323# Command to use when deplibs_check_method == file_magic.
18324file_magic_cmd=$lt_file_magic_cmd
18325
18326# Flag that allows shared libraries with undefined symbols to be built.
18327allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18328
18329# Flag that forces no undefined symbols.
18330no_undefined_flag=$lt_no_undefined_flag_GCJ
18331
18332# Commands used to finish a libtool library installation in a directory.
18333finish_cmds=$lt_finish_cmds
18334
18335# Same as above, but a single script fragment to be evaled but not shown.
18336finish_eval=$lt_finish_eval
18337
18338# Take the output of nm and produce a listing of raw symbols and C names.
18339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18340
18341# Transform the output of nm in a proper C declaration
18342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18343
18344# Transform the output of nm in a C name address pair
18345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18346
18347# This is the shared library runtime path variable.
18348runpath_var=$runpath_var
18349
18350# This is the shared library path variable.
18351shlibpath_var=$shlibpath_var
18352
18353# Is shlibpath searched before the hard-coded library search path?
18354shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18355
18356# How to hardcode a shared library path into an executable.
18357hardcode_action=$hardcode_action_GCJ
18358
18359# Whether we should hardcode library paths into libraries.
18360hardcode_into_libs=$hardcode_into_libs
18361
18362# Flag to hardcode \$libdir into a binary during linking.
18363# This must work even if \$libdir does not exist.
18364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18365
18366# If ld is used when linking, flag to hardcode \$libdir into
18367# a binary during linking. This must work even if \$libdir does
18368# not exist.
18369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18370
18371# Whether we need a single -rpath flag with a separated argument.
18372hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18373
18374# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18375# resulting binary.
18376hardcode_direct=$hardcode_direct_GCJ
18377
18378# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18379# resulting binary.
18380hardcode_minus_L=$hardcode_minus_L_GCJ
18381
18382# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18383# the resulting binary.
18384hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18385
18386# Set to yes if building a shared library automatically hardcodes DIR into the library
18387# and all subsequent libraries and executables linked against it.
18388hardcode_automatic=$hardcode_automatic_GCJ
18389
18390# Variables whose values should be saved in libtool wrapper scripts and
18391# restored at relink time.
18392variables_saved_for_relink="$variables_saved_for_relink"
18393
18394# Whether libtool must link a program against all its dependency libraries.
18395link_all_deplibs=$link_all_deplibs_GCJ
18396
18397# Compile-time system search path for libraries
18398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18399
18400# Run-time system search path for libraries
18401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18402
18403# Fix the shell variable \$srcfile for the compiler.
18404fix_srcfile_path="$fix_srcfile_path_GCJ"
18405
18406# Set to yes if exported symbols are required.
18407always_export_symbols=$always_export_symbols_GCJ
18408
18409# The commands to list exported symbols.
18410export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18411
18412# The commands to extract the exported symbol list from a shared archive.
18413extract_expsyms_cmds=$lt_extract_expsyms_cmds
18414
18415# Symbols that should not be listed in the preloaded symbols.
18416exclude_expsyms=$lt_exclude_expsyms_GCJ
18417
18418# Symbols that must always be exported.
18419include_expsyms=$lt_include_expsyms_GCJ
18420
18421# ### END LIBTOOL TAG CONFIG: $tagname
18422
18423__EOF__
18424
18425
18426else
18427 # If there is no Makefile yet, we rely on a make rule to execute
18428 # `config.status --recheck' to rerun these tests and create the
18429 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18431 if test -f "$ltmain_in"; then
18432 test -f Makefile && make "$ltmain"
18433 fi
John Criswell47fdd832003-07-14 16:52:07 +000018434fi
18435
18436
18437ac_ext=c
18438ac_cpp='$CPP $CPPFLAGS'
18439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441ac_compiler_gnu=$ac_cv_c_compiler_gnu
18442
18443CC="$lt_save_CC"
18444
18445 else
18446 tagname=""
18447 fi
18448 ;;
18449
18450 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018451 ac_ext=c
18452ac_cpp='$CPP $CPPFLAGS'
18453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18455ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000018456
18457
18458# Source file extension for RC test sources.
18459ac_ext=rc
18460
18461# Object file extension for compiled RC test sources.
18462objext=o
18463objext_RC=$objext
18464
18465# Code to be used in simple compile tests
18466lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18467
18468# Code to be used in simple link tests
18469lt_simple_link_test_code="$lt_simple_compile_test_code"
18470
18471# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18472
18473# If no C compiler was specified, use CC.
18474LTCC=${LTCC-"$CC"}
18475
18476# Allow CC to be a program name with arguments.
18477compiler=$CC
18478
18479
18480# Allow CC to be a program name with arguments.
18481lt_save_CC="$CC"
18482CC=${RC-"windres"}
18483compiler=$CC
18484compiler_RC=$CC
18485lt_cv_prog_compiler_c_o_RC=yes
18486
18487# The else clause should only fire when bootstrapping the
18488# libtool distribution, otherwise you forgot to ship ltmain.sh
18489# with your package, and you will get complaints that there are
18490# no rules to generate ltmain.sh.
18491if test -f "$ltmain"; then
18492 # See if we are running on zsh, and set the options which allow our commands through
18493 # without removal of \ escapes.
18494 if test -n "${ZSH_VERSION+set}" ; then
18495 setopt NO_GLOB_SUBST
18496 fi
18497 # Now quote all the things that may contain metacharacters while being
18498 # careful not to overquote the AC_SUBSTed values. We take copies of the
18499 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018500 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18501 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18504 deplibs_check_method reload_flag reload_cmds need_locks \
18505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18506 lt_cv_sys_global_symbol_to_c_name_address \
18507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18508 old_postinstall_cmds old_postuninstall_cmds \
18509 compiler_RC \
18510 CC_RC \
18511 LD_RC \
18512 lt_prog_compiler_wl_RC \
18513 lt_prog_compiler_pic_RC \
18514 lt_prog_compiler_static_RC \
18515 lt_prog_compiler_no_builtin_flag_RC \
18516 export_dynamic_flag_spec_RC \
18517 thread_safe_flag_spec_RC \
18518 whole_archive_flag_spec_RC \
18519 enable_shared_with_static_runtimes_RC \
18520 old_archive_cmds_RC \
18521 old_archive_from_new_cmds_RC \
18522 predep_objects_RC \
18523 postdep_objects_RC \
18524 predeps_RC \
18525 postdeps_RC \
18526 compiler_lib_search_path_RC \
18527 archive_cmds_RC \
18528 archive_expsym_cmds_RC \
18529 postinstall_cmds_RC \
18530 postuninstall_cmds_RC \
18531 old_archive_from_expsyms_cmds_RC \
18532 allow_undefined_flag_RC \
18533 no_undefined_flag_RC \
18534 export_symbols_cmds_RC \
18535 hardcode_libdir_flag_spec_RC \
18536 hardcode_libdir_flag_spec_ld_RC \
18537 hardcode_libdir_separator_RC \
18538 hardcode_automatic_RC \
18539 module_cmds_RC \
18540 module_expsym_cmds_RC \
18541 lt_cv_prog_compiler_c_o_RC \
18542 exclude_expsyms_RC \
18543 include_expsyms_RC; do
18544
18545 case $var in
18546 old_archive_cmds_RC | \
18547 old_archive_from_new_cmds_RC | \
18548 archive_cmds_RC | \
18549 archive_expsym_cmds_RC | \
18550 module_cmds_RC | \
18551 module_expsym_cmds_RC | \
18552 old_archive_from_expsyms_cmds_RC | \
18553 export_symbols_cmds_RC | \
18554 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18555 postinstall_cmds | postuninstall_cmds | \
18556 old_postinstall_cmds | old_postuninstall_cmds | \
18557 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18558 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018559 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 +000018560 ;;
18561 *)
18562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18563 ;;
18564 esac
18565 done
18566
18567 case $lt_echo in
18568 *'\$0 --fallback-echo"')
18569 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18570 ;;
18571 esac
18572
18573cfgfile="$ofile"
18574
18575 cat <<__EOF__ >> "$cfgfile"
18576# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18577
18578# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18579
18580# Shell to use when invoking shell scripts.
18581SHELL=$lt_SHELL
18582
18583# Whether or not to build shared libraries.
18584build_libtool_libs=$enable_shared
18585
18586# Whether or not to build static libraries.
18587build_old_libs=$enable_static
18588
18589# Whether or not to add -lc for building shared libraries.
18590build_libtool_need_lc=$archive_cmds_need_lc_RC
18591
18592# Whether or not to disallow shared libs when runtime libs are static
18593allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18594
18595# Whether or not to optimize for fast installation.
18596fast_install=$enable_fast_install
18597
18598# The host system.
18599host_alias=$host_alias
18600host=$host
18601
18602# An echo program that does not interpret backslashes.
18603echo=$lt_echo
18604
18605# The archiver.
18606AR=$lt_AR
18607AR_FLAGS=$lt_AR_FLAGS
18608
18609# A C compiler.
18610LTCC=$lt_LTCC
18611
18612# A language-specific compiler.
18613CC=$lt_compiler_RC
18614
18615# Is the compiler the GNU C compiler?
18616with_gcc=$GCC_RC
18617
18618# An ERE matcher.
18619EGREP=$lt_EGREP
18620
18621# The linker used to build libraries.
18622LD=$lt_LD_RC
18623
18624# Whether we need hard or soft links.
18625LN_S=$lt_LN_S
18626
18627# A BSD-compatible nm program.
18628NM=$lt_NM
18629
18630# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018631STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018632
18633# Used to examine libraries when file_magic_cmd begins "file"
18634MAGIC_CMD=$MAGIC_CMD
18635
18636# Used on cygwin: DLL creation program.
18637DLLTOOL="$DLLTOOL"
18638
18639# Used on cygwin: object dumper.
18640OBJDUMP="$OBJDUMP"
18641
18642# Used on cygwin: assembler.
18643AS="$AS"
18644
18645# The name of the directory that contains temporary libtool files.
18646objdir=$objdir
18647
18648# How to create reloadable object files.
18649reload_flag=$lt_reload_flag
18650reload_cmds=$lt_reload_cmds
18651
18652# How to pass a linker flag through the compiler.
18653wl=$lt_lt_prog_compiler_wl_RC
18654
18655# Object file suffix (normally "o").
18656objext="$ac_objext"
18657
18658# Old archive suffix (normally "a").
18659libext="$libext"
18660
18661# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018662shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018663
18664# Executable file suffix (normally "").
18665exeext="$exeext"
18666
18667# Additional compiler flags for building library objects.
18668pic_flag=$lt_lt_prog_compiler_pic_RC
18669pic_mode=$pic_mode
18670
18671# What is the maximum length of a command?
18672max_cmd_len=$lt_cv_sys_max_cmd_len
18673
18674# Does compiler simultaneously support -c and -o options?
18675compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18676
18677# Must we lock files when doing compilation ?
18678need_locks=$lt_need_locks
18679
18680# Do we need the lib prefix for modules?
18681need_lib_prefix=$need_lib_prefix
18682
18683# Do we need a version for libraries?
18684need_version=$need_version
18685
18686# Whether dlopen is supported.
18687dlopen_support=$enable_dlopen
18688
18689# Whether dlopen of programs is supported.
18690dlopen_self=$enable_dlopen_self
18691
18692# Whether dlopen of statically linked programs is supported.
18693dlopen_self_static=$enable_dlopen_self_static
18694
18695# Compiler flag to prevent dynamic linking.
18696link_static_flag=$lt_lt_prog_compiler_static_RC
18697
18698# Compiler flag to turn off builtin functions.
18699no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18700
18701# Compiler flag to allow reflexive dlopens.
18702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18703
18704# Compiler flag to generate shared objects directly from archives.
18705whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18706
18707# Compiler flag to generate thread-safe objects.
18708thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18709
18710# Library versioning type.
18711version_type=$version_type
18712
18713# Format of library name prefix.
18714libname_spec=$lt_libname_spec
18715
18716# List of archive names. First name is the real one, the rest are links.
18717# The last name is the one that the linker finds with -lNAME.
18718library_names_spec=$lt_library_names_spec
18719
18720# The coded name of the library, if different from the real name.
18721soname_spec=$lt_soname_spec
18722
18723# Commands used to build and install an old-style archive.
18724RANLIB=$lt_RANLIB
18725old_archive_cmds=$lt_old_archive_cmds_RC
18726old_postinstall_cmds=$lt_old_postinstall_cmds
18727old_postuninstall_cmds=$lt_old_postuninstall_cmds
18728
18729# Create an old-style archive from a shared archive.
18730old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18731
18732# Create a temporary old-style archive to link instead of a shared archive.
18733old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18734
18735# Commands used to build and install a shared archive.
18736archive_cmds=$lt_archive_cmds_RC
18737archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18738postinstall_cmds=$lt_postinstall_cmds
18739postuninstall_cmds=$lt_postuninstall_cmds
18740
18741# Commands used to build a loadable module (assumed same as above if empty)
18742module_cmds=$lt_module_cmds_RC
18743module_expsym_cmds=$lt_module_expsym_cmds_RC
18744
18745# Commands to strip libraries.
18746old_striplib=$lt_old_striplib
18747striplib=$lt_striplib
18748
18749# Dependencies to place before the objects being linked to create a
18750# shared library.
18751predep_objects=$lt_predep_objects_RC
18752
18753# Dependencies to place after the objects being linked to create a
18754# shared library.
18755postdep_objects=$lt_postdep_objects_RC
18756
18757# Dependencies to place before the objects being linked to create a
18758# shared library.
18759predeps=$lt_predeps_RC
18760
18761# Dependencies to place after the objects being linked to create a
18762# shared library.
18763postdeps=$lt_postdeps_RC
18764
18765# The library search path used internally by the compiler when linking
18766# a shared library.
18767compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18768
18769# Method to check whether dependent libraries are shared objects.
18770deplibs_check_method=$lt_deplibs_check_method
18771
18772# Command to use when deplibs_check_method == file_magic.
18773file_magic_cmd=$lt_file_magic_cmd
18774
18775# Flag that allows shared libraries with undefined symbols to be built.
18776allow_undefined_flag=$lt_allow_undefined_flag_RC
18777
18778# Flag that forces no undefined symbols.
18779no_undefined_flag=$lt_no_undefined_flag_RC
18780
18781# Commands used to finish a libtool library installation in a directory.
18782finish_cmds=$lt_finish_cmds
18783
18784# Same as above, but a single script fragment to be evaled but not shown.
18785finish_eval=$lt_finish_eval
18786
18787# Take the output of nm and produce a listing of raw symbols and C names.
18788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18789
18790# Transform the output of nm in a proper C declaration
18791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18792
18793# Transform the output of nm in a C name address pair
18794global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18795
18796# This is the shared library runtime path variable.
18797runpath_var=$runpath_var
18798
18799# This is the shared library path variable.
18800shlibpath_var=$shlibpath_var
18801
18802# Is shlibpath searched before the hard-coded library search path?
18803shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18804
18805# How to hardcode a shared library path into an executable.
18806hardcode_action=$hardcode_action_RC
18807
18808# Whether we should hardcode library paths into libraries.
18809hardcode_into_libs=$hardcode_into_libs
18810
18811# Flag to hardcode \$libdir into a binary during linking.
18812# This must work even if \$libdir does not exist.
18813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18814
18815# If ld is used when linking, flag to hardcode \$libdir into
18816# a binary during linking. This must work even if \$libdir does
18817# not exist.
18818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18819
18820# Whether we need a single -rpath flag with a separated argument.
18821hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18822
18823# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18824# resulting binary.
18825hardcode_direct=$hardcode_direct_RC
18826
18827# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18828# resulting binary.
18829hardcode_minus_L=$hardcode_minus_L_RC
18830
18831# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18832# the resulting binary.
18833hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18834
18835# Set to yes if building a shared library automatically hardcodes DIR into the library
18836# and all subsequent libraries and executables linked against it.
18837hardcode_automatic=$hardcode_automatic_RC
18838
18839# Variables whose values should be saved in libtool wrapper scripts and
18840# restored at relink time.
18841variables_saved_for_relink="$variables_saved_for_relink"
18842
18843# Whether libtool must link a program against all its dependency libraries.
18844link_all_deplibs=$link_all_deplibs_RC
18845
18846# Compile-time system search path for libraries
18847sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18848
18849# Run-time system search path for libraries
18850sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18851
18852# Fix the shell variable \$srcfile for the compiler.
18853fix_srcfile_path="$fix_srcfile_path_RC"
18854
18855# Set to yes if exported symbols are required.
18856always_export_symbols=$always_export_symbols_RC
18857
18858# The commands to list exported symbols.
18859export_symbols_cmds=$lt_export_symbols_cmds_RC
18860
18861# The commands to extract the exported symbol list from a shared archive.
18862extract_expsyms_cmds=$lt_extract_expsyms_cmds
18863
18864# Symbols that should not be listed in the preloaded symbols.
18865exclude_expsyms=$lt_exclude_expsyms_RC
18866
18867# Symbols that must always be exported.
18868include_expsyms=$lt_include_expsyms_RC
18869
18870# ### END LIBTOOL TAG CONFIG: $tagname
18871
18872__EOF__
18873
18874
18875else
18876 # If there is no Makefile yet, we rely on a make rule to execute
18877 # `config.status --recheck' to rerun these tests and create the
18878 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18880 if test -f "$ltmain_in"; then
18881 test -f Makefile && make "$ltmain"
18882 fi
John Criswell47fdd832003-07-14 16:52:07 +000018883fi
18884
18885
18886ac_ext=c
18887ac_cpp='$CPP $CPPFLAGS'
18888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892CC="$lt_save_CC"
18893
18894 ;;
18895
18896 *)
18897 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18898echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18899 { (exit 1); exit 1; }; }
18900 ;;
18901 esac
18902
18903 # Append the new tag name to the list of available tags.
18904 if test -n "$tagname" ; then
18905 available_tags="$available_tags $tagname"
18906 fi
18907 fi
18908 done
18909 IFS="$lt_save_ifs"
18910
18911 # Now substitute the updated list of available tags.
18912 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18913 mv "${ofile}T" "$ofile"
18914 chmod +x "$ofile"
18915 else
18916 rm -f "${ofile}T"
18917 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18918echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18919 { (exit 1); exit 1; }; }
18920 fi
18921fi
John Criswell7a73b802003-06-30 21:59:07 +000018922
18923
18924
18925# This can be used to rebuild libtool when needed
18926LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18927
18928# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018929LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018930
18931# Prevent multiple expansion
18932
18933
18934
John Criswell47fdd832003-07-14 16:52:07 +000018935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
John Criswell7a73b802003-06-30 21:59:07 +000018953# Extract the first word of "dot", so it can be a program name with args.
18954set dummy dot; ac_word=$2
18955echo "$as_me:$LINENO: checking for $ac_word" >&5
18956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18957if test "${ac_cv_path_DOT+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18959else
18960 case $DOT in
18961 [\\/]* | ?:[\\/]*)
18962 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18963 ;;
18964 *)
18965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18966for as_dir in $PATH
18967do
18968 IFS=$as_save_IFS
18969 test -z "$as_dir" && as_dir=.
18970 for ac_exec_ext in '' $ac_executable_extensions; do
18971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18972 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18974 break 2
18975 fi
18976done
18977done
18978
Brian Gaeke26be9c52004-01-13 06:43:16 +000018979 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018980 ;;
18981esac
18982fi
18983DOT=$ac_cv_path_DOT
18984
18985if test -n "$DOT"; then
18986 echo "$as_me:$LINENO: result: $DOT" >&5
18987echo "${ECHO_T}$DOT" >&6
18988else
18989 echo "$as_me:$LINENO: result: no" >&5
18990echo "${ECHO_T}no" >&6
18991fi
18992
18993# Extract the first word of "etags", so it can be a program name with args.
18994set dummy etags; ac_word=$2
18995echo "$as_me:$LINENO: checking for $ac_word" >&5
18996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18997if test "${ac_cv_path_ETAGS+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
18999else
19000 case $ETAGS in
19001 [\\/]* | ?:[\\/]*)
19002 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19003 ;;
19004 *)
19005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006for as_dir in $PATH
19007do
19008 IFS=$as_save_IFS
19009 test -z "$as_dir" && as_dir=.
19010 for ac_exec_ext in '' $ac_executable_extensions; do
19011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19012 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19014 break 2
19015 fi
19016done
19017done
19018
Brian Gaeke26be9c52004-01-13 06:43:16 +000019019 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000019020 ;;
19021esac
19022fi
19023ETAGS=$ac_cv_path_ETAGS
19024
19025if test -n "$ETAGS"; then
19026 echo "$as_me:$LINENO: result: $ETAGS" >&5
19027echo "${ECHO_T}$ETAGS" >&6
19028else
19029 echo "$as_me:$LINENO: result: no" >&5
19030echo "${ECHO_T}no" >&6
19031fi
19032
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000019033etags_version=`$ETAGS --version 2>&1`
19034case "$etags_version" in
19035 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19036 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19037 *) ETAGSFLAGS="" ;;
19038esac
19039ETAGSFLAGS=$ETAGSFLAGS
19040
John Criswellde00db22003-08-25 16:49:54 +000019041# Extract the first word of "python", so it can be a program name with args.
19042set dummy python; ac_word=$2
19043echo "$as_me:$LINENO: checking for $ac_word" >&5
19044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19045if test "${ac_cv_path_PYTHON+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 case $PYTHON in
19049 [\\/]* | ?:[\\/]*)
19050 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19051 ;;
19052 *)
19053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054for as_dir in $PATH
19055do
19056 IFS=$as_save_IFS
19057 test -z "$as_dir" && as_dir=.
19058 for ac_exec_ext in '' $ac_executable_extensions; do
19059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19062 break 2
19063 fi
19064done
19065done
19066
Brian Gaeke26be9c52004-01-13 06:43:16 +000019067 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019068 ;;
19069esac
19070fi
19071PYTHON=$ac_cv_path_PYTHON
19072
19073if test -n "$PYTHON"; then
19074 echo "$as_me:$LINENO: result: $PYTHON" >&5
19075echo "${ECHO_T}$PYTHON" >&6
19076else
19077 echo "$as_me:$LINENO: result: no" >&5
19078echo "${ECHO_T}no" >&6
19079fi
19080
Brian Gaeke26be9c52004-01-13 06:43:16 +000019081if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019082then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019083 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19084echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019085fi
John Criswellde00db22003-08-25 16:49:54 +000019086# Extract the first word of "qmtest", so it can be a program name with args.
19087set dummy qmtest; ac_word=$2
19088echo "$as_me:$LINENO: checking for $ac_word" >&5
19089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090if test "${ac_cv_path_QMTEST+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19092else
19093 case $QMTEST in
19094 [\\/]* | ?:[\\/]*)
19095 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19096 ;;
19097 *)
19098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099for as_dir in $PATH
19100do
19101 IFS=$as_save_IFS
19102 test -z "$as_dir" && as_dir=.
19103 for ac_exec_ext in '' $ac_executable_extensions; do
19104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19107 break 2
19108 fi
19109done
19110done
19111
Brian Gaeke26be9c52004-01-13 06:43:16 +000019112 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019113 ;;
19114esac
19115fi
19116QMTEST=$ac_cv_path_QMTEST
19117
19118if test -n "$QMTEST"; then
19119 echo "$as_me:$LINENO: result: $QMTEST" >&5
19120echo "${ECHO_T}$QMTEST" >&6
19121else
19122 echo "$as_me:$LINENO: result: no" >&5
19123echo "${ECHO_T}no" >&6
19124fi
19125
Brian Gaeke26be9c52004-01-13 06:43:16 +000019126if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019127then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019128 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19129echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019130fi
John Criswellde00db22003-08-25 16:49:54 +000019131
19132pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19133pymajor=`echo $pyversion | cut -d. -f1`
19134pyminor=`echo $pyversion | cut -d. -f2`
19135
19136if test "$pymajor" -ge "2"
19137then
19138 if test "$pymajor" -eq "2"
19139 then
19140 if test "$pyminor" -lt "2"
19141 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019142 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19143echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019144 fi
19145 fi
19146else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019147 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19148echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019149fi
John Criswell7a73b802003-06-30 21:59:07 +000019150
19151
John Criswell7a73b802003-06-30 21:59:07 +000019152echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19153echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19154if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19156else
19157 ac_check_lib_save_LIBS=$LIBS
19158LIBS="-lelf $LIBS"
19159cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019165
19166/* Override any gcc2 internal prototype to avoid an error. */
19167#ifdef __cplusplus
19168extern "C"
19169#endif
19170/* We use char because int might match the return type of a gcc2
19171 builtin and then its argument prototype would still apply. */
19172char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019173int
19174main ()
19175{
19176elf_begin ();
19177 ;
19178 return 0;
19179}
19180_ACEOF
19181rm -f conftest.$ac_objext conftest$ac_exeext
19182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019183 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019185 grep -v '^ *+' conftest.er1 >conftest.err
19186 rm -f conftest.er1
19187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019190 { ac_try='test -z "$ac_c_werror_flag"
19191 || test ! -s conftest.err'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; } &&
19197 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_lib_elf_elf_begin=yes
19204else
19205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019206sed 's/^/| /' conftest.$ac_ext >&5
19207
John Criswell7a73b802003-06-30 21:59:07 +000019208ac_cv_lib_elf_elf_begin=no
19209fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019210rm -f conftest.err conftest.$ac_objext \
19211 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019212LIBS=$ac_check_lib_save_LIBS
19213fi
19214echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19215echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19216if test $ac_cv_lib_elf_elf_begin = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218#define HAVE_LIBELF 1
19219_ACEOF
19220
19221 LIBS="-lelf $LIBS"
19222
19223fi
19224
19225
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019226echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19227echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19228if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230else
19231 ac_check_lib_save_LIBS=$LIBS
19232LIBS="-lbz2 $LIBS"
19233cat >conftest.$ac_ext <<_ACEOF
19234/* confdefs.h. */
19235_ACEOF
19236cat confdefs.h >>conftest.$ac_ext
19237cat >>conftest.$ac_ext <<_ACEOF
19238/* end confdefs.h. */
19239
19240/* Override any gcc2 internal prototype to avoid an error. */
19241#ifdef __cplusplus
19242extern "C"
19243#endif
19244/* We use char because int might match the return type of a gcc2
19245 builtin and then its argument prototype would still apply. */
19246char BZ2_bzCompressInit ();
19247int
19248main ()
19249{
19250BZ2_bzCompressInit ();
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest.$ac_objext conftest$ac_exeext
19256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>conftest.er1
19258 ac_status=$?
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest$ac_exeext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19278else
19279 echo "$as_me: failed program was:" >&5
19280sed 's/^/| /' conftest.$ac_ext >&5
19281
19282ac_cv_lib_bz2_BZ2_bzCompressInit=no
19283fi
19284rm -f conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286LIBS=$ac_check_lib_save_LIBS
19287fi
19288echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19289echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19290if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19291 bzip2_found=1
19292else
19293 bzip2_found=0
19294fi
19295
Reid Spencer0d98aed2004-10-04 22:05:53 +000019296
19297for ac_header in bzlib.h
19298do
19299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19300if eval "test \"\${$as_ac_Header+set}\" = set"; then
19301 echo "$as_me:$LINENO: checking for $ac_header" >&5
19302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19305fi
19306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19308else
19309 # Is the header compilable?
19310echo "$as_me:$LINENO: checking $ac_header usability" >&5
19311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19312cat >conftest.$ac_ext <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
19318$ac_includes_default
19319#include <$ac_header>
19320_ACEOF
19321rm -f conftest.$ac_objext
19322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19323 (eval $ac_compile) 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_c_werror_flag"
19331 || test ! -s conftest.err'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_header_compiler=yes
19344else
19345 echo "$as_me: failed program was:" >&5
19346sed 's/^/| /' conftest.$ac_ext >&5
19347
19348ac_header_compiler=no
19349fi
19350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19352echo "${ECHO_T}$ac_header_compiler" >&6
19353
19354# Is the header present?
19355echo "$as_me:$LINENO: checking $ac_header presence" >&5
19356echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19357cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363#include <$ac_header>
19364_ACEOF
19365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } >/dev/null; then
19373 if test -s conftest.err; then
19374 ac_cpp_err=$ac_c_preproc_warn_flag
19375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19376 else
19377 ac_cpp_err=
19378 fi
19379else
19380 ac_cpp_err=yes
19381fi
19382if test -z "$ac_cpp_err"; then
19383 ac_header_preproc=yes
19384else
19385 echo "$as_me: failed program was:" >&5
19386sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_header_preproc=no
19389fi
19390rm -f conftest.err conftest.$ac_ext
19391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19392echo "${ECHO_T}$ac_header_preproc" >&6
19393
19394# So? What about this header?
19395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19396 yes:no: )
19397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19401 ac_header_preproc=yes
19402 ;;
19403 no:yes:* )
19404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19411echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19416 (
19417 cat <<\_ASBOX
19418## ----------------------------------- ##
19419## Report this to llvmbugs@cs.uiuc.edu ##
19420## ----------------------------------- ##
19421_ASBOX
19422 ) |
19423 sed "s/^/$as_me: WARNING: /" >&2
19424 ;;
19425esac
19426echo "$as_me:$LINENO: checking for $ac_header" >&5
19427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19428if eval "test \"\${$as_ac_Header+set}\" = set"; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19430else
19431 eval "$as_ac_Header=\$ac_header_preproc"
19432fi
19433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19435
19436fi
19437if test `eval echo '${'$as_ac_Header'}'` = yes; then
19438 cat >>confdefs.h <<_ACEOF
19439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19440_ACEOF
19441 bzlib_h_found=1
19442else
19443 bzlib_h_found=0
19444fi
19445
19446done
19447
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019448echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19449echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19450if test "${ac_cv_lib_z_gzopen+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19452else
19453 ac_check_lib_save_LIBS=$LIBS
19454LIBS="-lz $LIBS"
19455cat >conftest.$ac_ext <<_ACEOF
19456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
19461
19462/* Override any gcc2 internal prototype to avoid an error. */
19463#ifdef __cplusplus
19464extern "C"
19465#endif
19466/* We use char because int might match the return type of a gcc2
19467 builtin and then its argument prototype would still apply. */
19468char gzopen ();
19469int
19470main ()
19471{
19472gzopen ();
19473 ;
19474 return 0;
19475}
19476_ACEOF
19477rm -f conftest.$ac_objext conftest$ac_exeext
19478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479 (eval $ac_link) 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_c_werror_flag"
19487 || test ! -s conftest.err'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest$ac_exeext'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_lib_z_gzopen=yes
19500else
19501 echo "$as_me: failed program was:" >&5
19502sed 's/^/| /' conftest.$ac_ext >&5
19503
19504ac_cv_lib_z_gzopen=no
19505fi
19506rm -f conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508LIBS=$ac_check_lib_save_LIBS
19509fi
19510echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19511echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19512if test $ac_cv_lib_z_gzopen = yes; then
19513 zlib_found=1
19514else
19515 zlib_found=0
19516fi
19517
Reid Spencer37130d22004-10-04 07:05:07 +000019518
Reid Spencer0d98aed2004-10-04 22:05:53 +000019519for ac_header in zlib.h
19520do
19521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19522if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523 echo "$as_me:$LINENO: checking for $ac_header" >&5
19524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19525if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19527fi
19528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19530else
19531 # Is the header compilable?
19532echo "$as_me:$LINENO: checking $ac_header usability" >&5
19533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19534cat >conftest.$ac_ext <<_ACEOF
19535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
19540$ac_includes_default
19541#include <$ac_header>
19542_ACEOF
19543rm -f conftest.$ac_objext
19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545 (eval $ac_compile) 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest.$ac_objext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_header_compiler=yes
19566else
19567 echo "$as_me: failed program was:" >&5
19568sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer37130d22004-10-04 07:05:07 +000019569
Reid Spencer0d98aed2004-10-04 22:05:53 +000019570ac_header_compiler=no
19571fi
19572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574echo "${ECHO_T}$ac_header_compiler" >&6
19575
19576# Is the header present?
19577echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19579cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585#include <$ac_header>
19586_ACEOF
19587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } >/dev/null; then
19595 if test -s conftest.err; then
19596 ac_cpp_err=$ac_c_preproc_warn_flag
19597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19598 else
19599 ac_cpp_err=
19600 fi
19601else
19602 ac_cpp_err=yes
19603fi
19604if test -z "$ac_cpp_err"; then
19605 ac_header_preproc=yes
19606else
19607 echo "$as_me: failed program was:" >&5
19608sed 's/^/| /' conftest.$ac_ext >&5
19609
19610 ac_header_preproc=no
19611fi
19612rm -f conftest.err conftest.$ac_ext
19613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614echo "${ECHO_T}$ac_header_preproc" >&6
19615
19616# So? What about this header?
19617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618 yes:no: )
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19623 ac_header_preproc=yes
19624 ;;
19625 no:yes:* )
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19638 (
19639 cat <<\_ASBOX
19640## ----------------------------------- ##
19641## Report this to llvmbugs@cs.uiuc.edu ##
19642## ----------------------------------- ##
19643_ASBOX
19644 ) |
19645 sed "s/^/$as_me: WARNING: /" >&2
19646 ;;
19647esac
19648echo "$as_me:$LINENO: checking for $ac_header" >&5
19649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19650if eval "test \"\${$as_ac_Header+set}\" = set"; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652else
19653 eval "$as_ac_Header=\$ac_header_preproc"
19654fi
19655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19657
19658fi
19659if test `eval echo '${'$as_ac_Header'}'` = yes; then
19660 cat >>confdefs.h <<_ACEOF
19661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19662_ACEOF
19663 zlib_h_found=1
19664else
19665 zlib_h_found=0
19666fi
19667
19668done
19669
19670if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019671
19672cat >>confdefs.h <<\_ACEOF
19673#define HAVE_ZLIB 1
19674_ACEOF
19675
Reid Spencer0d98aed2004-10-04 22:05:53 +000019676 HAVE_ZLIB=1
19677
19678else
19679 HAVE_ZLIB=0
19680
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019681fi
Reid Spencer0d98aed2004-10-04 22:05:53 +000019682if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019683
19684cat >>confdefs.h <<\_ACEOF
19685#define HAVE_BZIP2 1
19686_ACEOF
19687
Reid Spencer0d98aed2004-10-04 22:05:53 +000019688 HAVE_BZIP2=1
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019689
Reid Spencer0d98aed2004-10-04 22:05:53 +000019690else
19691 HAVE_BZIP2=0
19692
19693fi
John Criswell7a73b802003-06-30 21:59:07 +000019694echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19695echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19696if test "${ac_cv_search_dlopen+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19698else
19699 ac_func_search_save_LIBS=$LIBS
19700ac_cv_search_dlopen=no
19701cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019707
19708/* Override any gcc2 internal prototype to avoid an error. */
19709#ifdef __cplusplus
19710extern "C"
19711#endif
19712/* We use char because int might match the return type of a gcc2
19713 builtin and then its argument prototype would still apply. */
19714char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019715int
19716main ()
19717{
19718dlopen ();
19719 ;
19720 return 0;
19721}
19722_ACEOF
19723rm -f conftest.$ac_objext conftest$ac_exeext
19724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019725 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 ac_cv_search_dlopen="none required"
19746else
19747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019748sed 's/^/| /' conftest.$ac_ext >&5
19749
John Criswell7a73b802003-06-30 21:59:07 +000019750fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019751rm -f conftest.err conftest.$ac_objext \
19752 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019753if test "$ac_cv_search_dlopen" = no; then
19754 for ac_lib in dl; do
19755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019762
19763/* Override any gcc2 internal prototype to avoid an error. */
19764#ifdef __cplusplus
19765extern "C"
19766#endif
19767/* We use char because int might match the return type of a gcc2
19768 builtin and then its argument prototype would still apply. */
19769char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019770int
19771main ()
19772{
19773dlopen ();
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext conftest$ac_exeext
19779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019780 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_search_dlopen="-l$ac_lib"
19801break
19802else
19803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019804sed 's/^/| /' conftest.$ac_ext >&5
19805
John Criswell7a73b802003-06-30 21:59:07 +000019806fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019807rm -f conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019809 done
19810fi
19811LIBS=$ac_func_search_save_LIBS
19812fi
19813echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19814echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19815if test "$ac_cv_search_dlopen" != no; then
19816 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019817
19818cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019819#define HAVE_DLOPEN 1
19820_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019821
19822else
Brian Gaekec45be042003-10-07 06:01:34 +000019823 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19824echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019825fi
19826
19827
19828echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19829echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19830if test "${ac_cv_search_mallinfo+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 ac_func_search_save_LIBS=$LIBS
19834ac_cv_search_mallinfo=no
19835cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019841
19842/* Override any gcc2 internal prototype to avoid an error. */
19843#ifdef __cplusplus
19844extern "C"
19845#endif
19846/* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19848char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019849int
19850main ()
19851{
19852mallinfo ();
19853 ;
19854 return 0;
19855}
19856_ACEOF
19857rm -f conftest.$ac_objext conftest$ac_exeext
19858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019859 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019866 { ac_try='test -z "$ac_c_werror_flag"
19867 || test ! -s conftest.err'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_search_mallinfo="none required"
19880else
19881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019882sed 's/^/| /' conftest.$ac_ext >&5
19883
John Criswell7a73b802003-06-30 21:59:07 +000019884fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019885rm -f conftest.err conftest.$ac_objext \
19886 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019887if test "$ac_cv_search_mallinfo" = no; then
19888 for ac_lib in malloc; do
19889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019891/* confdefs.h. */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
19895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019896
19897/* Override any gcc2 internal prototype to avoid an error. */
19898#ifdef __cplusplus
19899extern "C"
19900#endif
19901/* We use char because int might match the return type of a gcc2
19902 builtin and then its argument prototype would still apply. */
19903char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019904int
19905main ()
19906{
19907mallinfo ();
19908 ;
19909 return 0;
19910}
19911_ACEOF
19912rm -f conftest.$ac_objext conftest$ac_exeext
19913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019914 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019921 { ac_try='test -z "$ac_c_werror_flag"
19922 || test ! -s conftest.err'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_cv_search_mallinfo="-l$ac_lib"
19935break
19936else
19937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019938sed 's/^/| /' conftest.$ac_ext >&5
19939
John Criswell7a73b802003-06-30 21:59:07 +000019940fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019941rm -f conftest.err conftest.$ac_objext \
19942 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019943 done
19944fi
19945LIBS=$ac_func_search_save_LIBS
19946fi
19947echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19948echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19949if test "$ac_cv_search_mallinfo" != no; then
19950 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019951
19952cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019953#define HAVE_MALLINFO 1
19954_ACEOF
19955
19956fi
19957
19958
Brian Gaeke5f268f72003-12-05 19:29:01 +000019959echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19960echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19961if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19963else
19964 ac_func_search_save_LIBS=$LIBS
19965ac_cv_search_pthread_mutex_lock=no
19966cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
19972
19973/* Override any gcc2 internal prototype to avoid an error. */
19974#ifdef __cplusplus
19975extern "C"
19976#endif
19977/* We use char because int might match the return type of a gcc2
19978 builtin and then its argument prototype would still apply. */
19979char pthread_mutex_lock ();
19980int
19981main ()
19982{
19983pthread_mutex_lock ();
19984 ;
19985 return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext conftest$ac_exeext
19989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019990 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019992 grep -v '^ *+' conftest.er1 >conftest.err
19993 rm -f conftest.er1
19994 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019997 { ac_try='test -z "$ac_c_werror_flag"
19998 || test ! -s conftest.err'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_search_pthread_mutex_lock="none required"
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020016rm -f conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020018if test "$ac_cv_search_pthread_mutex_lock" = no; then
20019 for ac_lib in pthread; do
20020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20021 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000020022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h. */
20027
20028/* Override any gcc2 internal prototype to avoid an error. */
20029#ifdef __cplusplus
20030extern "C"
20031#endif
20032/* We use char because int might match the return type of a gcc2
20033 builtin and then its argument prototype would still apply. */
20034char pthread_mutex_lock ();
20035int
20036main ()
20037{
20038pthread_mutex_lock ();
20039 ;
20040 return 0;
20041}
20042_ACEOF
20043rm -f conftest.$ac_objext conftest$ac_exeext
20044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020045 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000020046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000020050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020052 { ac_try='test -z "$ac_c_werror_flag"
20053 || test ! -s conftest.err'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; }; then
20065 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20066break
20067else
20068 echo "$as_me: failed program was:" >&5
20069sed 's/^/| /' conftest.$ac_ext >&5
20070
20071fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020072rm -f conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020074 done
20075fi
20076LIBS=$ac_func_search_save_LIBS
20077fi
20078echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20079echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20080if test "$ac_cv_search_pthread_mutex_lock" != no; then
20081 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000020082
John Criswell40468462004-09-24 21:19:06 +000020083cat >>confdefs.h <<\_ACEOF
20084#define HAVE_PTHREAD_MUTEX_LOCK 1
20085_ACEOF
20086
20087fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000020088
Brian Gaekec9a410c2004-02-23 21:30:37 +000020089
John Criswell7a73b802003-06-30 21:59:07 +000020090echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20091echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20092if test "${ac_cv_header_stdc+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020096/* confdefs.h. */
20097_ACEOF
20098cat confdefs.h >>conftest.$ac_ext
20099cat >>conftest.$ac_ext <<_ACEOF
20100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020101#include <stdlib.h>
20102#include <stdarg.h>
20103#include <string.h>
20104#include <float.h>
20105
John Criswell0c38eaf2003-09-10 15:17:25 +000020106int
20107main ()
20108{
20109
20110 ;
20111 return 0;
20112}
John Criswell7a73b802003-06-30 21:59:07 +000020113_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020114rm -f conftest.$ac_objext
20115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020116 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020122 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020123 { ac_try='test -z "$ac_c_werror_flag"
20124 || test ! -s conftest.err'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000020131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20133 ac_status=$?
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020136 ac_cv_header_stdc=yes
20137else
20138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020139sed 's/^/| /' conftest.$ac_ext >&5
20140
20141ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000020142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020144
20145if test $ac_cv_header_stdc = yes; then
20146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020153#include <string.h>
20154
20155_ACEOF
20156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020157 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020158 :
20159else
20160 ac_cv_header_stdc=no
20161fi
20162rm -f conftest*
20163
20164fi
20165
20166if test $ac_cv_header_stdc = yes; then
20167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20168 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020174#include <stdlib.h>
20175
20176_ACEOF
20177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020178 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020179 :
20180else
20181 ac_cv_header_stdc=no
20182fi
20183rm -f conftest*
20184
20185fi
20186
20187if test $ac_cv_header_stdc = yes; then
20188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20189 if test "$cross_compiling" = yes; then
20190 :
20191else
20192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020193/* confdefs.h. */
20194_ACEOF
20195cat confdefs.h >>conftest.$ac_ext
20196cat >>conftest.$ac_ext <<_ACEOF
20197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020198#include <ctype.h>
20199#if ((' ' & 0x0FF) == 0x020)
20200# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20201# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20202#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020203# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020204 (('a' <= (c) && (c) <= 'i') \
20205 || ('j' <= (c) && (c) <= 'r') \
20206 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000020207# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20208#endif
20209
20210#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20211int
20212main ()
20213{
20214 int i;
20215 for (i = 0; i < 256; i++)
20216 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000020217 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000020218 exit(2);
20219 exit (0);
20220}
20221_ACEOF
20222rm -f conftest$ac_exeext
20223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224 (eval $ac_link) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; }; then
20233 :
20234else
20235 echo "$as_me: program exited with status $ac_status" >&5
20236echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020237sed 's/^/| /' conftest.$ac_ext >&5
20238
John Criswell7a73b802003-06-30 21:59:07 +000020239( exit $ac_status )
20240ac_cv_header_stdc=no
20241fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020243fi
20244fi
20245fi
20246echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20247echo "${ECHO_T}$ac_cv_header_stdc" >&6
20248if test $ac_cv_header_stdc = yes; then
20249
20250cat >>confdefs.h <<\_ACEOF
20251#define STDC_HEADERS 1
20252_ACEOF
20253
20254fi
20255
20256echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20257echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20258if test "${ac_cv_header_sys_wait_h+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260else
20261 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020262/* confdefs.h. */
20263_ACEOF
20264cat confdefs.h >>conftest.$ac_ext
20265cat >>conftest.$ac_ext <<_ACEOF
20266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020267#include <sys/types.h>
20268#include <sys/wait.h>
20269#ifndef WEXITSTATUS
20270# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20271#endif
20272#ifndef WIFEXITED
20273# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20274#endif
20275
John Criswell7a73b802003-06-30 21:59:07 +000020276int
20277main ()
20278{
20279 int s;
20280 wait (&s);
20281 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20282 ;
20283 return 0;
20284}
20285_ACEOF
20286rm -f conftest.$ac_objext
20287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020288 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020290 grep -v '^ *+' conftest.er1 >conftest.err
20291 rm -f conftest.er1
20292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 { ac_try='test -z "$ac_c_werror_flag"
20296 || test ! -s conftest.err'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } &&
20302 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_header_sys_wait_h=yes
20309else
20310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020311sed 's/^/| /' conftest.$ac_ext >&5
20312
John Criswell7a73b802003-06-30 21:59:07 +000020313ac_cv_header_sys_wait_h=no
20314fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020316fi
20317echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20318echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20319if test $ac_cv_header_sys_wait_h = yes; then
20320
20321cat >>confdefs.h <<\_ACEOF
20322#define HAVE_SYS_WAIT_H 1
20323_ACEOF
20324
20325fi
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
Brian Gaeke26be9c52004-01-13 06:43:16 +000020336
Brian Gaekef5261472004-02-20 06:40:57 +000020337
John Criswellb2815e02004-05-27 20:40:39 +000020338
20339for 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 +000020340do
20341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20342if eval "test \"\${$as_ac_Header+set}\" = set"; then
20343 echo "$as_me:$LINENO: checking for $ac_header" >&5
20344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20345if eval "test \"\${$as_ac_Header+set}\" = set"; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347fi
20348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20350else
20351 # Is the header compilable?
20352echo "$as_me:$LINENO: checking $ac_header usability" >&5
20353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20354cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020355/* confdefs.h. */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020360$ac_includes_default
20361#include <$ac_header>
20362_ACEOF
20363rm -f conftest.$ac_objext
20364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020365 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372 { ac_try='test -z "$ac_c_werror_flag"
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } &&
20379 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; }; then
20385 ac_header_compiler=yes
20386else
20387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020388sed 's/^/| /' conftest.$ac_ext >&5
20389
John Criswell7a73b802003-06-30 21:59:07 +000020390ac_header_compiler=no
20391fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020393echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20394echo "${ECHO_T}$ac_header_compiler" >&6
20395
20396# Is the header present?
20397echo "$as_me:$LINENO: checking $ac_header presence" >&5
20398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20399cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020400/* confdefs.h. */
20401_ACEOF
20402cat confdefs.h >>conftest.$ac_ext
20403cat >>conftest.$ac_ext <<_ACEOF
20404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020405#include <$ac_header>
20406_ACEOF
20407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20409 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020410 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020411 rm -f conftest.er1
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } >/dev/null; then
20415 if test -s conftest.err; then
20416 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000020418 else
20419 ac_cpp_err=
20420 fi
20421else
20422 ac_cpp_err=yes
20423fi
20424if test -z "$ac_cpp_err"; then
20425 ac_header_preproc=yes
20426else
20427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020428sed 's/^/| /' conftest.$ac_ext >&5
20429
John Criswell7a73b802003-06-30 21:59:07 +000020430 ac_header_preproc=no
20431fi
20432rm -f conftest.err conftest.$ac_ext
20433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20434echo "${ECHO_T}$ac_header_preproc" >&6
20435
20436# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20438 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000020439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20443 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020444 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020445 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020458 (
20459 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020460## ----------------------------------- ##
20461## Report this to llvmbugs@cs.uiuc.edu ##
20462## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000020463_ASBOX
20464 ) |
20465 sed "s/^/$as_me: WARNING: /" >&2
20466 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020467esac
20468echo "$as_me:$LINENO: checking for $ac_header" >&5
20469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20470if eval "test \"\${$as_ac_Header+set}\" = set"; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20472else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020473 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000020474fi
20475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20477
20478fi
20479if test `eval echo '${'$as_ac_Header'}'` = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20482_ACEOF
20483
20484fi
20485
20486done
20487
20488
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020489if test "${ac_cv_header_sys_types_h+set}" = set; then
20490 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20491echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20492if test "${ac_cv_header_sys_types_h+set}" = set; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20494fi
20495echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20496echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20497else
20498 # Is the header compilable?
20499echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20500echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20501cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020502/* confdefs.h. */
20503_ACEOF
20504cat confdefs.h >>conftest.$ac_ext
20505cat >>conftest.$ac_ext <<_ACEOF
20506/* end confdefs.h. */
20507$ac_includes_default
20508#include <sys/types.h>
20509_ACEOF
20510rm -f conftest.$ac_objext
20511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020512 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_header_compiler=yes
20533else
20534 echo "$as_me: failed program was:" >&5
20535sed 's/^/| /' conftest.$ac_ext >&5
20536
20537ac_header_compiler=no
20538fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20541echo "${ECHO_T}$ac_header_compiler" >&6
20542
20543# Is the header present?
20544echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20545echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20546cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552#include <sys/types.h>
20553_ACEOF
20554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20556 ac_status=$?
20557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } >/dev/null; then
20562 if test -s conftest.err; then
20563 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020565 else
20566 ac_cpp_err=
20567 fi
20568else
20569 ac_cpp_err=yes
20570fi
20571if test -z "$ac_cpp_err"; then
20572 ac_header_preproc=yes
20573else
20574 echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_header_preproc=no
20578fi
20579rm -f conftest.err conftest.$ac_ext
20580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20581echo "${ECHO_T}$ac_header_preproc" >&6
20582
20583# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20585 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020586 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20587echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020588 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20589echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20590 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020591 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020592 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020593 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20594echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020595 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20596echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20598echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20600echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020601 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20602echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020603 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20604echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020605 (
20606 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020607## ----------------------------------- ##
20608## Report this to llvmbugs@cs.uiuc.edu ##
20609## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020610_ASBOX
20611 ) |
20612 sed "s/^/$as_me: WARNING: /" >&2
20613 ;;
20614esac
20615echo "$as_me:$LINENO: checking for sys/types.h" >&5
20616echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20617if test "${ac_cv_header_sys_types_h+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619else
20620 ac_cv_header_sys_types_h=$ac_header_preproc
20621fi
20622echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20623echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20624
20625fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020626
20627
20628if test "${ac_cv_header_inttypes_h+set}" = set; then
20629 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20630echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20631if test "${ac_cv_header_inttypes_h+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633fi
20634echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20635echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20636else
20637 # Is the header compilable?
20638echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20639echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20640cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h. */
20646$ac_includes_default
20647#include <inttypes.h>
20648_ACEOF
20649rm -f conftest.$ac_objext
20650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020651 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020658 { ac_try='test -z "$ac_c_werror_flag"
20659 || test ! -s conftest.err'
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_header_compiler=yes
20672else
20673 echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676ac_header_compiler=no
20677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20680echo "${ECHO_T}$ac_header_compiler" >&6
20681
20682# Is the header present?
20683echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20684echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20685cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020686/* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
20691#include <inttypes.h>
20692_ACEOF
20693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20695 ac_status=$?
20696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } >/dev/null; then
20701 if test -s conftest.err; then
20702 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020704 else
20705 ac_cpp_err=
20706 fi
20707else
20708 ac_cpp_err=yes
20709fi
20710if test -z "$ac_cpp_err"; then
20711 ac_header_preproc=yes
20712else
20713 echo "$as_me: failed program was:" >&5
20714sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 ac_header_preproc=no
20717fi
20718rm -f conftest.err conftest.$ac_ext
20719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20720echo "${ECHO_T}$ac_header_preproc" >&6
20721
20722# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20724 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020725 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20726echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020727 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20728echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20729 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020730 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020731 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020732 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20733echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020734 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20735echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20736 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20737echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20739echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020740 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20741echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020742 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20743echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020744 (
20745 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020746## ----------------------------------- ##
20747## Report this to llvmbugs@cs.uiuc.edu ##
20748## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020749_ASBOX
20750 ) |
20751 sed "s/^/$as_me: WARNING: /" >&2
20752 ;;
20753esac
20754echo "$as_me:$LINENO: checking for inttypes.h" >&5
20755echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20756if test "${ac_cv_header_inttypes_h+set}" = set; then
20757 echo $ECHO_N "(cached) $ECHO_C" >&6
20758else
20759 ac_cv_header_inttypes_h=$ac_header_preproc
20760fi
20761echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20762echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20763
20764fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020765
20766
John Criswell7ed43ad2004-07-19 16:12:29 +000020767if test "${ac_cv_header_stdint_h+set}" = set; then
20768 echo "$as_me:$LINENO: checking for stdint.h" >&5
20769echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20770if test "${ac_cv_header_stdint_h+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20772fi
20773echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20774echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20775else
20776 # Is the header compilable?
20777echo "$as_me:$LINENO: checking stdint.h usability" >&5
20778echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20779cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
20785$ac_includes_default
20786#include <stdint.h>
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020790 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020797 { ac_try='test -z "$ac_c_werror_flag"
20798 || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_header_compiler=yes
20811else
20812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815ac_header_compiler=no
20816fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20819echo "${ECHO_T}$ac_header_compiler" >&6
20820
20821# Is the header present?
20822echo "$as_me:$LINENO: checking stdint.h presence" >&5
20823echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20824cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020825/* confdefs.h. */
20826_ACEOF
20827cat confdefs.h >>conftest.$ac_ext
20828cat >>conftest.$ac_ext <<_ACEOF
20829/* end confdefs.h. */
20830#include <stdint.h>
20831_ACEOF
20832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } >/dev/null; then
20840 if test -s conftest.err; then
20841 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020843 else
20844 ac_cpp_err=
20845 fi
20846else
20847 ac_cpp_err=yes
20848fi
20849if test -z "$ac_cpp_err"; then
20850 ac_header_preproc=yes
20851else
20852 echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 ac_header_preproc=no
20856fi
20857rm -f conftest.err conftest.$ac_ext
20858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20859echo "${ECHO_T}$ac_header_preproc" >&6
20860
20861# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20863 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020864 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20865echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020866 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20867echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20868 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020869 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020870 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020871 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20872echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020873 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20874echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20876echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20878echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020879 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20880echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020881 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20882echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020883 (
20884 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020885## ----------------------------------- ##
20886## Report this to llvmbugs@cs.uiuc.edu ##
20887## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020888_ASBOX
20889 ) |
20890 sed "s/^/$as_me: WARNING: /" >&2
20891 ;;
20892esac
20893echo "$as_me:$LINENO: checking for stdint.h" >&5
20894echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20895if test "${ac_cv_header_stdint_h+set}" = set; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897else
20898 ac_cv_header_stdint_h=$ac_header_preproc
20899fi
20900echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20901echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20902
20903fi
John Criswell7ed43ad2004-07-19 16:12:29 +000020904
20905
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020906
John Criswell7a73b802003-06-30 21:59:07 +000020907echo "$as_me:$LINENO: checking for pid_t" >&5
20908echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20909if test "${ac_cv_type_pid_t+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020918$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020919int
20920main ()
20921{
20922if ((pid_t *) 0)
20923 return 0;
20924if (sizeof (pid_t))
20925 return 0;
20926 ;
20927 return 0;
20928}
20929_ACEOF
20930rm -f conftest.$ac_objext
20931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020932 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020933 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020939 { ac_try='test -z "$ac_c_werror_flag"
20940 || test ! -s conftest.err'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_type_pid_t=yes
20953else
20954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020955sed 's/^/| /' conftest.$ac_ext >&5
20956
John Criswell7a73b802003-06-30 21:59:07 +000020957ac_cv_type_pid_t=no
20958fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020960fi
20961echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20962echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20963if test $ac_cv_type_pid_t = yes; then
20964 :
20965else
20966
20967cat >>confdefs.h <<_ACEOF
20968#define pid_t int
20969_ACEOF
20970
20971fi
20972
20973echo "$as_me:$LINENO: checking for size_t" >&5
20974echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20975if test "${ac_cv_type_size_t+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20977else
20978 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020979/* confdefs.h. */
20980_ACEOF
20981cat confdefs.h >>conftest.$ac_ext
20982cat >>conftest.$ac_ext <<_ACEOF
20983/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020984$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020985int
20986main ()
20987{
20988if ((size_t *) 0)
20989 return 0;
20990if (sizeof (size_t))
20991 return 0;
20992 ;
20993 return 0;
20994}
20995_ACEOF
20996rm -f conftest.$ac_objext
20997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020998 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021005 { ac_try='test -z "$ac_c_werror_flag"
21006 || test ! -s conftest.err'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014 (eval $ac_try) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); }; }; then
21018 ac_cv_type_size_t=yes
21019else
21020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021021sed 's/^/| /' conftest.$ac_ext >&5
21022
John Criswell7a73b802003-06-30 21:59:07 +000021023ac_cv_type_size_t=no
21024fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021026fi
21027echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21028echo "${ECHO_T}$ac_cv_type_size_t" >&6
21029if test $ac_cv_type_size_t = yes; then
21030 :
21031else
21032
21033cat >>confdefs.h <<_ACEOF
21034#define size_t unsigned
21035_ACEOF
21036
21037fi
21038
21039echo "$as_me:$LINENO: checking for int64_t" >&5
21040echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21041if test "${ac_cv_type_int64_t+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043else
21044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021045/* confdefs.h. */
21046_ACEOF
21047cat confdefs.h >>conftest.$ac_ext
21048cat >>conftest.$ac_ext <<_ACEOF
21049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021050$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021051int
21052main ()
21053{
21054if ((int64_t *) 0)
21055 return 0;
21056if (sizeof (int64_t))
21057 return 0;
21058 ;
21059 return 0;
21060}
21061_ACEOF
21062rm -f conftest.$ac_objext
21063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021064 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021071 { ac_try='test -z "$ac_c_werror_flag"
21072 || test ! -s conftest.err'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ac_cv_type_int64_t=yes
21085else
21086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021087sed 's/^/| /' conftest.$ac_ext >&5
21088
John Criswell7a73b802003-06-30 21:59:07 +000021089ac_cv_type_int64_t=no
21090fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021092fi
21093echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21094echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21095if test $ac_cv_type_int64_t = yes; then
21096
21097cat >>confdefs.h <<_ACEOF
21098#define HAVE_INT64_T 1
21099_ACEOF
21100
21101
21102else
21103 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21104echo "$as_me: error: Type int64_t required but not found" >&2;}
21105 { (exit 1); exit 1; }; }
21106fi
21107
21108echo "$as_me:$LINENO: checking for uint64_t" >&5
21109echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21110if test "${ac_cv_type_uint64_t+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112else
21113 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021114/* confdefs.h. */
21115_ACEOF
21116cat confdefs.h >>conftest.$ac_ext
21117cat >>conftest.$ac_ext <<_ACEOF
21118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021119$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021120int
21121main ()
21122{
21123if ((uint64_t *) 0)
21124 return 0;
21125if (sizeof (uint64_t))
21126 return 0;
21127 ;
21128 return 0;
21129}
21130_ACEOF
21131rm -f conftest.$ac_objext
21132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021133 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_type_uint64_t=yes
21154else
21155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021156sed 's/^/| /' conftest.$ac_ext >&5
21157
John Criswell7a73b802003-06-30 21:59:07 +000021158ac_cv_type_uint64_t=no
21159fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021161fi
21162echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21163echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21164if test $ac_cv_type_uint64_t = yes; then
21165
21166cat >>confdefs.h <<_ACEOF
21167#define HAVE_UINT64_T 1
21168_ACEOF
21169
21170
21171else
Misha Brukmanceca9042004-09-02 23:02:30 +000021172 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000021173echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21174if test "${ac_cv_type_u_int64_t+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000021178/* confdefs.h. */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h. */
21183$ac_includes_default
21184int
21185main ()
21186{
21187if ((u_int64_t *) 0)
21188 return 0;
21189if (sizeof (u_int64_t))
21190 return 0;
21191 ;
21192 return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext
21196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021197 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000021198 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000021202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021204 { ac_try='test -z "$ac_c_werror_flag"
21205 || test ! -s conftest.err'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000021212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 ac_cv_type_u_int64_t=yes
21218else
21219 echo "$as_me: failed program was:" >&5
21220sed 's/^/| /' conftest.$ac_ext >&5
21221
21222ac_cv_type_u_int64_t=no
21223fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000021225fi
21226echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21227echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21228if test $ac_cv_type_u_int64_t = yes; then
21229
21230cat >>confdefs.h <<_ACEOF
21231#define HAVE_U_INT64_T 1
21232_ACEOF
21233
21234
Misha Brukmanceca9042004-09-02 23:02:30 +000021235else
21236 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21237echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21238 { (exit 1); exit 1; }; }
21239fi
21240
John Criswell679ff312004-09-02 18:44:44 +000021241fi
21242
John Criswell7a73b802003-06-30 21:59:07 +000021243echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21244echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21245if test "${ac_cv_header_time+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021249/* confdefs.h. */
21250_ACEOF
21251cat confdefs.h >>conftest.$ac_ext
21252cat >>conftest.$ac_ext <<_ACEOF
21253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021254#include <sys/types.h>
21255#include <sys/time.h>
21256#include <time.h>
21257
John Criswell7a73b802003-06-30 21:59:07 +000021258int
21259main ()
21260{
21261if ((struct tm *) 0)
21262return 0;
21263 ;
21264 return 0;
21265}
21266_ACEOF
21267rm -f conftest.$ac_objext
21268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021269 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021271 grep -v '^ *+' conftest.er1 >conftest.err
21272 rm -f conftest.er1
21273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021276 { ac_try='test -z "$ac_c_werror_flag"
21277 || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21280 ac_status=$?
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_cv_header_time=yes
21290else
21291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021292sed 's/^/| /' conftest.$ac_ext >&5
21293
John Criswell7a73b802003-06-30 21:59:07 +000021294ac_cv_header_time=no
21295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021297fi
21298echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21299echo "${ECHO_T}$ac_cv_header_time" >&6
21300if test $ac_cv_header_time = yes; then
21301
21302cat >>confdefs.h <<\_ACEOF
21303#define TIME_WITH_SYS_TIME 1
21304_ACEOF
21305
21306fi
21307
21308echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21309echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21310if test "${ac_cv_struct_tm+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21312else
21313 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021319#include <sys/types.h>
21320#include <time.h>
21321
John Criswell7a73b802003-06-30 21:59:07 +000021322int
21323main ()
21324{
21325struct tm *tp; tp->tm_sec;
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext
21331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021332 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021333 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021339 { ac_try='test -z "$ac_c_werror_flag"
21340 || test ! -s conftest.err'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21349 ac_status=$?
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_struct_tm=time.h
21353else
21354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021355sed 's/^/| /' conftest.$ac_ext >&5
21356
John Criswell7a73b802003-06-30 21:59:07 +000021357ac_cv_struct_tm=sys/time.h
21358fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021360fi
21361echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21362echo "${ECHO_T}$ac_cv_struct_tm" >&6
21363if test $ac_cv_struct_tm = sys/time.h; then
21364
21365cat >>confdefs.h <<\_ACEOF
21366#define TM_IN_SYS_TIME 1
21367_ACEOF
21368
21369fi
21370
21371
John Criswella0137d32003-10-13 16:22:01 +000021372
Reid Spencer2706f8c2004-09-19 23:53:36 +000021373 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021374echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021375 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021376ac_cpp='$CPP $CPPFLAGS'
21377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379ac_compiler_gnu=$ac_cv_c_compiler_gnu
21380
Reid Spencer2706f8c2004-09-19 23:53:36 +000021381 if test "$cross_compiling" = yes; then
21382 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000021383else
21384 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000021385
21386 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000021387_ACEOF
21388cat confdefs.h >>conftest.$ac_ext
21389cat >>conftest.$ac_ext <<_ACEOF
21390/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000021391
John Criswella0137d32003-10-13 16:22:01 +000021392#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000021393#include <stdlib.h>
21394
John Criswella0137d32003-10-13 16:22:01 +000021395int
21396main ()
21397{
21398
Reid Spencer2706f8c2004-09-19 23:53:36 +000021399volatile double A, B;
21400char Buffer[100];
21401A = 1;
21402A /= 10.0;
21403sprintf(Buffer, "%a", A);
21404B = atof(Buffer);
21405if (A != B)
21406 return (1);
21407if (A != 0x1.999999999999ap-4)
21408 return (1);
21409return (0);
John Criswella0137d32003-10-13 16:22:01 +000021410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest$ac_exeext
21415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_c_printf_a=yes
21426else
21427 echo "$as_me: program exited with status $ac_status" >&5
21428echo "$as_me: failed program was:" >&5
21429sed 's/^/| /' conftest.$ac_ext >&5
21430
21431( exit $ac_status )
21432ac_c_printf_a=no
21433fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000021435fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021437ac_cpp='$CPP $CPPFLAGS'
21438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441
Reid Spencer2706f8c2004-09-19 23:53:36 +000021442 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021443echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021444 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000021445
21446cat >>confdefs.h <<\_ACEOF
21447#define HAVE_PRINTF_A 1
21448_ACEOF
21449
Reid Spencer2706f8c2004-09-19 23:53:36 +000021450 fi
John Criswella0137d32003-10-13 16:22:01 +000021451
21452
John Criswell0021c312004-02-13 21:57:29 +000021453echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21454echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21455if test "${ac_cv_c_bigendian+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457else
21458 # See if sys/param.h defines the BYTE_ORDER macro.
21459cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021460/* confdefs.h. */
21461_ACEOF
21462cat confdefs.h >>conftest.$ac_ext
21463cat >>conftest.$ac_ext <<_ACEOF
21464/* end confdefs.h. */
21465#include <sys/types.h>
21466#include <sys/param.h>
21467
21468int
21469main ()
21470{
21471#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21472 bogus endian macros
21473#endif
21474
21475 ;
21476 return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021481 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 # It does; now see whether it defined to BIG_ENDIAN or not.
21502cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021503/* confdefs.h. */
21504_ACEOF
21505cat confdefs.h >>conftest.$ac_ext
21506cat >>conftest.$ac_ext <<_ACEOF
21507/* end confdefs.h. */
21508#include <sys/types.h>
21509#include <sys/param.h>
21510
21511int
21512main ()
21513{
21514#if BYTE_ORDER != BIG_ENDIAN
21515 not big endian
21516#endif
21517
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021524 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 ac_cv_c_bigendian=yes
21545else
21546 echo "$as_me: failed program was:" >&5
21547sed 's/^/| /' conftest.$ac_ext >&5
21548
21549ac_cv_c_bigendian=no
21550fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021552else
21553 echo "$as_me: failed program was:" >&5
21554sed 's/^/| /' conftest.$ac_ext >&5
21555
21556# It does not; compile a test program.
21557if test "$cross_compiling" = yes; then
21558 # try to guess the endianness by grepping values into an object file
21559 ac_cv_c_bigendian=unknown
21560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021561/* confdefs.h. */
21562_ACEOF
21563cat confdefs.h >>conftest.$ac_ext
21564cat >>conftest.$ac_ext <<_ACEOF
21565/* end confdefs.h. */
21566short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21567short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21568void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21569short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21570short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21571void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21572int
21573main ()
21574{
21575 _ascii (); _ebcdic ();
21576 ;
21577 return 0;
21578}
21579_ACEOF
21580rm -f conftest.$ac_objext
21581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021582 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021589 { ac_try='test -z "$ac_c_werror_flag"
21590 || test ! -s conftest.err'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21603 ac_cv_c_bigendian=yes
21604fi
21605if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21606 if test "$ac_cv_c_bigendian" = unknown; then
21607 ac_cv_c_bigendian=no
21608 else
21609 # finding both strings is unlikely to happen, but who knows?
21610 ac_cv_c_bigendian=unknown
21611 fi
21612fi
21613else
21614 echo "$as_me: failed program was:" >&5
21615sed 's/^/| /' conftest.$ac_ext >&5
21616
21617fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021619else
21620 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
21626int
21627main ()
21628{
21629 /* Are we little or big endian? From Harbison&Steele. */
21630 union
21631 {
21632 long l;
21633 char c[sizeof (long)];
21634 } u;
21635 u.l = 1;
21636 exit (u.c[sizeof (long) - 1] == 1);
21637}
21638_ACEOF
21639rm -f conftest$ac_exeext
21640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21641 (eval $ac_link) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_c_bigendian=no
21651else
21652 echo "$as_me: program exited with status $ac_status" >&5
21653echo "$as_me: failed program was:" >&5
21654sed 's/^/| /' conftest.$ac_ext >&5
21655
21656( exit $ac_status )
21657ac_cv_c_bigendian=yes
21658fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021660fi
21661fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021663fi
21664echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21665echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21666case $ac_cv_c_bigendian in
21667 yes)
21668 ENDIAN=big
21669 ;;
21670 no)
21671 ENDIAN=little
21672 ;;
21673 *)
21674 { { echo "$as_me:$LINENO: error: unknown endianness
21675presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21676echo "$as_me: error: unknown endianness
21677presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21678 { (exit 1); exit 1; }; } ;;
21679esac
21680
21681
John Criswell7a73b802003-06-30 21:59:07 +000021682echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21683echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21684if test "${ac_cv_cxx_namespaces+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021687 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021688ac_cpp='$CXXCPP $CPPFLAGS'
21689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21692
21693 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021699namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021700int
21701main ()
21702{
21703using namespace Outer::Inner; return i;
21704 ;
21705 return 0;
21706}
21707_ACEOF
21708rm -f conftest.$ac_objext
21709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021710 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021717 { ac_try='test -z "$ac_cxx_werror_flag"
21718 || test ! -s conftest.err'
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; } &&
21724 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21727 ac_status=$?
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_cv_cxx_namespaces=yes
21731else
21732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021733sed 's/^/| /' conftest.$ac_ext >&5
21734
John Criswell7a73b802003-06-30 21:59:07 +000021735ac_cv_cxx_namespaces=no
21736fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021738 ac_ext=c
21739ac_cpp='$CPP $CPPFLAGS'
21740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743
21744
21745fi
21746echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21747echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21748if test "$ac_cv_cxx_namespaces" = yes; then
21749
21750cat >>confdefs.h <<\_ACEOF
21751#define HAVE_NAMESPACES
21752_ACEOF
21753
21754fi
21755
Brian Gaeke90583492003-11-10 03:06:28 +000021756echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21757echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21758if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760else
21761
John Criswell7a73b802003-06-30 21:59:07 +000021762 ac_ext=cc
21763ac_cpp='$CXXCPP $CPPFLAGS'
21764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21767
21768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021769/* confdefs.h. */
21770_ACEOF
21771cat confdefs.h >>conftest.$ac_ext
21772cat >>conftest.$ac_ext <<_ACEOF
21773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021774#include <ext/hash_map>
21775#ifdef HAVE_NAMESPACES
21776using namespace std;
21777#endif
John Criswell7a73b802003-06-30 21:59:07 +000021778int
21779main ()
21780{
Brian Gaeke90583492003-11-10 03:06:28 +000021781hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021782 ;
21783 return 0;
21784}
21785_ACEOF
21786rm -f conftest.$ac_objext
21787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021788 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021795 { ac_try='test -z "$ac_cxx_werror_flag"
21796 || test ! -s conftest.err'
21797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; } &&
21802 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021808 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021809else
21810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021811sed 's/^/| /' conftest.$ac_ext >&5
21812
Brian Gaeke90583492003-11-10 03:06:28 +000021813ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021814fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021816 ac_ext=c
21817ac_cpp='$CPP $CPPFLAGS'
21818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820ac_compiler_gnu=$ac_cv_c_compiler_gnu
21821
John Criswell7a73b802003-06-30 21:59:07 +000021822fi
Brian Gaeke90583492003-11-10 03:06:28 +000021823echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21824echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021825 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21826 then
John Criswell9f011862004-09-24 18:28:00 +000021827
21828cat >>confdefs.h <<\_ACEOF
21829#define HAVE_STD_EXT_HASH_MAP 1
21830_ACEOF
21831
21832 else
21833
21834cat >>confdefs.h <<\_ACEOF
21835#define HAVE_STD_EXT_HASH_MAP 0
21836_ACEOF
21837
Brian Gaeke90583492003-11-10 03:06:28 +000021838 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021839
Brian Gaeke90583492003-11-10 03:06:28 +000021840 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21841echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21842if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844else
21845
Brian Gaeke90583492003-11-10 03:06:28 +000021846 ac_ext=cc
21847ac_cpp='$CXXCPP $CPPFLAGS'
21848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21851
21852 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
21858#include <ext/hash_map>
21859#ifdef HAVE_NAMESPACES
21860using namespace __gnu_cxx;
21861#endif
21862int
21863main ()
21864{
21865hash_map<int,int> t;
21866 ;
21867 return 0;
21868}
21869_ACEOF
21870rm -f conftest.$ac_objext
21871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021872 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021874 grep -v '^ *+' conftest.er1 >conftest.err
21875 rm -f conftest.er1
21876 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021879 { ac_try='test -z "$ac_cxx_werror_flag"
21880 || test ! -s conftest.err'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; } &&
21886 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_cv_cxx_have_gnu_ext_hash_map=yes
21893else
21894 echo "$as_me: failed program was:" >&5
21895sed 's/^/| /' conftest.$ac_ext >&5
21896
21897ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021898fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021900 ac_ext=c
21901ac_cpp='$CPP $CPPFLAGS'
21902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904ac_compiler_gnu=$ac_cv_c_compiler_gnu
21905
21906fi
21907echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21908echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021909 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21910 then
John Criswell9f011862004-09-24 18:28:00 +000021911
21912cat >>confdefs.h <<\_ACEOF
21913#define HAVE_GNU_EXT_HASH_MAP 1
21914_ACEOF
21915
21916 else
21917
21918cat >>confdefs.h <<\_ACEOF
21919#define HAVE_GNU_EXT_HASH_MAP 0
21920_ACEOF
21921
Brian Gaeke90583492003-11-10 03:06:28 +000021922 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021923
Brian Gaeke90583492003-11-10 03:06:28 +000021924 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21925echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21926if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928else
John Criswell7a73b802003-06-30 21:59:07 +000021929
Brian Gaeke90583492003-11-10 03:06:28 +000021930 ac_ext=cc
21931ac_cpp='$CXXCPP $CPPFLAGS'
21932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21935
21936 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021937/* confdefs.h. */
21938_ACEOF
21939cat confdefs.h >>conftest.$ac_ext
21940cat >>conftest.$ac_ext <<_ACEOF
21941/* end confdefs.h. */
21942#include <hash_map>
21943int
21944main ()
21945{
21946hash_map<int,int> t;
21947 ;
21948 return 0;
21949}
21950_ACEOF
21951rm -f conftest.$ac_objext
21952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021953 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021960 { ac_try='test -z "$ac_cxx_werror_flag"
21961 || test ! -s conftest.err'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; } &&
21967 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 ac_cv_cxx_have_global_hash_map=yes
21974else
21975 echo "$as_me: failed program was:" >&5
21976sed 's/^/| /' conftest.$ac_ext >&5
21977
21978ac_cv_cxx_have_global_hash_map=no
21979fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021981 ac_ext=c
21982ac_cpp='$CPP $CPPFLAGS'
21983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21985ac_compiler_gnu=$ac_cv_c_compiler_gnu
21986
21987fi
21988echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21989echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021990 if test "$ac_cv_cxx_have_global_hash_map" = yes
21991 then
John Criswell9f011862004-09-24 18:28:00 +000021992
21993cat >>confdefs.h <<\_ACEOF
21994#define HAVE_GLOBAL_HASH_MAP 1
21995_ACEOF
21996
21997 else
21998
21999cat >>confdefs.h <<\_ACEOF
22000#define HAVE_GLOBAL_HASH_MAP 0
22001_ACEOF
22002
Brian Gaeke90583492003-11-10 03:06:28 +000022003 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022004
Brian Gaeke90583492003-11-10 03:06:28 +000022005echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22006echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22007if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000022008 echo $ECHO_N "(cached) $ECHO_C" >&6
22009else
22010
John Criswell7a73b802003-06-30 21:59:07 +000022011 ac_ext=cc
22012ac_cpp='$CXXCPP $CPPFLAGS'
22013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22016
22017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022018/* confdefs.h. */
22019_ACEOF
22020cat confdefs.h >>conftest.$ac_ext
22021cat >>conftest.$ac_ext <<_ACEOF
22022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022023#include <ext/hash_set>
22024#ifdef HAVE_NAMESPACES
22025using namespace std;
22026#endif
John Criswell7a73b802003-06-30 21:59:07 +000022027int
22028main ()
22029{
Brian Gaeke90583492003-11-10 03:06:28 +000022030hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000022031 ;
22032 return 0;
22033}
22034_ACEOF
22035rm -f conftest.$ac_objext
22036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022037 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022038 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022039 grep -v '^ *+' conftest.er1 >conftest.err
22040 rm -f conftest.er1
22041 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022044 { ac_try='test -z "$ac_cxx_werror_flag"
22045 || test ! -s conftest.err'
22046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047 (eval $ac_try) 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022057 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022058else
22059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022060sed 's/^/| /' conftest.$ac_ext >&5
22061
Brian Gaeke90583492003-11-10 03:06:28 +000022062ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022063fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022065 ac_ext=c
22066ac_cpp='$CPP $CPPFLAGS'
22067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069ac_compiler_gnu=$ac_cv_c_compiler_gnu
22070
22071fi
22072echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22073echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022074 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22075 then
John Criswell9f011862004-09-24 18:28:00 +000022076
22077cat >>confdefs.h <<\_ACEOF
22078#define HAVE_STD_EXT_HASH_SET 1
22079_ACEOF
22080
22081 else
22082
22083cat >>confdefs.h <<\_ACEOF
22084#define HAVE_STD_EXT_HASH_SET 0
22085_ACEOF
22086
Brian Gaeke90583492003-11-10 03:06:28 +000022087 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022088
Brian Gaeke90583492003-11-10 03:06:28 +000022089 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22090echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22091if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22093else
22094
Brian Gaeke90583492003-11-10 03:06:28 +000022095 ac_ext=cc
22096ac_cpp='$CXXCPP $CPPFLAGS'
22097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22100
John Criswell7a73b802003-06-30 21:59:07 +000022101 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022107#include <ext/hash_set>
22108#ifdef HAVE_NAMESPACES
22109using namespace __gnu_cxx;
22110#endif
John Criswell7a73b802003-06-30 21:59:07 +000022111int
22112main ()
22113{
Brian Gaeke90583492003-11-10 03:06:28 +000022114hash_set<int> t;
22115 ;
22116 return 0;
22117}
22118_ACEOF
22119rm -f conftest.$ac_objext
22120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022121 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000022122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022123 grep -v '^ *+' conftest.er1 >conftest.err
22124 rm -f conftest.er1
22125 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000022126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022128 { ac_try='test -z "$ac_cxx_werror_flag"
22129 || test ! -s conftest.err'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; } &&
22135 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000022136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22138 ac_status=$?
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22141 ac_cv_cxx_have_gnu_ext_hash_set=yes
22142else
22143 echo "$as_me: failed program was:" >&5
22144sed 's/^/| /' conftest.$ac_ext >&5
22145
22146ac_cv_cxx_have_gnu_ext_hash_set=no
22147fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022149 ac_ext=c
22150ac_cpp='$CPP $CPPFLAGS'
22151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22153ac_compiler_gnu=$ac_cv_c_compiler_gnu
22154
22155fi
22156echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22157echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022158 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22159 then
John Criswell9f011862004-09-24 18:28:00 +000022160
22161cat >>confdefs.h <<\_ACEOF
22162#define HAVE_GNU_EXT_HASH_SET 1
22163_ACEOF
22164
22165 else
22166
22167cat >>confdefs.h <<\_ACEOF
22168#define HAVE_GNU_EXT_HASH_SET 0
22169_ACEOF
22170
Brian Gaeke90583492003-11-10 03:06:28 +000022171 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022172
Brian Gaeke90583492003-11-10 03:06:28 +000022173 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22174echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22175if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177else
22178
Brian Gaeke90583492003-11-10 03:06:28 +000022179 ac_ext=cc
22180ac_cpp='$CXXCPP $CPPFLAGS'
22181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22184
22185 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000022186/* confdefs.h. */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h. */
22191#include <hash_set>
22192int
22193main ()
22194{
John Criswell7a73b802003-06-30 21:59:07 +000022195hash_set<int> t; return 0;
22196 ;
22197 return 0;
22198}
22199_ACEOF
22200rm -f conftest.$ac_objext
22201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022202 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022209 { ac_try='test -z "$ac_cxx_werror_flag"
22210 || test ! -s conftest.err'
22211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212 (eval $ac_try) 2>&5
22213 ac_status=$?
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); }; } &&
22216 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218 (eval $ac_try) 2>&5
22219 ac_status=$?
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022222 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022223else
22224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022225sed 's/^/| /' conftest.$ac_ext >&5
22226
Brian Gaeke90583492003-11-10 03:06:28 +000022227ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022230 ac_ext=c
22231ac_cpp='$CPP $CPPFLAGS'
22232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22234ac_compiler_gnu=$ac_cv_c_compiler_gnu
22235
John Criswell7a73b802003-06-30 21:59:07 +000022236fi
Brian Gaeke90583492003-11-10 03:06:28 +000022237echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22238echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022239 if test "$ac_cv_cxx_have_global_hash_set" = yes
22240 then
John Criswell9f011862004-09-24 18:28:00 +000022241
22242cat >>confdefs.h <<\_ACEOF
22243#define HAVE_GLOBAL_HASH_SET 1
22244_ACEOF
22245
22246 else
22247
22248cat >>confdefs.h <<\_ACEOF
22249#define HAVE_GLOBAL_HASH_SET 0
22250_ACEOF
22251
Brian Gaeke90583492003-11-10 03:06:28 +000022252 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022253
John Criswell7a73b802003-06-30 21:59:07 +000022254echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22255echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22256if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258else
22259
John Criswell7a73b802003-06-30 21:59:07 +000022260 ac_ext=cc
22261ac_cpp='$CXXCPP $CPPFLAGS'
22262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22265
22266 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022267/* confdefs.h. */
22268_ACEOF
22269cat confdefs.h >>conftest.$ac_ext
22270cat >>conftest.$ac_ext <<_ACEOF
22271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022272#include <iterator>
22273#ifdef HAVE_NAMESPACES
22274using namespace std;
22275#endif
John Criswell7a73b802003-06-30 21:59:07 +000022276int
22277main ()
22278{
22279iterator<int,int,int> t; return 0;
22280 ;
22281 return 0;
22282}
22283_ACEOF
22284rm -f conftest.$ac_objext
22285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022286 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022288 grep -v '^ *+' conftest.er1 >conftest.err
22289 rm -f conftest.er1
22290 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022293 { ac_try='test -z "$ac_cxx_werror_flag"
22294 || test ! -s conftest.err'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; } &&
22300 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; }; then
22306 ac_cv_cxx_have_std_iterator=yes
22307else
22308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022309sed 's/^/| /' conftest.$ac_ext >&5
22310
John Criswell7a73b802003-06-30 21:59:07 +000022311ac_cv_cxx_have_std_iterator=no
22312fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022314 ac_ext=c
22315ac_cpp='$CPP $CPPFLAGS'
22316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22318ac_compiler_gnu=$ac_cv_c_compiler_gnu
22319
22320
22321fi
22322echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22323echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022324if test "$ac_cv_cxx_have_std_iterator" = yes
22325then
John Criswell40468462004-09-24 21:19:06 +000022326
22327cat >>confdefs.h <<\_ACEOF
22328#define HAVE_STD_ITERATOR 1
22329_ACEOF
22330
22331else
22332
22333cat >>confdefs.h <<\_ACEOF
22334#define HAVE_STD_ITERATOR 0
22335_ACEOF
22336
John Criswell7a73b802003-06-30 21:59:07 +000022337fi
22338
22339echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22340echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22341if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22343else
22344
John Criswell7a73b802003-06-30 21:59:07 +000022345 ac_ext=cc
22346ac_cpp='$CXXCPP $CPPFLAGS'
22347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22350
22351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022352/* confdefs.h. */
22353_ACEOF
22354cat confdefs.h >>conftest.$ac_ext
22355cat >>conftest.$ac_ext <<_ACEOF
22356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022357#include <iterator>
22358#ifdef HAVE_NAMESPACES
22359using namespace std;
22360#endif
John Criswell7a73b802003-06-30 21:59:07 +000022361int
22362main ()
22363{
John Criswellc78022e2003-07-29 19:11:58 +000022364bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022365 ;
22366 return 0;
22367}
22368_ACEOF
22369rm -f conftest.$ac_objext
22370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373 grep -v '^ *+' conftest.er1 >conftest.err
22374 rm -f conftest.er1
22375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022378 { ac_try='test -z "$ac_cxx_werror_flag"
22379 || test ! -s conftest.err'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; } &&
22385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; }; then
22391 ac_cv_cxx_have_bi_iterator=yes
22392else
22393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022394sed 's/^/| /' conftest.$ac_ext >&5
22395
John Criswell7a73b802003-06-30 21:59:07 +000022396ac_cv_cxx_have_bi_iterator=no
22397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022399 ac_ext=c
22400ac_cpp='$CPP $CPPFLAGS'
22401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22403ac_compiler_gnu=$ac_cv_c_compiler_gnu
22404
22405
22406fi
22407echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22408echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022409if test "$ac_cv_cxx_have_bi_iterator" = yes
22410then
John Criswell40468462004-09-24 21:19:06 +000022411
22412cat >>confdefs.h <<\_ACEOF
22413#define HAVE_BI_ITERATOR 1
22414_ACEOF
22415
22416else
22417
22418cat >>confdefs.h <<\_ACEOF
22419#define HAVE_BI_ITERATOR 0
22420_ACEOF
22421
John Criswell7a73b802003-06-30 21:59:07 +000022422fi
22423
22424echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22425echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22426if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22427 echo $ECHO_N "(cached) $ECHO_C" >&6
22428else
22429
John Criswell7a73b802003-06-30 21:59:07 +000022430 ac_ext=cc
22431ac_cpp='$CXXCPP $CPPFLAGS'
22432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22435
22436 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022437/* confdefs.h. */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022442#include <iterator>
22443#ifdef HAVE_NAMESPACES
22444using namespace std;
22445#endif
John Criswell7a73b802003-06-30 21:59:07 +000022446int
22447main ()
22448{
John Criswellc78022e2003-07-29 19:11:58 +000022449forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022450 ;
22451 return 0;
22452}
22453_ACEOF
22454rm -f conftest.$ac_objext
22455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022456 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022458 grep -v '^ *+' conftest.er1 >conftest.err
22459 rm -f conftest.er1
22460 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022463 { ac_try='test -z "$ac_cxx_werror_flag"
22464 || test ! -s conftest.err'
22465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); }; } &&
22470 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 ac_cv_cxx_have_fwd_iterator=yes
22477else
22478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022479sed 's/^/| /' conftest.$ac_ext >&5
22480
John Criswell7a73b802003-06-30 21:59:07 +000022481ac_cv_cxx_have_fwd_iterator=no
22482fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022484 ac_ext=c
22485ac_cpp='$CPP $CPPFLAGS'
22486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22488ac_compiler_gnu=$ac_cv_c_compiler_gnu
22489
22490
22491fi
22492echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22493echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022494if test "$ac_cv_cxx_have_fwd_iterator" = yes
22495then
John Criswell40468462004-09-24 21:19:06 +000022496
22497cat >>confdefs.h <<\_ACEOF
22498#define HAVE_FWD_ITERATOR 1
22499_ACEOF
22500
22501else
22502
22503cat >>confdefs.h <<\_ACEOF
22504#define HAVE_FWD_ITERATOR 0
22505_ACEOF
22506
John Criswell7a73b802003-06-30 21:59:07 +000022507fi
22508
22509
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022510
22511echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22512echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22513if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515else
22516 ac_ext=cc
22517ac_cpp='$CXXCPP $CPPFLAGS'
22518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22521
22522 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022523/* confdefs.h. */
22524_ACEOF
22525cat confdefs.h >>conftest.$ac_ext
22526cat >>conftest.$ac_ext <<_ACEOF
22527/* end confdefs.h. */
22528#include <math.h>
22529 int foo(float f) {return isnan(f);}
22530_ACEOF
22531rm -f conftest.$ac_objext
22532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022533 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022535 grep -v '^ *+' conftest.er1 >conftest.err
22536 rm -f conftest.er1
22537 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022540 { ac_try='test -z "$ac_cxx_werror_flag"
22541 || test ! -s conftest.err'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; } &&
22547 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; }; then
22553 ac_cv_func_isnan_in_math_h=yes
22554else
22555 echo "$as_me: failed program was:" >&5
22556sed 's/^/| /' conftest.$ac_ext >&5
22557
22558ac_cv_func_isnan_in_math_h=no
22559fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022561 ac_ext=c
22562ac_cpp='$CPP $CPPFLAGS'
22563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22565ac_compiler_gnu=$ac_cv_c_compiler_gnu
22566
22567fi
22568echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22569echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22570 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22571 then
22572
22573cat >>confdefs.h <<\_ACEOF
22574#define HAVE_ISNAN_IN_MATH_H 1
22575_ACEOF
22576
22577 fi
22578echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22579echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22580if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22582else
22583 ac_ext=cc
22584ac_cpp='$CXXCPP $CPPFLAGS'
22585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22588
22589 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022590/* confdefs.h. */
22591_ACEOF
22592cat confdefs.h >>conftest.$ac_ext
22593cat >>conftest.$ac_ext <<_ACEOF
22594/* end confdefs.h. */
22595#include <cmath>
22596 int foo(float f) {return isnan(f);}
22597_ACEOF
22598rm -f conftest.$ac_objext
22599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022607 { ac_try='test -z "$ac_cxx_werror_flag"
22608 || test ! -s conftest.err'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; } &&
22614 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; }; then
22620 ac_cv_func_isnan_in_cmath=yes
22621else
22622 echo "$as_me: failed program was:" >&5
22623sed 's/^/| /' conftest.$ac_ext >&5
22624
22625ac_cv_func_isnan_in_cmath=no
22626fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022628 ac_ext=c
22629ac_cpp='$CPP $CPPFLAGS'
22630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22632ac_compiler_gnu=$ac_cv_c_compiler_gnu
22633
22634fi
22635echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22636echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22637 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22638 then
22639
22640cat >>confdefs.h <<\_ACEOF
22641#define HAVE_ISNAN_IN_CMATH 1
22642_ACEOF
22643
22644 fi
22645echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22646echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22647if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649else
22650 ac_ext=cc
22651ac_cpp='$CXXCPP $CPPFLAGS'
22652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22655
22656 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022657/* confdefs.h. */
22658_ACEOF
22659cat confdefs.h >>conftest.$ac_ext
22660cat >>conftest.$ac_ext <<_ACEOF
22661/* end confdefs.h. */
22662#include <cmath>
22663 using std::isnan; int foo(float f) {return isnan(f);}
22664_ACEOF
22665rm -f conftest.$ac_objext
22666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022667 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +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
Brian Gaeke6f5b6212004-06-22 23:47:13 +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_cxx_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_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +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 ac_cv_func_std_isnan_in_cmath=yes
22688else
22689 echo "$as_me: failed program was:" >&5
22690sed 's/^/| /' conftest.$ac_ext >&5
22691
22692ac_cv_func_std_isnan_in_cmath=no
22693fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022695 ac_ext=c
22696ac_cpp='$CPP $CPPFLAGS'
22697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22699ac_compiler_gnu=$ac_cv_c_compiler_gnu
22700
22701fi
22702echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22703echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22704 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22705 then
22706
22707cat >>confdefs.h <<\_ACEOF
22708#define HAVE_STD_ISNAN_IN_CMATH 1
22709_ACEOF
22710
22711 fi
22712
22713
Brian Gaeke52a551d2004-07-21 03:14:12 +000022714echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22715echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22716if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22718else
22719 ac_ext=cc
22720ac_cpp='$CXXCPP $CPPFLAGS'
22721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22724
22725 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022726/* confdefs.h. */
22727_ACEOF
22728cat confdefs.h >>conftest.$ac_ext
22729cat >>conftest.$ac_ext <<_ACEOF
22730/* end confdefs.h. */
22731#include <math.h>
22732 int foo(float f) {return isinf(f);}
22733_ACEOF
22734rm -f conftest.$ac_objext
22735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022736 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 { ac_try='test -z "$ac_cxx_werror_flag"
22744 || test ! -s conftest.err'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22747 ac_status=$?
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; } &&
22750 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022751 { (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_func_isinf_in_math_h=yes
22757else
22758 echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761ac_cv_func_isinf_in_math_h=no
22762fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022764 ac_ext=c
22765ac_cpp='$CPP $CPPFLAGS'
22766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22768ac_compiler_gnu=$ac_cv_c_compiler_gnu
22769
22770fi
22771echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22772echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22773 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22774 then
22775
22776cat >>confdefs.h <<\_ACEOF
22777#define HAVE_ISINF_IN_MATH_H 1
22778_ACEOF
22779
22780 fi
22781echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22782echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22783if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785else
22786 ac_ext=cc
22787ac_cpp='$CXXCPP $CPPFLAGS'
22788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22791
22792 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022793/* confdefs.h. */
22794_ACEOF
22795cat confdefs.h >>conftest.$ac_ext
22796cat >>conftest.$ac_ext <<_ACEOF
22797/* end confdefs.h. */
22798#include <cmath>
22799 int foo(float f) {return isinf(f);}
22800_ACEOF
22801rm -f conftest.$ac_objext
22802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022803 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022810 { ac_try='test -z "$ac_cxx_werror_flag"
22811 || test ! -s conftest.err'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; } &&
22817 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 ac_cv_func_isinf_in_cmath=yes
22824else
22825 echo "$as_me: failed program was:" >&5
22826sed 's/^/| /' conftest.$ac_ext >&5
22827
22828ac_cv_func_isinf_in_cmath=no
22829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022831 ac_ext=c
22832ac_cpp='$CPP $CPPFLAGS'
22833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22835ac_compiler_gnu=$ac_cv_c_compiler_gnu
22836
22837fi
22838echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22839echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22840 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22841 then
22842
22843cat >>confdefs.h <<\_ACEOF
22844#define HAVE_ISINF_IN_CMATH 1
22845_ACEOF
22846
22847 fi
22848echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22849echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22850if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22852else
22853 ac_ext=cc
22854ac_cpp='$CXXCPP $CPPFLAGS'
22855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22858
22859 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022860/* confdefs.h. */
22861_ACEOF
22862cat confdefs.h >>conftest.$ac_ext
22863cat >>conftest.$ac_ext <<_ACEOF
22864/* end confdefs.h. */
22865#include <cmath>
22866 using std::isinf; int foo(float f) {return isinf(f);}
22867_ACEOF
22868rm -f conftest.$ac_objext
22869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022870 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022872 grep -v '^ *+' conftest.er1 >conftest.err
22873 rm -f conftest.er1
22874 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022877 { ac_try='test -z "$ac_cxx_werror_flag"
22878 || test ! -s conftest.err'
22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); }; } &&
22884 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 ac_cv_func_std_isinf_in_cmath=yes
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895ac_cv_func_std_isinf_in_cmath=no
22896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022898 ac_ext=c
22899ac_cpp='$CPP $CPPFLAGS'
22900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22902ac_compiler_gnu=$ac_cv_c_compiler_gnu
22903
22904fi
22905echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22906echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22907 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22908 then
22909
22910cat >>confdefs.h <<\_ACEOF
22911#define HAVE_STD_ISINF_IN_CMATH 1
22912_ACEOF
22913
22914 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022915echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22916echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22917if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22919else
22920 ac_ext=cc
22921ac_cpp='$CXXCPP $CPPFLAGS'
22922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22925
22926 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022927/* confdefs.h. */
22928_ACEOF
22929cat confdefs.h >>conftest.$ac_ext
22930cat >>conftest.$ac_ext <<_ACEOF
22931/* end confdefs.h. */
22932#include <ieeefp.h>
22933 int foo(float f) {return finite(f);}
22934_ACEOF
22935rm -f conftest.$ac_objext
22936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022937 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022944 { ac_try='test -z "$ac_cxx_werror_flag"
22945 || test ! -s conftest.err'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } &&
22951 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22954 ac_status=$?
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22957 ac_cv_func_finite_in_ieeefp_h=yes
22958else
22959 echo "$as_me: failed program was:" >&5
22960sed 's/^/| /' conftest.$ac_ext >&5
22961
22962ac_cv_func_finite_in_ieeefp_h=no
22963fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022965 ac_ext=c
22966ac_cpp='$CPP $CPPFLAGS'
22967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969ac_compiler_gnu=$ac_cv_c_compiler_gnu
22970
22971fi
22972echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22973echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22974 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22975 then
22976
22977cat >>confdefs.h <<\_ACEOF
22978#define HAVE_FINITE_IN_IEEEFP_H 1
22979_ACEOF
22980
22981 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022982
22983
John Criswell7a73b802003-06-30 21:59:07 +000022984# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22985# for constant arguments. Useless!
22986echo "$as_me:$LINENO: checking for working alloca.h" >&5
22987echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22988if test "${ac_cv_working_alloca_h+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990else
22991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022992/* confdefs.h. */
22993_ACEOF
22994cat confdefs.h >>conftest.$ac_ext
22995cat >>conftest.$ac_ext <<_ACEOF
22996/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022997#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022998int
22999main ()
23000{
23001char *p = (char *) alloca (2 * sizeof (int));
23002 ;
23003 return 0;
23004}
23005_ACEOF
23006rm -f conftest.$ac_objext conftest$ac_exeext
23007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023008 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023015 { ac_try='test -z "$ac_c_werror_flag"
23016 || test ! -s conftest.err'
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ac_cv_working_alloca_h=yes
23029else
23030 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023031sed 's/^/| /' conftest.$ac_ext >&5
23032
John Criswell7a73b802003-06-30 21:59:07 +000023033ac_cv_working_alloca_h=no
23034fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035rm -f conftest.err conftest.$ac_objext \
23036 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023037fi
23038echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23039echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23040if test $ac_cv_working_alloca_h = yes; then
23041
23042cat >>confdefs.h <<\_ACEOF
23043#define HAVE_ALLOCA_H 1
23044_ACEOF
23045
23046fi
23047
23048echo "$as_me:$LINENO: checking for alloca" >&5
23049echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23050if test "${ac_cv_func_alloca_works+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052else
23053 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023054/* confdefs.h. */
23055_ACEOF
23056cat confdefs.h >>conftest.$ac_ext
23057cat >>conftest.$ac_ext <<_ACEOF
23058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023059#ifdef __GNUC__
23060# define alloca __builtin_alloca
23061#else
23062# ifdef _MSC_VER
23063# include <malloc.h>
23064# define alloca _alloca
23065# else
23066# if HAVE_ALLOCA_H
23067# include <alloca.h>
23068# else
23069# ifdef _AIX
23070 #pragma alloca
23071# else
23072# ifndef alloca /* predefined by HP cc +Olibcalls */
23073char *alloca ();
23074# endif
23075# endif
23076# endif
23077# endif
23078#endif
23079
John Criswell7a73b802003-06-30 21:59:07 +000023080int
23081main ()
23082{
23083char *p = (char *) alloca (1);
23084 ;
23085 return 0;
23086}
23087_ACEOF
23088rm -f conftest.$ac_objext conftest$ac_exeext
23089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023090 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023092 grep -v '^ *+' conftest.er1 >conftest.err
23093 rm -f conftest.er1
23094 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023097 { ac_try='test -z "$ac_c_werror_flag"
23098 || test ! -s conftest.err'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; } &&
23104 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106 (eval $ac_try) 2>&5
23107 ac_status=$?
23108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); }; }; then
23110 ac_cv_func_alloca_works=yes
23111else
23112 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023113sed 's/^/| /' conftest.$ac_ext >&5
23114
John Criswell7a73b802003-06-30 21:59:07 +000023115ac_cv_func_alloca_works=no
23116fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023117rm -f conftest.err conftest.$ac_objext \
23118 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023119fi
23120echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23121echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23122
23123if test $ac_cv_func_alloca_works = yes; then
23124
23125cat >>confdefs.h <<\_ACEOF
23126#define HAVE_ALLOCA 1
23127_ACEOF
23128
23129else
23130 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23131# that cause trouble. Some versions do not even contain alloca or
23132# contain a buggy version. If you still want to use their alloca,
23133# use ar to extract alloca.o from them instead of compiling alloca.c.
23134
23135ALLOCA=alloca.$ac_objext
23136
23137cat >>confdefs.h <<\_ACEOF
23138#define C_ALLOCA 1
23139_ACEOF
23140
23141
23142echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23143echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23144if test "${ac_cv_os_cray+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23146else
23147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023148/* confdefs.h. */
23149_ACEOF
23150cat confdefs.h >>conftest.$ac_ext
23151cat >>conftest.$ac_ext <<_ACEOF
23152/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023153#if defined(CRAY) && ! defined(CRAY2)
23154webecray
23155#else
23156wenotbecray
23157#endif
23158
23159_ACEOF
23160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000023161 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023162 ac_cv_os_cray=yes
23163else
23164 ac_cv_os_cray=no
23165fi
23166rm -f conftest*
23167
23168fi
23169echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23170echo "${ECHO_T}$ac_cv_os_cray" >&6
23171if test $ac_cv_os_cray = yes; then
23172 for ac_func in _getb67 GETB67 getb67; do
23173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23174echo "$as_me:$LINENO: checking for $ac_func" >&5
23175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23176if eval "test \"\${$as_ac_var+set}\" = set"; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23178else
23179 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023180/* confdefs.h. */
23181_ACEOF
23182cat confdefs.h >>conftest.$ac_ext
23183cat >>conftest.$ac_ext <<_ACEOF
23184/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23187#define $ac_func innocuous_$ac_func
23188
John Criswell7a73b802003-06-30 21:59:07 +000023189/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023190 which can conflict with char $ac_func (); below.
23191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23192 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023193
John Criswell0c38eaf2003-09-10 15:17:25 +000023194#ifdef __STDC__
23195# include <limits.h>
23196#else
23197# include <assert.h>
23198#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023199
23200#undef $ac_func
23201
John Criswell7a73b802003-06-30 21:59:07 +000023202/* Override any gcc2 internal prototype to avoid an error. */
23203#ifdef __cplusplus
23204extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023205{
John Criswell7a73b802003-06-30 21:59:07 +000023206#endif
23207/* We use char because int might match the return type of a gcc2
23208 builtin and then its argument prototype would still apply. */
23209char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023210/* The GNU C library defines this for functions which it implements
23211 to always fail with ENOSYS. Some functions are actually named
23212 something starting with __ and the normal name is an alias. */
23213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23214choke me
23215#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023216char (*f) () = $ac_func;
23217#endif
23218#ifdef __cplusplus
23219}
John Criswell7a73b802003-06-30 21:59:07 +000023220#endif
23221
John Criswell0c38eaf2003-09-10 15:17:25 +000023222int
23223main ()
23224{
23225return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023226 ;
23227 return 0;
23228}
23229_ACEOF
23230rm -f conftest.$ac_objext conftest$ac_exeext
23231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023232 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023234 grep -v '^ *+' conftest.er1 >conftest.err
23235 rm -f conftest.er1
23236 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023239 { ac_try='test -z "$ac_c_werror_flag"
23240 || test ! -s conftest.err'
23241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242 (eval $ac_try) 2>&5
23243 ac_status=$?
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); }; } &&
23246 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248 (eval $ac_try) 2>&5
23249 ac_status=$?
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 eval "$as_ac_var=yes"
23253else
23254 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023255sed 's/^/| /' conftest.$ac_ext >&5
23256
John Criswell7a73b802003-06-30 21:59:07 +000023257eval "$as_ac_var=no"
23258fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023259rm -f conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023261fi
23262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23264if test `eval echo '${'$as_ac_var'}'` = yes; then
23265
23266cat >>confdefs.h <<_ACEOF
23267#define CRAY_STACKSEG_END $ac_func
23268_ACEOF
23269
23270 break
23271fi
23272
23273 done
23274fi
23275
23276echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23277echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23278if test "${ac_cv_c_stack_direction+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
23280else
23281 if test "$cross_compiling" = yes; then
23282 ac_cv_c_stack_direction=0
23283else
23284 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023285/* confdefs.h. */
23286_ACEOF
23287cat confdefs.h >>conftest.$ac_ext
23288cat >>conftest.$ac_ext <<_ACEOF
23289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023290int
23291find_stack_direction ()
23292{
23293 static char *addr = 0;
23294 auto char dummy;
23295 if (addr == 0)
23296 {
23297 addr = &dummy;
23298 return find_stack_direction ();
23299 }
23300 else
23301 return (&dummy > addr) ? 1 : -1;
23302}
23303
23304int
23305main ()
23306{
23307 exit (find_stack_direction () < 0);
23308}
23309_ACEOF
23310rm -f conftest$ac_exeext
23311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312 (eval $ac_link) 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 ac_cv_c_stack_direction=1
23322else
23323 echo "$as_me: program exited with status $ac_status" >&5
23324echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023325sed 's/^/| /' conftest.$ac_ext >&5
23326
John Criswell7a73b802003-06-30 21:59:07 +000023327( exit $ac_status )
23328ac_cv_c_stack_direction=-1
23329fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023331fi
23332fi
23333echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23334echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23335
23336cat >>confdefs.h <<_ACEOF
23337#define STACK_DIRECTION $ac_cv_c_stack_direction
23338_ACEOF
23339
23340
23341fi
23342
John Criswell7a73b802003-06-30 21:59:07 +000023343
23344
23345for ac_header in stdlib.h unistd.h
23346do
23347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23348if eval "test \"\${$as_ac_Header+set}\" = set"; then
23349 echo "$as_me:$LINENO: checking for $ac_header" >&5
23350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23351if eval "test \"\${$as_ac_Header+set}\" = set"; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23353fi
23354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23356else
23357 # Is the header compilable?
23358echo "$as_me:$LINENO: checking $ac_header usability" >&5
23359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23360cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023361/* confdefs.h. */
23362_ACEOF
23363cat confdefs.h >>conftest.$ac_ext
23364cat >>conftest.$ac_ext <<_ACEOF
23365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023366$ac_includes_default
23367#include <$ac_header>
23368_ACEOF
23369rm -f conftest.$ac_objext
23370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023373 grep -v '^ *+' conftest.er1 >conftest.err
23374 rm -f conftest.er1
23375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023378 { ac_try='test -z "$ac_c_werror_flag"
23379 || test ! -s conftest.err'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; } &&
23385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }; then
23391 ac_header_compiler=yes
23392else
23393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023394sed 's/^/| /' conftest.$ac_ext >&5
23395
John Criswell7a73b802003-06-30 21:59:07 +000023396ac_header_compiler=no
23397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23400echo "${ECHO_T}$ac_header_compiler" >&6
23401
23402# Is the header present?
23403echo "$as_me:$LINENO: checking $ac_header presence" >&5
23404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23405cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023406/* confdefs.h. */
23407_ACEOF
23408cat confdefs.h >>conftest.$ac_ext
23409cat >>conftest.$ac_ext <<_ACEOF
23410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023411#include <$ac_header>
23412_ACEOF
23413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23415 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000023416 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000023417 rm -f conftest.er1
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } >/dev/null; then
23421 if test -s conftest.err; then
23422 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000023423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000023424 else
23425 ac_cpp_err=
23426 fi
23427else
23428 ac_cpp_err=yes
23429fi
23430if test -z "$ac_cpp_err"; then
23431 ac_header_preproc=yes
23432else
23433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023434sed 's/^/| /' conftest.$ac_ext >&5
23435
John Criswell7a73b802003-06-30 21:59:07 +000023436 ac_header_preproc=no
23437fi
23438rm -f conftest.err conftest.$ac_ext
23439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23440echo "${ECHO_T}$ac_header_preproc" >&6
23441
23442# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23444 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000023445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23449 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000023450 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023451 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000023452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023464 (
23465 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000023466## ----------------------------------- ##
23467## Report this to llvmbugs@cs.uiuc.edu ##
23468## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000023469_ASBOX
23470 ) |
23471 sed "s/^/$as_me: WARNING: /" >&2
23472 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023473esac
23474echo "$as_me:$LINENO: checking for $ac_header" >&5
23475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23476if eval "test \"\${$as_ac_Header+set}\" = set"; then
23477 echo $ECHO_N "(cached) $ECHO_C" >&6
23478else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023479 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000023480fi
23481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23483
23484fi
23485if test `eval echo '${'$as_ac_Header'}'` = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23488_ACEOF
23489
23490fi
23491
23492done
23493
23494
23495for ac_func in getpagesize
23496do
23497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23498echo "$as_me:$LINENO: checking for $ac_func" >&5
23499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23500if eval "test \"\${$as_ac_var+set}\" = set"; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502else
23503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023504/* confdefs.h. */
23505_ACEOF
23506cat confdefs.h >>conftest.$ac_ext
23507cat >>conftest.$ac_ext <<_ACEOF
23508/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23511#define $ac_func innocuous_$ac_func
23512
John Criswell7a73b802003-06-30 21:59:07 +000023513/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023514 which can conflict with char $ac_func (); below.
23515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23516 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023517
John Criswell0c38eaf2003-09-10 15:17:25 +000023518#ifdef __STDC__
23519# include <limits.h>
23520#else
23521# include <assert.h>
23522#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023523
23524#undef $ac_func
23525
John Criswell7a73b802003-06-30 21:59:07 +000023526/* Override any gcc2 internal prototype to avoid an error. */
23527#ifdef __cplusplus
23528extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023529{
John Criswell7a73b802003-06-30 21:59:07 +000023530#endif
23531/* We use char because int might match the return type of a gcc2
23532 builtin and then its argument prototype would still apply. */
23533char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023534/* The GNU C library defines this for functions which it implements
23535 to always fail with ENOSYS. Some functions are actually named
23536 something starting with __ and the normal name is an alias. */
23537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23538choke me
23539#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023540char (*f) () = $ac_func;
23541#endif
23542#ifdef __cplusplus
23543}
John Criswell7a73b802003-06-30 21:59:07 +000023544#endif
23545
John Criswell0c38eaf2003-09-10 15:17:25 +000023546int
23547main ()
23548{
23549return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023550 ;
23551 return 0;
23552}
23553_ACEOF
23554rm -f conftest.$ac_objext conftest$ac_exeext
23555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023556 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023558 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1
23560 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023563 { ac_try='test -z "$ac_c_werror_flag"
23564 || test ! -s conftest.err'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } &&
23570 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; }; then
23576 eval "$as_ac_var=yes"
23577else
23578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023579sed 's/^/| /' conftest.$ac_ext >&5
23580
John Criswell7a73b802003-06-30 21:59:07 +000023581eval "$as_ac_var=no"
23582fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023583rm -f conftest.err conftest.$ac_objext \
23584 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023585fi
23586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23588if test `eval echo '${'$as_ac_var'}'` = yes; then
23589 cat >>confdefs.h <<_ACEOF
23590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23591_ACEOF
23592
23593fi
23594done
23595
23596echo "$as_me:$LINENO: checking for working mmap" >&5
23597echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23598if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600else
23601 if test "$cross_compiling" = yes; then
23602 ac_cv_func_mmap_fixed_mapped=no
23603else
23604 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023605/* confdefs.h. */
23606_ACEOF
23607cat confdefs.h >>conftest.$ac_ext
23608cat >>conftest.$ac_ext <<_ACEOF
23609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023610$ac_includes_default
23611/* malloc might have been renamed as rpl_malloc. */
23612#undef malloc
23613
23614/* Thanks to Mike Haertel and Jim Avera for this test.
23615 Here is a matrix of mmap possibilities:
23616 mmap private not fixed
23617 mmap private fixed at somewhere currently unmapped
23618 mmap private fixed at somewhere already mapped
23619 mmap shared not fixed
23620 mmap shared fixed at somewhere currently unmapped
23621 mmap shared fixed at somewhere already mapped
23622 For private mappings, we should verify that changes cannot be read()
23623 back from the file, nor mmap's back from the file at a different
23624 address. (There have been systems where private was not correctly
23625 implemented like the infamous i386 svr4.0, and systems where the
23626 VM page cache was not coherent with the file system buffer cache
23627 like early versions of FreeBSD and possibly contemporary NetBSD.)
23628 For shared mappings, we should conversely verify that changes get
23629 propagated back to all the places they're supposed to be.
23630
23631 Grep wants private fixed already mapped.
23632 The main things grep needs to know about mmap are:
23633 * does it exist and is it safe to write into the mmap'd area
23634 * how to use it (BSD variants) */
23635
23636#include <fcntl.h>
23637#include <sys/mman.h>
23638
23639#if !STDC_HEADERS && !HAVE_STDLIB_H
23640char *malloc ();
23641#endif
23642
23643/* This mess was copied from the GNU getpagesize.h. */
23644#if !HAVE_GETPAGESIZE
23645/* Assume that all systems that can run configure have sys/param.h. */
23646# if !HAVE_SYS_PARAM_H
23647# define HAVE_SYS_PARAM_H 1
23648# endif
23649
23650# ifdef _SC_PAGESIZE
23651# define getpagesize() sysconf(_SC_PAGESIZE)
23652# else /* no _SC_PAGESIZE */
23653# if HAVE_SYS_PARAM_H
23654# include <sys/param.h>
23655# ifdef EXEC_PAGESIZE
23656# define getpagesize() EXEC_PAGESIZE
23657# else /* no EXEC_PAGESIZE */
23658# ifdef NBPG
23659# define getpagesize() NBPG * CLSIZE
23660# ifndef CLSIZE
23661# define CLSIZE 1
23662# endif /* no CLSIZE */
23663# else /* no NBPG */
23664# ifdef NBPC
23665# define getpagesize() NBPC
23666# else /* no NBPC */
23667# ifdef PAGESIZE
23668# define getpagesize() PAGESIZE
23669# endif /* PAGESIZE */
23670# endif /* no NBPC */
23671# endif /* no NBPG */
23672# endif /* no EXEC_PAGESIZE */
23673# else /* no HAVE_SYS_PARAM_H */
23674# define getpagesize() 8192 /* punt totally */
23675# endif /* no HAVE_SYS_PARAM_H */
23676# endif /* no _SC_PAGESIZE */
23677
23678#endif /* no HAVE_GETPAGESIZE */
23679
23680int
23681main ()
23682{
23683 char *data, *data2, *data3;
23684 int i, pagesize;
23685 int fd;
23686
23687 pagesize = getpagesize ();
23688
23689 /* First, make a file with some known garbage in it. */
23690 data = (char *) malloc (pagesize);
23691 if (!data)
23692 exit (1);
23693 for (i = 0; i < pagesize; ++i)
23694 *(data + i) = rand ();
23695 umask (0);
23696 fd = creat ("conftest.mmap", 0600);
23697 if (fd < 0)
23698 exit (1);
23699 if (write (fd, data, pagesize) != pagesize)
23700 exit (1);
23701 close (fd);
23702
23703 /* Next, try to mmap the file at a fixed address which already has
23704 something else allocated at it. If we can, also make sure that
23705 we see the same garbage. */
23706 fd = open ("conftest.mmap", O_RDWR);
23707 if (fd < 0)
23708 exit (1);
23709 data2 = (char *) malloc (2 * pagesize);
23710 if (!data2)
23711 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023712 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023713 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023714 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023715 exit (1);
23716 for (i = 0; i < pagesize; ++i)
23717 if (*(data + i) != *(data2 + i))
23718 exit (1);
23719
23720 /* Finally, make sure that changes to the mapped area do not
23721 percolate back to the file as seen by read(). (This is a bug on
23722 some variants of i386 svr4.0.) */
23723 for (i = 0; i < pagesize; ++i)
23724 *(data2 + i) = *(data2 + i) + 1;
23725 data3 = (char *) malloc (pagesize);
23726 if (!data3)
23727 exit (1);
23728 if (read (fd, data3, pagesize) != pagesize)
23729 exit (1);
23730 for (i = 0; i < pagesize; ++i)
23731 if (*(data + i) != *(data3 + i))
23732 exit (1);
23733 close (fd);
23734 exit (0);
23735}
23736_ACEOF
23737rm -f conftest$ac_exeext
23738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23739 (eval $ac_link) 2>&5
23740 ac_status=$?
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744 (eval $ac_try) 2>&5
23745 ac_status=$?
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); }; }; then
23748 ac_cv_func_mmap_fixed_mapped=yes
23749else
23750 echo "$as_me: program exited with status $ac_status" >&5
23751echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023752sed 's/^/| /' conftest.$ac_ext >&5
23753
John Criswell7a73b802003-06-30 21:59:07 +000023754( exit $ac_status )
23755ac_cv_func_mmap_fixed_mapped=no
23756fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023757rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023758fi
23759fi
23760echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23761echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23762if test $ac_cv_func_mmap_fixed_mapped = yes; then
23763
23764cat >>confdefs.h <<\_ACEOF
23765#define HAVE_MMAP 1
23766_ACEOF
23767
23768fi
23769rm -f conftest.mmap
23770
Brian Gaeke26be9c52004-01-13 06:43:16 +000023771if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23772then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023773 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23774echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023775fi
John Criswell7a73b802003-06-30 21:59:07 +000023776echo "$as_me:$LINENO: checking for mmap of files" >&5
23777echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23778if test "${ac_cv_func_mmap_file+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23780else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023781 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023782ac_cpp='$CPP $CPPFLAGS'
23783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785ac_compiler_gnu=$ac_cv_c_compiler_gnu
23786
23787 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023788 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023789else
23790 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023791
Reid Spencer777ce172004-09-20 04:09:56 +000023792 /* confdefs.h. */
23793_ACEOF
23794cat confdefs.h >>conftest.$ac_ext
23795cat >>conftest.$ac_ext <<_ACEOF
23796/* end confdefs.h. */
23797
John Criswell7a73b802003-06-30 21:59:07 +000023798#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023799#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023800#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023801
23802int
23803main ()
23804{
John Criswell7a73b802003-06-30 21:59:07 +000023805
23806 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023807 fd = creat ("foo",0777);
23808 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23809 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023810 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023811 ;
23812 return 0;
23813}
John Criswell7a73b802003-06-30 21:59:07 +000023814_ACEOF
23815rm -f conftest$ac_exeext
23816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23817 (eval $ac_link) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825 (exit $ac_status); }; }; then
23826 ac_cv_func_mmap_file=yes
23827else
23828 echo "$as_me: program exited with status $ac_status" >&5
23829echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023830sed 's/^/| /' conftest.$ac_ext >&5
23831
John Criswell7a73b802003-06-30 21:59:07 +000023832( exit $ac_status )
23833ac_cv_func_mmap_file=no
23834fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023836fi
23837 ac_ext=c
23838ac_cpp='$CPP $CPPFLAGS'
23839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23841ac_compiler_gnu=$ac_cv_c_compiler_gnu
23842
23843
23844fi
23845echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23846echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23847if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023848
23849cat >>confdefs.h <<\_ACEOF
23850#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023851_ACEOF
23852
23853 MMAP_FILE=yes
23854
23855fi
23856
Brian Gaeke26be9c52004-01-13 06:43:16 +000023857if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023858then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023859 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23860echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023861fi
23862echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23863echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23864if test "${ac_cv_header_mmap_anon+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23866else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023867 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023868ac_cpp='$CPP $CPPFLAGS'
23869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23871ac_compiler_gnu=$ac_cv_c_compiler_gnu
23872
23873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023874/* confdefs.h. */
23875_ACEOF
23876cat confdefs.h >>conftest.$ac_ext
23877cat >>conftest.$ac_ext <<_ACEOF
23878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023879#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000023880#include <unistd.h>
23881#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023882int
23883main ()
23884{
23885mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23886 ;
23887 return 0;
23888}
23889_ACEOF
23890rm -f conftest.$ac_objext
23891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023892 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023894 grep -v '^ *+' conftest.er1 >conftest.err
23895 rm -f conftest.er1
23896 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023899 { ac_try='test -z "$ac_c_werror_flag"
23900 || test ! -s conftest.err'
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; } &&
23906 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; }; then
23912 ac_cv_header_mmap_anon=yes
23913else
23914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023915sed 's/^/| /' conftest.$ac_ext >&5
23916
John Criswell7a73b802003-06-30 21:59:07 +000023917ac_cv_header_mmap_anon=no
23918fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023920 ac_ext=c
23921ac_cpp='$CPP $CPPFLAGS'
23922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23924ac_compiler_gnu=$ac_cv_c_compiler_gnu
23925
23926
23927fi
23928echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23929echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23930if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023931
23932cat >>confdefs.h <<\_ACEOF
23933#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023934_ACEOF
23935
23936fi
23937
23938echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23939echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23940if test "${ac_cv_type_signal+set}" = set; then
23941 echo $ECHO_N "(cached) $ECHO_C" >&6
23942else
23943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023944/* confdefs.h. */
23945_ACEOF
23946cat confdefs.h >>conftest.$ac_ext
23947cat >>conftest.$ac_ext <<_ACEOF
23948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023949#include <sys/types.h>
23950#include <signal.h>
23951#ifdef signal
23952# undef signal
23953#endif
23954#ifdef __cplusplus
23955extern "C" void (*signal (int, void (*)(int)))(int);
23956#else
23957void (*signal ()) ();
23958#endif
23959
John Criswell7a73b802003-06-30 21:59:07 +000023960int
23961main ()
23962{
23963int i;
23964 ;
23965 return 0;
23966}
23967_ACEOF
23968rm -f conftest.$ac_objext
23969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023970 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023971 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023972 grep -v '^ *+' conftest.er1 >conftest.err
23973 rm -f conftest.er1
23974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023977 { ac_try='test -z "$ac_c_werror_flag"
23978 || test ! -s conftest.err'
23979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980 (eval $ac_try) 2>&5
23981 ac_status=$?
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; } &&
23984 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; }; then
23990 ac_cv_type_signal=void
23991else
23992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023993sed 's/^/| /' conftest.$ac_ext >&5
23994
John Criswell7a73b802003-06-30 21:59:07 +000023995ac_cv_type_signal=int
23996fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023998fi
23999echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24000echo "${ECHO_T}$ac_cv_type_signal" >&6
24001
24002cat >>confdefs.h <<_ACEOF
24003#define RETSIGTYPE $ac_cv_type_signal
24004_ACEOF
24005
24006
24007
24008
24009
24010
24011
Brian Gaekef5261472004-02-20 06:40:57 +000024012
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000024013
John Criswelld6621562004-06-07 14:26:24 +000024014
24015
John Criswell7ed43ad2004-07-19 16:12:29 +000024016for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000024017do
24018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24019echo "$as_me:$LINENO: checking for $ac_func" >&5
24020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24021if eval "test \"\${$as_ac_var+set}\" = set"; then
24022 echo $ECHO_N "(cached) $ECHO_C" >&6
24023else
24024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024025/* confdefs.h. */
24026_ACEOF
24027cat confdefs.h >>conftest.$ac_ext
24028cat >>conftest.$ac_ext <<_ACEOF
24029/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24032#define $ac_func innocuous_$ac_func
24033
John Criswell7a73b802003-06-30 21:59:07 +000024034/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024035 which can conflict with char $ac_func (); below.
24036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024038
John Criswell0c38eaf2003-09-10 15:17:25 +000024039#ifdef __STDC__
24040# include <limits.h>
24041#else
24042# include <assert.h>
24043#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024044
24045#undef $ac_func
24046
John Criswell7a73b802003-06-30 21:59:07 +000024047/* Override any gcc2 internal prototype to avoid an error. */
24048#ifdef __cplusplus
24049extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024050{
John Criswell7a73b802003-06-30 21:59:07 +000024051#endif
24052/* We use char because int might match the return type of a gcc2
24053 builtin and then its argument prototype would still apply. */
24054char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000024055/* The GNU C library defines this for functions which it implements
24056 to always fail with ENOSYS. Some functions are actually named
24057 something starting with __ and the normal name is an alias. */
24058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24059choke me
24060#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024061char (*f) () = $ac_func;
24062#endif
24063#ifdef __cplusplus
24064}
John Criswell7a73b802003-06-30 21:59:07 +000024065#endif
24066
John Criswell0c38eaf2003-09-10 15:17:25 +000024067int
24068main ()
24069{
24070return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000024071 ;
24072 return 0;
24073}
24074_ACEOF
24075rm -f conftest.$ac_objext conftest$ac_exeext
24076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024077 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024079 grep -v '^ *+' conftest.er1 >conftest.err
24080 rm -f conftest.er1
24081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024084 { ac_try='test -z "$ac_c_werror_flag"
24085 || test ! -s conftest.err'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; } &&
24091 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 eval "$as_ac_var=yes"
24098else
24099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024100sed 's/^/| /' conftest.$ac_ext >&5
24101
John Criswell7a73b802003-06-30 21:59:07 +000024102eval "$as_ac_var=no"
24103fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024104rm -f conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024106fi
24107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24109if test `eval echo '${'$as_ac_var'}'` = yes; then
24110 cat >>confdefs.h <<_ACEOF
24111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24112_ACEOF
24113
24114fi
24115done
24116
John Criswell7a73b802003-06-30 21:59:07 +000024117echo "$as_me:$LINENO: checking for mprotect" >&5
24118echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24119if test "${ac_cv_func_mprotect+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24121else
24122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024123/* confdefs.h. */
24124_ACEOF
24125cat confdefs.h >>conftest.$ac_ext
24126cat >>conftest.$ac_ext <<_ACEOF
24127/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024128/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24130#define mprotect innocuous_mprotect
24131
John Criswell7a73b802003-06-30 21:59:07 +000024132/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024133 which can conflict with char mprotect (); below.
24134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24135 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024136
John Criswell0c38eaf2003-09-10 15:17:25 +000024137#ifdef __STDC__
24138# include <limits.h>
24139#else
24140# include <assert.h>
24141#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024142
24143#undef mprotect
24144
John Criswell7a73b802003-06-30 21:59:07 +000024145/* Override any gcc2 internal prototype to avoid an error. */
24146#ifdef __cplusplus
24147extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024148{
John Criswell7a73b802003-06-30 21:59:07 +000024149#endif
24150/* We use char because int might match the return type of a gcc2
24151 builtin and then its argument prototype would still apply. */
24152char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000024153/* The GNU C library defines this for functions which it implements
24154 to always fail with ENOSYS. Some functions are actually named
24155 something starting with __ and the normal name is an alias. */
24156#if defined (__stub_mprotect) || defined (__stub___mprotect)
24157choke me
24158#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024159char (*f) () = mprotect;
24160#endif
24161#ifdef __cplusplus
24162}
John Criswell7a73b802003-06-30 21:59:07 +000024163#endif
24164
John Criswell0c38eaf2003-09-10 15:17:25 +000024165int
24166main ()
24167{
24168return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000024169 ;
24170 return 0;
24171}
24172_ACEOF
24173rm -f conftest.$ac_objext conftest$ac_exeext
24174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024175 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024177 grep -v '^ *+' conftest.er1 >conftest.err
24178 rm -f conftest.er1
24179 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024182 { ac_try='test -z "$ac_c_werror_flag"
24183 || test ! -s conftest.err'
24184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24185 (eval $ac_try) 2>&5
24186 ac_status=$?
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; } &&
24189 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24192 ac_status=$?
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; }; then
24195 ac_cv_func_mprotect=yes
24196else
24197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024198sed 's/^/| /' conftest.$ac_ext >&5
24199
John Criswell7a73b802003-06-30 21:59:07 +000024200ac_cv_func_mprotect=no
24201fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024202rm -f conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024204fi
24205echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24206echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24207if test $ac_cv_func_mprotect = yes; then
24208 :
24209else
24210 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24211echo "$as_me: error: Function mprotect() required but not found" >&2;}
24212 { (exit 1); exit 1; }; }
24213fi
24214
24215
John Criswellb13092b2003-07-22 21:00:24 +000024216
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024217 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24218echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000024219 ac_ext=c
24220ac_cpp='$CPP $CPPFLAGS'
24221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24223ac_compiler_gnu=$ac_cv_c_compiler_gnu
24224
Brian Gaekef91a15c2003-11-18 06:20:41 +000024225 oldcflags="$CFLAGS"
24226 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000024227 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000024228/* confdefs.h. */
24229_ACEOF
24230cat confdefs.h >>conftest.$ac_ext
24231cat >>conftest.$ac_ext <<_ACEOF
24232/* end confdefs.h. */
24233
24234int
24235main ()
24236{
Brian Gaekef91a15c2003-11-18 06:20:41 +000024237int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000024238 ;
24239 return 0;
24240}
John Criswellcb7a1eb2003-11-17 19:46:02 +000024241_ACEOF
24242rm -f conftest.$ac_objext conftest$ac_exeext
24243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024244 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000024245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024246 grep -v '^ *+' conftest.er1 >conftest.err
24247 rm -f conftest.er1
24248 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000024249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024251 { ac_try='test -z "$ac_c_werror_flag"
24252 || test ! -s conftest.err'
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; } &&
24258 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000024259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; }; then
24264 ac_cv_link_use_r=yes
24265else
24266 echo "$as_me: failed program was:" >&5
24267sed 's/^/| /' conftest.$ac_ext >&5
24268
Brian Gaekef91a15c2003-11-18 06:20:41 +000024269ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000024270fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024271rm -f conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000024273 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000024274 ac_ext=c
24275ac_cpp='$CPP $CPPFLAGS'
24276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24278ac_compiler_gnu=$ac_cv_c_compiler_gnu
24279
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024280 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24281echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000024282 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000024283 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000024284
24285cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000024286#define HAVE_LINK_R 1
24287_ACEOF
24288
24289 fi
24290
24291
John Criswell7a73b802003-06-30 21:59:07 +000024292# Check whether --enable-optimized or --disable-optimized was given.
24293if test "${enable_optimized+set}" = set; then
24294 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000024295
24296else
John Criswellb13092b2003-07-22 21:00:24 +000024297 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000024298fi;
John Criswellb13092b2003-07-22 21:00:24 +000024299if test ${enableval} = "no"
24300then
24301 ENABLE_OPTIMIZED=
24302
24303else
24304 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24305
24306fi
24307
John Criswellb13092b2003-07-22 21:00:24 +000024308# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000024309if test "${enable_jit+set}" = set; then
24310 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000024311
24312else
John Criswellc78022e2003-07-29 19:11:58 +000024313 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000024314fi;
John Criswellb13092b2003-07-22 21:00:24 +000024315if test ${enableval} = "no"
24316then
24317 JIT=
24318
24319else
John Criswellc78022e2003-07-29 19:11:58 +000024320 case $target in
24321 *i*86*)
24322 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000024323
John Criswellc78022e2003-07-29 19:11:58 +000024324 ;;
24325 *sparc*)
24326 JIT=TARGET_HAS_JIT=1
24327
24328 ;;
24329 *)
24330 JIT=
24331
24332 ;;
24333 esac
John Criswellb13092b2003-07-22 21:00:24 +000024334fi
John Criswell7a73b802003-06-30 21:59:07 +000024335
24336
John Criswell7a73b802003-06-30 21:59:07 +000024337# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24338if test "${with_llvmgccdir+set}" = set; then
24339 withval="$with_llvmgccdir"
24340 LLVMGCCDIR=$withval
24341
24342fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000024343echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24344echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24345LLVM_GCC_CHECK=no
24346if test -d "$LLVMGCCDIR"
24347then
24348 if test -x "$LLVMGCCDIR/bin/gcc"
24349 then
24350 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24351 fi
24352fi
24353llvmgccwarn=no
24354echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24355echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24356if test "$LLVM_GCC_CHECK" = "no"
24357then
24358 llvmgccwarn=yes
24359fi
Brian Gaekef3b24102003-11-16 18:38:14 +000024360echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24361echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24362LLVM_GCC_SANE=no
24363if test -x "$LLVM_GCC_CHECK"
24364then
24365 cp /dev/null conftest.c
24366 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24367 if test $? -eq 0
24368 then
24369 LLVM_GCC_SANE=yes
24370 fi
24371 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000024372 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000024373 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000024374
24375 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000024376 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000024377
Brian Gaekef3b24102003-11-16 18:38:14 +000024378fi
24379echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24380echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24381if test "$LLVM_GCC_SANE" = "no"
24382then
24383 llvmgccwarn=yes
24384fi
24385
Brian Gaeke554831c2004-01-21 19:39:29 +000024386echo "$as_me:$LINENO: checking for shared library suffix" >&5
24387echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000024388eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000024389echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24390echo "${ECHO_T}$SHLIBEXT" >&6
24391SHLIBEXT=$SHLIBEXT
24392
24393
24394cat >>confdefs.h <<_ACEOF
24395#define SHLIBEXT "$SHLIBEXT"
24396_ACEOF
24397
24398
Reid Spencere9de0912004-08-20 09:03:57 +000024399# Translate the various configuration directories and other basic
24400# information into substitutions that will end up in config.h.in so
24401# that these configured values can be hard-wired into a program.
24402eval LLVM_PREFIX="${prefix}";
24403eval LLVM_BINDIR="${prefix}/bin";
24404eval LLVM_LIBDIR="${prefix}/lib";
24405eval LLVM_DATADIR="${prefix}/data";
24406eval LLVM_DOCSDIR="${prefix}/docs";
24407eval LLVM_ETCDIR="${prefix}/etc";
24408eval LLVM_INCLUDEDIR="${prefix}/include";
24409eval LLVM_INFODIR="${prefix}/info";
24410eval LLVM_MANDIR="${prefix}/man";
24411LLVM_CONFIGTIME=`date`
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423cat >>confdefs.h <<_ACEOF
24424#define LLVM_PREFIX "$LLVM_PREFIX"
24425_ACEOF
24426
24427
24428cat >>confdefs.h <<_ACEOF
24429#define LLVM_BINDIR "$LLVM_BINDIR"
24430_ACEOF
24431
24432
24433cat >>confdefs.h <<_ACEOF
24434#define LLVM_LIBDIR "$LLVM_LIBDIR"
24435_ACEOF
24436
24437
24438cat >>confdefs.h <<_ACEOF
24439#define LLVM_DATADIR "$LLVM_DATADIR"
24440_ACEOF
24441
24442
24443cat >>confdefs.h <<_ACEOF
24444#define LLVM_DATADIR "$LLVM_DOCSDIR"
24445_ACEOF
24446
24447
24448cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000024449#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000024450_ACEOF
24451
24452
24453cat >>confdefs.h <<_ACEOF
24454#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24455_ACEOF
24456
24457
24458cat >>confdefs.h <<_ACEOF
24459#define LLVM_INFODIR "$LLVM_INFODIR"
24460_ACEOF
24461
24462
24463cat >>confdefs.h <<_ACEOF
24464#define LLVM_MANDIR "$LLVM_MANDIR"
24465_ACEOF
24466
24467
24468cat >>confdefs.h <<_ACEOF
24469#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24470_ACEOF
24471
24472
John Criswell7a73b802003-06-30 21:59:07 +000024473cat >confcache <<\_ACEOF
24474# This file is a shell script that caches the results of configure
24475# tests run on this system so they can be shared between configure
24476# scripts and configure runs, see configure's option --config-cache.
24477# It is not useful on other systems. If it contains results you don't
24478# want to keep, you may remove or edit it.
24479#
24480# config.status only pays attention to the cache file if you give it
24481# the --recheck option to rerun configure.
24482#
John Criswell0c38eaf2003-09-10 15:17:25 +000024483# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000024484# loading this file, other *unset* `ac_cv_foo' will be assigned the
24485# following values.
24486
24487_ACEOF
24488
24489# The following way of writing the cache mishandles newlines in values,
24490# but we know of no workaround that is simple, portable, and efficient.
24491# So, don't put newlines in cache variables' values.
24492# Ultrix sh set writes to stderr and can't be redirected directly,
24493# and sets the high bit in the cache file unless we assign to the vars.
24494{
24495 (set) 2>&1 |
24496 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24497 *ac_space=\ *)
24498 # `set' does not quote correctly, so add quotes (double-quote
24499 # substitution turns \\\\ into \\, and sed turns \\ into \).
24500 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024501 "s/'/'\\\\''/g;
24502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000024503 ;;
24504 *)
24505 # `set' quotes correctly as required by POSIX, so do not add quotes.
24506 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024507 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000024508 ;;
24509 esac;
24510} |
24511 sed '
24512 t clear
24513 : clear
24514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24515 t end
24516 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24517 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000024518if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000024519 if test -w $cache_file; then
24520 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24521 cat confcache >$cache_file
24522 else
24523 echo "not updating unwritable cache $cache_file"
24524 fi
24525fi
24526rm -f confcache
24527
24528test "x$prefix" = xNONE && prefix=$ac_default_prefix
24529# Let make expand exec_prefix.
24530test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24531
24532# VPATH may cause trouble with some makes, so we remove $(srcdir),
24533# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24534# trailing colons and then remove the whole line if VPATH becomes empty
24535# (actually we leave an empty line to preserve line numbers).
24536if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024537 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000024538s/:*\$(srcdir):*/:/;
24539s/:*\${srcdir}:*/:/;
24540s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024541s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000024542s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024543s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000024544}'
24545fi
24546
24547DEFS=-DHAVE_CONFIG_H
24548
John Criswell0c38eaf2003-09-10 15:17:25 +000024549ac_libobjs=
24550ac_ltlibobjs=
24551for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24552 # 1. Remove the extension, and $U if already installed.
24553 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024554 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024555 # 2. Add them.
24556 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24557 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24558done
24559LIBOBJS=$ac_libobjs
24560
24561LTLIBOBJS=$ac_ltlibobjs
24562
24563
John Criswell7a73b802003-06-30 21:59:07 +000024564
24565: ${CONFIG_STATUS=./config.status}
24566ac_clean_files_save=$ac_clean_files
24567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24568{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24569echo "$as_me: creating $CONFIG_STATUS" >&6;}
24570cat >$CONFIG_STATUS <<_ACEOF
24571#! $SHELL
24572# Generated by $as_me.
24573# Run this file to recreate the current configuration.
24574# Compiler output produced by configure, useful for debugging
24575# configure, is in config.log if it exists.
24576
24577debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000024578ac_cs_recheck=false
24579ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000024580SHELL=\${CONFIG_SHELL-$SHELL}
24581_ACEOF
24582
24583cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024584## --------------------- ##
24585## M4sh Initialization. ##
24586## --------------------- ##
24587
24588# Be Bourne compatible
24589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24590 emulate sh
24591 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24593 # is contrary to our usage. Disable this feature.
24594 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024595elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24596 set -o posix
24597fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024598DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024599
John Criswell7a73b802003-06-30 21:59:07 +000024600# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024601if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024602 as_unset=unset
24603else
24604 as_unset=false
24605fi
24606
John Criswell0c38eaf2003-09-10 15:17:25 +000024607
24608# Work around bugs in pre-3.0 UWIN ksh.
24609$as_unset ENV MAIL MAILPATH
24610PS1='$ '
24611PS2='> '
24612PS4='+ '
24613
24614# NLS nuisances.
24615for as_var in \
24616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24618 LC_TELEPHONE LC_TIME
24619do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024621 eval $as_var=C; export $as_var
24622 else
24623 $as_unset $as_var
24624 fi
24625done
24626
24627# Required to use basename.
24628if expr a : '\(a\)' >/dev/null 2>&1; then
24629 as_expr=expr
24630else
24631 as_expr=false
24632fi
24633
24634if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24635 as_basename=basename
24636else
24637 as_basename=false
24638fi
John Criswell7a73b802003-06-30 21:59:07 +000024639
24640
24641# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024642as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024643$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24644 X"$0" : 'X\(//\)$' \| \
24645 X"$0" : 'X\(/\)$' \| \
24646 . : '\(.\)' 2>/dev/null ||
24647echo X/"$0" |
24648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24649 /^X\/\(\/\/\)$/{ s//\1/; q; }
24650 /^X\/\(\/\).*/{ s//\1/; q; }
24651 s/.*/./; q'`
24652
John Criswell0c38eaf2003-09-10 15:17:25 +000024653
John Criswell7a73b802003-06-30 21:59:07 +000024654# PATH needs CR, and LINENO needs CR and PATH.
24655# Avoid depending upon Character Ranges.
24656as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24657as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24658as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24659as_cr_digits='0123456789'
24660as_cr_alnum=$as_cr_Letters$as_cr_digits
24661
24662# The user is always right.
24663if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024664 echo "#! /bin/sh" >conf$$.sh
24665 echo "exit 0" >>conf$$.sh
24666 chmod +x conf$$.sh
24667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024668 PATH_SEPARATOR=';'
24669 else
24670 PATH_SEPARATOR=:
24671 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024672 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024673fi
24674
24675
24676 as_lineno_1=$LINENO
24677 as_lineno_2=$LINENO
24678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24679 test "x$as_lineno_1" != "x$as_lineno_2" &&
24680 test "x$as_lineno_3" = "x$as_lineno_2" || {
24681 # Find who we are. Look in the path if we contain no path at all
24682 # relative or not.
24683 case $0 in
24684 *[\\/]* ) as_myself=$0 ;;
24685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24686for as_dir in $PATH
24687do
24688 IFS=$as_save_IFS
24689 test -z "$as_dir" && as_dir=.
24690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24691done
24692
24693 ;;
24694 esac
24695 # We did not find ourselves, most probably we were run as `sh COMMAND'
24696 # in which case we are not to be found in the path.
24697 if test "x$as_myself" = x; then
24698 as_myself=$0
24699 fi
24700 if test ! -f "$as_myself"; then
24701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24702echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24703 { (exit 1); exit 1; }; }
24704 fi
24705 case $CONFIG_SHELL in
24706 '')
24707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24708for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24709do
24710 IFS=$as_save_IFS
24711 test -z "$as_dir" && as_dir=.
24712 for as_base in sh bash ksh sh5; do
24713 case $as_dir in
24714 /*)
24715 if ("$as_dir/$as_base" -c '
24716 as_lineno_1=$LINENO
24717 as_lineno_2=$LINENO
24718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24719 test "x$as_lineno_1" != "x$as_lineno_2" &&
24720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024723 CONFIG_SHELL=$as_dir/$as_base
24724 export CONFIG_SHELL
24725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24726 fi;;
24727 esac
24728 done
24729done
24730;;
24731 esac
24732
24733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24734 # uniformly replaced by the line number. The first 'sed' inserts a
24735 # line-number line before each line; the second 'sed' does the real
24736 # work. The second script uses 'N' to pair each line-number line
24737 # with the numbered line, and appends trailing '-' during
24738 # substitution so that $LINENO is not a special case at line end.
24739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24741 sed '=' <$as_myself |
24742 sed '
24743 N
24744 s,$,-,
24745 : loop
24746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24747 t loop
24748 s,-$,,
24749 s,^['$as_cr_digits']*\n,,
24750 ' >$as_me.lineno &&
24751 chmod +x $as_me.lineno ||
24752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24753echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24754 { (exit 1); exit 1; }; }
24755
24756 # Don't try to exec as it changes $[0], causing all sort of problems
24757 # (the dirname of $[0] is not the place where we might find the
24758 # original and so on. Autoconf is especially sensible to this).
24759 . ./$as_me.lineno
24760 # Exit status is that of the last command.
24761 exit
24762}
24763
24764
24765case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24766 *c*,-n*) ECHO_N= ECHO_C='
24767' ECHO_T=' ' ;;
24768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24770esac
24771
24772if expr a : '\(a\)' >/dev/null 2>&1; then
24773 as_expr=expr
24774else
24775 as_expr=false
24776fi
24777
24778rm -f conf$$ conf$$.exe conf$$.file
24779echo >conf$$.file
24780if ln -s conf$$.file conf$$ 2>/dev/null; then
24781 # We could just check for DJGPP; but this test a) works b) is more generic
24782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24783 if test -f conf$$.exe; then
24784 # Don't use ln at all; we don't have any links
24785 as_ln_s='cp -p'
24786 else
24787 as_ln_s='ln -s'
24788 fi
24789elif ln conf$$.file conf$$ 2>/dev/null; then
24790 as_ln_s=ln
24791else
24792 as_ln_s='cp -p'
24793fi
24794rm -f conf$$ conf$$.exe conf$$.file
24795
John Criswell0c38eaf2003-09-10 15:17:25 +000024796if mkdir -p . 2>/dev/null; then
24797 as_mkdir_p=:
24798else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024799 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024800 as_mkdir_p=false
24801fi
24802
John Criswell7a73b802003-06-30 21:59:07 +000024803as_executable_p="test -f"
24804
24805# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024807
24808# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024810
24811
24812# IFS
24813# We need space, tab and new line, in precisely that order.
24814as_nl='
24815'
24816IFS=" $as_nl"
24817
24818# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024819$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024820
24821exec 6>&1
24822
24823# Open the log real soon, to keep \$[0] and so on meaningful, and to
24824# report actual input values of CONFIG_FILES etc. instead of their
24825# values after options handling. Logging --version etc. is OK.
24826exec 5>>config.log
24827{
24828 echo
24829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24830## Running $as_me. ##
24831_ASBOX
24832} >&5
24833cat >&5 <<_CSEOF
24834
Reid Spencere9de0912004-08-20 09:03:57 +000024835This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000024836generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024837
24838 CONFIG_FILES = $CONFIG_FILES
24839 CONFIG_HEADERS = $CONFIG_HEADERS
24840 CONFIG_LINKS = $CONFIG_LINKS
24841 CONFIG_COMMANDS = $CONFIG_COMMANDS
24842 $ $0 $@
24843
24844_CSEOF
24845echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24846echo >&5
24847_ACEOF
24848
24849# Files that config.status was made for.
24850if test -n "$ac_config_files"; then
24851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24852fi
24853
24854if test -n "$ac_config_headers"; then
24855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24856fi
24857
24858if test -n "$ac_config_links"; then
24859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24860fi
24861
24862if test -n "$ac_config_commands"; then
24863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24864fi
24865
24866cat >>$CONFIG_STATUS <<\_ACEOF
24867
24868ac_cs_usage="\
24869\`$as_me' instantiates files from templates according to the
24870current configuration.
24871
24872Usage: $0 [OPTIONS] [FILE]...
24873
24874 -h, --help print this help, then exit
24875 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024876 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024877 -d, --debug don't remove temporary files
24878 --recheck update $as_me by reconfiguring in the same conditions
24879 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024880 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024881 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024882 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024883
24884Configuration files:
24885$config_files
24886
24887Configuration headers:
24888$config_headers
24889
Reid Spencerde8c47f2004-08-29 19:35:28 +000024890Configuration links:
24891$config_links
24892
John Criswellc764fbc2003-09-06 15:17:13 +000024893Configuration commands:
24894$config_commands
24895
John Criswell7a73b802003-06-30 21:59:07 +000024896Report bugs to <bug-autoconf@gnu.org>."
24897_ACEOF
24898
24899cat >>$CONFIG_STATUS <<_ACEOF
24900ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024901LLVM config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000024902configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24904
Reid Spencer2706f8c2004-09-19 23:53:36 +000024905Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024906This config.status script is free software; the Free Software Foundation
24907gives unlimited permission to copy, distribute and modify it."
24908srcdir=$srcdir
24909INSTALL="$INSTALL"
24910_ACEOF
24911
24912cat >>$CONFIG_STATUS <<\_ACEOF
24913# If no file are specified by the user, then we need to provide default
24914# value. By we need to know if files were specified by the user.
24915ac_need_defaults=:
24916while test $# != 0
24917do
24918 case $1 in
24919 --*=*)
24920 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24921 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024922 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024923 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024924 -*)
24925 ac_option=$1
24926 ac_optarg=$2
24927 ac_shift=shift
24928 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024929 *) # This is not an option, so the user has probably given explicit
24930 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024931 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024932 ac_need_defaults=false;;
24933 esac
24934
John Criswell0c38eaf2003-09-10 15:17:25 +000024935 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024936 # Handling of the options.
24937_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024938cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24940 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024941 --version | --vers* | -V )
24942 echo "$ac_cs_version"; exit 0 ;;
24943 --he | --h)
24944 # Conflict between --help and --header
24945 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24946Try \`$0 --help' for more information." >&5
24947echo "$as_me: error: ambiguous option: $1
24948Try \`$0 --help' for more information." >&2;}
24949 { (exit 1); exit 1; }; };;
24950 --help | --hel | -h )
24951 echo "$ac_cs_usage"; exit 0 ;;
24952 --debug | --d* | -d )
24953 debug=: ;;
24954 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024955 $ac_shift
24956 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024957 ac_need_defaults=false;;
24958 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024959 $ac_shift
24960 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024961 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24964 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024965
24966 # This is an error.
24967 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24968Try \`$0 --help' for more information." >&5
24969echo "$as_me: error: unrecognized option: $1
24970Try \`$0 --help' for more information." >&2;}
24971 { (exit 1); exit 1; }; } ;;
24972
24973 *) ac_config_targets="$ac_config_targets $1" ;;
24974
24975 esac
24976 shift
24977done
24978
John Criswell0c38eaf2003-09-10 15:17:25 +000024979ac_configure_extra_args=
24980
24981if $ac_cs_silent; then
24982 exec 6>/dev/null
24983 ac_configure_extra_args="$ac_configure_extra_args --silent"
24984fi
24985
24986_ACEOF
24987cat >>$CONFIG_STATUS <<_ACEOF
24988if \$ac_cs_recheck; then
24989 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24990 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24991fi
24992
John Criswell7a73b802003-06-30 21:59:07 +000024993_ACEOF
24994
John Criswellc764fbc2003-09-06 15:17:13 +000024995cat >>$CONFIG_STATUS <<_ACEOF
24996#
24997# INIT-COMMANDS section.
24998#
John Criswell7a73b802003-06-30 21:59:07 +000024999
John Criswellc764fbc2003-09-06 15:17:13 +000025000${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25001${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000025002${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025003${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025004${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025005${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25006${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000025007${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25008${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000025009${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000025010${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025011${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025012
25013_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025014
25015
25016
25017cat >>$CONFIG_STATUS <<\_ACEOF
25018for ac_config_target in $ac_config_targets
25019do
25020 case "$ac_config_target" in
25021 # Handling of arguments.
25022 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000025023 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025024 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25025 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025026 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025027 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025028 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025029 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25030 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000025031 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25032 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025033 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025034 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025035 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000025036 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000025037 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000025038 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25039 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000025040 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25041 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000025042 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25043echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25044 { (exit 1); exit 1; }; };;
25045 esac
25046done
25047
25048# If the user did not use the arguments to specify the items to instantiate,
25049# then the envvar interface is used. Set only those that are not.
25050# We use the long form for the default assignment because of an extremely
25051# bizarre bug on SunOS 4.1.3.
25052if $ac_need_defaults; then
25053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000025055 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000025056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000025057fi
25058
John Criswell0c38eaf2003-09-10 15:17:25 +000025059# Have a temporary directory for convenience. Make it in the build tree
25060# simply because there is no reason to put it here, and in addition,
25061# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000025062# Create a temporary directory, and hook for its removal unless debugging.
25063$debug ||
25064{
25065 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25066 trap '{ (exit 1); exit 1; }' 1 2 13 15
25067}
25068
25069# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000025070
John Criswell7a73b802003-06-30 21:59:07 +000025071{
John Criswell0c38eaf2003-09-10 15:17:25 +000025072 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000025073 test -n "$tmp" && test -d "$tmp"
25074} ||
25075{
John Criswell0c38eaf2003-09-10 15:17:25 +000025076 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000025077 (umask 077 && mkdir $tmp)
25078} ||
25079{
John Criswell0c38eaf2003-09-10 15:17:25 +000025080 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000025081 { (exit 1); exit 1; }
25082}
25083
25084_ACEOF
25085
25086cat >>$CONFIG_STATUS <<_ACEOF
25087
25088#
25089# CONFIG_FILES section.
25090#
25091
25092# No need to generate the scripts if there are no CONFIG_FILES.
25093# This happens for instance when ./config.status config.h
25094if test -n "\$CONFIG_FILES"; then
25095 # Protect against being on the right side of a sed subst in config.status.
25096 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25097 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25098s,@SHELL@,$SHELL,;t t
25099s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25100s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25101s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25102s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25103s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25104s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25105s,@exec_prefix@,$exec_prefix,;t t
25106s,@prefix@,$prefix,;t t
25107s,@program_transform_name@,$program_transform_name,;t t
25108s,@bindir@,$bindir,;t t
25109s,@sbindir@,$sbindir,;t t
25110s,@libexecdir@,$libexecdir,;t t
25111s,@datadir@,$datadir,;t t
25112s,@sysconfdir@,$sysconfdir,;t t
25113s,@sharedstatedir@,$sharedstatedir,;t t
25114s,@localstatedir@,$localstatedir,;t t
25115s,@libdir@,$libdir,;t t
25116s,@includedir@,$includedir,;t t
25117s,@oldincludedir@,$oldincludedir,;t t
25118s,@infodir@,$infodir,;t t
25119s,@mandir@,$mandir,;t t
25120s,@build_alias@,$build_alias,;t t
25121s,@host_alias@,$host_alias,;t t
25122s,@target_alias@,$target_alias,;t t
25123s,@DEFS@,$DEFS,;t t
25124s,@ECHO_C@,$ECHO_C,;t t
25125s,@ECHO_N@,$ECHO_N,;t t
25126s,@ECHO_T@,$ECHO_T,;t t
25127s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000025128s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025129s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25130s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25131s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25132s,@build@,$build,;t t
25133s,@build_cpu@,$build_cpu,;t t
25134s,@build_vendor@,$build_vendor,;t t
25135s,@build_os@,$build_os,;t t
25136s,@host@,$host,;t t
25137s,@host_cpu@,$host_cpu,;t t
25138s,@host_vendor@,$host_vendor,;t t
25139s,@host_os@,$host_os,;t t
25140s,@target@,$target,;t t
25141s,@target_cpu@,$target_cpu,;t t
25142s,@target_vendor@,$target_vendor,;t t
25143s,@target_os@,$target_os,;t t
25144s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025145s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000025146s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025147s,@CXX@,$CXX,;t t
25148s,@CXXFLAGS@,$CXXFLAGS,;t t
25149s,@LDFLAGS@,$LDFLAGS,;t t
25150s,@CPPFLAGS@,$CPPFLAGS,;t t
25151s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25152s,@EXEEXT@,$EXEEXT,;t t
25153s,@OBJEXT@,$OBJEXT,;t t
25154s,@CC@,$CC,;t t
25155s,@CFLAGS@,$CFLAGS,;t t
25156s,@ac_ct_CC@,$ac_ct_CC,;t t
25157s,@CPP@,$CPP,;t t
25158s,@ifGNUmake@,$ifGNUmake,;t t
25159s,@LEX@,$LEX,;t t
25160s,@LEXLIB@,$LEXLIB,;t t
25161s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000025162s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025163s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000025164s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025165s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025166s,@LN_S@,$LN_S,;t t
25167s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025168s,@AR@,$AR,;t t
25169s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025170s,@RANLIB@,$RANLIB,;t t
25171s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25172s,@STRIP@,$STRIP,;t t
25173s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025174s,@CXXCPP@,$CXXCPP,;t t
25175s,@F77@,$F77,;t t
25176s,@FFLAGS@,$FFLAGS,;t t
25177s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025178s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025179s,@DOT@,$DOT,;t t
25180s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000025181s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000025182s,@PYTHON@,$PYTHON,;t t
25183s,@QMTEST@,$QMTEST,;t t
Reid Spencer37130d22004-10-04 07:05:07 +000025184s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25185s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
John Criswell0021c312004-02-13 21:57:29 +000025186s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025187s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025188s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025189s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025190s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000025191s,@LLVMCC1@,$LLVMCC1,;t t
25192s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000025193s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000025194s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25195s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25196s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25197s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25198s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25199s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25200s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25201s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25202s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25203s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000025204s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000025205s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025206CEOF
25207
25208_ACEOF
25209
25210 cat >>$CONFIG_STATUS <<\_ACEOF
25211 # Split the substitutions into bite-sized pieces for seds with
25212 # small command number limits, like on Digital OSF/1 and HP-UX.
25213 ac_max_sed_lines=48
25214 ac_sed_frag=1 # Number of current file.
25215 ac_beg=1 # First line for current file.
25216 ac_end=$ac_max_sed_lines # Line after last line for current file.
25217 ac_more_lines=:
25218 ac_sed_cmds=
25219 while $ac_more_lines; do
25220 if test $ac_beg -gt 1; then
25221 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25222 else
25223 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25224 fi
25225 if test ! -s $tmp/subs.frag; then
25226 ac_more_lines=false
25227 else
25228 # The purpose of the label and of the branching condition is to
25229 # speed up the sed processing (if there are no `@' at all, there
25230 # is no need to browse any of the substitutions).
25231 # These are the two extra sed commands mentioned above.
25232 (echo ':t
25233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25234 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000025235 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025236 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025237 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025238 fi
25239 ac_sed_frag=`expr $ac_sed_frag + 1`
25240 ac_beg=$ac_end
25241 ac_end=`expr $ac_end + $ac_max_sed_lines`
25242 fi
25243 done
25244 if test -z "$ac_sed_cmds"; then
25245 ac_sed_cmds=cat
25246 fi
25247fi # test -n "$CONFIG_FILES"
25248
25249_ACEOF
25250cat >>$CONFIG_STATUS <<\_ACEOF
25251for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25252 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25253 case $ac_file in
25254 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025255 cat >$tmp/stdin
25256 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025258 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025260 * ) ac_file_in=$ac_file.in ;;
25261 esac
25262
25263 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25264 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25265$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025266 X"$ac_file" : 'X\(//\)[^/]' \| \
25267 X"$ac_file" : 'X\(//\)$' \| \
25268 X"$ac_file" : 'X\(/\)' \| \
25269 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025270echo X"$ac_file" |
25271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25272 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25273 /^X\(\/\/\)$/{ s//\1/; q; }
25274 /^X\(\/\).*/{ s//\1/; q; }
25275 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025276 { if $as_mkdir_p; then
25277 mkdir -p "$ac_dir"
25278 else
25279 as_dir="$ac_dir"
25280 as_dirs=
25281 while test ! -d "$as_dir"; do
25282 as_dirs="$as_dir $as_dirs"
25283 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25284$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025285 X"$as_dir" : 'X\(//\)[^/]' \| \
25286 X"$as_dir" : 'X\(//\)$' \| \
25287 X"$as_dir" : 'X\(/\)' \| \
25288 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025289echo X"$as_dir" |
25290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25292 /^X\(\/\/\)$/{ s//\1/; q; }
25293 /^X\(\/\).*/{ s//\1/; q; }
25294 s/.*/./; q'`
25295 done
25296 test ! -n "$as_dirs" || mkdir $as_dirs
25297 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25298echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25299 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025300
25301 ac_builddir=.
25302
25303if test "$ac_dir" != .; then
25304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25305 # A "../" for each directory in $ac_dir_suffix.
25306 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25307else
25308 ac_dir_suffix= ac_top_builddir=
25309fi
25310
25311case $srcdir in
25312 .) # No --srcdir option. We are building in place.
25313 ac_srcdir=.
25314 if test -z "$ac_top_builddir"; then
25315 ac_top_srcdir=.
25316 else
25317 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25318 fi ;;
25319 [\\/]* | ?:[\\/]* ) # Absolute path.
25320 ac_srcdir=$srcdir$ac_dir_suffix;
25321 ac_top_srcdir=$srcdir ;;
25322 *) # Relative path.
25323 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25324 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25325esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025326
25327# Do not use `cd foo && pwd` to compute absolute paths, because
25328# the directories may not exist.
25329case `pwd` in
25330.) ac_abs_builddir="$ac_dir";;
25331*)
25332 case "$ac_dir" in
25333 .) ac_abs_builddir=`pwd`;;
25334 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25335 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25336 esac;;
25337esac
25338case $ac_abs_builddir in
25339.) ac_abs_top_builddir=${ac_top_builddir}.;;
25340*)
25341 case ${ac_top_builddir}. in
25342 .) ac_abs_top_builddir=$ac_abs_builddir;;
25343 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25344 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25345 esac;;
25346esac
25347case $ac_abs_builddir in
25348.) ac_abs_srcdir=$ac_srcdir;;
25349*)
25350 case $ac_srcdir in
25351 .) ac_abs_srcdir=$ac_abs_builddir;;
25352 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25353 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25354 esac;;
25355esac
25356case $ac_abs_builddir in
25357.) ac_abs_top_srcdir=$ac_top_srcdir;;
25358*)
25359 case $ac_top_srcdir in
25360 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25361 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25362 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25363 esac;;
25364esac
John Criswell7a73b802003-06-30 21:59:07 +000025365
25366
25367 case $INSTALL in
25368 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25369 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25370 esac
25371
25372 if test x"$ac_file" != x-; then
25373 { echo "$as_me:$LINENO: creating $ac_file" >&5
25374echo "$as_me: creating $ac_file" >&6;}
25375 rm -f "$ac_file"
25376 fi
25377 # Let's still pretend it is `configure' which instantiates (i.e., don't
25378 # use $as_me), people would be surprised to read:
25379 # /* config.h. Generated by config.status. */
25380 if test x"$ac_file" = x-; then
25381 configure_input=
25382 else
25383 configure_input="$ac_file. "
25384 fi
25385 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000025386 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000025387
25388 # First look for the input files in the build tree, otherwise in the
25389 # src tree.
25390 ac_file_inputs=`IFS=:
25391 for f in $ac_file_in; do
25392 case $f in
25393 -) echo $tmp/stdin ;;
25394 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025395 # Absolute (can't be DOS-style, as IFS=:)
25396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025397echo "$as_me: error: cannot find input file: $f" >&2;}
25398 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025399 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025400 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025401 if test -f "$f"; then
25402 # Build tree
25403 echo "$f"
25404 elif test -f "$srcdir/$f"; then
25405 # Source tree
25406 echo "$srcdir/$f"
25407 else
25408 # /dev/null tree
25409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025410echo "$as_me: error: cannot find input file: $f" >&2;}
25411 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025412 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025413 esac
25414 done` || { (exit 1); exit 1; }
25415_ACEOF
25416cat >>$CONFIG_STATUS <<_ACEOF
25417 sed "$ac_vpsub
25418$extrasub
25419_ACEOF
25420cat >>$CONFIG_STATUS <<\_ACEOF
25421:t
25422/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25423s,@configure_input@,$configure_input,;t t
25424s,@srcdir@,$ac_srcdir,;t t
25425s,@abs_srcdir@,$ac_abs_srcdir,;t t
25426s,@top_srcdir@,$ac_top_srcdir,;t t
25427s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25428s,@builddir@,$ac_builddir,;t t
25429s,@abs_builddir@,$ac_abs_builddir,;t t
25430s,@top_builddir@,$ac_top_builddir,;t t
25431s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25432s,@INSTALL@,$ac_INSTALL,;t t
25433" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25434 rm -f $tmp/stdin
25435 if test x"$ac_file" != x-; then
25436 mv $tmp/out $ac_file
25437 else
25438 cat $tmp/out
25439 rm -f $tmp/out
25440 fi
25441
25442done
25443_ACEOF
25444cat >>$CONFIG_STATUS <<\_ACEOF
25445
25446#
25447# CONFIG_HEADER section.
25448#
25449
25450# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25451# NAME is the cpp macro being defined and VALUE is the value it is being given.
25452#
25453# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25455ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000025456ac_dC=' '
25457ac_dD=',;t'
25458# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000025459ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000025460ac_uB='$,\1#\2define\3'
25461ac_uC=' '
25462ac_uD=',;t'
25463
25464for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25465 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25466 case $ac_file in
25467 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025468 cat >$tmp/stdin
25469 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025471 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025472 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025473 * ) ac_file_in=$ac_file.in ;;
25474 esac
25475
25476 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25477echo "$as_me: creating $ac_file" >&6;}
25478
25479 # First look for the input files in the build tree, otherwise in the
25480 # src tree.
25481 ac_file_inputs=`IFS=:
25482 for f in $ac_file_in; do
25483 case $f in
25484 -) echo $tmp/stdin ;;
25485 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025486 # Absolute (can't be DOS-style, as IFS=:)
25487 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025488echo "$as_me: error: cannot find input file: $f" >&2;}
25489 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025490 # Do quote $f, to prevent DOS paths from being IFS'd.
25491 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025492 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025493 if test -f "$f"; then
25494 # Build tree
25495 echo "$f"
25496 elif test -f "$srcdir/$f"; then
25497 # Source tree
25498 echo "$srcdir/$f"
25499 else
25500 # /dev/null tree
25501 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025502echo "$as_me: error: cannot find input file: $f" >&2;}
25503 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025504 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025505 esac
25506 done` || { (exit 1); exit 1; }
25507 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025508 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000025509
25510_ACEOF
25511
25512# Transform confdefs.h into two sed scripts, `conftest.defines' and
25513# `conftest.undefs', that substitutes the proper values into
25514# config.h.in to produce config.h. The first handles `#define'
25515# templates, and the second `#undef' templates.
25516# And first: Protect against being on the right side of a sed subst in
25517# config.status. Protect against being in an unquoted here document
25518# in config.status.
25519rm -f conftest.defines conftest.undefs
25520# Using a here document instead of a string reduces the quoting nightmare.
25521# Putting comments in sed scripts is not portable.
25522#
25523# `end' is used to avoid that the second main sed command (meant for
25524# 0-ary CPP macros) applies to n-ary macro definitions.
25525# See the Autoconf documentation for `clear'.
25526cat >confdef2sed.sed <<\_ACEOF
25527s/[\\&,]/\\&/g
25528s,[\\$`],\\&,g
25529t clear
25530: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000025531s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025532t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000025533s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025534: end
25535_ACEOF
25536# If some macros were called several times there might be several times
25537# the same #defines, which is useless. Nevertheless, we may not want to
25538# sort them, since we want the *last* AC-DEFINE to be honored.
25539uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25540sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25541rm -f confdef2sed.sed
25542
25543# This sed command replaces #undef with comments. This is necessary, for
25544# example, in the case of _POSIX_SOURCE, which is predefined and required
25545# on some systems where configure will not decide to define it.
25546cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000025547s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025548_ACEOF
25549
25550# Break up conftest.defines because some shells have a limit on the size
25551# of here documents, and old seds have small limits too (100 cmds).
25552echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000025553echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025554echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25555echo ' :' >>$CONFIG_STATUS
25556rm -f conftest.tail
25557while grep . conftest.defines >/dev/null
25558do
25559 # Write a limited-size here document to $tmp/defines.sed.
25560 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25561 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025562 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025563 # Work around the forget-to-reset-the-flag bug.
25564 echo 't clr' >>$CONFIG_STATUS
25565 echo ': clr' >>$CONFIG_STATUS
25566 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25567 echo 'CEOF
25568 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25569 rm -f $tmp/in
25570 mv $tmp/out $tmp/in
25571' >>$CONFIG_STATUS
25572 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25573 rm -f conftest.defines
25574 mv conftest.tail conftest.defines
25575done
25576rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025577echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025578echo >>$CONFIG_STATUS
25579
25580# Break up conftest.undefs because some shells have a limit on the size
25581# of here documents, and old seds have small limits too (100 cmds).
25582echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25583rm -f conftest.tail
25584while grep . conftest.undefs >/dev/null
25585do
25586 # Write a limited-size here document to $tmp/undefs.sed.
25587 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25588 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025589 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025590 # Work around the forget-to-reset-the-flag bug.
25591 echo 't clr' >>$CONFIG_STATUS
25592 echo ': clr' >>$CONFIG_STATUS
25593 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25594 echo 'CEOF
25595 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25596 rm -f $tmp/in
25597 mv $tmp/out $tmp/in
25598' >>$CONFIG_STATUS
25599 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25600 rm -f conftest.undefs
25601 mv conftest.tail conftest.undefs
25602done
25603rm -f conftest.undefs
25604
25605cat >>$CONFIG_STATUS <<\_ACEOF
25606 # Let's still pretend it is `configure' which instantiates (i.e., don't
25607 # use $as_me), people would be surprised to read:
25608 # /* config.h. Generated by config.status. */
25609 if test x"$ac_file" = x-; then
25610 echo "/* Generated by configure. */" >$tmp/config.h
25611 else
25612 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25613 fi
25614 cat $tmp/in >>$tmp/config.h
25615 rm -f $tmp/in
25616 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025617 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25619echo "$as_me: $ac_file is unchanged" >&6;}
25620 else
25621 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25622$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025623 X"$ac_file" : 'X\(//\)[^/]' \| \
25624 X"$ac_file" : 'X\(//\)$' \| \
25625 X"$ac_file" : 'X\(/\)' \| \
25626 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025627echo X"$ac_file" |
25628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25630 /^X\(\/\/\)$/{ s//\1/; q; }
25631 /^X\(\/\).*/{ s//\1/; q; }
25632 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025633 { if $as_mkdir_p; then
25634 mkdir -p "$ac_dir"
25635 else
25636 as_dir="$ac_dir"
25637 as_dirs=
25638 while test ! -d "$as_dir"; do
25639 as_dirs="$as_dir $as_dirs"
25640 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025642 X"$as_dir" : 'X\(//\)[^/]' \| \
25643 X"$as_dir" : 'X\(//\)$' \| \
25644 X"$as_dir" : 'X\(/\)' \| \
25645 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025646echo X"$as_dir" |
25647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25649 /^X\(\/\/\)$/{ s//\1/; q; }
25650 /^X\(\/\).*/{ s//\1/; q; }
25651 s/.*/./; q'`
25652 done
25653 test ! -n "$as_dirs" || mkdir $as_dirs
25654 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25655echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25656 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025657
25658 rm -f $ac_file
25659 mv $tmp/config.h $ac_file
25660 fi
25661 else
25662 cat $tmp/config.h
25663 rm -f $tmp/config.h
25664 fi
25665done
25666_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025667cat >>$CONFIG_STATUS <<\_ACEOF
25668
25669#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025670# CONFIG_LINKS section.
25671#
25672
25673for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25674 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25675 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25676
25677 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25678echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25679
25680 if test ! -r $srcdir/$ac_source; then
25681 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25682echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25683 { (exit 1); exit 1; }; }
25684 fi
25685 rm -f $ac_dest
25686
25687 # Make relative symlinks.
25688 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25689$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025690 X"$ac_dest" : 'X\(//\)[^/]' \| \
25691 X"$ac_dest" : 'X\(//\)$' \| \
25692 X"$ac_dest" : 'X\(/\)' \| \
25693 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025694echo X"$ac_dest" |
25695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25697 /^X\(\/\/\)$/{ s//\1/; q; }
25698 /^X\(\/\).*/{ s//\1/; q; }
25699 s/.*/./; q'`
25700 { if $as_mkdir_p; then
25701 mkdir -p "$ac_dest_dir"
25702 else
25703 as_dir="$ac_dest_dir"
25704 as_dirs=
25705 while test ! -d "$as_dir"; do
25706 as_dirs="$as_dir $as_dirs"
25707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025709 X"$as_dir" : 'X\(//\)[^/]' \| \
25710 X"$as_dir" : 'X\(//\)$' \| \
25711 X"$as_dir" : 'X\(/\)' \| \
25712 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025713echo X"$as_dir" |
25714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25716 /^X\(\/\/\)$/{ s//\1/; q; }
25717 /^X\(\/\).*/{ s//\1/; q; }
25718 s/.*/./; q'`
25719 done
25720 test ! -n "$as_dirs" || mkdir $as_dirs
25721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25722echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25723 { (exit 1); exit 1; }; }; }
25724
25725 ac_builddir=.
25726
25727if test "$ac_dest_dir" != .; then
25728 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25729 # A "../" for each directory in $ac_dir_suffix.
25730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25731else
25732 ac_dir_suffix= ac_top_builddir=
25733fi
25734
25735case $srcdir in
25736 .) # No --srcdir option. We are building in place.
25737 ac_srcdir=.
25738 if test -z "$ac_top_builddir"; then
25739 ac_top_srcdir=.
25740 else
25741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25742 fi ;;
25743 [\\/]* | ?:[\\/]* ) # Absolute path.
25744 ac_srcdir=$srcdir$ac_dir_suffix;
25745 ac_top_srcdir=$srcdir ;;
25746 *) # Relative path.
25747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25749esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025750
25751# Do not use `cd foo && pwd` to compute absolute paths, because
25752# the directories may not exist.
25753case `pwd` in
25754.) ac_abs_builddir="$ac_dest_dir";;
25755*)
25756 case "$ac_dest_dir" in
25757 .) ac_abs_builddir=`pwd`;;
25758 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25759 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25760 esac;;
25761esac
25762case $ac_abs_builddir in
25763.) ac_abs_top_builddir=${ac_top_builddir}.;;
25764*)
25765 case ${ac_top_builddir}. in
25766 .) ac_abs_top_builddir=$ac_abs_builddir;;
25767 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25768 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25769 esac;;
25770esac
25771case $ac_abs_builddir in
25772.) ac_abs_srcdir=$ac_srcdir;;
25773*)
25774 case $ac_srcdir in
25775 .) ac_abs_srcdir=$ac_abs_builddir;;
25776 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25777 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25778 esac;;
25779esac
25780case $ac_abs_builddir in
25781.) ac_abs_top_srcdir=$ac_top_srcdir;;
25782*)
25783 case $ac_top_srcdir in
25784 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25785 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25786 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25787 esac;;
25788esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025789
25790
25791 case $srcdir in
25792 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25793 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25794 esac
25795
25796 # Try a symlink, then a hard link, then a copy.
25797 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25798 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25799 cp -p $srcdir/$ac_source $ac_dest ||
25800 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25801echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25802 { (exit 1); exit 1; }; }
25803done
25804_ACEOF
25805cat >>$CONFIG_STATUS <<\_ACEOF
25806
25807#
John Criswellc764fbc2003-09-06 15:17:13 +000025808# CONFIG_COMMANDS section.
25809#
25810for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25811 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25812 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25813 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25814$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025815 X"$ac_dest" : 'X\(//\)[^/]' \| \
25816 X"$ac_dest" : 'X\(//\)$' \| \
25817 X"$ac_dest" : 'X\(/\)' \| \
25818 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025819echo X"$ac_dest" |
25820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25822 /^X\(\/\/\)$/{ s//\1/; q; }
25823 /^X\(\/\).*/{ s//\1/; q; }
25824 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025825 { if $as_mkdir_p; then
25826 mkdir -p "$ac_dir"
25827 else
25828 as_dir="$ac_dir"
25829 as_dirs=
25830 while test ! -d "$as_dir"; do
25831 as_dirs="$as_dir $as_dirs"
25832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25833$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25834 X"$as_dir" : 'X\(//\)[^/]' \| \
25835 X"$as_dir" : 'X\(//\)$' \| \
25836 X"$as_dir" : 'X\(/\)' \| \
25837 . : '\(.\)' 2>/dev/null ||
25838echo X"$as_dir" |
25839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25841 /^X\(\/\/\)$/{ s//\1/; q; }
25842 /^X\(\/\).*/{ s//\1/; q; }
25843 s/.*/./; q'`
25844 done
25845 test ! -n "$as_dirs" || mkdir $as_dirs
25846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25847echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25848 { (exit 1); exit 1; }; }; }
25849
John Criswellc764fbc2003-09-06 15:17:13 +000025850 ac_builddir=.
25851
25852if test "$ac_dir" != .; then
25853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25854 # A "../" for each directory in $ac_dir_suffix.
25855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25856else
25857 ac_dir_suffix= ac_top_builddir=
25858fi
25859
25860case $srcdir in
25861 .) # No --srcdir option. We are building in place.
25862 ac_srcdir=.
25863 if test -z "$ac_top_builddir"; then
25864 ac_top_srcdir=.
25865 else
25866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25867 fi ;;
25868 [\\/]* | ?:[\\/]* ) # Absolute path.
25869 ac_srcdir=$srcdir$ac_dir_suffix;
25870 ac_top_srcdir=$srcdir ;;
25871 *) # Relative path.
25872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25874esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025875
25876# Do not use `cd foo && pwd` to compute absolute paths, because
25877# the directories may not exist.
25878case `pwd` in
25879.) ac_abs_builddir="$ac_dir";;
25880*)
25881 case "$ac_dir" in
25882 .) ac_abs_builddir=`pwd`;;
25883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25885 esac;;
25886esac
25887case $ac_abs_builddir in
25888.) ac_abs_top_builddir=${ac_top_builddir}.;;
25889*)
25890 case ${ac_top_builddir}. in
25891 .) ac_abs_top_builddir=$ac_abs_builddir;;
25892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25894 esac;;
25895esac
25896case $ac_abs_builddir in
25897.) ac_abs_srcdir=$ac_srcdir;;
25898*)
25899 case $ac_srcdir in
25900 .) ac_abs_srcdir=$ac_abs_builddir;;
25901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25903 esac;;
25904esac
25905case $ac_abs_builddir in
25906.) ac_abs_top_srcdir=$ac_top_srcdir;;
25907*)
25908 case $ac_top_srcdir in
25909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25912 esac;;
25913esac
John Criswellc764fbc2003-09-06 15:17:13 +000025914
25915
25916 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25917echo "$as_me: executing $ac_dest commands" >&6;}
25918 case $ac_dest in
25919 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25920 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025921 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025922 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025923 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025924 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25925 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025926 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25927 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 +000025928 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025929 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025930 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025931 esac
25932done
25933_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025934
25935cat >>$CONFIG_STATUS <<\_ACEOF
25936
25937{ (exit 0); exit 0; }
25938_ACEOF
25939chmod +x $CONFIG_STATUS
25940ac_clean_files=$ac_clean_files_save
25941
25942
25943# configure is writing to config.log, and then calls config.status.
25944# config.status does its own redirection, appending to config.log.
25945# Unfortunately, on DOS this fails, as config.log is still kept open
25946# by configure, so config.status won't be able to write to it; its
25947# output is simply discarded. So we exec the FD to /dev/null,
25948# effectively closing config.log, so it can be properly (re)opened and
25949# appended to by config.status. When coming back to configure, we
25950# need to make the FD available again.
25951if test "$no_create" != yes; then
25952 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025953 ac_config_status_args=
25954 test "$silent" = yes &&
25955 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025956 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025958 exec 5>>config.log
25959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25960 # would make configure fail if this is the last instruction.
25961 $ac_cs_success || { (exit 1); exit 1; }
25962fi
25963
John Criswell12399a12003-09-30 15:55:44 +000025964#
25965# CONFIG_SUBDIRS section.
25966#
25967if test "$no_recursion" != yes; then
25968
25969 # Remove --cache-file and --srcdir arguments so they do not pile up.
25970 ac_sub_configure_args=
25971 ac_prev=
25972 for ac_arg in $ac_configure_args; do
25973 if test -n "$ac_prev"; then
25974 ac_prev=
25975 continue
25976 fi
25977 case $ac_arg in
25978 -cache-file | --cache-file | --cache-fil | --cache-fi \
25979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25980 ac_prev=cache_file ;;
25981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25983 | --c=*)
25984 ;;
25985 --config-cache | -C)
25986 ;;
25987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25988 ac_prev=srcdir ;;
25989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25990 ;;
25991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25992 ac_prev=prefix ;;
25993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25994 ;;
25995 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25996 esac
25997 done
25998
25999 # Always prepend --prefix to ensure using the same prefix
26000 # in subdir configurations.
26001 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26002
26003 ac_popdir=`pwd`
26004 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26005
26006 # Do not complain, so a configure script can configure whichever
26007 # parts of a large source tree are present.
26008 test -d $srcdir/$ac_dir || continue
26009
26010 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26011echo "$as_me: configuring in $ac_dir" >&6;}
26012 { if $as_mkdir_p; then
26013 mkdir -p "$ac_dir"
26014 else
26015 as_dir="$ac_dir"
26016 as_dirs=
26017 while test ! -d "$as_dir"; do
26018 as_dirs="$as_dir $as_dirs"
26019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26020$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026021 X"$as_dir" : 'X\(//\)[^/]' \| \
26022 X"$as_dir" : 'X\(//\)$' \| \
26023 X"$as_dir" : 'X\(/\)' \| \
26024 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000026025echo X"$as_dir" |
26026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26028 /^X\(\/\/\)$/{ s//\1/; q; }
26029 /^X\(\/\).*/{ s//\1/; q; }
26030 s/.*/./; q'`
26031 done
26032 test ! -n "$as_dirs" || mkdir $as_dirs
26033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26034echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26035 { (exit 1); exit 1; }; }; }
26036
26037 ac_builddir=.
26038
26039if test "$ac_dir" != .; then
26040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26041 # A "../" for each directory in $ac_dir_suffix.
26042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26043else
26044 ac_dir_suffix= ac_top_builddir=
26045fi
26046
26047case $srcdir in
26048 .) # No --srcdir option. We are building in place.
26049 ac_srcdir=.
26050 if test -z "$ac_top_builddir"; then
26051 ac_top_srcdir=.
26052 else
26053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26054 fi ;;
26055 [\\/]* | ?:[\\/]* ) # Absolute path.
26056 ac_srcdir=$srcdir$ac_dir_suffix;
26057 ac_top_srcdir=$srcdir ;;
26058 *) # Relative path.
26059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26061esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026062
26063# Do not use `cd foo && pwd` to compute absolute paths, because
26064# the directories may not exist.
26065case `pwd` in
26066.) ac_abs_builddir="$ac_dir";;
26067*)
26068 case "$ac_dir" in
26069 .) ac_abs_builddir=`pwd`;;
26070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26071 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26072 esac;;
26073esac
26074case $ac_abs_builddir in
26075.) ac_abs_top_builddir=${ac_top_builddir}.;;
26076*)
26077 case ${ac_top_builddir}. in
26078 .) ac_abs_top_builddir=$ac_abs_builddir;;
26079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26081 esac;;
26082esac
26083case $ac_abs_builddir in
26084.) ac_abs_srcdir=$ac_srcdir;;
26085*)
26086 case $ac_srcdir in
26087 .) ac_abs_srcdir=$ac_abs_builddir;;
26088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26090 esac;;
26091esac
26092case $ac_abs_builddir in
26093.) ac_abs_top_srcdir=$ac_top_srcdir;;
26094*)
26095 case $ac_top_srcdir in
26096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26099 esac;;
26100esac
John Criswell12399a12003-09-30 15:55:44 +000026101
26102
26103 cd $ac_dir
26104
26105 # Check for guested configure; otherwise get Cygnus style configure.
26106 if test -f $ac_srcdir/configure.gnu; then
26107 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26108 elif test -f $ac_srcdir/configure; then
26109 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26110 elif test -f $ac_srcdir/configure.in; then
26111 ac_sub_configure=$ac_configure
26112 else
26113 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26114echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26115 ac_sub_configure=
26116 fi
26117
26118 # The recursion is here.
26119 if test -n "$ac_sub_configure"; then
26120 # Make the cache file name correct relative to the subdirectory.
26121 case $cache_file in
26122 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26123 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026124 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000026125 esac
26126
26127 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26128echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26129 # The eval makes quoting arguments work.
26130 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026131 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26132 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000026133echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26134 { (exit 1); exit 1; }; }
26135 fi
26136
26137 cd $ac_popdir
26138 done
26139fi
26140
Brian Gaekef3b24102003-11-16 18:38:14 +000026141
Reid Spencer0d98aed2004-10-04 22:05:53 +000026142if test $bzip2_found -ne 1 ; then
26143 if test $zlib_found -ne 1 ; then
26144 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26145echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26146 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26147echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26149echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26150 fi
26151fi
26152
Brian Gaekef3b24102003-11-16 18:38:14 +000026153if test $llvmgccwarn = yes
26154then
26155 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26156echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26157 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26158echo "$as_me: WARNING: ***** appear to be working." >&2;}
26159 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26160echo "$as_me: WARNING: ***** " >&2;}
26161 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26162echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26163 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26164echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26165 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26166echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26167fi
Brian Gaeke554831c2004-01-21 19:39:29 +000026168