blob: 76c74ccad3a971f604407bd12ceaa41ec767ac9f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +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.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer1f319422004-11-29 04:56:35 +0000479ac_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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX 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 ifGNUmake DATE FIND GREP MKDIR MV PAX RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST ZIP ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC 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 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
John Criswell47fdd832003-07-14 16:52:07 +00001040 --enable-shared[=PKGS]
1041 build shared libraries [default=yes]
1042 --enable-static[=PKGS]
1043 build static libraries [default=yes]
1044 --enable-fast-install[=PKGS]
1045 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001046 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001047
1048Optional Packages:
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell47fdd832003-07-14 16:52:07 +00001052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1053 --with-pic try to use only PIC/non-PIC objects [default=use
1054 both]
1055 --with-tags[=TAGS]
1056 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001057
1058Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001059 CC C compiler command
1060 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001065 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001071
1072Use these variables to override the choices made by `configure' or to help
1073it to find libraries and programs with nonstandard names/locations.
1074
1075Report bugs to <llvmbugs@cs.uiuc.edu>.
1076_ACEOF
1077fi
1078
1079if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1081 ac_popdir=`pwd`
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1084 ac_builddir=.
1085
1086if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090else
1091 ac_dir_suffix= ac_top_builddir=
1092fi
1093
1094case $srcdir in
1095 .) # No --srcdir option. We are building in place.
1096 ac_srcdir=.
1097 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=.
1099 else
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 fi ;;
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1105 *) # Relative path.
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001109
1110# Do not use `cd foo && pwd` to compute absolute paths, because
1111# the directories may not exist.
1112case `pwd` in
1113.) ac_abs_builddir="$ac_dir";;
1114*)
1115 case "$ac_dir" in
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119 esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_top_builddir=${ac_top_builddir}.;;
1123*)
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128 esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_srcdir=$ac_srcdir;;
1132*)
1133 case $ac_srcdir in
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137 esac;;
1138esac
1139case $ac_abs_builddir in
1140.) ac_abs_top_srcdir=$ac_top_srcdir;;
1141*)
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146 esac;;
1147esac
John Criswell7a73b802003-06-30 21:59:07 +00001148
1149 cd $ac_dir
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1152 echo
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1155 echo
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001158 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001159 echo
1160 $ac_configure --help
1161 else
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 fi
1164 cd $ac_popdir
1165 done
1166fi
1167
1168test -n "$ac_init_help" && exit 0
1169if $ac_init_version; then
1170 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001171llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001172generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001173
Reid Spencer2706f8c2004-09-19 23:53:36 +00001174Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001175This configure script is free software; the Free Software Foundation
1176gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001177
1178$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001179_ACEOF
1180 exit 0
1181fi
1182exec 5>config.log
1183cat >&5 <<_ACEOF
1184This file contains any messages produced by compilers while
1185running configure, to aid debugging if configure makes a mistake.
1186
Reid Spencerabec8f92004-10-27 23:03:44 +00001187It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001188generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001189
1190 $ $0 $@
1191
1192_ACEOF
1193{
1194cat <<_ASUNAME
1195## --------- ##
1196## Platform. ##
1197## --------- ##
1198
1199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207
1208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1215
1216_ASUNAME
1217
1218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219for as_dir in $PATH
1220do
1221 IFS=$as_save_IFS
1222 test -z "$as_dir" && as_dir=.
1223 echo "PATH: $as_dir"
1224done
1225
1226} >&5
1227
1228cat >&5 <<_ACEOF
1229
1230
1231## ----------- ##
1232## Core tests. ##
1233## ----------- ##
1234
1235_ACEOF
1236
1237
1238# Keep a trace of the command line.
1239# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001240# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001241# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001242# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001243ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001244ac_configure_args0=
1245ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001246ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001247ac_must_keep_next=false
1248for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001249do
John Criswell0c38eaf2003-09-10 15:17:25 +00001250 for ac_arg
1251 do
1252 case $ac_arg in
1253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 continue ;;
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 esac
1260 case $ac_pass in
1261 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 2)
1263 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001265 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001266 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001267 case $ac_arg in
1268 *=* | --config-cache | -C | -disable-* | --disable-* \
1269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271 | -with-* | --with-* | -without-* | --without-* | --x)
1272 case "$ac_configure_args0 " in
1273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274 esac
1275 ;;
1276 -* ) ac_must_keep_next=true ;;
1277 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001278 fi
1279 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280 # Get rid of the leading space.
1281 ac_sep=" "
1282 ;;
1283 esac
1284 done
John Criswell7a73b802003-06-30 21:59:07 +00001285done
John Criswell0c38eaf2003-09-10 15:17:25 +00001286$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287$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 +00001288
1289# When interrupted or exit'd, cleanup temporary files, and complete
1290# config.log. We remove comments because anyway the quotes in there
1291# would cause problems or look ugly.
1292# WARNING: Be sure not to use single quotes in there, as some shells,
1293# such as our DU 5.0 friend, will then `close' the trap.
1294trap 'exit_status=$?
1295 # Save into config.log some information that might help in debugging.
1296 {
1297 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001298
John Criswell7a73b802003-06-30 21:59:07 +00001299 cat <<\_ASBOX
1300## ---------------- ##
1301## Cache variables. ##
1302## ---------------- ##
1303_ASBOX
1304 echo
1305 # The following way of writing the cache mishandles newlines in values,
1306{
1307 (set) 2>&1 |
1308 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309 *ac_space=\ *)
1310 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001311 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001313 ;;
1314 *)
1315 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001317 ;;
1318 esac;
1319}
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321
1322 cat <<\_ASBOX
1323## ----------------- ##
1324## Output variables. ##
1325## ----------------- ##
1326_ASBOX
1327 echo
1328 for ac_var in $ac_subst_vars
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1334
1335 if test -n "$ac_subst_files"; then
1336 cat <<\_ASBOX
1337## ------------- ##
1338## Output files. ##
1339## ------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_files
1343 do
1344 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001345 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001346 done | sort
1347 echo
1348 fi
1349
John Criswell7a73b802003-06-30 21:59:07 +00001350 if test -s confdefs.h; then
1351 cat <<\_ASBOX
1352## ----------- ##
1353## confdefs.h. ##
1354## ----------- ##
1355_ASBOX
1356 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001357 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001358 echo
1359 fi
1360 test "$ac_signal" != 0 &&
1361 echo "$as_me: caught signal $ac_signal"
1362 echo "$as_me: exit $exit_status"
1363 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001364 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001365 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366 exit $exit_status
1367 ' 0
1368for ac_signal in 1 2 13 15; do
1369 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370done
1371ac_signal=0
1372
1373# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374rm -rf conftest* confdefs.h
1375# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376echo >confdefs.h
1377
1378# Predefined preprocessor variables.
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_NAME "$PACKAGE_NAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_VERSION "$PACKAGE_VERSION"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_STRING "$PACKAGE_STRING"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402_ACEOF
1403
1404
1405# Let the site file select an alternate cache file if it wants to.
1406# Prefer explicitly selected file to automatically selected ones.
1407if test -z "$CONFIG_SITE"; then
1408 if test "x$prefix" != xNONE; then
1409 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 else
1411 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412 fi
1413fi
1414for ac_site_file in $CONFIG_SITE; do
1415 if test -r "$ac_site_file"; then
1416 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417echo "$as_me: loading site script $ac_site_file" >&6;}
1418 sed 's/^/| /' "$ac_site_file" >&5
1419 . "$ac_site_file"
1420 fi
1421done
1422
1423if test -r "$cache_file"; then
1424 # Some versions of bash will fail to source /dev/null (special
1425 # files actually), so we avoid doing that.
1426 if test -f "$cache_file"; then
1427 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428echo "$as_me: loading cache $cache_file" >&6;}
1429 case $cache_file in
1430 [\\/]* | ?:[\\/]* ) . $cache_file;;
1431 *) . ./$cache_file;;
1432 esac
1433 fi
1434else
1435 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436echo "$as_me: creating cache $cache_file" >&6;}
1437 >$cache_file
1438fi
1439
1440# Check that the precious variables saved in the cache have kept the same
1441# value.
1442ac_cache_corrupted=false
1443for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001444 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446 eval ac_new_set=\$ac_env_${ac_var}_set
1447 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448 eval ac_new_val="\$ac_env_${ac_var}_value"
1449 case $ac_old_set,$ac_new_set in
1450 set,)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,set)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,);;
1459 *)
1460 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001461 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001462echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001463 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001464echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001468 fi;;
1469 esac
1470 # Pass precious variables to config.status.
1471 if test "$ac_new_set" = set; then
1472 case $ac_new_val in
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 *) ac_arg=$ac_var=$ac_new_val ;;
1476 esac
1477 case " $ac_configure_args " in
1478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480 esac
1481 fi
1482done
1483if $ac_cache_corrupted; then
1484 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488 { (exit 1); exit 1; }; }
1489fi
1490
1491ac_ext=c
1492ac_cpp='$CPP $CPPFLAGS'
1493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
John Criswell0c38eaf2003-09-10 15:17:25 +00001523
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001524LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1525
1526
1527
1528
1529
1530
1531
John Criswell7a73b802003-06-30 21:59:07 +00001532ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001533for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
1546 fi
1547done
1548if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1550echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001551 { (exit 1); exit 1; }; }
1552fi
1553ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
John Criswell392aaa32003-07-22 19:18:09 +00001557
Reid Spencer2706f8c2004-09-19 23:53:36 +00001558if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001559 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1560 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001561echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1562 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001563 fi
John Criswell93e1c722003-09-15 17:04:06 +00001564fi
1565
John Criswell33a911a2003-11-25 20:36:46 +00001566for i in `ls ${srcdir}/projects`
1567do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001568 if test -d ${srcdir}/projects/${i} ; then
1569 case ${i} in
1570 "CVS") ;;
1571 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001572
Reid Spencer4d68ba22004-09-07 16:35:45 +00001573subdirs="$subdirs projects/sample"
1574 ;;
1575 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001576
Reid Spencer4d68ba22004-09-07 16:35:45 +00001577subdirs="$subdirs projects/Stacker"
1578 ;;
1579 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001580
Reid Spencer4d68ba22004-09-07 16:35:45 +00001581subdirs="$subdirs projects/llvm-test"
1582 ;;
1583 "llvm-reopt")
1584
1585subdirs="$subdirs projects/llvm-reopt"
1586;;
1587 "llvm-gcc")
1588
1589subdirs="$subdirs projects/llvm-gcc"
1590 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001591 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001592
Reid Spencer641f7ef2004-09-20 22:14:56 +00001593subdirs="$subdirs projects/Java"
1594 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595 "llvm-tv")
1596
1597subdirs="$subdirs projects/llvm-tv"
1598 ;;
1599 "llvm-fefw")
1600
1601subdirs="$subdirs projects/llvm-fefw"
1602 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001603 "poolalloc")
1604
1605subdirs="$subdirs projects/poolalloc"
1606 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001607 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001608 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001610 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001611 esac
John Criswell33a911a2003-11-25 20:36:46 +00001612 fi
1613done
John Criswell559a6c12003-09-30 16:31:48 +00001614
John Criswell7a73b802003-06-30 21:59:07 +00001615
1616# Make sure we can run config.sub.
1617$ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622echo "$as_me:$LINENO: checking build system type" >&5
1623echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_build_alias=$build_alias
1628test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641echo "${ECHO_T}$ac_cv_build" >&6
1642build=$ac_cv_build
1643build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648echo "$as_me:$LINENO: checking host system type" >&5
1649echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 ac_cv_host_alias=$host_alias
1654test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661fi
1662echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663echo "${ECHO_T}$ac_cv_host" >&6
1664host=$ac_cv_host
1665host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670echo "$as_me:$LINENO: checking target system type" >&5
1671echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675 ac_cv_target_alias=$target_alias
1676test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1682
1683fi
1684echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685echo "${ECHO_T}$ac_cv_target" >&6
1686target=$ac_cv_target
1687target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692# The aliases save the names the user supplied, while $host etc.
1693# will get canonicalized.
1694test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1696 NONENONEs,x,x, &&
1697 program_prefix=${target_alias}-
1698
Reid Spencer73fb5482004-08-31 14:20:36 +00001699echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1700echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001701if test "${llvm_cv_platform_type+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 case $build in
1705 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1706 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1707 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1708 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1709 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1710 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1711 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1712 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1713 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1714 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001715esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001716fi
1717echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1718echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001719
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001720if test "$llvm_cv_platform_type" = "Unknown" ; then
1721 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1722echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001723 { (exit 1); exit 1; }; }
1724fi
1725
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001726OS=$llvm_cv_platform_type
1727
1728
Reid Spenceredd01b92004-11-25 06:03:14 +00001729 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001730
1731
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001732case $target in
1733 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1734
1735 ;;
1736esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001737
1738echo "$as_me:$LINENO: checking target architecture" >&5
1739echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001740if test "${llvm_cv_target_arch+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743 case $target in
1744 i*86-*) llvm_cv_target_arch="x86" ;;
1745 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1746 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1747 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001748esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001749fi
1750echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1751echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001752
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001753if test "$llvm_cv_target_arch" = "Unknown" ; then
1754 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1755echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1756fi
John Criswell76595452003-07-01 22:07:39 +00001757
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001758ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001759
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001760
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001761ac_ext=c
1762ac_cpp='$CPP $CPPFLAGS'
1763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001766if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1768set dummy ${ac_tool_prefix}gcc; ac_word=$2
1769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776else
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 break 2
1787 fi
1788done
1789done
1790
1791fi
1792fi
1793CC=$ac_cv_prog_CC
1794if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796echo "${ECHO_T}$CC" >&6
1797else
1798 echo "$as_me:$LINENO: result: no" >&5
1799echo "${ECHO_T}no" >&6
1800fi
1801
1802fi
1803if test -z "$ac_cv_prog_CC"; then
1804 ac_ct_CC=$CC
1805 # Extract the first word of "gcc", so it can be a program name with args.
1806set dummy gcc; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812 if test -n "$ac_ct_CC"; then
1813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818 IFS=$as_save_IFS
1819 test -z "$as_dir" && as_dir=.
1820 for ac_exec_ext in '' $ac_executable_extensions; do
1821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822 ac_cv_prog_ac_ct_CC="gcc"
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 break 2
1825 fi
1826done
1827done
1828
1829fi
1830fi
1831ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832if test -n "$ac_ct_CC"; then
1833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834echo "${ECHO_T}$ac_ct_CC" >&6
1835else
1836 echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840 CC=$ac_ct_CC
1841else
1842 CC="$ac_cv_prog_CC"
1843fi
1844
1845if test -z "$CC"; then
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1848set dummy ${ac_tool_prefix}cc; ac_word=$2
1849echo "$as_me:$LINENO: checking for $ac_word" >&5
1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853else
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1856else
1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858for as_dir in $PATH
1859do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC="${ac_tool_prefix}cc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868done
1869done
1870
1871fi
1872fi
1873CC=$ac_cv_prog_CC
1874if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876echo "${ECHO_T}$CC" >&6
1877else
1878 echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882fi
1883if test -z "$ac_cv_prog_CC"; then
1884 ac_ct_CC=$CC
1885 # Extract the first word of "cc", so it can be a program name with args.
1886set dummy cc; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC="cc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906done
1907done
1908
1909fi
1910fi
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916 echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920 CC=$ac_ct_CC
1921else
1922 CC="$ac_cv_prog_CC"
1923fi
1924
1925fi
1926if test -z "$CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928set dummy cc; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936else
1937 ac_prog_rejected=no
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1946 ac_prog_rejected=yes
1947 continue
1948 fi
1949 ac_cv_prog_CC="cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy $ac_cv_prog_CC
1959 shift
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1964 shift
1965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1966 fi
1967fi
1968fi
1969fi
1970CC=$ac_cv_prog_CC
1971if test -n "$CC"; then
1972 echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6
1974else
1975 echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6
1977fi
1978
1979fi
1980if test -z "$CC"; then
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001983 do
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001988if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001993else
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005done
2006done
2007
2008fi
2009fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002010CC=$ac_cv_prog_CC
2011if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002014else
2015 echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6
2017fi
2018
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002019 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002020 done
2021fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002022if test -z "$CC"; then
2023 ac_ct_CC=$CC
2024 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002025do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027set dummy $ac_prog; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002043 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049
2050fi
2051fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002056else
2057 echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002062done
John Criswell7a73b802003-06-30 21:59:07 +00002063
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002064 CC=$ac_ct_CC
2065fi
2066
John Criswell7a73b802003-06-30 21:59:07 +00002067fi
2068
2069
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2075
John Criswell7a73b802003-06-30 21:59:07 +00002076# Provide some information about the compiler.
2077echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002079ac_compiler=`set X $ac_compile; echo $2`
2080{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081 (eval $ac_compiler --version </dev/null >&5) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }
2085{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086 (eval $ac_compiler -v </dev/null >&5) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091 (eval $ac_compiler -V </dev/null >&5) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095
2096cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002097/* confdefs.h. */
2098_ACEOF
2099cat confdefs.h >>conftest.$ac_ext
2100cat >>conftest.$ac_ext <<_ACEOF
2101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002102
John Criswell7a73b802003-06-30 21:59:07 +00002103int
2104main ()
2105{
2106
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002112ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002113# Try to create an executable without -o first, disregard a.out.
2114# It will help us diagnose broken compilers, and finding out an intuition
2115# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002116echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2117echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002118ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120 (eval $ac_link_default) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; then
2124 # Find the output, starting from the most likely. This scheme is
2125# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126# resort.
2127
2128# Be careful to initialize this variable, since it used to be cached.
2129# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002131# b.out is created by i960 compilers.
2132for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2133do
2134 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002135 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002137 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002139 # This is the source file.
2140 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002141 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002142 # We found the default executable, but exeext='' is most
2143 # certainly right.
2144 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002145 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147 # FIXME: I believe we export ac_cv_exeext for Libtool,
2148 # but it would be cool to find out if it's true. Does anybody
2149 # maintain Libtool? --akim.
2150 export ac_cv_exeext
2151 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002152 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002153 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002154 esac
2155done
2156else
2157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002158sed 's/^/| /' conftest.$ac_ext >&5
2159
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002160{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002161See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002163See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002164 { (exit 77); exit 77; }; }
2165fi
2166
2167ac_exeext=$ac_cv_exeext
2168echo "$as_me:$LINENO: result: $ac_file" >&5
2169echo "${ECHO_T}$ac_file" >&6
2170
2171# Check the compiler produces executables we can run. If not, either
2172# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002173echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2174echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002175# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2176# If not cross compiling, check that we can run a simple program.
2177if test "$cross_compiling" != yes; then
2178 if { ac_try='./$ac_file'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 cross_compiling=no
2185 else
2186 if test "$cross_compiling" = maybe; then
2187 cross_compiling=yes
2188 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002189 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002190If you meant to cross compile, use \`--host'.
2191See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002192echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002193If you meant to cross compile, use \`--host'.
2194See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002195 { (exit 1); exit 1; }; }
2196 fi
2197 fi
2198fi
2199echo "$as_me:$LINENO: result: yes" >&5
2200echo "${ECHO_T}yes" >&6
2201
John Criswell0c38eaf2003-09-10 15:17:25 +00002202rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002203ac_clean_files=$ac_clean_files_save
2204# Check the compiler produces executables we can run. If not, either
2205# the compiler is broken, or we cross compile.
2206echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2208echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209echo "${ECHO_T}$cross_compiling" >&6
2210
2211echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2214 (eval $ac_link) 2>&5
2215 ac_status=$?
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }; then
2218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2220# work properly (i.e., refer to `conftest.exe'), while it won't with
2221# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002222for ac_file in conftest.exe conftest conftest.*; do
2223 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002224 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002227 export ac_cv_exeext
2228 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002229 * ) break;;
2230 esac
2231done
2232else
John Criswell0c38eaf2003-09-10 15:17:25 +00002233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002237 { (exit 1); exit 1; }; }
2238fi
2239
2240rm -f conftest$ac_cv_exeext
2241echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242echo "${ECHO_T}$ac_cv_exeext" >&6
2243
2244rm -f conftest.$ac_ext
2245EXEEXT=$ac_cv_exeext
2246ac_exeext=$EXEEXT
2247echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249if test "${ac_cv_objext+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002253/* confdefs.h. */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002258
John Criswell7a73b802003-06-30 21:59:07 +00002259int
2260main ()
2261{
2262
2263 ;
2264 return 0;
2265}
2266_ACEOF
2267rm -f conftest.o conftest.obj
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; then
2273 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277 break;;
2278 esac
2279done
2280else
2281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002288 { (exit 1); exit 1; }; }
2289fi
2290
2291rm -f conftest.$ac_cv_objext conftest.$ac_ext
2292fi
2293echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2294echo "${ECHO_T}$ac_cv_objext" >&6
2295OBJEXT=$ac_cv_objext
2296ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002297echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2298echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2299if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002308
John Criswell7a73b802003-06-30 21:59:07 +00002309int
2310main ()
2311{
2312#ifndef __GNUC__
2313 choke me
2314#endif
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 Spencer5e1d9a52004-11-25 04:51:04 +00002329 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002330 || 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_compiler_gnu=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_compiler_gnu=no
2348fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002351
2352fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355GCC=`test $ac_compiler_gnu = yes && echo yes`
2356ac_test_CFLAGS=${CFLAGS+set}
2357ac_save_CFLAGS=$CFLAGS
2358CFLAGS="-g"
2359echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002370
John Criswell7a73b802003-06-30 21:59:07 +00002371int
2372main ()
2373{
2374
2375 ;
2376 return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002381 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002402else
2403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002404sed 's/^/| /' conftest.$ac_ext >&5
2405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002409fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412if test "$ac_test_CFLAGS" = set; then
2413 CFLAGS=$ac_save_CFLAGS
2414elif test $ac_cv_prog_cc_g = yes; then
2415 if test "$GCC" = yes; then
2416 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002417 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002419 fi
2420else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421 if test "$GCC" = yes; then
2422 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002423 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002425 fi
2426fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 ac_cv_prog_cc_stdc=no
2433ac_save_CC=$CC
2434cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h. */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h. */
2440#include <stdarg.h>
2441#include <stdio.h>
2442#include <sys/types.h>
2443#include <sys/stat.h>
2444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2445struct buf { int x; };
2446FILE * (*rcsopen) (struct buf *, struct stat *, int);
2447static char *e (p, i)
2448 char **p;
2449 int i;
2450{
2451 return p[i];
2452}
2453static char *f (char * (*g) (char **, int), char **p, ...)
2454{
2455 char *s;
2456 va_list v;
2457 va_start (v,p);
2458 s = g (p, va_arg (v,int));
2459 va_end (v);
2460 return s;
2461}
2462
2463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2464 function prototypes and stuff, but not '\xHH' hex character constants.
2465 These don't provoke an error unfortunately, instead are silently treated
2466 as 'x'. The following induces an error, until -std1 is added to get
2467 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2468 array size at least. It's necessary to write '\x00'==0 to get something
2469 that's true only with -std1. */
2470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471
2472int test (int i, double x);
2473struct s1 {int (*f) (int a);};
2474struct s2 {int (*f) (double a);};
2475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476int argc;
2477char **argv;
2478int
2479main ()
2480{
2481return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486# Don't try gcc -ansi; that turns off useful extensions and
2487# breaks some systems' header files.
2488# AIX -qlanglvl=ansi
2489# Ultrix and OSF/1 -std1
2490# HP-UX 10.20 and later -Ae
2491# HP-UX older versions -Aa -D_HPUX_SOURCE
2492# SVR4 -Xc -D__EXTENSIONS__
2493for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494do
2495 CC="$ac_save_CC $ac_arg"
2496 rm -f conftest.$ac_objext
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag"
2506 || test ! -s conftest.err'
2507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 (eval $ac_try) 2>&5
2509 ac_status=$?
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; } &&
2512 { ac_try='test -s conftest.$ac_objext'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2518 ac_cv_prog_cc_stdc=$ac_arg
2519break
2520else
2521 echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524fi
2525rm -f conftest.err conftest.$ac_objext
2526done
2527rm -f conftest.$ac_ext conftest.$ac_objext
2528CC=$ac_save_CC
2529
2530fi
2531
2532case "x$ac_cv_prog_cc_stdc" in
2533 x|xno)
2534 echo "$as_me:$LINENO: result: none needed" >&5
2535echo "${ECHO_T}none needed" >&6 ;;
2536 *)
2537 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540esac
2541
2542# Some people use a C++ compiler to compile C. Since we use `exit',
2543# in C++ we need to declare it. In case someone uses the same compiler
2544# for both compiling C and C++ we need to have the C++ compiler decide
2545# the declaration of exit, since it's the most demanding environment.
2546cat >conftest.$ac_ext <<_ACEOF
2547#ifndef __cplusplus
2548 choke me
2549#endif
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553 (eval $ac_compile) 2>conftest.er1
2554 ac_status=$?
2555 grep -v '^ *+' conftest.er1 >conftest.err
2556 rm -f conftest.er1
2557 cat conftest.err >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -z "$ac_c_werror_flag"
2561 || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002574 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002575 'extern "C" void std::exit (int) throw (); using std::exit;' \
2576 'extern "C" void std::exit (int); using std::exit;' \
2577 'extern "C" void exit (int) throw ();' \
2578 'extern "C" void exit (int);' \
2579 'void exit (int);'
2580do
2581 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002582/* confdefs.h. */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002587$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002588#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002589int
2590main ()
2591{
2592exit (42);
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002599 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002607 || test ! -s conftest.err'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 (eval $ac_try) 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2619 :
2620else
2621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002622sed 's/^/| /' conftest.$ac_ext >&5
2623
John Criswell7a73b802003-06-30 21:59:07 +00002624continue
2625fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002633$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002634int
2635main ()
2636{
2637exit (42);
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002644 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 break
2665else
2666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002667sed 's/^/| /' conftest.$ac_ext >&5
2668
John Criswell7a73b802003-06-30 21:59:07 +00002669fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002671done
2672rm -f conftest*
2673if test -n "$ac_declaration"; then
2674 echo '#ifdef __cplusplus' >>confdefs.h
2675 echo $ac_declaration >>confdefs.h
2676 echo '#endif' >>confdefs.h
2677fi
2678
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002679else
2680 echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691
2692echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2693echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2694if test "${ac_cv_c_bigendian+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696else
2697 # See if sys/param.h defines the BYTE_ORDER macro.
2698cat >conftest.$ac_ext <<_ACEOF
2699/* confdefs.h. */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h. */
2704#include <sys/types.h>
2705#include <sys/param.h>
2706
2707int
2708main ()
2709{
2710#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2711 bogus endian macros
2712#endif
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718rm -f conftest.$ac_objext
2719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 # It does; now see whether it defined to BIG_ENDIAN or not.
2741cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h. */
2747#include <sys/types.h>
2748#include <sys/param.h>
2749
2750int
2751main ()
2752{
2753#if BYTE_ORDER != BIG_ENDIAN
2754 not big endian
2755#endif
2756
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext
2762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2764 ac_status=$?
2765 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_c_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2783 ac_cv_c_bigendian=yes
2784else
2785 echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788ac_cv_c_bigendian=no
2789fi
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791else
2792 echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795# It does not; compile a test program.
2796if test "$cross_compiling" = yes; then
2797 # try to guess the endianness by grepping values into an object file
2798 ac_cv_c_bigendian=unknown
2799 cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
2805short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2806short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2807void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2808short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2809short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2810void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2811int
2812main ()
2813{
2814 _ascii (); _ebcdic ();
2815 ;
2816 return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext
2820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 { ac_try='test -z "$ac_c_werror_flag"
2829 || test ! -s conftest.err'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; } &&
2835 { ac_try='test -s conftest.$ac_objext'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2842 ac_cv_c_bigendian=yes
2843fi
2844if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2845 if test "$ac_cv_c_bigendian" = unknown; then
2846 ac_cv_c_bigendian=no
2847 else
2848 # finding both strings is unlikely to happen, but who knows?
2849 ac_cv_c_bigendian=unknown
2850 fi
2851fi
2852else
2853 echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856fi
2857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858else
2859 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
2865int
2866main ()
2867{
2868 /* Are we little or big endian? From Harbison&Steele. */
2869 union
2870 {
2871 long l;
2872 char c[sizeof (long)];
2873 } u;
2874 u.l = 1;
2875 exit (u.c[sizeof (long) - 1] == 1);
2876}
2877_ACEOF
2878rm -f conftest$ac_exeext
2879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880 (eval $ac_link) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 (eval $ac_try) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 ac_cv_c_bigendian=no
2890else
2891 echo "$as_me: program exited with status $ac_status" >&5
2892echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895( exit $ac_status )
2896ac_cv_c_bigendian=yes
2897fi
2898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2899fi
2900fi
2901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902fi
2903echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2904echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2905case $ac_cv_c_bigendian in
2906 yes)
2907 ENDIAN=big
2908 ;;
2909 no)
2910 ENDIAN=little
2911 ;;
2912 *)
2913 { { echo "$as_me:$LINENO: error: unknown endianness
2914presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2915echo "$as_me: error: unknown endianness
2916presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2917 { (exit 1); exit 1; }; } ;;
2918esac
2919
2920
2921
2922# Check whether --enable-optimized or --disable-optimized was given.
2923if test "${enable_optimized+set}" = set; then
2924 enableval="$enable_optimized"
2925
2926else
2927 enableval=no
2928fi;
2929if test ${enableval} = "no" ; then
2930 ENABLE_OPTIMIZED=
2931
2932else
2933 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2934
2935fi
2936
2937# Check whether --enable-jit or --disable-jit was given.
2938if test "${enable_jit+set}" = set; then
2939 enableval="$enable_jit"
2940
2941else
2942 enableval=default
2943fi;
2944if test ${enableval} = "no"
2945then
2946 JIT=
2947
2948else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002949 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002950 x86) JIT=TARGET_HAS_JIT=1
2951 ;;
2952 Sparc) JIT=TARGET_HAS_JIT=1
2953 ;;
2954 PowerPC) JIT=TARGET_HAS_JIT=1
2955 ;;
2956 *) JIT=
2957 ;;
2958 esac
2959fi
2960
Reid Spencer1f319422004-11-29 04:56:35 +00002961# Check whether --enable-doxygen or --disable-doxygen was given.
2962if test "${enable_doxygen+set}" = set; then
2963 enableval="$enable_doxygen"
2964 enableval=yes
2965else
2966 enableval=no
2967fi;
2968case "$enableval" in
2969 yes) ENABLE_DOXYGEN=1
2970 ;;
2971 no) ENABLE_DOXYGEN=0
2972 ;;
2973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2974echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2975 { (exit 1); exit 1; }; } ;;
2976esac
2977
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002978
2979# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2980if test "${with_llvmgccdir+set}" = set; then
2981 withval="$with_llvmgccdir"
2982 LLVMGCCDIR=$withval
2983
2984fi;
2985
2986if test "x$LLVMGCCDIR" = x ; then
2987 case "$llvm_cv_platform_type" in
2988 Linux)
2989 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2990 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2991
2992 fi
2993 ;;
2994 SunOS)
2995 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2996 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2997
2998 fi
2999 ;;
3000 esac
3001fi
3002
3003
3004ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3011# On Suns, sometimes $CPP names a directory.
3012if test -n "$CPP" && test -d "$CPP"; then
3013 CPP=
3014fi
3015if test -z "$CPP"; then
3016 if test "${ac_cv_prog_CPP+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018else
3019 # Double quotes because CPP needs to be expanded
3020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3021 do
3022 ac_preproc_ok=false
3023for ac_c_preproc_warn_flag in '' yes
3024do
3025 # Use a header file that comes with gcc, so configuring glibc
3026 # with a fresh cross-compiler works.
3027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028 # <limits.h> exists even on freestanding compilers.
3029 # On the NeXT, cc -E runs the code through the compiler's parser,
3030 # not just through cpp. "Syntax error" is here to catch this case.
3031 cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
3037#ifdef __STDC__
3038# include <limits.h>
3039#else
3040# include <assert.h>
3041#endif
3042 Syntax error
3043_ACEOF
3044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_c_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055 else
3056 ac_cpp_err=
3057 fi
3058else
3059 ac_cpp_err=yes
3060fi
3061if test -z "$ac_cpp_err"; then
3062 :
3063else
3064 echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 # Broken: fails on valid input.
3068continue
3069fi
3070rm -f conftest.err conftest.$ac_ext
3071
3072 # OK, works on sane cases. Now check whether non-existent headers
3073 # can be detected and how.
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080#include <ac_nonexistent.h>
3081_ACEOF
3082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } >/dev/null; then
3090 if test -s conftest.err; then
3091 ac_cpp_err=$ac_c_preproc_warn_flag
3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093 else
3094 ac_cpp_err=
3095 fi
3096else
3097 ac_cpp_err=yes
3098fi
3099if test -z "$ac_cpp_err"; then
3100 # Broken: success on invalid input.
3101continue
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 # Passes both tests.
3107ac_preproc_ok=:
3108break
3109fi
3110rm -f conftest.err conftest.$ac_ext
3111
3112done
3113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114rm -f conftest.err conftest.$ac_ext
3115if $ac_preproc_ok; then
3116 break
3117fi
3118
3119 done
3120 ac_cv_prog_CPP=$CPP
3121
3122fi
3123 CPP=$ac_cv_prog_CPP
3124else
3125 ac_cv_prog_CPP=$CPP
3126fi
3127echo "$as_me:$LINENO: result: $CPP" >&5
3128echo "${ECHO_T}$CPP" >&6
3129ac_preproc_ok=false
3130for ac_c_preproc_warn_flag in '' yes
3131do
3132 # Use a header file that comes with gcc, so configuring glibc
3133 # with a fresh cross-compiler works.
3134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135 # <limits.h> exists even on freestanding compilers.
3136 # On the NeXT, cc -E runs the code through the compiler's parser,
3137 # not just through cpp. "Syntax error" is here to catch this case.
3138 cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h. */
3144#ifdef __STDC__
3145# include <limits.h>
3146#else
3147# include <assert.h>
3148#endif
3149 Syntax error
3150_ACEOF
3151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev/null; then
3159 if test -s conftest.err; then
3160 ac_cpp_err=$ac_c_preproc_warn_flag
3161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162 else
3163 ac_cpp_err=
3164 fi
3165else
3166 ac_cpp_err=yes
3167fi
3168if test -z "$ac_cpp_err"; then
3169 :
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 # Broken: fails on valid input.
3175continue
3176fi
3177rm -f conftest.err conftest.$ac_ext
3178
3179 # OK, works on sane cases. Now check whether non-existent headers
3180 # can be detected and how.
3181 cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187#include <ac_nonexistent.h>
3188_ACEOF
3189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev/null; then
3197 if test -s conftest.err; then
3198 ac_cpp_err=$ac_c_preproc_warn_flag
3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200 else
3201 ac_cpp_err=
3202 fi
3203else
3204 ac_cpp_err=yes
3205fi
3206if test -z "$ac_cpp_err"; then
3207 # Broken: success on invalid input.
3208continue
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 # Passes both tests.
3214ac_preproc_ok=:
3215break
3216fi
3217rm -f conftest.err conftest.$ac_ext
3218
3219done
3220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221rm -f conftest.err conftest.$ac_ext
3222if $ac_preproc_ok; then
3223 :
3224else
3225 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226See \`config.log' for more details." >&5
3227echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3230fi
3231
John Criswell7a73b802003-06-30 21:59:07 +00003232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238ac_ext=c
3239ac_cpp='$CPP $CPPFLAGS'
3240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243if test -n "$ac_tool_prefix"; then
3244 for ac_prog in gcc
3245 do
3246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248echo "$as_me:$LINENO: checking for $ac_word" >&5
3249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250if test "${ac_cv_prog_CC+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3252else
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267done
3268done
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 echo "$as_me:$LINENO: result: $CC" >&5
3275echo "${ECHO_T}$CC" >&6
3276else
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
3279fi
3280
3281 test -n "$CC" && break
3282 done
3283fi
3284if test -z "$CC"; then
3285 ac_ct_CC=$CC
3286 for ac_prog in gcc
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_ac_ct_CC+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="$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
3314ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315if test -n "$ac_ct_CC"; then
3316 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317echo "${ECHO_T}$ac_ct_CC" >&6
3318else
3319 echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323 test -n "$ac_ct_CC" && break
3324done
3325
3326 CC=$ac_ct_CC
3327fi
3328
3329
John Criswell0c38eaf2003-09-10 15:17:25 +00003330test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331See \`config.log' for more details." >&5
3332echo "$as_me: error: no acceptable C compiler found in \$PATH
3333See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003334 { (exit 1); exit 1; }; }
3335
3336# Provide some information about the compiler.
3337echo "$as_me:$LINENO:" \
3338 "checking for C compiler version" >&5
3339ac_compiler=`set X $ac_compile; echo $2`
3340{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3341 (eval $ac_compiler --version </dev/null >&5) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }
3345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3346 (eval $ac_compiler -v </dev/null >&5) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3351 (eval $ac_compiler -V </dev/null >&5) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355
3356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3358if test "${ac_cv_c_compiler_gnu+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003367
John Criswell7a73b802003-06-30 21:59:07 +00003368int
3369main ()
3370{
3371#ifndef __GNUC__
3372 choke me
3373#endif
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003381 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_compiler_gnu=yes
3402else
3403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003404sed 's/^/| /' conftest.$ac_ext >&5
3405
John Criswell7a73b802003-06-30 21:59:07 +00003406ac_compiler_gnu=no
3407fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003409ac_cv_c_compiler_gnu=$ac_compiler_gnu
3410
3411fi
3412echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3413echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3414GCC=`test $ac_compiler_gnu = yes && echo yes`
3415ac_test_CFLAGS=${CFLAGS+set}
3416ac_save_CFLAGS=$CFLAGS
3417CFLAGS="-g"
3418echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3419echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3420if test "${ac_cv_prog_cc_g+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003429
John Criswell7a73b802003-06-30 21:59:07 +00003430int
3431main ()
3432{
3433
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
3439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003440 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003447 { ac_try='test -z "$ac_c_werror_flag"
3448 || test ! -s conftest.err'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; } &&
3454 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3460 ac_cv_prog_cc_g=yes
3461else
3462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003463sed 's/^/| /' conftest.$ac_ext >&5
3464
John Criswell7a73b802003-06-30 21:59:07 +00003465ac_cv_prog_cc_g=no
3466fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003468fi
3469echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3470echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3471if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3475 CFLAGS="-g -O2"
3476 else
3477 CFLAGS="-g"
3478 fi
3479else
3480 if test "$GCC" = yes; then
3481 CFLAGS="-O2"
3482 else
3483 CFLAGS=
3484 fi
3485fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003486echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3487echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3488if test "${ac_cv_prog_cc_stdc+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491 ac_cv_prog_cc_stdc=no
3492ac_save_CC=$CC
3493cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003494/* confdefs.h. */
3495_ACEOF
3496cat confdefs.h >>conftest.$ac_ext
3497cat >>conftest.$ac_ext <<_ACEOF
3498/* end confdefs.h. */
3499#include <stdarg.h>
3500#include <stdio.h>
3501#include <sys/types.h>
3502#include <sys/stat.h>
3503/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504struct buf { int x; };
3505FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506static char *e (p, i)
3507 char **p;
3508 int i;
3509{
3510 return p[i];
3511}
3512static char *f (char * (*g) (char **, int), char **p, ...)
3513{
3514 char *s;
3515 va_list v;
3516 va_start (v,p);
3517 s = g (p, va_arg (v,int));
3518 va_end (v);
3519 return s;
3520}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003521
3522/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523 function prototypes and stuff, but not '\xHH' hex character constants.
3524 These don't provoke an error unfortunately, instead are silently treated
3525 as 'x'. The following induces an error, until -std1 is added to get
3526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527 array size at least. It's necessary to write '\x00'==0 to get something
3528 that's true only with -std1. */
3529int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3530
John Criswell0c38eaf2003-09-10 15:17:25 +00003531int test (int i, double x);
3532struct s1 {int (*f) (int a);};
3533struct s2 {int (*f) (double a);};
3534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3535int argc;
3536char **argv;
3537int
3538main ()
3539{
3540return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545# Don't try gcc -ansi; that turns off useful extensions and
3546# breaks some systems' header files.
3547# AIX -qlanglvl=ansi
3548# Ultrix and OSF/1 -std1
3549# HP-UX 10.20 and later -Ae
3550# HP-UX older versions -Aa -D_HPUX_SOURCE
3551# SVR4 -Xc -D__EXTENSIONS__
3552for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553do
3554 CC="$ac_save_CC $ac_arg"
3555 rm -f conftest.$ac_objext
3556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003557 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003564 { ac_try='test -z "$ac_c_werror_flag"
3565 || test ! -s conftest.err'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; } &&
3571 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; }; then
3577 ac_cv_prog_cc_stdc=$ac_arg
3578break
3579else
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003584rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003585done
3586rm -f conftest.$ac_ext conftest.$ac_objext
3587CC=$ac_save_CC
3588
3589fi
3590
3591case "x$ac_cv_prog_cc_stdc" in
3592 x|xno)
3593 echo "$as_me:$LINENO: result: none needed" >&5
3594echo "${ECHO_T}none needed" >&6 ;;
3595 *)
3596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3597echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3598 CC="$CC $ac_cv_prog_cc_stdc" ;;
3599esac
3600
John Criswell7a73b802003-06-30 21:59:07 +00003601# Some people use a C++ compiler to compile C. Since we use `exit',
3602# in C++ we need to declare it. In case someone uses the same compiler
3603# for both compiling C and C++ we need to have the C++ compiler decide
3604# the declaration of exit, since it's the most demanding environment.
3605cat >conftest.$ac_ext <<_ACEOF
3606#ifndef __cplusplus
3607 choke me
3608#endif
3609_ACEOF
3610rm -f conftest.$ac_objext
3611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003612 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003619 { ac_try='test -z "$ac_c_werror_flag"
3620 || test ! -s conftest.err'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; } &&
3626 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628 (eval $ac_try) 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003633 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003634 'extern "C" void std::exit (int) throw (); using std::exit;' \
3635 'extern "C" void std::exit (int); using std::exit;' \
3636 'extern "C" void exit (int) throw ();' \
3637 'extern "C" void exit (int);' \
3638 'void exit (int);'
3639do
3640 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003646$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003647#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003648int
3649main ()
3650{
3651exit (42);
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext
3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003658 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 :
3679else
3680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003681sed 's/^/| /' conftest.$ac_ext >&5
3682
John Criswell7a73b802003-06-30 21:59:07 +00003683continue
3684fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003686 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003692$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003693int
3694main ()
3695{
3696exit (42);
3697 ;
3698 return 0;
3699}
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003703 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003704 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 break
3724else
3725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003726sed 's/^/| /' conftest.$ac_ext >&5
3727
John Criswell7a73b802003-06-30 21:59:07 +00003728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003730done
3731rm -f conftest*
3732if test -n "$ac_declaration"; then
3733 echo '#ifdef __cplusplus' >>confdefs.h
3734 echo $ac_declaration >>confdefs.h
3735 echo '#endif' >>confdefs.h
3736fi
3737
3738else
3739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003740sed 's/^/| /' conftest.$ac_ext >&5
3741
John Criswell7a73b802003-06-30 21:59:07 +00003742fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003750ac_ext=cc
3751ac_cpp='$CXXCPP $CPPFLAGS'
3752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3755if test -n "$ac_tool_prefix"; then
3756 for ac_prog in $CCC g++
3757 do
3758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3760echo "$as_me:$LINENO: checking for $ac_word" >&5
3761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3762if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003765 if test -n "$CXX"; then
3766 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003770do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779done
3780done
3781
3782fi
3783fi
3784CXX=$ac_cv_prog_CXX
3785if test -n "$CXX"; then
3786 echo "$as_me:$LINENO: result: $CXX" >&5
3787echo "${ECHO_T}$CXX" >&6
3788else
3789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
3791fi
3792
3793 test -n "$CXX" && break
3794 done
3795fi
3796if test -z "$CXX"; then
3797 ac_ct_CXX=$CXX
3798 for ac_prog in $CCC g++
3799do
3800 # Extract the first word of "$ac_prog", so it can be a program name with args.
3801set dummy $ac_prog; ac_word=$2
3802echo "$as_me:$LINENO: checking for $ac_word" >&5
3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807 if test -n "$ac_ct_CXX"; then
3808 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CXX="$ac_prog"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822done
3823
3824fi
3825fi
3826ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3827if test -n "$ac_ct_CXX"; then
3828 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3829echo "${ECHO_T}$ac_ct_CXX" >&6
3830else
3831 echo "$as_me:$LINENO: result: no" >&5
3832echo "${ECHO_T}no" >&6
3833fi
3834
3835 test -n "$ac_ct_CXX" && break
3836done
3837test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3838
3839 CXX=$ac_ct_CXX
3840fi
3841
3842
3843# Provide some information about the compiler.
3844echo "$as_me:$LINENO:" \
3845 "checking for C++ compiler version" >&5
3846ac_compiler=`set X $ac_compile; echo $2`
3847{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3848 (eval $ac_compiler --version </dev/null >&5) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }
3852{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3853 (eval $ac_compiler -v </dev/null >&5) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }
3857{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3858 (eval $ac_compiler -V </dev/null >&5) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }
3862
3863echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3864echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3865if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
John Criswell7a73b802003-06-30 21:59:07 +00003868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003869/* confdefs.h. */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003874
3875int
3876main ()
3877{
3878#ifndef __GNUC__
3879 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003880#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003881
3882 ;
3883 return 0;
3884}
John Criswell7a73b802003-06-30 21:59:07 +00003885_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003889 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003890 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_cxx_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_compiler_gnu=yes
3909else
3910 echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913ac_compiler_gnu=no
3914fi
3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3917
3918fi
3919echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3920echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3921GXX=`test $ac_compiler_gnu = yes && echo yes`
3922ac_test_CXXFLAGS=${CXXFLAGS+set}
3923ac_save_CXXFLAGS=$CXXFLAGS
3924CXXFLAGS="-g"
3925echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3926echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3927if test "${ac_cv_prog_cxx_g+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
3940
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945rm -f conftest.$ac_objext
3946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -z "$ac_cxx_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv_prog_cxx_g=yes
3968else
3969 echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972ac_cv_prog_cxx_g=no
3973fi
3974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3975fi
3976echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3977echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3978if test "$ac_test_CXXFLAGS" = set; then
3979 CXXFLAGS=$ac_save_CXXFLAGS
3980elif test $ac_cv_prog_cxx_g = yes; then
3981 if test "$GXX" = yes; then
3982 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003983 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003984 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003985 fi
3986else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003987 if test "$GXX" = yes; then
3988 CXXFLAGS="-O2"
3989 else
3990 CXXFLAGS=
3991 fi
John Criswell7a73b802003-06-30 21:59:07 +00003992fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003993for ac_declaration in \
3994 '' \
3995 'extern "C" void std::exit (int) throw (); using std::exit;' \
3996 'extern "C" void std::exit (int); using std::exit;' \
3997 'extern "C" void exit (int) throw ();' \
3998 'extern "C" void exit (int);' \
3999 'void exit (int);'
4000do
4001 cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
4007$ac_declaration
4008#include <stdlib.h>
4009int
4010main ()
4011{
4012exit (42);
4013 ;
4014 return 0;
4015}
4016_ACEOF
4017rm -f conftest.$ac_objext
4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_cxx_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004039 :
4040else
4041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004042sed 's/^/| /' conftest.$ac_ext >&5
4043
John Criswell7a73b802003-06-30 21:59:07 +00004044continue
4045fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004048/* confdefs.h. */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004053$ac_declaration
4054int
4055main ()
4056{
4057exit (42);
4058 ;
4059 return 0;
4060}
John Criswell7a73b802003-06-30 21:59:07 +00004061_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004062rm -f conftest.$ac_objext
4063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004065 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004066 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_cxx_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004084 break
John Criswell7a73b802003-06-30 21:59:07 +00004085else
4086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004087sed 's/^/| /' conftest.$ac_ext >&5
4088
John Criswell7a73b802003-06-30 21:59:07 +00004089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004091done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004092rm -f conftest*
4093if test -n "$ac_declaration"; then
4094 echo '#ifdef __cplusplus' >>confdefs.h
4095 echo $ac_declaration >>confdefs.h
4096 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004097fi
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
John Criswell7a73b802003-06-30 21:59:07 +00004105echo "$as_me:$LINENO: checking " >&5
4106echo $ECHO_N "checking ... $ECHO_C" >&6
4107if test "${ac_cv_has_flex+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109else
4110 for ac_prog in flex lex
4111do
4112 # Extract the first word of "$ac_prog", so it can be a program name with args.
4113set dummy $ac_prog; ac_word=$2
4114echo "$as_me:$LINENO: checking for $ac_word" >&5
4115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4116if test "${ac_cv_prog_LEX+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 if test -n "$LEX"; then
4120 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_LEX="$ac_prog"
4130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4132 fi
4133done
4134done
4135
4136fi
4137fi
4138LEX=$ac_cv_prog_LEX
4139if test -n "$LEX"; then
4140 echo "$as_me:$LINENO: result: $LEX" >&5
4141echo "${ECHO_T}$LEX" >&6
4142else
4143 echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145fi
4146
4147 test -n "$LEX" && break
4148done
4149test -n "$LEX" || LEX=":"
4150
4151if test -z "$LEXLIB"
4152then
4153 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4154echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4155if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158 ac_check_lib_save_LIBS=$LIBS
4159LIBS="-lfl $LIBS"
4160cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004161/* confdefs.h. */
4162_ACEOF
4163cat confdefs.h >>conftest.$ac_ext
4164cat >>conftest.$ac_ext <<_ACEOF
4165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004166
4167/* Override any gcc2 internal prototype to avoid an error. */
4168#ifdef __cplusplus
4169extern "C"
4170#endif
4171/* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4173char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004174int
4175main ()
4176{
4177yywrap ();
4178 ;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest.$ac_objext conftest$ac_exeext
4183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004184 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004185 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004191 { ac_try='test -z "$ac_c_werror_flag"
4192 || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 (eval $ac_try) 2>&5
4201 ac_status=$?
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 ac_cv_lib_fl_yywrap=yes
4205else
4206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004207sed 's/^/| /' conftest.$ac_ext >&5
4208
John Criswell7a73b802003-06-30 21:59:07 +00004209ac_cv_lib_fl_yywrap=no
4210fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004211rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004213LIBS=$ac_check_lib_save_LIBS
4214fi
4215echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4216echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4217if test $ac_cv_lib_fl_yywrap = yes; then
4218 LEXLIB="-lfl"
4219else
4220 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4221echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4222if test "${ac_cv_lib_l_yywrap+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225 ac_check_lib_save_LIBS=$LIBS
4226LIBS="-ll $LIBS"
4227cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004233
4234/* Override any gcc2 internal prototype to avoid an error. */
4235#ifdef __cplusplus
4236extern "C"
4237#endif
4238/* We use char because int might match the return type of a gcc2
4239 builtin and then its argument prototype would still apply. */
4240char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004241int
4242main ()
4243{
4244yywrap ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004251 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004258 { ac_try='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 ac_cv_lib_l_yywrap=yes
4272else
4273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004274sed 's/^/| /' conftest.$ac_ext >&5
4275
John Criswell7a73b802003-06-30 21:59:07 +00004276ac_cv_lib_l_yywrap=no
4277fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004278rm -f conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004280LIBS=$ac_check_lib_save_LIBS
4281fi
4282echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4283echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4284if test $ac_cv_lib_l_yywrap = yes; then
4285 LEXLIB="-ll"
4286fi
4287
4288fi
4289
4290fi
4291
4292if test "x$LEX" != "x:"; then
4293 echo "$as_me:$LINENO: checking lex output file root" >&5
4294echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4295if test "${ac_cv_prog_lex_root+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298 # The minimal lex program is just a single line: %%. But some broken lexes
4299# (Solaris, I think it was) want two %% lines, so accommodate them.
4300cat >conftest.l <<_ACEOF
4301%%
4302%%
4303_ACEOF
4304{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4305 (eval $LEX conftest.l) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }
4309if test -f lex.yy.c; then
4310 ac_cv_prog_lex_root=lex.yy
4311elif test -f lexyy.c; then
4312 ac_cv_prog_lex_root=lexyy
4313else
4314 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4315echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4316 { (exit 1); exit 1; }; }
4317fi
4318fi
4319echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4320echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4321rm -f conftest.l
4322LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4323
4324echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4325echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4326if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 # POSIX says lex can declare yytext either as a pointer or an array; the
4330# default is implementation-dependent. Figure out which it is, since
4331# not all implementations provide the %pointer and %array declarations.
4332ac_cv_prog_lex_yytext_pointer=no
4333echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4334ac_save_LIBS=$LIBS
4335LIBS="$LIBS $LEXLIB"
4336cat >conftest.$ac_ext <<_ACEOF
4337`cat $LEX_OUTPUT_ROOT.c`
4338_ACEOF
4339rm -f conftest.$ac_objext conftest$ac_exeext
4340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004341 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_prog_lex_yytext_pointer=yes
4362else
4363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004364sed 's/^/| /' conftest.$ac_ext >&5
4365
John Criswell7a73b802003-06-30 21:59:07 +00004366fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004367rm -f conftest.err conftest.$ac_objext \
4368 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004369LIBS=$ac_save_LIBS
4370rm -f "${LEX_OUTPUT_ROOT}.c"
4371
4372fi
4373echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4374echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4375if test $ac_cv_prog_lex_yytext_pointer = yes; then
4376
4377cat >>confdefs.h <<\_ACEOF
4378#define YYTEXT_POINTER 1
4379_ACEOF
4380
4381fi
4382
4383fi
4384
4385fi
4386echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4387echo "${ECHO_T}$ac_cv_has_flex" >&6
4388if test "$LEX" != "flex"; then
4389 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4390echo "$as_me: error: flex not found but required" >&2;}
4391 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004392else
4393 FLEX=flex
4394
John Criswell7a73b802003-06-30 21:59:07 +00004395fi
4396
4397echo "$as_me:$LINENO: checking " >&5
4398echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004399if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 for ac_prog in 'bison -y' byacc
4403do
4404 # Extract the first word of "$ac_prog", so it can be a program name with args.
4405set dummy $ac_prog; ac_word=$2
4406echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408if test "${ac_cv_prog_YACC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 if test -n "$YACC"; then
4412 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_YACC="$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425done
4426done
4427
4428fi
4429fi
4430YACC=$ac_cv_prog_YACC
4431if test -n "$YACC"; then
4432 echo "$as_me:$LINENO: result: $YACC" >&5
4433echo "${ECHO_T}$YACC" >&6
4434else
4435 echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437fi
4438
4439 test -n "$YACC" && break
4440done
4441test -n "$YACC" || YACC="yacc"
4442
4443
4444fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004445echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4446echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004447if test "$YACC" != "bison -y"; then
4448 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4449echo "$as_me: error: bison not found but required" >&2;}
4450 { (exit 1); exit 1; }; }
4451else
Brian Gaeke12810632004-01-13 06:52:10 +00004452 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004453
4454fi
4455
Reid Spencer17795972004-11-18 09:47:37 +00004456
4457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004458
John Criswell7a73b802003-06-30 21:59:07 +00004459# Check whether --enable-shared or --disable-shared was given.
4460if test "${enable_shared+set}" = set; then
4461 enableval="$enable_shared"
4462 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00004463 case $enableval in
4464 yes) enable_shared=yes ;;
4465 no) enable_shared=no ;;
4466 *)
4467 enable_shared=no
4468 # Look at the argument we got. We use all the common list separators.
4469 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4470 for pkg in $enableval; do
4471 IFS="$lt_save_ifs"
4472 if test "X$pkg" = "X$p"; then
4473 enable_shared=yes
4474 fi
4475 done
4476 IFS="$lt_save_ifs"
4477 ;;
4478 esac
John Criswell7a73b802003-06-30 21:59:07 +00004479else
4480 enable_shared=yes
4481fi;
John Criswell47fdd832003-07-14 16:52:07 +00004482
John Criswell7a73b802003-06-30 21:59:07 +00004483# Check whether --enable-static or --disable-static was given.
4484if test "${enable_static+set}" = set; then
4485 enableval="$enable_static"
4486 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00004487 case $enableval in
4488 yes) enable_static=yes ;;
4489 no) enable_static=no ;;
4490 *)
4491 enable_static=no
4492 # Look at the argument we got. We use all the common list separators.
4493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4494 for pkg in $enableval; do
4495 IFS="$lt_save_ifs"
4496 if test "X$pkg" = "X$p"; then
4497 enable_static=yes
4498 fi
4499 done
4500 IFS="$lt_save_ifs"
4501 ;;
4502 esac
John Criswell7a73b802003-06-30 21:59:07 +00004503else
4504 enable_static=yes
4505fi;
John Criswell47fdd832003-07-14 16:52:07 +00004506
John Criswell7a73b802003-06-30 21:59:07 +00004507# Check whether --enable-fast-install or --disable-fast-install was given.
4508if test "${enable_fast_install+set}" = set; then
4509 enableval="$enable_fast_install"
4510 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00004511 case $enableval in
4512 yes) enable_fast_install=yes ;;
4513 no) enable_fast_install=no ;;
4514 *)
4515 enable_fast_install=no
4516 # Look at the argument we got. We use all the common list separators.
4517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4518 for pkg in $enableval; do
4519 IFS="$lt_save_ifs"
4520 if test "X$pkg" = "X$p"; then
4521 enable_fast_install=yes
4522 fi
4523 done
4524 IFS="$lt_save_ifs"
4525 ;;
4526 esac
John Criswell7a73b802003-06-30 21:59:07 +00004527else
4528 enable_fast_install=yes
4529fi;
John Criswell47fdd832003-07-14 16:52:07 +00004530
4531echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4532echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4533if test "${lt_cv_path_SED+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 # Loop through the user's path and test for sed and gsed.
4537# Then use that list of sed's as ones to test for truncation.
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for lt_ac_prog in sed gsed; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4546 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4547 fi
4548 done
4549 done
4550done
4551lt_ac_max=0
4552lt_ac_count=0
4553# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4554# along with /bin/sed that truncates output.
4555for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4556 test ! -f $lt_ac_sed && break
4557 cat /dev/null > conftest.in
4558 lt_ac_count=0
4559 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4560 # Check for GNU sed and select it if it is found.
4561 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4562 lt_cv_path_SED=$lt_ac_sed
4563 break
4564 fi
4565 while true; do
4566 cat conftest.in conftest.in >conftest.tmp
4567 mv conftest.tmp conftest.in
4568 cp conftest.in conftest.nl
4569 echo >>conftest.nl
4570 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4571 cmp -s conftest.out conftest.nl || break
4572 # 10000 chars as input seems more than enough
4573 test $lt_ac_count -gt 10 && break
4574 lt_ac_count=`expr $lt_ac_count + 1`
4575 if test $lt_ac_count -gt $lt_ac_max; then
4576 lt_ac_max=$lt_ac_count
4577 lt_cv_path_SED=$lt_ac_sed
4578 fi
4579 done
4580done
John Criswell47fdd832003-07-14 16:52:07 +00004581
John Criswell7a73b802003-06-30 21:59:07 +00004582fi
4583
Reid Spencer2706f8c2004-09-19 23:53:36 +00004584SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00004585echo "$as_me:$LINENO: result: $SED" >&5
4586echo "${ECHO_T}$SED" >&6
4587
4588echo "$as_me:$LINENO: checking for egrep" >&5
4589echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4590if test "${ac_cv_prog_egrep+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4594 then ac_cv_prog_egrep='grep -E'
4595 else ac_cv_prog_egrep='egrep'
4596 fi
4597fi
4598echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4599echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4600 EGREP=$ac_cv_prog_egrep
4601
4602
John Criswell7a73b802003-06-30 21:59:07 +00004603
4604# Check whether --with-gnu-ld or --without-gnu-ld was given.
4605if test "${with_gnu_ld+set}" = set; then
4606 withval="$with_gnu_ld"
4607 test "$withval" = no || with_gnu_ld=yes
4608else
4609 with_gnu_ld=no
4610fi;
4611ac_prog=ld
4612if test "$GCC" = yes; then
4613 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004614 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4615echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004616 case $host in
4617 *-*-mingw*)
4618 # gcc leaves a trailing carriage return which upsets mingw
4619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4620 *)
4621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4622 esac
4623 case $ac_prog in
4624 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004625 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004626 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004627 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00004628 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004629 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004630 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004631 done
4632 test -z "$LD" && LD="$ac_prog"
4633 ;;
4634 "")
4635 # If it fails, then pretend we aren't using GCC.
4636 ac_prog=ld
4637 ;;
4638 *)
4639 # If it is relative, then search for the first ld in PATH.
4640 with_gnu_ld=unknown
4641 ;;
4642 esac
4643elif test "$with_gnu_ld" = yes; then
4644 echo "$as_me:$LINENO: checking for GNU ld" >&5
4645echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4646else
4647 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4648echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4649fi
4650if test "${lt_cv_path_LD+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004655 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004656 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004657 test -z "$ac_dir" && ac_dir=.
4658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4659 lt_cv_path_LD="$ac_dir/$ac_prog"
4660 # Check to see if the program is GNU ld. I'd rather use --version,
4661 # but apparently some GNU ld's only accept -v.
4662 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4664 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004665 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004666 ;;
4667 *)
John Criswell7a73b802003-06-30 21:59:07 +00004668 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004669 ;;
4670 esac
John Criswell7a73b802003-06-30 21:59:07 +00004671 fi
4672 done
John Criswell47fdd832003-07-14 16:52:07 +00004673 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004674else
4675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4676fi
4677fi
4678
4679LD="$lt_cv_path_LD"
4680if test -n "$LD"; then
4681 echo "$as_me:$LINENO: result: $LD" >&5
4682echo "${ECHO_T}$LD" >&6
4683else
4684 echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4688echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4689 { (exit 1); exit 1; }; }
4690echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4691echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4692if test "${lt_cv_prog_gnu_ld+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00004696case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00004697*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004698 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004699 ;;
4700*)
John Criswell7a73b802003-06-30 21:59:07 +00004701 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004702 ;;
4703esac
John Criswell7a73b802003-06-30 21:59:07 +00004704fi
4705echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4706echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4707with_gnu_ld=$lt_cv_prog_gnu_ld
4708
4709
4710echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4711echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4712if test "${lt_cv_ld_reload_flag+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 lt_cv_ld_reload_flag='-r'
4716fi
4717echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4718echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4719reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004720case $reload_flag in
4721"" | " "*) ;;
4722*) reload_flag=" $reload_flag" ;;
4723esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00004724reload_cmds='$LD$reload_flag -o $output$reload_objs'
4725case $host_os in
4726 darwin*)
4727 if test "$GCC" = yes; then
4728 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4729 else
4730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4731 fi
4732 ;;
4733esac
John Criswell7a73b802003-06-30 21:59:07 +00004734
4735echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4736echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4737if test "${lt_cv_path_NM+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740 if test -n "$NM"; then
4741 # Let the user override the test.
4742 lt_cv_path_NM="$NM"
4743else
John Criswell47fdd832003-07-14 16:52:07 +00004744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004745 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004746 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004747 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004748 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4749 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004750 # Check to see if the nm accepts a BSD-compat flag.
4751 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4752 # nm: unknown option "B" ignored
4753 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004754 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4755 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004756 lt_cv_path_NM="$tmp_nm -B"
4757 break
John Criswell47fdd832003-07-14 16:52:07 +00004758 ;;
4759 *)
4760 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4761 */dev/null*)
4762 lt_cv_path_NM="$tmp_nm -p"
4763 break
4764 ;;
4765 *)
4766 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4767 continue # so that we can try to find one that supports BSD flags
4768 ;;
4769 esac
4770 esac
John Criswell7a73b802003-06-30 21:59:07 +00004771 fi
4772 done
John Criswell47fdd832003-07-14 16:52:07 +00004773 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004774 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4775fi
4776fi
John Criswell47fdd832003-07-14 16:52:07 +00004777echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4778echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004779NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004780
4781echo "$as_me:$LINENO: checking whether ln -s works" >&5
4782echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4783LN_S=$as_ln_s
4784if test "$LN_S" = "ln -s"; then
4785 echo "$as_me:$LINENO: result: yes" >&5
4786echo "${ECHO_T}yes" >&6
4787else
4788 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4789echo "${ECHO_T}no, using $LN_S" >&6
4790fi
4791
John Criswell47fdd832003-07-14 16:52:07 +00004792echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4793echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004794if test "${lt_cv_deplibs_check_method+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 lt_cv_file_magic_cmd='$MAGIC_CMD'
4798lt_cv_file_magic_test_file=
4799lt_cv_deplibs_check_method='unknown'
4800# Need to set the preceding variable on all platforms that support
4801# interlibrary dependencies.
4802# 'none' -- dependencies not supported.
4803# `unknown' -- same as none, but documents that we really don't know.
4804# 'pass_all' -- all dependencies passed with no checks.
4805# 'test_compile' -- check by making test program.
4806# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004807# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004808# If you have `file' or equivalent on your system and you're not sure
4809# whether `pass_all' will *always* work, you probably want this one.
4810
4811case $host_os in
4812aix4* | aix5*)
4813 lt_cv_deplibs_check_method=pass_all
4814 ;;
4815
4816beos*)
4817 lt_cv_deplibs_check_method=pass_all
4818 ;;
4819
Reid Spencer2706f8c2004-09-19 23:53:36 +00004820bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00004821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4822 lt_cv_file_magic_cmd='/usr/bin/file -L'
4823 lt_cv_file_magic_test_file=/shlib/libc.so
4824 ;;
4825
Reid Spencer2706f8c2004-09-19 23:53:36 +00004826cygwin*)
4827 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00004828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004829 lt_cv_file_magic_cmd='func_win32_libid'
4830 ;;
4831
4832mingw* | pw32*)
4833 # Base MSYS/MinGW do not provide the 'file' command needed by
4834 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4835 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4836 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004837 ;;
4838
4839darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004840 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004841 ;;
4842
Reid Spencer2706f8c2004-09-19 23:53:36 +00004843freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004844 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4845 case $host_cpu in
4846 i*86 )
4847 # Not sure whether the presence of OpenBSD here was a mistake.
4848 # Let's accept both of them until this is cleared up.
4849 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4850 lt_cv_file_magic_cmd=/usr/bin/file
4851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4852 ;;
4853 esac
4854 else
4855 lt_cv_deplibs_check_method=pass_all
4856 fi
4857 ;;
4858
4859gnu*)
4860 lt_cv_deplibs_check_method=pass_all
4861 ;;
4862
John Criswell47fdd832003-07-14 16:52:07 +00004863hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004864 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004865 case "$host_cpu" in
4866 ia64*)
4867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4868 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4869 ;;
4870 hppa*64*)
4871 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]'
4872 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4873 ;;
4874 *)
4875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4876 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4877 ;;
4878 esac
John Criswell7a73b802003-06-30 21:59:07 +00004879 ;;
4880
John Criswell47fdd832003-07-14 16:52:07 +00004881irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004882 case $LD in
4883 *-32|*"-32 ") libmagic=32-bit;;
4884 *-n32|*"-n32 ") libmagic=N32;;
4885 *-64|*"-64 ") libmagic=64-bit;;
4886 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004887 esac
John Criswell7a73b802003-06-30 21:59:07 +00004888 lt_cv_deplibs_check_method=pass_all
4889 ;;
4890
4891# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004892linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004893 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004894 ;;
4895
4896netbsd*)
4897 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004899 else
John Criswell47fdd832003-07-14 16:52:07 +00004900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004901 fi
4902 ;;
4903
4904newos6*)
4905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4906 lt_cv_file_magic_cmd=/usr/bin/file
4907 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4908 ;;
4909
Reid Spencer2706f8c2004-09-19 23:53:36 +00004910nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004911 lt_cv_deplibs_check_method=unknown
4912 ;;
4913
John Criswell7a73b802003-06-30 21:59:07 +00004914openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004915 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 +00004916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004917 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004919 fi
4920 ;;
4921
4922osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925
4926sco3.2v5*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930solaris*)
4931 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004932 ;;
4933
John Criswell7a73b802003-06-30 21:59:07 +00004934sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4935 case $host_vendor in
4936 motorola)
4937 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]'
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4939 ;;
4940 ncr)
4941 lt_cv_deplibs_check_method=pass_all
4942 ;;
4943 sequent)
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4946 ;;
4947 sni)
4948 lt_cv_file_magic_cmd='/bin/file'
4949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950 lt_cv_file_magic_test_file=/lib/libc.so
4951 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004952 siemens)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004955 esac
4956 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004957
4958sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4959 lt_cv_deplibs_check_method=pass_all
4960 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004961esac
4962
4963fi
4964echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4965echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4966file_magic_cmd=$lt_cv_file_magic_cmd
4967deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004968test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004969
4970
4971
4972
John Criswell47fdd832003-07-14 16:52:07 +00004973# If no C compiler was specified, use CC.
4974LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004975
John Criswell47fdd832003-07-14 16:52:07 +00004976# Allow CC to be a program name with arguments.
4977compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004978
John Criswell47fdd832003-07-14 16:52:07 +00004979# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4980if test "${enable_libtool_lock+set}" = set; then
4981 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004982
John Criswell47fdd832003-07-14 16:52:07 +00004983fi;
4984test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004985
John Criswell47fdd832003-07-14 16:52:07 +00004986# Some flags need to be propagated to the compiler or linker for good
4987# libtool support.
4988case $host in
4989ia64-*-hpux*)
4990 # Find out which ABI we are using.
4991 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004997 case `/usr/bin/file conftest.$ac_objext` in
4998 *ELF-32*)
4999 HPUX_IA64_MODE="32"
5000 ;;
5001 *ELF-64*)
5002 HPUX_IA64_MODE="64"
5003 ;;
5004 esac
5005 fi
5006 rm -rf conftest*
5007 ;;
5008*-*-irix6*)
5009 # Find out which ABI we are using.
Reid Spencer1f319422004-11-29 04:56:35 +00005010 echo '#line 5010 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00005013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005015 (exit $ac_status); }; then
5016 if test "$lt_cv_prog_gnu_ld" = yes; then
5017 case `/usr/bin/file conftest.$ac_objext` in
5018 *32-bit*)
5019 LD="${LD-ld} -melf32bsmip"
5020 ;;
5021 *N32*)
5022 LD="${LD-ld} -melf32bmipn32"
5023 ;;
5024 *64-bit*)
5025 LD="${LD-ld} -melf64bmip"
5026 ;;
5027 esac
5028 else
5029 case `/usr/bin/file conftest.$ac_objext` in
5030 *32-bit*)
5031 LD="${LD-ld} -32"
5032 ;;
5033 *N32*)
5034 LD="${LD-ld} -n32"
5035 ;;
5036 *64-bit*)
5037 LD="${LD-ld} -64"
5038 ;;
5039 esac
5040 fi
5041 fi
5042 rm -rf conftest*
5043 ;;
John Criswell7a73b802003-06-30 21:59:07 +00005044
John Criswell47fdd832003-07-14 16:52:07 +00005045x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5046 # Find out which ABI we are using.
5047 echo 'int i;' > conftest.$ac_ext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; then
5053 case "`/usr/bin/file conftest.o`" in
5054 *32-bit*)
5055 case $host in
5056 x86_64-*linux*)
5057 LD="${LD-ld} -m elf_i386"
5058 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005059 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00005060 LD="${LD-ld} -m elf32ppclinux"
5061 ;;
5062 s390x-*linux*)
5063 LD="${LD-ld} -m elf_s390"
5064 ;;
5065 sparc64-*linux*)
5066 LD="${LD-ld} -m elf32_sparc"
5067 ;;
5068 esac
5069 ;;
5070 *64-bit*)
5071 case $host in
5072 x86_64-*linux*)
5073 LD="${LD-ld} -m elf_x86_64"
5074 ;;
5075 ppc*-*linux*|powerpc*-*linux*)
5076 LD="${LD-ld} -m elf64ppc"
5077 ;;
5078 s390*-*linux*)
5079 LD="${LD-ld} -m elf64_s390"
5080 ;;
5081 sparc*-*linux*)
5082 LD="${LD-ld} -m elf64_sparc"
5083 ;;
5084 esac
5085 ;;
5086 esac
5087 fi
5088 rm -rf conftest*
5089 ;;
5090
5091*-*-sco3.2v5*)
5092 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5093 SAVE_CFLAGS="$CFLAGS"
5094 CFLAGS="$CFLAGS -belf"
5095 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5096echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5097if test "${lt_cv_cc_needs_belf+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 ac_ext=c
5101ac_cpp='$CPP $CPPFLAGS'
5102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005112
John Criswell47fdd832003-07-14 16:52:07 +00005113_ACEOF
5114rm -f conftest.$ac_objext conftest$ac_exeext
5115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005116 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005122 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005123 { ac_try='test -z "$ac_c_werror_flag"
5124 || test ! -s conftest.err'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; } &&
5130 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00005137else
John Criswell47fdd832003-07-14 16:52:07 +00005138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005139sed 's/^/| /' conftest.$ac_ext >&5
5140
John Criswell47fdd832003-07-14 16:52:07 +00005141lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00005142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005143rm -f conftest.err conftest.$ac_objext \
5144 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005145 ac_ext=c
5146ac_cpp='$CPP $CPPFLAGS'
5147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5149ac_compiler_gnu=$ac_cv_c_compiler_gnu
5150
John Criswell7a73b802003-06-30 21:59:07 +00005151fi
John Criswell47fdd832003-07-14 16:52:07 +00005152echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5153echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5154 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5155 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5156 CFLAGS="$SAVE_CFLAGS"
5157 fi
5158 ;;
5159
5160esac
5161
5162need_locks="$enable_libtool_lock"
5163
John Criswell7a73b802003-06-30 21:59:07 +00005164
5165
5166echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5167echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5168if test "${ac_cv_header_stdc+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005177#include <stdlib.h>
5178#include <stdarg.h>
5179#include <string.h>
5180#include <float.h>
5181
John Criswell0c38eaf2003-09-10 15:17:25 +00005182int
5183main ()
5184{
5185
5186 ;
5187 return 0;
5188}
John Criswell7a73b802003-06-30 21:59:07 +00005189_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005190rm -f conftest.$ac_objext
5191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005192 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005198 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005199 { ac_try='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005212 ac_cv_header_stdc=yes
5213else
5214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005215sed 's/^/| /' conftest.$ac_ext >&5
5216
5217ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005218fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005220
5221if test $ac_cv_header_stdc = yes; then
5222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005224/* confdefs.h. */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005229#include <string.h>
5230
5231_ACEOF
5232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005233 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005234 :
5235else
5236 ac_cv_header_stdc=no
5237fi
5238rm -f conftest*
5239
5240fi
5241
5242if test $ac_cv_header_stdc = yes; then
5243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005250#include <stdlib.h>
5251
5252_ACEOF
5253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005254 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005255 :
5256else
5257 ac_cv_header_stdc=no
5258fi
5259rm -f conftest*
5260
5261fi
5262
5263if test $ac_cv_header_stdc = yes; then
5264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265 if test "$cross_compiling" = yes; then
5266 :
5267else
5268 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005274#include <ctype.h>
5275#if ((' ' & 0x0FF) == 0x020)
5276# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5278#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005279# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005280 (('a' <= (c) && (c) <= 'i') \
5281 || ('j' <= (c) && (c) <= 'r') \
5282 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005283# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5284#endif
5285
5286#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5287int
5288main ()
5289{
5290 int i;
5291 for (i = 0; i < 256; i++)
5292 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005293 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005294 exit(2);
5295 exit (0);
5296}
5297_ACEOF
5298rm -f conftest$ac_exeext
5299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5300 (eval $ac_link) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 :
5310else
5311 echo "$as_me: program exited with status $ac_status" >&5
5312echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005313sed 's/^/| /' conftest.$ac_ext >&5
5314
John Criswell7a73b802003-06-30 21:59:07 +00005315( exit $ac_status )
5316ac_cv_header_stdc=no
5317fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005319fi
5320fi
5321fi
5322echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5323echo "${ECHO_T}$ac_cv_header_stdc" >&6
5324if test $ac_cv_header_stdc = yes; then
5325
5326cat >>confdefs.h <<\_ACEOF
5327#define STDC_HEADERS 1
5328_ACEOF
5329
5330fi
5331
5332# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005343 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00005344do
5345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5346echo "$as_me:$LINENO: checking for $ac_header" >&5
5347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5348if eval "test \"\${$as_ac_Header+set}\" = set"; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005352/* confdefs.h. */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005357$ac_includes_default
5358
5359#include <$ac_header>
5360_ACEOF
5361rm -f conftest.$ac_objext
5362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005363 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005370 { ac_try='test -z "$ac_c_werror_flag"
5371 || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 (eval $ac_try) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00005378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379 (eval $ac_try) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_Header=yes"
5384else
5385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005386sed 's/^/| /' conftest.$ac_ext >&5
5387
John Criswell7a73b802003-06-30 21:59:07 +00005388eval "$as_ac_Header=no"
5389fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005391fi
5392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5394if test `eval echo '${'$as_ac_Header'}'` = yes; then
5395 cat >>confdefs.h <<_ACEOF
5396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397_ACEOF
5398
5399fi
5400
5401done
5402
5403
5404
5405for ac_header in dlfcn.h
5406do
5407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00005408if eval "test \"\${$as_ac_Header+set}\" = set"; then
5409 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00005410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5411if eval "test \"\${$as_ac_Header+set}\" = set"; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00005413fi
5414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005416else
Brian Gaeke0a621332004-09-08 20:38:05 +00005417 # Is the header compilable?
5418echo "$as_me:$LINENO: checking $ac_header usability" >&5
5419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5420cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005421/* confdefs.h. */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005426$ac_includes_default
5427#include <$ac_header>
5428_ACEOF
5429rm -f conftest.$ac_objext
5430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005431 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005438 { ac_try='test -z "$ac_c_werror_flag"
5439 || test ! -s conftest.err'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441 (eval $ac_try) 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; } &&
5445 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00005446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447 (eval $ac_try) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00005451 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00005452else
5453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005454sed 's/^/| /' conftest.$ac_ext >&5
5455
Brian Gaeke0a621332004-09-08 20:38:05 +00005456ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00005457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00005459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5460echo "${ECHO_T}$ac_header_compiler" >&6
5461
5462# Is the header present?
5463echo "$as_me:$LINENO: checking $ac_header presence" >&5
5464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5465cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00005466/* confdefs.h. */
5467_ACEOF
5468cat confdefs.h >>conftest.$ac_ext
5469cat >>conftest.$ac_ext <<_ACEOF
5470/* end confdefs.h. */
5471#include <$ac_header>
5472_ACEOF
5473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null; then
5481 if test -s conftest.err; then
5482 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00005484 else
5485 ac_cpp_err=
5486 fi
5487else
5488 ac_cpp_err=yes
5489fi
5490if test -z "$ac_cpp_err"; then
5491 ac_header_preproc=yes
5492else
5493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_header_preproc=no
5497fi
5498rm -f conftest.err conftest.$ac_ext
5499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5500echo "${ECHO_T}$ac_header_preproc" >&6
5501
5502# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5504 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00005505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00005507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5509 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00005510 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005511 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00005512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00005514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00005520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00005522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00005524 (
5525 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00005526## ----------------------------------- ##
5527## Report this to llvmbugs@cs.uiuc.edu ##
5528## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00005529_ASBOX
5530 ) |
5531 sed "s/^/$as_me: WARNING: /" >&2
5532 ;;
5533esac
5534echo "$as_me:$LINENO: checking for $ac_header" >&5
5535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5536if eval "test \"\${$as_ac_Header+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005539 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00005540fi
5541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00005543
5544fi
John Criswell7a73b802003-06-30 21:59:07 +00005545if test `eval echo '${'$as_ac_Header'}'` = yes; then
5546 cat >>confdefs.h <<_ACEOF
5547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5548_ACEOF
5549
5550fi
5551
5552done
5553
Reid Spencer2706f8c2004-09-19 23:53:36 +00005554
5555
5556if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5557 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5558 (test "X$CXX" != "Xg++"))) ; then
5559 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00005560ac_cpp='$CXXCPP $CPPFLAGS'
5561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5564echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5565echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5566if test -z "$CXXCPP"; then
5567 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
John Criswell47fdd832003-07-14 16:52:07 +00005570 # Double quotes because CXXCPP needs to be expanded
5571 for CXXCPP in "$CXX -E" "/lib/cpp"
5572 do
5573 ac_preproc_ok=false
5574for ac_cxx_preproc_warn_flag in '' yes
5575do
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588#ifdef __STDC__
5589# include <limits.h>
5590#else
5591# include <assert.h>
5592#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00005593 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00005594_ACEOF
5595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5597 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005598 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev/null; then
5603 if test -s conftest.err; then
5604 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00005606 else
John Criswell47fdd832003-07-14 16:52:07 +00005607 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00005608 fi
John Criswell47fdd832003-07-14 16:52:07 +00005609else
5610 ac_cpp_err=yes
5611fi
5612if test -z "$ac_cpp_err"; then
5613 :
5614else
5615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005616sed 's/^/| /' conftest.$ac_ext >&5
5617
John Criswell47fdd832003-07-14 16:52:07 +00005618 # Broken: fails on valid input.
5619continue
5620fi
5621rm -f conftest.err conftest.$ac_ext
5622
5623 # OK, works on sane cases. Now check whether non-existent headers
5624 # can be detected and how.
5625 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005631#include <ac_nonexistent.h>
5632_ACEOF
5633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5635 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005636 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } >/dev/null; then
5641 if test -s conftest.err; then
5642 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005643 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005644 else
5645 ac_cpp_err=
5646 fi
5647else
5648 ac_cpp_err=yes
5649fi
5650if test -z "$ac_cpp_err"; then
5651 # Broken: success on invalid input.
5652continue
5653else
5654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005655sed 's/^/| /' conftest.$ac_ext >&5
5656
John Criswell47fdd832003-07-14 16:52:07 +00005657 # Passes both tests.
5658ac_preproc_ok=:
5659break
5660fi
5661rm -f conftest.err conftest.$ac_ext
5662
5663done
5664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5665rm -f conftest.err conftest.$ac_ext
5666if $ac_preproc_ok; then
5667 break
John Criswell7a73b802003-06-30 21:59:07 +00005668fi
5669
John Criswell47fdd832003-07-14 16:52:07 +00005670 done
5671 ac_cv_prog_CXXCPP=$CXXCPP
5672
5673fi
5674 CXXCPP=$ac_cv_prog_CXXCPP
5675else
5676 ac_cv_prog_CXXCPP=$CXXCPP
5677fi
5678echo "$as_me:$LINENO: result: $CXXCPP" >&5
5679echo "${ECHO_T}$CXXCPP" >&6
5680ac_preproc_ok=false
5681for ac_cxx_preproc_warn_flag in '' yes
5682do
5683 # Use a header file that comes with gcc, so configuring glibc
5684 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5686 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005687 # On the NeXT, cc -E runs the code through the compiler's parser,
5688 # not just through cpp. "Syntax error" is here to catch this case.
5689 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005690/* confdefs.h. */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h. */
5695#ifdef __STDC__
5696# include <limits.h>
5697#else
5698# include <assert.h>
5699#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00005700 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00005701_ACEOF
5702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5704 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005705 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null; then
5710 if test -s conftest.err; then
5711 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005712 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005713 else
5714 ac_cpp_err=
5715 fi
5716else
5717 ac_cpp_err=yes
5718fi
5719if test -z "$ac_cpp_err"; then
5720 :
5721else
5722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005723sed 's/^/| /' conftest.$ac_ext >&5
5724
John Criswell47fdd832003-07-14 16:52:07 +00005725 # Broken: fails on valid input.
5726continue
5727fi
5728rm -f conftest.err conftest.$ac_ext
5729
5730 # OK, works on sane cases. Now check whether non-existent headers
5731 # can be detected and how.
5732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005733/* confdefs.h. */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005738#include <ac_nonexistent.h>
5739_ACEOF
5740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5742 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005743 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } >/dev/null; then
5748 if test -s conftest.err; then
5749 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00005750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00005751 else
5752 ac_cpp_err=
5753 fi
5754else
5755 ac_cpp_err=yes
5756fi
5757if test -z "$ac_cpp_err"; then
5758 # Broken: success on invalid input.
5759continue
5760else
5761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005762sed 's/^/| /' conftest.$ac_ext >&5
5763
John Criswell47fdd832003-07-14 16:52:07 +00005764 # Passes both tests.
5765ac_preproc_ok=:
5766break
5767fi
5768rm -f conftest.err conftest.$ac_ext
5769
5770done
5771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5772rm -f conftest.err conftest.$ac_ext
5773if $ac_preproc_ok; then
5774 :
5775else
John Criswell0c38eaf2003-09-10 15:17:25 +00005776 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5777See \`config.log' for more details." >&5
5778echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5779See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005780 { (exit 1); exit 1; }; }
5781fi
5782
5783ac_ext=cc
5784ac_cpp='$CXXCPP $CPPFLAGS'
5785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5788
Reid Spencer2706f8c2004-09-19 23:53:36 +00005789fi
5790
John Criswell47fdd832003-07-14 16:52:07 +00005791
5792ac_ext=f
5793ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5794ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5796if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005797 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 +00005798 do
5799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801echo "$as_me:$LINENO: checking for $ac_word" >&5
5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803if test "${ac_cv_prog_F77+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806 if test -n "$F77"; then
5807 ac_cv_prog_F77="$F77" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821done
5822
5823fi
5824fi
5825F77=$ac_cv_prog_F77
5826if test -n "$F77"; then
5827 echo "$as_me:$LINENO: result: $F77" >&5
5828echo "${ECHO_T}$F77" >&6
5829else
5830 echo "$as_me:$LINENO: result: no" >&5
5831echo "${ECHO_T}no" >&6
5832fi
5833
5834 test -n "$F77" && break
5835 done
5836fi
5837if test -z "$F77"; then
5838 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005839 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 +00005840do
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842set dummy $ac_prog; ac_word=$2
5843echo "$as_me:$LINENO: checking for $ac_word" >&5
5844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848 if test -n "$ac_ct_F77"; then
5849 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_ac_ct_F77="$ac_prog"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863done
5864
5865fi
5866fi
5867ac_ct_F77=$ac_cv_prog_ac_ct_F77
5868if test -n "$ac_ct_F77"; then
5869 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5870echo "${ECHO_T}$ac_ct_F77" >&6
5871else
5872 echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874fi
5875
5876 test -n "$ac_ct_F77" && break
5877done
5878
5879 F77=$ac_ct_F77
5880fi
5881
5882
5883# Provide some information about the compiler.
Reid Spencer1f319422004-11-29 04:56:35 +00005884echo "$as_me:5884:" \
John Criswell47fdd832003-07-14 16:52:07 +00005885 "checking for Fortran 77 compiler version" >&5
5886ac_compiler=`set X $ac_compile; echo $2`
5887{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5888 (eval $ac_compiler --version </dev/null >&5) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }
5892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5893 (eval $ac_compiler -v </dev/null >&5) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }
5897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5898 (eval $ac_compiler -V </dev/null >&5) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005902rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005903
5904# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005905# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005906ac_save_ext=$ac_ext
5907ac_ext=F
5908echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5909echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5910if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 cat >conftest.$ac_ext <<_ACEOF
5914 program main
5915#ifndef __GNUC__
5916 choke me
5917#endif
5918
5919 end
5920_ACEOF
5921rm -f conftest.$ac_objext
5922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005923 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005930 { ac_try='test -z "$ac_f77_werror_flag"
5931 || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_compiler_gnu=yes
5944else
5945 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005946sed 's/^/| /' conftest.$ac_ext >&5
5947
John Criswell47fdd832003-07-14 16:52:07 +00005948ac_compiler_gnu=no
5949fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005951ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5952
5953fi
5954echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5955echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5956ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005957ac_test_FFLAGS=${FFLAGS+set}
5958ac_save_FFLAGS=$FFLAGS
5959FFLAGS=
5960echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5961echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5962if test "${ac_cv_prog_f77_g+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964else
5965 FFLAGS=-g
5966cat >conftest.$ac_ext <<_ACEOF
5967 program main
5968
5969 end
5970_ACEOF
5971rm -f conftest.$ac_objext
5972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005973 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005980 { ac_try='test -z "$ac_f77_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_prog_f77_g=yes
5994else
5995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005996sed 's/^/| /' conftest.$ac_ext >&5
5997
John Criswell47fdd832003-07-14 16:52:07 +00005998ac_cv_prog_f77_g=no
5999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006001
6002fi
6003echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6004echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6005if test "$ac_test_FFLAGS" = set; then
6006 FFLAGS=$ac_save_FFLAGS
6007elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006008 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00006009 FFLAGS="-g -O2"
6010 else
6011 FFLAGS="-g"
6012 fi
6013else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006014 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00006015 FFLAGS="-O2"
6016 else
6017 FFLAGS=
6018 fi
6019fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006020
6021G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00006022ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029
6030# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6031
6032# find the maximum length of command line arguments
6033echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6034echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6035if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00006039 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00006040
6041 case $build_os in
6042 msdosdjgpp*)
6043 # On DJGPP, this test can blow up pretty badly due to problems in libc
6044 # (any single argument exceeding 2000 bytes causes a buffer overrun
6045 # during glob expansion). Even if it were fixed, the result of this
6046 # check would be larger than it should be.
6047 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6048 ;;
6049
6050 gnu*)
6051 # Under GNU Hurd, this test is not required because there is
6052 # no limit to the length of command line arguments.
6053 # Libtool will interpret -1 as no limit whatsoever
6054 lt_cv_sys_max_cmd_len=-1;
6055 ;;
6056
6057 cygwin* | mingw*)
6058 # On Win9x/ME, this test blows up -- it succeeds, but takes
6059 # about 5 minutes as the teststring grows exponentially.
6060 # Worse, since 9x/ME are not pre-emptively multitasking,
6061 # you end up with a "frozen" computer, even though with patience
6062 # the test eventually succeeds (with a max line length of 256k).
6063 # Instead, let's just punt: use the minimum linelength reported by
6064 # all of the supported platforms: 8192 (on NT/2K/XP).
6065 lt_cv_sys_max_cmd_len=8192;
6066 ;;
6067
Reid Spencer2706f8c2004-09-19 23:53:36 +00006068 amigaos*)
6069 # On AmigaOS with pdksh, this test takes hours, literally.
6070 # So we just punt and use a minimum line length of 8192.
6071 lt_cv_sys_max_cmd_len=8192;
6072 ;;
6073
6074 netbsd* | freebsd* | openbsd* | darwin* )
6075 # This has been around since 386BSD, at least. Likely further.
6076 if test -x /sbin/sysctl; then
6077 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6078 elif test -x /usr/sbin/sysctl; then
6079 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6080 else
6081 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6082 fi
6083 # And add a safety zone
6084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6085 ;;
6086
John Criswell47fdd832003-07-14 16:52:07 +00006087 *)
6088 # If test is not a shell built-in, we'll probably end up computing a
6089 # maximum length that is only half of the actual maximum length, but
6090 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006091 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6092 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6093 = "XX$teststring") >/dev/null 2>&1 &&
6094 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00006095 lt_cv_sys_max_cmd_len=$new_result &&
6096 test $i != 17 # 1/2 MB should be enough
6097 do
6098 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00006099 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00006100 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00006101 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00006102 # Add a significant safety factor because C++ compilers can tack on massive
6103 # amounts of additional arguments before passing them to the linker.
6104 # It appears as though 1/2 is a usable value.
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6106 ;;
6107 esac
6108
6109fi
6110
6111if test -n $lt_cv_sys_max_cmd_len ; then
6112 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6113echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6114else
6115 echo "$as_me:$LINENO: result: none" >&5
6116echo "${ECHO_T}none" >&6
6117fi
6118
6119
6120
6121
6122# Check for command to grab the raw symbol name followed by C symbol from nm.
6123echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6124echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6125if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128
6129# These are sane defaults that work on at least a few old systems.
6130# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6131
6132# Character class describing NM global symbol codes.
6133symcode='[BCDEGRST]'
6134
6135# Regexp to match symbols that can be accessed directly from C.
6136sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6137
6138# Transform the above into a raw symbol and a C symbol.
6139symxfrm='\1 \2\3 \3'
6140
6141# Transform an extracted symbol line into a proper C declaration
6142lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6143
6144# Transform an extracted symbol line into symbol name and symbol address
6145lt_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'"
6146
6147# Define system-specific variables.
6148case $host_os in
6149aix*)
6150 symcode='[BCDT]'
6151 ;;
6152cygwin* | mingw* | pw32*)
6153 symcode='[ABCDGISTW]'
6154 ;;
6155hpux*) # Its linker distinguishes data from code symbols
6156 if test "$host_cpu" = ia64; then
6157 symcode='[ABCDEGRST]'
6158 fi
6159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6160 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'"
6161 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006162linux*)
6163 if test "$host_cpu" = ia64; then
6164 symcode='[ABCDGIRSTW]'
6165 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6166 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'"
6167 fi
6168 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006169irix* | nonstopux*)
6170 symcode='[BCDEGRST]'
6171 ;;
6172osf*)
6173 symcode='[BCDEGQRST]'
6174 ;;
6175solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006176 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00006177 ;;
6178sysv4)
6179 symcode='[DFNSTU]'
6180 ;;
6181esac
6182
6183# Handle CRLF in mingw tool chain
6184opt_cr=
6185case $build_os in
6186mingw*)
6187 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6188 ;;
6189esac
6190
6191# If we're using GNU nm, then use its standard symbol codes.
6192case `$NM -V 2>&1` in
6193*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006194 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00006195esac
6196
6197# Try without a prefix undercore, then with it.
6198for ac_symprfx in "" "_"; do
6199
6200 # Write the raw and C identifiers.
6201 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6202
6203 # Check to see that the pipe works correctly.
6204 pipe_works=no
6205
6206 rm -f conftest*
6207 cat > conftest.$ac_ext <<EOF
6208#ifdef __cplusplus
6209extern "C" {
6210#endif
6211char nm_test_var;
6212void nm_test_func(){}
6213#ifdef __cplusplus
6214}
6215#endif
6216int main(){nm_test_var='a';nm_test_func();return(0);}
6217EOF
6218
6219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6220 (eval $ac_compile) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; then
6224 # Now try to grab the symbols.
6225 nlist=conftest.nm
6226 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6227 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } && test -s "$nlist"; then
6231 # Try sorting and uniquifying the output.
6232 if sort "$nlist" | uniq > "$nlist"T; then
6233 mv -f "$nlist"T "$nlist"
6234 else
6235 rm -f "$nlist"T
6236 fi
6237
6238 # Make sure that we snagged all the symbols we need.
6239 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6240 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6241 cat <<EOF > conftest.$ac_ext
6242#ifdef __cplusplus
6243extern "C" {
6244#endif
6245
6246EOF
6247 # Now generate the symbol file.
6248 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6249
6250 cat <<EOF >> conftest.$ac_ext
6251#if defined (__STDC__) && __STDC__
6252# define lt_ptr_t void *
6253#else
6254# define lt_ptr_t char *
6255# define const
6256#endif
6257
6258/* The mapping between symbol names and symbols. */
6259const struct {
6260 const char *name;
6261 lt_ptr_t address;
6262}
6263lt_preloaded_symbols[] =
6264{
6265EOF
6266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6267 cat <<\EOF >> conftest.$ac_ext
6268 {0, (lt_ptr_t) 0}
6269};
6270
6271#ifdef __cplusplus
6272}
6273#endif
6274EOF
6275 # Now try linking the two files.
6276 mv conftest.$ac_objext conftstm.$ac_objext
6277 lt_save_LIBS="$LIBS"
6278 lt_save_CFLAGS="$CFLAGS"
6279 LIBS="conftstm.$ac_objext"
6280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282 (eval $ac_link) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6286 pipe_works=yes
6287 fi
6288 LIBS="$lt_save_LIBS"
6289 CFLAGS="$lt_save_CFLAGS"
6290 else
6291 echo "cannot find nm_test_func in $nlist" >&5
6292 fi
6293 else
6294 echo "cannot find nm_test_var in $nlist" >&5
6295 fi
6296 else
6297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6298 fi
6299 else
6300 echo "$progname: failed program was:" >&5
6301 cat conftest.$ac_ext >&5
6302 fi
6303 rm -f conftest* conftst*
6304
6305 # Do not use the global_symbol_pipe unless it works.
6306 if test "$pipe_works" = yes; then
6307 break
6308 else
6309 lt_cv_sys_global_symbol_pipe=
6310 fi
6311done
6312
6313fi
6314
6315if test -z "$lt_cv_sys_global_symbol_pipe"; then
6316 lt_cv_sys_global_symbol_to_cdecl=
6317fi
6318if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6319 echo "$as_me:$LINENO: result: failed" >&5
6320echo "${ECHO_T}failed" >&6
6321else
6322 echo "$as_me:$LINENO: result: ok" >&5
6323echo "${ECHO_T}ok" >&6
6324fi
6325
6326echo "$as_me:$LINENO: checking for objdir" >&5
6327echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6328if test "${lt_cv_objdir+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331 rm -f .libs 2>/dev/null
6332mkdir .libs 2>/dev/null
6333if test -d .libs; then
6334 lt_cv_objdir=.libs
6335else
6336 # MS-DOS does not allow filenames that begin with a dot.
6337 lt_cv_objdir=_libs
6338fi
6339rmdir .libs 2>/dev/null
6340fi
6341echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6342echo "${ECHO_T}$lt_cv_objdir" >&6
6343objdir=$lt_cv_objdir
6344
6345
6346
6347
6348
6349case $host_os in
6350aix3*)
6351 # AIX sometimes has problems with the GCC collect2 program. For some
6352 # reason, if we set the COLLECT_NAMES environment variable, the problems
6353 # vanish in a puff of smoke.
6354 if test "X${COLLECT_NAMES+set}" != Xset; then
6355 COLLECT_NAMES=
6356 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00006357 fi
6358 ;;
6359esac
6360
John Criswell47fdd832003-07-14 16:52:07 +00006361# Sed substitution that helps us do robust quoting. It backslashifies
6362# metacharacters that are still active within double-quoted strings.
6363Xsed='sed -e s/^X//'
6364sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6365
6366# Same as above, but do not quote variable references.
6367double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6368
6369# Sed substitution to delay expansion of an escaped shell variable in a
6370# double_quote_subst'ed string.
6371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6372
6373# Sed substitution to avoid accidental globbing in evaled expressions
6374no_glob_subst='s/\*/\\\*/g'
6375
6376# Constants:
6377rm="rm -f"
6378
6379# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00006380default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00006381can_build_shared=yes
6382
6383# All known linkers require a `.a' archive for static linking (except M$VC,
6384# which needs '.lib').
6385libext=a
6386ltmain="$ac_aux_dir/ltmain.sh"
6387ofile="$default_ofile"
6388with_gnu_ld="$lt_cv_prog_gnu_ld"
6389
6390if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6392set dummy ${ac_tool_prefix}ar; ac_word=$2
6393echo "$as_me:$LINENO: checking for $ac_word" >&5
6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6395if test "${ac_cv_prog_AR+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398 if test -n "$AR"; then
6399 ac_cv_prog_AR="$AR" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_AR="${ac_tool_prefix}ar"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412done
6413done
6414
6415fi
6416fi
6417AR=$ac_cv_prog_AR
6418if test -n "$AR"; then
6419 echo "$as_me:$LINENO: result: $AR" >&5
6420echo "${ECHO_T}$AR" >&6
6421else
6422 echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
6424fi
6425
6426fi
6427if test -z "$ac_cv_prog_AR"; then
6428 ac_ct_AR=$AR
6429 # Extract the first word of "ar", so it can be a program name with args.
6430set dummy ar; ac_word=$2
6431echo "$as_me:$LINENO: checking for $ac_word" >&5
6432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6433if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436 if test -n "$ac_ct_AR"; then
6437 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_ac_ct_AR="ar"
6447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450done
6451done
6452
6453 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6454fi
6455fi
6456ac_ct_AR=$ac_cv_prog_ac_ct_AR
6457if test -n "$ac_ct_AR"; then
6458 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6459echo "${ECHO_T}$ac_ct_AR" >&6
6460else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463fi
6464
6465 AR=$ac_ct_AR
6466else
6467 AR="$ac_cv_prog_AR"
6468fi
6469
John Criswell7a73b802003-06-30 21:59:07 +00006470if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6473echo "$as_me:$LINENO: checking for $ac_word" >&5
6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6475if test "${ac_cv_prog_RANLIB+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478 if test -n "$RANLIB"; then
6479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493done
6494
6495fi
6496fi
6497RANLIB=$ac_cv_prog_RANLIB
6498if test -n "$RANLIB"; then
6499 echo "$as_me:$LINENO: result: $RANLIB" >&5
6500echo "${ECHO_T}$RANLIB" >&6
6501else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504fi
6505
6506fi
6507if test -z "$ac_cv_prog_RANLIB"; then
6508 ac_ct_RANLIB=$RANLIB
6509 # Extract the first word of "ranlib", so it can be a program name with args.
6510set dummy ranlib; ac_word=$2
6511echo "$as_me:$LINENO: checking for $ac_word" >&5
6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6513if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
6516 if test -n "$ac_ct_RANLIB"; then
6517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_ac_ct_RANLIB="ranlib"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532
6533 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6534fi
6535fi
6536ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6537if test -n "$ac_ct_RANLIB"; then
6538 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6539echo "${ECHO_T}$ac_ct_RANLIB" >&6
6540else
6541 echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543fi
6544
6545 RANLIB=$ac_ct_RANLIB
6546else
6547 RANLIB="$ac_cv_prog_RANLIB"
6548fi
6549
6550if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6552set dummy ${ac_tool_prefix}strip; ac_word=$2
6553echo "$as_me:$LINENO: checking for $ac_word" >&5
6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555if test "${ac_cv_prog_STRIP+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558 if test -n "$STRIP"; then
6559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573done
6574
6575fi
6576fi
6577STRIP=$ac_cv_prog_STRIP
6578if test -n "$STRIP"; then
6579 echo "$as_me:$LINENO: result: $STRIP" >&5
6580echo "${ECHO_T}$STRIP" >&6
6581else
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
6584fi
6585
6586fi
6587if test -z "$ac_cv_prog_STRIP"; then
6588 ac_ct_STRIP=$STRIP
6589 # Extract the first word of "strip", so it can be a program name with args.
6590set dummy strip; ac_word=$2
6591echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596 if test -n "$ac_ct_STRIP"; then
6597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6598else
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_STRIP="strip"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611done
6612
6613 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6614fi
6615fi
6616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6617if test -n "$ac_ct_STRIP"; then
6618 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6619echo "${ECHO_T}$ac_ct_STRIP" >&6
6620else
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623fi
6624
6625 STRIP=$ac_ct_STRIP
6626else
6627 STRIP="$ac_cv_prog_STRIP"
6628fi
6629
6630
John Criswell7a73b802003-06-30 21:59:07 +00006631old_CC="$CC"
6632old_CFLAGS="$CFLAGS"
6633
6634# Set sane defaults for various variables
6635test -z "$AR" && AR=ar
6636test -z "$AR_FLAGS" && AR_FLAGS=cru
6637test -z "$AS" && AS=as
6638test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00006639test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00006640test -z "$DLLTOOL" && DLLTOOL=dlltool
6641test -z "$LD" && LD=ld
6642test -z "$LN_S" && LN_S="ln -s"
6643test -z "$MAGIC_CMD" && MAGIC_CMD=file
6644test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00006645test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00006646test -z "$OBJDUMP" && OBJDUMP=objdump
6647test -z "$RANLIB" && RANLIB=:
6648test -z "$STRIP" && STRIP=:
6649test -z "$ac_objext" && ac_objext=o
6650
John Criswell7a73b802003-06-30 21:59:07 +00006651# Determine commands to create old-style static archives.
6652old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6653old_postinstall_cmds='chmod 644 $oldlib'
6654old_postuninstall_cmds=
6655
6656if test -n "$RANLIB"; then
6657 case $host_os in
6658 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006659 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00006660 ;;
6661 *)
Reid Spencer177dbe22004-10-13 01:01:03 +00006662 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00006663 ;;
6664 esac
Reid Spencer177dbe22004-10-13 01:01:03 +00006665 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00006666fi
6667
Reid Spencer2706f8c2004-09-19 23:53:36 +00006668cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6669
John Criswell47fdd832003-07-14 16:52:07 +00006670# Only perform the check for file, if the check method requires it
6671case $deplibs_check_method in
6672file_magic*)
6673 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6674 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6675echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006678else
John Criswell47fdd832003-07-14 16:52:07 +00006679 case $MAGIC_CMD in
6680[\\/*] | ?:[\\/]*)
6681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6682 ;;
6683*)
6684 lt_save_MAGIC_CMD="$MAGIC_CMD"
6685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6687 for ac_dir in $ac_dummy; do
6688 IFS="$lt_save_ifs"
6689 test -z "$ac_dir" && ac_dir=.
6690 if test -f $ac_dir/${ac_tool_prefix}file; then
6691 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6692 if test -n "$file_magic_test_file"; then
6693 case $deplibs_check_method in
6694 "file_magic "*)
6695 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698 $EGREP "$file_magic_regex" > /dev/null; then
6699 :
6700 else
6701 cat <<EOF 1>&2
6702
6703*** Warning: the command libtool uses to detect shared libraries,
6704*** $file_magic_cmd, produces output that libtool cannot recognize.
6705*** The result is that libtool may fail to recognize shared libraries
6706*** as such. This will affect the creation of libtool libraries that
6707*** depend on shared libraries, but programs linked with such libtool
6708*** libraries will work regardless of this problem. Nevertheless, you
6709*** may want to report the problem to your system manager and/or to
6710*** bug-libtool@gnu.org
6711
6712EOF
6713 fi ;;
6714 esac
6715 fi
6716 break
6717 fi
6718 done
6719 IFS="$lt_save_ifs"
6720 MAGIC_CMD="$lt_save_MAGIC_CMD"
6721 ;;
6722esac
John Criswell7a73b802003-06-30 21:59:07 +00006723fi
John Criswell7a73b802003-06-30 21:59:07 +00006724
John Criswell47fdd832003-07-14 16:52:07 +00006725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6726if test -n "$MAGIC_CMD"; then
6727 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6728echo "${ECHO_T}$MAGIC_CMD" >&6
6729else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732fi
John Criswell7a73b802003-06-30 21:59:07 +00006733
John Criswell47fdd832003-07-14 16:52:07 +00006734if test -z "$lt_cv_path_MAGIC_CMD"; then
6735 if test -n "$ac_tool_prefix"; then
6736 echo "$as_me:$LINENO: checking for file" >&5
6737echo $ECHO_N "checking for file... $ECHO_C" >&6
6738if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 case $MAGIC_CMD in
6742[\\/*] | ?:[\\/]*)
6743 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6744 ;;
6745*)
6746 lt_save_MAGIC_CMD="$MAGIC_CMD"
6747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6748 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6749 for ac_dir in $ac_dummy; do
6750 IFS="$lt_save_ifs"
6751 test -z "$ac_dir" && ac_dir=.
6752 if test -f $ac_dir/file; then
6753 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6754 if test -n "$file_magic_test_file"; then
6755 case $deplibs_check_method in
6756 "file_magic "*)
6757 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6759 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6760 $EGREP "$file_magic_regex" > /dev/null; then
6761 :
6762 else
6763 cat <<EOF 1>&2
6764
6765*** Warning: the command libtool uses to detect shared libraries,
6766*** $file_magic_cmd, produces output that libtool cannot recognize.
6767*** The result is that libtool may fail to recognize shared libraries
6768*** as such. This will affect the creation of libtool libraries that
6769*** depend on shared libraries, but programs linked with such libtool
6770*** libraries will work regardless of this problem. Nevertheless, you
6771*** may want to report the problem to your system manager and/or to
6772*** bug-libtool@gnu.org
6773
6774EOF
6775 fi ;;
6776 esac
6777 fi
6778 break
6779 fi
6780 done
6781 IFS="$lt_save_ifs"
6782 MAGIC_CMD="$lt_save_MAGIC_CMD"
6783 ;;
6784esac
6785fi
6786
6787MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6788if test -n "$MAGIC_CMD"; then
6789 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6790echo "${ECHO_T}$MAGIC_CMD" >&6
6791else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794fi
6795
6796 else
6797 MAGIC_CMD=:
6798 fi
6799fi
6800
6801 fi
6802 ;;
6803esac
6804
Reid Spencer17795972004-11-18 09:47:37 +00006805enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +00006806enable_win32_dll=no
6807
6808# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6809if test "${enable_libtool_lock+set}" = set; then
6810 enableval="$enable_libtool_lock"
6811
6812fi;
6813test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6814
John Criswell7a73b802003-06-30 21:59:07 +00006815
6816# Check whether --with-pic or --without-pic was given.
6817if test "${with_pic+set}" = set; then
6818 withval="$with_pic"
6819 pic_mode="$withval"
6820else
6821 pic_mode=default
6822fi;
6823test -z "$pic_mode" && pic_mode=default
6824
John Criswell47fdd832003-07-14 16:52:07 +00006825# Use C for the default configuration in the libtool script
6826tagname=
6827lt_save_CC="$CC"
6828ac_ext=c
6829ac_cpp='$CPP $CPPFLAGS'
6830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832ac_compiler_gnu=$ac_cv_c_compiler_gnu
6833
6834
6835# Source file extension for C test sources.
6836ac_ext=c
6837
6838# Object file extension for compiled C test sources.
6839objext=o
6840objext=$objext
6841
6842# Code to be used in simple compile tests
6843lt_simple_compile_test_code="int some_variable = 0;\n"
6844
6845# Code to be used in simple link tests
6846lt_simple_link_test_code='int main(){return(0);}\n'
6847
6848
6849# If no C compiler was specified, use CC.
6850LTCC=${LTCC-"$CC"}
6851
6852# Allow CC to be a program name with arguments.
6853compiler=$CC
6854
6855
6856#
6857# Check for any special shared library compilation flags.
6858#
6859lt_prog_cc_shlib=
6860if test "$GCC" = no; then
6861 case $host_os in
6862 sco3.2v5*)
6863 lt_prog_cc_shlib='-belf'
6864 ;;
6865 esac
6866fi
6867if test -n "$lt_prog_cc_shlib"; then
6868 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6869echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6870 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6871 else
6872 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6873echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6874 lt_cv_prog_cc_can_build_shared=no
6875 fi
6876fi
6877
6878
6879#
6880# Check to make sure the static flag actually works.
6881#
6882echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6883echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6884if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
John Criswell47fdd832003-07-14 16:52:07 +00006887 lt_prog_compiler_static_works=no
6888 save_LDFLAGS="$LDFLAGS"
6889 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6890 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6892 # The compiler can only warn and ignore the option if not recognized
6893 # So say no if there are warnings
6894 if test -s conftest.err; then
6895 # Append any errors to the config.log.
6896 cat conftest.err 1>&5
6897 else
6898 lt_prog_compiler_static_works=yes
6899 fi
6900 fi
6901 $rm conftest*
6902 LDFLAGS="$save_LDFLAGS"
6903
6904fi
6905echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6906echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6907
6908if test x"$lt_prog_compiler_static_works" = xyes; then
6909 :
6910else
6911 lt_prog_compiler_static=
6912fi
6913
6914
6915
John Criswell47fdd832003-07-14 16:52:07 +00006916
6917lt_prog_compiler_no_builtin_flag=
6918
6919if test "$GCC" = yes; then
6920 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6921
Reid Spencer2706f8c2004-09-19 23:53:36 +00006922
6923echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006924echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6925if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 lt_cv_prog_compiler_rtti_exceptions=no
6929 ac_outfile=conftest.$ac_objext
6930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6931 lt_compiler_flag="-fno-rtti -fno-exceptions"
6932 # Insert the option either (1) after the last *FLAGS variable, or
6933 # (2) before a word containing "conftest.", or (3) at the end.
6934 # Note that $ac_compile itself does not contain backslashes and begins
6935 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +00006941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006942 (eval "$lt_compile" 2>conftest.err)
6943 ac_status=$?
6944 cat conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +00006945 echo "$as_me:6945: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006946 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings
6949 if test ! -s conftest.err; then
6950 lt_cv_prog_compiler_rtti_exceptions=yes
6951 fi
6952 fi
6953 $rm conftest*
6954
6955fi
6956echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6957echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6958
6959if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6960 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6961else
6962 :
6963fi
6964
6965fi
6966
6967lt_prog_compiler_wl=
6968lt_prog_compiler_pic=
6969lt_prog_compiler_static=
6970
6971echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6972echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006973
6974 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006975 lt_prog_compiler_wl='-Wl,'
6976 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006977
6978 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006979 aix*)
6980 # All AIX code is PIC.
6981 if test "$host_cpu" = ia64; then
6982 # AIX 5 now supports IA64 processor
6983 lt_prog_compiler_static='-Bstatic'
6984 fi
John Criswell7a73b802003-06-30 21:59:07 +00006985 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006986
John Criswell7a73b802003-06-30 21:59:07 +00006987 amigaos*)
6988 # FIXME: we need at least 68020 code to build shared libraries, but
6989 # adding the `-m68020' flag to GCC prevents building anything better,
6990 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006992 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006993
6994 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006995 # PIC is the default for these OSes.
6996 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006997
6998 mingw* | pw32* | os2*)
6999 # This hack is so that the source file can tell whether it is being
7000 # built for inclusion in a dll (and should export symbols for example).
7001 lt_prog_compiler_pic='-DDLL_EXPORT'
7002 ;;
7003
John Criswell7a73b802003-06-30 21:59:07 +00007004 darwin* | rhapsody*)
7005 # PIC is the default on this platform
7006 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00007007 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00007008 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007009
7010 msdosdjgpp*)
7011 # Just because we use GCC doesn't mean we suddenly get shared libraries
7012 # on systems that don't support them.
7013 lt_prog_compiler_can_build_shared=no
7014 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007015 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007016
John Criswell7a73b802003-06-30 21:59:07 +00007017 sysv4*MP*)
7018 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00007019 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00007020 fi
7021 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007022
7023 hpux*)
7024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7025 # not for PA HP-UX.
7026 case "$host_cpu" in
7027 hppa*64*|ia64*)
7028 # +Z the default
7029 ;;
7030 *)
7031 lt_prog_compiler_pic='-fPIC'
7032 ;;
7033 esac
7034 ;;
7035
John Criswell7a73b802003-06-30 21:59:07 +00007036 *)
John Criswell47fdd832003-07-14 16:52:07 +00007037 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00007038 ;;
7039 esac
7040 else
John Criswell47fdd832003-07-14 16:52:07 +00007041 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00007042 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007043 aix*)
7044 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00007045 if test "$host_cpu" = ia64; then
7046 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00007047 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007048 else
John Criswell47fdd832003-07-14 16:52:07 +00007049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00007050 fi
7051 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00007052 darwin*)
7053 # PIC is the default on this platform
7054 # Common symbols not allowed in MH_DYLIB files
7055 case "$cc_basename" in
7056 xlc*)
7057 lt_prog_compiler_pic='-qnocommon'
7058 lt_prog_compiler_wl='-Wl,'
7059 ;;
7060 esac
7061 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007062
John Criswell47fdd832003-07-14 16:52:07 +00007063 mingw* | pw32* | os2*)
7064 # This hack is so that the source file can tell whether it is being
7065 # built for inclusion in a dll (and should export symbols for example).
7066 lt_prog_compiler_pic='-DDLL_EXPORT'
7067 ;;
7068
John Criswell7a73b802003-06-30 21:59:07 +00007069 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00007070 lt_prog_compiler_wl='-Wl,'
7071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7072 # not for PA HP-UX.
7073 case "$host_cpu" in
7074 hppa*64*|ia64*)
7075 # +Z the default
7076 ;;
7077 *)
7078 lt_prog_compiler_pic='+Z'
7079 ;;
7080 esac
7081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7082 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00007083 ;;
7084
John Criswell47fdd832003-07-14 16:52:07 +00007085 irix5* | irix6* | nonstopux*)
7086 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00007087 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00007088 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00007089 ;;
7090
7091 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00007092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-Bstatic'
7094 ;;
7095
7096 linux*)
7097 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007098 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00007099 lt_prog_compiler_wl='-Wl,'
7100 lt_prog_compiler_pic='-KPIC'
7101 lt_prog_compiler_static='-static'
7102 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00007103 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00007104 lt_prog_compiler_wl='-Wl,'
7105 # All Alpha code is PIC.
7106 lt_prog_compiler_static='-non_shared'
7107 ;;
7108 esac
John Criswell7a73b802003-06-30 21:59:07 +00007109 ;;
7110
7111 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00007112 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00007113 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00007114 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00007115 ;;
7116
7117 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00007118 lt_prog_compiler_pic='-Kpic'
7119 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00007120 ;;
7121
7122 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00007123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-KPIC'
7125 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007126 ;;
7127
7128 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00007129 lt_prog_compiler_wl='-Qoption ld '
7130 lt_prog_compiler_pic='-PIC'
7131 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007132 ;;
7133
7134 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00007135 lt_prog_compiler_wl='-Wl,'
7136 lt_prog_compiler_pic='-KPIC'
7137 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007138 ;;
7139
7140 sysv4*MP*)
7141 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00007142 lt_prog_compiler_pic='-Kconform_pic'
7143 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00007144 fi
7145 ;;
7146
John Criswell47fdd832003-07-14 16:52:07 +00007147 uts4*)
7148 lt_prog_compiler_pic='-pic'
7149 lt_prog_compiler_static='-Bstatic'
7150 ;;
7151
John Criswell7a73b802003-06-30 21:59:07 +00007152 *)
John Criswell47fdd832003-07-14 16:52:07 +00007153 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007154 ;;
7155 esac
7156 fi
7157
John Criswell47fdd832003-07-14 16:52:07 +00007158echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7159echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007160
John Criswell47fdd832003-07-14 16:52:07 +00007161#
7162# Check to make sure the PIC flag actually works.
7163#
7164if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00007165
7166echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00007167echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7168if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00007169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
John Criswell47fdd832003-07-14 16:52:07 +00007171 lt_prog_compiler_pic_works=no
7172 ac_outfile=conftest.$ac_objext
7173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7174 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7175 # Insert the option either (1) after the last *FLAGS variable, or
7176 # (2) before a word containing "conftest.", or (3) at the end.
7177 # Note that $ac_compile itself does not contain backslashes and begins
7178 # with a dollar sign (not a hyphen), so the echo should work correctly.
7179 # The option is referenced via a variable to avoid confusing sed.
7180 lt_compile=`echo "$ac_compile" | $SED \
7181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7183 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +00007184 (eval echo "\"\$as_me:7184: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00007185 (eval "$lt_compile" 2>conftest.err)
7186 ac_status=$?
7187 cat conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +00007188 echo "$as_me:7188: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00007189 if (exit $ac_status) && test -s "$ac_outfile"; then
7190 # The compiler can only warn and ignore the option if not recognized
7191 # So say no if there are warnings
7192 if test ! -s conftest.err; then
7193 lt_prog_compiler_pic_works=yes
7194 fi
7195 fi
7196 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00007197
John Criswell47fdd832003-07-14 16:52:07 +00007198fi
7199echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7200echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007201
John Criswell47fdd832003-07-14 16:52:07 +00007202if test x"$lt_prog_compiler_pic_works" = xyes; then
7203 case $lt_prog_compiler_pic in
7204 "" | " "*) ;;
7205 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7206 esac
John Criswell7a73b802003-06-30 21:59:07 +00007207else
John Criswell47fdd832003-07-14 16:52:07 +00007208 lt_prog_compiler_pic=
7209 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007210fi
7211
John Criswell7a73b802003-06-30 21:59:07 +00007212fi
John Criswell47fdd832003-07-14 16:52:07 +00007213case "$host_os" in
7214 # For platforms which do not support PIC, -DPIC is meaningless:
7215 *djgpp*)
7216 lt_prog_compiler_pic=
7217 ;;
7218 *)
7219 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7220 ;;
7221esac
John Criswell7a73b802003-06-30 21:59:07 +00007222
John Criswell7a73b802003-06-30 21:59:07 +00007223echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7224echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00007225if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00007226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
John Criswell47fdd832003-07-14 16:52:07 +00007228 lt_cv_prog_compiler_c_o=no
7229 $rm -r conftest 2>/dev/null
7230 mkdir conftest
7231 cd conftest
7232 mkdir out
7233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00007234
John Criswell47fdd832003-07-14 16:52:07 +00007235 lt_compiler_flag="-o out/conftest2.$ac_objext"
7236 # Insert the option either (1) after the last *FLAGS variable, or
7237 # (2) before a word containing "conftest.", or (3) at the end.
7238 # Note that $ac_compile itself does not contain backslashes and begins
7239 # with a dollar sign (not a hyphen), so the echo should work correctly.
7240 lt_compile=`echo "$ac_compile" | $SED \
7241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7243 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +00007244 (eval echo "\"\$as_me:7244: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00007245 (eval "$lt_compile" 2>out/conftest.err)
7246 ac_status=$?
7247 cat out/conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +00007248 echo "$as_me:7248: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00007249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7250 then
7251 # The compiler can only warn and ignore the option if not recognized
7252 # So say no if there are warnings
7253 if test ! -s out/conftest.err; then
7254 lt_cv_prog_compiler_c_o=yes
7255 fi
7256 fi
7257 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00007258 $rm conftest*
7259 # SGI C++ compiler will create directory out/ii_files/ for
7260 # template instantiation
7261 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7262 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00007263 cd ..
7264 rmdir conftest
7265 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00007266
7267fi
John Criswell47fdd832003-07-14 16:52:07 +00007268echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7269echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007270
John Criswell7a73b802003-06-30 21:59:07 +00007271
John Criswell7a73b802003-06-30 21:59:07 +00007272hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00007273if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00007274 # do not overwrite the value of need_locks provided by the user
7275 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7276echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7277 hard_links=yes
7278 $rm conftest*
7279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7280 touch conftest.a
7281 ln conftest.a conftest.b 2>&5 || hard_links=no
7282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7283 echo "$as_me:$LINENO: result: $hard_links" >&5
7284echo "${ECHO_T}$hard_links" >&6
7285 if test "$hard_links" = no; then
7286 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7287echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7288 need_locks=warn
7289 fi
7290else
7291 need_locks=no
7292fi
John Criswell7a73b802003-06-30 21:59:07 +00007293
John Criswell47fdd832003-07-14 16:52:07 +00007294echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7295echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7296
7297 runpath_var=
7298 allow_undefined_flag=
7299 enable_shared_with_static_runtimes=no
7300 archive_cmds=
7301 archive_expsym_cmds=
7302 old_archive_From_new_cmds=
7303 old_archive_from_expsyms_cmds=
7304 export_dynamic_flag_spec=
7305 whole_archive_flag_spec=
7306 thread_safe_flag_spec=
7307 hardcode_libdir_flag_spec=
7308 hardcode_libdir_flag_spec_ld=
7309 hardcode_libdir_separator=
7310 hardcode_direct=no
7311 hardcode_minus_L=no
7312 hardcode_shlibpath_var=unsupported
7313 link_all_deplibs=unknown
7314 hardcode_automatic=no
7315 module_cmds=
7316 module_expsym_cmds=
7317 always_export_symbols=no
7318 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7319 # include_expsyms should be a list of space-separated symbols to be *always*
7320 # included in the symbol list
7321 include_expsyms=
7322 # exclude_expsyms can be an extended regexp of symbols to exclude
7323 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7324 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7325 # as well as any symbol that contains `d'.
7326 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7327 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7328 # platforms (ab)use it in PIC code, but their linkers get confused if
7329 # the symbol is explicitly referenced. Since portable code cannot
7330 # rely on this symbol name, it's probably fine to never include it in
7331 # preloaded symbol tables.
7332 extract_expsyms_cmds=
7333
7334 case $host_os in
7335 cygwin* | mingw* | pw32*)
7336 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7337 # When not using gcc, we currently assume that we are using
7338 # Microsoft Visual C++.
7339 if test "$GCC" != yes; then
7340 with_gnu_ld=no
7341 fi
7342 ;;
7343 openbsd*)
7344 with_gnu_ld=no
7345 ;;
7346 esac
7347
7348 ld_shlibs=yes
7349 if test "$with_gnu_ld" = yes; then
7350 # If archive_cmds runs LD, not CC, wlarc should be empty
7351 wlarc='${wl}'
7352
7353 # See if GNU ld supports shared libraries.
7354 case $host_os in
7355 aix3* | aix4* | aix5*)
7356 # On AIX/PPC, the GNU linker is very broken
7357 if test "$host_cpu" != ia64; then
7358 ld_shlibs=no
7359 cat <<EOF 1>&2
7360
7361*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7362*** to be unable to reliably create shared libraries on AIX.
7363*** Therefore, libtool is disabling shared libraries support. If you
7364*** really care for shared libraries, you may want to modify your PATH
7365*** so that a non-GNU linker is found, and then restart.
7366
7367EOF
7368 fi
7369 ;;
7370
7371 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00007372 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 +00007373 hardcode_libdir_flag_spec='-L$libdir'
7374 hardcode_minus_L=yes
7375
7376 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7377 # that the semantics of dynamic libraries on AmigaOS, at least up
7378 # to version 4, is to share data among multiple programs linked
7379 # with the same dynamic library. Since this doesn't match the
7380 # behavior of shared libraries on other platforms, we can't use
7381 # them.
7382 ld_shlibs=no
7383 ;;
7384
7385 beos*)
7386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7387 allow_undefined_flag=unsupported
7388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7389 # support --undefined. This deserves some investigation. FIXME
7390 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391 else
7392 ld_shlibs=no
7393 fi
7394 ;;
7395
7396 cygwin* | mingw* | pw32*)
7397 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7398 # as there is no search path for DLLs.
7399 hardcode_libdir_flag_spec='-L$libdir'
7400 allow_undefined_flag=unsupported
7401 always_export_symbols=no
7402 enable_shared_with_static_runtimes=yes
7403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7404
7405 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7407 # If the export-symbols file already is a .def file (1st line
7408 # is EXPORTS), use it as is; otherwise, prepend...
7409 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7410 cp $export_symbols $output_objdir/$soname.def;
7411 else
7412 echo EXPORTS > $output_objdir/$soname.def;
7413 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00007414 fi~
7415 $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 +00007416 else
7417 ld_shlibs=no
7418 fi
7419 ;;
7420
7421 netbsd*)
7422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7423 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7424 wlarc=
7425 else
7426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7428 fi
7429 ;;
7430
7431 solaris* | sysv5*)
7432 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7433 ld_shlibs=no
7434 cat <<EOF 1>&2
7435
7436*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7437*** create shared libraries on Solaris systems. Therefore, libtool
7438*** is disabling shared libraries support. We urge you to upgrade GNU
7439*** binutils to release 2.9.1 or newer. Another option is to modify
7440*** your PATH or compiler configuration so that the native linker is
7441*** used, and then restart.
7442
7443EOF
7444 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7447 else
7448 ld_shlibs=no
7449 fi
7450 ;;
7451
7452 sunos4*)
7453 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7454 wlarc=
7455 hardcode_direct=yes
7456 hardcode_shlibpath_var=no
7457 ;;
7458
Reid Spencer2706f8c2004-09-19 23:53:36 +00007459 linux*)
7460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7461 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7462 archive_cmds="$tmp_archive_cmds"
7463 supports_anon_versioning=no
7464 case `$LD -v 2>/dev/null` in
7465 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7466 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7467 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7468 *\ 2.11.*) ;; # other 2.11 versions
7469 *) supports_anon_versioning=yes ;;
7470 esac
7471 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007472 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7473cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7474$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +00007475 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7476 else
7477 archive_expsym_cmds="$tmp_archive_cmds"
7478 fi
7479 else
7480 ld_shlibs=no
7481 fi
7482 ;;
7483
John Criswell47fdd832003-07-14 16:52:07 +00007484 *)
7485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7488 else
7489 ld_shlibs=no
7490 fi
7491 ;;
7492 esac
7493
7494 if test "$ld_shlibs" = yes; then
7495 runpath_var=LD_RUN_PATH
7496 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7497 export_dynamic_flag_spec='${wl}--export-dynamic'
7498 # ancient GNU ld didn't support --whole-archive et. al.
7499 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7500 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7501 else
7502 whole_archive_flag_spec=
7503 fi
7504 fi
7505 else
7506 # PORTME fill in a description of your system's linker (not GNU ld)
7507 case $host_os in
7508 aix3*)
7509 allow_undefined_flag=unsupported
7510 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +00007511 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 +00007512 # Note: this linker hardcodes the directories in LIBPATH if there
7513 # are no directories specified by -L.
7514 hardcode_minus_L=yes
7515 if test "$GCC" = yes && test -z "$link_static_flag"; then
7516 # Neither direct hardcoding nor static linking is supported with a
7517 # broken collect2.
7518 hardcode_direct=unsupported
7519 fi
7520 ;;
7521
7522 aix4* | aix5*)
7523 if test "$host_cpu" = ia64; then
7524 # On IA64, the linker does run time linking by default, so we don't
7525 # have to do anything special.
7526 aix_use_runtimelinking=no
7527 exp_sym_flag='-Bexport'
7528 no_entry_flag=""
7529 else
7530 # If we're using GNU nm, then we don't want the "-C" option.
7531 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7532 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7533 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'
7534 else
7535 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'
7536 fi
7537 aix_use_runtimelinking=no
7538
7539 # Test if we are trying to use run time linking or normal
7540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7541 # need to do runtime linking.
7542 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7543 for ld_flag in $LDFLAGS; do
7544 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7545 aix_use_runtimelinking=yes
7546 break
7547 fi
7548 done
7549 esac
7550
7551 exp_sym_flag='-bexport'
7552 no_entry_flag='-bnoentry'
7553 fi
7554
7555 # When large executables or shared objects are built, AIX ld can
7556 # have problems creating the table of contents. If linking a library
7557 # or program results in "error TOC overflow" add -mminimal-toc to
7558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7560
7561 archive_cmds=''
7562 hardcode_direct=yes
7563 hardcode_libdir_separator=':'
7564 link_all_deplibs=yes
7565
7566 if test "$GCC" = yes; then
7567 case $host_os in aix4.012|aix4.012.*)
7568 # We only want to do this on AIX 4.2 and lower, the check
7569 # below for broken collect2 doesn't work under 4.3+
7570 collect2name=`${CC} -print-prog-name=collect2`
7571 if test -f "$collect2name" && \
7572 strings "$collect2name" | grep resolve_lib_name >/dev/null
7573 then
7574 # We have reworked collect2
7575 hardcode_direct=yes
7576 else
7577 # We have old collect2
7578 hardcode_direct=unsupported
7579 # It fails to find uninstalled libraries when the uninstalled
7580 # path is not listed in the libpath. Setting hardcode_minus_L
7581 # to unsupported forces relinking
7582 hardcode_minus_L=yes
7583 hardcode_libdir_flag_spec='-L$libdir'
7584 hardcode_libdir_separator=
7585 fi
7586 esac
7587 shared_flag='-shared'
7588 else
7589 # not using gcc
7590 if test "$host_cpu" = ia64; then
7591 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7592 # chokes on -Wl,-G. The following line is correct:
7593 shared_flag='-G'
7594 else
7595 if test "$aix_use_runtimelinking" = yes; then
7596 shared_flag='${wl}-G'
7597 else
7598 shared_flag='${wl}-bM:SRE'
7599 fi
7600 fi
7601 fi
7602
7603 # It seems that -bexpall does not export symbols beginning with
7604 # underscore (_), so it is better to generate a list of symbols to export.
7605 always_export_symbols=yes
7606 if test "$aix_use_runtimelinking" = yes; then
7607 # Warning - without using the other runtime loading flags (-brtl),
7608 # -berok will link without error, but may produce a broken library.
7609 allow_undefined_flag='-berok'
7610 # Determine the default libpath from the value encoded in an empty executable.
7611 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007612/* confdefs.h. */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007617
John Criswell7a73b802003-06-30 21:59:07 +00007618int
7619main ()
7620{
John Criswell47fdd832003-07-14 16:52:07 +00007621
John Criswell7a73b802003-06-30 21:59:07 +00007622 ;
7623 return 0;
7624}
7625_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00007626rm -f conftest.$ac_objext conftest$ac_exeext
7627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00007628 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00007629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00007633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00007635 { ac_try='test -z "$ac_c_werror_flag"
7636 || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00007643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007648
John Criswell47fdd832003-07-14 16:52:07 +00007649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7650}'`
7651# Check for a 64-bit object if we didn't find anything.
7652if 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; }
7653}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007654else
7655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007656sed 's/^/| /' conftest.$ac_ext >&5
7657
John Criswell7a73b802003-06-30 21:59:07 +00007658fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00007659rm -f conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007661if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007662
John Criswell47fdd832003-07-14 16:52:07 +00007663 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7664 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"
7665 else
7666 if test "$host_cpu" = ia64; then
7667 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7668 allow_undefined_flag="-z nodefs"
7669 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"
7670 else
7671 # Determine the default libpath from the value encoded in an empty executable.
7672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007673/* confdefs.h. */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007678
John Criswell47fdd832003-07-14 16:52:07 +00007679int
7680main ()
7681{
John Criswell7a73b802003-06-30 21:59:07 +00007682
John Criswell47fdd832003-07-14 16:52:07 +00007683 ;
7684 return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext conftest$ac_exeext
7688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00007689 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00007690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00007691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00007694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00007696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00007704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007709
John Criswell47fdd832003-07-14 16:52:07 +00007710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7711}'`
7712# Check for a 64-bit object if we didn't find anything.
7713if 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; }
7714}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007715else
John Criswell47fdd832003-07-14 16:52:07 +00007716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007717sed 's/^/| /' conftest.$ac_ext >&5
7718
John Criswell47fdd832003-07-14 16:52:07 +00007719fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00007720rm -f conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007722if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007723
John Criswell47fdd832003-07-14 16:52:07 +00007724 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7725 # Warning - without using the other run time loading flags,
7726 # -berok will link without error, but may produce a broken library.
7727 no_undefined_flag=' ${wl}-bernotok'
7728 allow_undefined_flag=' ${wl}-berok'
7729 # -bexpall does not export symbols beginning with underscore (_)
7730 always_export_symbols=yes
7731 # Exported symbols can be pulled into shared objects from archives
7732 whole_archive_flag_spec=' '
7733 archive_cmds_need_lc=yes
7734 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00007735 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 +00007736 fi
7737 fi
John Criswell7a73b802003-06-30 21:59:07 +00007738 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007739
7740 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00007741 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 +00007742 hardcode_libdir_flag_spec='-L$libdir'
7743 hardcode_minus_L=yes
7744 # see comment about different semantics on the GNU ld section
7745 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007746 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007747
Reid Spencer2706f8c2004-09-19 23:53:36 +00007748 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00007749 export_dynamic_flag_spec=-rdynamic
7750 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007751
John Criswell47fdd832003-07-14 16:52:07 +00007752 cygwin* | mingw* | pw32*)
7753 # When not using gcc, we currently assume that we are using
7754 # Microsoft Visual C++.
7755 # hardcode_libdir_flag_spec is actually meaningless, as there is
7756 # no search path for DLLs.
7757 hardcode_libdir_flag_spec=' '
7758 allow_undefined_flag=unsupported
7759 # Tell ltmain to make .lib files, not .a files.
7760 libext=lib
7761 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007762 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00007763 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +00007764 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +00007765 # The linker will automatically build a .lib file if we build a DLL.
7766 old_archive_From_new_cmds='true'
7767 # FIXME: Should let the user specify the lib program.
7768 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7769 fix_srcfile_path='`cygpath -w "$srcfile"`'
7770 enable_shared_with_static_runtimes=yes
7771 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007772
John Criswell47fdd832003-07-14 16:52:07 +00007773 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00007774 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007775 rhapsody* | darwin1.[012])
7776 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7777 ;;
7778 *) # Darwin 1.3 on
7779 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7780 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7781 else
7782 case ${MACOSX_DEPLOYMENT_TARGET} in
7783 10.[012])
7784 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7785 ;;
7786 10.*)
7787 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7788 ;;
7789 esac
7790 fi
7791 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007792 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00007793 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00007794 hardcode_direct=no
7795 hardcode_automatic=yes
7796 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00007797 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00007798 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00007799 if test "$GCC" = yes ; then
7800 output_verbose_link_cmd='echo'
7801 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7802 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7803 # 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 +00007804 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}'
7805 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 +00007806 else
7807 case "$cc_basename" in
7808 xlc*)
7809 output_verbose_link_cmd='echo'
7810 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7811 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7812 # 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 +00007813 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}'
7814 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 +00007815 ;;
7816 *)
7817 ld_shlibs=no
7818 ;;
7819 esac
John Criswell7a73b802003-06-30 21:59:07 +00007820 fi
John Criswell47fdd832003-07-14 16:52:07 +00007821 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007822
John Criswell47fdd832003-07-14 16:52:07 +00007823 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007825 hardcode_libdir_flag_spec='-L$libdir'
7826 hardcode_shlibpath_var=no
7827 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007828
John Criswell47fdd832003-07-14 16:52:07 +00007829 freebsd1*)
7830 ld_shlibs=no
7831 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007832
John Criswell47fdd832003-07-14 16:52:07 +00007833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7834 # support. Future versions do this automatically, but an explicit c++rt0.o
7835 # does not break anything, and helps significantly (at the cost of a little
7836 # extra space).
7837 freebsd2.2*)
7838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7839 hardcode_libdir_flag_spec='-R$libdir'
7840 hardcode_direct=yes
7841 hardcode_shlibpath_var=no
7842 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007843
John Criswell47fdd832003-07-14 16:52:07 +00007844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7845 freebsd2*)
7846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_direct=yes
7848 hardcode_minus_L=yes
7849 hardcode_shlibpath_var=no
7850 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007851
John Criswell47fdd832003-07-14 16:52:07 +00007852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007853 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7855 hardcode_libdir_flag_spec='-R$libdir'
7856 hardcode_direct=yes
7857 hardcode_shlibpath_var=no
7858 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007859
John Criswell47fdd832003-07-14 16:52:07 +00007860 hpux9*)
7861 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007862 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 +00007863 else
Reid Spencer177dbe22004-10-13 01:01:03 +00007864 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 +00007865 fi
7866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7867 hardcode_libdir_separator=:
7868 hardcode_direct=yes
7869
7870 # hardcode_minus_L: Not really in the search PATH,
7871 # but as the default location of the library.
7872 hardcode_minus_L=yes
7873 export_dynamic_flag_spec='${wl}-E'
7874 ;;
7875
7876 hpux10* | hpux11*)
7877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7878 case "$host_cpu" in
7879 hppa*64*|ia64*)
7880 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7881 ;;
7882 *)
7883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7884 ;;
7885 esac
7886 else
7887 case "$host_cpu" in
7888 hppa*64*|ia64*)
7889 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7890 ;;
7891 *)
7892 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7893 ;;
7894 esac
7895 fi
7896 if test "$with_gnu_ld" = no; then
7897 case "$host_cpu" in
7898 hppa*64*)
7899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7900 hardcode_libdir_flag_spec_ld='+b $libdir'
7901 hardcode_libdir_separator=:
7902 hardcode_direct=no
7903 hardcode_shlibpath_var=no
7904 ;;
7905 ia64*)
7906 hardcode_libdir_flag_spec='-L$libdir'
7907 hardcode_direct=no
7908 hardcode_shlibpath_var=no
7909
7910 # hardcode_minus_L: Not really in the search PATH,
7911 # but as the default location of the library.
7912 hardcode_minus_L=yes
7913 ;;
7914 *)
7915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7916 hardcode_libdir_separator=:
7917 hardcode_direct=yes
7918 export_dynamic_flag_spec='${wl}-E'
7919
7920 # hardcode_minus_L: Not really in the search PATH,
7921 # but as the default location of the library.
7922 hardcode_minus_L=yes
7923 ;;
7924 esac
7925 fi
7926 ;;
7927
7928 irix5* | irix6* | nonstopux*)
7929 if test "$GCC" = yes; then
7930 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'
7931 else
7932 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'
7933 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7934 fi
7935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7936 hardcode_libdir_separator=:
7937 link_all_deplibs=yes
7938 ;;
7939
7940 netbsd*)
7941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7943 else
7944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7945 fi
7946 hardcode_libdir_flag_spec='-R$libdir'
7947 hardcode_direct=yes
7948 hardcode_shlibpath_var=no
7949 ;;
7950
7951 newsos6)
7952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7953 hardcode_direct=yes
7954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955 hardcode_libdir_separator=:
7956 hardcode_shlibpath_var=no
7957 ;;
7958
7959 openbsd*)
7960 hardcode_direct=yes
7961 hardcode_shlibpath_var=no
7962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007964 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 +00007965 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7966 export_dynamic_flag_spec='${wl}-E'
7967 else
7968 case $host_os in
7969 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7971 hardcode_libdir_flag_spec='-R$libdir'
7972 ;;
7973 *)
7974 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7976 ;;
7977 esac
7978 fi
7979 ;;
7980
7981 os2*)
7982 hardcode_libdir_flag_spec='-L$libdir'
7983 hardcode_minus_L=yes
7984 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +00007985 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 +00007986 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7987 ;;
7988
7989 osf3*)
7990 if test "$GCC" = yes; then
7991 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7992 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'
7993 else
7994 allow_undefined_flag=' -expect_unresolved \*'
7995 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'
7996 fi
7997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7998 hardcode_libdir_separator=:
7999 ;;
8000
8001 osf4* | osf5*) # as osf3* with the addition of -msym flag
8002 if test "$GCC" = yes; then
8003 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8004 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'
8005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8006 else
8007 allow_undefined_flag=' -expect_unresolved \*'
8008 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 +00008009 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8010 $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'
8011
John Criswell47fdd832003-07-14 16:52:07 +00008012 # Both c and cxx compiler support -rpath directly
8013 hardcode_libdir_flag_spec='-rpath $libdir'
8014 fi
8015 hardcode_libdir_separator=:
8016 ;;
8017
8018 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00008019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00008021 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00008022 runpath_var=LD_RUN_PATH
8023 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00008024 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008025
John Criswell47fdd832003-07-14 16:52:07 +00008026 solaris*)
8027 no_undefined_flag=' -z text'
8028 if test "$GCC" = yes; then
8029 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00008030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031 $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 +00008032 else
8033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00008034 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8035 $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 +00008036 fi
8037 hardcode_libdir_flag_spec='-R$libdir'
8038 hardcode_shlibpath_var=no
8039 case $host_os in
8040 solaris2.[0-5] | solaris2.[0-5].*) ;;
8041 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8042 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8043 esac
8044 link_all_deplibs=yes
8045 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008046
John Criswell47fdd832003-07-14 16:52:07 +00008047 sunos4*)
8048 if test "x$host_vendor" = xsequent; then
8049 # Use $CC to link under sequent, because it throws in some extra .o
8050 # files that make .init and .fini sections work.
8051 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8052 else
8053 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8054 fi
8055 hardcode_libdir_flag_spec='-L$libdir'
8056 hardcode_direct=yes
8057 hardcode_minus_L=yes
8058 hardcode_shlibpath_var=no
8059 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008060
John Criswell47fdd832003-07-14 16:52:07 +00008061 sysv4)
8062 case $host_vendor in
8063 sni)
8064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8065 hardcode_direct=yes # is this really true???
8066 ;;
8067 siemens)
8068 ## LD is ld it makes a PLAMLIB
8069 ## CC just makes a GrossModule.
8070 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8071 reload_cmds='$CC -r -o $output$reload_objs'
8072 hardcode_direct=no
8073 ;;
8074 motorola)
8075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8077 ;;
8078 esac
8079 runpath_var='LD_RUN_PATH'
8080 hardcode_shlibpath_var=no
8081 ;;
8082
8083 sysv4.3*)
8084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8085 hardcode_shlibpath_var=no
8086 export_dynamic_flag_spec='-Bexport'
8087 ;;
8088
8089 sysv4*MP*)
8090 if test -d /usr/nec; then
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_shlibpath_var=no
8093 runpath_var=LD_RUN_PATH
8094 hardcode_runpath_var=yes
8095 ld_shlibs=yes
8096 fi
8097 ;;
8098
8099 sysv4.2uw2*)
8100 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8101 hardcode_direct=yes
8102 hardcode_minus_L=no
8103 hardcode_shlibpath_var=no
8104 hardcode_runpath_var=yes
8105 runpath_var=LD_RUN_PATH
8106 ;;
8107
8108 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8109 no_undefined_flag='${wl}-z ${wl}text'
8110 if test "$GCC" = yes; then
8111 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8112 else
8113 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8114 fi
8115 runpath_var='LD_RUN_PATH'
8116 hardcode_shlibpath_var=no
8117 ;;
8118
8119 sysv5*)
8120 no_undefined_flag=' -z text'
8121 # $CC -shared without GNU ld will not create a library from C++
8122 # object files and a static libstdc++, better avoid it by now
8123 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00008124 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8125 $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 +00008126 hardcode_libdir_flag_spec=
8127 hardcode_shlibpath_var=no
8128 runpath_var='LD_RUN_PATH'
8129 ;;
8130
8131 uts4*)
8132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133 hardcode_libdir_flag_spec='-L$libdir'
8134 hardcode_shlibpath_var=no
8135 ;;
8136
8137 *)
8138 ld_shlibs=no
8139 ;;
8140 esac
8141 fi
8142
John Criswell7a73b802003-06-30 21:59:07 +00008143echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8144echo "${ECHO_T}$ld_shlibs" >&6
8145test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008146
John Criswell47fdd832003-07-14 16:52:07 +00008147variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8148if test "$GCC" = yes; then
8149 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8150fi
8151
8152#
8153# Do we need to explicitly link libc?
8154#
8155case "x$archive_cmds_need_lc" in
8156x|xyes)
8157 # Assume -lc should be added
8158 archive_cmds_need_lc=yes
8159
8160 if test "$enable_shared" = yes && test "$GCC" = yes; then
8161 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00008162 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00008163 # FIXME: we may have to deal with multi-command sequences.
8164 ;;
8165 '$CC '*)
8166 # Test whether the compiler implicitly links with -lc since on some
8167 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8168 # to ld, don't add -lc before -lgcc.
8169 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8170echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8171 $rm conftest*
8172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8173
8174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175 (eval $ac_compile) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } 2>conftest.err; then
8179 soname=conftest
8180 lib=conftest
8181 libobjs=conftest.$ac_objext
8182 deplibs=
8183 wl=$lt_prog_compiler_wl
8184 compiler_flags=-v
8185 linker_flags=-v
8186 verstring=
8187 output_objdir=.
8188 libname=conftest
8189 lt_save_allow_undefined_flag=$allow_undefined_flag
8190 allow_undefined_flag=
8191 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8192 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8193 ac_status=$?
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }
8196 then
8197 archive_cmds_need_lc=no
8198 else
8199 archive_cmds_need_lc=yes
8200 fi
8201 allow_undefined_flag=$lt_save_allow_undefined_flag
8202 else
8203 cat conftest.err 1>&5
8204 fi
8205 $rm conftest*
8206 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8207echo "${ECHO_T}$archive_cmds_need_lc" >&6
8208 ;;
8209 esac
8210 fi
8211 ;;
8212esac
8213
John Criswell7a73b802003-06-30 21:59:07 +00008214echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8215echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8216library_names_spec=
8217libname_spec='lib$name'
8218soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00008219shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00008220postinstall_cmds=
8221postuninstall_cmds=
8222finish_cmds=
8223finish_eval=
8224shlibpath_var=
8225shlibpath_overrides_runpath=unknown
8226version_type=none
8227dynamic_linker="$host_os ld.so"
8228sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00008229if test "$GCC" = yes; then
8230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8231 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8232 # if the path contains ";" then we assume it to be the separator
8233 # otherwise default to the standard path separator (i.e. ":") - it is
8234 # assumed that no part of a normal pathname contains ";" but that should
8235 # okay in the real world where ";" in dirpaths is itself problematic.
8236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8237 else
8238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8239 fi
8240else
8241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8242fi
8243need_lib_prefix=unknown
8244hardcode_into_libs=no
8245
8246# when you set need_version to no, make sure it does not cause -set_version
8247# flags to be left without arguments
8248need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00008249
8250case $host_os in
8251aix3*)
8252 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008254 shlibpath_var=LIBPATH
8255
John Criswell47fdd832003-07-14 16:52:07 +00008256 # AIX 3 has no versioning support, so we append a major version to the name.
8257 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008258 ;;
8259
8260aix4* | aix5*)
8261 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008262 need_lib_prefix=no
8263 need_version=no
8264 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008265 if test "$host_cpu" = ia64; then
8266 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00008267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008268 shlibpath_var=LD_LIBRARY_PATH
8269 else
8270 # With GCC up to 2.95.x, collect2 would create an import file
8271 # for dependence libraries. The import file would start with
8272 # the line `#! .'. This would cause the generated library to
8273 # depend on `.', always an invalid library. This was fixed in
8274 # development snapshots of GCC prior to 3.0.
8275 case $host_os in
8276 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00008277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8278 echo ' yes '
8279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8280 :
8281 else
8282 can_build_shared=no
8283 fi
8284 ;;
John Criswell7a73b802003-06-30 21:59:07 +00008285 esac
John Criswell47fdd832003-07-14 16:52:07 +00008286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8287 # soname into executable. Probably we can add versioning support to
8288 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00008289 if test "$aix_use_runtimelinking" = yes; then
8290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8291 # instead of lib<name>.a to let people know that these are not
8292 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008294 else
8295 # We preserve .a as extension for shared libraries through AIX4.2
8296 # and later when we are not doing run time linking.
8297 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00008298 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008299 fi
8300 shlibpath_var=LIBPATH
8301 fi
8302 ;;
8303
8304amigaos*)
8305 library_names_spec='$libname.ixlibrary $libname.a'
8306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008307 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 +00008308 ;;
8309
8310beos*)
John Criswell47fdd832003-07-14 16:52:07 +00008311 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008312 dynamic_linker="$host_os ld.so"
8313 shlibpath_var=LIBRARY_PATH
8314 ;;
8315
Reid Spencer2706f8c2004-09-19 23:53:36 +00008316bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00008317 version_type=linux
8318 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8322 shlibpath_var=LD_LIBRARY_PATH
8323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00008325 # the default ld.so.conf also contains /usr/contrib/lib and
8326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8327 # libtool to hard-code these into programs
8328 ;;
8329
8330cygwin* | mingw* | pw32*)
8331 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00008332 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008333 need_version=no
8334 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008335
John Criswell7a73b802003-06-30 21:59:07 +00008336 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00008337 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008338 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00008339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +00008340 postinstall_cmds='base_file=`basename \${file}`~
8341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8342 dldir=$destdir/`dirname \$dlpath`~
8343 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00008344 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +00008345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8346 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +00008347 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00008348 shlibpath_overrides_runpath=yes
8349
8350 case $host_os in
8351 cygwin*)
8352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8353 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 +00008354 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00008355 ;;
8356 mingw*)
8357 # MinGW DLLs use traditional 'lib' prefix
8358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8361 # It is most probably a Windows format PATH printed by
8362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8363 # path with ; separators, and with drive letters. We can handle the
8364 # drive letters (cygwin fileutils understands them), so leave them,
8365 # especially as we might pass files found there to a mingw objdump,
8366 # which wouldn't understand a cygwinified path. Ahh.
8367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8368 else
8369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8370 fi
8371 ;;
8372 pw32*)
8373 # pw32 DLLs use 'pw' prefix rather than 'lib'
8374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8375 ;;
8376 esac
John Criswell7a73b802003-06-30 21:59:07 +00008377 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008378
John Criswell7a73b802003-06-30 21:59:07 +00008379 *)
John Criswell47fdd832003-07-14 16:52:07 +00008380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00008381 ;;
8382 esac
8383 dynamic_linker='Win32 ld.exe'
8384 # FIXME: first we should search . and the directory the executable is in
8385 shlibpath_var=PATH
8386 ;;
8387
8388darwin* | rhapsody*)
8389 dynamic_linker="$host_os dyld"
8390 version_type=darwin
8391 need_lib_prefix=no
8392 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00008393 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00008394 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00008395 shlibpath_overrides_runpath=yes
8396 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00008397 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00008398 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008399 if test "$GCC" = yes; then
8400 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"`
8401 else
8402 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00008403 fi
8404 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8405 ;;
8406
8407dgux*)
8408 version_type=linux
8409 need_lib_prefix=no
8410 need_version=no
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00008414 ;;
8415
8416freebsd1*)
8417 dynamic_linker=no
8418 ;;
8419
Reid Spencer2706f8c2004-09-19 23:53:36 +00008420kfreebsd*-gnu)
8421 version_type=linux
8422 need_lib_prefix=no
8423 need_version=no
8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8425 soname_spec='${libname}${release}${shared_ext}$major'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=no
8428 hardcode_into_libs=yes
8429 dynamic_linker='GNU ld.so'
8430 ;;
8431
John Criswell7a73b802003-06-30 21:59:07 +00008432freebsd*)
8433 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8434 version_type=freebsd-$objformat
8435 case $version_type in
8436 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00008437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008438 need_version=no
8439 need_lib_prefix=no
8440 ;;
8441 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00008442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008443 need_version=yes
8444 ;;
8445 esac
8446 shlibpath_var=LD_LIBRARY_PATH
8447 case $host_os in
8448 freebsd2*)
8449 shlibpath_overrides_runpath=yes
8450 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008451 freebsd3.01* | freebsdelf3.01*)
8452 shlibpath_overrides_runpath=yes
8453 hardcode_into_libs=yes
8454 ;;
8455 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00008456 shlibpath_overrides_runpath=no
8457 hardcode_into_libs=yes
8458 ;;
8459 esac
8460 ;;
8461
8462gnu*)
8463 version_type=linux
8464 need_lib_prefix=no
8465 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8467 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008468 shlibpath_var=LD_LIBRARY_PATH
8469 hardcode_into_libs=yes
8470 ;;
8471
8472hpux9* | hpux10* | hpux11*)
8473 # Give a soname corresponding to the major version so that dld.sl refuses to
8474 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00008475 version_type=sunos
8476 need_lib_prefix=no
8477 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008478 case "$host_cpu" in
8479 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00008480 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00008481 hardcode_into_libs=yes
8482 dynamic_linker="$host_os dld.so"
8483 shlibpath_var=LD_LIBRARY_PATH
8484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 if test "X$HPUX_IA64_MODE" = X32; then
8488 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8489 else
8490 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8491 fi
8492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8493 ;;
8494 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00008495 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00008496 hardcode_into_libs=yes
8497 dynamic_linker="$host_os dld.sl"
8498 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8499 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8501 soname_spec='${libname}${release}${shared_ext}$major'
8502 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8504 ;;
8505 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00008506 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00008507 dynamic_linker="$host_os dld.sl"
8508 shlibpath_var=SHLIB_PATH
8509 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8511 soname_spec='${libname}${release}${shared_ext}$major'
8512 ;;
8513 esac
John Criswell7a73b802003-06-30 21:59:07 +00008514 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8515 postinstall_cmds='chmod 555 $lib'
8516 ;;
8517
John Criswell47fdd832003-07-14 16:52:07 +00008518irix5* | irix6* | nonstopux*)
8519 case $host_os in
8520 nonstopux*) version_type=nonstopux ;;
8521 *)
8522 if test "$lt_cv_prog_gnu_ld" = yes; then
8523 version_type=linux
8524 else
8525 version_type=irix
8526 fi ;;
8527 esac
John Criswell7a73b802003-06-30 21:59:07 +00008528 need_lib_prefix=no
8529 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008530 soname_spec='${libname}${release}${shared_ext}$major'
8531 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 +00008532 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00008533 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00008534 libsuff= shlibsuff=
8535 ;;
8536 *)
8537 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00008538 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8539 libsuff= shlibsuff= libmagic=32-bit;;
8540 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8541 libsuff=32 shlibsuff=N32 libmagic=N32;;
8542 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8543 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00008544 *) libsuff= shlibsuff= libmagic=never-match;;
8545 esac
8546 ;;
8547 esac
8548 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8549 shlibpath_overrides_runpath=no
8550 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8551 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00008552 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008553 ;;
8554
8555# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00008556linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00008557 dynamic_linker=no
8558 ;;
8559
8560# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00008561linux*)
John Criswell7a73b802003-06-30 21:59:07 +00008562 version_type=linux
8563 need_lib_prefix=no
8564 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=no
8570 # This implies no fast_install, which is unacceptable.
8571 # Some rework will be needed to allow for fast_install
8572 # before this can be enabled.
8573 hardcode_into_libs=yes
8574
Reid Spencer2706f8c2004-09-19 23:53:36 +00008575 # Append ld.so.conf contents to the search path
8576 if test -f /etc/ld.so.conf; then
8577 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8579 fi
8580
John Criswell7a73b802003-06-30 21:59:07 +00008581 # We used to test for /lib/ld.so.1 and disable shared libraries on
8582 # powerpc, because MkLinux only supported shared libraries with the
8583 # GNU dynamic linker. Since this was broken with cross compilers,
8584 # most powerpc-linux boxes support dynamic linking these days and
8585 # people can always --disable-shared, the test was removed, and we
8586 # assume the GNU/Linux dynamic linker is in use.
8587 dynamic_linker='GNU/Linux ld.so'
8588 ;;
8589
Reid Spencer2706f8c2004-09-19 23:53:36 +00008590knetbsd*-gnu)
8591 version_type=linux
8592 need_lib_prefix=no
8593 need_version=no
8594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8595 soname_spec='${libname}${release}${shared_ext}$major'
8596 shlibpath_var=LD_LIBRARY_PATH
8597 shlibpath_overrides_runpath=no
8598 hardcode_into_libs=yes
8599 dynamic_linker='GNU ld.so'
8600 ;;
8601
John Criswell7a73b802003-06-30 21:59:07 +00008602netbsd*)
8603 version_type=sunos
8604 need_lib_prefix=no
8605 need_version=no
8606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00008607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8609 dynamic_linker='NetBSD (a.out) ld.so'
8610 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00008612 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008613 dynamic_linker='NetBSD ld.elf_so'
8614 fi
8615 shlibpath_var=LD_LIBRARY_PATH
8616 shlibpath_overrides_runpath=yes
8617 hardcode_into_libs=yes
8618 ;;
8619
8620newsos6)
8621 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 shlibpath_overrides_runpath=yes
8625 ;;
8626
Reid Spencer2706f8c2004-09-19 23:53:36 +00008627nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00008628 version_type=linux
8629 need_lib_prefix=no
8630 need_version=no
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008633 shlibpath_var=LD_LIBRARY_PATH
8634 shlibpath_overrides_runpath=yes
8635 ;;
8636
8637openbsd*)
8638 version_type=sunos
8639 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00008640 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8643 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00008644 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 +00008645 case $host_os in
8646 openbsd2.[89] | openbsd2.[89].*)
8647 shlibpath_overrides_runpath=no
8648 ;;
8649 *)
8650 shlibpath_overrides_runpath=yes
8651 ;;
8652 esac
John Criswell7a73b802003-06-30 21:59:07 +00008653 else
8654 shlibpath_overrides_runpath=yes
8655 fi
John Criswell7a73b802003-06-30 21:59:07 +00008656 ;;
8657
8658os2*)
8659 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00008660 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008661 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008662 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008663 dynamic_linker='OS/2 ld.exe'
8664 shlibpath_var=LIBPATH
8665 ;;
8666
8667osf3* | osf4* | osf5*)
8668 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008669 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008670 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008671 soname_spec='${libname}${release}${shared_ext}$major'
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008673 shlibpath_var=LD_LIBRARY_PATH
8674 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8675 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8676 ;;
8677
8678sco3.2v5*)
8679 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008680 soname_spec='${libname}${release}${shared_ext}$major'
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008682 shlibpath_var=LD_LIBRARY_PATH
8683 ;;
8684
8685solaris*)
8686 version_type=linux
8687 need_lib_prefix=no
8688 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008691 shlibpath_var=LD_LIBRARY_PATH
8692 shlibpath_overrides_runpath=yes
8693 hardcode_into_libs=yes
8694 # ldd complains unless libraries are executable
8695 postinstall_cmds='chmod +x $lib'
8696 ;;
8697
8698sunos4*)
8699 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008701 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8702 shlibpath_var=LD_LIBRARY_PATH
8703 shlibpath_overrides_runpath=yes
8704 if test "$with_gnu_ld" = yes; then
8705 need_lib_prefix=no
8706 fi
8707 need_version=yes
8708 ;;
8709
8710sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8711 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008714 shlibpath_var=LD_LIBRARY_PATH
8715 case $host_vendor in
8716 sni)
8717 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008718 need_lib_prefix=no
8719 export_dynamic_flag_spec='${wl}-Blargedynsym'
8720 runpath_var=LD_RUN_PATH
8721 ;;
8722 siemens)
8723 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008724 ;;
8725 motorola)
8726 need_lib_prefix=no
8727 need_version=no
8728 shlibpath_overrides_runpath=no
8729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8730 ;;
8731 esac
8732 ;;
8733
John Criswell7a73b802003-06-30 21:59:07 +00008734sysv4*MP*)
8735 if test -d /usr/nec ;then
8736 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008737 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8738 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008739 shlibpath_var=LD_LIBRARY_PATH
8740 fi
8741 ;;
8742
John Criswell47fdd832003-07-14 16:52:07 +00008743uts4*)
8744 version_type=linux
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 ;;
8749
John Criswell7a73b802003-06-30 21:59:07 +00008750*)
8751 dynamic_linker=no
8752 ;;
8753esac
8754echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8755echo "${ECHO_T}$dynamic_linker" >&6
8756test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008757
Reid Spencer2706f8c2004-09-19 23:53:36 +00008758echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8759echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8760hardcode_action=
8761if test -n "$hardcode_libdir_flag_spec" || \
8762 test -n "$runpath_var" || \
8763 test "X$hardcode_automatic" = "Xyes" ; then
8764
8765 # We can hardcode non-existant directories.
8766 if test "$hardcode_direct" != no &&
8767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8768 # have to relink, otherwise we might link with an installed library
8769 # when we should be linking with a yet-to-be-installed one
8770 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8771 test "$hardcode_minus_L" != no; then
8772 # Linking always hardcodes the temporary library directory.
8773 hardcode_action=relink
8774 else
8775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8776 hardcode_action=immediate
8777 fi
8778else
8779 # We cannot hardcode anything, or else we can only hardcode existing
8780 # directories.
8781 hardcode_action=unsupported
8782fi
8783echo "$as_me:$LINENO: result: $hardcode_action" >&5
8784echo "${ECHO_T}$hardcode_action" >&6
8785
8786if test "$hardcode_action" = relink; then
8787 # Fast installation is not supported
8788 enable_fast_install=no
8789elif test "$shlibpath_overrides_runpath" = yes ||
8790 test "$enable_shared" = no; then
8791 # Fast installation is not necessary
8792 enable_fast_install=needless
8793fi
8794
8795striplib=
8796old_striplib=
8797echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8798echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8799if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8800 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8801 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8802 echo "$as_me:$LINENO: result: yes" >&5
8803echo "${ECHO_T}yes" >&6
8804else
8805# FIXME - insert some real tests, host_os isn't really good enough
8806 case $host_os in
8807 darwin*)
8808 if test -n "$STRIP" ; then
8809 striplib="$STRIP -x"
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815fi
8816 ;;
8817 *)
8818 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6
8820 ;;
8821 esac
8822fi
8823
John Criswell7a73b802003-06-30 21:59:07 +00008824if test "x$enable_dlopen" != xyes; then
8825 enable_dlopen=unknown
8826 enable_dlopen_self=unknown
8827 enable_dlopen_self_static=unknown
8828else
8829 lt_cv_dlopen=no
8830 lt_cv_dlopen_libs=
8831
8832 case $host_os in
8833 beos*)
8834 lt_cv_dlopen="load_add_on"
8835 lt_cv_dlopen_libs=
8836 lt_cv_dlopen_self=yes
8837 ;;
8838
John Criswell47fdd832003-07-14 16:52:07 +00008839 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008840 lt_cv_dlopen="LoadLibrary"
8841 lt_cv_dlopen_libs=
8842 ;;
8843
John Criswell47fdd832003-07-14 16:52:07 +00008844 cygwin*)
8845 lt_cv_dlopen="dlopen"
8846 lt_cv_dlopen_libs=
8847 ;;
8848
8849 darwin*)
8850 # if libdl is installed we need to link against it
8851 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8852echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8853if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8855else
8856 ac_check_lib_save_LIBS=$LIBS
8857LIBS="-ldl $LIBS"
8858cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008864
8865/* Override any gcc2 internal prototype to avoid an error. */
8866#ifdef __cplusplus
8867extern "C"
8868#endif
8869/* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8871char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008872int
8873main ()
8874{
8875dlopen ();
8876 ;
8877 return 0;
8878}
8879_ACEOF
8880rm -f conftest.$ac_objext conftest$ac_exeext
8881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008882 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008883 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008889 { ac_try='test -z "$ac_c_werror_flag"
8890 || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 (eval $ac_try) 2>&5
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_lib_dl_dlopen=yes
8903else
8904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008905sed 's/^/| /' conftest.$ac_ext >&5
8906
John Criswell47fdd832003-07-14 16:52:07 +00008907ac_cv_lib_dl_dlopen=no
8908fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008909rm -f conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008911LIBS=$ac_check_lib_save_LIBS
8912fi
8913echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8915if test $ac_cv_lib_dl_dlopen = yes; then
8916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8917else
8918
8919 lt_cv_dlopen="dyld"
8920 lt_cv_dlopen_libs=
8921 lt_cv_dlopen_self=yes
8922
8923fi
8924
8925 ;;
8926
John Criswell7a73b802003-06-30 21:59:07 +00008927 *)
8928 echo "$as_me:$LINENO: checking for shl_load" >&5
8929echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8930if test "${ac_cv_func_shl_load+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008934/* confdefs.h. */
8935_ACEOF
8936cat confdefs.h >>conftest.$ac_ext
8937cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008939/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8941#define shl_load innocuous_shl_load
8942
John Criswell7a73b802003-06-30 21:59:07 +00008943/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008944 which can conflict with char shl_load (); below.
8945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8946 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008947
John Criswell0c38eaf2003-09-10 15:17:25 +00008948#ifdef __STDC__
8949# include <limits.h>
8950#else
8951# include <assert.h>
8952#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008953
8954#undef shl_load
8955
John Criswell7a73b802003-06-30 21:59:07 +00008956/* Override any gcc2 internal prototype to avoid an error. */
8957#ifdef __cplusplus
8958extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008959{
John Criswell7a73b802003-06-30 21:59:07 +00008960#endif
8961/* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
8963char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008964/* The GNU C library defines this for functions which it implements
8965 to always fail with ENOSYS. Some functions are actually named
8966 something starting with __ and the normal name is an alias. */
8967#if defined (__stub_shl_load) || defined (__stub___shl_load)
8968choke me
8969#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008970char (*f) () = shl_load;
8971#endif
8972#ifdef __cplusplus
8973}
John Criswell7a73b802003-06-30 21:59:07 +00008974#endif
8975
John Criswell0c38eaf2003-09-10 15:17:25 +00008976int
8977main ()
8978{
8979return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008980 ;
8981 return 0;
8982}
8983_ACEOF
8984rm -f conftest.$ac_objext conftest$ac_exeext
8985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008986 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_func_shl_load=yes
9007else
9008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009009sed 's/^/| /' conftest.$ac_ext >&5
9010
John Criswell7a73b802003-06-30 21:59:07 +00009011ac_cv_func_shl_load=no
9012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009013rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009015fi
9016echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9017echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9018if test $ac_cv_func_shl_load = yes; then
9019 lt_cv_dlopen="shl_load"
9020else
9021 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9022echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9023if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026 ac_check_lib_save_LIBS=$LIBS
9027LIBS="-ldld $LIBS"
9028cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009029/* confdefs.h. */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009034
9035/* Override any gcc2 internal prototype to avoid an error. */
9036#ifdef __cplusplus
9037extern "C"
9038#endif
9039/* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00009042int
9043main ()
9044{
9045shl_load ();
9046 ;
9047 return 0;
9048}
9049_ACEOF
9050rm -f conftest.$ac_objext conftest$ac_exeext
9051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009052 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009059 { ac_try='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 ac_cv_lib_dld_shl_load=yes
9073else
9074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009075sed 's/^/| /' conftest.$ac_ext >&5
9076
John Criswell7a73b802003-06-30 21:59:07 +00009077ac_cv_lib_dld_shl_load=no
9078fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009079rm -f conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009081LIBS=$ac_check_lib_save_LIBS
9082fi
9083echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9084echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9085if test $ac_cv_lib_dld_shl_load = yes; then
9086 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9087else
9088 echo "$as_me:$LINENO: checking for dlopen" >&5
9089echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9090if test "${ac_cv_func_dlopen+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00009099/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9101#define dlopen innocuous_dlopen
9102
John Criswell7a73b802003-06-30 21:59:07 +00009103/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00009104 which can conflict with char dlopen (); below.
9105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00009107
John Criswell0c38eaf2003-09-10 15:17:25 +00009108#ifdef __STDC__
9109# include <limits.h>
9110#else
9111# include <assert.h>
9112#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00009113
9114#undef dlopen
9115
John Criswell7a73b802003-06-30 21:59:07 +00009116/* Override any gcc2 internal prototype to avoid an error. */
9117#ifdef __cplusplus
9118extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00009119{
John Criswell7a73b802003-06-30 21:59:07 +00009120#endif
9121/* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9123char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00009124/* The GNU C library defines this for functions which it implements
9125 to always fail with ENOSYS. Some functions are actually named
9126 something starting with __ and the normal name is an alias. */
9127#if defined (__stub_dlopen) || defined (__stub___dlopen)
9128choke me
9129#else
John Criswell0c38eaf2003-09-10 15:17:25 +00009130char (*f) () = dlopen;
9131#endif
9132#ifdef __cplusplus
9133}
John Criswell7a73b802003-06-30 21:59:07 +00009134#endif
9135
John Criswell0c38eaf2003-09-10 15:17:25 +00009136int
9137main ()
9138{
9139return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00009140 ;
9141 return 0;
9142}
9143_ACEOF
9144rm -f conftest.$ac_objext conftest$ac_exeext
9145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009146 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009148 grep -v '^ *+' conftest.er1 >conftest.err
9149 rm -f conftest.er1
9150 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009153 { ac_try='test -z "$ac_c_werror_flag"
9154 || test ! -s conftest.err'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; } &&
9160 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_func_dlopen=yes
9167else
9168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009169sed 's/^/| /' conftest.$ac_ext >&5
9170
John Criswell7a73b802003-06-30 21:59:07 +00009171ac_cv_func_dlopen=no
9172fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009173rm -f conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009175fi
9176echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9177echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9178if test $ac_cv_func_dlopen = yes; then
9179 lt_cv_dlopen="dlopen"
9180else
9181 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9182echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9183if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 ac_check_lib_save_LIBS=$LIBS
9187LIBS="-ldl $LIBS"
9188cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009189/* confdefs.h. */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009194
9195/* Override any gcc2 internal prototype to avoid an error. */
9196#ifdef __cplusplus
9197extern "C"
9198#endif
9199/* We use char because int might match the return type of a gcc2
9200 builtin and then its argument prototype would still apply. */
9201char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00009202int
9203main ()
9204{
9205dlopen ();
9206 ;
9207 return 0;
9208}
9209_ACEOF
9210rm -f conftest.$ac_objext conftest$ac_exeext
9211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009212 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009219 { ac_try='test -z "$ac_c_werror_flag"
9220 || test ! -s conftest.err'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 (eval $ac_try) 2>&5
9223 ac_status=$?
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; }; then
9232 ac_cv_lib_dl_dlopen=yes
9233else
9234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009235sed 's/^/| /' conftest.$ac_ext >&5
9236
John Criswell7a73b802003-06-30 21:59:07 +00009237ac_cv_lib_dl_dlopen=no
9238fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009239rm -f conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009241LIBS=$ac_check_lib_save_LIBS
9242fi
9243echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9244echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9245if test $ac_cv_lib_dl_dlopen = yes; then
9246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9247else
9248 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9249echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9250if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253 ac_check_lib_save_LIBS=$LIBS
9254LIBS="-lsvld $LIBS"
9255cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009256/* confdefs.h. */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009261
9262/* Override any gcc2 internal prototype to avoid an error. */
9263#ifdef __cplusplus
9264extern "C"
9265#endif
9266/* We use char because int might match the return type of a gcc2
9267 builtin and then its argument prototype would still apply. */
9268char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00009269int
9270main ()
9271{
9272dlopen ();
9273 ;
9274 return 0;
9275}
9276_ACEOF
9277rm -f conftest.$ac_objext conftest$ac_exeext
9278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009279 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009286 { ac_try='test -z "$ac_c_werror_flag"
9287 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } &&
9293 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_svld_dlopen=yes
9300else
9301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009302sed 's/^/| /' conftest.$ac_ext >&5
9303
John Criswell7a73b802003-06-30 21:59:07 +00009304ac_cv_lib_svld_dlopen=no
9305fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009306rm -f conftest.err conftest.$ac_objext \
9307 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009308LIBS=$ac_check_lib_save_LIBS
9309fi
9310echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9311echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9312if test $ac_cv_lib_svld_dlopen = yes; then
9313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9314else
9315 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9316echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9317if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320 ac_check_lib_save_LIBS=$LIBS
9321LIBS="-ldld $LIBS"
9322cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009323/* confdefs.h. */
9324_ACEOF
9325cat confdefs.h >>conftest.$ac_ext
9326cat >>conftest.$ac_ext <<_ACEOF
9327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00009328
9329/* Override any gcc2 internal prototype to avoid an error. */
9330#ifdef __cplusplus
9331extern "C"
9332#endif
9333/* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9335char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00009336int
9337main ()
9338{
9339dld_link ();
9340 ;
9341 return 0;
9342}
9343_ACEOF
9344rm -f conftest.$ac_objext conftest$ac_exeext
9345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009346 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00009347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009353 { ac_try='test -z "$ac_c_werror_flag"
9354 || test ! -s conftest.err'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; } &&
9360 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00009361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 (eval $ac_try) 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9366 ac_cv_lib_dld_dld_link=yes
9367else
9368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009369sed 's/^/| /' conftest.$ac_ext >&5
9370
John Criswell7a73b802003-06-30 21:59:07 +00009371ac_cv_lib_dld_dld_link=no
9372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009373rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00009375LIBS=$ac_check_lib_save_LIBS
9376fi
9377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9378echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9379if test $ac_cv_lib_dld_dld_link = yes; then
9380 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9381fi
9382
9383
9384fi
9385
9386
9387fi
9388
9389
9390fi
9391
9392
9393fi
9394
9395
9396fi
9397
9398 ;;
9399 esac
9400
9401 if test "x$lt_cv_dlopen" != xno; then
9402 enable_dlopen=yes
9403 else
9404 enable_dlopen=no
9405 fi
9406
9407 case $lt_cv_dlopen in
9408 dlopen)
9409 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00009410 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00009411
9412 save_LDFLAGS="$LDFLAGS"
9413 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9414
9415 save_LIBS="$LIBS"
9416 LIBS="$lt_cv_dlopen_libs $LIBS"
9417
9418 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9419echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9420if test "${lt_cv_dlopen_self+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423 if test "$cross_compiling" = yes; then :
9424 lt_cv_dlopen_self=cross
9425else
John Criswell47fdd832003-07-14 16:52:07 +00009426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00009427 lt_status=$lt_dlunknown
9428 cat > conftest.$ac_ext <<EOF
Reid Spencer1f319422004-11-29 04:56:35 +00009429#line 9429 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00009430#include "confdefs.h"
9431
9432#if HAVE_DLFCN_H
9433#include <dlfcn.h>
9434#endif
9435
9436#include <stdio.h>
9437
9438#ifdef RTLD_GLOBAL
9439# define LT_DLGLOBAL RTLD_GLOBAL
9440#else
9441# ifdef DL_GLOBAL
9442# define LT_DLGLOBAL DL_GLOBAL
9443# else
9444# define LT_DLGLOBAL 0
9445# endif
9446#endif
9447
9448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9449 find out it does not work in some platform. */
9450#ifndef LT_DLLAZY_OR_NOW
9451# ifdef RTLD_LAZY
9452# define LT_DLLAZY_OR_NOW RTLD_LAZY
9453# else
9454# ifdef DL_LAZY
9455# define LT_DLLAZY_OR_NOW DL_LAZY
9456# else
9457# ifdef RTLD_NOW
9458# define LT_DLLAZY_OR_NOW RTLD_NOW
9459# else
9460# ifdef DL_NOW
9461# define LT_DLLAZY_OR_NOW DL_NOW
9462# else
9463# define LT_DLLAZY_OR_NOW 0
9464# endif
9465# endif
9466# endif
9467# endif
9468#endif
9469
9470#ifdef __cplusplus
9471extern "C" void exit (int);
9472#endif
9473
9474void fnord() { int i=42;}
9475int main ()
9476{
9477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9478 int status = $lt_dlunknown;
9479
9480 if (self)
9481 {
9482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9484 /* dlclose (self); */
9485 }
9486
9487 exit (status);
9488}
9489EOF
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9495 (./conftest; exit; ) 2>/dev/null
9496 lt_status=$?
9497 case x$lt_status in
9498 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9499 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9500 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9501 esac
9502 else :
9503 # compilation failed
9504 lt_cv_dlopen_self=no
9505 fi
9506fi
9507rm -fr conftest*
9508
9509
9510fi
9511echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9512echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9513
9514 if test "x$lt_cv_dlopen_self" = xyes; then
9515 LDFLAGS="$LDFLAGS $link_static_flag"
9516 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9517echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9518if test "${lt_cv_dlopen_self_static+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test "$cross_compiling" = yes; then :
9522 lt_cv_dlopen_self_static=cross
9523else
John Criswell47fdd832003-07-14 16:52:07 +00009524 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00009525 lt_status=$lt_dlunknown
9526 cat > conftest.$ac_ext <<EOF
Reid Spencer1f319422004-11-29 04:56:35 +00009527#line 9527 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00009528#include "confdefs.h"
9529
9530#if HAVE_DLFCN_H
9531#include <dlfcn.h>
9532#endif
9533
9534#include <stdio.h>
9535
9536#ifdef RTLD_GLOBAL
9537# define LT_DLGLOBAL RTLD_GLOBAL
9538#else
9539# ifdef DL_GLOBAL
9540# define LT_DLGLOBAL DL_GLOBAL
9541# else
9542# define LT_DLGLOBAL 0
9543# endif
9544#endif
9545
9546/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9547 find out it does not work in some platform. */
9548#ifndef LT_DLLAZY_OR_NOW
9549# ifdef RTLD_LAZY
9550# define LT_DLLAZY_OR_NOW RTLD_LAZY
9551# else
9552# ifdef DL_LAZY
9553# define LT_DLLAZY_OR_NOW DL_LAZY
9554# else
9555# ifdef RTLD_NOW
9556# define LT_DLLAZY_OR_NOW RTLD_NOW
9557# else
9558# ifdef DL_NOW
9559# define LT_DLLAZY_OR_NOW DL_NOW
9560# else
9561# define LT_DLLAZY_OR_NOW 0
9562# endif
9563# endif
9564# endif
9565# endif
9566#endif
9567
9568#ifdef __cplusplus
9569extern "C" void exit (int);
9570#endif
9571
9572void fnord() { int i=42;}
9573int main ()
9574{
9575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9576 int status = $lt_dlunknown;
9577
9578 if (self)
9579 {
9580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9582 /* dlclose (self); */
9583 }
9584
9585 exit (status);
9586}
9587EOF
9588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589 (eval $ac_link) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9593 (./conftest; exit; ) 2>/dev/null
9594 lt_status=$?
9595 case x$lt_status in
9596 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9597 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9598 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9599 esac
9600 else :
9601 # compilation failed
9602 lt_cv_dlopen_self_static=no
9603 fi
9604fi
9605rm -fr conftest*
9606
9607
9608fi
9609echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9610echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9611 fi
9612
9613 CPPFLAGS="$save_CPPFLAGS"
9614 LDFLAGS="$save_LDFLAGS"
9615 LIBS="$save_LIBS"
9616 ;;
9617 esac
9618
9619 case $lt_cv_dlopen_self in
9620 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9621 *) enable_dlopen_self=unknown ;;
9622 esac
9623
9624 case $lt_cv_dlopen_self_static in
9625 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9626 *) enable_dlopen_self_static=unknown ;;
9627 esac
9628fi
9629
9630
John Criswell47fdd832003-07-14 16:52:07 +00009631# Report which librarie types wil actually be built
9632echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9633echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9634echo "$as_me:$LINENO: result: $can_build_shared" >&5
9635echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00009636
John Criswell47fdd832003-07-14 16:52:07 +00009637echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9638echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9639test "$can_build_shared" = "no" && enable_shared=no
9640
9641# On AIX, shared libraries and static libraries use the same namespace, and
9642# are all built from PIC.
9643case "$host_os" in
9644aix3*)
9645 test "$enable_shared" = yes && enable_static=no
9646 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009647 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00009648 postinstall_cmds='$RANLIB $lib'
9649 fi
9650 ;;
9651
Reid Spencer2706f8c2004-09-19 23:53:36 +00009652aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00009653 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9654 test "$enable_shared" = yes && enable_static=no
9655 fi
John Criswell7a73b802003-06-30 21:59:07 +00009656 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009657esac
9658echo "$as_me:$LINENO: result: $enable_shared" >&5
9659echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00009660
John Criswell47fdd832003-07-14 16:52:07 +00009661echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9662echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9663# Make sure either enable_shared or enable_static is yes.
9664test "$enable_shared" = yes || enable_static=yes
9665echo "$as_me:$LINENO: result: $enable_static" >&5
9666echo "${ECHO_T}$enable_static" >&6
9667
9668# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00009669# libtool distribution, otherwise you forgot to ship ltmain.sh
9670# with your package, and you will get complaints that there are
9671# no rules to generate ltmain.sh.
9672if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00009673 # See if we are running on zsh, and set the options which allow our commands through
9674 # without removal of \ escapes.
9675 if test -n "${ZSH_VERSION+set}" ; then
9676 setopt NO_GLOB_SUBST
9677 fi
John Criswell7a73b802003-06-30 21:59:07 +00009678 # Now quote all the things that may contain metacharacters while being
9679 # careful not to overquote the AC_SUBSTed values. We take copies of the
9680 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009681 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9682 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00009683 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9684 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9685 deplibs_check_method reload_flag reload_cmds need_locks \
9686 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9687 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00009688 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00009689 old_postinstall_cmds old_postuninstall_cmds \
9690 compiler \
9691 CC \
9692 LD \
9693 lt_prog_compiler_wl \
9694 lt_prog_compiler_pic \
9695 lt_prog_compiler_static \
9696 lt_prog_compiler_no_builtin_flag \
9697 export_dynamic_flag_spec \
9698 thread_safe_flag_spec \
9699 whole_archive_flag_spec \
9700 enable_shared_with_static_runtimes \
9701 old_archive_cmds \
9702 old_archive_from_new_cmds \
9703 predep_objects \
9704 postdep_objects \
9705 predeps \
9706 postdeps \
9707 compiler_lib_search_path \
9708 archive_cmds \
9709 archive_expsym_cmds \
9710 postinstall_cmds \
9711 postuninstall_cmds \
9712 old_archive_from_expsyms_cmds \
9713 allow_undefined_flag \
9714 no_undefined_flag \
9715 export_symbols_cmds \
9716 hardcode_libdir_flag_spec \
9717 hardcode_libdir_flag_spec_ld \
9718 hardcode_libdir_separator \
9719 hardcode_automatic \
9720 module_cmds \
9721 module_expsym_cmds \
9722 lt_cv_prog_compiler_c_o \
9723 exclude_expsyms \
9724 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00009725
9726 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00009727 old_archive_cmds | \
9728 old_archive_from_new_cmds | \
9729 archive_cmds | \
9730 archive_expsym_cmds | \
9731 module_cmds | \
9732 module_expsym_cmds | \
9733 old_archive_from_expsyms_cmds | \
9734 export_symbols_cmds | \
9735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00009736 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00009737 old_postinstall_cmds | old_postuninstall_cmds | \
9738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00009739 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009740 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 +00009741 ;;
9742 *)
9743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9744 ;;
9745 esac
9746 done
9747
John Criswell47fdd832003-07-14 16:52:07 +00009748 case $lt_echo in
9749 *'\$0 --fallback-echo"')
9750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9751 ;;
9752 esac
9753
9754cfgfile="${ofile}T"
9755 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9756 $rm -f "$cfgfile"
9757 { echo "$as_me:$LINENO: creating $ofile" >&5
9758echo "$as_me: creating $ofile" >&6;}
9759
9760 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009761#! $SHELL
9762
John Criswell47fdd832003-07-14 16:52:07 +00009763# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00009764# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9765# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9766#
John Criswell47fdd832003-07-14 16:52:07 +00009767# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9768# Free Software Foundation, Inc.
9769#
9770# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00009771# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9772#
9773# This program is free software; you can redistribute it and/or modify
9774# it under the terms of the GNU General Public License as published by
9775# the Free Software Foundation; either version 2 of the License, or
9776# (at your option) any later version.
9777#
9778# This program is distributed in the hope that it will be useful, but
9779# WITHOUT ANY WARRANTY; without even the implied warranty of
9780# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9781# General Public License for more details.
9782#
9783# You should have received a copy of the GNU General Public License
9784# along with this program; if not, write to the Free Software
9785# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9786#
9787# As a special exception to the GNU General Public License, if you
9788# distribute this file as part of a program that contains a
9789# configuration script generated by Autoconf, you may include it under
9790# the same distribution terms that you use for the rest of that program.
9791
John Criswell47fdd832003-07-14 16:52:07 +00009792# A sed program that does not truncate output.
9793SED=$lt_SED
9794
John Criswell7a73b802003-06-30 21:59:07 +00009795# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00009796Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00009797
9798# The HP-UX ksh and POSIX shell print the target directory to stdout
9799# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00009801
John Criswell47fdd832003-07-14 16:52:07 +00009802# The names of the tagged configurations supported by this script.
9803available_tags=
9804
John Criswell7a73b802003-06-30 21:59:07 +00009805# ### BEGIN LIBTOOL CONFIG
9806
9807# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9808
9809# Shell to use when invoking shell scripts.
9810SHELL=$lt_SHELL
9811
9812# Whether or not to build shared libraries.
9813build_libtool_libs=$enable_shared
9814
9815# Whether or not to build static libraries.
9816build_old_libs=$enable_static
9817
9818# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009819build_libtool_need_lc=$archive_cmds_need_lc
9820
9821# Whether or not to disallow shared libs when runtime libs are static
9822allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009823
9824# Whether or not to optimize for fast installation.
9825fast_install=$enable_fast_install
9826
9827# The host system.
9828host_alias=$host_alias
9829host=$host
9830
9831# An echo program that does not interpret backslashes.
9832echo=$lt_echo
9833
9834# The archiver.
9835AR=$lt_AR
9836AR_FLAGS=$lt_AR_FLAGS
9837
John Criswell47fdd832003-07-14 16:52:07 +00009838# A C compiler.
9839LTCC=$lt_LTCC
9840
9841# A language-specific compiler.
9842CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009843
9844# Is the compiler the GNU C compiler?
9845with_gcc=$GCC
9846
John Criswell47fdd832003-07-14 16:52:07 +00009847# An ERE matcher.
9848EGREP=$lt_EGREP
9849
John Criswell7a73b802003-06-30 21:59:07 +00009850# The linker used to build libraries.
9851LD=$lt_LD
9852
9853# Whether we need hard or soft links.
9854LN_S=$lt_LN_S
9855
9856# A BSD-compatible nm program.
9857NM=$lt_NM
9858
9859# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009860STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009861
9862# Used to examine libraries when file_magic_cmd begins "file"
9863MAGIC_CMD=$MAGIC_CMD
9864
9865# Used on cygwin: DLL creation program.
9866DLLTOOL="$DLLTOOL"
9867
9868# Used on cygwin: object dumper.
9869OBJDUMP="$OBJDUMP"
9870
9871# Used on cygwin: assembler.
9872AS="$AS"
9873
9874# The name of the directory that contains temporary libtool files.
9875objdir=$objdir
9876
9877# How to create reloadable object files.
9878reload_flag=$lt_reload_flag
9879reload_cmds=$lt_reload_cmds
9880
9881# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009882wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009883
9884# Object file suffix (normally "o").
9885objext="$ac_objext"
9886
9887# Old archive suffix (normally "a").
9888libext="$libext"
9889
John Criswell47fdd832003-07-14 16:52:07 +00009890# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009891shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009892
John Criswell7a73b802003-06-30 21:59:07 +00009893# Executable file suffix (normally "").
9894exeext="$exeext"
9895
9896# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009897pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009898pic_mode=$pic_mode
9899
John Criswell47fdd832003-07-14 16:52:07 +00009900# What is the maximum length of a command?
9901max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009902
John Criswell47fdd832003-07-14 16:52:07 +00009903# Does compiler simultaneously support -c and -o options?
9904compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009905
9906# Must we lock files when doing compilation ?
9907need_locks=$lt_need_locks
9908
9909# Do we need the lib prefix for modules?
9910need_lib_prefix=$need_lib_prefix
9911
9912# Do we need a version for libraries?
9913need_version=$need_version
9914
9915# Whether dlopen is supported.
9916dlopen_support=$enable_dlopen
9917
9918# Whether dlopen of programs is supported.
9919dlopen_self=$enable_dlopen_self
9920
9921# Whether dlopen of statically linked programs is supported.
9922dlopen_self_static=$enable_dlopen_self_static
9923
9924# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009925link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009926
9927# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009929
9930# Compiler flag to allow reflexive dlopens.
9931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9932
9933# Compiler flag to generate shared objects directly from archives.
9934whole_archive_flag_spec=$lt_whole_archive_flag_spec
9935
9936# Compiler flag to generate thread-safe objects.
9937thread_safe_flag_spec=$lt_thread_safe_flag_spec
9938
9939# Library versioning type.
9940version_type=$version_type
9941
9942# Format of library name prefix.
9943libname_spec=$lt_libname_spec
9944
9945# List of archive names. First name is the real one, the rest are links.
9946# The last name is the one that the linker finds with -lNAME.
9947library_names_spec=$lt_library_names_spec
9948
9949# The coded name of the library, if different from the real name.
9950soname_spec=$lt_soname_spec
9951
9952# Commands used to build and install an old-style archive.
9953RANLIB=$lt_RANLIB
9954old_archive_cmds=$lt_old_archive_cmds
9955old_postinstall_cmds=$lt_old_postinstall_cmds
9956old_postuninstall_cmds=$lt_old_postuninstall_cmds
9957
9958# Create an old-style archive from a shared archive.
9959old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9960
9961# Create a temporary old-style archive to link instead of a shared archive.
9962old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9963
9964# Commands used to build and install a shared archive.
9965archive_cmds=$lt_archive_cmds
9966archive_expsym_cmds=$lt_archive_expsym_cmds
9967postinstall_cmds=$lt_postinstall_cmds
9968postuninstall_cmds=$lt_postuninstall_cmds
9969
John Criswell47fdd832003-07-14 16:52:07 +00009970# Commands used to build a loadable module (assumed same as above if empty)
9971module_cmds=$lt_module_cmds
9972module_expsym_cmds=$lt_module_expsym_cmds
9973
John Criswell7a73b802003-06-30 21:59:07 +00009974# Commands to strip libraries.
9975old_striplib=$lt_old_striplib
9976striplib=$lt_striplib
9977
John Criswell47fdd832003-07-14 16:52:07 +00009978# Dependencies to place before the objects being linked to create a
9979# shared library.
9980predep_objects=$lt_predep_objects
9981
9982# Dependencies to place after the objects being linked to create a
9983# shared library.
9984postdep_objects=$lt_postdep_objects
9985
9986# Dependencies to place before the objects being linked to create a
9987# shared library.
9988predeps=$lt_predeps
9989
9990# Dependencies to place after the objects being linked to create a
9991# shared library.
9992postdeps=$lt_postdeps
9993
9994# The library search path used internally by the compiler when linking
9995# a shared library.
9996compiler_lib_search_path=$lt_compiler_lib_search_path
9997
John Criswell7a73b802003-06-30 21:59:07 +00009998# Method to check whether dependent libraries are shared objects.
9999deplibs_check_method=$lt_deplibs_check_method
10000
10001# Command to use when deplibs_check_method == file_magic.
10002file_magic_cmd=$lt_file_magic_cmd
10003
10004# Flag that allows shared libraries with undefined symbols to be built.
10005allow_undefined_flag=$lt_allow_undefined_flag
10006
10007# Flag that forces no undefined symbols.
10008no_undefined_flag=$lt_no_undefined_flag
10009
10010# Commands used to finish a libtool library installation in a directory.
10011finish_cmds=$lt_finish_cmds
10012
10013# Same as above, but a single script fragment to be evaled but not shown.
10014finish_eval=$lt_finish_eval
10015
10016# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000010017global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000010018
10019# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000010020global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000010021
10022# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000010023global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000010024
10025# This is the shared library runtime path variable.
10026runpath_var=$runpath_var
10027
10028# This is the shared library path variable.
10029shlibpath_var=$shlibpath_var
10030
10031# Is shlibpath searched before the hard-coded library search path?
10032shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10033
10034# How to hardcode a shared library path into an executable.
10035hardcode_action=$hardcode_action
10036
10037# Whether we should hardcode library paths into libraries.
10038hardcode_into_libs=$hardcode_into_libs
10039
10040# Flag to hardcode \$libdir into a binary during linking.
10041# This must work even if \$libdir does not exist.
10042hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10043
John Criswell47fdd832003-07-14 16:52:07 +000010044# If ld is used when linking, flag to hardcode \$libdir into
10045# a binary during linking. This must work even if \$libdir does
10046# not exist.
10047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10048
John Criswell7a73b802003-06-30 21:59:07 +000010049# Whether we need a single -rpath flag with a separated argument.
10050hardcode_libdir_separator=$lt_hardcode_libdir_separator
10051
John Criswell47fdd832003-07-14 16:52:07 +000010052# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000010053# resulting binary.
10054hardcode_direct=$hardcode_direct
10055
10056# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10057# resulting binary.
10058hardcode_minus_L=$hardcode_minus_L
10059
10060# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10061# the resulting binary.
10062hardcode_shlibpath_var=$hardcode_shlibpath_var
10063
John Criswell47fdd832003-07-14 16:52:07 +000010064# Set to yes if building a shared library automatically hardcodes DIR into the library
10065# and all subsequent libraries and executables linked against it.
10066hardcode_automatic=$hardcode_automatic
10067
John Criswell7a73b802003-06-30 21:59:07 +000010068# Variables whose values should be saved in libtool wrapper scripts and
10069# restored at relink time.
10070variables_saved_for_relink="$variables_saved_for_relink"
10071
10072# Whether libtool must link a program against all its dependency libraries.
10073link_all_deplibs=$link_all_deplibs
10074
10075# Compile-time system search path for libraries
10076sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10077
10078# Run-time system search path for libraries
10079sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10080
10081# Fix the shell variable \$srcfile for the compiler.
10082fix_srcfile_path="$fix_srcfile_path"
10083
10084# Set to yes if exported symbols are required.
10085always_export_symbols=$always_export_symbols
10086
10087# The commands to list exported symbols.
10088export_symbols_cmds=$lt_export_symbols_cmds
10089
10090# The commands to extract the exported symbol list from a shared archive.
10091extract_expsyms_cmds=$lt_extract_expsyms_cmds
10092
10093# Symbols that should not be listed in the preloaded symbols.
10094exclude_expsyms=$lt_exclude_expsyms
10095
10096# Symbols that must always be exported.
10097include_expsyms=$lt_include_expsyms
10098
10099# ### END LIBTOOL CONFIG
10100
10101__EOF__
10102
John Criswell47fdd832003-07-14 16:52:07 +000010103
John Criswell7a73b802003-06-30 21:59:07 +000010104 case $host_os in
10105 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000010106 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000010107
10108# AIX sometimes has problems with the GCC collect2 program. For some
10109# reason, if we set the COLLECT_NAMES environment variable, the problems
10110# vanish in a puff of smoke.
10111if test "X${COLLECT_NAMES+set}" != Xset; then
10112 COLLECT_NAMES=
10113 export COLLECT_NAMES
10114fi
10115EOF
10116 ;;
10117 esac
10118
John Criswell7a73b802003-06-30 21:59:07 +000010119 # We use sed instead of cat because bash on DJGPP gets confused if
10120 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10121 # text mode, it properly converts lines to CR/LF. This bash problem
10122 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000010123 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000010124
John Criswell47fdd832003-07-14 16:52:07 +000010125 mv -f "$cfgfile" "$ofile" || \
10126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000010127 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000010128
10129else
10130 # If there is no Makefile yet, we rely on a make rule to execute
10131 # `config.status --recheck' to rerun these tests and create the
10132 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10134 if test -f "$ltmain_in"; then
10135 test -f Makefile && make "$ltmain"
10136 fi
John Criswell7a73b802003-06-30 21:59:07 +000010137fi
John Criswell7a73b802003-06-30 21:59:07 +000010138
10139
John Criswell47fdd832003-07-14 16:52:07 +000010140ac_ext=c
10141ac_cpp='$CPP $CPPFLAGS'
10142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144ac_compiler_gnu=$ac_cv_c_compiler_gnu
10145
10146CC="$lt_save_CC"
10147
10148
10149# Check whether --with-tags or --without-tags was given.
10150if test "${with_tags+set}" = set; then
10151 withval="$with_tags"
10152 tagnames="$withval"
10153fi;
10154
10155if test -f "$ltmain" && test -n "$tagnames"; then
10156 if test ! -f "${ofile}"; then
10157 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10158echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10159 fi
10160
10161 if test -z "$LTCC"; then
10162 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10163 if test -z "$LTCC"; then
10164 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10165echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10166 else
10167 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10168echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10169 fi
10170 fi
10171
10172 # Extract list of available tagged configurations in $ofile.
10173 # Note that this assumes the entire list is on one line.
10174 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10175
10176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10177 for tagname in $tagnames; do
10178 IFS="$lt_save_ifs"
10179 # Check whether tagname contains only valid characters
10180 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10181 "") ;;
10182 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10183echo "$as_me: error: invalid tag name: $tagname" >&2;}
10184 { (exit 1); exit 1; }; }
10185 ;;
10186 esac
10187
10188 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10189 then
10190 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10191echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10192 { (exit 1); exit 1; }; }
10193 fi
10194
10195 # Update the list of available tags.
10196 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010197 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000010198
10199 case $tagname in
10200 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010201 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10202 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10203 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000010204 ac_ext=cc
10205ac_cpp='$CXXCPP $CPPFLAGS'
10206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10209
10210
10211
10212
10213archive_cmds_need_lc_CXX=no
10214allow_undefined_flag_CXX=
10215always_export_symbols_CXX=no
10216archive_expsym_cmds_CXX=
10217export_dynamic_flag_spec_CXX=
10218hardcode_direct_CXX=no
10219hardcode_libdir_flag_spec_CXX=
10220hardcode_libdir_flag_spec_ld_CXX=
10221hardcode_libdir_separator_CXX=
10222hardcode_minus_L_CXX=no
10223hardcode_automatic_CXX=no
10224module_cmds_CXX=
10225module_expsym_cmds_CXX=
10226link_all_deplibs_CXX=unknown
10227old_archive_cmds_CXX=$old_archive_cmds
10228no_undefined_flag_CXX=
10229whole_archive_flag_spec_CXX=
10230enable_shared_with_static_runtimes_CXX=no
10231
10232# Dependencies to place before and after the object being linked:
10233predep_objects_CXX=
10234postdep_objects_CXX=
10235predeps_CXX=
10236postdeps_CXX=
10237compiler_lib_search_path_CXX=
10238
10239# Source file extension for C++ test sources.
10240ac_ext=cc
10241
10242# Object file extension for compiled C++ test sources.
10243objext=o
10244objext_CXX=$objext
10245
10246# Code to be used in simple compile tests
10247lt_simple_compile_test_code="int some_variable = 0;\n"
10248
10249# Code to be used in simple link tests
10250lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10251
10252# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10253
10254# If no C compiler was specified, use CC.
10255LTCC=${LTCC-"$CC"}
10256
10257# Allow CC to be a program name with arguments.
10258compiler=$CC
10259
10260
10261# Allow CC to be a program name with arguments.
10262lt_save_CC=$CC
10263lt_save_LD=$LD
10264lt_save_GCC=$GCC
10265GCC=$GXX
10266lt_save_with_gnu_ld=$with_gnu_ld
10267lt_save_path_LD=$lt_cv_path_LD
10268if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10269 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10270else
10271 unset lt_cv_prog_gnu_ld
10272fi
10273if test -n "${lt_cv_path_LDCXX+set}"; then
10274 lt_cv_path_LD=$lt_cv_path_LDCXX
10275else
10276 unset lt_cv_path_LD
10277fi
10278test -z "${LDCXX+set}" || LD=$LDCXX
10279CC=${CXX-"c++"}
10280compiler=$CC
10281compiler_CXX=$CC
10282cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10283
10284# We don't want -fno-exception wen compiling C++ code, so set the
10285# no_builtin_flag separately
10286if test "$GXX" = yes; then
10287 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10288else
10289 lt_prog_compiler_no_builtin_flag_CXX=
10290fi
10291
10292if test "$GXX" = yes; then
10293 # Set up default GNU C++ configuration
10294
10295
10296# Check whether --with-gnu-ld or --without-gnu-ld was given.
10297if test "${with_gnu_ld+set}" = set; then
10298 withval="$with_gnu_ld"
10299 test "$withval" = no || with_gnu_ld=yes
10300else
10301 with_gnu_ld=no
10302fi;
10303ac_prog=ld
10304if test "$GCC" = yes; then
10305 # Check if gcc -print-prog-name=ld gives a path.
10306 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10307echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10308 case $host in
10309 *-*-mingw*)
10310 # gcc leaves a trailing carriage return which upsets mingw
10311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10312 *)
10313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10314 esac
10315 case $ac_prog in
10316 # Accept absolute paths.
10317 [\\/]* | ?:[\\/]*)
10318 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010319 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000010320 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10321 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10322 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10323 done
10324 test -z "$LD" && LD="$ac_prog"
10325 ;;
10326 "")
10327 # If it fails, then pretend we aren't using GCC.
10328 ac_prog=ld
10329 ;;
10330 *)
10331 # If it is relative, then search for the first ld in PATH.
10332 with_gnu_ld=unknown
10333 ;;
10334 esac
10335elif test "$with_gnu_ld" = yes; then
10336 echo "$as_me:$LINENO: checking for GNU ld" >&5
10337echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10338else
10339 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10340echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10341fi
10342if test "${lt_cv_path_LD+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344else
10345 if test -z "$LD"; then
10346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10347 for ac_dir in $PATH; do
10348 IFS="$lt_save_ifs"
10349 test -z "$ac_dir" && ac_dir=.
10350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10351 lt_cv_path_LD="$ac_dir/$ac_prog"
10352 # Check to see if the program is GNU ld. I'd rather use --version,
10353 # but apparently some GNU ld's only accept -v.
10354 # Break only if it was the GNU/non-GNU ld that we prefer.
10355 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10356 *GNU* | *'with BFD'*)
10357 test "$with_gnu_ld" != no && break
10358 ;;
10359 *)
10360 test "$with_gnu_ld" != yes && break
10361 ;;
10362 esac
10363 fi
10364 done
10365 IFS="$lt_save_ifs"
10366else
10367 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10368fi
10369fi
10370
10371LD="$lt_cv_path_LD"
10372if test -n "$LD"; then
10373 echo "$as_me:$LINENO: result: $LD" >&5
10374echo "${ECHO_T}$LD" >&6
10375else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378fi
10379test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10380echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10381 { (exit 1); exit 1; }; }
10382echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10383echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10384if test "${lt_cv_prog_gnu_ld+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010388case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000010389*GNU* | *'with BFD'*)
10390 lt_cv_prog_gnu_ld=yes
10391 ;;
10392*)
10393 lt_cv_prog_gnu_ld=no
10394 ;;
10395esac
10396fi
10397echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10398echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10399with_gnu_ld=$lt_cv_prog_gnu_ld
10400
10401
10402
10403 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10404 # archiving commands below assume that GNU ld is being used.
10405 if test "$with_gnu_ld" = yes; then
10406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10407 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'
10408
10409 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10411
10412 # If archive_cmds runs LD, not CC, wlarc should be empty
10413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10414 # investigate it a little bit more. (MM)
10415 wlarc='${wl}'
10416
10417 # ancient GNU ld didn't support --whole-archive et. al.
10418 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10419 grep 'no-whole-archive' > /dev/null; then
10420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10421 else
10422 whole_archive_flag_spec_CXX=
10423 fi
10424 else
10425 with_gnu_ld=no
10426 wlarc=
10427
10428 # A generic and very simple default shared library creation
10429 # command for GNU C++ for the case where it uses the native
10430 # linker, instead of GNU ld. If possible, this setting should
10431 # overridden to take advantage of the native linker features on
10432 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000010434 fi
10435
10436 # Commands to make compiler produce verbose output that lists
10437 # what "hidden" libraries, object files and flags are used when
10438 # linking a shared library.
10439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10440
10441else
10442 GXX=no
10443 with_gnu_ld=no
10444 wlarc=
10445fi
10446
10447# PORTME: fill in a description of your system's C++ link characteristics
10448echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10449echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10450ld_shlibs_CXX=yes
10451case $host_os in
10452 aix3*)
10453 # FIXME: insert proper C++ library support
10454 ld_shlibs_CXX=no
10455 ;;
10456 aix4* | aix5*)
10457 if test "$host_cpu" = ia64; then
10458 # On IA64, the linker does run time linking by default, so we don't
10459 # have to do anything special.
10460 aix_use_runtimelinking=no
10461 exp_sym_flag='-Bexport'
10462 no_entry_flag=""
10463 else
10464 aix_use_runtimelinking=no
10465
10466 # Test if we are trying to use run time linking or normal
10467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10468 # need to do runtime linking.
10469 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10470 for ld_flag in $LDFLAGS; do
10471 case $ld_flag in
10472 *-brtl*)
10473 aix_use_runtimelinking=yes
10474 break
10475 ;;
10476 esac
10477 done
10478 esac
10479
10480 exp_sym_flag='-bexport'
10481 no_entry_flag='-bnoentry'
10482 fi
10483
10484 # When large executables or shared objects are built, AIX ld can
10485 # have problems creating the table of contents. If linking a library
10486 # or program results in "error TOC overflow" add -mminimal-toc to
10487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10489
10490 archive_cmds_CXX=''
10491 hardcode_direct_CXX=yes
10492 hardcode_libdir_separator_CXX=':'
10493 link_all_deplibs_CXX=yes
10494
10495 if test "$GXX" = yes; then
10496 case $host_os in aix4.012|aix4.012.*)
10497 # We only want to do this on AIX 4.2 and lower, the check
10498 # below for broken collect2 doesn't work under 4.3+
10499 collect2name=`${CC} -print-prog-name=collect2`
10500 if test -f "$collect2name" && \
10501 strings "$collect2name" | grep resolve_lib_name >/dev/null
10502 then
10503 # We have reworked collect2
10504 hardcode_direct_CXX=yes
10505 else
10506 # We have old collect2
10507 hardcode_direct_CXX=unsupported
10508 # It fails to find uninstalled libraries when the uninstalled
10509 # path is not listed in the libpath. Setting hardcode_minus_L
10510 # to unsupported forces relinking
10511 hardcode_minus_L_CXX=yes
10512 hardcode_libdir_flag_spec_CXX='-L$libdir'
10513 hardcode_libdir_separator_CXX=
10514 fi
10515 esac
10516 shared_flag='-shared'
10517 else
10518 # not using gcc
10519 if test "$host_cpu" = ia64; then
10520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10521 # chokes on -Wl,-G. The following line is correct:
10522 shared_flag='-G'
10523 else
10524 if test "$aix_use_runtimelinking" = yes; then
10525 shared_flag='${wl}-G'
10526 else
10527 shared_flag='${wl}-bM:SRE'
10528 fi
10529 fi
10530 fi
10531
10532 # It seems that -bexpall does not export symbols beginning with
10533 # underscore (_), so it is better to generate a list of symbols to export.
10534 always_export_symbols_CXX=yes
10535 if test "$aix_use_runtimelinking" = yes; then
10536 # Warning - without using the other runtime loading flags (-brtl),
10537 # -berok will link without error, but may produce a broken library.
10538 allow_undefined_flag_CXX='-berok'
10539 # Determine the default libpath from the value encoded in an empty executable.
10540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010546
John Criswell47fdd832003-07-14 16:52:07 +000010547int
10548main ()
10549{
10550
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext conftest$ac_exeext
10556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010557 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010564 { ac_try='test -z "$ac_cxx_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000010572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577
10578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10579}'`
10580# Check for a 64-bit object if we didn't find anything.
10581if 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; }
10582}'`; fi
10583else
10584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010585sed 's/^/| /' conftest.$ac_ext >&5
10586
John Criswell47fdd832003-07-14 16:52:07 +000010587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010588rm -f conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10591
10592 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10593
10594 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"
10595 else
10596 if test "$host_cpu" = ia64; then
10597 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10598 allow_undefined_flag_CXX="-z nodefs"
10599 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"
10600 else
10601 # Determine the default libpath from the value encoded in an empty executable.
10602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010608
John Criswell47fdd832003-07-14 16:52:07 +000010609int
10610main ()
10611{
10612
10613 ;
10614 return 0;
10615}
10616_ACEOF
10617rm -f conftest.$ac_objext conftest$ac_exeext
10618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010619 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010626 { ac_try='test -z "$ac_cxx_werror_flag"
10627 || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000010634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639
10640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10641}'`
10642# Check for a 64-bit object if we didn't find anything.
10643if 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; }
10644}'`; fi
10645else
10646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010647sed 's/^/| /' conftest.$ac_ext >&5
10648
John Criswell47fdd832003-07-14 16:52:07 +000010649fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010650rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010652if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10653
10654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 # Warning - without using the other run time loading flags,
10656 # -berok will link without error, but may produce a broken library.
10657 no_undefined_flag_CXX=' ${wl}-bernotok'
10658 allow_undefined_flag_CXX=' ${wl}-berok'
10659 # -bexpall does not export symbols beginning with underscore (_)
10660 always_export_symbols_CXX=yes
10661 # Exported symbols can be pulled into shared objects from archives
10662 whole_archive_flag_spec_CXX=' '
10663 archive_cmds_need_lc_CXX=yes
10664 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000010665 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 +000010666 fi
10667 fi
10668 ;;
10669 chorus*)
10670 case $cc_basename in
10671 *)
10672 # FIXME: insert proper C++ library support
10673 ld_shlibs_CXX=no
10674 ;;
10675 esac
10676 ;;
10677
Reid Spencer2706f8c2004-09-19 23:53:36 +000010678
John Criswell47fdd832003-07-14 16:52:07 +000010679 cygwin* | mingw* | pw32*)
10680 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10681 # as there is no search path for DLLs.
10682 hardcode_libdir_flag_spec_CXX='-L$libdir'
10683 allow_undefined_flag_CXX=unsupported
10684 always_export_symbols_CXX=no
10685 enable_shared_with_static_runtimes_CXX=yes
10686
10687 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10688 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'
10689 # If the export-symbols file already is a .def file (1st line
10690 # is EXPORTS), use it as is; otherwise, prepend...
10691 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10692 cp $export_symbols $output_objdir/$soname.def;
10693 else
10694 echo EXPORTS > $output_objdir/$soname.def;
10695 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000010696 fi~
10697 $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 +000010698 else
10699 ld_shlibs_CXX=no
10700 fi
10701 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010702 darwin* | rhapsody*)
10703 case "$host_os" in
10704 rhapsody* | darwin1.[012])
10705 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10706 ;;
10707 *) # Darwin 1.3 on
10708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10709 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10710 else
10711 case ${MACOSX_DEPLOYMENT_TARGET} in
10712 10.[012])
10713 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10714 ;;
10715 10.*)
10716 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10717 ;;
10718 esac
10719 fi
10720 ;;
10721 esac
10722 archive_cmds_need_lc_CXX=no
10723 hardcode_direct_CXX=no
10724 hardcode_automatic_CXX=yes
10725 hardcode_shlibpath_var_CXX=unsupported
10726 whole_archive_flag_spec_CXX=''
10727 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000010728
Reid Spencer2706f8c2004-09-19 23:53:36 +000010729 if test "$GXX" = yes ; then
10730 lt_int_apple_cc_single_mod=no
10731 output_verbose_link_cmd='echo'
10732 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10733 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000010734 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000010735 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010736 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 +000010737 else
Reid Spencer177dbe22004-10-13 01:01:03 +000010738 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 +000010739 fi
10740 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10741 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10742 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010743 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 +000010744 else
Reid Spencer177dbe22004-10-13 01:01:03 +000010745 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 +000010746 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000010747 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 +000010748 else
10749 case "$cc_basename" in
10750 xlc*)
10751 output_verbose_link_cmd='echo'
10752 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'
10753 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10754 # 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 +000010755 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}'
10756 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 +000010757 ;;
10758 *)
10759 ld_shlibs_CXX=no
10760 ;;
10761 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000010762 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010763 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010764
10765 dgux*)
10766 case $cc_basename in
10767 ec++)
10768 # FIXME: insert proper C++ library support
10769 ld_shlibs_CXX=no
10770 ;;
10771 ghcx)
10772 # Green Hills C++ Compiler
10773 # FIXME: insert proper C++ library support
10774 ld_shlibs_CXX=no
10775 ;;
10776 *)
10777 # FIXME: insert proper C++ library support
10778 ld_shlibs_CXX=no
10779 ;;
10780 esac
10781 ;;
10782 freebsd12*)
10783 # C++ shared libraries reported to be fairly broken before switch to ELF
10784 ld_shlibs_CXX=no
10785 ;;
10786 freebsd-elf*)
10787 archive_cmds_need_lc_CXX=no
10788 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010789 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010790 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10791 # conventions
10792 ld_shlibs_CXX=yes
10793 ;;
10794 gnu*)
10795 ;;
10796 hpux9*)
10797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10798 hardcode_libdir_separator_CXX=:
10799 export_dynamic_flag_spec_CXX='${wl}-E'
10800 hardcode_direct_CXX=yes
10801 hardcode_minus_L_CXX=yes # Not in the search PATH,
10802 # but as the default
10803 # location of the library.
10804
10805 case $cc_basename in
10806 CC)
10807 # FIXME: insert proper C++ library support
10808 ld_shlibs_CXX=no
10809 ;;
10810 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000010811 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 +000010812 # Commands to make compiler produce verbose output that lists
10813 # what "hidden" libraries, object files and flags are used when
10814 # linking a shared library.
10815 #
10816 # There doesn't appear to be a way to prevent this compiler from
10817 # explicitly linking system object files so we need to strip them
10818 # from the output so that they don't get included in the library
10819 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010820 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 +000010821 ;;
10822 *)
10823 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010824 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 +000010825 else
10826 # FIXME: insert proper C++ library support
10827 ld_shlibs_CXX=no
10828 fi
10829 ;;
10830 esac
10831 ;;
10832 hpux10*|hpux11*)
10833 if test $with_gnu_ld = no; then
10834 case "$host_cpu" in
10835 hppa*64*)
10836 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10837 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10838 hardcode_libdir_separator_CXX=:
10839 ;;
10840 ia64*)
10841 hardcode_libdir_flag_spec_CXX='-L$libdir'
10842 ;;
10843 *)
10844 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10845 hardcode_libdir_separator_CXX=:
10846 export_dynamic_flag_spec_CXX='${wl}-E'
10847 ;;
10848 esac
10849 fi
10850 case "$host_cpu" in
10851 hppa*64*)
10852 hardcode_direct_CXX=no
10853 hardcode_shlibpath_var_CXX=no
10854 ;;
10855 ia64*)
10856 hardcode_direct_CXX=no
10857 hardcode_shlibpath_var_CXX=no
10858 hardcode_minus_L_CXX=yes # Not in the search PATH,
10859 # but as the default
10860 # location of the library.
10861 ;;
10862 *)
10863 hardcode_direct_CXX=yes
10864 hardcode_minus_L_CXX=yes # Not in the search PATH,
10865 # but as the default
10866 # location of the library.
10867 ;;
10868 esac
10869
10870 case $cc_basename in
10871 CC)
10872 # FIXME: insert proper C++ library support
10873 ld_shlibs_CXX=no
10874 ;;
10875 aCC)
10876 case "$host_cpu" in
10877 hppa*64*|ia64*)
10878 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10879 ;;
10880 *)
10881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10882 ;;
10883 esac
10884 # Commands to make compiler produce verbose output that lists
10885 # what "hidden" libraries, object files and flags are used when
10886 # linking a shared library.
10887 #
10888 # There doesn't appear to be a way to prevent this compiler from
10889 # explicitly linking system object files so we need to strip them
10890 # from the output so that they don't get included in the library
10891 # dependencies.
10892 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'
10893 ;;
10894 *)
10895 if test "$GXX" = yes; then
10896 if test $with_gnu_ld = no; then
10897 case "$host_cpu" in
10898 ia64*|hppa*64*)
10899 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10900 ;;
10901 *)
10902 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'
10903 ;;
10904 esac
10905 fi
10906 else
10907 # FIXME: insert proper C++ library support
10908 ld_shlibs_CXX=no
10909 fi
10910 ;;
10911 esac
10912 ;;
10913 irix5* | irix6*)
10914 case $cc_basename in
10915 CC)
10916 # SGI C++
10917 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'
10918
10919 # Archives containing C++ object files must be created using
10920 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10921 # necessary to make sure instantiated templates are included
10922 # in the archive.
10923 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10924 ;;
10925 *)
10926 if test "$GXX" = yes; then
10927 if test "$with_gnu_ld" = no; then
10928 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'
10929 else
10930 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'
10931 fi
10932 fi
10933 link_all_deplibs_CXX=yes
10934 ;;
10935 esac
10936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10937 hardcode_libdir_separator_CXX=:
10938 ;;
10939 linux*)
10940 case $cc_basename in
10941 KCC)
10942 # Kuck and Associates, Inc. (KAI) C++ Compiler
10943
10944 # KCC will only create a shared library if the output file
10945 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10946 # to its proper name (with version) after linking.
10947 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'
10948 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'
10949 # Commands to make compiler produce verbose output that lists
10950 # what "hidden" libraries, object files and flags are used when
10951 # linking a shared library.
10952 #
10953 # There doesn't appear to be a way to prevent this compiler from
10954 # explicitly linking system object files so we need to strip them
10955 # from the output so that they don't get included in the library
10956 # dependencies.
10957 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'
10958
10959 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10961
10962 # Archives containing C++ object files must be created using
10963 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10964 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10965 ;;
10966 icpc)
10967 # Intel C++
10968 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010969 # version 8.0 and above of icpc choke on multiply defined symbols
10970 # if we add $predep_objects and $postdep_objects, however 7.1 and
10971 # earlier do not add the objects themselves.
10972 case `$CC -V 2>&1` in
10973 *"Version 7."*)
10974 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10975 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'
10976 ;;
10977 *) # Version 8.0 or newer
10978 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10980 ;;
10981 esac
John Criswell47fdd832003-07-14 16:52:07 +000010982 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10985 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10986 ;;
10987 cxx)
10988 # Compaq C++
10989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10990 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'
10991
10992 runpath_var=LD_RUN_PATH
10993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10994 hardcode_libdir_separator_CXX=:
10995
10996 # Commands to make compiler produce verbose output that lists
10997 # what "hidden" libraries, object files and flags are used when
10998 # linking a shared library.
10999 #
11000 # There doesn't appear to be a way to prevent this compiler from
11001 # explicitly linking system object files so we need to strip them
11002 # from the output so that they don't get included in the library
11003 # dependencies.
11004 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'
11005 ;;
11006 esac
11007 ;;
11008 lynxos*)
11009 # FIXME: insert proper C++ library support
11010 ld_shlibs_CXX=no
11011 ;;
11012 m88k*)
11013 # FIXME: insert proper C++ library support
11014 ld_shlibs_CXX=no
11015 ;;
11016 mvs*)
11017 case $cc_basename in
11018 cxx)
11019 # FIXME: insert proper C++ library support
11020 ld_shlibs_CXX=no
11021 ;;
11022 *)
11023 # FIXME: insert proper C++ library support
11024 ld_shlibs_CXX=no
11025 ;;
11026 esac
11027 ;;
11028 netbsd*)
11029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11030 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11031 wlarc=
11032 hardcode_libdir_flag_spec_CXX='-R$libdir'
11033 hardcode_direct_CXX=yes
11034 hardcode_shlibpath_var_CXX=no
11035 fi
11036 # Workaround some broken pre-1.5 toolchains
11037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11038 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011039 openbsd2*)
11040 # C++ shared libraries are fairly broken
11041 ld_shlibs_CXX=no
11042 ;;
11043 openbsd*)
11044 hardcode_direct_CXX=yes
11045 hardcode_shlibpath_var_CXX=no
11046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11049 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11050 export_dynamic_flag_spec_CXX='${wl}-E'
11051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11052 fi
11053 output_verbose_link_cmd='echo'
11054 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011055 osf3*)
11056 case $cc_basename in
11057 KCC)
11058 # Kuck and Associates, Inc. (KAI) C++ Compiler
11059
11060 # KCC will only create a shared library if the output file
11061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11062 # to its proper name (with version) after linking.
11063 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'
11064
11065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11066 hardcode_libdir_separator_CXX=:
11067
11068 # Archives containing C++ object files must be created using
11069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11071
11072 ;;
11073 RCC)
11074 # Rational C++ 2.4.1
11075 # FIXME: insert proper C++ library support
11076 ld_shlibs_CXX=no
11077 ;;
11078 cxx)
11079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11080 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'
11081
11082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11083 hardcode_libdir_separator_CXX=:
11084
11085 # Commands to make compiler produce verbose output that lists
11086 # what "hidden" libraries, object files and flags are used when
11087 # linking a shared library.
11088 #
11089 # There doesn't appear to be a way to prevent this compiler from
11090 # explicitly linking system object files so we need to strip them
11091 # from the output so that they don't get included in the library
11092 # dependencies.
11093 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'
11094 ;;
11095 *)
11096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11098 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'
11099
11100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11101 hardcode_libdir_separator_CXX=:
11102
11103 # Commands to make compiler produce verbose output that lists
11104 # what "hidden" libraries, object files and flags are used when
11105 # linking a shared library.
11106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11107
11108 else
11109 # FIXME: insert proper C++ library support
11110 ld_shlibs_CXX=no
11111 fi
11112 ;;
11113 esac
11114 ;;
11115 osf4* | osf5*)
11116 case $cc_basename in
11117 KCC)
11118 # Kuck and Associates, Inc. (KAI) C++ Compiler
11119
11120 # KCC will only create a shared library if the output file
11121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11122 # to its proper name (with version) after linking.
11123 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'
11124
11125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11126 hardcode_libdir_separator_CXX=:
11127
11128 # Archives containing C++ object files must be created using
11129 # the KAI C++ compiler.
11130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11131 ;;
11132 RCC)
11133 # Rational C++ 2.4.1
11134 # FIXME: insert proper C++ library support
11135 ld_shlibs_CXX=no
11136 ;;
11137 cxx)
11138 allow_undefined_flag_CXX=' -expect_unresolved \*'
11139 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 +000011140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11141 echo "-hidden">> $lib.exp~
11142 $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~
11143 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000011144
11145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11146 hardcode_libdir_separator_CXX=:
11147
11148 # Commands to make compiler produce verbose output that lists
11149 # what "hidden" libraries, object files and flags are used when
11150 # linking a shared library.
11151 #
11152 # There doesn't appear to be a way to prevent this compiler from
11153 # explicitly linking system object files so we need to strip them
11154 # from the output so that they don't get included in the library
11155 # dependencies.
11156 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'
11157 ;;
11158 *)
11159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11161 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'
11162
11163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11164 hardcode_libdir_separator_CXX=:
11165
11166 # Commands to make compiler produce verbose output that lists
11167 # what "hidden" libraries, object files and flags are used when
11168 # linking a shared library.
11169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11170
11171 else
11172 # FIXME: insert proper C++ library support
11173 ld_shlibs_CXX=no
11174 fi
11175 ;;
11176 esac
11177 ;;
11178 psos*)
11179 # FIXME: insert proper C++ library support
11180 ld_shlibs_CXX=no
11181 ;;
11182 sco*)
11183 archive_cmds_need_lc_CXX=no
11184 case $cc_basename in
11185 CC)
11186 # FIXME: insert proper C++ library support
11187 ld_shlibs_CXX=no
11188 ;;
11189 *)
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11192 ;;
11193 esac
11194 ;;
11195 sunos4*)
11196 case $cc_basename in
11197 CC)
11198 # Sun C++ 4.x
11199 # FIXME: insert proper C++ library support
11200 ld_shlibs_CXX=no
11201 ;;
11202 lcc)
11203 # Lucid
11204 # FIXME: insert proper C++ library support
11205 ld_shlibs_CXX=no
11206 ;;
11207 *)
11208 # FIXME: insert proper C++ library support
11209 ld_shlibs_CXX=no
11210 ;;
11211 esac
11212 ;;
11213 solaris*)
11214 case $cc_basename in
11215 CC)
11216 # Sun C++ 4.2, 5.x and Centerline C++
11217 no_undefined_flag_CXX=' -zdefs'
11218 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 +000011219 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11220 $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 +000011221
11222 hardcode_libdir_flag_spec_CXX='-R$libdir'
11223 hardcode_shlibpath_var_CXX=no
11224 case $host_os in
11225 solaris2.0-5 | solaris2.0-5.*) ;;
11226 *)
11227 # The C++ compiler is used as linker so we must use $wl
11228 # flag to pass the commands to the underlying system
11229 # linker.
11230 # Supported since Solaris 2.6 (maybe 2.5.1?)
11231 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11232 ;;
11233 esac
11234 link_all_deplibs_CXX=yes
11235
11236 # Commands to make compiler produce verbose output that lists
11237 # what "hidden" libraries, object files and flags are used when
11238 # linking a shared library.
11239 #
11240 # There doesn't appear to be a way to prevent this compiler from
11241 # explicitly linking system object files so we need to strip them
11242 # from the output so that they don't get included in the library
11243 # dependencies.
11244 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'
11245
11246 # Archives containing C++ object files must be created using
11247 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11248 # necessary to make sure instantiated templates are included
11249 # in the archive.
11250 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11251 ;;
11252 gcx)
11253 # Green Hills C++ Compiler
11254 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11255
11256 # The C++ compiler must be used to create the archive.
11257 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11258 ;;
11259 *)
11260 # GNU C++ compiler with Solaris linker
11261 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11262 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11263 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000011264 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 +000011265 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11266 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11267
John Criswell47fdd832003-07-14 16:52:07 +000011268 # Commands to make compiler produce verbose output that lists
11269 # what "hidden" libraries, object files and flags are used when
11270 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000011271 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000011272 else
11273 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11274 # platform.
11275 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 +000011276 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11277 $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 +000011278
11279 # Commands to make compiler produce verbose output that lists
11280 # what "hidden" libraries, object files and flags are used when
11281 # linking a shared library.
11282 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11283 fi
11284
11285 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11286 fi
11287 ;;
11288 esac
11289 ;;
11290 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11291 archive_cmds_need_lc_CXX=no
11292 ;;
11293 tandem*)
11294 case $cc_basename in
11295 NCC)
11296 # NonStop-UX NCC 3.20
11297 # FIXME: insert proper C++ library support
11298 ld_shlibs_CXX=no
11299 ;;
11300 *)
11301 # FIXME: insert proper C++ library support
11302 ld_shlibs_CXX=no
11303 ;;
11304 esac
11305 ;;
11306 vxworks*)
11307 # FIXME: insert proper C++ library support
11308 ld_shlibs_CXX=no
11309 ;;
11310 *)
11311 # FIXME: insert proper C++ library support
11312 ld_shlibs_CXX=no
11313 ;;
11314esac
11315echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11316echo "${ECHO_T}$ld_shlibs_CXX" >&6
11317test "$ld_shlibs_CXX" = no && can_build_shared=no
11318
11319GCC_CXX="$GXX"
11320LD_CXX="$LD"
11321
John Criswell47fdd832003-07-14 16:52:07 +000011322
11323cat > conftest.$ac_ext <<EOF
11324class Foo
11325{
11326public:
11327 Foo (void) { a = 0; }
11328private:
11329 int a;
11330};
11331EOF
11332
11333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334 (eval $ac_compile) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; then
11338 # Parse the compiler output and extract the necessary
11339 # objects, libraries and library flags.
11340
11341 # Sentinel used to keep track of whether or not we are before
11342 # the conftest object file.
11343 pre_test_object_deps_done=no
11344
11345 # The `*' in the case matches for architectures that use `case' in
11346 # $output_verbose_cmd can trigger glob expansion during the loop
11347 # eval without this substitution.
11348 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11349
11350 for p in `eval $output_verbose_link_cmd`; do
11351 case $p in
11352
11353 -L* | -R* | -l*)
11354 # Some compilers place space between "-{L,R}" and the path.
11355 # Remove the space.
11356 if test $p = "-L" \
11357 || test $p = "-R"; then
11358 prev=$p
11359 continue
11360 else
11361 prev=
11362 fi
11363
11364 if test "$pre_test_object_deps_done" = no; then
11365 case $p in
11366 -L* | -R*)
11367 # Internal compiler library paths should come after those
11368 # provided the user. The postdeps already come after the
11369 # user supplied libs so there is no need to process them.
11370 if test -z "$compiler_lib_search_path_CXX"; then
11371 compiler_lib_search_path_CXX="${prev}${p}"
11372 else
11373 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11374 fi
11375 ;;
11376 # The "-l" case would never come before the object being
11377 # linked, so don't bother handling this case.
11378 esac
11379 else
11380 if test -z "$postdeps_CXX"; then
11381 postdeps_CXX="${prev}${p}"
11382 else
11383 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11384 fi
11385 fi
11386 ;;
11387
11388 *.$objext)
11389 # This assumes that the test object file only shows up
11390 # once in the compiler output.
11391 if test "$p" = "conftest.$objext"; then
11392 pre_test_object_deps_done=yes
11393 continue
11394 fi
11395
11396 if test "$pre_test_object_deps_done" = no; then
11397 if test -z "$predep_objects_CXX"; then
11398 predep_objects_CXX="$p"
11399 else
11400 predep_objects_CXX="$predep_objects_CXX $p"
11401 fi
11402 else
11403 if test -z "$postdep_objects_CXX"; then
11404 postdep_objects_CXX="$p"
11405 else
11406 postdep_objects_CXX="$postdep_objects_CXX $p"
11407 fi
11408 fi
11409 ;;
11410
11411 *) ;; # Ignore the rest.
11412
11413 esac
11414 done
11415
11416 # Clean up.
11417 rm -f a.out a.exe
11418else
11419 echo "libtool.m4: error: problem compiling CXX test program"
11420fi
11421
11422$rm -f confest.$objext
11423
11424case " $postdeps_CXX " in
11425*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11426esac
11427
11428lt_prog_compiler_wl_CXX=
11429lt_prog_compiler_pic_CXX=
11430lt_prog_compiler_static_CXX=
11431
11432echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11433echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11434
11435 # C++ specific cases for pic, static, wl, etc.
11436 if test "$GXX" = yes; then
11437 lt_prog_compiler_wl_CXX='-Wl,'
11438 lt_prog_compiler_static_CXX='-static'
11439
11440 case $host_os in
11441 aix*)
11442 # All AIX code is PIC.
11443 if test "$host_cpu" = ia64; then
11444 # AIX 5 now supports IA64 processor
11445 lt_prog_compiler_static_CXX='-Bstatic'
11446 fi
11447 ;;
11448 amigaos*)
11449 # FIXME: we need at least 68020 code to build shared libraries, but
11450 # adding the `-m68020' flag to GCC prevents building anything better,
11451 # like `-m68040'.
11452 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11453 ;;
11454 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11455 # PIC is the default for these OSes.
11456 ;;
11457 mingw* | os2* | pw32*)
11458 # This hack is so that the source file can tell whether it is being
11459 # built for inclusion in a dll (and should export symbols for example).
11460 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11461 ;;
11462 darwin* | rhapsody*)
11463 # PIC is the default on this platform
11464 # Common symbols not allowed in MH_DYLIB files
11465 lt_prog_compiler_pic_CXX='-fno-common'
11466 ;;
11467 *djgpp*)
11468 # DJGPP does not support shared libraries at all
11469 lt_prog_compiler_pic_CXX=
11470 ;;
11471 sysv4*MP*)
11472 if test -d /usr/nec; then
11473 lt_prog_compiler_pic_CXX=-Kconform_pic
11474 fi
11475 ;;
11476 hpux*)
11477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11478 # not for PA HP-UX.
11479 case "$host_cpu" in
11480 hppa*64*|ia64*)
11481 ;;
11482 *)
11483 lt_prog_compiler_pic_CXX='-fPIC'
11484 ;;
11485 esac
11486 ;;
11487 *)
11488 lt_prog_compiler_pic_CXX='-fPIC'
11489 ;;
11490 esac
11491 else
11492 case $host_os in
11493 aix4* | aix5*)
11494 # All AIX code is PIC.
11495 if test "$host_cpu" = ia64; then
11496 # AIX 5 now supports IA64 processor
11497 lt_prog_compiler_static_CXX='-Bstatic'
11498 else
11499 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11500 fi
11501 ;;
11502 chorus*)
11503 case $cc_basename in
11504 cxch68)
11505 # Green Hills C++ Compiler
11506 # _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"
11507 ;;
11508 esac
11509 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011510 darwin*)
11511 # PIC is the default on this platform
11512 # Common symbols not allowed in MH_DYLIB files
11513 case "$cc_basename" in
11514 xlc*)
11515 lt_prog_compiler_pic_CXX='-qnocommon'
11516 lt_prog_compiler_wl_CXX='-Wl,'
11517 ;;
11518 esac
11519 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011520 dgux*)
11521 case $cc_basename in
11522 ec++)
11523 lt_prog_compiler_pic_CXX='-KPIC'
11524 ;;
11525 ghcx)
11526 # Green Hills C++ Compiler
11527 lt_prog_compiler_pic_CXX='-pic'
11528 ;;
11529 *)
11530 ;;
11531 esac
11532 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011533 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000011534 # FreeBSD uses GNU C++
11535 ;;
11536 hpux9* | hpux10* | hpux11*)
11537 case $cc_basename in
11538 CC)
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11541 if test "$host_cpu" != ia64; then
11542 lt_prog_compiler_pic_CXX='+Z'
11543 fi
11544 ;;
11545 aCC)
11546 lt_prog_compiler_wl_CXX='-Wl,'
11547 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11548 case "$host_cpu" in
11549 hppa*64*|ia64*)
11550 # +Z the default
11551 ;;
11552 *)
11553 lt_prog_compiler_pic_CXX='+Z'
11554 ;;
11555 esac
11556 ;;
11557 *)
11558 ;;
11559 esac
11560 ;;
11561 irix5* | irix6* | nonstopux*)
11562 case $cc_basename in
11563 CC)
11564 lt_prog_compiler_wl_CXX='-Wl,'
11565 lt_prog_compiler_static_CXX='-non_shared'
11566 # CC pic flag -KPIC is the default.
11567 ;;
11568 *)
11569 ;;
11570 esac
11571 ;;
11572 linux*)
11573 case $cc_basename in
11574 KCC)
11575 # KAI C++ Compiler
11576 lt_prog_compiler_wl_CXX='--backend -Wl,'
11577 lt_prog_compiler_pic_CXX='-fPIC'
11578 ;;
11579 icpc)
11580 # Intel C++
11581 lt_prog_compiler_wl_CXX='-Wl,'
11582 lt_prog_compiler_pic_CXX='-KPIC'
11583 lt_prog_compiler_static_CXX='-static'
11584 ;;
11585 cxx)
11586 # Compaq C++
11587 # Make sure the PIC flag is empty. It appears that all Alpha
11588 # Linux and Compaq Tru64 Unix objects are PIC.
11589 lt_prog_compiler_pic_CXX=
11590 lt_prog_compiler_static_CXX='-non_shared'
11591 ;;
11592 *)
11593 ;;
11594 esac
11595 ;;
11596 lynxos*)
11597 ;;
11598 m88k*)
11599 ;;
11600 mvs*)
11601 case $cc_basename in
11602 cxx)
11603 lt_prog_compiler_pic_CXX='-W c,exportall'
11604 ;;
11605 *)
11606 ;;
11607 esac
11608 ;;
11609 netbsd*)
11610 ;;
11611 osf3* | osf4* | osf5*)
11612 case $cc_basename in
11613 KCC)
11614 lt_prog_compiler_wl_CXX='--backend -Wl,'
11615 ;;
11616 RCC)
11617 # Rational C++ 2.4.1
11618 lt_prog_compiler_pic_CXX='-pic'
11619 ;;
11620 cxx)
11621 # Digital/Compaq C++
11622 lt_prog_compiler_wl_CXX='-Wl,'
11623 # Make sure the PIC flag is empty. It appears that all Alpha
11624 # Linux and Compaq Tru64 Unix objects are PIC.
11625 lt_prog_compiler_pic_CXX=
11626 lt_prog_compiler_static_CXX='-non_shared'
11627 ;;
11628 *)
11629 ;;
11630 esac
11631 ;;
11632 psos*)
11633 ;;
11634 sco*)
11635 case $cc_basename in
11636 CC)
11637 lt_prog_compiler_pic_CXX='-fPIC'
11638 ;;
11639 *)
11640 ;;
11641 esac
11642 ;;
11643 solaris*)
11644 case $cc_basename in
11645 CC)
11646 # Sun C++ 4.2, 5.x and Centerline C++
11647 lt_prog_compiler_pic_CXX='-KPIC'
11648 lt_prog_compiler_static_CXX='-Bstatic'
11649 lt_prog_compiler_wl_CXX='-Qoption ld '
11650 ;;
11651 gcx)
11652 # Green Hills C++ Compiler
11653 lt_prog_compiler_pic_CXX='-PIC'
11654 ;;
11655 *)
11656 ;;
11657 esac
11658 ;;
11659 sunos4*)
11660 case $cc_basename in
11661 CC)
11662 # Sun C++ 4.x
11663 lt_prog_compiler_pic_CXX='-pic'
11664 lt_prog_compiler_static_CXX='-Bstatic'
11665 ;;
11666 lcc)
11667 # Lucid
11668 lt_prog_compiler_pic_CXX='-pic'
11669 ;;
11670 *)
11671 ;;
11672 esac
11673 ;;
11674 tandem*)
11675 case $cc_basename in
11676 NCC)
11677 # NonStop-UX NCC 3.20
11678 lt_prog_compiler_pic_CXX='-KPIC'
11679 ;;
11680 *)
11681 ;;
11682 esac
11683 ;;
11684 unixware*)
11685 ;;
11686 vxworks*)
11687 ;;
11688 *)
11689 lt_prog_compiler_can_build_shared_CXX=no
11690 ;;
11691 esac
11692 fi
11693
11694echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11695echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11696
11697#
11698# Check to make sure the PIC flag actually works.
11699#
11700if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011701
11702echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011703echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11704if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11706else
11707 lt_prog_compiler_pic_works_CXX=no
11708 ac_outfile=conftest.$ac_objext
11709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11711 # Insert the option either (1) after the last *FLAGS variable, or
11712 # (2) before a word containing "conftest.", or (3) at the end.
11713 # Note that $ac_compile itself does not contain backslashes and begins
11714 # with a dollar sign (not a hyphen), so the echo should work correctly.
11715 # The option is referenced via a variable to avoid confusing sed.
11716 lt_compile=`echo "$ac_compile" | $SED \
11717 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11719 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000011720 (eval echo "\"\$as_me:11720: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011721 (eval "$lt_compile" 2>conftest.err)
11722 ac_status=$?
11723 cat conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000011724 echo "$as_me:11724: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011725 if (exit $ac_status) && test -s "$ac_outfile"; then
11726 # The compiler can only warn and ignore the option if not recognized
11727 # So say no if there are warnings
11728 if test ! -s conftest.err; then
11729 lt_prog_compiler_pic_works_CXX=yes
11730 fi
11731 fi
11732 $rm conftest*
11733
11734fi
11735echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11736echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11737
11738if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11739 case $lt_prog_compiler_pic_CXX in
11740 "" | " "*) ;;
11741 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11742 esac
11743else
11744 lt_prog_compiler_pic_CXX=
11745 lt_prog_compiler_can_build_shared_CXX=no
11746fi
11747
11748fi
11749case "$host_os" in
11750 # For platforms which do not support PIC, -DPIC is meaningless:
11751 *djgpp*)
11752 lt_prog_compiler_pic_CXX=
11753 ;;
11754 *)
11755 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11756 ;;
11757esac
11758
11759echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11760echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11761if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 lt_cv_prog_compiler_c_o_CXX=no
11765 $rm -r conftest 2>/dev/null
11766 mkdir conftest
11767 cd conftest
11768 mkdir out
11769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11770
John Criswell47fdd832003-07-14 16:52:07 +000011771 lt_compiler_flag="-o out/conftest2.$ac_objext"
11772 # Insert the option either (1) after the last *FLAGS variable, or
11773 # (2) before a word containing "conftest.", or (3) at the end.
11774 # Note that $ac_compile itself does not contain backslashes and begins
11775 # with a dollar sign (not a hyphen), so the echo should work correctly.
11776 lt_compile=`echo "$ac_compile" | $SED \
11777 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11779 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000011780 (eval echo "\"\$as_me:11780: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011781 (eval "$lt_compile" 2>out/conftest.err)
11782 ac_status=$?
11783 cat out/conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000011784 echo "$as_me:11784: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11786 then
11787 # The compiler can only warn and ignore the option if not recognized
11788 # So say no if there are warnings
11789 if test ! -s out/conftest.err; then
11790 lt_cv_prog_compiler_c_o_CXX=yes
11791 fi
11792 fi
11793 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000011794 $rm conftest*
11795 # SGI C++ compiler will create directory out/ii_files/ for
11796 # template instantiation
11797 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11798 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000011799 cd ..
11800 rmdir conftest
11801 $rm conftest*
11802
11803fi
11804echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11805echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11806
11807
11808hard_links="nottested"
11809if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11810 # do not overwrite the value of need_locks provided by the user
11811 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11812echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11813 hard_links=yes
11814 $rm conftest*
11815 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11816 touch conftest.a
11817 ln conftest.a conftest.b 2>&5 || hard_links=no
11818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11819 echo "$as_me:$LINENO: result: $hard_links" >&5
11820echo "${ECHO_T}$hard_links" >&6
11821 if test "$hard_links" = no; then
11822 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11823echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11824 need_locks=warn
11825 fi
11826else
11827 need_locks=no
11828fi
11829
11830echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11831echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11832
11833 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11834 case $host_os in
11835 aix4* | aix5*)
11836 # If we're using GNU nm, then we don't want the "-C" option.
11837 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11838 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11839 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'
11840 else
11841 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'
11842 fi
11843 ;;
11844 pw32*)
11845 export_symbols_cmds_CXX="$ltdll_cmds"
11846 ;;
11847 cygwin* | mingw*)
11848 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11849 ;;
11850 *)
11851 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11852 ;;
11853 esac
11854
11855echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11856echo "${ECHO_T}$ld_shlibs_CXX" >&6
11857test "$ld_shlibs_CXX" = no && can_build_shared=no
11858
11859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11860if test "$GCC" = yes; then
11861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11862fi
11863
11864#
11865# Do we need to explicitly link libc?
11866#
11867case "x$archive_cmds_need_lc_CXX" in
11868x|xyes)
11869 # Assume -lc should be added
11870 archive_cmds_need_lc_CXX=yes
11871
11872 if test "$enable_shared" = yes && test "$GCC" = yes; then
11873 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011874 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011875 # FIXME: we may have to deal with multi-command sequences.
11876 ;;
11877 '$CC '*)
11878 # Test whether the compiler implicitly links with -lc since on some
11879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11880 # to ld, don't add -lc before -lgcc.
11881 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11883 $rm conftest*
11884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11885
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } 2>conftest.err; then
11891 soname=conftest
11892 lib=conftest
11893 libobjs=conftest.$ac_objext
11894 deplibs=
11895 wl=$lt_prog_compiler_wl_CXX
11896 compiler_flags=-v
11897 linker_flags=-v
11898 verstring=
11899 output_objdir=.
11900 libname=conftest
11901 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11902 allow_undefined_flag_CXX=
11903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11904 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }
11908 then
11909 archive_cmds_need_lc_CXX=no
11910 else
11911 archive_cmds_need_lc_CXX=yes
11912 fi
11913 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11914 else
11915 cat conftest.err 1>&5
11916 fi
11917 $rm conftest*
11918 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11919echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11920 ;;
11921 esac
11922 fi
11923 ;;
11924esac
11925
John Criswell47fdd832003-07-14 16:52:07 +000011926echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11927echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11928library_names_spec=
11929libname_spec='lib$name'
11930soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011931shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011932postinstall_cmds=
11933postuninstall_cmds=
11934finish_cmds=
11935finish_eval=
11936shlibpath_var=
11937shlibpath_overrides_runpath=unknown
11938version_type=none
11939dynamic_linker="$host_os ld.so"
11940sys_lib_dlsearch_path_spec="/lib /usr/lib"
11941if test "$GCC" = yes; then
11942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11944 # if the path contains ";" then we assume it to be the separator
11945 # otherwise default to the standard path separator (i.e. ":") - it is
11946 # assumed that no part of a normal pathname contains ";" but that should
11947 # okay in the real world where ";" in dirpaths is itself problematic.
11948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11949 else
11950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11951 fi
11952else
11953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11954fi
11955need_lib_prefix=unknown
11956hardcode_into_libs=no
11957
11958# when you set need_version to no, make sure it does not cause -set_version
11959# flags to be left without arguments
11960need_version=unknown
11961
11962case $host_os in
11963aix3*)
11964 version_type=linux
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11966 shlibpath_var=LIBPATH
11967
11968 # AIX 3 has no versioning support, so we append a major version to the name.
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 ;;
11971
11972aix4* | aix5*)
11973 version_type=linux
11974 need_lib_prefix=no
11975 need_version=no
11976 hardcode_into_libs=yes
11977 if test "$host_cpu" = ia64; then
11978 # AIX 5 supports IA64
11979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11980 shlibpath_var=LD_LIBRARY_PATH
11981 else
11982 # With GCC up to 2.95.x, collect2 would create an import file
11983 # for dependence libraries. The import file would start with
11984 # the line `#! .'. This would cause the generated library to
11985 # depend on `.', always an invalid library. This was fixed in
11986 # development snapshots of GCC prior to 3.0.
11987 case $host_os in
11988 aix4 | aix4.[01] | aix4.[01].*)
11989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11990 echo ' yes '
11991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11992 :
11993 else
11994 can_build_shared=no
11995 fi
11996 ;;
11997 esac
11998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11999 # soname into executable. Probably we can add versioning support to
12000 # collect2, so additional links can be useful in future.
12001 if test "$aix_use_runtimelinking" = yes; then
12002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12003 # instead of lib<name>.a to let people know that these are not
12004 # typical AIX shared libraries.
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 else
12007 # We preserve .a as extension for shared libraries through AIX4.2
12008 # and later when we are not doing run time linking.
12009 library_names_spec='${libname}${release}.a $libname.a'
12010 soname_spec='${libname}${release}${shared_ext}$major'
12011 fi
12012 shlibpath_var=LIBPATH
12013 fi
12014 ;;
12015
12016amigaos*)
12017 library_names_spec='$libname.ixlibrary $libname.a'
12018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012019 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 +000012020 ;;
12021
12022beos*)
12023 library_names_spec='${libname}${shared_ext}'
12024 dynamic_linker="$host_os ld.so"
12025 shlibpath_var=LIBRARY_PATH
12026 ;;
12027
Reid Spencer2706f8c2004-09-19 23:53:36 +000012028bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012029 version_type=linux
12030 need_version=no
12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032 soname_spec='${libname}${release}${shared_ext}$major'
12033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12037 # the default ld.so.conf also contains /usr/contrib/lib and
12038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12039 # libtool to hard-code these into programs
12040 ;;
12041
12042cygwin* | mingw* | pw32*)
12043 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000012044 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012045 need_version=no
12046 need_lib_prefix=no
12047
12048 case $GCC,$host_os in
12049 yes,cygwin* | yes,mingw* | yes,pw32*)
12050 library_names_spec='$libname.dll.a'
12051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000012052 postinstall_cmds='base_file=`basename \${file}`~
12053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12054 dldir=$destdir/`dirname \$dlpath`~
12055 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000012056 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000012057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12058 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000012059 $rm \$dlpath'
12060 shlibpath_overrides_runpath=yes
12061
12062 case $host_os in
12063 cygwin*)
12064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12065 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 +000012066 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000012067 ;;
12068 mingw*)
12069 # MinGW DLLs use traditional 'lib' prefix
12070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12072 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12073 # It is most probably a Windows format PATH printed by
12074 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12075 # path with ; separators, and with drive letters. We can handle the
12076 # drive letters (cygwin fileutils understands them), so leave them,
12077 # especially as we might pass files found there to a mingw objdump,
12078 # which wouldn't understand a cygwinified path. Ahh.
12079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12080 else
12081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12082 fi
12083 ;;
12084 pw32*)
12085 # pw32 DLLs use 'pw' prefix rather than 'lib'
12086 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12087 ;;
12088 esac
12089 ;;
12090
12091 *)
12092 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12093 ;;
12094 esac
12095 dynamic_linker='Win32 ld.exe'
12096 # FIXME: first we should search . and the directory the executable is in
12097 shlibpath_var=PATH
12098 ;;
12099
12100darwin* | rhapsody*)
12101 dynamic_linker="$host_os dyld"
12102 version_type=darwin
12103 need_lib_prefix=no
12104 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000012105 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000012106 soname_spec='${libname}${release}${major}$shared_ext'
12107 shlibpath_overrides_runpath=yes
12108 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000012109 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000012110 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012111 if test "$GCC" = yes; then
12112 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"`
12113 else
12114 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000012115 fi
12116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12117 ;;
12118
12119dgux*)
12120 version_type=linux
12121 need_lib_prefix=no
12122 need_version=no
12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12124 soname_spec='${libname}${release}${shared_ext}$major'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 ;;
12127
12128freebsd1*)
12129 dynamic_linker=no
12130 ;;
12131
Reid Spencer2706f8c2004-09-19 23:53:36 +000012132kfreebsd*-gnu)
12133 version_type=linux
12134 need_lib_prefix=no
12135 need_version=no
12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12137 soname_spec='${libname}${release}${shared_ext}$major'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 shlibpath_overrides_runpath=no
12140 hardcode_into_libs=yes
12141 dynamic_linker='GNU ld.so'
12142 ;;
12143
John Criswell47fdd832003-07-14 16:52:07 +000012144freebsd*)
12145 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12146 version_type=freebsd-$objformat
12147 case $version_type in
12148 freebsd-elf*)
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12150 need_version=no
12151 need_lib_prefix=no
12152 ;;
12153 freebsd-*)
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12155 need_version=yes
12156 ;;
12157 esac
12158 shlibpath_var=LD_LIBRARY_PATH
12159 case $host_os in
12160 freebsd2*)
12161 shlibpath_overrides_runpath=yes
12162 ;;
12163 freebsd3.01* | freebsdelf3.01*)
12164 shlibpath_overrides_runpath=yes
12165 hardcode_into_libs=yes
12166 ;;
12167 *) # from 3.2 on
12168 shlibpath_overrides_runpath=no
12169 hardcode_into_libs=yes
12170 ;;
12171 esac
12172 ;;
12173
12174gnu*)
12175 version_type=linux
12176 need_lib_prefix=no
12177 need_version=no
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 hardcode_into_libs=yes
12182 ;;
12183
12184hpux9* | hpux10* | hpux11*)
12185 # Give a soname corresponding to the major version so that dld.sl refuses to
12186 # link against other versions.
12187 version_type=sunos
12188 need_lib_prefix=no
12189 need_version=no
12190 case "$host_cpu" in
12191 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012192 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000012193 hardcode_into_libs=yes
12194 dynamic_linker="$host_os dld.so"
12195 shlibpath_var=LD_LIBRARY_PATH
12196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12198 soname_spec='${libname}${release}${shared_ext}$major'
12199 if test "X$HPUX_IA64_MODE" = X32; then
12200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12201 else
12202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12203 fi
12204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12205 ;;
12206 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012207 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000012208 hardcode_into_libs=yes
12209 dynamic_linker="$host_os dld.sl"
12210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12213 soname_spec='${libname}${release}${shared_ext}$major'
12214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12216 ;;
12217 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000012218 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000012219 dynamic_linker="$host_os dld.sl"
12220 shlibpath_var=SHLIB_PATH
12221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12223 soname_spec='${libname}${release}${shared_ext}$major'
12224 ;;
12225 esac
12226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12227 postinstall_cmds='chmod 555 $lib'
12228 ;;
12229
12230irix5* | irix6* | nonstopux*)
12231 case $host_os in
12232 nonstopux*) version_type=nonstopux ;;
12233 *)
12234 if test "$lt_cv_prog_gnu_ld" = yes; then
12235 version_type=linux
12236 else
12237 version_type=irix
12238 fi ;;
12239 esac
12240 need_lib_prefix=no
12241 need_version=no
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12244 case $host_os in
12245 irix5* | nonstopux*)
12246 libsuff= shlibsuff=
12247 ;;
12248 *)
12249 case $LD in # libtool.m4 will add one of these switches to LD
12250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12251 libsuff= shlibsuff= libmagic=32-bit;;
12252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12253 libsuff=32 shlibsuff=N32 libmagic=N32;;
12254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12256 *) libsuff= shlibsuff= libmagic=never-match;;
12257 esac
12258 ;;
12259 esac
12260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12261 shlibpath_overrides_runpath=no
12262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12264 hardcode_into_libs=yes
12265 ;;
12266
12267# No shared lib support for Linux oldld, aout, or coff.
12268linux*oldld* | linux*aout* | linux*coff*)
12269 dynamic_linker=no
12270 ;;
12271
12272# This must be Linux ELF.
12273linux*)
12274 version_type=linux
12275 need_lib_prefix=no
12276 need_version=no
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 soname_spec='${libname}${release}${shared_ext}$major'
12279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 shlibpath_overrides_runpath=no
12282 # This implies no fast_install, which is unacceptable.
12283 # Some rework will be needed to allow for fast_install
12284 # before this can be enabled.
12285 hardcode_into_libs=yes
12286
Reid Spencer2706f8c2004-09-19 23:53:36 +000012287 # Append ld.so.conf contents to the search path
12288 if test -f /etc/ld.so.conf; then
12289 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12290 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12291 fi
12292
John Criswell47fdd832003-07-14 16:52:07 +000012293 # We used to test for /lib/ld.so.1 and disable shared libraries on
12294 # powerpc, because MkLinux only supported shared libraries with the
12295 # GNU dynamic linker. Since this was broken with cross compilers,
12296 # most powerpc-linux boxes support dynamic linking these days and
12297 # people can always --disable-shared, the test was removed, and we
12298 # assume the GNU/Linux dynamic linker is in use.
12299 dynamic_linker='GNU/Linux ld.so'
12300 ;;
12301
Reid Spencer2706f8c2004-09-19 23:53:36 +000012302knetbsd*-gnu)
12303 version_type=linux
12304 need_lib_prefix=no
12305 need_version=no
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=no
12310 hardcode_into_libs=yes
12311 dynamic_linker='GNU ld.so'
12312 ;;
12313
John Criswell47fdd832003-07-14 16:52:07 +000012314netbsd*)
12315 version_type=sunos
12316 need_lib_prefix=no
12317 need_version=no
12318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12321 dynamic_linker='NetBSD (a.out) ld.so'
12322 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000012323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000012324 soname_spec='${libname}${release}${shared_ext}$major'
12325 dynamic_linker='NetBSD ld.elf_so'
12326 fi
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12329 hardcode_into_libs=yes
12330 ;;
12331
12332newsos6)
12333 version_type=linux
12334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 shlibpath_overrides_runpath=yes
12337 ;;
12338
Reid Spencer2706f8c2004-09-19 23:53:36 +000012339nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000012340 version_type=linux
12341 need_lib_prefix=no
12342 need_version=no
12343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 shlibpath_overrides_runpath=yes
12347 ;;
12348
12349openbsd*)
12350 version_type=sunos
12351 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000012352 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000012353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12357 case $host_os in
12358 openbsd2.[89] | openbsd2.[89].*)
12359 shlibpath_overrides_runpath=no
12360 ;;
12361 *)
12362 shlibpath_overrides_runpath=yes
12363 ;;
12364 esac
12365 else
12366 shlibpath_overrides_runpath=yes
12367 fi
12368 ;;
12369
12370os2*)
12371 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012372 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012373 need_lib_prefix=no
12374 library_names_spec='$libname${shared_ext} $libname.a'
12375 dynamic_linker='OS/2 ld.exe'
12376 shlibpath_var=LIBPATH
12377 ;;
12378
12379osf3* | osf4* | osf5*)
12380 version_type=osf
12381 need_lib_prefix=no
12382 need_version=no
12383 soname_spec='${libname}${release}${shared_ext}$major'
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12388 ;;
12389
12390sco3.2v5*)
12391 version_type=osf
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394 shlibpath_var=LD_LIBRARY_PATH
12395 ;;
12396
12397solaris*)
12398 version_type=linux
12399 need_lib_prefix=no
12400 need_version=no
12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 soname_spec='${libname}${release}${shared_ext}$major'
12403 shlibpath_var=LD_LIBRARY_PATH
12404 shlibpath_overrides_runpath=yes
12405 hardcode_into_libs=yes
12406 # ldd complains unless libraries are executable
12407 postinstall_cmds='chmod +x $lib'
12408 ;;
12409
12410sunos4*)
12411 version_type=sunos
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 shlibpath_overrides_runpath=yes
12416 if test "$with_gnu_ld" = yes; then
12417 need_lib_prefix=no
12418 fi
12419 need_version=yes
12420 ;;
12421
12422sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12423 version_type=linux
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425 soname_spec='${libname}${release}${shared_ext}$major'
12426 shlibpath_var=LD_LIBRARY_PATH
12427 case $host_vendor in
12428 sni)
12429 shlibpath_overrides_runpath=no
12430 need_lib_prefix=no
12431 export_dynamic_flag_spec='${wl}-Blargedynsym'
12432 runpath_var=LD_RUN_PATH
12433 ;;
12434 siemens)
12435 need_lib_prefix=no
12436 ;;
12437 motorola)
12438 need_lib_prefix=no
12439 need_version=no
12440 shlibpath_overrides_runpath=no
12441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12442 ;;
12443 esac
12444 ;;
12445
12446sysv4*MP*)
12447 if test -d /usr/nec ;then
12448 version_type=linux
12449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12450 soname_spec='$libname${shared_ext}.$major'
12451 shlibpath_var=LD_LIBRARY_PATH
12452 fi
12453 ;;
12454
12455uts4*)
12456 version_type=linux
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 ;;
12461
12462*)
12463 dynamic_linker=no
12464 ;;
12465esac
12466echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12467echo "${ECHO_T}$dynamic_linker" >&6
12468test "$dynamic_linker" = no && can_build_shared=no
12469
Reid Spencer2706f8c2004-09-19 23:53:36 +000012470echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12471echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12472hardcode_action_CXX=
12473if test -n "$hardcode_libdir_flag_spec_CXX" || \
12474 test -n "$runpath_var_CXX" || \
12475 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12476
12477 # We can hardcode non-existant directories.
12478 if test "$hardcode_direct_CXX" != no &&
12479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12480 # have to relink, otherwise we might link with an installed library
12481 # when we should be linking with a yet-to-be-installed one
12482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12483 test "$hardcode_minus_L_CXX" != no; then
12484 # Linking always hardcodes the temporary library directory.
12485 hardcode_action_CXX=relink
12486 else
12487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12488 hardcode_action_CXX=immediate
12489 fi
12490else
12491 # We cannot hardcode anything, or else we can only hardcode existing
12492 # directories.
12493 hardcode_action_CXX=unsupported
12494fi
12495echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12496echo "${ECHO_T}$hardcode_action_CXX" >&6
12497
12498if test "$hardcode_action_CXX" = relink; then
12499 # Fast installation is not supported
12500 enable_fast_install=no
12501elif test "$shlibpath_overrides_runpath" = yes ||
12502 test "$enable_shared" = no; then
12503 # Fast installation is not necessary
12504 enable_fast_install=needless
12505fi
12506
12507striplib=
12508old_striplib=
12509echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12510echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12511if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12512 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12513 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12514 echo "$as_me:$LINENO: result: yes" >&5
12515echo "${ECHO_T}yes" >&6
12516else
12517# FIXME - insert some real tests, host_os isn't really good enough
12518 case $host_os in
12519 darwin*)
12520 if test -n "$STRIP" ; then
12521 striplib="$STRIP -x"
12522 echo "$as_me:$LINENO: result: yes" >&5
12523echo "${ECHO_T}yes" >&6
12524 else
12525 echo "$as_me:$LINENO: result: no" >&5
12526echo "${ECHO_T}no" >&6
12527fi
12528 ;;
12529 *)
12530 echo "$as_me:$LINENO: result: no" >&5
12531echo "${ECHO_T}no" >&6
12532 ;;
12533 esac
12534fi
12535
John Criswell47fdd832003-07-14 16:52:07 +000012536if test "x$enable_dlopen" != xyes; then
12537 enable_dlopen=unknown
12538 enable_dlopen_self=unknown
12539 enable_dlopen_self_static=unknown
12540else
12541 lt_cv_dlopen=no
12542 lt_cv_dlopen_libs=
12543
12544 case $host_os in
12545 beos*)
12546 lt_cv_dlopen="load_add_on"
12547 lt_cv_dlopen_libs=
12548 lt_cv_dlopen_self=yes
12549 ;;
12550
12551 mingw* | pw32*)
12552 lt_cv_dlopen="LoadLibrary"
12553 lt_cv_dlopen_libs=
12554 ;;
12555
12556 cygwin*)
12557 lt_cv_dlopen="dlopen"
12558 lt_cv_dlopen_libs=
12559 ;;
12560
12561 darwin*)
12562 # if libdl is installed we need to link against it
12563 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12564echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12565if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568 ac_check_lib_save_LIBS=$LIBS
12569LIBS="-ldl $LIBS"
12570cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012576
12577/* Override any gcc2 internal prototype to avoid an error. */
12578#ifdef __cplusplus
12579extern "C"
12580#endif
12581/* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012584int
12585main ()
12586{
12587dlopen ();
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592rm -f conftest.$ac_objext conftest$ac_exeext
12593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012594 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012595 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012601 { ac_try='test -z "$ac_cxx_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_lib_dl_dlopen=yes
12615else
12616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012617sed 's/^/| /' conftest.$ac_ext >&5
12618
John Criswell47fdd832003-07-14 16:52:07 +000012619ac_cv_lib_dl_dlopen=no
12620fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012621rm -f conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012623LIBS=$ac_check_lib_save_LIBS
12624fi
12625echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12626echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12627if test $ac_cv_lib_dl_dlopen = yes; then
12628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12629else
12630
12631 lt_cv_dlopen="dyld"
12632 lt_cv_dlopen_libs=
12633 lt_cv_dlopen_self=yes
12634
12635fi
12636
12637 ;;
12638
12639 *)
12640 echo "$as_me:$LINENO: checking for shl_load" >&5
12641echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12642if test "${ac_cv_func_shl_load+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012651/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12653#define shl_load innocuous_shl_load
12654
John Criswell47fdd832003-07-14 16:52:07 +000012655/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000012656 which can conflict with char shl_load (); below.
12657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12658 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012659
John Criswell0c38eaf2003-09-10 15:17:25 +000012660#ifdef __STDC__
12661# include <limits.h>
12662#else
12663# include <assert.h>
12664#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012665
12666#undef shl_load
12667
John Criswell47fdd832003-07-14 16:52:07 +000012668/* Override any gcc2 internal prototype to avoid an error. */
12669#ifdef __cplusplus
12670extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012671{
John Criswell47fdd832003-07-14 16:52:07 +000012672#endif
12673/* We use char because int might match the return type of a gcc2
12674 builtin and then its argument prototype would still apply. */
12675char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000012676/* The GNU C library defines this for functions which it implements
12677 to always fail with ENOSYS. Some functions are actually named
12678 something starting with __ and the normal name is an alias. */
12679#if defined (__stub_shl_load) || defined (__stub___shl_load)
12680choke me
12681#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012682char (*f) () = shl_load;
12683#endif
12684#ifdef __cplusplus
12685}
John Criswell47fdd832003-07-14 16:52:07 +000012686#endif
12687
John Criswell0c38eaf2003-09-10 15:17:25 +000012688int
12689main ()
12690{
12691return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000012692 ;
12693 return 0;
12694}
12695_ACEOF
12696rm -f conftest.$ac_objext conftest$ac_exeext
12697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012698 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012705 { ac_try='test -z "$ac_cxx_werror_flag"
12706 || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_cv_func_shl_load=yes
12719else
12720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012721sed 's/^/| /' conftest.$ac_ext >&5
12722
John Criswell47fdd832003-07-14 16:52:07 +000012723ac_cv_func_shl_load=no
12724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012725rm -f conftest.err conftest.$ac_objext \
12726 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012727fi
12728echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12729echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12730if test $ac_cv_func_shl_load = yes; then
12731 lt_cv_dlopen="shl_load"
12732else
12733 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12734echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12735if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12737else
12738 ac_check_lib_save_LIBS=$LIBS
12739LIBS="-ldld $LIBS"
12740cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012741/* confdefs.h. */
12742_ACEOF
12743cat confdefs.h >>conftest.$ac_ext
12744cat >>conftest.$ac_ext <<_ACEOF
12745/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012746
12747/* Override any gcc2 internal prototype to avoid an error. */
12748#ifdef __cplusplus
12749extern "C"
12750#endif
12751/* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12753char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000012754int
12755main ()
12756{
12757shl_load ();
12758 ;
12759 return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext conftest$ac_exeext
12763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012764 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012765 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012771 { ac_try='test -z "$ac_cxx_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 ac_cv_lib_dld_shl_load=yes
12785else
12786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012787sed 's/^/| /' conftest.$ac_ext >&5
12788
John Criswell47fdd832003-07-14 16:52:07 +000012789ac_cv_lib_dld_shl_load=no
12790fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012791rm -f conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012793LIBS=$ac_check_lib_save_LIBS
12794fi
12795echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12796echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12797if test $ac_cv_lib_dld_shl_load = yes; then
12798 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12799else
12800 echo "$as_me:$LINENO: checking for dlopen" >&5
12801echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12802if test "${ac_cv_func_dlopen+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012806/* confdefs.h. */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012811/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12813#define dlopen innocuous_dlopen
12814
John Criswell47fdd832003-07-14 16:52:07 +000012815/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000012816 which can conflict with char dlopen (); below.
12817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000012819
John Criswell0c38eaf2003-09-10 15:17:25 +000012820#ifdef __STDC__
12821# include <limits.h>
12822#else
12823# include <assert.h>
12824#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012825
12826#undef dlopen
12827
John Criswell47fdd832003-07-14 16:52:07 +000012828/* Override any gcc2 internal prototype to avoid an error. */
12829#ifdef __cplusplus
12830extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012831{
John Criswell47fdd832003-07-14 16:52:07 +000012832#endif
12833/* We use char because int might match the return type of a gcc2
12834 builtin and then its argument prototype would still apply. */
12835char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012836/* The GNU C library defines this for functions which it implements
12837 to always fail with ENOSYS. Some functions are actually named
12838 something starting with __ and the normal name is an alias. */
12839#if defined (__stub_dlopen) || defined (__stub___dlopen)
12840choke me
12841#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012842char (*f) () = dlopen;
12843#endif
12844#ifdef __cplusplus
12845}
John Criswell47fdd832003-07-14 16:52:07 +000012846#endif
12847
John Criswell0c38eaf2003-09-10 15:17:25 +000012848int
12849main ()
12850{
12851return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext conftest$ac_exeext
12857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012858 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012865 { ac_try='test -z "$ac_cxx_werror_flag"
12866 || test ! -s conftest.err'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; } &&
12872 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_func_dlopen=yes
12879else
12880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012881sed 's/^/| /' conftest.$ac_ext >&5
12882
John Criswell47fdd832003-07-14 16:52:07 +000012883ac_cv_func_dlopen=no
12884fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012885rm -f conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012887fi
12888echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12889echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12890if test $ac_cv_func_dlopen = yes; then
12891 lt_cv_dlopen="dlopen"
12892else
12893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12894echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12895if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898 ac_check_lib_save_LIBS=$LIBS
12899LIBS="-ldl $LIBS"
12900cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012901/* confdefs.h. */
12902_ACEOF
12903cat confdefs.h >>conftest.$ac_ext
12904cat >>conftest.$ac_ext <<_ACEOF
12905/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012906
12907/* Override any gcc2 internal prototype to avoid an error. */
12908#ifdef __cplusplus
12909extern "C"
12910#endif
12911/* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012914int
12915main ()
12916{
12917dlopen ();
12918 ;
12919 return 0;
12920}
12921_ACEOF
12922rm -f conftest.$ac_objext conftest$ac_exeext
12923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012924 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012931 { ac_try='test -z "$ac_cxx_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_dl_dlopen=yes
12945else
12946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012947sed 's/^/| /' conftest.$ac_ext >&5
12948
John Criswell47fdd832003-07-14 16:52:07 +000012949ac_cv_lib_dl_dlopen=no
12950fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012951rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012953LIBS=$ac_check_lib_save_LIBS
12954fi
12955echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12956echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12957if test $ac_cv_lib_dl_dlopen = yes; then
12958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12959else
12960 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12961echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12962if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12964else
12965 ac_check_lib_save_LIBS=$LIBS
12966LIBS="-lsvld $LIBS"
12967cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012973
12974/* Override any gcc2 internal prototype to avoid an error. */
12975#ifdef __cplusplus
12976extern "C"
12977#endif
12978/* We use char because int might match the return type of a gcc2
12979 builtin and then its argument prototype would still apply. */
12980char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012981int
12982main ()
12983{
12984dlopen ();
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext conftest$ac_exeext
12990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012991 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012998 { ac_try='test -z "$ac_cxx_werror_flag"
12999 || test ! -s conftest.err'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } &&
13005 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_cv_lib_svld_dlopen=yes
13012else
13013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013014sed 's/^/| /' conftest.$ac_ext >&5
13015
John Criswell47fdd832003-07-14 16:52:07 +000013016ac_cv_lib_svld_dlopen=no
13017fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013018rm -f conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013020LIBS=$ac_check_lib_save_LIBS
13021fi
13022echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13023echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13024if test $ac_cv_lib_svld_dlopen = yes; then
13025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13026else
13027 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13028echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13029if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031else
13032 ac_check_lib_save_LIBS=$LIBS
13033LIBS="-ldld $LIBS"
13034cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013040
13041/* Override any gcc2 internal prototype to avoid an error. */
13042#ifdef __cplusplus
13043extern "C"
13044#endif
13045/* We use char because int might match the return type of a gcc2
13046 builtin and then its argument prototype would still apply. */
13047char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000013048int
13049main ()
13050{
13051dld_link ();
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056rm -f conftest.$ac_objext conftest$ac_exeext
13057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013058 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013065 { ac_try='test -z "$ac_cxx_werror_flag"
13066 || test ! -s conftest.err'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; } &&
13072 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; }; then
13078 ac_cv_lib_dld_dld_link=yes
13079else
13080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013081sed 's/^/| /' conftest.$ac_ext >&5
13082
John Criswell47fdd832003-07-14 16:52:07 +000013083ac_cv_lib_dld_dld_link=no
13084fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013085rm -f conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013087LIBS=$ac_check_lib_save_LIBS
13088fi
13089echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13090echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13091if test $ac_cv_lib_dld_dld_link = yes; then
13092 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13093fi
13094
13095
13096fi
13097
13098
13099fi
13100
13101
13102fi
13103
13104
13105fi
13106
13107
13108fi
13109
13110 ;;
13111 esac
13112
13113 if test "x$lt_cv_dlopen" != xno; then
13114 enable_dlopen=yes
13115 else
13116 enable_dlopen=no
13117 fi
13118
13119 case $lt_cv_dlopen in
13120 dlopen)
13121 save_CPPFLAGS="$CPPFLAGS"
13122 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13123
13124 save_LDFLAGS="$LDFLAGS"
13125 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13126
13127 save_LIBS="$LIBS"
13128 LIBS="$lt_cv_dlopen_libs $LIBS"
13129
13130 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13131echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13132if test "${lt_cv_dlopen_self+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
13135 if test "$cross_compiling" = yes; then :
13136 lt_cv_dlopen_self=cross
13137else
13138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13139 lt_status=$lt_dlunknown
13140 cat > conftest.$ac_ext <<EOF
Reid Spencer1f319422004-11-29 04:56:35 +000013141#line 13141 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000013142#include "confdefs.h"
13143
13144#if HAVE_DLFCN_H
13145#include <dlfcn.h>
13146#endif
13147
13148#include <stdio.h>
13149
13150#ifdef RTLD_GLOBAL
13151# define LT_DLGLOBAL RTLD_GLOBAL
13152#else
13153# ifdef DL_GLOBAL
13154# define LT_DLGLOBAL DL_GLOBAL
13155# else
13156# define LT_DLGLOBAL 0
13157# endif
13158#endif
13159
13160/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13161 find out it does not work in some platform. */
13162#ifndef LT_DLLAZY_OR_NOW
13163# ifdef RTLD_LAZY
13164# define LT_DLLAZY_OR_NOW RTLD_LAZY
13165# else
13166# ifdef DL_LAZY
13167# define LT_DLLAZY_OR_NOW DL_LAZY
13168# else
13169# ifdef RTLD_NOW
13170# define LT_DLLAZY_OR_NOW RTLD_NOW
13171# else
13172# ifdef DL_NOW
13173# define LT_DLLAZY_OR_NOW DL_NOW
13174# else
13175# define LT_DLLAZY_OR_NOW 0
13176# endif
13177# endif
13178# endif
13179# endif
13180#endif
13181
13182#ifdef __cplusplus
13183extern "C" void exit (int);
13184#endif
13185
13186void fnord() { int i=42;}
13187int main ()
13188{
13189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13190 int status = $lt_dlunknown;
13191
13192 if (self)
13193 {
13194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13196 /* dlclose (self); */
13197 }
13198
13199 exit (status);
13200}
13201EOF
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13207 (./conftest; exit; ) 2>/dev/null
13208 lt_status=$?
13209 case x$lt_status in
13210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13212 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13213 esac
13214 else :
13215 # compilation failed
13216 lt_cv_dlopen_self=no
13217 fi
13218fi
13219rm -fr conftest*
13220
13221
13222fi
13223echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13224echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13225
13226 if test "x$lt_cv_dlopen_self" = xyes; then
13227 LDFLAGS="$LDFLAGS $link_static_flag"
13228 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13229echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13230if test "${lt_cv_dlopen_self_static+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232else
13233 if test "$cross_compiling" = yes; then :
13234 lt_cv_dlopen_self_static=cross
13235else
13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13237 lt_status=$lt_dlunknown
13238 cat > conftest.$ac_ext <<EOF
Reid Spencer1f319422004-11-29 04:56:35 +000013239#line 13239 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000013240#include "confdefs.h"
13241
13242#if HAVE_DLFCN_H
13243#include <dlfcn.h>
13244#endif
13245
13246#include <stdio.h>
13247
13248#ifdef RTLD_GLOBAL
13249# define LT_DLGLOBAL RTLD_GLOBAL
13250#else
13251# ifdef DL_GLOBAL
13252# define LT_DLGLOBAL DL_GLOBAL
13253# else
13254# define LT_DLGLOBAL 0
13255# endif
13256#endif
13257
13258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13259 find out it does not work in some platform. */
13260#ifndef LT_DLLAZY_OR_NOW
13261# ifdef RTLD_LAZY
13262# define LT_DLLAZY_OR_NOW RTLD_LAZY
13263# else
13264# ifdef DL_LAZY
13265# define LT_DLLAZY_OR_NOW DL_LAZY
13266# else
13267# ifdef RTLD_NOW
13268# define LT_DLLAZY_OR_NOW RTLD_NOW
13269# else
13270# ifdef DL_NOW
13271# define LT_DLLAZY_OR_NOW DL_NOW
13272# else
13273# define LT_DLLAZY_OR_NOW 0
13274# endif
13275# endif
13276# endif
13277# endif
13278#endif
13279
13280#ifdef __cplusplus
13281extern "C" void exit (int);
13282#endif
13283
13284void fnord() { int i=42;}
13285int main ()
13286{
13287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288 int status = $lt_dlunknown;
13289
13290 if (self)
13291 {
13292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13294 /* dlclose (self); */
13295 }
13296
13297 exit (status);
13298}
13299EOF
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13305 (./conftest; exit; ) 2>/dev/null
13306 lt_status=$?
13307 case x$lt_status in
13308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13310 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13311 esac
13312 else :
13313 # compilation failed
13314 lt_cv_dlopen_self_static=no
13315 fi
13316fi
13317rm -fr conftest*
13318
13319
13320fi
13321echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13322echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13323 fi
13324
13325 CPPFLAGS="$save_CPPFLAGS"
13326 LDFLAGS="$save_LDFLAGS"
13327 LIBS="$save_LIBS"
13328 ;;
13329 esac
13330
13331 case $lt_cv_dlopen_self in
13332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13333 *) enable_dlopen_self=unknown ;;
13334 esac
13335
13336 case $lt_cv_dlopen_self_static in
13337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13338 *) enable_dlopen_self_static=unknown ;;
13339 esac
13340fi
13341
13342
13343# The else clause should only fire when bootstrapping the
13344# libtool distribution, otherwise you forgot to ship ltmain.sh
13345# with your package, and you will get complaints that there are
13346# no rules to generate ltmain.sh.
13347if test -f "$ltmain"; then
13348 # See if we are running on zsh, and set the options which allow our commands through
13349 # without removal of \ escapes.
13350 if test -n "${ZSH_VERSION+set}" ; then
13351 setopt NO_GLOB_SUBST
13352 fi
13353 # Now quote all the things that may contain metacharacters while being
13354 # careful not to overquote the AC_SUBSTed values. We take copies of the
13355 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013356 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13357 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000013358 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13359 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13360 deplibs_check_method reload_flag reload_cmds need_locks \
13361 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13362 lt_cv_sys_global_symbol_to_c_name_address \
13363 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13364 old_postinstall_cmds old_postuninstall_cmds \
13365 compiler_CXX \
13366 CC_CXX \
13367 LD_CXX \
13368 lt_prog_compiler_wl_CXX \
13369 lt_prog_compiler_pic_CXX \
13370 lt_prog_compiler_static_CXX \
13371 lt_prog_compiler_no_builtin_flag_CXX \
13372 export_dynamic_flag_spec_CXX \
13373 thread_safe_flag_spec_CXX \
13374 whole_archive_flag_spec_CXX \
13375 enable_shared_with_static_runtimes_CXX \
13376 old_archive_cmds_CXX \
13377 old_archive_from_new_cmds_CXX \
13378 predep_objects_CXX \
13379 postdep_objects_CXX \
13380 predeps_CXX \
13381 postdeps_CXX \
13382 compiler_lib_search_path_CXX \
13383 archive_cmds_CXX \
13384 archive_expsym_cmds_CXX \
13385 postinstall_cmds_CXX \
13386 postuninstall_cmds_CXX \
13387 old_archive_from_expsyms_cmds_CXX \
13388 allow_undefined_flag_CXX \
13389 no_undefined_flag_CXX \
13390 export_symbols_cmds_CXX \
13391 hardcode_libdir_flag_spec_CXX \
13392 hardcode_libdir_flag_spec_ld_CXX \
13393 hardcode_libdir_separator_CXX \
13394 hardcode_automatic_CXX \
13395 module_cmds_CXX \
13396 module_expsym_cmds_CXX \
13397 lt_cv_prog_compiler_c_o_CXX \
13398 exclude_expsyms_CXX \
13399 include_expsyms_CXX; do
13400
13401 case $var in
13402 old_archive_cmds_CXX | \
13403 old_archive_from_new_cmds_CXX | \
13404 archive_cmds_CXX | \
13405 archive_expsym_cmds_CXX | \
13406 module_cmds_CXX | \
13407 module_expsym_cmds_CXX | \
13408 old_archive_from_expsyms_cmds_CXX | \
13409 export_symbols_cmds_CXX | \
13410 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13411 postinstall_cmds | postuninstall_cmds | \
13412 old_postinstall_cmds | old_postuninstall_cmds | \
13413 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13414 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013415 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 +000013416 ;;
13417 *)
13418 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13419 ;;
13420 esac
13421 done
13422
13423 case $lt_echo in
13424 *'\$0 --fallback-echo"')
13425 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13426 ;;
13427 esac
13428
13429cfgfile="$ofile"
13430
13431 cat <<__EOF__ >> "$cfgfile"
13432# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13433
13434# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13435
13436# Shell to use when invoking shell scripts.
13437SHELL=$lt_SHELL
13438
13439# Whether or not to build shared libraries.
13440build_libtool_libs=$enable_shared
13441
13442# Whether or not to build static libraries.
13443build_old_libs=$enable_static
13444
13445# Whether or not to add -lc for building shared libraries.
13446build_libtool_need_lc=$archive_cmds_need_lc_CXX
13447
13448# Whether or not to disallow shared libs when runtime libs are static
13449allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13450
13451# Whether or not to optimize for fast installation.
13452fast_install=$enable_fast_install
13453
13454# The host system.
13455host_alias=$host_alias
13456host=$host
13457
13458# An echo program that does not interpret backslashes.
13459echo=$lt_echo
13460
13461# The archiver.
13462AR=$lt_AR
13463AR_FLAGS=$lt_AR_FLAGS
13464
13465# A C compiler.
13466LTCC=$lt_LTCC
13467
13468# A language-specific compiler.
13469CC=$lt_compiler_CXX
13470
13471# Is the compiler the GNU C compiler?
13472with_gcc=$GCC_CXX
13473
13474# An ERE matcher.
13475EGREP=$lt_EGREP
13476
13477# The linker used to build libraries.
13478LD=$lt_LD_CXX
13479
13480# Whether we need hard or soft links.
13481LN_S=$lt_LN_S
13482
13483# A BSD-compatible nm program.
13484NM=$lt_NM
13485
13486# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000013487STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000013488
13489# Used to examine libraries when file_magic_cmd begins "file"
13490MAGIC_CMD=$MAGIC_CMD
13491
13492# Used on cygwin: DLL creation program.
13493DLLTOOL="$DLLTOOL"
13494
13495# Used on cygwin: object dumper.
13496OBJDUMP="$OBJDUMP"
13497
13498# Used on cygwin: assembler.
13499AS="$AS"
13500
13501# The name of the directory that contains temporary libtool files.
13502objdir=$objdir
13503
13504# How to create reloadable object files.
13505reload_flag=$lt_reload_flag
13506reload_cmds=$lt_reload_cmds
13507
13508# How to pass a linker flag through the compiler.
13509wl=$lt_lt_prog_compiler_wl_CXX
13510
13511# Object file suffix (normally "o").
13512objext="$ac_objext"
13513
13514# Old archive suffix (normally "a").
13515libext="$libext"
13516
13517# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000013518shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000013519
13520# Executable file suffix (normally "").
13521exeext="$exeext"
13522
13523# Additional compiler flags for building library objects.
13524pic_flag=$lt_lt_prog_compiler_pic_CXX
13525pic_mode=$pic_mode
13526
13527# What is the maximum length of a command?
13528max_cmd_len=$lt_cv_sys_max_cmd_len
13529
13530# Does compiler simultaneously support -c and -o options?
13531compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13532
13533# Must we lock files when doing compilation ?
13534need_locks=$lt_need_locks
13535
13536# Do we need the lib prefix for modules?
13537need_lib_prefix=$need_lib_prefix
13538
13539# Do we need a version for libraries?
13540need_version=$need_version
13541
13542# Whether dlopen is supported.
13543dlopen_support=$enable_dlopen
13544
13545# Whether dlopen of programs is supported.
13546dlopen_self=$enable_dlopen_self
13547
13548# Whether dlopen of statically linked programs is supported.
13549dlopen_self_static=$enable_dlopen_self_static
13550
13551# Compiler flag to prevent dynamic linking.
13552link_static_flag=$lt_lt_prog_compiler_static_CXX
13553
13554# Compiler flag to turn off builtin functions.
13555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13556
13557# Compiler flag to allow reflexive dlopens.
13558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13559
13560# Compiler flag to generate shared objects directly from archives.
13561whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13562
13563# Compiler flag to generate thread-safe objects.
13564thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13565
13566# Library versioning type.
13567version_type=$version_type
13568
13569# Format of library name prefix.
13570libname_spec=$lt_libname_spec
13571
13572# List of archive names. First name is the real one, the rest are links.
13573# The last name is the one that the linker finds with -lNAME.
13574library_names_spec=$lt_library_names_spec
13575
13576# The coded name of the library, if different from the real name.
13577soname_spec=$lt_soname_spec
13578
13579# Commands used to build and install an old-style archive.
13580RANLIB=$lt_RANLIB
13581old_archive_cmds=$lt_old_archive_cmds_CXX
13582old_postinstall_cmds=$lt_old_postinstall_cmds
13583old_postuninstall_cmds=$lt_old_postuninstall_cmds
13584
13585# Create an old-style archive from a shared archive.
13586old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13587
13588# Create a temporary old-style archive to link instead of a shared archive.
13589old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13590
13591# Commands used to build and install a shared archive.
13592archive_cmds=$lt_archive_cmds_CXX
13593archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13594postinstall_cmds=$lt_postinstall_cmds
13595postuninstall_cmds=$lt_postuninstall_cmds
13596
13597# Commands used to build a loadable module (assumed same as above if empty)
13598module_cmds=$lt_module_cmds_CXX
13599module_expsym_cmds=$lt_module_expsym_cmds_CXX
13600
13601# Commands to strip libraries.
13602old_striplib=$lt_old_striplib
13603striplib=$lt_striplib
13604
13605# Dependencies to place before the objects being linked to create a
13606# shared library.
13607predep_objects=$lt_predep_objects_CXX
13608
13609# Dependencies to place after the objects being linked to create a
13610# shared library.
13611postdep_objects=$lt_postdep_objects_CXX
13612
13613# Dependencies to place before the objects being linked to create a
13614# shared library.
13615predeps=$lt_predeps_CXX
13616
13617# Dependencies to place after the objects being linked to create a
13618# shared library.
13619postdeps=$lt_postdeps_CXX
13620
13621# The library search path used internally by the compiler when linking
13622# a shared library.
13623compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13624
13625# Method to check whether dependent libraries are shared objects.
13626deplibs_check_method=$lt_deplibs_check_method
13627
13628# Command to use when deplibs_check_method == file_magic.
13629file_magic_cmd=$lt_file_magic_cmd
13630
13631# Flag that allows shared libraries with undefined symbols to be built.
13632allow_undefined_flag=$lt_allow_undefined_flag_CXX
13633
13634# Flag that forces no undefined symbols.
13635no_undefined_flag=$lt_no_undefined_flag_CXX
13636
13637# Commands used to finish a libtool library installation in a directory.
13638finish_cmds=$lt_finish_cmds
13639
13640# Same as above, but a single script fragment to be evaled but not shown.
13641finish_eval=$lt_finish_eval
13642
13643# Take the output of nm and produce a listing of raw symbols and C names.
13644global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13645
13646# Transform the output of nm in a proper C declaration
13647global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13648
13649# Transform the output of nm in a C name address pair
13650global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13651
13652# This is the shared library runtime path variable.
13653runpath_var=$runpath_var
13654
13655# This is the shared library path variable.
13656shlibpath_var=$shlibpath_var
13657
13658# Is shlibpath searched before the hard-coded library search path?
13659shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13660
13661# How to hardcode a shared library path into an executable.
13662hardcode_action=$hardcode_action_CXX
13663
13664# Whether we should hardcode library paths into libraries.
13665hardcode_into_libs=$hardcode_into_libs
13666
13667# Flag to hardcode \$libdir into a binary during linking.
13668# This must work even if \$libdir does not exist.
13669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13670
13671# If ld is used when linking, flag to hardcode \$libdir into
13672# a binary during linking. This must work even if \$libdir does
13673# not exist.
13674hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13675
13676# Whether we need a single -rpath flag with a separated argument.
13677hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13678
13679# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13680# resulting binary.
13681hardcode_direct=$hardcode_direct_CXX
13682
13683# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13684# resulting binary.
13685hardcode_minus_L=$hardcode_minus_L_CXX
13686
13687# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13688# the resulting binary.
13689hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13690
13691# Set to yes if building a shared library automatically hardcodes DIR into the library
13692# and all subsequent libraries and executables linked against it.
13693hardcode_automatic=$hardcode_automatic_CXX
13694
13695# Variables whose values should be saved in libtool wrapper scripts and
13696# restored at relink time.
13697variables_saved_for_relink="$variables_saved_for_relink"
13698
13699# Whether libtool must link a program against all its dependency libraries.
13700link_all_deplibs=$link_all_deplibs_CXX
13701
13702# Compile-time system search path for libraries
13703sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13704
13705# Run-time system search path for libraries
13706sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13707
13708# Fix the shell variable \$srcfile for the compiler.
13709fix_srcfile_path="$fix_srcfile_path_CXX"
13710
13711# Set to yes if exported symbols are required.
13712always_export_symbols=$always_export_symbols_CXX
13713
13714# The commands to list exported symbols.
13715export_symbols_cmds=$lt_export_symbols_cmds_CXX
13716
13717# The commands to extract the exported symbol list from a shared archive.
13718extract_expsyms_cmds=$lt_extract_expsyms_cmds
13719
13720# Symbols that should not be listed in the preloaded symbols.
13721exclude_expsyms=$lt_exclude_expsyms_CXX
13722
13723# Symbols that must always be exported.
13724include_expsyms=$lt_include_expsyms_CXX
13725
13726# ### END LIBTOOL TAG CONFIG: $tagname
13727
13728__EOF__
13729
13730
13731else
13732 # If there is no Makefile yet, we rely on a make rule to execute
13733 # `config.status --recheck' to rerun these tests and create the
13734 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13736 if test -f "$ltmain_in"; then
13737 test -f Makefile && make "$ltmain"
13738 fi
John Criswell47fdd832003-07-14 16:52:07 +000013739fi
13740
13741
13742ac_ext=c
13743ac_cpp='$CPP $CPPFLAGS'
13744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13746ac_compiler_gnu=$ac_cv_c_compiler_gnu
13747
13748CC=$lt_save_CC
13749LDCXX=$LD
13750LD=$lt_save_LD
13751GCC=$lt_save_GCC
13752with_gnu_ldcxx=$with_gnu_ld
13753with_gnu_ld=$lt_save_with_gnu_ld
13754lt_cv_path_LDCXX=$lt_cv_path_LD
13755lt_cv_path_LD=$lt_save_path_LD
13756lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13757lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13758
13759 else
13760 tagname=""
13761 fi
13762 ;;
13763
13764 F77)
13765 if test -n "$F77" && test "X$F77" != "Xno"; then
13766
13767ac_ext=f
13768ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13769ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13770ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13771
13772
13773archive_cmds_need_lc_F77=no
13774allow_undefined_flag_F77=
13775always_export_symbols_F77=no
13776archive_expsym_cmds_F77=
13777export_dynamic_flag_spec_F77=
13778hardcode_direct_F77=no
13779hardcode_libdir_flag_spec_F77=
13780hardcode_libdir_flag_spec_ld_F77=
13781hardcode_libdir_separator_F77=
13782hardcode_minus_L_F77=no
13783hardcode_automatic_F77=no
13784module_cmds_F77=
13785module_expsym_cmds_F77=
13786link_all_deplibs_F77=unknown
13787old_archive_cmds_F77=$old_archive_cmds
13788no_undefined_flag_F77=
13789whole_archive_flag_spec_F77=
13790enable_shared_with_static_runtimes_F77=no
13791
13792# Source file extension for f77 test sources.
13793ac_ext=f
13794
13795# Object file extension for compiled f77 test sources.
13796objext=o
13797objext_F77=$objext
13798
13799# Code to be used in simple compile tests
13800lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13801
13802# Code to be used in simple link tests
13803lt_simple_link_test_code=" program t\n end\n"
13804
13805# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13806
13807# If no C compiler was specified, use CC.
13808LTCC=${LTCC-"$CC"}
13809
13810# Allow CC to be a program name with arguments.
13811compiler=$CC
13812
13813
13814# Allow CC to be a program name with arguments.
13815lt_save_CC="$CC"
13816CC=${F77-"f77"}
13817compiler=$CC
13818compiler_F77=$CC
13819cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13820
13821echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13822echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13823echo "$as_me:$LINENO: result: $can_build_shared" >&5
13824echo "${ECHO_T}$can_build_shared" >&6
13825
13826echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13827echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13828test "$can_build_shared" = "no" && enable_shared=no
13829
13830# On AIX, shared libraries and static libraries use the same namespace, and
13831# are all built from PIC.
13832case "$host_os" in
13833aix3*)
13834 test "$enable_shared" = yes && enable_static=no
13835 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013836 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000013837 postinstall_cmds='$RANLIB $lib'
13838 fi
13839 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013840aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000013841 test "$enable_shared" = yes && enable_static=no
13842 ;;
13843esac
13844echo "$as_me:$LINENO: result: $enable_shared" >&5
13845echo "${ECHO_T}$enable_shared" >&6
13846
13847echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13848echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13849# Make sure either enable_shared or enable_static is yes.
13850test "$enable_shared" = yes || enable_static=yes
13851echo "$as_me:$LINENO: result: $enable_static" >&5
13852echo "${ECHO_T}$enable_static" >&6
13853
13854test "$ld_shlibs_F77" = no && can_build_shared=no
13855
13856GCC_F77="$G77"
13857LD_F77="$LD"
13858
13859lt_prog_compiler_wl_F77=
13860lt_prog_compiler_pic_F77=
13861lt_prog_compiler_static_F77=
13862
13863echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13864echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13865
13866 if test "$GCC" = yes; then
13867 lt_prog_compiler_wl_F77='-Wl,'
13868 lt_prog_compiler_static_F77='-static'
13869
13870 case $host_os in
13871 aix*)
13872 # All AIX code is PIC.
13873 if test "$host_cpu" = ia64; then
13874 # AIX 5 now supports IA64 processor
13875 lt_prog_compiler_static_F77='-Bstatic'
13876 fi
13877 ;;
13878
13879 amigaos*)
13880 # FIXME: we need at least 68020 code to build shared libraries, but
13881 # adding the `-m68020' flag to GCC prevents building anything better,
13882 # like `-m68040'.
13883 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13884 ;;
13885
13886 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13887 # PIC is the default for these OSes.
13888 ;;
13889
13890 mingw* | pw32* | os2*)
13891 # This hack is so that the source file can tell whether it is being
13892 # built for inclusion in a dll (and should export symbols for example).
13893 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13894 ;;
13895
13896 darwin* | rhapsody*)
13897 # PIC is the default on this platform
13898 # Common symbols not allowed in MH_DYLIB files
13899 lt_prog_compiler_pic_F77='-fno-common'
13900 ;;
13901
13902 msdosdjgpp*)
13903 # Just because we use GCC doesn't mean we suddenly get shared libraries
13904 # on systems that don't support them.
13905 lt_prog_compiler_can_build_shared_F77=no
13906 enable_shared=no
13907 ;;
13908
13909 sysv4*MP*)
13910 if test -d /usr/nec; then
13911 lt_prog_compiler_pic_F77=-Kconform_pic
13912 fi
13913 ;;
13914
13915 hpux*)
13916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13917 # not for PA HP-UX.
13918 case "$host_cpu" in
13919 hppa*64*|ia64*)
13920 # +Z the default
13921 ;;
13922 *)
13923 lt_prog_compiler_pic_F77='-fPIC'
13924 ;;
13925 esac
13926 ;;
13927
13928 *)
13929 lt_prog_compiler_pic_F77='-fPIC'
13930 ;;
13931 esac
13932 else
13933 # PORTME Check for flag to pass linker flags through the system compiler.
13934 case $host_os in
13935 aix*)
13936 lt_prog_compiler_wl_F77='-Wl,'
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_F77='-Bstatic'
13940 else
13941 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13942 fi
13943 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013944 darwin*)
13945 # PIC is the default on this platform
13946 # Common symbols not allowed in MH_DYLIB files
13947 case "$cc_basename" in
13948 xlc*)
13949 lt_prog_compiler_pic_F77='-qnocommon'
13950 lt_prog_compiler_wl_F77='-Wl,'
13951 ;;
13952 esac
13953 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013954
13955 mingw* | pw32* | os2*)
13956 # This hack is so that the source file can tell whether it is being
13957 # built for inclusion in a dll (and should export symbols for example).
13958 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13959 ;;
13960
13961 hpux9* | hpux10* | hpux11*)
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13964 # not for PA HP-UX.
13965 case "$host_cpu" in
13966 hppa*64*|ia64*)
13967 # +Z the default
13968 ;;
13969 *)
13970 lt_prog_compiler_pic_F77='+Z'
13971 ;;
13972 esac
13973 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13974 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13975 ;;
13976
13977 irix5* | irix6* | nonstopux*)
13978 lt_prog_compiler_wl_F77='-Wl,'
13979 # PIC (with -KPIC) is the default.
13980 lt_prog_compiler_static_F77='-non_shared'
13981 ;;
13982
13983 newsos6)
13984 lt_prog_compiler_pic_F77='-KPIC'
13985 lt_prog_compiler_static_F77='-Bstatic'
13986 ;;
13987
13988 linux*)
13989 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013990 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013991 lt_prog_compiler_wl_F77='-Wl,'
13992 lt_prog_compiler_pic_F77='-KPIC'
13993 lt_prog_compiler_static_F77='-static'
13994 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013995 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013996 lt_prog_compiler_wl_F77='-Wl,'
13997 # All Alpha code is PIC.
13998 lt_prog_compiler_static_F77='-non_shared'
13999 ;;
14000 esac
14001 ;;
14002
14003 osf3* | osf4* | osf5*)
14004 lt_prog_compiler_wl_F77='-Wl,'
14005 # All OSF/1 code is PIC.
14006 lt_prog_compiler_static_F77='-non_shared'
14007 ;;
14008
14009 sco3.2v5*)
14010 lt_prog_compiler_pic_F77='-Kpic'
14011 lt_prog_compiler_static_F77='-dn'
14012 ;;
14013
14014 solaris*)
14015 lt_prog_compiler_wl_F77='-Wl,'
14016 lt_prog_compiler_pic_F77='-KPIC'
14017 lt_prog_compiler_static_F77='-Bstatic'
14018 ;;
14019
14020 sunos4*)
14021 lt_prog_compiler_wl_F77='-Qoption ld '
14022 lt_prog_compiler_pic_F77='-PIC'
14023 lt_prog_compiler_static_F77='-Bstatic'
14024 ;;
14025
14026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14027 lt_prog_compiler_wl_F77='-Wl,'
14028 lt_prog_compiler_pic_F77='-KPIC'
14029 lt_prog_compiler_static_F77='-Bstatic'
14030 ;;
14031
14032 sysv4*MP*)
14033 if test -d /usr/nec ;then
14034 lt_prog_compiler_pic_F77='-Kconform_pic'
14035 lt_prog_compiler_static_F77='-Bstatic'
14036 fi
14037 ;;
14038
14039 uts4*)
14040 lt_prog_compiler_pic_F77='-pic'
14041 lt_prog_compiler_static_F77='-Bstatic'
14042 ;;
14043
14044 *)
14045 lt_prog_compiler_can_build_shared_F77=no
14046 ;;
14047 esac
14048 fi
14049
14050echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14051echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14052
14053#
14054# Check to make sure the PIC flag actually works.
14055#
14056if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014057
14058echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014059echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14060if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 lt_prog_compiler_pic_works_F77=no
14064 ac_outfile=conftest.$ac_objext
14065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14066 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14067 # Insert the option either (1) after the last *FLAGS variable, or
14068 # (2) before a word containing "conftest.", or (3) at the end.
14069 # Note that $ac_compile itself does not contain backslashes and begins
14070 # with a dollar sign (not a hyphen), so the echo should work correctly.
14071 # The option is referenced via a variable to avoid confusing sed.
14072 lt_compile=`echo "$ac_compile" | $SED \
14073 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14075 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000014076 (eval echo "\"\$as_me:14076: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014077 (eval "$lt_compile" 2>conftest.err)
14078 ac_status=$?
14079 cat conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000014080 echo "$as_me:14080: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014081 if (exit $ac_status) && test -s "$ac_outfile"; then
14082 # The compiler can only warn and ignore the option if not recognized
14083 # So say no if there are warnings
14084 if test ! -s conftest.err; then
14085 lt_prog_compiler_pic_works_F77=yes
14086 fi
14087 fi
14088 $rm conftest*
14089
14090fi
14091echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14092echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14093
14094if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14095 case $lt_prog_compiler_pic_F77 in
14096 "" | " "*) ;;
14097 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14098 esac
14099else
14100 lt_prog_compiler_pic_F77=
14101 lt_prog_compiler_can_build_shared_F77=no
14102fi
14103
14104fi
14105case "$host_os" in
14106 # For platforms which do not support PIC, -DPIC is meaningless:
14107 *djgpp*)
14108 lt_prog_compiler_pic_F77=
14109 ;;
14110 *)
14111 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14112 ;;
14113esac
14114
14115echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14116echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14117if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119else
14120 lt_cv_prog_compiler_c_o_F77=no
14121 $rm -r conftest 2>/dev/null
14122 mkdir conftest
14123 cd conftest
14124 mkdir out
14125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14126
John Criswell47fdd832003-07-14 16:52:07 +000014127 lt_compiler_flag="-o out/conftest2.$ac_objext"
14128 # Insert the option either (1) after the last *FLAGS variable, or
14129 # (2) before a word containing "conftest.", or (3) at the end.
14130 # Note that $ac_compile itself does not contain backslashes and begins
14131 # with a dollar sign (not a hyphen), so the echo should work correctly.
14132 lt_compile=`echo "$ac_compile" | $SED \
14133 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14135 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000014136 (eval echo "\"\$as_me:14136: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014137 (eval "$lt_compile" 2>out/conftest.err)
14138 ac_status=$?
14139 cat out/conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000014140 echo "$as_me:14140: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014141 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14142 then
14143 # The compiler can only warn and ignore the option if not recognized
14144 # So say no if there are warnings
14145 if test ! -s out/conftest.err; then
14146 lt_cv_prog_compiler_c_o_F77=yes
14147 fi
14148 fi
14149 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000014150 $rm conftest*
14151 # SGI C++ compiler will create directory out/ii_files/ for
14152 # template instantiation
14153 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14154 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014155 cd ..
14156 rmdir conftest
14157 $rm conftest*
14158
14159fi
14160echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14161echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14162
14163
14164hard_links="nottested"
14165if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14166 # do not overwrite the value of need_locks provided by the user
14167 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14168echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14169 hard_links=yes
14170 $rm conftest*
14171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14172 touch conftest.a
14173 ln conftest.a conftest.b 2>&5 || hard_links=no
14174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14175 echo "$as_me:$LINENO: result: $hard_links" >&5
14176echo "${ECHO_T}$hard_links" >&6
14177 if test "$hard_links" = no; then
14178 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14179echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14180 need_locks=warn
14181 fi
14182else
14183 need_locks=no
14184fi
14185
14186echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14187echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14188
14189 runpath_var=
14190 allow_undefined_flag_F77=
14191 enable_shared_with_static_runtimes_F77=no
14192 archive_cmds_F77=
14193 archive_expsym_cmds_F77=
14194 old_archive_From_new_cmds_F77=
14195 old_archive_from_expsyms_cmds_F77=
14196 export_dynamic_flag_spec_F77=
14197 whole_archive_flag_spec_F77=
14198 thread_safe_flag_spec_F77=
14199 hardcode_libdir_flag_spec_F77=
14200 hardcode_libdir_flag_spec_ld_F77=
14201 hardcode_libdir_separator_F77=
14202 hardcode_direct_F77=no
14203 hardcode_minus_L_F77=no
14204 hardcode_shlibpath_var_F77=unsupported
14205 link_all_deplibs_F77=unknown
14206 hardcode_automatic_F77=no
14207 module_cmds_F77=
14208 module_expsym_cmds_F77=
14209 always_export_symbols_F77=no
14210 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14211 # include_expsyms should be a list of space-separated symbols to be *always*
14212 # included in the symbol list
14213 include_expsyms_F77=
14214 # exclude_expsyms can be an extended regexp of symbols to exclude
14215 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14216 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14217 # as well as any symbol that contains `d'.
14218 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14219 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14220 # platforms (ab)use it in PIC code, but their linkers get confused if
14221 # the symbol is explicitly referenced. Since portable code cannot
14222 # rely on this symbol name, it's probably fine to never include it in
14223 # preloaded symbol tables.
14224 extract_expsyms_cmds=
14225
14226 case $host_os in
14227 cygwin* | mingw* | pw32*)
14228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14229 # When not using gcc, we currently assume that we are using
14230 # Microsoft Visual C++.
14231 if test "$GCC" != yes; then
14232 with_gnu_ld=no
14233 fi
14234 ;;
14235 openbsd*)
14236 with_gnu_ld=no
14237 ;;
14238 esac
14239
14240 ld_shlibs_F77=yes
14241 if test "$with_gnu_ld" = yes; then
14242 # If archive_cmds runs LD, not CC, wlarc should be empty
14243 wlarc='${wl}'
14244
14245 # See if GNU ld supports shared libraries.
14246 case $host_os in
14247 aix3* | aix4* | aix5*)
14248 # On AIX/PPC, the GNU linker is very broken
14249 if test "$host_cpu" != ia64; then
14250 ld_shlibs_F77=no
14251 cat <<EOF 1>&2
14252
14253*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14254*** to be unable to reliably create shared libraries on AIX.
14255*** Therefore, libtool is disabling shared libraries support. If you
14256*** really care for shared libraries, you may want to modify your PATH
14257*** so that a non-GNU linker is found, and then restart.
14258
14259EOF
14260 fi
14261 ;;
14262
14263 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014264 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 +000014265 hardcode_libdir_flag_spec_F77='-L$libdir'
14266 hardcode_minus_L_F77=yes
14267
14268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14269 # that the semantics of dynamic libraries on AmigaOS, at least up
14270 # to version 4, is to share data among multiple programs linked
14271 # with the same dynamic library. Since this doesn't match the
14272 # behavior of shared libraries on other platforms, we can't use
14273 # them.
14274 ld_shlibs_F77=no
14275 ;;
14276
14277 beos*)
14278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14279 allow_undefined_flag_F77=unsupported
14280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14281 # support --undefined. This deserves some investigation. FIXME
14282 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14283 else
14284 ld_shlibs_F77=no
14285 fi
14286 ;;
14287
14288 cygwin* | mingw* | pw32*)
14289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14290 # as there is no search path for DLLs.
14291 hardcode_libdir_flag_spec_F77='-L$libdir'
14292 allow_undefined_flag_F77=unsupported
14293 always_export_symbols_F77=no
14294 enable_shared_with_static_runtimes_F77=yes
14295 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14296
14297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14299 # If the export-symbols file already is a .def file (1st line
14300 # is EXPORTS), use it as is; otherwise, prepend...
14301 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14302 cp $export_symbols $output_objdir/$soname.def;
14303 else
14304 echo EXPORTS > $output_objdir/$soname.def;
14305 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014306 fi~
14307 $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 +000014308 else
14309 ld_shlibs=no
14310 fi
14311 ;;
14312
14313 netbsd*)
14314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14315 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14316 wlarc=
14317 else
14318 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14320 fi
14321 ;;
14322
14323 solaris* | sysv5*)
14324 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14325 ld_shlibs_F77=no
14326 cat <<EOF 1>&2
14327
14328*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14329*** create shared libraries on Solaris systems. Therefore, libtool
14330*** is disabling shared libraries support. We urge you to upgrade GNU
14331*** binutils to release 2.9.1 or newer. Another option is to modify
14332*** your PATH or compiler configuration so that the native linker is
14333*** used, and then restart.
14334
14335EOF
14336 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14339 else
14340 ld_shlibs_F77=no
14341 fi
14342 ;;
14343
14344 sunos4*)
14345 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346 wlarc=
14347 hardcode_direct_F77=yes
14348 hardcode_shlibpath_var_F77=no
14349 ;;
14350
Reid Spencer2706f8c2004-09-19 23:53:36 +000014351 linux*)
14352 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354 archive_cmds_F77="$tmp_archive_cmds"
14355 supports_anon_versioning=no
14356 case `$LD -v 2>/dev/null` in
14357 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14360 *\ 2.11.*) ;; # other 2.11 versions
14361 *) supports_anon_versioning=yes ;;
14362 esac
14363 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014364 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14365cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14366$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000014367 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14368 else
14369 archive_expsym_cmds_F77="$tmp_archive_cmds"
14370 fi
14371 else
14372 ld_shlibs_F77=no
14373 fi
14374 ;;
14375
John Criswell47fdd832003-07-14 16:52:07 +000014376 *)
14377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14382 fi
14383 ;;
14384 esac
14385
14386 if test "$ld_shlibs_F77" = yes; then
14387 runpath_var=LD_RUN_PATH
14388 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14389 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14390 # ancient GNU ld didn't support --whole-archive et. al.
14391 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14392 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14393 else
14394 whole_archive_flag_spec_F77=
14395 fi
14396 fi
14397 else
14398 # PORTME fill in a description of your system's linker (not GNU ld)
14399 case $host_os in
14400 aix3*)
14401 allow_undefined_flag_F77=unsupported
14402 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014403 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 +000014404 # Note: this linker hardcodes the directories in LIBPATH if there
14405 # are no directories specified by -L.
14406 hardcode_minus_L_F77=yes
14407 if test "$GCC" = yes && test -z "$link_static_flag"; then
14408 # Neither direct hardcoding nor static linking is supported with a
14409 # broken collect2.
14410 hardcode_direct_F77=unsupported
14411 fi
14412 ;;
14413
14414 aix4* | aix5*)
14415 if test "$host_cpu" = ia64; then
14416 # On IA64, the linker does run time linking by default, so we don't
14417 # have to do anything special.
14418 aix_use_runtimelinking=no
14419 exp_sym_flag='-Bexport'
14420 no_entry_flag=""
14421 else
14422 # If we're using GNU nm, then we don't want the "-C" option.
14423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14424 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14425 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'
14426 else
14427 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'
14428 fi
14429 aix_use_runtimelinking=no
14430
14431 # Test if we are trying to use run time linking or normal
14432 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14433 # need to do runtime linking.
14434 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14435 for ld_flag in $LDFLAGS; do
14436 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14437 aix_use_runtimelinking=yes
14438 break
14439 fi
14440 done
14441 esac
14442
14443 exp_sym_flag='-bexport'
14444 no_entry_flag='-bnoentry'
14445 fi
14446
14447 # When large executables or shared objects are built, AIX ld can
14448 # have problems creating the table of contents. If linking a library
14449 # or program results in "error TOC overflow" add -mminimal-toc to
14450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14452
14453 archive_cmds_F77=''
14454 hardcode_direct_F77=yes
14455 hardcode_libdir_separator_F77=':'
14456 link_all_deplibs_F77=yes
14457
14458 if test "$GCC" = yes; then
14459 case $host_os in aix4.012|aix4.012.*)
14460 # We only want to do this on AIX 4.2 and lower, the check
14461 # below for broken collect2 doesn't work under 4.3+
14462 collect2name=`${CC} -print-prog-name=collect2`
14463 if test -f "$collect2name" && \
14464 strings "$collect2name" | grep resolve_lib_name >/dev/null
14465 then
14466 # We have reworked collect2
14467 hardcode_direct_F77=yes
14468 else
14469 # We have old collect2
14470 hardcode_direct_F77=unsupported
14471 # It fails to find uninstalled libraries when the uninstalled
14472 # path is not listed in the libpath. Setting hardcode_minus_L
14473 # to unsupported forces relinking
14474 hardcode_minus_L_F77=yes
14475 hardcode_libdir_flag_spec_F77='-L$libdir'
14476 hardcode_libdir_separator_F77=
14477 fi
14478 esac
14479 shared_flag='-shared'
14480 else
14481 # not using gcc
14482 if test "$host_cpu" = ia64; then
14483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14484 # chokes on -Wl,-G. The following line is correct:
14485 shared_flag='-G'
14486 else
14487 if test "$aix_use_runtimelinking" = yes; then
14488 shared_flag='${wl}-G'
14489 else
14490 shared_flag='${wl}-bM:SRE'
14491 fi
14492 fi
14493 fi
14494
14495 # It seems that -bexpall does not export symbols beginning with
14496 # underscore (_), so it is better to generate a list of symbols to export.
14497 always_export_symbols_F77=yes
14498 if test "$aix_use_runtimelinking" = yes; then
14499 # Warning - without using the other runtime loading flags (-brtl),
14500 # -berok will link without error, but may produce a broken library.
14501 allow_undefined_flag_F77='-berok'
14502 # Determine the default libpath from the value encoded in an empty executable.
14503 cat >conftest.$ac_ext <<_ACEOF
14504 program main
14505
14506 end
14507_ACEOF
14508rm -f conftest.$ac_objext conftest$ac_exeext
14509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014510 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014511 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014517 { ac_try='test -z "$ac_f77_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530
14531aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14532}'`
14533# Check for a 64-bit object if we didn't find anything.
14534if 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; }
14535}'`; fi
14536else
14537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014538sed 's/^/| /' conftest.$ac_ext >&5
14539
John Criswell47fdd832003-07-14 16:52:07 +000014540fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014541rm -f conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14544
14545 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14546 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"
14547 else
14548 if test "$host_cpu" = ia64; then
14549 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14550 allow_undefined_flag_F77="-z nodefs"
14551 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"
14552 else
14553 # Determine the default libpath from the value encoded in an empty executable.
14554 cat >conftest.$ac_ext <<_ACEOF
14555 program main
14556
14557 end
14558_ACEOF
14559rm -f conftest.$ac_objext conftest$ac_exeext
14560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014561 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000014562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000014566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014568 { ac_try='test -z "$ac_f77_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000014576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581
14582aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14583}'`
14584# Check for a 64-bit object if we didn't find anything.
14585if 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; }
14586}'`; fi
14587else
14588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014589sed 's/^/| /' conftest.$ac_ext >&5
14590
John Criswell47fdd832003-07-14 16:52:07 +000014591fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014592rm -f conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000014594if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14595
14596 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14597 # Warning - without using the other run time loading flags,
14598 # -berok will link without error, but may produce a broken library.
14599 no_undefined_flag_F77=' ${wl}-bernotok'
14600 allow_undefined_flag_F77=' ${wl}-berok'
14601 # -bexpall does not export symbols beginning with underscore (_)
14602 always_export_symbols_F77=yes
14603 # Exported symbols can be pulled into shared objects from archives
14604 whole_archive_flag_spec_F77=' '
14605 archive_cmds_need_lc_F77=yes
14606 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000014607 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 +000014608 fi
14609 fi
14610 ;;
14611
14612 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014613 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 +000014614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_minus_L_F77=yes
14616 # see comment about different semantics on the GNU ld section
14617 ld_shlibs_F77=no
14618 ;;
14619
Reid Spencer2706f8c2004-09-19 23:53:36 +000014620 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014621 export_dynamic_flag_spec_F77=-rdynamic
14622 ;;
14623
14624 cygwin* | mingw* | pw32*)
14625 # When not using gcc, we currently assume that we are using
14626 # Microsoft Visual C++.
14627 # hardcode_libdir_flag_spec is actually meaningless, as there is
14628 # no search path for DLLs.
14629 hardcode_libdir_flag_spec_F77=' '
14630 allow_undefined_flag_F77=unsupported
14631 # Tell ltmain to make .lib files, not .a files.
14632 libext=lib
14633 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014634 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014635 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000014636 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 +000014637 # The linker will automatically build a .lib file if we build a DLL.
14638 old_archive_From_new_cmds_F77='true'
14639 # FIXME: Should let the user specify the lib program.
14640 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14641 fix_srcfile_path='`cygpath -w "$srcfile"`'
14642 enable_shared_with_static_runtimes_F77=yes
14643 ;;
14644
14645 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000014646 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014647 rhapsody* | darwin1.[012])
14648 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14649 ;;
14650 *) # Darwin 1.3 on
14651 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14652 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14653 else
14654 case ${MACOSX_DEPLOYMENT_TARGET} in
14655 10.[012])
14656 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14657 ;;
14658 10.*)
14659 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14660 ;;
14661 esac
14662 fi
14663 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014664 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000014665 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000014666 hardcode_direct_F77=no
14667 hardcode_automatic_F77=yes
14668 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014669 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000014670 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000014671 if test "$GCC" = yes ; then
14672 output_verbose_link_cmd='echo'
14673 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14674 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14675 # 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 +000014676 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}'
14677 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 +000014678 else
14679 case "$cc_basename" in
14680 xlc*)
14681 output_verbose_link_cmd='echo'
14682 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14683 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14684 # 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 +000014685 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}'
14686 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 +000014687 ;;
14688 *)
14689 ld_shlibs_F77=no
14690 ;;
14691 esac
John Criswell47fdd832003-07-14 16:52:07 +000014692 fi
14693 ;;
14694
14695 dgux*)
14696 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697 hardcode_libdir_flag_spec_F77='-L$libdir'
14698 hardcode_shlibpath_var_F77=no
14699 ;;
14700
14701 freebsd1*)
14702 ld_shlibs_F77=no
14703 ;;
14704
14705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14706 # support. Future versions do this automatically, but an explicit c++rt0.o
14707 # does not break anything, and helps significantly (at the cost of a little
14708 # extra space).
14709 freebsd2.2*)
14710 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14711 hardcode_libdir_flag_spec_F77='-R$libdir'
14712 hardcode_direct_F77=yes
14713 hardcode_shlibpath_var_F77=no
14714 ;;
14715
14716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14717 freebsd2*)
14718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14719 hardcode_direct_F77=yes
14720 hardcode_minus_L_F77=yes
14721 hardcode_shlibpath_var_F77=no
14722 ;;
14723
14724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014725 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000014726 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14727 hardcode_libdir_flag_spec_F77='-R$libdir'
14728 hardcode_direct_F77=yes
14729 hardcode_shlibpath_var_F77=no
14730 ;;
14731
14732 hpux9*)
14733 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014734 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 +000014735 else
Reid Spencer177dbe22004-10-13 01:01:03 +000014736 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 +000014737 fi
14738 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14739 hardcode_libdir_separator_F77=:
14740 hardcode_direct_F77=yes
14741
14742 # hardcode_minus_L: Not really in the search PATH,
14743 # but as the default location of the library.
14744 hardcode_minus_L_F77=yes
14745 export_dynamic_flag_spec_F77='${wl}-E'
14746 ;;
14747
14748 hpux10* | hpux11*)
14749 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14750 case "$host_cpu" in
14751 hppa*64*|ia64*)
14752 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14753 ;;
14754 *)
14755 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14756 ;;
14757 esac
14758 else
14759 case "$host_cpu" in
14760 hppa*64*|ia64*)
14761 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14762 ;;
14763 *)
14764 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14765 ;;
14766 esac
14767 fi
14768 if test "$with_gnu_ld" = no; then
14769 case "$host_cpu" in
14770 hppa*64*)
14771 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14772 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14773 hardcode_libdir_separator_F77=:
14774 hardcode_direct_F77=no
14775 hardcode_shlibpath_var_F77=no
14776 ;;
14777 ia64*)
14778 hardcode_libdir_flag_spec_F77='-L$libdir'
14779 hardcode_direct_F77=no
14780 hardcode_shlibpath_var_F77=no
14781
14782 # hardcode_minus_L: Not really in the search PATH,
14783 # but as the default location of the library.
14784 hardcode_minus_L_F77=yes
14785 ;;
14786 *)
14787 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14788 hardcode_libdir_separator_F77=:
14789 hardcode_direct_F77=yes
14790 export_dynamic_flag_spec_F77='${wl}-E'
14791
14792 # hardcode_minus_L: Not really in the search PATH,
14793 # but as the default location of the library.
14794 hardcode_minus_L_F77=yes
14795 ;;
14796 esac
14797 fi
14798 ;;
14799
14800 irix5* | irix6* | nonstopux*)
14801 if test "$GCC" = yes; then
14802 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'
14803 else
14804 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'
14805 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14806 fi
14807 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14808 hardcode_libdir_separator_F77=:
14809 link_all_deplibs_F77=yes
14810 ;;
14811
14812 netbsd*)
14813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14815 else
14816 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14817 fi
14818 hardcode_libdir_flag_spec_F77='-R$libdir'
14819 hardcode_direct_F77=yes
14820 hardcode_shlibpath_var_F77=no
14821 ;;
14822
14823 newsos6)
14824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14825 hardcode_direct_F77=yes
14826 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14827 hardcode_libdir_separator_F77=:
14828 hardcode_shlibpath_var_F77=no
14829 ;;
14830
14831 openbsd*)
14832 hardcode_direct_F77=yes
14833 hardcode_shlibpath_var_F77=no
14834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14835 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014836 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 +000014837 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14838 export_dynamic_flag_spec_F77='${wl}-E'
14839 else
14840 case $host_os in
14841 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14842 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14843 hardcode_libdir_flag_spec_F77='-R$libdir'
14844 ;;
14845 *)
14846 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14847 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14848 ;;
14849 esac
14850 fi
14851 ;;
14852
14853 os2*)
14854 hardcode_libdir_flag_spec_F77='-L$libdir'
14855 hardcode_minus_L_F77=yes
14856 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014857 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 +000014858 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14859 ;;
14860
14861 osf3*)
14862 if test "$GCC" = yes; then
14863 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14864 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'
14865 else
14866 allow_undefined_flag_F77=' -expect_unresolved \*'
14867 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'
14868 fi
14869 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14870 hardcode_libdir_separator_F77=:
14871 ;;
14872
14873 osf4* | osf5*) # as osf3* with the addition of -msym flag
14874 if test "$GCC" = yes; then
14875 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14876 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'
14877 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14878 else
14879 allow_undefined_flag_F77=' -expect_unresolved \*'
14880 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 +000014881 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~
14882 $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'
14883
John Criswell47fdd832003-07-14 16:52:07 +000014884 # Both c and cxx compiler support -rpath directly
14885 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14886 fi
14887 hardcode_libdir_separator_F77=:
14888 ;;
14889
14890 sco3.2v5*)
14891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14892 hardcode_shlibpath_var_F77=no
14893 export_dynamic_flag_spec_F77='${wl}-Bexport'
14894 runpath_var=LD_RUN_PATH
14895 hardcode_runpath_var=yes
14896 ;;
14897
14898 solaris*)
14899 no_undefined_flag_F77=' -z text'
14900 if test "$GCC" = yes; then
14901 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014902 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14903 $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 +000014904 else
14905 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014906 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14907 $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 +000014908 fi
14909 hardcode_libdir_flag_spec_F77='-R$libdir'
14910 hardcode_shlibpath_var_F77=no
14911 case $host_os in
14912 solaris2.[0-5] | solaris2.[0-5].*) ;;
14913 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14914 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14915 esac
14916 link_all_deplibs_F77=yes
14917 ;;
14918
14919 sunos4*)
14920 if test "x$host_vendor" = xsequent; then
14921 # Use $CC to link under sequent, because it throws in some extra .o
14922 # files that make .init and .fini sections work.
14923 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14924 else
14925 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14926 fi
14927 hardcode_libdir_flag_spec_F77='-L$libdir'
14928 hardcode_direct_F77=yes
14929 hardcode_minus_L_F77=yes
14930 hardcode_shlibpath_var_F77=no
14931 ;;
14932
14933 sysv4)
14934 case $host_vendor in
14935 sni)
14936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14937 hardcode_direct_F77=yes # is this really true???
14938 ;;
14939 siemens)
14940 ## LD is ld it makes a PLAMLIB
14941 ## CC just makes a GrossModule.
14942 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14943 reload_cmds_F77='$CC -r -o $output$reload_objs'
14944 hardcode_direct_F77=no
14945 ;;
14946 motorola)
14947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14949 ;;
14950 esac
14951 runpath_var='LD_RUN_PATH'
14952 hardcode_shlibpath_var_F77=no
14953 ;;
14954
14955 sysv4.3*)
14956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957 hardcode_shlibpath_var_F77=no
14958 export_dynamic_flag_spec_F77='-Bexport'
14959 ;;
14960
14961 sysv4*MP*)
14962 if test -d /usr/nec; then
14963 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14964 hardcode_shlibpath_var_F77=no
14965 runpath_var=LD_RUN_PATH
14966 hardcode_runpath_var=yes
14967 ld_shlibs_F77=yes
14968 fi
14969 ;;
14970
14971 sysv4.2uw2*)
14972 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14973 hardcode_direct_F77=yes
14974 hardcode_minus_L_F77=no
14975 hardcode_shlibpath_var_F77=no
14976 hardcode_runpath_var=yes
14977 runpath_var=LD_RUN_PATH
14978 ;;
14979
14980 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14981 no_undefined_flag_F77='${wl}-z ${wl}text'
14982 if test "$GCC" = yes; then
14983 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 else
14985 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 fi
14987 runpath_var='LD_RUN_PATH'
14988 hardcode_shlibpath_var_F77=no
14989 ;;
14990
14991 sysv5*)
14992 no_undefined_flag_F77=' -z text'
14993 # $CC -shared without GNU ld will not create a library from C++
14994 # object files and a static libstdc++, better avoid it by now
14995 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014996 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14997 $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 +000014998 hardcode_libdir_flag_spec_F77=
14999 hardcode_shlibpath_var_F77=no
15000 runpath_var='LD_RUN_PATH'
15001 ;;
15002
15003 uts4*)
15004 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 hardcode_libdir_flag_spec_F77='-L$libdir'
15006 hardcode_shlibpath_var_F77=no
15007 ;;
15008
15009 *)
15010 ld_shlibs_F77=no
15011 ;;
15012 esac
15013 fi
15014
15015echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15016echo "${ECHO_T}$ld_shlibs_F77" >&6
15017test "$ld_shlibs_F77" = no && can_build_shared=no
15018
15019variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15020if test "$GCC" = yes; then
15021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15022fi
15023
15024#
15025# Do we need to explicitly link libc?
15026#
15027case "x$archive_cmds_need_lc_F77" in
15028x|xyes)
15029 # Assume -lc should be added
15030 archive_cmds_need_lc_F77=yes
15031
15032 if test "$enable_shared" = yes && test "$GCC" = yes; then
15033 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015034 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015035 # FIXME: we may have to deal with multi-command sequences.
15036 ;;
15037 '$CC '*)
15038 # Test whether the compiler implicitly links with -lc since on some
15039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15040 # to ld, don't add -lc before -lgcc.
15041 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15042echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15043 $rm conftest*
15044 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15045
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } 2>conftest.err; then
15051 soname=conftest
15052 lib=conftest
15053 libobjs=conftest.$ac_objext
15054 deplibs=
15055 wl=$lt_prog_compiler_wl_F77
15056 compiler_flags=-v
15057 linker_flags=-v
15058 verstring=
15059 output_objdir=.
15060 libname=conftest
15061 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15062 allow_undefined_flag_F77=
15063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15064 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }
15068 then
15069 archive_cmds_need_lc_F77=no
15070 else
15071 archive_cmds_need_lc_F77=yes
15072 fi
15073 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15074 else
15075 cat conftest.err 1>&5
15076 fi
15077 $rm conftest*
15078 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15079echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15080 ;;
15081 esac
15082 fi
15083 ;;
15084esac
15085
John Criswell47fdd832003-07-14 16:52:07 +000015086echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15087echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15088library_names_spec=
15089libname_spec='lib$name'
15090soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015091shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000015092postinstall_cmds=
15093postuninstall_cmds=
15094finish_cmds=
15095finish_eval=
15096shlibpath_var=
15097shlibpath_overrides_runpath=unknown
15098version_type=none
15099dynamic_linker="$host_os ld.so"
15100sys_lib_dlsearch_path_spec="/lib /usr/lib"
15101if test "$GCC" = yes; then
15102 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15103 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15104 # if the path contains ";" then we assume it to be the separator
15105 # otherwise default to the standard path separator (i.e. ":") - it is
15106 # assumed that no part of a normal pathname contains ";" but that should
15107 # okay in the real world where ";" in dirpaths is itself problematic.
15108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15109 else
15110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15111 fi
15112else
15113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15114fi
15115need_lib_prefix=unknown
15116hardcode_into_libs=no
15117
15118# when you set need_version to no, make sure it does not cause -set_version
15119# flags to be left without arguments
15120need_version=unknown
15121
15122case $host_os in
15123aix3*)
15124 version_type=linux
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15126 shlibpath_var=LIBPATH
15127
15128 # AIX 3 has no versioning support, so we append a major version to the name.
15129 soname_spec='${libname}${release}${shared_ext}$major'
15130 ;;
15131
15132aix4* | aix5*)
15133 version_type=linux
15134 need_lib_prefix=no
15135 need_version=no
15136 hardcode_into_libs=yes
15137 if test "$host_cpu" = ia64; then
15138 # AIX 5 supports IA64
15139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 else
15142 # With GCC up to 2.95.x, collect2 would create an import file
15143 # for dependence libraries. The import file would start with
15144 # the line `#! .'. This would cause the generated library to
15145 # depend on `.', always an invalid library. This was fixed in
15146 # development snapshots of GCC prior to 3.0.
15147 case $host_os in
15148 aix4 | aix4.[01] | aix4.[01].*)
15149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15150 echo ' yes '
15151 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15152 :
15153 else
15154 can_build_shared=no
15155 fi
15156 ;;
15157 esac
15158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15159 # soname into executable. Probably we can add versioning support to
15160 # collect2, so additional links can be useful in future.
15161 if test "$aix_use_runtimelinking" = yes; then
15162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15163 # instead of lib<name>.a to let people know that these are not
15164 # typical AIX shared libraries.
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 else
15167 # We preserve .a as extension for shared libraries through AIX4.2
15168 # and later when we are not doing run time linking.
15169 library_names_spec='${libname}${release}.a $libname.a'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 fi
15172 shlibpath_var=LIBPATH
15173 fi
15174 ;;
15175
15176amigaos*)
15177 library_names_spec='$libname.ixlibrary $libname.a'
15178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015179 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 +000015180 ;;
15181
15182beos*)
15183 library_names_spec='${libname}${shared_ext}'
15184 dynamic_linker="$host_os ld.so"
15185 shlibpath_var=LIBRARY_PATH
15186 ;;
15187
Reid Spencer2706f8c2004-09-19 23:53:36 +000015188bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015189 version_type=linux
15190 need_version=no
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15197 # the default ld.so.conf also contains /usr/contrib/lib and
15198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15199 # libtool to hard-code these into programs
15200 ;;
15201
15202cygwin* | mingw* | pw32*)
15203 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015204 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015205 need_version=no
15206 need_lib_prefix=no
15207
15208 case $GCC,$host_os in
15209 yes,cygwin* | yes,mingw* | yes,pw32*)
15210 library_names_spec='$libname.dll.a'
15211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015212 postinstall_cmds='base_file=`basename \${file}`~
15213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15214 dldir=$destdir/`dirname \$dlpath`~
15215 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000015216 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15218 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000015219 $rm \$dlpath'
15220 shlibpath_overrides_runpath=yes
15221
15222 case $host_os in
15223 cygwin*)
15224 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15225 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 +000015226 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015227 ;;
15228 mingw*)
15229 # MinGW DLLs use traditional 'lib' prefix
15230 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15232 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15233 # It is most probably a Windows format PATH printed by
15234 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15235 # path with ; separators, and with drive letters. We can handle the
15236 # drive letters (cygwin fileutils understands them), so leave them,
15237 # especially as we might pass files found there to a mingw objdump,
15238 # which wouldn't understand a cygwinified path. Ahh.
15239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15240 else
15241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15242 fi
15243 ;;
15244 pw32*)
15245 # pw32 DLLs use 'pw' prefix rather than 'lib'
15246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15247 ;;
15248 esac
15249 ;;
15250
15251 *)
15252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15253 ;;
15254 esac
15255 dynamic_linker='Win32 ld.exe'
15256 # FIXME: first we should search . and the directory the executable is in
15257 shlibpath_var=PATH
15258 ;;
15259
15260darwin* | rhapsody*)
15261 dynamic_linker="$host_os dyld"
15262 version_type=darwin
15263 need_lib_prefix=no
15264 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015265 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015266 soname_spec='${libname}${release}${major}$shared_ext'
15267 shlibpath_overrides_runpath=yes
15268 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000015269 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000015270 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015271 if test "$GCC" = yes; then
15272 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"`
15273 else
15274 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015275 fi
15276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15277 ;;
15278
15279dgux*)
15280 version_type=linux
15281 need_lib_prefix=no
15282 need_version=no
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 ;;
15287
15288freebsd1*)
15289 dynamic_linker=no
15290 ;;
15291
Reid Spencer2706f8c2004-09-19 23:53:36 +000015292kfreebsd*-gnu)
15293 version_type=linux
15294 need_lib_prefix=no
15295 need_version=no
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 shlibpath_overrides_runpath=no
15300 hardcode_into_libs=yes
15301 dynamic_linker='GNU ld.so'
15302 ;;
15303
John Criswell47fdd832003-07-14 16:52:07 +000015304freebsd*)
15305 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15306 version_type=freebsd-$objformat
15307 case $version_type in
15308 freebsd-elf*)
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15310 need_version=no
15311 need_lib_prefix=no
15312 ;;
15313 freebsd-*)
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15315 need_version=yes
15316 ;;
15317 esac
15318 shlibpath_var=LD_LIBRARY_PATH
15319 case $host_os in
15320 freebsd2*)
15321 shlibpath_overrides_runpath=yes
15322 ;;
15323 freebsd3.01* | freebsdelf3.01*)
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 ;;
15327 *) # from 3.2 on
15328 shlibpath_overrides_runpath=no
15329 hardcode_into_libs=yes
15330 ;;
15331 esac
15332 ;;
15333
15334gnu*)
15335 version_type=linux
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 hardcode_into_libs=yes
15342 ;;
15343
15344hpux9* | hpux10* | hpux11*)
15345 # Give a soname corresponding to the major version so that dld.sl refuses to
15346 # link against other versions.
15347 version_type=sunos
15348 need_lib_prefix=no
15349 need_version=no
15350 case "$host_cpu" in
15351 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015352 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015353 hardcode_into_libs=yes
15354 dynamic_linker="$host_os dld.so"
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 if test "X$HPUX_IA64_MODE" = X32; then
15360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15361 else
15362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15363 fi
15364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15365 ;;
15366 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015367 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015368 hardcode_into_libs=yes
15369 dynamic_linker="$host_os dld.sl"
15370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15376 ;;
15377 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015378 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015379 dynamic_linker="$host_os dld.sl"
15380 shlibpath_var=SHLIB_PATH
15381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 ;;
15385 esac
15386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15387 postinstall_cmds='chmod 555 $lib'
15388 ;;
15389
15390irix5* | irix6* | nonstopux*)
15391 case $host_os in
15392 nonstopux*) version_type=nonstopux ;;
15393 *)
15394 if test "$lt_cv_prog_gnu_ld" = yes; then
15395 version_type=linux
15396 else
15397 version_type=irix
15398 fi ;;
15399 esac
15400 need_lib_prefix=no
15401 need_version=no
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15404 case $host_os in
15405 irix5* | nonstopux*)
15406 libsuff= shlibsuff=
15407 ;;
15408 *)
15409 case $LD in # libtool.m4 will add one of these switches to LD
15410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15411 libsuff= shlibsuff= libmagic=32-bit;;
15412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15413 libsuff=32 shlibsuff=N32 libmagic=N32;;
15414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15416 *) libsuff= shlibsuff= libmagic=never-match;;
15417 esac
15418 ;;
15419 esac
15420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15421 shlibpath_overrides_runpath=no
15422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15424 hardcode_into_libs=yes
15425 ;;
15426
15427# No shared lib support for Linux oldld, aout, or coff.
15428linux*oldld* | linux*aout* | linux*coff*)
15429 dynamic_linker=no
15430 ;;
15431
15432# This must be Linux ELF.
15433linux*)
15434 version_type=linux
15435 need_lib_prefix=no
15436 need_version=no
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 # This implies no fast_install, which is unacceptable.
15443 # Some rework will be needed to allow for fast_install
15444 # before this can be enabled.
15445 hardcode_into_libs=yes
15446
Reid Spencer2706f8c2004-09-19 23:53:36 +000015447 # Append ld.so.conf contents to the search path
15448 if test -f /etc/ld.so.conf; then
15449 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15450 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15451 fi
15452
John Criswell47fdd832003-07-14 16:52:07 +000015453 # We used to test for /lib/ld.so.1 and disable shared libraries on
15454 # powerpc, because MkLinux only supported shared libraries with the
15455 # GNU dynamic linker. Since this was broken with cross compilers,
15456 # most powerpc-linux boxes support dynamic linking these days and
15457 # people can always --disable-shared, the test was removed, and we
15458 # assume the GNU/Linux dynamic linker is in use.
15459 dynamic_linker='GNU/Linux ld.so'
15460 ;;
15461
Reid Spencer2706f8c2004-09-19 23:53:36 +000015462knetbsd*-gnu)
15463 version_type=linux
15464 need_lib_prefix=no
15465 need_version=no
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=no
15470 hardcode_into_libs=yes
15471 dynamic_linker='GNU ld.so'
15472 ;;
15473
John Criswell47fdd832003-07-14 16:52:07 +000015474netbsd*)
15475 version_type=sunos
15476 need_lib_prefix=no
15477 need_version=no
15478 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15481 dynamic_linker='NetBSD (a.out) ld.so'
15482 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000015483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015484 soname_spec='${libname}${release}${shared_ext}$major'
15485 dynamic_linker='NetBSD ld.elf_so'
15486 fi
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=yes
15489 hardcode_into_libs=yes
15490 ;;
15491
15492newsos6)
15493 version_type=linux
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes
15497 ;;
15498
Reid Spencer2706f8c2004-09-19 23:53:36 +000015499nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000015500 version_type=linux
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 shlibpath_overrides_runpath=yes
15507 ;;
15508
15509openbsd*)
15510 version_type=sunos
15511 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000015512 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15515 shlibpath_var=LD_LIBRARY_PATH
15516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15517 case $host_os in
15518 openbsd2.[89] | openbsd2.[89].*)
15519 shlibpath_overrides_runpath=no
15520 ;;
15521 *)
15522 shlibpath_overrides_runpath=yes
15523 ;;
15524 esac
15525 else
15526 shlibpath_overrides_runpath=yes
15527 fi
15528 ;;
15529
15530os2*)
15531 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015532 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015533 need_lib_prefix=no
15534 library_names_spec='$libname${shared_ext} $libname.a'
15535 dynamic_linker='OS/2 ld.exe'
15536 shlibpath_var=LIBPATH
15537 ;;
15538
15539osf3* | osf4* | osf5*)
15540 version_type=osf
15541 need_lib_prefix=no
15542 need_version=no
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15548 ;;
15549
15550sco3.2v5*)
15551 version_type=osf
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 shlibpath_var=LD_LIBRARY_PATH
15555 ;;
15556
15557solaris*)
15558 version_type=linux
15559 need_lib_prefix=no
15560 need_version=no
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes
15565 hardcode_into_libs=yes
15566 # ldd complains unless libraries are executable
15567 postinstall_cmds='chmod +x $lib'
15568 ;;
15569
15570sunos4*)
15571 version_type=sunos
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=yes
15576 if test "$with_gnu_ld" = yes; then
15577 need_lib_prefix=no
15578 fi
15579 need_version=yes
15580 ;;
15581
15582sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15583 version_type=linux
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 shlibpath_var=LD_LIBRARY_PATH
15587 case $host_vendor in
15588 sni)
15589 shlibpath_overrides_runpath=no
15590 need_lib_prefix=no
15591 export_dynamic_flag_spec='${wl}-Blargedynsym'
15592 runpath_var=LD_RUN_PATH
15593 ;;
15594 siemens)
15595 need_lib_prefix=no
15596 ;;
15597 motorola)
15598 need_lib_prefix=no
15599 need_version=no
15600 shlibpath_overrides_runpath=no
15601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15602 ;;
15603 esac
15604 ;;
15605
15606sysv4*MP*)
15607 if test -d /usr/nec ;then
15608 version_type=linux
15609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15610 soname_spec='$libname${shared_ext}.$major'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 fi
15613 ;;
15614
15615uts4*)
15616 version_type=linux
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 ;;
15621
15622*)
15623 dynamic_linker=no
15624 ;;
15625esac
15626echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15627echo "${ECHO_T}$dynamic_linker" >&6
15628test "$dynamic_linker" = no && can_build_shared=no
15629
Reid Spencer2706f8c2004-09-19 23:53:36 +000015630echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15631echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15632hardcode_action_F77=
15633if test -n "$hardcode_libdir_flag_spec_F77" || \
15634 test -n "$runpath_var_F77" || \
15635 test "X$hardcode_automatic_F77" = "Xyes" ; then
15636
15637 # We can hardcode non-existant directories.
15638 if test "$hardcode_direct_F77" != no &&
15639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15640 # have to relink, otherwise we might link with an installed library
15641 # when we should be linking with a yet-to-be-installed one
15642 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15643 test "$hardcode_minus_L_F77" != no; then
15644 # Linking always hardcodes the temporary library directory.
15645 hardcode_action_F77=relink
15646 else
15647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15648 hardcode_action_F77=immediate
15649 fi
15650else
15651 # We cannot hardcode anything, or else we can only hardcode existing
15652 # directories.
15653 hardcode_action_F77=unsupported
15654fi
15655echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15656echo "${ECHO_T}$hardcode_action_F77" >&6
15657
15658if test "$hardcode_action_F77" = relink; then
15659 # Fast installation is not supported
15660 enable_fast_install=no
15661elif test "$shlibpath_overrides_runpath" = yes ||
15662 test "$enable_shared" = no; then
15663 # Fast installation is not necessary
15664 enable_fast_install=needless
15665fi
15666
15667striplib=
15668old_striplib=
15669echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15670echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15671if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15672 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15673 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15674 echo "$as_me:$LINENO: result: yes" >&5
15675echo "${ECHO_T}yes" >&6
15676else
15677# FIXME - insert some real tests, host_os isn't really good enough
15678 case $host_os in
15679 darwin*)
15680 if test -n "$STRIP" ; then
15681 striplib="$STRIP -x"
15682 echo "$as_me:$LINENO: result: yes" >&5
15683echo "${ECHO_T}yes" >&6
15684 else
15685 echo "$as_me:$LINENO: result: no" >&5
15686echo "${ECHO_T}no" >&6
15687fi
15688 ;;
15689 *)
15690 echo "$as_me:$LINENO: result: no" >&5
15691echo "${ECHO_T}no" >&6
15692 ;;
15693 esac
15694fi
15695
15696
John Criswell47fdd832003-07-14 16:52:07 +000015697
15698# The else clause should only fire when bootstrapping the
15699# libtool distribution, otherwise you forgot to ship ltmain.sh
15700# with your package, and you will get complaints that there are
15701# no rules to generate ltmain.sh.
15702if test -f "$ltmain"; then
15703 # See if we are running on zsh, and set the options which allow our commands through
15704 # without removal of \ escapes.
15705 if test -n "${ZSH_VERSION+set}" ; then
15706 setopt NO_GLOB_SUBST
15707 fi
15708 # Now quote all the things that may contain metacharacters while being
15709 # careful not to overquote the AC_SUBSTed values. We take copies of the
15710 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15712 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000015713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15715 deplibs_check_method reload_flag reload_cmds need_locks \
15716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15717 lt_cv_sys_global_symbol_to_c_name_address \
15718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15719 old_postinstall_cmds old_postuninstall_cmds \
15720 compiler_F77 \
15721 CC_F77 \
15722 LD_F77 \
15723 lt_prog_compiler_wl_F77 \
15724 lt_prog_compiler_pic_F77 \
15725 lt_prog_compiler_static_F77 \
15726 lt_prog_compiler_no_builtin_flag_F77 \
15727 export_dynamic_flag_spec_F77 \
15728 thread_safe_flag_spec_F77 \
15729 whole_archive_flag_spec_F77 \
15730 enable_shared_with_static_runtimes_F77 \
15731 old_archive_cmds_F77 \
15732 old_archive_from_new_cmds_F77 \
15733 predep_objects_F77 \
15734 postdep_objects_F77 \
15735 predeps_F77 \
15736 postdeps_F77 \
15737 compiler_lib_search_path_F77 \
15738 archive_cmds_F77 \
15739 archive_expsym_cmds_F77 \
15740 postinstall_cmds_F77 \
15741 postuninstall_cmds_F77 \
15742 old_archive_from_expsyms_cmds_F77 \
15743 allow_undefined_flag_F77 \
15744 no_undefined_flag_F77 \
15745 export_symbols_cmds_F77 \
15746 hardcode_libdir_flag_spec_F77 \
15747 hardcode_libdir_flag_spec_ld_F77 \
15748 hardcode_libdir_separator_F77 \
15749 hardcode_automatic_F77 \
15750 module_cmds_F77 \
15751 module_expsym_cmds_F77 \
15752 lt_cv_prog_compiler_c_o_F77 \
15753 exclude_expsyms_F77 \
15754 include_expsyms_F77; do
15755
15756 case $var in
15757 old_archive_cmds_F77 | \
15758 old_archive_from_new_cmds_F77 | \
15759 archive_cmds_F77 | \
15760 archive_expsym_cmds_F77 | \
15761 module_cmds_F77 | \
15762 module_expsym_cmds_F77 | \
15763 old_archive_from_expsyms_cmds_F77 | \
15764 export_symbols_cmds_F77 | \
15765 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15766 postinstall_cmds | postuninstall_cmds | \
15767 old_postinstall_cmds | old_postuninstall_cmds | \
15768 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15769 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015770 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 +000015771 ;;
15772 *)
15773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15774 ;;
15775 esac
15776 done
15777
15778 case $lt_echo in
15779 *'\$0 --fallback-echo"')
15780 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15781 ;;
15782 esac
15783
15784cfgfile="$ofile"
15785
15786 cat <<__EOF__ >> "$cfgfile"
15787# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15788
15789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15790
15791# Shell to use when invoking shell scripts.
15792SHELL=$lt_SHELL
15793
15794# Whether or not to build shared libraries.
15795build_libtool_libs=$enable_shared
15796
15797# Whether or not to build static libraries.
15798build_old_libs=$enable_static
15799
15800# Whether or not to add -lc for building shared libraries.
15801build_libtool_need_lc=$archive_cmds_need_lc_F77
15802
15803# Whether or not to disallow shared libs when runtime libs are static
15804allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15805
15806# Whether or not to optimize for fast installation.
15807fast_install=$enable_fast_install
15808
15809# The host system.
15810host_alias=$host_alias
15811host=$host
15812
15813# An echo program that does not interpret backslashes.
15814echo=$lt_echo
15815
15816# The archiver.
15817AR=$lt_AR
15818AR_FLAGS=$lt_AR_FLAGS
15819
15820# A C compiler.
15821LTCC=$lt_LTCC
15822
15823# A language-specific compiler.
15824CC=$lt_compiler_F77
15825
15826# Is the compiler the GNU C compiler?
15827with_gcc=$GCC_F77
15828
15829# An ERE matcher.
15830EGREP=$lt_EGREP
15831
15832# The linker used to build libraries.
15833LD=$lt_LD_F77
15834
15835# Whether we need hard or soft links.
15836LN_S=$lt_LN_S
15837
15838# A BSD-compatible nm program.
15839NM=$lt_NM
15840
15841# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015842STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000015843
15844# Used to examine libraries when file_magic_cmd begins "file"
15845MAGIC_CMD=$MAGIC_CMD
15846
15847# Used on cygwin: DLL creation program.
15848DLLTOOL="$DLLTOOL"
15849
15850# Used on cygwin: object dumper.
15851OBJDUMP="$OBJDUMP"
15852
15853# Used on cygwin: assembler.
15854AS="$AS"
15855
15856# The name of the directory that contains temporary libtool files.
15857objdir=$objdir
15858
15859# How to create reloadable object files.
15860reload_flag=$lt_reload_flag
15861reload_cmds=$lt_reload_cmds
15862
15863# How to pass a linker flag through the compiler.
15864wl=$lt_lt_prog_compiler_wl_F77
15865
15866# Object file suffix (normally "o").
15867objext="$ac_objext"
15868
15869# Old archive suffix (normally "a").
15870libext="$libext"
15871
15872# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015874
15875# Executable file suffix (normally "").
15876exeext="$exeext"
15877
15878# Additional compiler flags for building library objects.
15879pic_flag=$lt_lt_prog_compiler_pic_F77
15880pic_mode=$pic_mode
15881
15882# What is the maximum length of a command?
15883max_cmd_len=$lt_cv_sys_max_cmd_len
15884
15885# Does compiler simultaneously support -c and -o options?
15886compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15887
15888# Must we lock files when doing compilation ?
15889need_locks=$lt_need_locks
15890
15891# Do we need the lib prefix for modules?
15892need_lib_prefix=$need_lib_prefix
15893
15894# Do we need a version for libraries?
15895need_version=$need_version
15896
15897# Whether dlopen is supported.
15898dlopen_support=$enable_dlopen
15899
15900# Whether dlopen of programs is supported.
15901dlopen_self=$enable_dlopen_self
15902
15903# Whether dlopen of statically linked programs is supported.
15904dlopen_self_static=$enable_dlopen_self_static
15905
15906# Compiler flag to prevent dynamic linking.
15907link_static_flag=$lt_lt_prog_compiler_static_F77
15908
15909# Compiler flag to turn off builtin functions.
15910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15911
15912# Compiler flag to allow reflexive dlopens.
15913export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15914
15915# Compiler flag to generate shared objects directly from archives.
15916whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15917
15918# Compiler flag to generate thread-safe objects.
15919thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15920
15921# Library versioning type.
15922version_type=$version_type
15923
15924# Format of library name prefix.
15925libname_spec=$lt_libname_spec
15926
15927# List of archive names. First name is the real one, the rest are links.
15928# The last name is the one that the linker finds with -lNAME.
15929library_names_spec=$lt_library_names_spec
15930
15931# The coded name of the library, if different from the real name.
15932soname_spec=$lt_soname_spec
15933
15934# Commands used to build and install an old-style archive.
15935RANLIB=$lt_RANLIB
15936old_archive_cmds=$lt_old_archive_cmds_F77
15937old_postinstall_cmds=$lt_old_postinstall_cmds
15938old_postuninstall_cmds=$lt_old_postuninstall_cmds
15939
15940# Create an old-style archive from a shared archive.
15941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15942
15943# Create a temporary old-style archive to link instead of a shared archive.
15944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15945
15946# Commands used to build and install a shared archive.
15947archive_cmds=$lt_archive_cmds_F77
15948archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15949postinstall_cmds=$lt_postinstall_cmds
15950postuninstall_cmds=$lt_postuninstall_cmds
15951
15952# Commands used to build a loadable module (assumed same as above if empty)
15953module_cmds=$lt_module_cmds_F77
15954module_expsym_cmds=$lt_module_expsym_cmds_F77
15955
15956# Commands to strip libraries.
15957old_striplib=$lt_old_striplib
15958striplib=$lt_striplib
15959
15960# Dependencies to place before the objects being linked to create a
15961# shared library.
15962predep_objects=$lt_predep_objects_F77
15963
15964# Dependencies to place after the objects being linked to create a
15965# shared library.
15966postdep_objects=$lt_postdep_objects_F77
15967
15968# Dependencies to place before the objects being linked to create a
15969# shared library.
15970predeps=$lt_predeps_F77
15971
15972# Dependencies to place after the objects being linked to create a
15973# shared library.
15974postdeps=$lt_postdeps_F77
15975
15976# The library search path used internally by the compiler when linking
15977# a shared library.
15978compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15979
15980# Method to check whether dependent libraries are shared objects.
15981deplibs_check_method=$lt_deplibs_check_method
15982
15983# Command to use when deplibs_check_method == file_magic.
15984file_magic_cmd=$lt_file_magic_cmd
15985
15986# Flag that allows shared libraries with undefined symbols to be built.
15987allow_undefined_flag=$lt_allow_undefined_flag_F77
15988
15989# Flag that forces no undefined symbols.
15990no_undefined_flag=$lt_no_undefined_flag_F77
15991
15992# Commands used to finish a libtool library installation in a directory.
15993finish_cmds=$lt_finish_cmds
15994
15995# Same as above, but a single script fragment to be evaled but not shown.
15996finish_eval=$lt_finish_eval
15997
15998# Take the output of nm and produce a listing of raw symbols and C names.
15999global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16000
16001# Transform the output of nm in a proper C declaration
16002global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16003
16004# Transform the output of nm in a C name address pair
16005global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16006
16007# This is the shared library runtime path variable.
16008runpath_var=$runpath_var
16009
16010# This is the shared library path variable.
16011shlibpath_var=$shlibpath_var
16012
16013# Is shlibpath searched before the hard-coded library search path?
16014shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16015
16016# How to hardcode a shared library path into an executable.
16017hardcode_action=$hardcode_action_F77
16018
16019# Whether we should hardcode library paths into libraries.
16020hardcode_into_libs=$hardcode_into_libs
16021
16022# Flag to hardcode \$libdir into a binary during linking.
16023# This must work even if \$libdir does not exist.
16024hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16025
16026# If ld is used when linking, flag to hardcode \$libdir into
16027# a binary during linking. This must work even if \$libdir does
16028# not exist.
16029hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16030
16031# Whether we need a single -rpath flag with a separated argument.
16032hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16033
16034# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16035# resulting binary.
16036hardcode_direct=$hardcode_direct_F77
16037
16038# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16039# resulting binary.
16040hardcode_minus_L=$hardcode_minus_L_F77
16041
16042# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16043# the resulting binary.
16044hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16045
16046# Set to yes if building a shared library automatically hardcodes DIR into the library
16047# and all subsequent libraries and executables linked against it.
16048hardcode_automatic=$hardcode_automatic_F77
16049
16050# Variables whose values should be saved in libtool wrapper scripts and
16051# restored at relink time.
16052variables_saved_for_relink="$variables_saved_for_relink"
16053
16054# Whether libtool must link a program against all its dependency libraries.
16055link_all_deplibs=$link_all_deplibs_F77
16056
16057# Compile-time system search path for libraries
16058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16059
16060# Run-time system search path for libraries
16061sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16062
16063# Fix the shell variable \$srcfile for the compiler.
16064fix_srcfile_path="$fix_srcfile_path_F77"
16065
16066# Set to yes if exported symbols are required.
16067always_export_symbols=$always_export_symbols_F77
16068
16069# The commands to list exported symbols.
16070export_symbols_cmds=$lt_export_symbols_cmds_F77
16071
16072# The commands to extract the exported symbol list from a shared archive.
16073extract_expsyms_cmds=$lt_extract_expsyms_cmds
16074
16075# Symbols that should not be listed in the preloaded symbols.
16076exclude_expsyms=$lt_exclude_expsyms_F77
16077
16078# Symbols that must always be exported.
16079include_expsyms=$lt_include_expsyms_F77
16080
16081# ### END LIBTOOL TAG CONFIG: $tagname
16082
16083__EOF__
16084
16085
16086else
16087 # If there is no Makefile yet, we rely on a make rule to execute
16088 # `config.status --recheck' to rerun these tests and create the
16089 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16091 if test -f "$ltmain_in"; then
16092 test -f Makefile && make "$ltmain"
16093 fi
John Criswell47fdd832003-07-14 16:52:07 +000016094fi
16095
16096
16097ac_ext=c
16098ac_cpp='$CPP $CPPFLAGS'
16099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16101ac_compiler_gnu=$ac_cv_c_compiler_gnu
16102
16103CC="$lt_save_CC"
16104
16105 else
16106 tagname=""
16107 fi
16108 ;;
16109
16110 GCJ)
16111 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016112 ac_ext=c
16113ac_cpp='$CPP $CPPFLAGS'
16114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000016117
16118
16119# Source file extension for Java test sources.
16120ac_ext=java
16121
16122# Object file extension for compiled Java test sources.
16123objext=o
16124objext_GCJ=$objext
16125
16126# Code to be used in simple compile tests
16127lt_simple_compile_test_code="class foo {}\n"
16128
16129# Code to be used in simple link tests
16130lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16131
16132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16133
16134# If no C compiler was specified, use CC.
16135LTCC=${LTCC-"$CC"}
16136
16137# Allow CC to be a program name with arguments.
16138compiler=$CC
16139
16140
16141# Allow CC to be a program name with arguments.
16142lt_save_CC="$CC"
16143CC=${GCJ-"gcj"}
16144compiler=$CC
16145compiler_GCJ=$CC
16146
16147# GCJ did not exist at the time GCC didn't implicitly link libc in.
16148archive_cmds_need_lc_GCJ=no
16149
John Criswell47fdd832003-07-14 16:52:07 +000016150
16151lt_prog_compiler_no_builtin_flag_GCJ=
16152
16153if test "$GCC" = yes; then
16154 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16155
Reid Spencer2706f8c2004-09-19 23:53:36 +000016156
16157echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016158echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16159if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16161else
16162 lt_cv_prog_compiler_rtti_exceptions=no
16163 ac_outfile=conftest.$ac_objext
16164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165 lt_compiler_flag="-fno-rtti -fno-exceptions"
16166 # Insert the option either (1) after the last *FLAGS variable, or
16167 # (2) before a word containing "conftest.", or (3) at the end.
16168 # Note that $ac_compile itself does not contain backslashes and begins
16169 # with a dollar sign (not a hyphen), so the echo should work correctly.
16170 # The option is referenced via a variable to avoid confusing sed.
16171 lt_compile=`echo "$ac_compile" | $SED \
16172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16174 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000016175 (eval echo "\"\$as_me:16175: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016176 (eval "$lt_compile" 2>conftest.err)
16177 ac_status=$?
16178 cat conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000016179 echo "$as_me:16179: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016180 if (exit $ac_status) && test -s "$ac_outfile"; then
16181 # The compiler can only warn and ignore the option if not recognized
16182 # So say no if there are warnings
16183 if test ! -s conftest.err; then
16184 lt_cv_prog_compiler_rtti_exceptions=yes
16185 fi
16186 fi
16187 $rm conftest*
16188
16189fi
16190echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16191echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16192
16193if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16194 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16195else
16196 :
16197fi
16198
16199fi
16200
16201lt_prog_compiler_wl_GCJ=
16202lt_prog_compiler_pic_GCJ=
16203lt_prog_compiler_static_GCJ=
16204
16205echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16206echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16207
16208 if test "$GCC" = yes; then
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16210 lt_prog_compiler_static_GCJ='-static'
16211
16212 case $host_os in
16213 aix*)
16214 # All AIX code is PIC.
16215 if test "$host_cpu" = ia64; then
16216 # AIX 5 now supports IA64 processor
16217 lt_prog_compiler_static_GCJ='-Bstatic'
16218 fi
16219 ;;
16220
16221 amigaos*)
16222 # FIXME: we need at least 68020 code to build shared libraries, but
16223 # adding the `-m68020' flag to GCC prevents building anything better,
16224 # like `-m68040'.
16225 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16226 ;;
16227
16228 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16229 # PIC is the default for these OSes.
16230 ;;
16231
16232 mingw* | pw32* | os2*)
16233 # This hack is so that the source file can tell whether it is being
16234 # built for inclusion in a dll (and should export symbols for example).
16235 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16236 ;;
16237
16238 darwin* | rhapsody*)
16239 # PIC is the default on this platform
16240 # Common symbols not allowed in MH_DYLIB files
16241 lt_prog_compiler_pic_GCJ='-fno-common'
16242 ;;
16243
16244 msdosdjgpp*)
16245 # Just because we use GCC doesn't mean we suddenly get shared libraries
16246 # on systems that don't support them.
16247 lt_prog_compiler_can_build_shared_GCJ=no
16248 enable_shared=no
16249 ;;
16250
16251 sysv4*MP*)
16252 if test -d /usr/nec; then
16253 lt_prog_compiler_pic_GCJ=-Kconform_pic
16254 fi
16255 ;;
16256
16257 hpux*)
16258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16259 # not for PA HP-UX.
16260 case "$host_cpu" in
16261 hppa*64*|ia64*)
16262 # +Z the default
16263 ;;
16264 *)
16265 lt_prog_compiler_pic_GCJ='-fPIC'
16266 ;;
16267 esac
16268 ;;
16269
16270 *)
16271 lt_prog_compiler_pic_GCJ='-fPIC'
16272 ;;
16273 esac
16274 else
16275 # PORTME Check for flag to pass linker flags through the system compiler.
16276 case $host_os in
16277 aix*)
16278 lt_prog_compiler_wl_GCJ='-Wl,'
16279 if test "$host_cpu" = ia64; then
16280 # AIX 5 now supports IA64 processor
16281 lt_prog_compiler_static_GCJ='-Bstatic'
16282 else
16283 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16284 fi
16285 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016286 darwin*)
16287 # PIC is the default on this platform
16288 # Common symbols not allowed in MH_DYLIB files
16289 case "$cc_basename" in
16290 xlc*)
16291 lt_prog_compiler_pic_GCJ='-qnocommon'
16292 lt_prog_compiler_wl_GCJ='-Wl,'
16293 ;;
16294 esac
16295 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016296
16297 mingw* | pw32* | os2*)
16298 # This hack is so that the source file can tell whether it is being
16299 # built for inclusion in a dll (and should export symbols for example).
16300 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16301 ;;
16302
16303 hpux9* | hpux10* | hpux11*)
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16306 # not for PA HP-UX.
16307 case "$host_cpu" in
16308 hppa*64*|ia64*)
16309 # +Z the default
16310 ;;
16311 *)
16312 lt_prog_compiler_pic_GCJ='+Z'
16313 ;;
16314 esac
16315 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16316 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16317 ;;
16318
16319 irix5* | irix6* | nonstopux*)
16320 lt_prog_compiler_wl_GCJ='-Wl,'
16321 # PIC (with -KPIC) is the default.
16322 lt_prog_compiler_static_GCJ='-non_shared'
16323 ;;
16324
16325 newsos6)
16326 lt_prog_compiler_pic_GCJ='-KPIC'
16327 lt_prog_compiler_static_GCJ='-Bstatic'
16328 ;;
16329
16330 linux*)
16331 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016332 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000016333 lt_prog_compiler_wl_GCJ='-Wl,'
16334 lt_prog_compiler_pic_GCJ='-KPIC'
16335 lt_prog_compiler_static_GCJ='-static'
16336 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016337 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000016338 lt_prog_compiler_wl_GCJ='-Wl,'
16339 # All Alpha code is PIC.
16340 lt_prog_compiler_static_GCJ='-non_shared'
16341 ;;
16342 esac
16343 ;;
16344
16345 osf3* | osf4* | osf5*)
16346 lt_prog_compiler_wl_GCJ='-Wl,'
16347 # All OSF/1 code is PIC.
16348 lt_prog_compiler_static_GCJ='-non_shared'
16349 ;;
16350
16351 sco3.2v5*)
16352 lt_prog_compiler_pic_GCJ='-Kpic'
16353 lt_prog_compiler_static_GCJ='-dn'
16354 ;;
16355
16356 solaris*)
16357 lt_prog_compiler_wl_GCJ='-Wl,'
16358 lt_prog_compiler_pic_GCJ='-KPIC'
16359 lt_prog_compiler_static_GCJ='-Bstatic'
16360 ;;
16361
16362 sunos4*)
16363 lt_prog_compiler_wl_GCJ='-Qoption ld '
16364 lt_prog_compiler_pic_GCJ='-PIC'
16365 lt_prog_compiler_static_GCJ='-Bstatic'
16366 ;;
16367
16368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 lt_prog_compiler_pic_GCJ='-KPIC'
16371 lt_prog_compiler_static_GCJ='-Bstatic'
16372 ;;
16373
16374 sysv4*MP*)
16375 if test -d /usr/nec ;then
16376 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16377 lt_prog_compiler_static_GCJ='-Bstatic'
16378 fi
16379 ;;
16380
16381 uts4*)
16382 lt_prog_compiler_pic_GCJ='-pic'
16383 lt_prog_compiler_static_GCJ='-Bstatic'
16384 ;;
16385
16386 *)
16387 lt_prog_compiler_can_build_shared_GCJ=no
16388 ;;
16389 esac
16390 fi
16391
16392echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16393echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16394
16395#
16396# Check to make sure the PIC flag actually works.
16397#
16398if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016399
16400echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016401echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16402if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404else
16405 lt_prog_compiler_pic_works_GCJ=no
16406 ac_outfile=conftest.$ac_objext
16407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16408 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16409 # Insert the option either (1) after the last *FLAGS variable, or
16410 # (2) before a word containing "conftest.", or (3) at the end.
16411 # Note that $ac_compile itself does not contain backslashes and begins
16412 # with a dollar sign (not a hyphen), so the echo should work correctly.
16413 # The option is referenced via a variable to avoid confusing sed.
16414 lt_compile=`echo "$ac_compile" | $SED \
16415 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16417 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000016418 (eval echo "\"\$as_me:16418: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016419 (eval "$lt_compile" 2>conftest.err)
16420 ac_status=$?
16421 cat conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000016422 echo "$as_me:16422: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016423 if (exit $ac_status) && test -s "$ac_outfile"; then
16424 # The compiler can only warn and ignore the option if not recognized
16425 # So say no if there are warnings
16426 if test ! -s conftest.err; then
16427 lt_prog_compiler_pic_works_GCJ=yes
16428 fi
16429 fi
16430 $rm conftest*
16431
16432fi
16433echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16434echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16435
16436if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16437 case $lt_prog_compiler_pic_GCJ in
16438 "" | " "*) ;;
16439 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16440 esac
16441else
16442 lt_prog_compiler_pic_GCJ=
16443 lt_prog_compiler_can_build_shared_GCJ=no
16444fi
16445
16446fi
16447case "$host_os" in
16448 # For platforms which do not support PIC, -DPIC is meaningless:
16449 *djgpp*)
16450 lt_prog_compiler_pic_GCJ=
16451 ;;
16452 *)
16453 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16454 ;;
16455esac
16456
16457echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16458echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16459if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16461else
16462 lt_cv_prog_compiler_c_o_GCJ=no
16463 $rm -r conftest 2>/dev/null
16464 mkdir conftest
16465 cd conftest
16466 mkdir out
16467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16468
John Criswell47fdd832003-07-14 16:52:07 +000016469 lt_compiler_flag="-o out/conftest2.$ac_objext"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 lt_compile=`echo "$ac_compile" | $SED \
16475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1f319422004-11-29 04:56:35 +000016478 (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016479 (eval "$lt_compile" 2>out/conftest.err)
16480 ac_status=$?
16481 cat out/conftest.err >&5
Reid Spencer1f319422004-11-29 04:56:35 +000016482 echo "$as_me:16482: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16484 then
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings
16487 if test ! -s out/conftest.err; then
16488 lt_cv_prog_compiler_c_o_GCJ=yes
16489 fi
16490 fi
16491 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016492 $rm conftest*
16493 # SGI C++ compiler will create directory out/ii_files/ for
16494 # template instantiation
16495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16496 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016497 cd ..
16498 rmdir conftest
16499 $rm conftest*
16500
16501fi
16502echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16503echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16504
16505
16506hard_links="nottested"
16507if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16508 # do not overwrite the value of need_locks provided by the user
16509 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16510echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16511 hard_links=yes
16512 $rm conftest*
16513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16514 touch conftest.a
16515 ln conftest.a conftest.b 2>&5 || hard_links=no
16516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16517 echo "$as_me:$LINENO: result: $hard_links" >&5
16518echo "${ECHO_T}$hard_links" >&6
16519 if test "$hard_links" = no; then
16520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16521echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16522 need_locks=warn
16523 fi
16524else
16525 need_locks=no
16526fi
16527
16528echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16529echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16530
16531 runpath_var=
16532 allow_undefined_flag_GCJ=
16533 enable_shared_with_static_runtimes_GCJ=no
16534 archive_cmds_GCJ=
16535 archive_expsym_cmds_GCJ=
16536 old_archive_From_new_cmds_GCJ=
16537 old_archive_from_expsyms_cmds_GCJ=
16538 export_dynamic_flag_spec_GCJ=
16539 whole_archive_flag_spec_GCJ=
16540 thread_safe_flag_spec_GCJ=
16541 hardcode_libdir_flag_spec_GCJ=
16542 hardcode_libdir_flag_spec_ld_GCJ=
16543 hardcode_libdir_separator_GCJ=
16544 hardcode_direct_GCJ=no
16545 hardcode_minus_L_GCJ=no
16546 hardcode_shlibpath_var_GCJ=unsupported
16547 link_all_deplibs_GCJ=unknown
16548 hardcode_automatic_GCJ=no
16549 module_cmds_GCJ=
16550 module_expsym_cmds_GCJ=
16551 always_export_symbols_GCJ=no
16552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16553 # include_expsyms should be a list of space-separated symbols to be *always*
16554 # included in the symbol list
16555 include_expsyms_GCJ=
16556 # exclude_expsyms can be an extended regexp of symbols to exclude
16557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16559 # as well as any symbol that contains `d'.
16560 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16562 # platforms (ab)use it in PIC code, but their linkers get confused if
16563 # the symbol is explicitly referenced. Since portable code cannot
16564 # rely on this symbol name, it's probably fine to never include it in
16565 # preloaded symbol tables.
16566 extract_expsyms_cmds=
16567
16568 case $host_os in
16569 cygwin* | mingw* | pw32*)
16570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16571 # When not using gcc, we currently assume that we are using
16572 # Microsoft Visual C++.
16573 if test "$GCC" != yes; then
16574 with_gnu_ld=no
16575 fi
16576 ;;
16577 openbsd*)
16578 with_gnu_ld=no
16579 ;;
16580 esac
16581
16582 ld_shlibs_GCJ=yes
16583 if test "$with_gnu_ld" = yes; then
16584 # If archive_cmds runs LD, not CC, wlarc should be empty
16585 wlarc='${wl}'
16586
16587 # See if GNU ld supports shared libraries.
16588 case $host_os in
16589 aix3* | aix4* | aix5*)
16590 # On AIX/PPC, the GNU linker is very broken
16591 if test "$host_cpu" != ia64; then
16592 ld_shlibs_GCJ=no
16593 cat <<EOF 1>&2
16594
16595*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16596*** to be unable to reliably create shared libraries on AIX.
16597*** Therefore, libtool is disabling shared libraries support. If you
16598*** really care for shared libraries, you may want to modify your PATH
16599*** so that a non-GNU linker is found, and then restart.
16600
16601EOF
16602 fi
16603 ;;
16604
16605 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016606 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 +000016607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16608 hardcode_minus_L_GCJ=yes
16609
16610 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16611 # that the semantics of dynamic libraries on AmigaOS, at least up
16612 # to version 4, is to share data among multiple programs linked
16613 # with the same dynamic library. Since this doesn't match the
16614 # behavior of shared libraries on other platforms, we can't use
16615 # them.
16616 ld_shlibs_GCJ=no
16617 ;;
16618
16619 beos*)
16620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16621 allow_undefined_flag_GCJ=unsupported
16622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16623 # support --undefined. This deserves some investigation. FIXME
16624 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16625 else
16626 ld_shlibs_GCJ=no
16627 fi
16628 ;;
16629
16630 cygwin* | mingw* | pw32*)
16631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16632 # as there is no search path for DLLs.
16633 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634 allow_undefined_flag_GCJ=unsupported
16635 always_export_symbols_GCJ=no
16636 enable_shared_with_static_runtimes_GCJ=yes
16637 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16638
16639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16640 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16641 # If the export-symbols file already is a .def file (1st line
16642 # is EXPORTS), use it as is; otherwise, prepend...
16643 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16644 cp $export_symbols $output_objdir/$soname.def;
16645 else
16646 echo EXPORTS > $output_objdir/$soname.def;
16647 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000016648 fi~
16649 $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 +000016650 else
16651 ld_shlibs=no
16652 fi
16653 ;;
16654
16655 netbsd*)
16656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16657 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16658 wlarc=
16659 else
16660 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16661 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16662 fi
16663 ;;
16664
16665 solaris* | sysv5*)
16666 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16667 ld_shlibs_GCJ=no
16668 cat <<EOF 1>&2
16669
16670*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16671*** create shared libraries on Solaris systems. Therefore, libtool
16672*** is disabling shared libraries support. We urge you to upgrade GNU
16673*** binutils to release 2.9.1 or newer. Another option is to modify
16674*** your PATH or compiler configuration so that the native linker is
16675*** used, and then restart.
16676
16677EOF
16678 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16679 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16680 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16681 else
16682 ld_shlibs_GCJ=no
16683 fi
16684 ;;
16685
16686 sunos4*)
16687 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16688 wlarc=
16689 hardcode_direct_GCJ=yes
16690 hardcode_shlibpath_var_GCJ=no
16691 ;;
16692
Reid Spencer2706f8c2004-09-19 23:53:36 +000016693 linux*)
16694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16695 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16696 archive_cmds_GCJ="$tmp_archive_cmds"
16697 supports_anon_versioning=no
16698 case `$LD -v 2>/dev/null` in
16699 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16702 *\ 2.11.*) ;; # other 2.11 versions
16703 *) supports_anon_versioning=yes ;;
16704 esac
16705 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016706 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16707cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16708$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000016709 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16710 else
16711 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16712 fi
16713 else
16714 ld_shlibs_GCJ=no
16715 fi
16716 ;;
16717
John Criswell47fdd832003-07-14 16:52:07 +000016718 *)
16719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16722 else
16723 ld_shlibs_GCJ=no
16724 fi
16725 ;;
16726 esac
16727
16728 if test "$ld_shlibs_GCJ" = yes; then
16729 runpath_var=LD_RUN_PATH
16730 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16731 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16732 # ancient GNU ld didn't support --whole-archive et. al.
16733 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16734 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16735 else
16736 whole_archive_flag_spec_GCJ=
16737 fi
16738 fi
16739 else
16740 # PORTME fill in a description of your system's linker (not GNU ld)
16741 case $host_os in
16742 aix3*)
16743 allow_undefined_flag_GCJ=unsupported
16744 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000016745 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 +000016746 # Note: this linker hardcodes the directories in LIBPATH if there
16747 # are no directories specified by -L.
16748 hardcode_minus_L_GCJ=yes
16749 if test "$GCC" = yes && test -z "$link_static_flag"; then
16750 # Neither direct hardcoding nor static linking is supported with a
16751 # broken collect2.
16752 hardcode_direct_GCJ=unsupported
16753 fi
16754 ;;
16755
16756 aix4* | aix5*)
16757 if test "$host_cpu" = ia64; then
16758 # On IA64, the linker does run time linking by default, so we don't
16759 # have to do anything special.
16760 aix_use_runtimelinking=no
16761 exp_sym_flag='-Bexport'
16762 no_entry_flag=""
16763 else
16764 # If we're using GNU nm, then we don't want the "-C" option.
16765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16766 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16767 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'
16768 else
16769 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'
16770 fi
16771 aix_use_runtimelinking=no
16772
16773 # Test if we are trying to use run time linking or normal
16774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16775 # need to do runtime linking.
16776 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16777 for ld_flag in $LDFLAGS; do
16778 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16779 aix_use_runtimelinking=yes
16780 break
16781 fi
16782 done
16783 esac
16784
16785 exp_sym_flag='-bexport'
16786 no_entry_flag='-bnoentry'
16787 fi
16788
16789 # When large executables or shared objects are built, AIX ld can
16790 # have problems creating the table of contents. If linking a library
16791 # or program results in "error TOC overflow" add -mminimal-toc to
16792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16794
16795 archive_cmds_GCJ=''
16796 hardcode_direct_GCJ=yes
16797 hardcode_libdir_separator_GCJ=':'
16798 link_all_deplibs_GCJ=yes
16799
16800 if test "$GCC" = yes; then
16801 case $host_os in aix4.012|aix4.012.*)
16802 # We only want to do this on AIX 4.2 and lower, the check
16803 # below for broken collect2 doesn't work under 4.3+
16804 collect2name=`${CC} -print-prog-name=collect2`
16805 if test -f "$collect2name" && \
16806 strings "$collect2name" | grep resolve_lib_name >/dev/null
16807 then
16808 # We have reworked collect2
16809 hardcode_direct_GCJ=yes
16810 else
16811 # We have old collect2
16812 hardcode_direct_GCJ=unsupported
16813 # It fails to find uninstalled libraries when the uninstalled
16814 # path is not listed in the libpath. Setting hardcode_minus_L
16815 # to unsupported forces relinking
16816 hardcode_minus_L_GCJ=yes
16817 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16818 hardcode_libdir_separator_GCJ=
16819 fi
16820 esac
16821 shared_flag='-shared'
16822 else
16823 # not using gcc
16824 if test "$host_cpu" = ia64; then
16825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16826 # chokes on -Wl,-G. The following line is correct:
16827 shared_flag='-G'
16828 else
16829 if test "$aix_use_runtimelinking" = yes; then
16830 shared_flag='${wl}-G'
16831 else
16832 shared_flag='${wl}-bM:SRE'
16833 fi
16834 fi
16835 fi
16836
16837 # It seems that -bexpall does not export symbols beginning with
16838 # underscore (_), so it is better to generate a list of symbols to export.
16839 always_export_symbols_GCJ=yes
16840 if test "$aix_use_runtimelinking" = yes; then
16841 # Warning - without using the other runtime loading flags (-brtl),
16842 # -berok will link without error, but may produce a broken library.
16843 allow_undefined_flag_GCJ='-berok'
16844 # Determine the default libpath from the value encoded in an empty executable.
16845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016846/* confdefs.h. */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016851
John Criswell47fdd832003-07-14 16:52:07 +000016852int
16853main ()
16854{
16855
16856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext conftest$ac_exeext
16861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016862 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016869 { ac_try='test -z "$ac_c_werror_flag"
16870 || test ! -s conftest.err'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882
16883aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16884}'`
16885# Check for a 64-bit object if we didn't find anything.
16886if 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; }
16887}'`; fi
16888else
16889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016890sed 's/^/| /' conftest.$ac_ext >&5
16891
John Criswell47fdd832003-07-14 16:52:07 +000016892fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893rm -f conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16896
16897 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16898 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"
16899 else
16900 if test "$host_cpu" = ia64; then
16901 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16902 allow_undefined_flag_GCJ="-z nodefs"
16903 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"
16904 else
16905 # Determine the default libpath from the value encoded in an empty executable.
16906 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016907/* confdefs.h. */
16908_ACEOF
16909cat confdefs.h >>conftest.$ac_ext
16910cat >>conftest.$ac_ext <<_ACEOF
16911/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016912
John Criswell47fdd832003-07-14 16:52:07 +000016913int
16914main ()
16915{
16916
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext conftest$ac_exeext
16922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016923 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943
16944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16945}'`
16946# Check for a 64-bit object if we didn't find anything.
16947if 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; }
16948}'`; fi
16949else
16950 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016951sed 's/^/| /' conftest.$ac_ext >&5
16952
John Criswell47fdd832003-07-14 16:52:07 +000016953fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016954rm -f conftest.err conftest.$ac_objext \
16955 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16957
16958 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16959 # Warning - without using the other run time loading flags,
16960 # -berok will link without error, but may produce a broken library.
16961 no_undefined_flag_GCJ=' ${wl}-bernotok'
16962 allow_undefined_flag_GCJ=' ${wl}-berok'
16963 # -bexpall does not export symbols beginning with underscore (_)
16964 always_export_symbols_GCJ=yes
16965 # Exported symbols can be pulled into shared objects from archives
16966 whole_archive_flag_spec_GCJ=' '
16967 archive_cmds_need_lc_GCJ=yes
16968 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016969 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 +000016970 fi
16971 fi
16972 ;;
16973
16974 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016975 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 +000016976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16977 hardcode_minus_L_GCJ=yes
16978 # see comment about different semantics on the GNU ld section
16979 ld_shlibs_GCJ=no
16980 ;;
16981
Reid Spencer2706f8c2004-09-19 23:53:36 +000016982 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016983 export_dynamic_flag_spec_GCJ=-rdynamic
16984 ;;
16985
16986 cygwin* | mingw* | pw32*)
16987 # When not using gcc, we currently assume that we are using
16988 # Microsoft Visual C++.
16989 # hardcode_libdir_flag_spec is actually meaningless, as there is
16990 # no search path for DLLs.
16991 hardcode_libdir_flag_spec_GCJ=' '
16992 allow_undefined_flag_GCJ=unsupported
16993 # Tell ltmain to make .lib files, not .a files.
16994 libext=lib
16995 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016996 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016997 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000016998 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 +000016999 # The linker will automatically build a .lib file if we build a DLL.
17000 old_archive_From_new_cmds_GCJ='true'
17001 # FIXME: Should let the user specify the lib program.
17002 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17003 fix_srcfile_path='`cygpath -w "$srcfile"`'
17004 enable_shared_with_static_runtimes_GCJ=yes
17005 ;;
17006
17007 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000017008 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017009 rhapsody* | darwin1.[012])
17010 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17011 ;;
17012 *) # Darwin 1.3 on
17013 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17014 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17015 else
17016 case ${MACOSX_DEPLOYMENT_TARGET} in
17017 10.[012])
17018 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17019 ;;
17020 10.*)
17021 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17022 ;;
17023 esac
17024 fi
17025 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017026 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000017027 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000017028 hardcode_direct_GCJ=no
17029 hardcode_automatic_GCJ=yes
17030 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000017031 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000017032 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000017033 if test "$GCC" = yes ; then
17034 output_verbose_link_cmd='echo'
17035 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17036 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17037 # 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 +000017038 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}'
17039 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 +000017040 else
17041 case "$cc_basename" in
17042 xlc*)
17043 output_verbose_link_cmd='echo'
17044 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17045 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17046 # 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 +000017047 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}'
17048 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 +000017049 ;;
17050 *)
17051 ld_shlibs_GCJ=no
17052 ;;
17053 esac
John Criswell47fdd832003-07-14 16:52:07 +000017054 fi
17055 ;;
17056
17057 dgux*)
17058 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17060 hardcode_shlibpath_var_GCJ=no
17061 ;;
17062
17063 freebsd1*)
17064 ld_shlibs_GCJ=no
17065 ;;
17066
17067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17068 # support. Future versions do this automatically, but an explicit c++rt0.o
17069 # does not break anything, and helps significantly (at the cost of a little
17070 # extra space).
17071 freebsd2.2*)
17072 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17073 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17074 hardcode_direct_GCJ=yes
17075 hardcode_shlibpath_var_GCJ=no
17076 ;;
17077
17078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17079 freebsd2*)
17080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17081 hardcode_direct_GCJ=yes
17082 hardcode_minus_L_GCJ=yes
17083 hardcode_shlibpath_var_GCJ=no
17084 ;;
17085
17086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017087 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000017088 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17089 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17090 hardcode_direct_GCJ=yes
17091 hardcode_shlibpath_var_GCJ=no
17092 ;;
17093
17094 hpux9*)
17095 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017096 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 +000017097 else
Reid Spencer177dbe22004-10-13 01:01:03 +000017098 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 +000017099 fi
17100 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17101 hardcode_libdir_separator_GCJ=:
17102 hardcode_direct_GCJ=yes
17103
17104 # hardcode_minus_L: Not really in the search PATH,
17105 # but as the default location of the library.
17106 hardcode_minus_L_GCJ=yes
17107 export_dynamic_flag_spec_GCJ='${wl}-E'
17108 ;;
17109
17110 hpux10* | hpux11*)
17111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17112 case "$host_cpu" in
17113 hppa*64*|ia64*)
17114 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17115 ;;
17116 *)
17117 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17118 ;;
17119 esac
17120 else
17121 case "$host_cpu" in
17122 hppa*64*|ia64*)
17123 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17124 ;;
17125 *)
17126 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17127 ;;
17128 esac
17129 fi
17130 if test "$with_gnu_ld" = no; then
17131 case "$host_cpu" in
17132 hppa*64*)
17133 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17134 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17135 hardcode_libdir_separator_GCJ=:
17136 hardcode_direct_GCJ=no
17137 hardcode_shlibpath_var_GCJ=no
17138 ;;
17139 ia64*)
17140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141 hardcode_direct_GCJ=no
17142 hardcode_shlibpath_var_GCJ=no
17143
17144 # hardcode_minus_L: Not really in the search PATH,
17145 # but as the default location of the library.
17146 hardcode_minus_L_GCJ=yes
17147 ;;
17148 *)
17149 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17150 hardcode_libdir_separator_GCJ=:
17151 hardcode_direct_GCJ=yes
17152 export_dynamic_flag_spec_GCJ='${wl}-E'
17153
17154 # hardcode_minus_L: Not really in the search PATH,
17155 # but as the default location of the library.
17156 hardcode_minus_L_GCJ=yes
17157 ;;
17158 esac
17159 fi
17160 ;;
17161
17162 irix5* | irix6* | nonstopux*)
17163 if test "$GCC" = yes; then
17164 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'
17165 else
17166 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'
17167 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17168 fi
17169 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17170 hardcode_libdir_separator_GCJ=:
17171 link_all_deplibs_GCJ=yes
17172 ;;
17173
17174 netbsd*)
17175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17176 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17177 else
17178 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17179 fi
17180 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17181 hardcode_direct_GCJ=yes
17182 hardcode_shlibpath_var_GCJ=no
17183 ;;
17184
17185 newsos6)
17186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_direct_GCJ=yes
17188 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17189 hardcode_libdir_separator_GCJ=:
17190 hardcode_shlibpath_var_GCJ=no
17191 ;;
17192
17193 openbsd*)
17194 hardcode_direct_GCJ=yes
17195 hardcode_shlibpath_var_GCJ=no
17196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17197 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017198 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 +000017199 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17200 export_dynamic_flag_spec_GCJ='${wl}-E'
17201 else
17202 case $host_os in
17203 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17204 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17205 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17206 ;;
17207 *)
17208 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17209 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17210 ;;
17211 esac
17212 fi
17213 ;;
17214
17215 os2*)
17216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217 hardcode_minus_L_GCJ=yes
17218 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000017219 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 +000017220 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17221 ;;
17222
17223 osf3*)
17224 if test "$GCC" = yes; then
17225 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17226 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'
17227 else
17228 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17229 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'
17230 fi
17231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17232 hardcode_libdir_separator_GCJ=:
17233 ;;
17234
17235 osf4* | osf5*) # as osf3* with the addition of -msym flag
17236 if test "$GCC" = yes; then
17237 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17238 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'
17239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17240 else
17241 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17242 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 +000017243 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~
17244 $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'
17245
John Criswell47fdd832003-07-14 16:52:07 +000017246 # Both c and cxx compiler support -rpath directly
17247 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17248 fi
17249 hardcode_libdir_separator_GCJ=:
17250 ;;
17251
17252 sco3.2v5*)
17253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254 hardcode_shlibpath_var_GCJ=no
17255 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17256 runpath_var=LD_RUN_PATH
17257 hardcode_runpath_var=yes
17258 ;;
17259
17260 solaris*)
17261 no_undefined_flag_GCJ=' -z text'
17262 if test "$GCC" = yes; then
17263 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017264 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17265 $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 +000017266 else
17267 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017268 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17269 $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 +000017270 fi
17271 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17272 hardcode_shlibpath_var_GCJ=no
17273 case $host_os in
17274 solaris2.[0-5] | solaris2.[0-5].*) ;;
17275 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17276 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17277 esac
17278 link_all_deplibs_GCJ=yes
17279 ;;
17280
17281 sunos4*)
17282 if test "x$host_vendor" = xsequent; then
17283 # Use $CC to link under sequent, because it throws in some extra .o
17284 # files that make .init and .fini sections work.
17285 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17286 else
17287 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17288 fi
17289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290 hardcode_direct_GCJ=yes
17291 hardcode_minus_L_GCJ=yes
17292 hardcode_shlibpath_var_GCJ=no
17293 ;;
17294
17295 sysv4)
17296 case $host_vendor in
17297 sni)
17298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299 hardcode_direct_GCJ=yes # is this really true???
17300 ;;
17301 siemens)
17302 ## LD is ld it makes a PLAMLIB
17303 ## CC just makes a GrossModule.
17304 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17305 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17306 hardcode_direct_GCJ=no
17307 ;;
17308 motorola)
17309 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17310 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17311 ;;
17312 esac
17313 runpath_var='LD_RUN_PATH'
17314 hardcode_shlibpath_var_GCJ=no
17315 ;;
17316
17317 sysv4.3*)
17318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319 hardcode_shlibpath_var_GCJ=no
17320 export_dynamic_flag_spec_GCJ='-Bexport'
17321 ;;
17322
17323 sysv4*MP*)
17324 if test -d /usr/nec; then
17325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17326 hardcode_shlibpath_var_GCJ=no
17327 runpath_var=LD_RUN_PATH
17328 hardcode_runpath_var=yes
17329 ld_shlibs_GCJ=yes
17330 fi
17331 ;;
17332
17333 sysv4.2uw2*)
17334 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17335 hardcode_direct_GCJ=yes
17336 hardcode_minus_L_GCJ=no
17337 hardcode_shlibpath_var_GCJ=no
17338 hardcode_runpath_var=yes
17339 runpath_var=LD_RUN_PATH
17340 ;;
17341
17342 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17343 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17344 if test "$GCC" = yes; then
17345 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 else
17347 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17348 fi
17349 runpath_var='LD_RUN_PATH'
17350 hardcode_shlibpath_var_GCJ=no
17351 ;;
17352
17353 sysv5*)
17354 no_undefined_flag_GCJ=' -z text'
17355 # $CC -shared without GNU ld will not create a library from C++
17356 # object files and a static libstdc++, better avoid it by now
17357 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000017358 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17359 $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 +000017360 hardcode_libdir_flag_spec_GCJ=
17361 hardcode_shlibpath_var_GCJ=no
17362 runpath_var='LD_RUN_PATH'
17363 ;;
17364
17365 uts4*)
17366 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368 hardcode_shlibpath_var_GCJ=no
17369 ;;
17370
17371 *)
17372 ld_shlibs_GCJ=no
17373 ;;
17374 esac
17375 fi
17376
17377echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17378echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17379test "$ld_shlibs_GCJ" = no && can_build_shared=no
17380
17381variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17382if test "$GCC" = yes; then
17383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17384fi
17385
17386#
17387# Do we need to explicitly link libc?
17388#
17389case "x$archive_cmds_need_lc_GCJ" in
17390x|xyes)
17391 # Assume -lc should be added
17392 archive_cmds_need_lc_GCJ=yes
17393
17394 if test "$enable_shared" = yes && test "$GCC" = yes; then
17395 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000017396 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000017397 # FIXME: we may have to deal with multi-command sequences.
17398 ;;
17399 '$CC '*)
17400 # Test whether the compiler implicitly links with -lc since on some
17401 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17402 # to ld, don't add -lc before -lgcc.
17403 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17404echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17405 $rm conftest*
17406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17407
17408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17409 (eval $ac_compile) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } 2>conftest.err; then
17413 soname=conftest
17414 lib=conftest
17415 libobjs=conftest.$ac_objext
17416 deplibs=
17417 wl=$lt_prog_compiler_wl_GCJ
17418 compiler_flags=-v
17419 linker_flags=-v
17420 verstring=
17421 output_objdir=.
17422 libname=conftest
17423 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17424 allow_undefined_flag_GCJ=
17425 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17426 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17427 ac_status=$?
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }
17430 then
17431 archive_cmds_need_lc_GCJ=no
17432 else
17433 archive_cmds_need_lc_GCJ=yes
17434 fi
17435 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17436 else
17437 cat conftest.err 1>&5
17438 fi
17439 $rm conftest*
17440 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17441echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17442 ;;
17443 esac
17444 fi
17445 ;;
17446esac
17447
John Criswell47fdd832003-07-14 16:52:07 +000017448echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17449echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17450library_names_spec=
17451libname_spec='lib$name'
17452soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000017453shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000017454postinstall_cmds=
17455postuninstall_cmds=
17456finish_cmds=
17457finish_eval=
17458shlibpath_var=
17459shlibpath_overrides_runpath=unknown
17460version_type=none
17461dynamic_linker="$host_os ld.so"
17462sys_lib_dlsearch_path_spec="/lib /usr/lib"
17463if test "$GCC" = yes; then
17464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17465 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17466 # if the path contains ";" then we assume it to be the separator
17467 # otherwise default to the standard path separator (i.e. ":") - it is
17468 # assumed that no part of a normal pathname contains ";" but that should
17469 # okay in the real world where ";" in dirpaths is itself problematic.
17470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17471 else
17472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17473 fi
17474else
17475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17476fi
17477need_lib_prefix=unknown
17478hardcode_into_libs=no
17479
17480# when you set need_version to no, make sure it does not cause -set_version
17481# flags to be left without arguments
17482need_version=unknown
17483
17484case $host_os in
17485aix3*)
17486 version_type=linux
17487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17488 shlibpath_var=LIBPATH
17489
17490 # AIX 3 has no versioning support, so we append a major version to the name.
17491 soname_spec='${libname}${release}${shared_ext}$major'
17492 ;;
17493
17494aix4* | aix5*)
17495 version_type=linux
17496 need_lib_prefix=no
17497 need_version=no
17498 hardcode_into_libs=yes
17499 if test "$host_cpu" = ia64; then
17500 # AIX 5 supports IA64
17501 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 else
17504 # With GCC up to 2.95.x, collect2 would create an import file
17505 # for dependence libraries. The import file would start with
17506 # the line `#! .'. This would cause the generated library to
17507 # depend on `.', always an invalid library. This was fixed in
17508 # development snapshots of GCC prior to 3.0.
17509 case $host_os in
17510 aix4 | aix4.[01] | aix4.[01].*)
17511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17512 echo ' yes '
17513 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17514 :
17515 else
17516 can_build_shared=no
17517 fi
17518 ;;
17519 esac
17520 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17521 # soname into executable. Probably we can add versioning support to
17522 # collect2, so additional links can be useful in future.
17523 if test "$aix_use_runtimelinking" = yes; then
17524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17525 # instead of lib<name>.a to let people know that these are not
17526 # typical AIX shared libraries.
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 else
17529 # We preserve .a as extension for shared libraries through AIX4.2
17530 # and later when we are not doing run time linking.
17531 library_names_spec='${libname}${release}.a $libname.a'
17532 soname_spec='${libname}${release}${shared_ext}$major'
17533 fi
17534 shlibpath_var=LIBPATH
17535 fi
17536 ;;
17537
17538amigaos*)
17539 library_names_spec='$libname.ixlibrary $libname.a'
17540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017541 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 +000017542 ;;
17543
17544beos*)
17545 library_names_spec='${libname}${shared_ext}'
17546 dynamic_linker="$host_os ld.so"
17547 shlibpath_var=LIBRARY_PATH
17548 ;;
17549
Reid Spencer2706f8c2004-09-19 23:53:36 +000017550bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017551 version_type=linux
17552 need_version=no
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17559 # the default ld.so.conf also contains /usr/contrib/lib and
17560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17561 # libtool to hard-code these into programs
17562 ;;
17563
17564cygwin* | mingw* | pw32*)
17565 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017566 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017567 need_version=no
17568 need_lib_prefix=no
17569
17570 case $GCC,$host_os in
17571 yes,cygwin* | yes,mingw* | yes,pw32*)
17572 library_names_spec='$libname.dll.a'
17573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017574 postinstall_cmds='base_file=`basename \${file}`~
17575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17576 dldir=$destdir/`dirname \$dlpath`~
17577 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017578 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17580 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017581 $rm \$dlpath'
17582 shlibpath_overrides_runpath=yes
17583
17584 case $host_os in
17585 cygwin*)
17586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17587 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 +000017588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017589 ;;
17590 mingw*)
17591 # MinGW DLLs use traditional 'lib' prefix
17592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17595 # It is most probably a Windows format PATH printed by
17596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17597 # path with ; separators, and with drive letters. We can handle the
17598 # drive letters (cygwin fileutils understands them), so leave them,
17599 # especially as we might pass files found there to a mingw objdump,
17600 # which wouldn't understand a cygwinified path. Ahh.
17601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17602 else
17603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17604 fi
17605 ;;
17606 pw32*)
17607 # pw32 DLLs use 'pw' prefix rather than 'lib'
17608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17609 ;;
17610 esac
17611 ;;
17612
17613 *)
17614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17615 ;;
17616 esac
17617 dynamic_linker='Win32 ld.exe'
17618 # FIXME: first we should search . and the directory the executable is in
17619 shlibpath_var=PATH
17620 ;;
17621
17622darwin* | rhapsody*)
17623 dynamic_linker="$host_os dyld"
17624 version_type=darwin
17625 need_lib_prefix=no
17626 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017628 soname_spec='${libname}${release}${major}$shared_ext'
17629 shlibpath_overrides_runpath=yes
17630 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017633 if test "$GCC" = yes; then
17634 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"`
17635 else
17636 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017637 fi
17638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17639 ;;
17640
17641dgux*)
17642 version_type=linux
17643 need_lib_prefix=no
17644 need_version=no
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 ;;
17649
17650freebsd1*)
17651 dynamic_linker=no
17652 ;;
17653
Reid Spencer2706f8c2004-09-19 23:53:36 +000017654kfreebsd*-gnu)
17655 version_type=linux
17656 need_lib_prefix=no
17657 need_version=no
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17659 soname_spec='${libname}${release}${shared_ext}$major'
17660 shlibpath_var=LD_LIBRARY_PATH
17661 shlibpath_overrides_runpath=no
17662 hardcode_into_libs=yes
17663 dynamic_linker='GNU ld.so'
17664 ;;
17665
John Criswell47fdd832003-07-14 16:52:07 +000017666freebsd*)
17667 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17668 version_type=freebsd-$objformat
17669 case $version_type in
17670 freebsd-elf*)
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17672 need_version=no
17673 need_lib_prefix=no
17674 ;;
17675 freebsd-*)
17676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17677 need_version=yes
17678 ;;
17679 esac
17680 shlibpath_var=LD_LIBRARY_PATH
17681 case $host_os in
17682 freebsd2*)
17683 shlibpath_overrides_runpath=yes
17684 ;;
17685 freebsd3.01* | freebsdelf3.01*)
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17688 ;;
17689 *) # from 3.2 on
17690 shlibpath_overrides_runpath=no
17691 hardcode_into_libs=yes
17692 ;;
17693 esac
17694 ;;
17695
17696gnu*)
17697 version_type=linux
17698 need_lib_prefix=no
17699 need_version=no
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 shlibpath_var=LD_LIBRARY_PATH
17703 hardcode_into_libs=yes
17704 ;;
17705
17706hpux9* | hpux10* | hpux11*)
17707 # Give a soname corresponding to the major version so that dld.sl refuses to
17708 # link against other versions.
17709 version_type=sunos
17710 need_lib_prefix=no
17711 need_version=no
17712 case "$host_cpu" in
17713 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017714 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017715 hardcode_into_libs=yes
17716 dynamic_linker="$host_os dld.so"
17717 shlibpath_var=LD_LIBRARY_PATH
17718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 if test "X$HPUX_IA64_MODE" = X32; then
17722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17723 else
17724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17725 fi
17726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17727 ;;
17728 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017729 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017730 hardcode_into_libs=yes
17731 dynamic_linker="$host_os dld.sl"
17732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17735 soname_spec='${libname}${release}${shared_ext}$major'
17736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17738 ;;
17739 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017740 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017741 dynamic_linker="$host_os dld.sl"
17742 shlibpath_var=SHLIB_PATH
17743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745 soname_spec='${libname}${release}${shared_ext}$major'
17746 ;;
17747 esac
17748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17749 postinstall_cmds='chmod 555 $lib'
17750 ;;
17751
17752irix5* | irix6* | nonstopux*)
17753 case $host_os in
17754 nonstopux*) version_type=nonstopux ;;
17755 *)
17756 if test "$lt_cv_prog_gnu_ld" = yes; then
17757 version_type=linux
17758 else
17759 version_type=irix
17760 fi ;;
17761 esac
17762 need_lib_prefix=no
17763 need_version=no
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17766 case $host_os in
17767 irix5* | nonstopux*)
17768 libsuff= shlibsuff=
17769 ;;
17770 *)
17771 case $LD in # libtool.m4 will add one of these switches to LD
17772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17773 libsuff= shlibsuff= libmagic=32-bit;;
17774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17775 libsuff=32 shlibsuff=N32 libmagic=N32;;
17776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17778 *) libsuff= shlibsuff= libmagic=never-match;;
17779 esac
17780 ;;
17781 esac
17782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17783 shlibpath_overrides_runpath=no
17784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17786 hardcode_into_libs=yes
17787 ;;
17788
17789# No shared lib support for Linux oldld, aout, or coff.
17790linux*oldld* | linux*aout* | linux*coff*)
17791 dynamic_linker=no
17792 ;;
17793
17794# This must be Linux ELF.
17795linux*)
17796 version_type=linux
17797 need_lib_prefix=no
17798 need_version=no
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=no
17804 # This implies no fast_install, which is unacceptable.
17805 # Some rework will be needed to allow for fast_install
17806 # before this can be enabled.
17807 hardcode_into_libs=yes
17808
Reid Spencer2706f8c2004-09-19 23:53:36 +000017809 # Append ld.so.conf contents to the search path
17810 if test -f /etc/ld.so.conf; then
17811 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17813 fi
17814
John Criswell47fdd832003-07-14 16:52:07 +000017815 # We used to test for /lib/ld.so.1 and disable shared libraries on
17816 # powerpc, because MkLinux only supported shared libraries with the
17817 # GNU dynamic linker. Since this was broken with cross compilers,
17818 # most powerpc-linux boxes support dynamic linking these days and
17819 # people can always --disable-shared, the test was removed, and we
17820 # assume the GNU/Linux dynamic linker is in use.
17821 dynamic_linker='GNU/Linux ld.so'
17822 ;;
17823
Reid Spencer2706f8c2004-09-19 23:53:36 +000017824knetbsd*-gnu)
17825 version_type=linux
17826 need_lib_prefix=no
17827 need_version=no
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=no
17832 hardcode_into_libs=yes
17833 dynamic_linker='GNU ld.so'
17834 ;;
17835
John Criswell47fdd832003-07-14 16:52:07 +000017836netbsd*)
17837 version_type=sunos
17838 need_lib_prefix=no
17839 need_version=no
17840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17843 dynamic_linker='NetBSD (a.out) ld.so'
17844 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017846 soname_spec='${libname}${release}${shared_ext}$major'
17847 dynamic_linker='NetBSD ld.elf_so'
17848 fi
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=yes
17851 hardcode_into_libs=yes
17852 ;;
17853
17854newsos6)
17855 version_type=linux
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath=yes
17859 ;;
17860
Reid Spencer2706f8c2004-09-19 23:53:36 +000017861nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017862 version_type=linux
17863 need_lib_prefix=no
17864 need_version=no
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17869 ;;
17870
17871openbsd*)
17872 version_type=sunos
17873 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017874 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17879 case $host_os in
17880 openbsd2.[89] | openbsd2.[89].*)
17881 shlibpath_overrides_runpath=no
17882 ;;
17883 *)
17884 shlibpath_overrides_runpath=yes
17885 ;;
17886 esac
17887 else
17888 shlibpath_overrides_runpath=yes
17889 fi
17890 ;;
17891
17892os2*)
17893 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017894 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017895 need_lib_prefix=no
17896 library_names_spec='$libname${shared_ext} $libname.a'
17897 dynamic_linker='OS/2 ld.exe'
17898 shlibpath_var=LIBPATH
17899 ;;
17900
17901osf3* | osf4* | osf5*)
17902 version_type=osf
17903 need_lib_prefix=no
17904 need_version=no
17905 soname_spec='${libname}${release}${shared_ext}$major'
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17907 shlibpath_var=LD_LIBRARY_PATH
17908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17910 ;;
17911
17912sco3.2v5*)
17913 version_type=osf
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 shlibpath_var=LD_LIBRARY_PATH
17917 ;;
17918
17919solaris*)
17920 version_type=linux
17921 need_lib_prefix=no
17922 need_version=no
17923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924 soname_spec='${libname}${release}${shared_ext}$major'
17925 shlibpath_var=LD_LIBRARY_PATH
17926 shlibpath_overrides_runpath=yes
17927 hardcode_into_libs=yes
17928 # ldd complains unless libraries are executable
17929 postinstall_cmds='chmod +x $lib'
17930 ;;
17931
17932sunos4*)
17933 version_type=sunos
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17936 shlibpath_var=LD_LIBRARY_PATH
17937 shlibpath_overrides_runpath=yes
17938 if test "$with_gnu_ld" = yes; then
17939 need_lib_prefix=no
17940 fi
17941 need_version=yes
17942 ;;
17943
17944sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17945 version_type=linux
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 shlibpath_var=LD_LIBRARY_PATH
17949 case $host_vendor in
17950 sni)
17951 shlibpath_overrides_runpath=no
17952 need_lib_prefix=no
17953 export_dynamic_flag_spec='${wl}-Blargedynsym'
17954 runpath_var=LD_RUN_PATH
17955 ;;
17956 siemens)
17957 need_lib_prefix=no
17958 ;;
17959 motorola)
17960 need_lib_prefix=no
17961 need_version=no
17962 shlibpath_overrides_runpath=no
17963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17964 ;;
17965 esac
17966 ;;
17967
17968sysv4*MP*)
17969 if test -d /usr/nec ;then
17970 version_type=linux
17971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17972 soname_spec='$libname${shared_ext}.$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 fi
17975 ;;
17976
17977uts4*)
17978 version_type=linux
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 ;;
17983
17984*)
17985 dynamic_linker=no
17986 ;;
17987esac
17988echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17989echo "${ECHO_T}$dynamic_linker" >&6
17990test "$dynamic_linker" = no && can_build_shared=no
17991
Reid Spencer2706f8c2004-09-19 23:53:36 +000017992echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17993echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17994hardcode_action_GCJ=
17995if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17996 test -n "$runpath_var_GCJ" || \
17997 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17998
17999 # We can hardcode non-existant directories.
18000 if test "$hardcode_direct_GCJ" != no &&
18001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18002 # have to relink, otherwise we might link with an installed library
18003 # when we should be linking with a yet-to-be-installed one
18004 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18005 test "$hardcode_minus_L_GCJ" != no; then
18006 # Linking always hardcodes the temporary library directory.
18007 hardcode_action_GCJ=relink
18008 else
18009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18010 hardcode_action_GCJ=immediate
18011 fi
18012else
18013 # We cannot hardcode anything, or else we can only hardcode existing
18014 # directories.
18015 hardcode_action_GCJ=unsupported
18016fi
18017echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18018echo "${ECHO_T}$hardcode_action_GCJ" >&6
18019
18020if test "$hardcode_action_GCJ" = relink; then
18021 # Fast installation is not supported
18022 enable_fast_install=no
18023elif test "$shlibpath_overrides_runpath" = yes ||
18024 test "$enable_shared" = no; then
18025 # Fast installation is not necessary
18026 enable_fast_install=needless
18027fi
18028
18029striplib=
18030old_striplib=
18031echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18032echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18033if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18036 echo "$as_me:$LINENO: result: yes" >&5
18037echo "${ECHO_T}yes" >&6
18038else
18039# FIXME - insert some real tests, host_os isn't really good enough
18040 case $host_os in
18041 darwin*)
18042 if test -n "$STRIP" ; then
18043 striplib="$STRIP -x"
18044 echo "$as_me:$LINENO: result: yes" >&5
18045echo "${ECHO_T}yes" >&6
18046 else
18047 echo "$as_me:$LINENO: result: no" >&5
18048echo "${ECHO_T}no" >&6
18049fi
18050 ;;
18051 *)
18052 echo "$as_me:$LINENO: result: no" >&5
18053echo "${ECHO_T}no" >&6
18054 ;;
18055 esac
18056fi
18057
John Criswell47fdd832003-07-14 16:52:07 +000018058if test "x$enable_dlopen" != xyes; then
18059 enable_dlopen=unknown
18060 enable_dlopen_self=unknown
18061 enable_dlopen_self_static=unknown
18062else
18063 lt_cv_dlopen=no
18064 lt_cv_dlopen_libs=
18065
18066 case $host_os in
18067 beos*)
18068 lt_cv_dlopen="load_add_on"
18069 lt_cv_dlopen_libs=
18070 lt_cv_dlopen_self=yes
18071 ;;
18072
18073 mingw* | pw32*)
18074 lt_cv_dlopen="LoadLibrary"
18075 lt_cv_dlopen_libs=
18076 ;;
18077
18078 cygwin*)
18079 lt_cv_dlopen="dlopen"
18080 lt_cv_dlopen_libs=
18081 ;;
18082
18083 darwin*)
18084 # if libdl is installed we need to link against it
18085 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18086echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18087if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090 ac_check_lib_save_LIBS=$LIBS
18091LIBS="-ldl $LIBS"
18092cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018098
18099/* Override any gcc2 internal prototype to avoid an error. */
18100#ifdef __cplusplus
18101extern "C"
18102#endif
18103/* We use char because int might match the return type of a gcc2
18104 builtin and then its argument prototype would still apply. */
18105char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018106int
18107main ()
18108{
18109dlopen ();
18110 ;
18111 return 0;
18112}
18113_ACEOF
18114rm -f conftest.$ac_objext conftest$ac_exeext
18115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018116 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_cv_lib_dl_dlopen=yes
18137else
18138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018139sed 's/^/| /' conftest.$ac_ext >&5
18140
John Criswell47fdd832003-07-14 16:52:07 +000018141ac_cv_lib_dl_dlopen=no
18142fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018143rm -f conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018145LIBS=$ac_check_lib_save_LIBS
18146fi
18147echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18148echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18149if test $ac_cv_lib_dl_dlopen = yes; then
18150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18151else
18152
18153 lt_cv_dlopen="dyld"
18154 lt_cv_dlopen_libs=
18155 lt_cv_dlopen_self=yes
18156
18157fi
18158
18159 ;;
18160
18161 *)
18162 echo "$as_me:$LINENO: checking for shl_load" >&5
18163echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18164if test "${ac_cv_func_shl_load+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166else
18167 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018168/* confdefs.h. */
18169_ACEOF
18170cat confdefs.h >>conftest.$ac_ext
18171cat >>conftest.$ac_ext <<_ACEOF
18172/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018173/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175#define shl_load innocuous_shl_load
18176
John Criswell47fdd832003-07-14 16:52:07 +000018177/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018178 which can conflict with char shl_load (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018181
John Criswell0c38eaf2003-09-10 15:17:25 +000018182#ifdef __STDC__
18183# include <limits.h>
18184#else
18185# include <assert.h>
18186#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018187
18188#undef shl_load
18189
John Criswell47fdd832003-07-14 16:52:07 +000018190/* Override any gcc2 internal prototype to avoid an error. */
18191#ifdef __cplusplus
18192extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018193{
John Criswell47fdd832003-07-14 16:52:07 +000018194#endif
18195/* We use char because int might match the return type of a gcc2
18196 builtin and then its argument prototype would still apply. */
18197char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018198/* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201#if defined (__stub_shl_load) || defined (__stub___shl_load)
18202choke me
18203#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018204char (*f) () = shl_load;
18205#endif
18206#ifdef __cplusplus
18207}
John Criswell47fdd832003-07-14 16:52:07 +000018208#endif
18209
John Criswell0c38eaf2003-09-10 15:17:25 +000018210int
18211main ()
18212{
18213return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000018214 ;
18215 return 0;
18216}
18217_ACEOF
18218rm -f conftest.$ac_objext conftest$ac_exeext
18219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018220 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018227 { ac_try='test -z "$ac_c_werror_flag"
18228 || test ! -s conftest.err'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_cv_func_shl_load=yes
18241else
18242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018243sed 's/^/| /' conftest.$ac_ext >&5
18244
John Criswell47fdd832003-07-14 16:52:07 +000018245ac_cv_func_shl_load=no
18246fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018247rm -f conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018249fi
18250echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18251echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18252if test $ac_cv_func_shl_load = yes; then
18253 lt_cv_dlopen="shl_load"
18254else
18255 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18256echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18257if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259else
18260 ac_check_lib_save_LIBS=$LIBS
18261LIBS="-ldld $LIBS"
18262cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018268
18269/* Override any gcc2 internal prototype to avoid an error. */
18270#ifdef __cplusplus
18271extern "C"
18272#endif
18273/* We use char because int might match the return type of a gcc2
18274 builtin and then its argument prototype would still apply. */
18275char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000018276int
18277main ()
18278{
18279shl_load ();
18280 ;
18281 return 0;
18282}
18283_ACEOF
18284rm -f conftest.$ac_objext conftest$ac_exeext
18285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018286 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018293 { ac_try='test -z "$ac_c_werror_flag"
18294 || test ! -s conftest.err'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_dld_shl_load=yes
18307else
18308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018309sed 's/^/| /' conftest.$ac_ext >&5
18310
John Criswell47fdd832003-07-14 16:52:07 +000018311ac_cv_lib_dld_shl_load=no
18312fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018313rm -f conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018315LIBS=$ac_check_lib_save_LIBS
18316fi
18317echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18318echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18319if test $ac_cv_lib_dld_shl_load = yes; then
18320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18321else
18322 echo "$as_me:$LINENO: checking for dlopen" >&5
18323echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18324if test "${ac_cv_func_dlopen+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18326else
18327 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018333/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18335#define dlopen innocuous_dlopen
18336
John Criswell47fdd832003-07-14 16:52:07 +000018337/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000018338 which can conflict with char dlopen (); below.
18339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000018341
John Criswell0c38eaf2003-09-10 15:17:25 +000018342#ifdef __STDC__
18343# include <limits.h>
18344#else
18345# include <assert.h>
18346#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000018347
18348#undef dlopen
18349
John Criswell47fdd832003-07-14 16:52:07 +000018350/* Override any gcc2 internal prototype to avoid an error. */
18351#ifdef __cplusplus
18352extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000018353{
John Criswell47fdd832003-07-14 16:52:07 +000018354#endif
18355/* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018358/* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361#if defined (__stub_dlopen) || defined (__stub___dlopen)
18362choke me
18363#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018364char (*f) () = dlopen;
18365#endif
18366#ifdef __cplusplus
18367}
John Criswell47fdd832003-07-14 16:52:07 +000018368#endif
18369
John Criswell0c38eaf2003-09-10 15:17:25 +000018370int
18371main ()
18372{
18373return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000018374 ;
18375 return 0;
18376}
18377_ACEOF
18378rm -f conftest.$ac_objext conftest$ac_exeext
18379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018380 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018387 { ac_try='test -z "$ac_c_werror_flag"
18388 || test ! -s conftest.err'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18391 ac_status=$?
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } &&
18394 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_cv_func_dlopen=yes
18401else
18402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018403sed 's/^/| /' conftest.$ac_ext >&5
18404
John Criswell47fdd832003-07-14 16:52:07 +000018405ac_cv_func_dlopen=no
18406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018407rm -f conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018409fi
18410echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18411echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18412if test $ac_cv_func_dlopen = yes; then
18413 lt_cv_dlopen="dlopen"
18414else
18415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18416echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18417if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18419else
18420 ac_check_lib_save_LIBS=$LIBS
18421LIBS="-ldl $LIBS"
18422cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018423/* confdefs.h. */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018428
18429/* Override any gcc2 internal prototype to avoid an error. */
18430#ifdef __cplusplus
18431extern "C"
18432#endif
18433/* We use char because int might match the return type of a gcc2
18434 builtin and then its argument prototype would still apply. */
18435char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018436int
18437main ()
18438{
18439dlopen ();
18440 ;
18441 return 0;
18442}
18443_ACEOF
18444rm -f conftest.$ac_objext conftest$ac_exeext
18445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018446 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018453 { ac_try='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_cv_lib_dl_dlopen=yes
18467else
18468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018469sed 's/^/| /' conftest.$ac_ext >&5
18470
John Criswell47fdd832003-07-14 16:52:07 +000018471ac_cv_lib_dl_dlopen=no
18472fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018473rm -f conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018475LIBS=$ac_check_lib_save_LIBS
18476fi
18477echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18478echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18479if test $ac_cv_lib_dl_dlopen = yes; then
18480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18481else
18482 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18483echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18484if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 ac_check_lib_save_LIBS=$LIBS
18488LIBS="-lsvld $LIBS"
18489cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018495
18496/* Override any gcc2 internal prototype to avoid an error. */
18497#ifdef __cplusplus
18498extern "C"
18499#endif
18500/* We use char because int might match the return type of a gcc2
18501 builtin and then its argument prototype would still apply. */
18502char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018503int
18504main ()
18505{
18506dlopen ();
18507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext conftest$ac_exeext
18512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018513 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018520 { ac_try='test -z "$ac_c_werror_flag"
18521 || test ! -s conftest.err'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; } &&
18527 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_svld_dlopen=yes
18534else
18535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018536sed 's/^/| /' conftest.$ac_ext >&5
18537
John Criswell47fdd832003-07-14 16:52:07 +000018538ac_cv_lib_svld_dlopen=no
18539fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018540rm -f conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018542LIBS=$ac_check_lib_save_LIBS
18543fi
18544echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18545echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18546if test $ac_cv_lib_svld_dlopen = yes; then
18547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18548else
18549 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18550echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18551if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 ac_check_lib_save_LIBS=$LIBS
18555LIBS="-ldld $LIBS"
18556cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018557/* confdefs.h. */
18558_ACEOF
18559cat confdefs.h >>conftest.$ac_ext
18560cat >>conftest.$ac_ext <<_ACEOF
18561/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018562
18563/* Override any gcc2 internal prototype to avoid an error. */
18564#ifdef __cplusplus
18565extern "C"
18566#endif
18567/* We use char because int might match the return type of a gcc2
18568 builtin and then its argument prototype would still apply. */
18569char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018570int
18571main ()
18572{
18573dld_link ();
18574 ;
18575 return 0;
18576}
18577_ACEOF
18578rm -f conftest.$ac_objext conftest$ac_exeext
18579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018580 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018582 grep -v '^ *+' conftest.er1 >conftest.err
18583 rm -f conftest.er1
18584 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_lib_dld_dld_link=yes
18601else
18602 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018603sed 's/^/| /' conftest.$ac_ext >&5
18604
John Criswell47fdd832003-07-14 16:52:07 +000018605ac_cv_lib_dld_dld_link=no
18606fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018607rm -f conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018609LIBS=$ac_check_lib_save_LIBS
18610fi
18611echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18612echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18613if test $ac_cv_lib_dld_dld_link = yes; then
18614 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18615fi
18616
18617
18618fi
18619
18620
18621fi
18622
18623
18624fi
18625
18626
18627fi
18628
18629
18630fi
18631
18632 ;;
18633 esac
18634
18635 if test "x$lt_cv_dlopen" != xno; then
18636 enable_dlopen=yes
18637 else
18638 enable_dlopen=no
18639 fi
18640
18641 case $lt_cv_dlopen in
18642 dlopen)
18643 save_CPPFLAGS="$CPPFLAGS"
18644 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18645
18646 save_LDFLAGS="$LDFLAGS"
18647 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18648
18649 save_LIBS="$LIBS"
18650 LIBS="$lt_cv_dlopen_libs $LIBS"
18651
18652 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18653echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18654if test "${lt_cv_dlopen_self+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656else
18657 if test "$cross_compiling" = yes; then :
18658 lt_cv_dlopen_self=cross
18659else
18660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18661 lt_status=$lt_dlunknown
18662 cat > conftest.$ac_ext <<EOF
Reid Spencer1f319422004-11-29 04:56:35 +000018663#line 18663 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018664#include "confdefs.h"
18665
18666#if HAVE_DLFCN_H
18667#include <dlfcn.h>
18668#endif
18669
18670#include <stdio.h>
18671
18672#ifdef RTLD_GLOBAL
18673# define LT_DLGLOBAL RTLD_GLOBAL
18674#else
18675# ifdef DL_GLOBAL
18676# define LT_DLGLOBAL DL_GLOBAL
18677# else
18678# define LT_DLGLOBAL 0
18679# endif
18680#endif
18681
18682/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18683 find out it does not work in some platform. */
18684#ifndef LT_DLLAZY_OR_NOW
18685# ifdef RTLD_LAZY
18686# define LT_DLLAZY_OR_NOW RTLD_LAZY
18687# else
18688# ifdef DL_LAZY
18689# define LT_DLLAZY_OR_NOW DL_LAZY
18690# else
18691# ifdef RTLD_NOW
18692# define LT_DLLAZY_OR_NOW RTLD_NOW
18693# else
18694# ifdef DL_NOW
18695# define LT_DLLAZY_OR_NOW DL_NOW
18696# else
18697# define LT_DLLAZY_OR_NOW 0
18698# endif
18699# endif
18700# endif
18701# endif
18702#endif
18703
18704#ifdef __cplusplus
18705extern "C" void exit (int);
18706#endif
18707
18708void fnord() { int i=42;}
18709int main ()
18710{
18711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18712 int status = $lt_dlunknown;
18713
18714 if (self)
18715 {
18716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18718 /* dlclose (self); */
18719 }
18720
18721 exit (status);
18722}
18723EOF
18724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18725 (eval $ac_link) 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18729 (./conftest; exit; ) 2>/dev/null
18730 lt_status=$?
18731 case x$lt_status in
18732 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18733 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18734 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18735 esac
18736 else :
18737 # compilation failed
18738 lt_cv_dlopen_self=no
18739 fi
18740fi
18741rm -fr conftest*
18742
18743
18744fi
18745echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18746echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18747
18748 if test "x$lt_cv_dlopen_self" = xyes; then
18749 LDFLAGS="$LDFLAGS $link_static_flag"
18750 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18751echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18752if test "${lt_cv_dlopen_self_static+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754else
18755 if test "$cross_compiling" = yes; then :
18756 lt_cv_dlopen_self_static=cross
18757else
18758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18759 lt_status=$lt_dlunknown
18760 cat > conftest.$ac_ext <<EOF
Reid Spencer1f319422004-11-29 04:56:35 +000018761#line 18761 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018762#include "confdefs.h"
18763
18764#if HAVE_DLFCN_H
18765#include <dlfcn.h>
18766#endif
18767
18768#include <stdio.h>
18769
18770#ifdef RTLD_GLOBAL
18771# define LT_DLGLOBAL RTLD_GLOBAL
18772#else
18773# ifdef DL_GLOBAL
18774# define LT_DLGLOBAL DL_GLOBAL
18775# else
18776# define LT_DLGLOBAL 0
18777# endif
18778#endif
18779
18780/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18781 find out it does not work in some platform. */
18782#ifndef LT_DLLAZY_OR_NOW
18783# ifdef RTLD_LAZY
18784# define LT_DLLAZY_OR_NOW RTLD_LAZY
18785# else
18786# ifdef DL_LAZY
18787# define LT_DLLAZY_OR_NOW DL_LAZY
18788# else
18789# ifdef RTLD_NOW
18790# define LT_DLLAZY_OR_NOW RTLD_NOW
18791# else
18792# ifdef DL_NOW
18793# define LT_DLLAZY_OR_NOW DL_NOW
18794# else
18795# define LT_DLLAZY_OR_NOW 0
18796# endif
18797# endif
18798# endif
18799# endif
18800#endif
18801
18802#ifdef __cplusplus
18803extern "C" void exit (int);
18804#endif
18805
18806void fnord() { int i=42;}
18807int main ()
18808{
18809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18810 int status = $lt_dlunknown;
18811
18812 if (self)
18813 {
18814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18816 /* dlclose (self); */
18817 }
18818
18819 exit (status);
18820}
18821EOF
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823 (eval $ac_link) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18827 (./conftest; exit; ) 2>/dev/null
18828 lt_status=$?
18829 case x$lt_status in
18830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18832 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18833 esac
18834 else :
18835 # compilation failed
18836 lt_cv_dlopen_self_static=no
18837 fi
18838fi
18839rm -fr conftest*
18840
18841
18842fi
18843echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18844echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18845 fi
18846
18847 CPPFLAGS="$save_CPPFLAGS"
18848 LDFLAGS="$save_LDFLAGS"
18849 LIBS="$save_LIBS"
18850 ;;
18851 esac
18852
18853 case $lt_cv_dlopen_self in
18854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18855 *) enable_dlopen_self=unknown ;;
18856 esac
18857
18858 case $lt_cv_dlopen_self_static in
18859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18860 *) enable_dlopen_self_static=unknown ;;
18861 esac
18862fi
18863
18864
18865# The else clause should only fire when bootstrapping the
18866# libtool distribution, otherwise you forgot to ship ltmain.sh
18867# with your package, and you will get complaints that there are
18868# no rules to generate ltmain.sh.
18869if test -f "$ltmain"; then
18870 # See if we are running on zsh, and set the options which allow our commands through
18871 # without removal of \ escapes.
18872 if test -n "${ZSH_VERSION+set}" ; then
18873 setopt NO_GLOB_SUBST
18874 fi
18875 # Now quote all the things that may contain metacharacters while being
18876 # careful not to overquote the AC_SUBSTed values. We take copies of the
18877 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018878 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18879 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018880 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18881 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18882 deplibs_check_method reload_flag reload_cmds need_locks \
18883 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18884 lt_cv_sys_global_symbol_to_c_name_address \
18885 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18886 old_postinstall_cmds old_postuninstall_cmds \
18887 compiler_GCJ \
18888 CC_GCJ \
18889 LD_GCJ \
18890 lt_prog_compiler_wl_GCJ \
18891 lt_prog_compiler_pic_GCJ \
18892 lt_prog_compiler_static_GCJ \
18893 lt_prog_compiler_no_builtin_flag_GCJ \
18894 export_dynamic_flag_spec_GCJ \
18895 thread_safe_flag_spec_GCJ \
18896 whole_archive_flag_spec_GCJ \
18897 enable_shared_with_static_runtimes_GCJ \
18898 old_archive_cmds_GCJ \
18899 old_archive_from_new_cmds_GCJ \
18900 predep_objects_GCJ \
18901 postdep_objects_GCJ \
18902 predeps_GCJ \
18903 postdeps_GCJ \
18904 compiler_lib_search_path_GCJ \
18905 archive_cmds_GCJ \
18906 archive_expsym_cmds_GCJ \
18907 postinstall_cmds_GCJ \
18908 postuninstall_cmds_GCJ \
18909 old_archive_from_expsyms_cmds_GCJ \
18910 allow_undefined_flag_GCJ \
18911 no_undefined_flag_GCJ \
18912 export_symbols_cmds_GCJ \
18913 hardcode_libdir_flag_spec_GCJ \
18914 hardcode_libdir_flag_spec_ld_GCJ \
18915 hardcode_libdir_separator_GCJ \
18916 hardcode_automatic_GCJ \
18917 module_cmds_GCJ \
18918 module_expsym_cmds_GCJ \
18919 lt_cv_prog_compiler_c_o_GCJ \
18920 exclude_expsyms_GCJ \
18921 include_expsyms_GCJ; do
18922
18923 case $var in
18924 old_archive_cmds_GCJ | \
18925 old_archive_from_new_cmds_GCJ | \
18926 archive_cmds_GCJ | \
18927 archive_expsym_cmds_GCJ | \
18928 module_cmds_GCJ | \
18929 module_expsym_cmds_GCJ | \
18930 old_archive_from_expsyms_cmds_GCJ | \
18931 export_symbols_cmds_GCJ | \
18932 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18933 postinstall_cmds | postuninstall_cmds | \
18934 old_postinstall_cmds | old_postuninstall_cmds | \
18935 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18936 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018937 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 +000018938 ;;
18939 *)
18940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18941 ;;
18942 esac
18943 done
18944
18945 case $lt_echo in
18946 *'\$0 --fallback-echo"')
18947 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18948 ;;
18949 esac
18950
18951cfgfile="$ofile"
18952
18953 cat <<__EOF__ >> "$cfgfile"
18954# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18955
18956# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18957
18958# Shell to use when invoking shell scripts.
18959SHELL=$lt_SHELL
18960
18961# Whether or not to build shared libraries.
18962build_libtool_libs=$enable_shared
18963
18964# Whether or not to build static libraries.
18965build_old_libs=$enable_static
18966
18967# Whether or not to add -lc for building shared libraries.
18968build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18969
18970# Whether or not to disallow shared libs when runtime libs are static
18971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18972
18973# Whether or not to optimize for fast installation.
18974fast_install=$enable_fast_install
18975
18976# The host system.
18977host_alias=$host_alias
18978host=$host
18979
18980# An echo program that does not interpret backslashes.
18981echo=$lt_echo
18982
18983# The archiver.
18984AR=$lt_AR
18985AR_FLAGS=$lt_AR_FLAGS
18986
18987# A C compiler.
18988LTCC=$lt_LTCC
18989
18990# A language-specific compiler.
18991CC=$lt_compiler_GCJ
18992
18993# Is the compiler the GNU C compiler?
18994with_gcc=$GCC_GCJ
18995
18996# An ERE matcher.
18997EGREP=$lt_EGREP
18998
18999# The linker used to build libraries.
19000LD=$lt_LD_GCJ
19001
19002# Whether we need hard or soft links.
19003LN_S=$lt_LN_S
19004
19005# A BSD-compatible nm program.
19006NM=$lt_NM
19007
19008# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019009STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019010
19011# Used to examine libraries when file_magic_cmd begins "file"
19012MAGIC_CMD=$MAGIC_CMD
19013
19014# Used on cygwin: DLL creation program.
19015DLLTOOL="$DLLTOOL"
19016
19017# Used on cygwin: object dumper.
19018OBJDUMP="$OBJDUMP"
19019
19020# Used on cygwin: assembler.
19021AS="$AS"
19022
19023# The name of the directory that contains temporary libtool files.
19024objdir=$objdir
19025
19026# How to create reloadable object files.
19027reload_flag=$lt_reload_flag
19028reload_cmds=$lt_reload_cmds
19029
19030# How to pass a linker flag through the compiler.
19031wl=$lt_lt_prog_compiler_wl_GCJ
19032
19033# Object file suffix (normally "o").
19034objext="$ac_objext"
19035
19036# Old archive suffix (normally "a").
19037libext="$libext"
19038
19039# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019040shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019041
19042# Executable file suffix (normally "").
19043exeext="$exeext"
19044
19045# Additional compiler flags for building library objects.
19046pic_flag=$lt_lt_prog_compiler_pic_GCJ
19047pic_mode=$pic_mode
19048
19049# What is the maximum length of a command?
19050max_cmd_len=$lt_cv_sys_max_cmd_len
19051
19052# Does compiler simultaneously support -c and -o options?
19053compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19054
19055# Must we lock files when doing compilation ?
19056need_locks=$lt_need_locks
19057
19058# Do we need the lib prefix for modules?
19059need_lib_prefix=$need_lib_prefix
19060
19061# Do we need a version for libraries?
19062need_version=$need_version
19063
19064# Whether dlopen is supported.
19065dlopen_support=$enable_dlopen
19066
19067# Whether dlopen of programs is supported.
19068dlopen_self=$enable_dlopen_self
19069
19070# Whether dlopen of statically linked programs is supported.
19071dlopen_self_static=$enable_dlopen_self_static
19072
19073# Compiler flag to prevent dynamic linking.
19074link_static_flag=$lt_lt_prog_compiler_static_GCJ
19075
19076# Compiler flag to turn off builtin functions.
19077no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19078
19079# Compiler flag to allow reflexive dlopens.
19080export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19081
19082# Compiler flag to generate shared objects directly from archives.
19083whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19084
19085# Compiler flag to generate thread-safe objects.
19086thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19087
19088# Library versioning type.
19089version_type=$version_type
19090
19091# Format of library name prefix.
19092libname_spec=$lt_libname_spec
19093
19094# List of archive names. First name is the real one, the rest are links.
19095# The last name is the one that the linker finds with -lNAME.
19096library_names_spec=$lt_library_names_spec
19097
19098# The coded name of the library, if different from the real name.
19099soname_spec=$lt_soname_spec
19100
19101# Commands used to build and install an old-style archive.
19102RANLIB=$lt_RANLIB
19103old_archive_cmds=$lt_old_archive_cmds_GCJ
19104old_postinstall_cmds=$lt_old_postinstall_cmds
19105old_postuninstall_cmds=$lt_old_postuninstall_cmds
19106
19107# Create an old-style archive from a shared archive.
19108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19109
19110# Create a temporary old-style archive to link instead of a shared archive.
19111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19112
19113# Commands used to build and install a shared archive.
19114archive_cmds=$lt_archive_cmds_GCJ
19115archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19116postinstall_cmds=$lt_postinstall_cmds
19117postuninstall_cmds=$lt_postuninstall_cmds
19118
19119# Commands used to build a loadable module (assumed same as above if empty)
19120module_cmds=$lt_module_cmds_GCJ
19121module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19122
19123# Commands to strip libraries.
19124old_striplib=$lt_old_striplib
19125striplib=$lt_striplib
19126
19127# Dependencies to place before the objects being linked to create a
19128# shared library.
19129predep_objects=$lt_predep_objects_GCJ
19130
19131# Dependencies to place after the objects being linked to create a
19132# shared library.
19133postdep_objects=$lt_postdep_objects_GCJ
19134
19135# Dependencies to place before the objects being linked to create a
19136# shared library.
19137predeps=$lt_predeps_GCJ
19138
19139# Dependencies to place after the objects being linked to create a
19140# shared library.
19141postdeps=$lt_postdeps_GCJ
19142
19143# The library search path used internally by the compiler when linking
19144# a shared library.
19145compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19146
19147# Method to check whether dependent libraries are shared objects.
19148deplibs_check_method=$lt_deplibs_check_method
19149
19150# Command to use when deplibs_check_method == file_magic.
19151file_magic_cmd=$lt_file_magic_cmd
19152
19153# Flag that allows shared libraries with undefined symbols to be built.
19154allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19155
19156# Flag that forces no undefined symbols.
19157no_undefined_flag=$lt_no_undefined_flag_GCJ
19158
19159# Commands used to finish a libtool library installation in a directory.
19160finish_cmds=$lt_finish_cmds
19161
19162# Same as above, but a single script fragment to be evaled but not shown.
19163finish_eval=$lt_finish_eval
19164
19165# Take the output of nm and produce a listing of raw symbols and C names.
19166global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19167
19168# Transform the output of nm in a proper C declaration
19169global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19170
19171# Transform the output of nm in a C name address pair
19172global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19173
19174# This is the shared library runtime path variable.
19175runpath_var=$runpath_var
19176
19177# This is the shared library path variable.
19178shlibpath_var=$shlibpath_var
19179
19180# Is shlibpath searched before the hard-coded library search path?
19181shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19182
19183# How to hardcode a shared library path into an executable.
19184hardcode_action=$hardcode_action_GCJ
19185
19186# Whether we should hardcode library paths into libraries.
19187hardcode_into_libs=$hardcode_into_libs
19188
19189# Flag to hardcode \$libdir into a binary during linking.
19190# This must work even if \$libdir does not exist.
19191hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19192
19193# If ld is used when linking, flag to hardcode \$libdir into
19194# a binary during linking. This must work even if \$libdir does
19195# not exist.
19196hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19197
19198# Whether we need a single -rpath flag with a separated argument.
19199hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19200
19201# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19202# resulting binary.
19203hardcode_direct=$hardcode_direct_GCJ
19204
19205# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19206# resulting binary.
19207hardcode_minus_L=$hardcode_minus_L_GCJ
19208
19209# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19210# the resulting binary.
19211hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19212
19213# Set to yes if building a shared library automatically hardcodes DIR into the library
19214# and all subsequent libraries and executables linked against it.
19215hardcode_automatic=$hardcode_automatic_GCJ
19216
19217# Variables whose values should be saved in libtool wrapper scripts and
19218# restored at relink time.
19219variables_saved_for_relink="$variables_saved_for_relink"
19220
19221# Whether libtool must link a program against all its dependency libraries.
19222link_all_deplibs=$link_all_deplibs_GCJ
19223
19224# Compile-time system search path for libraries
19225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19226
19227# Run-time system search path for libraries
19228sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19229
19230# Fix the shell variable \$srcfile for the compiler.
19231fix_srcfile_path="$fix_srcfile_path_GCJ"
19232
19233# Set to yes if exported symbols are required.
19234always_export_symbols=$always_export_symbols_GCJ
19235
19236# The commands to list exported symbols.
19237export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19238
19239# The commands to extract the exported symbol list from a shared archive.
19240extract_expsyms_cmds=$lt_extract_expsyms_cmds
19241
19242# Symbols that should not be listed in the preloaded symbols.
19243exclude_expsyms=$lt_exclude_expsyms_GCJ
19244
19245# Symbols that must always be exported.
19246include_expsyms=$lt_include_expsyms_GCJ
19247
19248# ### END LIBTOOL TAG CONFIG: $tagname
19249
19250__EOF__
19251
19252
19253else
19254 # If there is no Makefile yet, we rely on a make rule to execute
19255 # `config.status --recheck' to rerun these tests and create the
19256 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19258 if test -f "$ltmain_in"; then
19259 test -f Makefile && make "$ltmain"
19260 fi
John Criswell47fdd832003-07-14 16:52:07 +000019261fi
19262
19263
19264ac_ext=c
19265ac_cpp='$CPP $CPPFLAGS'
19266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268ac_compiler_gnu=$ac_cv_c_compiler_gnu
19269
19270CC="$lt_save_CC"
19271
19272 else
19273 tagname=""
19274 fi
19275 ;;
19276
19277 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019278 ac_ext=c
19279ac_cpp='$CPP $CPPFLAGS'
19280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000019283
19284
19285# Source file extension for RC test sources.
19286ac_ext=rc
19287
19288# Object file extension for compiled RC test sources.
19289objext=o
19290objext_RC=$objext
19291
19292# Code to be used in simple compile tests
19293lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19294
19295# Code to be used in simple link tests
19296lt_simple_link_test_code="$lt_simple_compile_test_code"
19297
19298# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19299
19300# If no C compiler was specified, use CC.
19301LTCC=${LTCC-"$CC"}
19302
19303# Allow CC to be a program name with arguments.
19304compiler=$CC
19305
19306
19307# Allow CC to be a program name with arguments.
19308lt_save_CC="$CC"
19309CC=${RC-"windres"}
19310compiler=$CC
19311compiler_RC=$CC
19312lt_cv_prog_compiler_c_o_RC=yes
19313
19314# The else clause should only fire when bootstrapping the
19315# libtool distribution, otherwise you forgot to ship ltmain.sh
19316# with your package, and you will get complaints that there are
19317# no rules to generate ltmain.sh.
19318if test -f "$ltmain"; then
19319 # See if we are running on zsh, and set the options which allow our commands through
19320 # without removal of \ escapes.
19321 if test -n "${ZSH_VERSION+set}" ; then
19322 setopt NO_GLOB_SUBST
19323 fi
19324 # Now quote all the things that may contain metacharacters while being
19325 # careful not to overquote the AC_SUBSTed values. We take copies of the
19326 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19328 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000019329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19331 deplibs_check_method reload_flag reload_cmds need_locks \
19332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19333 lt_cv_sys_global_symbol_to_c_name_address \
19334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19335 old_postinstall_cmds old_postuninstall_cmds \
19336 compiler_RC \
19337 CC_RC \
19338 LD_RC \
19339 lt_prog_compiler_wl_RC \
19340 lt_prog_compiler_pic_RC \
19341 lt_prog_compiler_static_RC \
19342 lt_prog_compiler_no_builtin_flag_RC \
19343 export_dynamic_flag_spec_RC \
19344 thread_safe_flag_spec_RC \
19345 whole_archive_flag_spec_RC \
19346 enable_shared_with_static_runtimes_RC \
19347 old_archive_cmds_RC \
19348 old_archive_from_new_cmds_RC \
19349 predep_objects_RC \
19350 postdep_objects_RC \
19351 predeps_RC \
19352 postdeps_RC \
19353 compiler_lib_search_path_RC \
19354 archive_cmds_RC \
19355 archive_expsym_cmds_RC \
19356 postinstall_cmds_RC \
19357 postuninstall_cmds_RC \
19358 old_archive_from_expsyms_cmds_RC \
19359 allow_undefined_flag_RC \
19360 no_undefined_flag_RC \
19361 export_symbols_cmds_RC \
19362 hardcode_libdir_flag_spec_RC \
19363 hardcode_libdir_flag_spec_ld_RC \
19364 hardcode_libdir_separator_RC \
19365 hardcode_automatic_RC \
19366 module_cmds_RC \
19367 module_expsym_cmds_RC \
19368 lt_cv_prog_compiler_c_o_RC \
19369 exclude_expsyms_RC \
19370 include_expsyms_RC; do
19371
19372 case $var in
19373 old_archive_cmds_RC | \
19374 old_archive_from_new_cmds_RC | \
19375 archive_cmds_RC | \
19376 archive_expsym_cmds_RC | \
19377 module_cmds_RC | \
19378 module_expsym_cmds_RC | \
19379 old_archive_from_expsyms_cmds_RC | \
19380 export_symbols_cmds_RC | \
19381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19382 postinstall_cmds | postuninstall_cmds | \
19383 old_postinstall_cmds | old_postuninstall_cmds | \
19384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19385 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019386 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 +000019387 ;;
19388 *)
19389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19390 ;;
19391 esac
19392 done
19393
19394 case $lt_echo in
19395 *'\$0 --fallback-echo"')
19396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19397 ;;
19398 esac
19399
19400cfgfile="$ofile"
19401
19402 cat <<__EOF__ >> "$cfgfile"
19403# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19404
19405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19406
19407# Shell to use when invoking shell scripts.
19408SHELL=$lt_SHELL
19409
19410# Whether or not to build shared libraries.
19411build_libtool_libs=$enable_shared
19412
19413# Whether or not to build static libraries.
19414build_old_libs=$enable_static
19415
19416# Whether or not to add -lc for building shared libraries.
19417build_libtool_need_lc=$archive_cmds_need_lc_RC
19418
19419# Whether or not to disallow shared libs when runtime libs are static
19420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19421
19422# Whether or not to optimize for fast installation.
19423fast_install=$enable_fast_install
19424
19425# The host system.
19426host_alias=$host_alias
19427host=$host
19428
19429# An echo program that does not interpret backslashes.
19430echo=$lt_echo
19431
19432# The archiver.
19433AR=$lt_AR
19434AR_FLAGS=$lt_AR_FLAGS
19435
19436# A C compiler.
19437LTCC=$lt_LTCC
19438
19439# A language-specific compiler.
19440CC=$lt_compiler_RC
19441
19442# Is the compiler the GNU C compiler?
19443with_gcc=$GCC_RC
19444
19445# An ERE matcher.
19446EGREP=$lt_EGREP
19447
19448# The linker used to build libraries.
19449LD=$lt_LD_RC
19450
19451# Whether we need hard or soft links.
19452LN_S=$lt_LN_S
19453
19454# A BSD-compatible nm program.
19455NM=$lt_NM
19456
19457# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000019458STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000019459
19460# Used to examine libraries when file_magic_cmd begins "file"
19461MAGIC_CMD=$MAGIC_CMD
19462
19463# Used on cygwin: DLL creation program.
19464DLLTOOL="$DLLTOOL"
19465
19466# Used on cygwin: object dumper.
19467OBJDUMP="$OBJDUMP"
19468
19469# Used on cygwin: assembler.
19470AS="$AS"
19471
19472# The name of the directory that contains temporary libtool files.
19473objdir=$objdir
19474
19475# How to create reloadable object files.
19476reload_flag=$lt_reload_flag
19477reload_cmds=$lt_reload_cmds
19478
19479# How to pass a linker flag through the compiler.
19480wl=$lt_lt_prog_compiler_wl_RC
19481
19482# Object file suffix (normally "o").
19483objext="$ac_objext"
19484
19485# Old archive suffix (normally "a").
19486libext="$libext"
19487
19488# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000019489shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000019490
19491# Executable file suffix (normally "").
19492exeext="$exeext"
19493
19494# Additional compiler flags for building library objects.
19495pic_flag=$lt_lt_prog_compiler_pic_RC
19496pic_mode=$pic_mode
19497
19498# What is the maximum length of a command?
19499max_cmd_len=$lt_cv_sys_max_cmd_len
19500
19501# Does compiler simultaneously support -c and -o options?
19502compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19503
19504# Must we lock files when doing compilation ?
19505need_locks=$lt_need_locks
19506
19507# Do we need the lib prefix for modules?
19508need_lib_prefix=$need_lib_prefix
19509
19510# Do we need a version for libraries?
19511need_version=$need_version
19512
19513# Whether dlopen is supported.
19514dlopen_support=$enable_dlopen
19515
19516# Whether dlopen of programs is supported.
19517dlopen_self=$enable_dlopen_self
19518
19519# Whether dlopen of statically linked programs is supported.
19520dlopen_self_static=$enable_dlopen_self_static
19521
19522# Compiler flag to prevent dynamic linking.
19523link_static_flag=$lt_lt_prog_compiler_static_RC
19524
19525# Compiler flag to turn off builtin functions.
19526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19527
19528# Compiler flag to allow reflexive dlopens.
19529export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19530
19531# Compiler flag to generate shared objects directly from archives.
19532whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19533
19534# Compiler flag to generate thread-safe objects.
19535thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19536
19537# Library versioning type.
19538version_type=$version_type
19539
19540# Format of library name prefix.
19541libname_spec=$lt_libname_spec
19542
19543# List of archive names. First name is the real one, the rest are links.
19544# The last name is the one that the linker finds with -lNAME.
19545library_names_spec=$lt_library_names_spec
19546
19547# The coded name of the library, if different from the real name.
19548soname_spec=$lt_soname_spec
19549
19550# Commands used to build and install an old-style archive.
19551RANLIB=$lt_RANLIB
19552old_archive_cmds=$lt_old_archive_cmds_RC
19553old_postinstall_cmds=$lt_old_postinstall_cmds
19554old_postuninstall_cmds=$lt_old_postuninstall_cmds
19555
19556# Create an old-style archive from a shared archive.
19557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19558
19559# Create a temporary old-style archive to link instead of a shared archive.
19560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19561
19562# Commands used to build and install a shared archive.
19563archive_cmds=$lt_archive_cmds_RC
19564archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19565postinstall_cmds=$lt_postinstall_cmds
19566postuninstall_cmds=$lt_postuninstall_cmds
19567
19568# Commands used to build a loadable module (assumed same as above if empty)
19569module_cmds=$lt_module_cmds_RC
19570module_expsym_cmds=$lt_module_expsym_cmds_RC
19571
19572# Commands to strip libraries.
19573old_striplib=$lt_old_striplib
19574striplib=$lt_striplib
19575
19576# Dependencies to place before the objects being linked to create a
19577# shared library.
19578predep_objects=$lt_predep_objects_RC
19579
19580# Dependencies to place after the objects being linked to create a
19581# shared library.
19582postdep_objects=$lt_postdep_objects_RC
19583
19584# Dependencies to place before the objects being linked to create a
19585# shared library.
19586predeps=$lt_predeps_RC
19587
19588# Dependencies to place after the objects being linked to create a
19589# shared library.
19590postdeps=$lt_postdeps_RC
19591
19592# The library search path used internally by the compiler when linking
19593# a shared library.
19594compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19595
19596# Method to check whether dependent libraries are shared objects.
19597deplibs_check_method=$lt_deplibs_check_method
19598
19599# Command to use when deplibs_check_method == file_magic.
19600file_magic_cmd=$lt_file_magic_cmd
19601
19602# Flag that allows shared libraries with undefined symbols to be built.
19603allow_undefined_flag=$lt_allow_undefined_flag_RC
19604
19605# Flag that forces no undefined symbols.
19606no_undefined_flag=$lt_no_undefined_flag_RC
19607
19608# Commands used to finish a libtool library installation in a directory.
19609finish_cmds=$lt_finish_cmds
19610
19611# Same as above, but a single script fragment to be evaled but not shown.
19612finish_eval=$lt_finish_eval
19613
19614# Take the output of nm and produce a listing of raw symbols and C names.
19615global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19616
19617# Transform the output of nm in a proper C declaration
19618global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19619
19620# Transform the output of nm in a C name address pair
19621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19622
19623# This is the shared library runtime path variable.
19624runpath_var=$runpath_var
19625
19626# This is the shared library path variable.
19627shlibpath_var=$shlibpath_var
19628
19629# Is shlibpath searched before the hard-coded library search path?
19630shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19631
19632# How to hardcode a shared library path into an executable.
19633hardcode_action=$hardcode_action_RC
19634
19635# Whether we should hardcode library paths into libraries.
19636hardcode_into_libs=$hardcode_into_libs
19637
19638# Flag to hardcode \$libdir into a binary during linking.
19639# This must work even if \$libdir does not exist.
19640hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19641
19642# If ld is used when linking, flag to hardcode \$libdir into
19643# a binary during linking. This must work even if \$libdir does
19644# not exist.
19645hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19646
19647# Whether we need a single -rpath flag with a separated argument.
19648hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19649
19650# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19651# resulting binary.
19652hardcode_direct=$hardcode_direct_RC
19653
19654# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19655# resulting binary.
19656hardcode_minus_L=$hardcode_minus_L_RC
19657
19658# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19659# the resulting binary.
19660hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19661
19662# Set to yes if building a shared library automatically hardcodes DIR into the library
19663# and all subsequent libraries and executables linked against it.
19664hardcode_automatic=$hardcode_automatic_RC
19665
19666# Variables whose values should be saved in libtool wrapper scripts and
19667# restored at relink time.
19668variables_saved_for_relink="$variables_saved_for_relink"
19669
19670# Whether libtool must link a program against all its dependency libraries.
19671link_all_deplibs=$link_all_deplibs_RC
19672
19673# Compile-time system search path for libraries
19674sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19675
19676# Run-time system search path for libraries
19677sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19678
19679# Fix the shell variable \$srcfile for the compiler.
19680fix_srcfile_path="$fix_srcfile_path_RC"
19681
19682# Set to yes if exported symbols are required.
19683always_export_symbols=$always_export_symbols_RC
19684
19685# The commands to list exported symbols.
19686export_symbols_cmds=$lt_export_symbols_cmds_RC
19687
19688# The commands to extract the exported symbol list from a shared archive.
19689extract_expsyms_cmds=$lt_extract_expsyms_cmds
19690
19691# Symbols that should not be listed in the preloaded symbols.
19692exclude_expsyms=$lt_exclude_expsyms_RC
19693
19694# Symbols that must always be exported.
19695include_expsyms=$lt_include_expsyms_RC
19696
19697# ### END LIBTOOL TAG CONFIG: $tagname
19698
19699__EOF__
19700
19701
19702else
19703 # If there is no Makefile yet, we rely on a make rule to execute
19704 # `config.status --recheck' to rerun these tests and create the
19705 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19707 if test -f "$ltmain_in"; then
19708 test -f Makefile && make "$ltmain"
19709 fi
John Criswell47fdd832003-07-14 16:52:07 +000019710fi
19711
19712
19713ac_ext=c
19714ac_cpp='$CPP $CPPFLAGS'
19715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717ac_compiler_gnu=$ac_cv_c_compiler_gnu
19718
19719CC="$lt_save_CC"
19720
19721 ;;
19722
19723 *)
19724 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19725echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19726 { (exit 1); exit 1; }; }
19727 ;;
19728 esac
19729
19730 # Append the new tag name to the list of available tags.
19731 if test -n "$tagname" ; then
19732 available_tags="$available_tags $tagname"
19733 fi
19734 fi
19735 done
19736 IFS="$lt_save_ifs"
19737
19738 # Now substitute the updated list of available tags.
19739 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19740 mv "${ofile}T" "$ofile"
19741 chmod +x "$ofile"
19742 else
19743 rm -f "${ofile}T"
19744 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19745echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19746 { (exit 1); exit 1; }; }
19747 fi
19748fi
John Criswell7a73b802003-06-30 21:59:07 +000019749
19750
19751
19752# This can be used to rebuild libtool when needed
19753LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19754
19755# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019756LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000019757
19758# Prevent multiple expansion
19759
19760
19761
John Criswell47fdd832003-07-14 16:52:07 +000019762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019779
19780echo "$as_me:$LINENO: checking for GNU make" >&5
19781echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
19782if test "${llvm_cv_gnu_make_command+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784else
19785 llvm_cv_gnu_make_command=''
19786 for a in "$MAKE" make gmake gnumake ; do
19787 if test -z "$a" ; then continue ; fi ;
19788 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
19789 then
19790 llvm_cv_gnu_make_command=$a ;
19791 break;
19792 fi
19793 done
19794fi
19795echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
19796echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
19797 if test "x$llvm_cv_gnu_make_command" != "x" ; then
19798 ifGNUmake='' ;
19799 else
19800 ifGNUmake='#' ;
19801 echo "$as_me:$LINENO: result: \"Not found\"" >&5
19802echo "${ECHO_T}\"Not found\"" >&6;
19803 fi
19804
19805
19806echo "$as_me:$LINENO: checking whether ln -s works" >&5
19807echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19808LN_S=$as_ln_s
19809if test "$LN_S" = "ln -s"; then
19810 echo "$as_me:$LINENO: result: yes" >&5
19811echo "${ECHO_T}yes" >&6
19812else
19813 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19814echo "${ECHO_T}no, using $LN_S" >&6
19815fi
19816
Reid Spencer1f319422004-11-29 04:56:35 +000019817# Extract the first word of "date", so it can be a program name with args.
19818set dummy date; ac_word=$2
19819echo "$as_me:$LINENO: checking for $ac_word" >&5
19820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19821if test "${ac_cv_path_DATE+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823else
19824 case $DATE in
19825 [\\/]* | ?:[\\/]*)
19826 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
19827 ;;
19828 *)
19829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19830for as_dir in $PATH
19831do
19832 IFS=$as_save_IFS
19833 test -z "$as_dir" && as_dir=.
19834 for ac_exec_ext in '' $ac_executable_extensions; do
19835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19836 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
19837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19838 break 2
19839 fi
19840done
19841done
19842
19843 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
19844 ;;
19845esac
19846fi
19847DATE=$ac_cv_path_DATE
19848
19849if test -n "$DATE"; then
19850 echo "$as_me:$LINENO: result: $DATE" >&5
19851echo "${ECHO_T}$DATE" >&6
19852else
19853 echo "$as_me:$LINENO: result: no" >&5
19854echo "${ECHO_T}no" >&6
19855fi
19856
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019857# Extract the first word of "find", so it can be a program name with args.
19858set dummy find; ac_word=$2
19859echo "$as_me:$LINENO: checking for $ac_word" >&5
19860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19861if test "${ac_cv_path_FIND+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19863else
19864 case $FIND in
19865 [\\/]* | ?:[\\/]*)
19866 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
19867 ;;
19868 *)
19869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19870for as_dir in $PATH
19871do
19872 IFS=$as_save_IFS
19873 test -z "$as_dir" && as_dir=.
19874 for ac_exec_ext in '' $ac_executable_extensions; do
19875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19876 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
19877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19878 break 2
19879 fi
19880done
19881done
19882
19883 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
19884 ;;
19885esac
19886fi
19887FIND=$ac_cv_path_FIND
19888
19889if test -n "$FIND"; then
19890 echo "$as_me:$LINENO: result: $FIND" >&5
19891echo "${ECHO_T}$FIND" >&6
19892else
19893 echo "$as_me:$LINENO: result: no" >&5
19894echo "${ECHO_T}no" >&6
19895fi
19896
19897# Extract the first word of "grep", so it can be a program name with args.
19898set dummy grep; ac_word=$2
19899echo "$as_me:$LINENO: checking for $ac_word" >&5
19900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19901if test "${ac_cv_path_GREP+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19903else
19904 case $GREP in
19905 [\\/]* | ?:[\\/]*)
19906 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19907 ;;
19908 *)
19909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19910for as_dir in $PATH
19911do
19912 IFS=$as_save_IFS
19913 test -z "$as_dir" && as_dir=.
19914 for ac_exec_ext in '' $ac_executable_extensions; do
19915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19916 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19918 break 2
19919 fi
19920done
19921done
19922
19923 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
19924 ;;
19925esac
19926fi
19927GREP=$ac_cv_path_GREP
19928
19929if test -n "$GREP"; then
19930 echo "$as_me:$LINENO: result: $GREP" >&5
19931echo "${ECHO_T}$GREP" >&6
19932else
19933 echo "$as_me:$LINENO: result: no" >&5
19934echo "${ECHO_T}no" >&6
19935fi
19936
19937# Extract the first word of "mkdir", so it can be a program name with args.
19938set dummy mkdir; ac_word=$2
19939echo "$as_me:$LINENO: checking for $ac_word" >&5
19940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19941if test "${ac_cv_path_MKDIR+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19943else
19944 case $MKDIR in
19945 [\\/]* | ?:[\\/]*)
19946 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
19947 ;;
19948 *)
19949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950for as_dir in $PATH
19951do
19952 IFS=$as_save_IFS
19953 test -z "$as_dir" && as_dir=.
19954 for ac_exec_ext in '' $ac_executable_extensions; do
19955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19956 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
19957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19958 break 2
19959 fi
19960done
19961done
19962
19963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
19964 ;;
19965esac
19966fi
19967MKDIR=$ac_cv_path_MKDIR
19968
19969if test -n "$MKDIR"; then
19970 echo "$as_me:$LINENO: result: $MKDIR" >&5
19971echo "${ECHO_T}$MKDIR" >&6
19972else
19973 echo "$as_me:$LINENO: result: no" >&5
19974echo "${ECHO_T}no" >&6
19975fi
19976
19977# Extract the first word of "mv", so it can be a program name with args.
19978set dummy mv; ac_word=$2
19979echo "$as_me:$LINENO: checking for $ac_word" >&5
19980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19981if test "${ac_cv_path_MV+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983else
19984 case $MV in
19985 [\\/]* | ?:[\\/]*)
19986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
19987 ;;
19988 *)
19989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19990for as_dir in $PATH
19991do
19992 IFS=$as_save_IFS
19993 test -z "$as_dir" && as_dir=.
19994 for ac_exec_ext in '' $ac_executable_extensions; do
19995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
19997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19998 break 2
19999 fi
20000done
20001done
20002
20003 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
20004 ;;
20005esac
20006fi
20007MV=$ac_cv_path_MV
20008
20009if test -n "$MV"; then
20010 echo "$as_me:$LINENO: result: $MV" >&5
20011echo "${ECHO_T}$MV" >&6
20012else
20013 echo "$as_me:$LINENO: result: no" >&5
20014echo "${ECHO_T}no" >&6
20015fi
20016
Reid Spencer1f319422004-11-29 04:56:35 +000020017# Extract the first word of "pax", so it can be a program name with args.
20018set dummy pax; ac_word=$2
20019echo "$as_me:$LINENO: checking for $ac_word" >&5
20020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20021if test "${ac_cv_path_PAX+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 case $PAX in
20025 [\\/]* | ?:[\\/]*)
20026 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
20027 ;;
20028 *)
20029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20030for as_dir in $PATH
20031do
20032 IFS=$as_save_IFS
20033 test -z "$as_dir" && as_dir=.
20034 for ac_exec_ext in '' $ac_executable_extensions; do
20035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20036 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
20037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20038 break 2
20039 fi
20040done
20041done
20042
20043 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
20044 ;;
20045esac
20046fi
20047PAX=$ac_cv_path_PAX
20048
20049if test -n "$PAX"; then
20050 echo "$as_me:$LINENO: result: $PAX" >&5
20051echo "${ECHO_T}$PAX" >&6
20052else
20053 echo "$as_me:$LINENO: result: no" >&5
20054echo "${ECHO_T}no" >&6
20055fi
20056
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020057if test -n "$ac_tool_prefix"; then
20058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20059set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20060echo "$as_me:$LINENO: checking for $ac_word" >&5
20061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20062if test "${ac_cv_prog_RANLIB+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064else
20065 if test -n "$RANLIB"; then
20066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20067else
20068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069for as_dir in $PATH
20070do
20071 IFS=$as_save_IFS
20072 test -z "$as_dir" && as_dir=.
20073 for ac_exec_ext in '' $ac_executable_extensions; do
20074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20077 break 2
20078 fi
20079done
20080done
20081
20082fi
20083fi
20084RANLIB=$ac_cv_prog_RANLIB
20085if test -n "$RANLIB"; then
20086 echo "$as_me:$LINENO: result: $RANLIB" >&5
20087echo "${ECHO_T}$RANLIB" >&6
20088else
20089 echo "$as_me:$LINENO: result: no" >&5
20090echo "${ECHO_T}no" >&6
20091fi
20092
20093fi
20094if test -z "$ac_cv_prog_RANLIB"; then
20095 ac_ct_RANLIB=$RANLIB
20096 # Extract the first word of "ranlib", so it can be a program name with args.
20097set dummy ranlib; ac_word=$2
20098echo "$as_me:$LINENO: checking for $ac_word" >&5
20099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20100if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102else
20103 if test -n "$ac_ct_RANLIB"; then
20104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20105else
20106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20107for as_dir in $PATH
20108do
20109 IFS=$as_save_IFS
20110 test -z "$as_dir" && as_dir=.
20111 for ac_exec_ext in '' $ac_executable_extensions; do
20112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20113 ac_cv_prog_ac_ct_RANLIB="ranlib"
20114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20115 break 2
20116 fi
20117done
20118done
20119
20120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20121fi
20122fi
20123ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20124if test -n "$ac_ct_RANLIB"; then
20125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20126echo "${ECHO_T}$ac_ct_RANLIB" >&6
20127else
20128 echo "$as_me:$LINENO: result: no" >&5
20129echo "${ECHO_T}no" >&6
20130fi
20131
20132 RANLIB=$ac_ct_RANLIB
20133else
20134 RANLIB="$ac_cv_prog_RANLIB"
20135fi
20136
20137# Extract the first word of "rm", so it can be a program name with args.
20138set dummy rm; ac_word=$2
20139echo "$as_me:$LINENO: checking for $ac_word" >&5
20140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20141if test "${ac_cv_path_RM+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 case $RM in
20145 [\\/]* | ?:[\\/]*)
20146 ac_cv_path_RM="$RM" # Let the user override the test with a path.
20147 ;;
20148 *)
20149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150for as_dir in $PATH
20151do
20152 IFS=$as_save_IFS
20153 test -z "$as_dir" && as_dir=.
20154 for ac_exec_ext in '' $ac_executable_extensions; do
20155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20156 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
20157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20158 break 2
20159 fi
20160done
20161done
20162
20163 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
20164 ;;
20165esac
20166fi
20167RM=$ac_cv_path_RM
20168
20169if test -n "$RM"; then
20170 echo "$as_me:$LINENO: result: $RM" >&5
20171echo "${ECHO_T}$RM" >&6
20172else
20173 echo "$as_me:$LINENO: result: no" >&5
20174echo "${ECHO_T}no" >&6
20175fi
20176
20177# Extract the first word of "sed", so it can be a program name with args.
20178set dummy sed; ac_word=$2
20179echo "$as_me:$LINENO: checking for $ac_word" >&5
20180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20181if test "${ac_cv_path_SED+set}" = set; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20183else
20184 case $SED in
20185 [\\/]* | ?:[\\/]*)
20186 ac_cv_path_SED="$SED" # Let the user override the test with a path.
20187 ;;
20188 *)
20189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20190for as_dir in $PATH
20191do
20192 IFS=$as_save_IFS
20193 test -z "$as_dir" && as_dir=.
20194 for ac_exec_ext in '' $ac_executable_extensions; do
20195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20196 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
20197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20198 break 2
20199 fi
20200done
20201done
20202
20203 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
20204 ;;
20205esac
20206fi
20207SED=$ac_cv_path_SED
20208
20209if test -n "$SED"; then
20210 echo "$as_me:$LINENO: result: $SED" >&5
20211echo "${ECHO_T}$SED" >&6
20212else
20213 echo "$as_me:$LINENO: result: no" >&5
20214echo "${ECHO_T}no" >&6
20215fi
20216
Reid Spencerad354c92004-10-25 08:18:47 +000020217# Extract the first word of "tar", so it can be a program name with args.
20218set dummy tar; ac_word=$2
20219echo "$as_me:$LINENO: checking for $ac_word" >&5
20220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20221if test "${ac_cv_path_TAR+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20223else
20224 case $TAR in
20225 [\\/]* | ?:[\\/]*)
20226 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
20227 ;;
20228 *)
20229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230for as_dir in $PATH
20231do
20232 IFS=$as_save_IFS
20233 test -z "$as_dir" && as_dir=.
20234 for ac_exec_ext in '' $ac_executable_extensions; do
20235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20236 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
20237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20238 break 2
20239 fi
20240done
20241done
20242
20243 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
20244 ;;
20245esac
20246fi
20247TAR=$ac_cv_path_TAR
20248
20249if test -n "$TAR"; then
20250 echo "$as_me:$LINENO: result: $TAR" >&5
20251echo "${ECHO_T}$TAR" >&6
20252else
20253 echo "$as_me:$LINENO: result: no" >&5
20254echo "${ECHO_T}no" >&6
20255fi
20256
John Criswell47fdd832003-07-14 16:52:07 +000020257
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020258# Find a good install program. We prefer a C program (faster),
20259# so one script is as good as another. But avoid the broken or
20260# incompatible versions:
20261# SysV /etc/install, /usr/sbin/install
20262# SunOS /usr/etc/install
20263# IRIX /sbin/install
20264# AIX /bin/install
20265# AmigaOS /C/install, which installs bootblocks on floppy discs
20266# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20267# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20268# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20269# OS/2's system install, which has a completely different semantic
20270# ./install, which can be erroneously created by make from ./install.sh.
20271echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20272echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
20273if test -z "$INSTALL"; then
20274if test "${ac_cv_path_install+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278for as_dir in $PATH
20279do
20280 IFS=$as_save_IFS
20281 test -z "$as_dir" && as_dir=.
20282 # Account for people who put trailing slashes in PATH elements.
20283case $as_dir/ in
20284 ./ | .// | /cC/* | \
20285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20286 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20287 /usr/ucb/* ) ;;
20288 *)
20289 # OSF1 and SCO ODT 3.0 have their own names for install.
20290 # Don't use installbsd from OSF since it installs stuff as root
20291 # by default.
20292 for ac_prog in ginstall scoinst install; do
20293 for ac_exec_ext in '' $ac_executable_extensions; do
20294 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
20295 if test $ac_prog = install &&
20296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20297 # AIX install. It has an incompatible calling convention.
20298 :
20299 elif test $ac_prog = install &&
20300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20301 # program-specific install script used by HP pwplus--don't use.
20302 :
20303 else
20304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20305 break 3
20306 fi
20307 fi
20308 done
20309 done
20310 ;;
20311esac
20312done
20313
20314
20315fi
20316 if test "${ac_cv_path_install+set}" = set; then
20317 INSTALL=$ac_cv_path_install
20318 else
20319 # As a last resort, use the slow shell script. We don't cache a
20320 # path for INSTALL within a source directory, because that will
20321 # break other packages using the cache if that directory is
20322 # removed, or if the path is relative.
20323 INSTALL=$ac_install_sh
20324 fi
20325fi
20326echo "$as_me:$LINENO: result: $INSTALL" >&5
20327echo "${ECHO_T}$INSTALL" >&6
20328
20329# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20330# It thinks the first close brace ends the variable substitution.
20331test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20332
20333test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20334
20335test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20336
20337
Reid Spencer1f319422004-11-29 04:56:35 +000020338# Extract the first word of "bzip2", so it can be a program name with args.
20339set dummy bzip2; ac_word=$2
20340echo "$as_me:$LINENO: checking for $ac_word" >&5
20341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20342if test "${ac_cv_path_BZIP2+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20344else
20345 case $BZIP2 in
20346 [\\/]* | ?:[\\/]*)
20347 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
20348 ;;
20349 *)
20350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351for as_dir in $PATH
20352do
20353 IFS=$as_save_IFS
20354 test -z "$as_dir" && as_dir=.
20355 for ac_exec_ext in '' $ac_executable_extensions; do
20356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20357 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
20358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20359 break 2
20360 fi
20361done
20362done
20363
20364 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
20365 ;;
20366esac
20367fi
20368BZIP2=$ac_cv_path_BZIP2
20369
20370if test -n "$BZIP2"; then
20371 echo "$as_me:$LINENO: result: $BZIP2" >&5
20372echo "${ECHO_T}$BZIP2" >&6
20373else
20374 echo "$as_me:$LINENO: result: no" >&5
20375echo "${ECHO_T}no" >&6
20376fi
20377
John Criswell7a73b802003-06-30 21:59:07 +000020378# Extract the first word of "dot", so it can be a program name with args.
20379set dummy dot; ac_word=$2
20380echo "$as_me:$LINENO: checking for $ac_word" >&5
20381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20382if test "${ac_cv_path_DOT+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20384else
20385 case $DOT in
20386 [\\/]* | ?:[\\/]*)
20387 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20388 ;;
20389 *)
20390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20391for as_dir in $PATH
20392do
20393 IFS=$as_save_IFS
20394 test -z "$as_dir" && as_dir=.
20395 for ac_exec_ext in '' $ac_executable_extensions; do
20396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20397 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
20398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20399 break 2
20400 fi
20401done
20402done
20403
Brian Gaeke26be9c52004-01-13 06:43:16 +000020404 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000020405 ;;
20406esac
20407fi
20408DOT=$ac_cv_path_DOT
20409
20410if test -n "$DOT"; then
20411 echo "$as_me:$LINENO: result: $DOT" >&5
20412echo "${ECHO_T}$DOT" >&6
20413else
20414 echo "$as_me:$LINENO: result: no" >&5
20415echo "${ECHO_T}no" >&6
20416fi
20417
Reid Spencer1f319422004-11-29 04:56:35 +000020418# Extract the first word of "doxygen", so it can be a program name with args.
20419set dummy doxygen; ac_word=$2
20420echo "$as_me:$LINENO: checking for $ac_word" >&5
20421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20422if test "${ac_cv_path_DOXYGEN+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 case $DOXYGEN in
20426 [\\/]* | ?:[\\/]*)
20427 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20428 ;;
20429 *)
20430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431for as_dir in $PATH
20432do
20433 IFS=$as_save_IFS
20434 test -z "$as_dir" && as_dir=.
20435 for ac_exec_ext in '' $ac_executable_extensions; do
20436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20437 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
20438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20439 break 2
20440 fi
20441done
20442done
20443
20444 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
20445 ;;
20446esac
20447fi
20448DOXYGEN=$ac_cv_path_DOXYGEN
20449
20450if test -n "$DOXYGEN"; then
20451 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
20452echo "${ECHO_T}$DOXYGEN" >&6
20453else
20454 echo "$as_me:$LINENO: result: no" >&5
20455echo "${ECHO_T}no" >&6
20456fi
20457
John Criswell7a73b802003-06-30 21:59:07 +000020458# Extract the first word of "etags", so it can be a program name with args.
20459set dummy etags; ac_word=$2
20460echo "$as_me:$LINENO: checking for $ac_word" >&5
20461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20462if test "${ac_cv_path_ETAGS+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464else
20465 case $ETAGS in
20466 [\\/]* | ?:[\\/]*)
20467 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
20468 ;;
20469 *)
20470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20471for as_dir in $PATH
20472do
20473 IFS=$as_save_IFS
20474 test -z "$as_dir" && as_dir=.
20475 for ac_exec_ext in '' $ac_executable_extensions; do
20476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20477 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
20478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20479 break 2
20480 fi
20481done
20482done
20483
Brian Gaeke26be9c52004-01-13 06:43:16 +000020484 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000020485 ;;
20486esac
20487fi
20488ETAGS=$ac_cv_path_ETAGS
20489
20490if test -n "$ETAGS"; then
20491 echo "$as_me:$LINENO: result: $ETAGS" >&5
20492echo "${ECHO_T}$ETAGS" >&6
20493else
20494 echo "$as_me:$LINENO: result: no" >&5
20495echo "${ECHO_T}no" >&6
20496fi
20497
Reid Spencer1f319422004-11-29 04:56:35 +000020498# Extract the first word of "groff", so it can be a program name with args.
20499set dummy groff; ac_word=$2
20500echo "$as_me:$LINENO: checking for $ac_word" >&5
20501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20502if test "${ac_cv_path_GROFF+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504else
20505 case $GROFF in
20506 [\\/]* | ?:[\\/]*)
20507 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
20508 ;;
20509 *)
20510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20511for as_dir in $PATH
20512do
20513 IFS=$as_save_IFS
20514 test -z "$as_dir" && as_dir=.
20515 for ac_exec_ext in '' $ac_executable_extensions; do
20516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20517 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
20518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20519 break 2
20520 fi
20521done
20522done
20523
20524 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
20525 ;;
20526esac
20527fi
20528GROFF=$ac_cv_path_GROFF
20529
20530if test -n "$GROFF"; then
20531 echo "$as_me:$LINENO: result: $GROFF" >&5
20532echo "${ECHO_T}$GROFF" >&6
20533else
20534 echo "$as_me:$LINENO: result: no" >&5
20535echo "${ECHO_T}no" >&6
20536fi
20537
20538# Extract the first word of "gzip", so it can be a program name with args.
20539set dummy gzip; ac_word=$2
20540echo "$as_me:$LINENO: checking for $ac_word" >&5
20541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20542if test "${ac_cv_path_GZIP+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544else
20545 case $GZIP in
20546 [\\/]* | ?:[\\/]*)
20547 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
20548 ;;
20549 *)
20550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20551for as_dir in $PATH
20552do
20553 IFS=$as_save_IFS
20554 test -z "$as_dir" && as_dir=.
20555 for ac_exec_ext in '' $ac_executable_extensions; do
20556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20557 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
20558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20559 break 2
20560 fi
20561done
20562done
20563
20564 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
20565 ;;
20566esac
20567fi
20568GZIP=$ac_cv_path_GZIP
20569
20570if test -n "$GZIP"; then
20571 echo "$as_me:$LINENO: result: $GZIP" >&5
20572echo "${ECHO_T}$GZIP" >&6
20573else
20574 echo "$as_me:$LINENO: result: no" >&5
20575echo "${ECHO_T}no" >&6
20576fi
20577
20578# Extract the first word of "pod2html", so it can be a program name with args.
20579set dummy pod2html; ac_word=$2
20580echo "$as_me:$LINENO: checking for $ac_word" >&5
20581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20582if test "${ac_cv_path_POD2HTML+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584else
20585 case $POD2HTML in
20586 [\\/]* | ?:[\\/]*)
20587 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
20588 ;;
20589 *)
20590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20591for as_dir in $PATH
20592do
20593 IFS=$as_save_IFS
20594 test -z "$as_dir" && as_dir=.
20595 for ac_exec_ext in '' $ac_executable_extensions; do
20596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20597 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
20598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20599 break 2
20600 fi
20601done
20602done
20603
20604 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
20605 ;;
20606esac
20607fi
20608POD2HTML=$ac_cv_path_POD2HTML
20609
20610if test -n "$POD2HTML"; then
20611 echo "$as_me:$LINENO: result: $POD2HTML" >&5
20612echo "${ECHO_T}$POD2HTML" >&6
20613else
20614 echo "$as_me:$LINENO: result: no" >&5
20615echo "${ECHO_T}no" >&6
20616fi
20617
20618# Extract the first word of "pod2man", so it can be a program name with args.
20619set dummy pod2man; ac_word=$2
20620echo "$as_me:$LINENO: checking for $ac_word" >&5
20621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20622if test "${ac_cv_path_POD2MAN+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20624else
20625 case $POD2MAN in
20626 [\\/]* | ?:[\\/]*)
20627 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
20628 ;;
20629 *)
20630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20631for as_dir in $PATH
20632do
20633 IFS=$as_save_IFS
20634 test -z "$as_dir" && as_dir=.
20635 for ac_exec_ext in '' $ac_executable_extensions; do
20636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20637 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
20638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20639 break 2
20640 fi
20641done
20642done
20643
20644 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
20645 ;;
20646esac
20647fi
20648POD2MAN=$ac_cv_path_POD2MAN
20649
20650if test -n "$POD2MAN"; then
20651 echo "$as_me:$LINENO: result: $POD2MAN" >&5
20652echo "${ECHO_T}$POD2MAN" >&6
20653else
20654 echo "$as_me:$LINENO: result: no" >&5
20655echo "${ECHO_T}no" >&6
20656fi
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000020657
John Criswellde00db22003-08-25 16:49:54 +000020658# Extract the first word of "python", so it can be a program name with args.
20659set dummy python; ac_word=$2
20660echo "$as_me:$LINENO: checking for $ac_word" >&5
20661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20662if test "${ac_cv_path_PYTHON+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664else
20665 case $PYTHON in
20666 [\\/]* | ?:[\\/]*)
20667 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20668 ;;
20669 *)
20670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20671for as_dir in $PATH
20672do
20673 IFS=$as_save_IFS
20674 test -z "$as_dir" && as_dir=.
20675 for ac_exec_ext in '' $ac_executable_extensions; do
20676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20677 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20679 break 2
20680 fi
20681done
20682done
20683
Brian Gaeke26be9c52004-01-13 06:43:16 +000020684 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000020685 ;;
20686esac
20687fi
20688PYTHON=$ac_cv_path_PYTHON
20689
20690if test -n "$PYTHON"; then
20691 echo "$as_me:$LINENO: result: $PYTHON" >&5
20692echo "${ECHO_T}$PYTHON" >&6
20693else
20694 echo "$as_me:$LINENO: result: no" >&5
20695echo "${ECHO_T}no" >&6
20696fi
20697
20698# Extract the first word of "qmtest", so it can be a program name with args.
20699set dummy qmtest; ac_word=$2
20700echo "$as_me:$LINENO: checking for $ac_word" >&5
20701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20702if test "${ac_cv_path_QMTEST+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704else
20705 case $QMTEST in
20706 [\\/]* | ?:[\\/]*)
20707 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
20708 ;;
20709 *)
20710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711for as_dir in $PATH
20712do
20713 IFS=$as_save_IFS
20714 test -z "$as_dir" && as_dir=.
20715 for ac_exec_ext in '' $ac_executable_extensions; do
20716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20717 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
20718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20719 break 2
20720 fi
20721done
20722done
20723
Brian Gaeke26be9c52004-01-13 06:43:16 +000020724 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000020725 ;;
20726esac
20727fi
20728QMTEST=$ac_cv_path_QMTEST
20729
20730if test -n "$QMTEST"; then
20731 echo "$as_me:$LINENO: result: $QMTEST" >&5
20732echo "${ECHO_T}$QMTEST" >&6
20733else
20734 echo "$as_me:$LINENO: result: no" >&5
20735echo "${ECHO_T}no" >&6
20736fi
20737
Reid Spencer4b8f82f2004-11-07 23:29:39 +000020738# Extract the first word of "runtest", so it can be a program name with args.
20739set dummy runtest; ac_word=$2
20740echo "$as_me:$LINENO: checking for $ac_word" >&5
20741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20742if test "${ac_cv_path_RUNTEST+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20744else
20745 case $RUNTEST in
20746 [\\/]* | ?:[\\/]*)
20747 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
20748 ;;
20749 *)
20750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20751for as_dir in $PATH
20752do
20753 IFS=$as_save_IFS
20754 test -z "$as_dir" && as_dir=.
20755 for ac_exec_ext in '' $ac_executable_extensions; do
20756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20757 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
20758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20759 break 2
20760 fi
20761done
20762done
20763
20764 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
20765 ;;
20766esac
20767fi
20768RUNTEST=$ac_cv_path_RUNTEST
20769
20770if test -n "$RUNTEST"; then
20771 echo "$as_me:$LINENO: result: $RUNTEST" >&5
20772echo "${ECHO_T}$RUNTEST" >&6
20773else
20774 echo "$as_me:$LINENO: result: no" >&5
20775echo "${ECHO_T}no" >&6
20776fi
20777
Reid Spencer1f319422004-11-29 04:56:35 +000020778# Extract the first word of "zip", so it can be a program name with args.
20779set dummy zip; ac_word=$2
20780echo "$as_me:$LINENO: checking for $ac_word" >&5
20781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20782if test "${ac_cv_path_ZIP+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20784else
20785 case $ZIP in
20786 [\\/]* | ?:[\\/]*)
20787 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20788 ;;
20789 *)
20790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791for as_dir in $PATH
20792do
20793 IFS=$as_save_IFS
20794 test -z "$as_dir" && as_dir=.
20795 for ac_exec_ext in '' $ac_executable_extensions; do
20796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20797 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20799 break 2
20800 fi
20801done
20802done
20803
20804 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
20805 ;;
20806esac
20807fi
20808ZIP=$ac_cv_path_ZIP
20809
20810if test -n "$ZIP"; then
20811 echo "$as_me:$LINENO: result: $ZIP" >&5
20812echo "${ECHO_T}$ZIP" >&6
20813else
20814 echo "$as_me:$LINENO: result: no" >&5
20815echo "${ECHO_T}no" >&6
20816fi
20817
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020818
20819echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
20820echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
20821if test "${llvm_cv_link_use_r+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823else
20824 ac_ext=c
20825ac_cpp='$CPP $CPPFLAGS'
20826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829
20830 oldcflags="$CFLAGS"
20831 CFLAGS="$CFLAGS -Wl,-R."
20832 cat >conftest.$ac_ext <<_ACEOF
20833/* confdefs.h. */
20834_ACEOF
20835cat confdefs.h >>conftest.$ac_ext
20836cat >>conftest.$ac_ext <<_ACEOF
20837/* end confdefs.h. */
20838
20839int
20840main ()
20841{
20842int main() { return 0; }
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847rm -f conftest.$ac_objext conftest$ac_exeext
20848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest$ac_exeext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 llvm_cv_link_use_r=yes
20870else
20871 echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
20874llvm_cv_link_use_r=no
20875fi
20876rm -f conftest.err conftest.$ac_objext \
20877 conftest$ac_exeext conftest.$ac_ext
20878 CFLAGS="$oldcflags"
20879 ac_ext=c
20880ac_cpp='$CPP $CPPFLAGS'
20881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886fi
20887echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
20888echo "${ECHO_T}$llvm_cv_link_use_r" >&6
20889if test "$llvm_cv_link_use_r" = yes ; then
20890
20891cat >>confdefs.h <<\_ACEOF
20892#define HAVE_LINK_R 1
20893_ACEOF
20894
20895 fi
20896
20897
20898etags_version=`$ETAGS --version 2>&1`
20899case "$etags_version" in
20900 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
20901 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
20902 *) ETAGSFLAGS="" ;;
20903esac
20904ETAGSFLAGS=$ETAGSFLAGS
20905
20906
20907echo "$as_me:$LINENO: checking tool compatibility" >&5
20908echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
20909
20910if test "$GCC" != "yes"
20911then
20912 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
20913echo "$as_me: error: gcc required but not found" >&2;}
20914 { (exit 1); exit 1; }; }
20915fi
20916if test "$GXX" != "yes"
20917then
20918 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
20919echo "$as_me: error: g++ required but not found" >&2;}
20920 { (exit 1); exit 1; }; }
20921fi
20922
20923gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
20924if test "$gccmajor" -lt "3"
20925then
20926 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
20927echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
20928 { (exit 1); exit 1; }; }
20929fi
20930
20931if test -z "$llvm_cv_gnu_make_command"
20932then
20933 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
20934echo "$as_me: error: GNU Make required but not found" >&2;}
20935 { (exit 1); exit 1; }; }
20936fi
20937
20938echo "$as_me:$LINENO: result: ok" >&5
20939echo "${ECHO_T}ok" >&6
20940
20941if test "$PYTHON" = "false" ; then
20942 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
20943echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
20944fi
20945if test "$QMTEST" = "false" ; then
20946 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
20947echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
20948fi
Reid Spencer4b8f82f2004-11-07 23:29:39 +000020949if test "$RUNTEST" = "false" ; then
20950 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
20951echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
20952fi
John Criswellde00db22003-08-25 16:49:54 +000020953pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
20954pymajor=`echo $pyversion | cut -d. -f1`
20955pyminor=`echo $pyversion | cut -d. -f2`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020956if test "$pymajor" -ge "2" ; then
20957 if test "$pymajor" -eq "2" ; then
20958 if test "$pyminor" -lt "2" ; then
20959 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000020960echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020961 fi
20962 fi
John Criswellde00db22003-08-25 16:49:54 +000020963else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020964 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000020965echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000020966fi
John Criswell7a73b802003-06-30 21:59:07 +000020967
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020968echo "$as_me:$LINENO: result: " >&5
20969echo "${ECHO_T}" >&6
20970
20971
John Criswell7a73b802003-06-30 21:59:07 +000020972
John Criswell7a73b802003-06-30 21:59:07 +000020973echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
20974echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
20975if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
20976 echo $ECHO_N "(cached) $ECHO_C" >&6
20977else
20978 ac_check_lib_save_LIBS=$LIBS
20979LIBS="-lelf $LIBS"
20980cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020981/* confdefs.h. */
20982_ACEOF
20983cat confdefs.h >>conftest.$ac_ext
20984cat >>conftest.$ac_ext <<_ACEOF
20985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020986
20987/* Override any gcc2 internal prototype to avoid an error. */
20988#ifdef __cplusplus
20989extern "C"
20990#endif
20991/* We use char because int might match the return type of a gcc2
20992 builtin and then its argument prototype would still apply. */
20993char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000020994int
20995main ()
20996{
20997elf_begin ();
20998 ;
20999 return 0;
21000}
21001_ACEOF
21002rm -f conftest.$ac_objext conftest$ac_exeext
21003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021004 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021011 { ac_try='test -z "$ac_c_werror_flag"
21012 || test ! -s conftest.err'
21013 { (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); }; } &&
21018 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_lib_elf_elf_begin=yes
21025else
21026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021027sed 's/^/| /' conftest.$ac_ext >&5
21028
John Criswell7a73b802003-06-30 21:59:07 +000021029ac_cv_lib_elf_elf_begin=no
21030fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021031rm -f conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021033LIBS=$ac_check_lib_save_LIBS
21034fi
21035echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
21036echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
21037if test $ac_cv_lib_elf_elf_begin = yes; then
21038 cat >>confdefs.h <<_ACEOF
21039#define HAVE_LIBELF 1
21040_ACEOF
21041
21042 LIBS="-lelf $LIBS"
21043
21044fi
21045
21046
Reid Spencer17795972004-11-18 09:47:37 +000021047echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
21048echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
21049if test "${ac_cv_search_lt_dlopen+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051else
21052 ac_func_search_save_LIBS=$LIBS
21053ac_cv_search_lt_dlopen=no
21054cat >conftest.$ac_ext <<_ACEOF
21055/* confdefs.h. */
21056_ACEOF
21057cat confdefs.h >>conftest.$ac_ext
21058cat >>conftest.$ac_ext <<_ACEOF
21059/* end confdefs.h. */
21060
21061/* Override any gcc2 internal prototype to avoid an error. */
21062#ifdef __cplusplus
21063extern "C"
21064#endif
21065/* We use char because int might match the return type of a gcc2
21066 builtin and then its argument prototype would still apply. */
21067char lt_dlopen ();
21068int
21069main ()
21070{
21071lt_dlopen ();
21072 ;
21073 return 0;
21074}
21075_ACEOF
21076rm -f conftest.$ac_objext conftest$ac_exeext
21077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest$ac_exeext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_search_lt_dlopen="none required"
21099else
21100 echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5
21102
21103fi
21104rm -f conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21106if test "$ac_cv_search_lt_dlopen" = no; then
21107 for ac_lib in ltdl; do
21108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21109 cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
21115
21116/* Override any gcc2 internal prototype to avoid an error. */
21117#ifdef __cplusplus
21118extern "C"
21119#endif
21120/* We use char because int might match the return type of a gcc2
21121 builtin and then its argument prototype would still apply. */
21122char lt_dlopen ();
21123int
21124main ()
21125{
21126lt_dlopen ();
21127 ;
21128 return 0;
21129}
21130_ACEOF
21131rm -f conftest.$ac_objext conftest$ac_exeext
21132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { 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_exeext'
21148 { (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_search_lt_dlopen="-l$ac_lib"
21154break
21155else
21156 echo "$as_me: failed program was:" >&5
21157sed 's/^/| /' conftest.$ac_ext >&5
21158
21159fi
21160rm -f conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21162 done
21163fi
21164LIBS=$ac_func_search_save_LIBS
21165fi
21166echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
21167echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
21168if test "$ac_cv_search_lt_dlopen" != no; then
21169 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
21170
21171cat >>confdefs.h <<\_ACEOF
21172#define HAVE_LT_DLOPEN 1
21173_ACEOF
21174
21175else
21176 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
21177 not be available" >&5
21178echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
21179 not be available" >&2;}
21180fi
21181
21182
John Criswell7a73b802003-06-30 21:59:07 +000021183echo "$as_me:$LINENO: checking for library containing dlopen" >&5
21184echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
21185if test "${ac_cv_search_dlopen+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21187else
21188 ac_func_search_save_LIBS=$LIBS
21189ac_cv_search_dlopen=no
21190cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021191/* confdefs.h. */
21192_ACEOF
21193cat confdefs.h >>conftest.$ac_ext
21194cat >>conftest.$ac_ext <<_ACEOF
21195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021196
21197/* Override any gcc2 internal prototype to avoid an error. */
21198#ifdef __cplusplus
21199extern "C"
21200#endif
21201/* We use char because int might match the return type of a gcc2
21202 builtin and then its argument prototype would still apply. */
21203char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000021204int
21205main ()
21206{
21207dlopen ();
21208 ;
21209 return 0;
21210}
21211_ACEOF
21212rm -f conftest.$ac_objext conftest$ac_exeext
21213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021214 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021221 { ac_try='test -z "$ac_c_werror_flag"
21222 || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_cv_search_dlopen="none required"
21235else
21236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021237sed 's/^/| /' conftest.$ac_ext >&5
21238
John Criswell7a73b802003-06-30 21:59:07 +000021239fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021240rm -f conftest.err conftest.$ac_objext \
21241 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021242if test "$ac_cv_search_dlopen" = no; then
21243 for ac_lib in dl; do
21244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21245 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021246/* confdefs.h. */
21247_ACEOF
21248cat confdefs.h >>conftest.$ac_ext
21249cat >>conftest.$ac_ext <<_ACEOF
21250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021251
21252/* Override any gcc2 internal prototype to avoid an error. */
21253#ifdef __cplusplus
21254extern "C"
21255#endif
21256/* We use char because int might match the return type of a gcc2
21257 builtin and then its argument prototype would still apply. */
21258char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000021259int
21260main ()
21261{
21262dlopen ();
21263 ;
21264 return 0;
21265}
21266_ACEOF
21267rm -f conftest.$ac_objext conftest$ac_exeext
21268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021269 (eval $ac_link) 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_exeext'
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_search_dlopen="-l$ac_lib"
21290break
21291else
21292 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021293sed 's/^/| /' conftest.$ac_ext >&5
21294
John Criswell7a73b802003-06-30 21:59:07 +000021295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021296rm -f conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021298 done
21299fi
21300LIBS=$ac_func_search_save_LIBS
21301fi
21302echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
21303echo "${ECHO_T}$ac_cv_search_dlopen" >&6
21304if test "$ac_cv_search_dlopen" != no; then
21305 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000021306
21307cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000021308#define HAVE_DLOPEN 1
21309_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021310
21311else
Brian Gaekec45be042003-10-07 06:01:34 +000021312 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
21313echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021314fi
21315
21316
21317echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
21318echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
21319if test "${ac_cv_search_mallinfo+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322 ac_func_search_save_LIBS=$LIBS
21323ac_cv_search_mallinfo=no
21324cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021325/* confdefs.h. */
21326_ACEOF
21327cat confdefs.h >>conftest.$ac_ext
21328cat >>conftest.$ac_ext <<_ACEOF
21329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021330
21331/* Override any gcc2 internal prototype to avoid an error. */
21332#ifdef __cplusplus
21333extern "C"
21334#endif
21335/* We use char because int might match the return type of a gcc2
21336 builtin and then its argument prototype would still apply. */
21337char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000021338int
21339main ()
21340{
21341mallinfo ();
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext conftest$ac_exeext
21347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021348 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021355 { ac_try='test -z "$ac_c_werror_flag"
21356 || test ! -s conftest.err'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 ac_cv_search_mallinfo="none required"
21369else
21370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021371sed 's/^/| /' conftest.$ac_ext >&5
21372
John Criswell7a73b802003-06-30 21:59:07 +000021373fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021374rm -f conftest.err conftest.$ac_objext \
21375 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021376if test "$ac_cv_search_mallinfo" = no; then
21377 for ac_lib in malloc; do
21378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021380/* confdefs.h. */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021385
21386/* Override any gcc2 internal prototype to avoid an error. */
21387#ifdef __cplusplus
21388extern "C"
21389#endif
21390/* We use char because int might match the return type of a gcc2
21391 builtin and then its argument prototype would still apply. */
21392char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000021393int
21394main ()
21395{
21396mallinfo ();
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext conftest$ac_exeext
21402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021403 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021404 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021410 { ac_try='test -z "$ac_c_werror_flag"
21411 || test ! -s conftest.err'
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; } &&
21417 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21419 (eval $ac_try) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_search_mallinfo="-l$ac_lib"
21424break
21425else
21426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021427sed 's/^/| /' conftest.$ac_ext >&5
21428
John Criswell7a73b802003-06-30 21:59:07 +000021429fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021430rm -f conftest.err conftest.$ac_objext \
21431 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021432 done
21433fi
21434LIBS=$ac_func_search_save_LIBS
21435fi
21436echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
21437echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
21438if test "$ac_cv_search_mallinfo" != no; then
21439 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000021440
21441cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021442#define HAVE_MALLINFO 1
21443_ACEOF
21444
21445fi
21446
21447
Brian Gaeke5f268f72003-12-05 19:29:01 +000021448echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
21449echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
21450if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452else
21453 ac_func_search_save_LIBS=$LIBS
21454ac_cv_search_pthread_mutex_lock=no
21455cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000021456/* confdefs.h. */
21457_ACEOF
21458cat confdefs.h >>conftest.$ac_ext
21459cat >>conftest.$ac_ext <<_ACEOF
21460/* end confdefs.h. */
21461
21462/* Override any gcc2 internal prototype to avoid an error. */
21463#ifdef __cplusplus
21464extern "C"
21465#endif
21466/* We use char because int might match the return type of a gcc2
21467 builtin and then its argument prototype would still apply. */
21468char pthread_mutex_lock ();
21469int
21470main ()
21471{
21472pthread_mutex_lock ();
21473 ;
21474 return 0;
21475}
21476_ACEOF
21477rm -f conftest.$ac_objext conftest$ac_exeext
21478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021479 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000021480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000021484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021486 { ac_try='test -z "$ac_c_werror_flag"
21487 || test ! -s conftest.err'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; } &&
21493 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000021494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_cv_search_pthread_mutex_lock="none required"
21500else
21501 echo "$as_me: failed program was:" >&5
21502sed 's/^/| /' conftest.$ac_ext >&5
21503
21504fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021505rm -f conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000021507if test "$ac_cv_search_pthread_mutex_lock" = no; then
21508 for ac_lib in pthread; do
21509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21510 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000021511/* confdefs.h. */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
21515/* end confdefs.h. */
21516
21517/* Override any gcc2 internal prototype to avoid an error. */
21518#ifdef __cplusplus
21519extern "C"
21520#endif
21521/* We use char because int might match the return type of a gcc2
21522 builtin and then its argument prototype would still apply. */
21523char pthread_mutex_lock ();
21524int
21525main ()
21526{
21527pthread_mutex_lock ();
21528 ;
21529 return 0;
21530}
21531_ACEOF
21532rm -f conftest.$ac_objext conftest$ac_exeext
21533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021534 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000021535 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021536 grep -v '^ *+' conftest.er1 >conftest.err
21537 rm -f conftest.er1
21538 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000021539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021541 { ac_try='test -z "$ac_c_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000021549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
21555break
21556else
21557 echo "$as_me: failed program was:" >&5
21558sed 's/^/| /' conftest.$ac_ext >&5
21559
21560fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021561rm -f conftest.err conftest.$ac_objext \
21562 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000021563 done
21564fi
21565LIBS=$ac_func_search_save_LIBS
21566fi
21567echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
21568echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
21569if test "$ac_cv_search_pthread_mutex_lock" != no; then
21570 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000021571
John Criswell40468462004-09-24 21:19:06 +000021572cat >>confdefs.h <<\_ACEOF
21573#define HAVE_PTHREAD_MUTEX_LOCK 1
21574_ACEOF
21575
21576fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000021577
Brian Gaekec9a410c2004-02-23 21:30:37 +000021578
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021579
John Criswell7a73b802003-06-30 21:59:07 +000021580echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21581echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21582if test "${ac_cv_header_stdc+set}" = set; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584else
21585 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021586/* confdefs.h. */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021591#include <stdlib.h>
21592#include <stdarg.h>
21593#include <string.h>
21594#include <float.h>
21595
John Criswell0c38eaf2003-09-10 15:17:25 +000021596int
21597main ()
21598{
21599
21600 ;
21601 return 0;
21602}
John Criswell7a73b802003-06-30 21:59:07 +000021603_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021604rm -f conftest.$ac_objext
21605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021606 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021608 grep -v '^ *+' conftest.er1 >conftest.err
21609 rm -f conftest.er1
21610 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021612 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021613 { ac_try='test -z "$ac_c_werror_flag"
21614 || test ! -s conftest.err'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21617 ac_status=$?
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; } &&
21620 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000021621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000021626 ac_cv_header_stdc=yes
21627else
21628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021629sed 's/^/| /' conftest.$ac_ext >&5
21630
21631ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000021632fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021634
21635if test $ac_cv_header_stdc = yes; then
21636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21637 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021638/* confdefs.h. */
21639_ACEOF
21640cat confdefs.h >>conftest.$ac_ext
21641cat >>conftest.$ac_ext <<_ACEOF
21642/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021643#include <string.h>
21644
21645_ACEOF
21646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021647 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021648 :
21649else
21650 ac_cv_header_stdc=no
21651fi
21652rm -f conftest*
21653
21654fi
21655
21656if test $ac_cv_header_stdc = yes; then
21657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21658 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021664#include <stdlib.h>
21665
21666_ACEOF
21667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021668 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021669 :
21670else
21671 ac_cv_header_stdc=no
21672fi
21673rm -f conftest*
21674
21675fi
21676
21677if test $ac_cv_header_stdc = yes; then
21678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21679 if test "$cross_compiling" = yes; then
21680 :
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
21687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021688#include <ctype.h>
21689#if ((' ' & 0x0FF) == 0x020)
21690# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21691# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21692#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021693# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021694 (('a' <= (c) && (c) <= 'i') \
21695 || ('j' <= (c) && (c) <= 'r') \
21696 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000021697# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21698#endif
21699
21700#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21701int
21702main ()
21703{
21704 int i;
21705 for (i = 0; i < 256; i++)
21706 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000021707 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000021708 exit(2);
21709 exit (0);
21710}
21711_ACEOF
21712rm -f conftest$ac_exeext
21713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21714 (eval $ac_link) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 :
21724else
21725 echo "$as_me: program exited with status $ac_status" >&5
21726echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021727sed 's/^/| /' conftest.$ac_ext >&5
21728
John Criswell7a73b802003-06-30 21:59:07 +000021729( exit $ac_status )
21730ac_cv_header_stdc=no
21731fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021733fi
21734fi
21735fi
21736echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21737echo "${ECHO_T}$ac_cv_header_stdc" >&6
21738if test $ac_cv_header_stdc = yes; then
21739
21740cat >>confdefs.h <<\_ACEOF
21741#define STDC_HEADERS 1
21742_ACEOF
21743
21744fi
21745
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021746
John Criswell7a73b802003-06-30 21:59:07 +000021747echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21748echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21749if test "${ac_cv_header_sys_wait_h+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751else
21752 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021758#include <sys/types.h>
21759#include <sys/wait.h>
21760#ifndef WEXITSTATUS
21761# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21762#endif
21763#ifndef WIFEXITED
21764# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21765#endif
21766
John Criswell7a73b802003-06-30 21:59:07 +000021767int
21768main ()
21769{
21770 int s;
21771 wait (&s);
21772 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21773 ;
21774 return 0;
21775}
21776_ACEOF
21777rm -f conftest.$ac_objext
21778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021779 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021780 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021786 { ac_try='test -z "$ac_c_werror_flag"
21787 || test ! -s conftest.err'
21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21789 (eval $ac_try) 2>&5
21790 ac_status=$?
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); }; } &&
21793 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_header_sys_wait_h=yes
21800else
21801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021802sed 's/^/| /' conftest.$ac_ext >&5
21803
John Criswell7a73b802003-06-30 21:59:07 +000021804ac_cv_header_sys_wait_h=no
21805fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021807fi
21808echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21809echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21810if test $ac_cv_header_sys_wait_h = yes; then
21811
21812cat >>confdefs.h <<\_ACEOF
21813#define HAVE_SYS_WAIT_H 1
21814_ACEOF
21815
21816fi
21817
21818
21819
21820
21821
21822
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021823for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000021824do
21825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826if eval "test \"\${$as_ac_Header+set}\" = set"; then
21827 echo "$as_me:$LINENO: checking for $ac_header" >&5
21828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21829if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831fi
21832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21834else
21835 # Is the header compilable?
21836echo "$as_me:$LINENO: checking $ac_header usability" >&5
21837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21838cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021839/* confdefs.h. */
21840_ACEOF
21841cat confdefs.h >>conftest.$ac_ext
21842cat >>conftest.$ac_ext <<_ACEOF
21843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021844$ac_includes_default
21845#include <$ac_header>
21846_ACEOF
21847rm -f conftest.$ac_objext
21848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021849 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021856 { ac_try='test -z "$ac_c_werror_flag"
21857 || test ! -s conftest.err'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; } &&
21863 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21865 (eval $ac_try) 2>&5
21866 ac_status=$?
21867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868 (exit $ac_status); }; }; then
21869 ac_header_compiler=yes
21870else
21871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021872sed 's/^/| /' conftest.$ac_ext >&5
21873
John Criswell7a73b802003-06-30 21:59:07 +000021874ac_header_compiler=no
21875fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21878echo "${ECHO_T}$ac_header_compiler" >&6
21879
21880# Is the header present?
21881echo "$as_me:$LINENO: checking $ac_header presence" >&5
21882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21883cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021889#include <$ac_header>
21890_ACEOF
21891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21893 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021894 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } >/dev/null; then
21899 if test -s conftest.err; then
21900 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000021901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000021902 else
21903 ac_cpp_err=
21904 fi
21905else
21906 ac_cpp_err=yes
21907fi
21908if test -z "$ac_cpp_err"; then
21909 ac_header_preproc=yes
21910else
21911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021912sed 's/^/| /' conftest.$ac_ext >&5
21913
John Criswell7a73b802003-06-30 21:59:07 +000021914 ac_header_preproc=no
21915fi
21916rm -f conftest.err conftest.$ac_ext
21917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21918echo "${ECHO_T}$ac_header_preproc" >&6
21919
21920# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21922 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000021923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000021925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21927 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000021928 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021929 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000021930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000021932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000021938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000021940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000021942 (
21943 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000021944## ----------------------------------- ##
21945## Report this to llvmbugs@cs.uiuc.edu ##
21946## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000021947_ASBOX
21948 ) |
21949 sed "s/^/$as_me: WARNING: /" >&2
21950 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021951esac
21952echo "$as_me:$LINENO: checking for $ac_header" >&5
21953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21954if eval "test \"\${$as_ac_Header+set}\" = set"; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021957 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000021958fi
21959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21960echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21961
21962fi
21963if test `eval echo '${'$as_ac_Header'}'` = yes; then
21964 cat >>confdefs.h <<_ACEOF
21965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21966_ACEOF
21967
21968fi
21969
21970done
21971
21972
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021973
21974
21975
21976
21977
21978
21979for ac_header in bzlib.h dlfcn.h execinfo.h fcntl.h limits.h link.h ltdl.h
21980do
21981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21982if eval "test \"\${$as_ac_Header+set}\" = set"; then
21983 echo "$as_me:$LINENO: checking for $ac_header" >&5
21984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21985if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021986 echo $ECHO_N "(cached) $ECHO_C" >&6
21987fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021990else
21991 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000021992echo "$as_me:$LINENO: checking $ac_header usability" >&5
21993echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021994cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000021995/* confdefs.h. */
21996_ACEOF
21997cat confdefs.h >>conftest.$ac_ext
21998cat >>conftest.$ac_ext <<_ACEOF
21999/* end confdefs.h. */
22000$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022001#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022002_ACEOF
22003rm -f conftest.$ac_objext
22004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022005 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022007 grep -v '^ *+' conftest.er1 >conftest.err
22008 rm -f conftest.er1
22009 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022012 { ac_try='test -z "$ac_c_werror_flag"
22013 || test ! -s conftest.err'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; } &&
22019 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }; then
22025 ac_header_compiler=yes
22026else
22027 echo "$as_me: failed program was:" >&5
22028sed 's/^/| /' conftest.$ac_ext >&5
22029
22030ac_header_compiler=no
22031fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034echo "${ECHO_T}$ac_header_compiler" >&6
22035
22036# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022037echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022039cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022040/* confdefs.h. */
22041_ACEOF
22042cat confdefs.h >>conftest.$ac_ext
22043cat >>conftest.$ac_ext <<_ACEOF
22044/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022045#include <$ac_header>
22046_ACEOF
22047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } >/dev/null; then
22055 if test -s conftest.err; then
22056 ac_cpp_err=$ac_c_preproc_warn_flag
22057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22058 else
22059 ac_cpp_err=
22060 fi
22061else
22062 ac_cpp_err=yes
22063fi
22064if test -z "$ac_cpp_err"; then
22065 ac_header_preproc=yes
22066else
22067 echo "$as_me: failed program was:" >&5
22068sed 's/^/| /' conftest.$ac_ext >&5
22069
22070 ac_header_preproc=no
22071fi
22072rm -f conftest.err conftest.$ac_ext
22073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22074echo "${ECHO_T}$ac_header_preproc" >&6
22075
22076# So? What about this header?
22077case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22078 yes:no: )
22079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22083 ac_header_preproc=yes
22084 ;;
22085 no:yes:* )
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22098 (
22099 cat <<\_ASBOX
22100## ----------------------------------- ##
22101## Report this to llvmbugs@cs.uiuc.edu ##
22102## ----------------------------------- ##
22103_ASBOX
22104 ) |
22105 sed "s/^/$as_me: WARNING: /" >&2
22106 ;;
22107esac
22108echo "$as_me:$LINENO: checking for $ac_header" >&5
22109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22110if eval "test \"\${$as_ac_Header+set}\" = set"; then
22111 echo $ECHO_N "(cached) $ECHO_C" >&6
22112else
22113 eval "$as_ac_Header=\$ac_header_preproc"
22114fi
22115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22117
22118fi
22119if test `eval echo '${'$as_ac_Header'}'` = yes; then
22120 cat >>confdefs.h <<_ACEOF
22121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22122_ACEOF
22123
22124fi
22125
22126done
22127
22128
22129
22130
22131
22132for ac_header in malloc.h unistd.h windows.h zlib.h
22133do
22134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22135if eval "test \"\${$as_ac_Header+set}\" = set"; then
22136 echo "$as_me:$LINENO: checking for $ac_header" >&5
22137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22138if eval "test \"\${$as_ac_Header+set}\" = set"; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22140fi
22141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22143else
22144 # Is the header compilable?
22145echo "$as_me:$LINENO: checking $ac_header usability" >&5
22146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22147cat >conftest.$ac_ext <<_ACEOF
22148/* confdefs.h. */
22149_ACEOF
22150cat confdefs.h >>conftest.$ac_ext
22151cat >>conftest.$ac_ext <<_ACEOF
22152/* end confdefs.h. */
22153$ac_includes_default
22154#include <$ac_header>
22155_ACEOF
22156rm -f conftest.$ac_objext
22157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22158 (eval $ac_compile) 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
22165 { ac_try='test -z "$ac_c_werror_flag"
22166 || test ! -s conftest.err'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; } &&
22172 { ac_try='test -s conftest.$ac_objext'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 ac_header_compiler=yes
22179else
22180 echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
22183ac_header_compiler=no
22184fi
22185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22187echo "${ECHO_T}$ac_header_compiler" >&6
22188
22189# Is the header present?
22190echo "$as_me:$LINENO: checking $ac_header presence" >&5
22191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22192cat >conftest.$ac_ext <<_ACEOF
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198#include <$ac_header>
22199_ACEOF
22200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } >/dev/null; then
22208 if test -s conftest.err; then
22209 ac_cpp_err=$ac_c_preproc_warn_flag
22210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22211 else
22212 ac_cpp_err=
22213 fi
22214else
22215 ac_cpp_err=yes
22216fi
22217if test -z "$ac_cpp_err"; then
22218 ac_header_preproc=yes
22219else
22220 echo "$as_me: failed program was:" >&5
22221sed 's/^/| /' conftest.$ac_ext >&5
22222
22223 ac_header_preproc=no
22224fi
22225rm -f conftest.err conftest.$ac_ext
22226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22227echo "${ECHO_T}$ac_header_preproc" >&6
22228
22229# So? What about this header?
22230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22231 yes:no: )
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22236 ac_header_preproc=yes
22237 ;;
22238 no:yes:* )
22239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22251 (
22252 cat <<\_ASBOX
22253## ----------------------------------- ##
22254## Report this to llvmbugs@cs.uiuc.edu ##
22255## ----------------------------------- ##
22256_ASBOX
22257 ) |
22258 sed "s/^/$as_me: WARNING: /" >&2
22259 ;;
22260esac
22261echo "$as_me:$LINENO: checking for $ac_header" >&5
22262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22263if eval "test \"\${$as_ac_Header+set}\" = set"; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22265else
22266 eval "$as_ac_Header=\$ac_header_preproc"
22267fi
22268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22270
22271fi
22272if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273 cat >>confdefs.h <<_ACEOF
22274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22275_ACEOF
22276
22277fi
22278
22279done
22280
22281echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22282echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22283if test "${ac_cv_header_time+set}" = set; then
22284 echo $ECHO_N "(cached) $ECHO_C" >&6
22285else
22286 cat >conftest.$ac_ext <<_ACEOF
22287/* confdefs.h. */
22288_ACEOF
22289cat confdefs.h >>conftest.$ac_ext
22290cat >>conftest.$ac_ext <<_ACEOF
22291/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022292#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022293#include <sys/time.h>
22294#include <time.h>
22295
22296int
22297main ()
22298{
22299if ((struct tm *) 0)
22300return 0;
22301 ;
22302 return 0;
22303}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022304_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022305rm -f conftest.$ac_objext
22306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022308 ac_status=$?
22309 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1
22311 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022313 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_c_werror_flag"
22315 || test ! -s conftest.err'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5
22318 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } &&
22321 { ac_try='test -s conftest.$ac_objext'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
22327 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022328else
22329 echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022332ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022333fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22335fi
22336echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22337echo "${ECHO_T}$ac_cv_header_time" >&6
22338if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022339
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022340cat >>confdefs.h <<\_ACEOF
22341#define TIME_WITH_SYS_TIME 1
22342_ACEOF
22343
22344fi
22345
22346echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22347echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22348if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022351 ac_ext=c
22352ac_cpp='$CPP $CPPFLAGS'
22353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22355ac_compiler_gnu=$ac_cv_c_compiler_gnu
22356
22357 cat >conftest.$ac_ext <<_ACEOF
22358/* confdefs.h. */
22359_ACEOF
22360cat confdefs.h >>conftest.$ac_ext
22361cat >>conftest.$ac_ext <<_ACEOF
22362/* end confdefs.h. */
22363#include <sys/mman.h>
22364#include <unistd.h>
22365#include <fcntl.h>
22366int
22367main ()
22368{
22369mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22370 ;
22371 return 0;
22372}
22373_ACEOF
22374rm -f conftest.$ac_objext
22375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376 (eval $ac_compile) 2>conftest.er1
22377 ac_status=$?
22378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -z "$ac_c_werror_flag"
22384 || test ! -s conftest.err'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; } &&
22390 { ac_try='test -s conftest.$ac_objext'
22391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22393 ac_status=$?
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); }; }; then
22396 ac_cv_header_mmap_anon=yes
22397else
22398 echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022402fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22404 ac_ext=c
22405ac_cpp='$CPP $CPPFLAGS'
22406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22408ac_compiler_gnu=$ac_cv_c_compiler_gnu
22409
22410
22411fi
22412echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22413echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22414if test "$ac_cv_header_mmap_anon" = yes; then
22415
22416cat >>confdefs.h <<\_ACEOF
22417#define HAVE_MMAP_ANONYMOUS
22418_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022419
22420fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022421
22422
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022423
22424
22425for ac_header in inttypes.h stdint.h
22426do
22427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22428if eval "test \"\${$as_ac_Header+set}\" = set"; then
22429 echo "$as_me:$LINENO: checking for $ac_header" >&5
22430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22431if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022436else
22437 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022438echo "$as_me:$LINENO: checking $ac_header usability" >&5
22439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022440cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022441/* confdefs.h. */
22442_ACEOF
22443cat confdefs.h >>conftest.$ac_ext
22444cat >>conftest.$ac_ext <<_ACEOF
22445/* end confdefs.h. */
22446$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022447#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022448_ACEOF
22449rm -f conftest.$ac_objext
22450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022451 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022458 { ac_try='test -z "$ac_c_werror_flag"
22459 || test ! -s conftest.err'
22460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22461 (eval $ac_try) 2>&5
22462 ac_status=$?
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464 (exit $ac_status); }; } &&
22465 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }; then
22471 ac_header_compiler=yes
22472else
22473 echo "$as_me: failed program was:" >&5
22474sed 's/^/| /' conftest.$ac_ext >&5
22475
22476ac_header_compiler=no
22477fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480echo "${ECHO_T}$ac_header_compiler" >&6
22481
22482# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022483echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022485cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022486/* confdefs.h. */
22487_ACEOF
22488cat confdefs.h >>conftest.$ac_ext
22489cat >>conftest.$ac_ext <<_ACEOF
22490/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022491#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022492_ACEOF
22493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22495 ac_status=$?
22496 grep -v '^ *+' conftest.er1 >conftest.err
22497 rm -f conftest.er1
22498 cat conftest.err >&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } >/dev/null; then
22501 if test -s conftest.err; then
22502 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000022503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022504 else
22505 ac_cpp_err=
22506 fi
22507else
22508 ac_cpp_err=yes
22509fi
22510if test -z "$ac_cpp_err"; then
22511 ac_header_preproc=yes
22512else
22513 echo "$as_me: failed program was:" >&5
22514sed 's/^/| /' conftest.$ac_ext >&5
22515
22516 ac_header_preproc=no
22517fi
22518rm -f conftest.err conftest.$ac_ext
22519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520echo "${ECHO_T}$ac_header_preproc" >&6
22521
22522# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22524 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022529 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000022530 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022531 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022544 (
22545 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000022546## ----------------------------------- ##
22547## Report this to llvmbugs@cs.uiuc.edu ##
22548## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022549_ASBOX
22550 ) |
22551 sed "s/^/$as_me: WARNING: /" >&2
22552 ;;
22553esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022554echo "$as_me:$LINENO: checking for $ac_header" >&5
22555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22556if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022559 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022560fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022563
22564fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022565if test `eval echo '${'$as_ac_Header'}'` = yes; then
22566 cat >>confdefs.h <<_ACEOF
22567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000022568_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000022569
22570fi
John Criswell7ed43ad2004-07-19 16:12:29 +000022571
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022572done
22573
John Criswell7ed43ad2004-07-19 16:12:29 +000022574
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022575
John Criswell7a73b802003-06-30 21:59:07 +000022576echo "$as_me:$LINENO: checking for pid_t" >&5
22577echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22578if test "${ac_cv_type_pid_t+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22580else
22581 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022582/* confdefs.h. */
22583_ACEOF
22584cat confdefs.h >>conftest.$ac_ext
22585cat >>conftest.$ac_ext <<_ACEOF
22586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022587$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022588int
22589main ()
22590{
22591if ((pid_t *) 0)
22592 return 0;
22593if (sizeof (pid_t))
22594 return 0;
22595 ;
22596 return 0;
22597}
22598_ACEOF
22599rm -f conftest.$ac_objext
22600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603 grep -v '^ *+' conftest.er1 >conftest.err
22604 rm -f conftest.er1
22605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022608 { ac_try='test -z "$ac_c_werror_flag"
22609 || test ! -s conftest.err'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22612 ac_status=$?
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; } &&
22615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; }; then
22621 ac_cv_type_pid_t=yes
22622else
22623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022624sed 's/^/| /' conftest.$ac_ext >&5
22625
John Criswell7a73b802003-06-30 21:59:07 +000022626ac_cv_type_pid_t=no
22627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022629fi
22630echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22631echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22632if test $ac_cv_type_pid_t = yes; then
22633 :
22634else
22635
22636cat >>confdefs.h <<_ACEOF
22637#define pid_t int
22638_ACEOF
22639
22640fi
22641
22642echo "$as_me:$LINENO: checking for size_t" >&5
22643echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22644if test "${ac_cv_type_size_t+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22646else
22647 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022648/* confdefs.h. */
22649_ACEOF
22650cat confdefs.h >>conftest.$ac_ext
22651cat >>conftest.$ac_ext <<_ACEOF
22652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022653$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022654int
22655main ()
22656{
22657if ((size_t *) 0)
22658 return 0;
22659if (sizeof (size_t))
22660 return 0;
22661 ;
22662 return 0;
22663}
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
John Criswell7a73b802003-06-30 21:59:07 +000022668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022674 { ac_try='test -z "$ac_c_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_cv_type_size_t=yes
22688else
22689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022690sed 's/^/| /' conftest.$ac_ext >&5
22691
John Criswell7a73b802003-06-30 21:59:07 +000022692ac_cv_type_size_t=no
22693fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022695fi
22696echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22697echo "${ECHO_T}$ac_cv_type_size_t" >&6
22698if test $ac_cv_type_size_t = yes; then
22699 :
22700else
22701
22702cat >>confdefs.h <<_ACEOF
22703#define size_t unsigned
22704_ACEOF
22705
22706fi
22707
Reid Spencer5e1d9a52004-11-25 04:51:04 +000022708echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22709echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22710if test "${ac_cv_type_signal+set}" = set; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22712else
22713 cat >conftest.$ac_ext <<_ACEOF
22714/* confdefs.h. */
22715_ACEOF
22716cat confdefs.h >>conftest.$ac_ext
22717cat >>conftest.$ac_ext <<_ACEOF
22718/* end confdefs.h. */
22719#include <sys/types.h>
22720#include <signal.h>
22721#ifdef signal
22722# undef signal
22723#endif
22724#ifdef __cplusplus
22725extern "C" void (*signal (int, void (*)(int)))(int);
22726#else
22727void (*signal ()) ();
22728#endif
22729
22730int
22731main ()
22732{
22733int i;
22734 ;
22735 return 0;
22736}
22737_ACEOF
22738rm -f conftest.$ac_objext
22739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_type_signal=void
22761else
22762 echo "$as_me: failed program was:" >&5
22763sed 's/^/| /' conftest.$ac_ext >&5
22764
22765ac_cv_type_signal=int
22766fi
22767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22768fi
22769echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22770echo "${ECHO_T}$ac_cv_type_signal" >&6
22771
22772cat >>confdefs.h <<_ACEOF
22773#define RETSIGTYPE $ac_cv_type_signal
22774_ACEOF
22775
22776
22777echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22778echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22779if test "${ac_cv_struct_tm+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22781else
22782 cat >conftest.$ac_ext <<_ACEOF
22783/* confdefs.h. */
22784_ACEOF
22785cat confdefs.h >>conftest.$ac_ext
22786cat >>conftest.$ac_ext <<_ACEOF
22787/* end confdefs.h. */
22788#include <sys/types.h>
22789#include <time.h>
22790
22791int
22792main ()
22793{
22794struct tm *tp; tp->tm_sec;
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext
22800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22801 (eval $ac_compile) 2>conftest.er1
22802 ac_status=$?
22803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
22808 { ac_try='test -z "$ac_c_werror_flag"
22809 || test ! -s conftest.err'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22812 ac_status=$?
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; } &&
22815 { ac_try='test -s conftest.$ac_objext'
22816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; }; then
22821 ac_cv_struct_tm=time.h
22822else
22823 echo "$as_me: failed program was:" >&5
22824sed 's/^/| /' conftest.$ac_ext >&5
22825
22826ac_cv_struct_tm=sys/time.h
22827fi
22828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22829fi
22830echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22831echo "${ECHO_T}$ac_cv_struct_tm" >&6
22832if test $ac_cv_struct_tm = sys/time.h; then
22833
22834cat >>confdefs.h <<\_ACEOF
22835#define TM_IN_SYS_TIME 1
22836_ACEOF
22837
22838fi
22839
John Criswell7a73b802003-06-30 21:59:07 +000022840echo "$as_me:$LINENO: checking for int64_t" >&5
22841echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
22842if test "${ac_cv_type_int64_t+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844else
22845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022846/* confdefs.h. */
22847_ACEOF
22848cat confdefs.h >>conftest.$ac_ext
22849cat >>conftest.$ac_ext <<_ACEOF
22850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022851$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022852int
22853main ()
22854{
22855if ((int64_t *) 0)
22856 return 0;
22857if (sizeof (int64_t))
22858 return 0;
22859 ;
22860 return 0;
22861}
22862_ACEOF
22863rm -f conftest.$ac_objext
22864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022865 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022872 { ac_try='test -z "$ac_c_werror_flag"
22873 || test ! -s conftest.err'
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 ac_cv_type_int64_t=yes
22886else
22887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022888sed 's/^/| /' conftest.$ac_ext >&5
22889
John Criswell7a73b802003-06-30 21:59:07 +000022890ac_cv_type_int64_t=no
22891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022893fi
22894echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
22895echo "${ECHO_T}$ac_cv_type_int64_t" >&6
22896if test $ac_cv_type_int64_t = yes; then
22897
22898cat >>confdefs.h <<_ACEOF
22899#define HAVE_INT64_T 1
22900_ACEOF
22901
22902
22903else
22904 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
22905echo "$as_me: error: Type int64_t required but not found" >&2;}
22906 { (exit 1); exit 1; }; }
22907fi
22908
22909echo "$as_me:$LINENO: checking for uint64_t" >&5
22910echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22911if test "${ac_cv_type_uint64_t+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913else
22914 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022915/* confdefs.h. */
22916_ACEOF
22917cat confdefs.h >>conftest.$ac_ext
22918cat >>conftest.$ac_ext <<_ACEOF
22919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022920$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000022921int
22922main ()
22923{
22924if ((uint64_t *) 0)
22925 return 0;
22926if (sizeof (uint64_t))
22927 return 0;
22928 ;
22929 return 0;
22930}
22931_ACEOF
22932rm -f conftest.$ac_objext
22933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022934 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022935 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022941 { ac_try='test -z "$ac_c_werror_flag"
22942 || test ! -s conftest.err'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22945 ac_status=$?
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; } &&
22948 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; }; then
22954 ac_cv_type_uint64_t=yes
22955else
22956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022957sed 's/^/| /' conftest.$ac_ext >&5
22958
John Criswell7a73b802003-06-30 21:59:07 +000022959ac_cv_type_uint64_t=no
22960fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022962fi
22963echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
22964echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
22965if test $ac_cv_type_uint64_t = yes; then
22966
22967cat >>confdefs.h <<_ACEOF
22968#define HAVE_UINT64_T 1
22969_ACEOF
22970
22971
22972else
Misha Brukmanceca9042004-09-02 23:02:30 +000022973 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000022974echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
22975if test "${ac_cv_type_u_int64_t+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977else
22978 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000022979/* confdefs.h. */
22980_ACEOF
22981cat confdefs.h >>conftest.$ac_ext
22982cat >>conftest.$ac_ext <<_ACEOF
22983/* end confdefs.h. */
22984$ac_includes_default
22985int
22986main ()
22987{
22988if ((u_int64_t *) 0)
22989 return 0;
22990if (sizeof (u_int64_t))
22991 return 0;
22992 ;
22993 return 0;
22994}
22995_ACEOF
22996rm -f conftest.$ac_objext
22997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022998 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000022999 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000023003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023005 { ac_try='test -z "$ac_c_werror_flag"
23006 || test ! -s conftest.err'
23007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); }; } &&
23012 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000023013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23018 ac_cv_type_u_int64_t=yes
23019else
23020 echo "$as_me: failed program was:" >&5
23021sed 's/^/| /' conftest.$ac_ext >&5
23022
23023ac_cv_type_u_int64_t=no
23024fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000023026fi
23027echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
23028echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
23029if test $ac_cv_type_u_int64_t = yes; then
23030
23031cat >>confdefs.h <<_ACEOF
23032#define HAVE_U_INT64_T 1
23033_ACEOF
23034
23035
Misha Brukmanceca9042004-09-02 23:02:30 +000023036else
23037 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
23038echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
23039 { (exit 1); exit 1; }; }
23040fi
23041
John Criswell679ff312004-09-02 18:44:44 +000023042fi
23043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023044
23045
23046
23047
23048
23049
23050
23051
23052for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
23053do
23054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23055echo "$as_me:$LINENO: checking for $ac_func" >&5
23056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23057if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000023058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059else
23060 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023061/* confdefs.h. */
23062_ACEOF
23063cat confdefs.h >>conftest.$ac_ext
23064cat >>conftest.$ac_ext <<_ACEOF
23065/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23068#define $ac_func innocuous_$ac_func
23069
23070/* System header to define __stub macros and hopefully few prototypes,
23071 which can conflict with char $ac_func (); below.
23072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23073 <limits.h> exists even on freestanding compilers. */
23074
23075#ifdef __STDC__
23076# include <limits.h>
23077#else
23078# include <assert.h>
23079#endif
23080
23081#undef $ac_func
23082
23083/* Override any gcc2 internal prototype to avoid an error. */
23084#ifdef __cplusplus
23085extern "C"
23086{
23087#endif
23088/* We use char because int might match the return type of a gcc2
23089 builtin and then its argument prototype would still apply. */
23090char $ac_func ();
23091/* The GNU C library defines this for functions which it implements
23092 to always fail with ENOSYS. Some functions are actually named
23093 something starting with __ and the normal name is an alias. */
23094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23095choke me
23096#else
23097char (*f) () = $ac_func;
23098#endif
23099#ifdef __cplusplus
23100}
23101#endif
John Criswell7a73b802003-06-30 21:59:07 +000023102
John Criswell7a73b802003-06-30 21:59:07 +000023103int
23104main ()
23105{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023106return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023107 ;
23108 return 0;
23109}
23110_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023111rm -f conftest.$ac_objext conftest$ac_exeext
23112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023120 { ac_try='test -z "$ac_c_werror_flag"
23121 || test ! -s conftest.err'
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023127 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023133 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000023134else
23135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023136sed 's/^/| /' conftest.$ac_ext >&5
23137
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023138eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000023139fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023140rm -f conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023142fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23144echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23145if test `eval echo '${'$as_ac_var'}'` = yes; then
23146 cat >>confdefs.h <<_ACEOF
23147#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000023148_ACEOF
23149
23150fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023151done
John Criswell7a73b802003-06-30 21:59:07 +000023152
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023153
23154
23155
23156for ac_func in strdup strtoq strtoll
23157do
23158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23159echo "$as_me:$LINENO: checking for $ac_func" >&5
23160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23161if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000023162 echo $ECHO_N "(cached) $ECHO_C" >&6
23163else
23164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023165/* confdefs.h. */
23166_ACEOF
23167cat confdefs.h >>conftest.$ac_ext
23168cat >>conftest.$ac_ext <<_ACEOF
23169/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023170/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23172#define $ac_func innocuous_$ac_func
23173
23174/* System header to define __stub macros and hopefully few prototypes,
23175 which can conflict with char $ac_func (); below.
23176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177 <limits.h> exists even on freestanding compilers. */
23178
23179#ifdef __STDC__
23180# include <limits.h>
23181#else
23182# include <assert.h>
23183#endif
23184
23185#undef $ac_func
23186
23187/* Override any gcc2 internal prototype to avoid an error. */
23188#ifdef __cplusplus
23189extern "C"
23190{
23191#endif
23192/* We use char because int might match the return type of a gcc2
23193 builtin and then its argument prototype would still apply. */
23194char $ac_func ();
23195/* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23199choke me
23200#else
23201char (*f) () = $ac_func;
23202#endif
23203#ifdef __cplusplus
23204}
23205#endif
John Criswell7a73b802003-06-30 21:59:07 +000023206
John Criswell7a73b802003-06-30 21:59:07 +000023207int
23208main ()
23209{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023210return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023211 ;
23212 return 0;
23213}
23214_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023215rm -f conftest.$ac_objext conftest$ac_exeext
23216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023231 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023237 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000023238else
23239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023240sed 's/^/| /' conftest.$ac_ext >&5
23241
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023242eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000023243fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023244rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023246fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23249if test `eval echo '${'$as_ac_var'}'` = yes; then
23250 cat >>confdefs.h <<_ACEOF
23251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000023252_ACEOF
23253
23254fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023255done
John Criswell7a73b802003-06-30 21:59:07 +000023256
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023257echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
23258echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000023259if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023262 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000023263ac_cpp='$CPP $CPPFLAGS'
23264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23266ac_compiler_gnu=$ac_cv_c_compiler_gnu
23267
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023268 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000023269 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000023270else
23271 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000023272
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023273 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000023274_ACEOF
23275cat confdefs.h >>conftest.$ac_ext
23276cat >>conftest.$ac_ext <<_ACEOF
23277/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023278
John Criswella0137d32003-10-13 16:22:01 +000023279#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000023280#include <stdlib.h>
23281
John Criswella0137d32003-10-13 16:22:01 +000023282int
23283main ()
23284{
23285
Reid Spencer2706f8c2004-09-19 23:53:36 +000023286volatile double A, B;
23287char Buffer[100];
23288A = 1;
23289A /= 10.0;
23290sprintf(Buffer, "%a", A);
23291B = atof(Buffer);
23292if (A != B)
23293 return (1);
23294if (A != 0x1.999999999999ap-4)
23295 return (1);
23296return (0);
John Criswella0137d32003-10-13 16:22:01 +000023297 ;
23298 return 0;
23299}
23300_ACEOF
23301rm -f conftest$ac_exeext
23302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23303 (eval $ac_link) 2>&5
23304 ac_status=$?
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23308 (eval $ac_try) 2>&5
23309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000023312 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000023313else
23314 echo "$as_me: program exited with status $ac_status" >&5
23315echo "$as_me: failed program was:" >&5
23316sed 's/^/| /' conftest.$ac_ext >&5
23317
23318( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000023319llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000023320fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000023322fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023323 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000023324ac_cpp='$CPP $CPPFLAGS'
23325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327ac_compiler_gnu=$ac_cv_c_compiler_gnu
23328
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023329fi
Reid Spencer3be58f92004-11-27 22:01:43 +000023330echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
23331echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
23332 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000023333
23334cat >>confdefs.h <<\_ACEOF
23335#define HAVE_PRINTF_A 1
23336_ACEOF
23337
Reid Spencer2706f8c2004-09-19 23:53:36 +000023338 fi
John Criswella0137d32003-10-13 16:22:01 +000023339
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023340# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23341# for constant arguments. Useless!
23342echo "$as_me:$LINENO: checking for working alloca.h" >&5
23343echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23344if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000023345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346else
John Criswell0021c312004-02-13 21:57:29 +000023347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000023348/* confdefs.h. */
23349_ACEOF
23350cat confdefs.h >>conftest.$ac_ext
23351cat >>conftest.$ac_ext <<_ACEOF
23352/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023353#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000023354int
23355main ()
23356{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023357char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000023358 ;
23359 return 0;
23360}
23361_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023362rm -f conftest.$ac_objext conftest$ac_exeext
23363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23364 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000023365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023366 grep -v '^ *+' conftest.er1 >conftest.err
23367 rm -f conftest.er1
23368 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000023369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023371 { ac_try='test -z "$ac_c_werror_flag"
23372 || test ! -s conftest.err'
23373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023378 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000023379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023384 ac_cv_working_alloca_h=yes
23385else
23386 echo "$as_me: failed program was:" >&5
23387sed 's/^/| /' conftest.$ac_ext >&5
23388
23389ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000023390fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023391rm -f conftest.err conftest.$ac_objext \
23392 conftest$ac_exeext conftest.$ac_ext
23393fi
23394echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23395echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23396if test $ac_cv_working_alloca_h = yes; then
23397
23398cat >>confdefs.h <<\_ACEOF
23399#define HAVE_ALLOCA_H 1
23400_ACEOF
23401
23402fi
23403
23404echo "$as_me:$LINENO: checking for alloca" >&5
23405echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23406if test "${ac_cv_func_alloca_works+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23408else
23409 cat >conftest.$ac_ext <<_ACEOF
23410/* confdefs.h. */
23411_ACEOF
23412cat confdefs.h >>conftest.$ac_ext
23413cat >>conftest.$ac_ext <<_ACEOF
23414/* end confdefs.h. */
23415#ifdef __GNUC__
23416# define alloca __builtin_alloca
23417#else
23418# ifdef _MSC_VER
23419# include <malloc.h>
23420# define alloca _alloca
23421# else
23422# if HAVE_ALLOCA_H
23423# include <alloca.h>
23424# else
23425# ifdef _AIX
23426 #pragma alloca
23427# else
23428# ifndef alloca /* predefined by HP cc +Olibcalls */
23429char *alloca ();
23430# endif
23431# endif
23432# endif
23433# endif
23434#endif
23435
23436int
23437main ()
23438{
23439char *p = (char *) alloca (1);
23440 ;
23441 return 0;
23442}
23443_ACEOF
23444rm -f conftest.$ac_objext conftest$ac_exeext
23445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23446 (eval $ac_link) 2>conftest.er1
23447 ac_status=$?
23448 grep -v '^ *+' conftest.er1 >conftest.err
23449 rm -f conftest.er1
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
23453 { ac_try='test -z "$ac_c_werror_flag"
23454 || test ! -s conftest.err'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; } &&
23460 { ac_try='test -s conftest$ac_exeext'
23461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23466 ac_cv_func_alloca_works=yes
23467else
23468 echo "$as_me: failed program was:" >&5
23469sed 's/^/| /' conftest.$ac_ext >&5
23470
23471ac_cv_func_alloca_works=no
23472fi
23473rm -f conftest.err conftest.$ac_objext \
23474 conftest$ac_exeext conftest.$ac_ext
23475fi
23476echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23477echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23478
23479if test $ac_cv_func_alloca_works = yes; then
23480
23481cat >>confdefs.h <<\_ACEOF
23482#define HAVE_ALLOCA 1
23483_ACEOF
23484
23485else
23486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23487# that cause trouble. Some versions do not even contain alloca or
23488# contain a buggy version. If you still want to use their alloca,
23489# use ar to extract alloca.o from them instead of compiling alloca.c.
23490
23491ALLOCA=alloca.$ac_objext
23492
23493cat >>confdefs.h <<\_ACEOF
23494#define C_ALLOCA 1
23495_ACEOF
23496
23497
23498echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23499echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23500if test "${ac_cv_os_cray+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23502else
23503 cat >conftest.$ac_ext <<_ACEOF
23504/* confdefs.h. */
23505_ACEOF
23506cat confdefs.h >>conftest.$ac_ext
23507cat >>conftest.$ac_ext <<_ACEOF
23508/* end confdefs.h. */
23509#if defined(CRAY) && ! defined(CRAY2)
23510webecray
23511#else
23512wenotbecray
23513#endif
23514
23515_ACEOF
23516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23517 $EGREP "webecray" >/dev/null 2>&1; then
23518 ac_cv_os_cray=yes
23519else
23520 ac_cv_os_cray=no
23521fi
23522rm -f conftest*
23523
23524fi
23525echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23526echo "${ECHO_T}$ac_cv_os_cray" >&6
23527if test $ac_cv_os_cray = yes; then
23528 for ac_func in _getb67 GETB67 getb67; do
23529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23530echo "$as_me:$LINENO: checking for $ac_func" >&5
23531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23532if eval "test \"\${$as_ac_var+set}\" = set"; then
23533 echo $ECHO_N "(cached) $ECHO_C" >&6
23534else
23535 cat >conftest.$ac_ext <<_ACEOF
23536/* confdefs.h. */
23537_ACEOF
23538cat confdefs.h >>conftest.$ac_ext
23539cat >>conftest.$ac_ext <<_ACEOF
23540/* end confdefs.h. */
23541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23543#define $ac_func innocuous_$ac_func
23544
23545/* System header to define __stub macros and hopefully few prototypes,
23546 which can conflict with char $ac_func (); below.
23547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23548 <limits.h> exists even on freestanding compilers. */
23549
23550#ifdef __STDC__
23551# include <limits.h>
23552#else
23553# include <assert.h>
23554#endif
23555
23556#undef $ac_func
23557
23558/* Override any gcc2 internal prototype to avoid an error. */
23559#ifdef __cplusplus
23560extern "C"
23561{
23562#endif
23563/* We use char because int might match the return type of a gcc2
23564 builtin and then its argument prototype would still apply. */
23565char $ac_func ();
23566/* The GNU C library defines this for functions which it implements
23567 to always fail with ENOSYS. Some functions are actually named
23568 something starting with __ and the normal name is an alias. */
23569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23570choke me
23571#else
23572char (*f) () = $ac_func;
23573#endif
23574#ifdef __cplusplus
23575}
23576#endif
23577
23578int
23579main ()
23580{
23581return f != $ac_func;
23582 ;
23583 return 0;
23584}
23585_ACEOF
23586rm -f conftest.$ac_objext conftest$ac_exeext
23587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23588 (eval $ac_link) 2>conftest.er1
23589 ac_status=$?
23590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } &&
23595 { ac_try='test -z "$ac_c_werror_flag"
23596 || test ! -s conftest.err'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; } &&
23602 { ac_try='test -s conftest$ac_exeext'
23603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; }; then
23608 eval "$as_ac_var=yes"
23609else
23610 echo "$as_me: failed program was:" >&5
23611sed 's/^/| /' conftest.$ac_ext >&5
23612
23613eval "$as_ac_var=no"
23614fi
23615rm -f conftest.err conftest.$ac_objext \
23616 conftest$ac_exeext conftest.$ac_ext
23617fi
23618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23620if test `eval echo '${'$as_ac_var'}'` = yes; then
23621
23622cat >>confdefs.h <<_ACEOF
23623#define CRAY_STACKSEG_END $ac_func
23624_ACEOF
23625
23626 break
23627fi
23628
23629 done
23630fi
23631
23632echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23633echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23634if test "${ac_cv_c_stack_direction+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23636else
23637 if test "$cross_compiling" = yes; then
23638 ac_cv_c_stack_direction=0
23639else
23640 cat >conftest.$ac_ext <<_ACEOF
23641/* confdefs.h. */
23642_ACEOF
23643cat confdefs.h >>conftest.$ac_ext
23644cat >>conftest.$ac_ext <<_ACEOF
23645/* end confdefs.h. */
23646int
23647find_stack_direction ()
23648{
23649 static char *addr = 0;
23650 auto char dummy;
23651 if (addr == 0)
23652 {
23653 addr = &dummy;
23654 return find_stack_direction ();
23655 }
John Criswell0021c312004-02-13 21:57:29 +000023656 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023657 return (&dummy > addr) ? 1 : -1;
23658}
John Criswell0021c312004-02-13 21:57:29 +000023659
John Criswell0021c312004-02-13 21:57:29 +000023660int
23661main ()
23662{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023663 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000023664}
23665_ACEOF
23666rm -f conftest$ac_exeext
23667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23668 (eval $ac_link) 2>&5
23669 ac_status=$?
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23674 ac_status=$?
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023677 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000023678else
23679 echo "$as_me: program exited with status $ac_status" >&5
23680echo "$as_me: failed program was:" >&5
23681sed 's/^/| /' conftest.$ac_ext >&5
23682
23683( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023684ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000023685fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000023687fi
23688fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023689echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23690echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23691
23692cat >>confdefs.h <<_ACEOF
23693#define STACK_DIRECTION $ac_cv_c_stack_direction
23694_ACEOF
23695
23696
John Criswell0021c312004-02-13 21:57:29 +000023697fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000023698
23699
23700echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23701echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23702if test "${ac_cv_func_rand48+set}" = set; then
23703 echo $ECHO_N "(cached) $ECHO_C" >&6
23704else
23705 ac_ext=cc
23706ac_cpp='$CXXCPP $CPPFLAGS'
23707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23710
23711 cat >conftest.$ac_ext <<_ACEOF
23712/* confdefs.h. */
23713_ACEOF
23714cat confdefs.h >>conftest.$ac_ext
23715cat >>conftest.$ac_ext <<_ACEOF
23716/* end confdefs.h. */
23717#include <stdlib.h>
23718int
23719main ()
23720{
23721srand48(0);lrand48();drand48();
23722 ;
23723 return 0;
23724}
23725_ACEOF
23726rm -f conftest.$ac_objext
23727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23728 (eval $ac_compile) 2>conftest.er1
23729 ac_status=$?
23730 grep -v '^ *+' conftest.er1 >conftest.err
23731 rm -f conftest.er1
23732 cat conftest.err >&5
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } &&
23735 { ac_try='test -z "$ac_cxx_werror_flag"
23736 || test ! -s conftest.err'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23739 ac_status=$?
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; } &&
23742 { ac_try='test -s conftest.$ac_objext'
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_rand48=yes
23749else
23750 echo "$as_me: failed program was:" >&5
23751sed 's/^/| /' conftest.$ac_ext >&5
23752
23753ac_cv_func_rand48=no
23754fi
23755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23756 ac_ext=c
23757ac_cpp='$CPP $CPPFLAGS'
23758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23760ac_compiler_gnu=$ac_cv_c_compiler_gnu
23761
23762fi
23763echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23764echo "${ECHO_T}$ac_cv_func_rand48" >&6
23765
23766if test "$ac_cv_func_rand48" = "yes" ; then
23767
23768cat >>confdefs.h <<\_ACEOF
23769#define HAVE_RAND48 1
23770_ACEOF
23771
23772fi
John Criswell0021c312004-02-13 21:57:29 +000023773
23774
John Criswell7a73b802003-06-30 21:59:07 +000023775echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23776echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
23777if test "${ac_cv_cxx_namespaces+set}" = set; then
23778 echo $ECHO_N "(cached) $ECHO_C" >&6
23779else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023780 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000023781ac_cpp='$CXXCPP $CPPFLAGS'
23782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23785
23786 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023787/* confdefs.h. */
23788_ACEOF
23789cat confdefs.h >>conftest.$ac_ext
23790cat >>conftest.$ac_ext <<_ACEOF
23791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023792namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000023793int
23794main ()
23795{
23796using namespace Outer::Inner; return i;
23797 ;
23798 return 0;
23799}
23800_ACEOF
23801rm -f conftest.$ac_objext
23802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023803 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023805 grep -v '^ *+' conftest.er1 >conftest.err
23806 rm -f conftest.er1
23807 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023810 { ac_try='test -z "$ac_cxx_werror_flag"
23811 || test ! -s conftest.err'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23814 ac_status=$?
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 ac_cv_cxx_namespaces=yes
23824else
23825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023826sed 's/^/| /' conftest.$ac_ext >&5
23827
John Criswell7a73b802003-06-30 21:59:07 +000023828ac_cv_cxx_namespaces=no
23829fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023831 ac_ext=c
23832ac_cpp='$CPP $CPPFLAGS'
23833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23835ac_compiler_gnu=$ac_cv_c_compiler_gnu
23836
23837
23838fi
23839echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23840echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
23841if test "$ac_cv_cxx_namespaces" = yes; then
23842
23843cat >>confdefs.h <<\_ACEOF
23844#define HAVE_NAMESPACES
23845_ACEOF
23846
23847fi
23848
Brian Gaeke90583492003-11-10 03:06:28 +000023849echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
23850echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
23851if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000023852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853else
23854
John Criswell7a73b802003-06-30 21:59:07 +000023855 ac_ext=cc
23856ac_cpp='$CXXCPP $CPPFLAGS'
23857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23860
23861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023862/* confdefs.h. */
23863_ACEOF
23864cat confdefs.h >>conftest.$ac_ext
23865cat >>conftest.$ac_ext <<_ACEOF
23866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023867#include <ext/hash_map>
23868#ifdef HAVE_NAMESPACES
23869using namespace std;
23870#endif
John Criswell7a73b802003-06-30 21:59:07 +000023871int
23872main ()
23873{
Brian Gaeke90583492003-11-10 03:06:28 +000023874hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000023875 ;
23876 return 0;
23877}
23878_ACEOF
23879rm -f conftest.$ac_objext
23880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023881 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023882 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023883 grep -v '^ *+' conftest.er1 >conftest.err
23884 rm -f conftest.er1
23885 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023888 { ac_try='test -z "$ac_cxx_werror_flag"
23889 || test ! -s conftest.err'
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23892 ac_status=$?
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; } &&
23895 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897 (eval $ac_try) 2>&5
23898 ac_status=$?
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000023901 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000023902else
23903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023904sed 's/^/| /' conftest.$ac_ext >&5
23905
Brian Gaeke90583492003-11-10 03:06:28 +000023906ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000023907fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023909 ac_ext=c
23910ac_cpp='$CPP $CPPFLAGS'
23911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913ac_compiler_gnu=$ac_cv_c_compiler_gnu
23914
John Criswell7a73b802003-06-30 21:59:07 +000023915fi
Brian Gaeke90583492003-11-10 03:06:28 +000023916echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
23917echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000023918 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
23919 then
John Criswell9f011862004-09-24 18:28:00 +000023920
23921cat >>confdefs.h <<\_ACEOF
23922#define HAVE_STD_EXT_HASH_MAP 1
23923_ACEOF
23924
23925 else
23926
23927cat >>confdefs.h <<\_ACEOF
23928#define HAVE_STD_EXT_HASH_MAP 0
23929_ACEOF
23930
Brian Gaeke90583492003-11-10 03:06:28 +000023931 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000023932
Brian Gaeke90583492003-11-10 03:06:28 +000023933 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
23934echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
23935if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937else
23938
Brian Gaeke90583492003-11-10 03:06:28 +000023939 ac_ext=cc
23940ac_cpp='$CXXCPP $CPPFLAGS'
23941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23944
23945 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000023946/* confdefs.h. */
23947_ACEOF
23948cat confdefs.h >>conftest.$ac_ext
23949cat >>conftest.$ac_ext <<_ACEOF
23950/* end confdefs.h. */
23951#include <ext/hash_map>
23952#ifdef HAVE_NAMESPACES
23953using namespace __gnu_cxx;
23954#endif
23955int
23956main ()
23957{
23958hash_map<int,int> t;
23959 ;
23960 return 0;
23961}
23962_ACEOF
23963rm -f conftest.$ac_objext
23964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023965 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000023966 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023967 grep -v '^ *+' conftest.er1 >conftest.err
23968 rm -f conftest.er1
23969 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000023970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023972 { ac_try='test -z "$ac_cxx_werror_flag"
23973 || test ! -s conftest.err'
23974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23975 (eval $ac_try) 2>&5
23976 ac_status=$?
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); }; } &&
23979 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000023980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 ac_cv_cxx_have_gnu_ext_hash_map=yes
23986else
23987 echo "$as_me: failed program was:" >&5
23988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000023991fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000023993 ac_ext=c
23994ac_cpp='$CPP $CPPFLAGS'
23995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23997ac_compiler_gnu=$ac_cv_c_compiler_gnu
23998
23999fi
24000echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
24001echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000024002 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
24003 then
John Criswell9f011862004-09-24 18:28:00 +000024004
24005cat >>confdefs.h <<\_ACEOF
24006#define HAVE_GNU_EXT_HASH_MAP 1
24007_ACEOF
24008
24009 else
24010
24011cat >>confdefs.h <<\_ACEOF
24012#define HAVE_GNU_EXT_HASH_MAP 0
24013_ACEOF
24014
Brian Gaeke90583492003-11-10 03:06:28 +000024015 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000024016
Brian Gaeke90583492003-11-10 03:06:28 +000024017 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
24018echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
24019if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24021else
John Criswell7a73b802003-06-30 21:59:07 +000024022
Brian Gaeke90583492003-11-10 03:06:28 +000024023 ac_ext=cc
24024ac_cpp='$CXXCPP $CPPFLAGS'
24025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24028
24029 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000024030/* confdefs.h. */
24031_ACEOF
24032cat confdefs.h >>conftest.$ac_ext
24033cat >>conftest.$ac_ext <<_ACEOF
24034/* end confdefs.h. */
24035#include <hash_map>
24036int
24037main ()
24038{
24039hash_map<int,int> t;
24040 ;
24041 return 0;
24042}
24043_ACEOF
24044rm -f conftest.$ac_objext
24045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024046 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000024047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000024051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024053 { ac_try='test -z "$ac_cxx_werror_flag"
24054 || test ! -s conftest.err'
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000024061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 ac_cv_cxx_have_global_hash_map=yes
24067else
24068 echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071ac_cv_cxx_have_global_hash_map=no
24072fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000024074 ac_ext=c
24075ac_cpp='$CPP $CPPFLAGS'
24076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24078ac_compiler_gnu=$ac_cv_c_compiler_gnu
24079
24080fi
24081echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
24082echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000024083 if test "$ac_cv_cxx_have_global_hash_map" = yes
24084 then
John Criswell9f011862004-09-24 18:28:00 +000024085
24086cat >>confdefs.h <<\_ACEOF
24087#define HAVE_GLOBAL_HASH_MAP 1
24088_ACEOF
24089
24090 else
24091
24092cat >>confdefs.h <<\_ACEOF
24093#define HAVE_GLOBAL_HASH_MAP 0
24094_ACEOF
24095
Brian Gaeke90583492003-11-10 03:06:28 +000024096 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000024097
Brian Gaeke90583492003-11-10 03:06:28 +000024098echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
24099echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
24100if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000024101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102else
24103
John Criswell7a73b802003-06-30 21:59:07 +000024104 ac_ext=cc
24105ac_cpp='$CXXCPP $CPPFLAGS'
24106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24109
24110 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024111/* confdefs.h. */
24112_ACEOF
24113cat confdefs.h >>conftest.$ac_ext
24114cat >>conftest.$ac_ext <<_ACEOF
24115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024116#include <ext/hash_set>
24117#ifdef HAVE_NAMESPACES
24118using namespace std;
24119#endif
John Criswell7a73b802003-06-30 21:59:07 +000024120int
24121main ()
24122{
Brian Gaeke90583492003-11-10 03:06:28 +000024123hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000024124 ;
24125 return 0;
24126}
24127_ACEOF
24128rm -f conftest.$ac_objext
24129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024130 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024132 grep -v '^ *+' conftest.er1 >conftest.err
24133 rm -f conftest.er1
24134 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024137 { ac_try='test -z "$ac_cxx_werror_flag"
24138 || test ! -s conftest.err'
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000024150 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000024151else
24152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024153sed 's/^/| /' conftest.$ac_ext >&5
24154
Brian Gaeke90583492003-11-10 03:06:28 +000024155ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000024156fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000024158 ac_ext=c
24159ac_cpp='$CPP $CPPFLAGS'
24160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24162ac_compiler_gnu=$ac_cv_c_compiler_gnu
24163
24164fi
24165echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
24166echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000024167 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
24168 then
John Criswell9f011862004-09-24 18:28:00 +000024169
24170cat >>confdefs.h <<\_ACEOF
24171#define HAVE_STD_EXT_HASH_SET 1
24172_ACEOF
24173
24174 else
24175
24176cat >>confdefs.h <<\_ACEOF
24177#define HAVE_STD_EXT_HASH_SET 0
24178_ACEOF
24179
Brian Gaeke90583492003-11-10 03:06:28 +000024180 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000024181
Brian Gaeke90583492003-11-10 03:06:28 +000024182 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
24183echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
24184if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
24185 echo $ECHO_N "(cached) $ECHO_C" >&6
24186else
24187
Brian Gaeke90583492003-11-10 03:06:28 +000024188 ac_ext=cc
24189ac_cpp='$CXXCPP $CPPFLAGS'
24190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24193
John Criswell7a73b802003-06-30 21:59:07 +000024194 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024195/* confdefs.h. */
24196_ACEOF
24197cat confdefs.h >>conftest.$ac_ext
24198cat >>conftest.$ac_ext <<_ACEOF
24199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024200#include <ext/hash_set>
24201#ifdef HAVE_NAMESPACES
24202using namespace __gnu_cxx;
24203#endif
John Criswell7a73b802003-06-30 21:59:07 +000024204int
24205main ()
24206{
Brian Gaeke90583492003-11-10 03:06:28 +000024207hash_set<int> t;
24208 ;
24209 return 0;
24210}
24211_ACEOF
24212rm -f conftest.$ac_objext
24213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024214 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000024215 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024216 grep -v '^ *+' conftest.er1 >conftest.err
24217 rm -f conftest.er1
24218 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000024219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024221 { ac_try='test -z "$ac_cxx_werror_flag"
24222 || test ! -s conftest.err'
24223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24224 (eval $ac_try) 2>&5
24225 ac_status=$?
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); }; } &&
24228 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000024229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; }; then
24234 ac_cv_cxx_have_gnu_ext_hash_set=yes
24235else
24236 echo "$as_me: failed program was:" >&5
24237sed 's/^/| /' conftest.$ac_ext >&5
24238
24239ac_cv_cxx_have_gnu_ext_hash_set=no
24240fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000024242 ac_ext=c
24243ac_cpp='$CPP $CPPFLAGS'
24244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24246ac_compiler_gnu=$ac_cv_c_compiler_gnu
24247
24248fi
24249echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
24250echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000024251 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
24252 then
John Criswell9f011862004-09-24 18:28:00 +000024253
24254cat >>confdefs.h <<\_ACEOF
24255#define HAVE_GNU_EXT_HASH_SET 1
24256_ACEOF
24257
24258 else
24259
24260cat >>confdefs.h <<\_ACEOF
24261#define HAVE_GNU_EXT_HASH_SET 0
24262_ACEOF
24263
Brian Gaeke90583492003-11-10 03:06:28 +000024264 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000024265
Brian Gaeke90583492003-11-10 03:06:28 +000024266 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
24267echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
24268if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
24269 echo $ECHO_N "(cached) $ECHO_C" >&6
24270else
24271
Brian Gaeke90583492003-11-10 03:06:28 +000024272 ac_ext=cc
24273ac_cpp='$CXXCPP $CPPFLAGS'
24274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24277
24278 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000024279/* confdefs.h. */
24280_ACEOF
24281cat confdefs.h >>conftest.$ac_ext
24282cat >>conftest.$ac_ext <<_ACEOF
24283/* end confdefs.h. */
24284#include <hash_set>
24285int
24286main ()
24287{
John Criswell7a73b802003-06-30 21:59:07 +000024288hash_set<int> t; return 0;
24289 ;
24290 return 0;
24291}
24292_ACEOF
24293rm -f conftest.$ac_objext
24294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024295 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024297 grep -v '^ *+' conftest.er1 >conftest.err
24298 rm -f conftest.er1
24299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024302 { ac_try='test -z "$ac_cxx_werror_flag"
24303 || test ! -s conftest.err'
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; } &&
24309 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000024315 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000024316else
24317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024318sed 's/^/| /' conftest.$ac_ext >&5
24319
Brian Gaeke90583492003-11-10 03:06:28 +000024320ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000024321fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024323 ac_ext=c
24324ac_cpp='$CPP $CPPFLAGS'
24325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24327ac_compiler_gnu=$ac_cv_c_compiler_gnu
24328
John Criswell7a73b802003-06-30 21:59:07 +000024329fi
Brian Gaeke90583492003-11-10 03:06:28 +000024330echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
24331echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000024332 if test "$ac_cv_cxx_have_global_hash_set" = yes
24333 then
John Criswell9f011862004-09-24 18:28:00 +000024334
24335cat >>confdefs.h <<\_ACEOF
24336#define HAVE_GLOBAL_HASH_SET 1
24337_ACEOF
24338
24339 else
24340
24341cat >>confdefs.h <<\_ACEOF
24342#define HAVE_GLOBAL_HASH_SET 0
24343_ACEOF
24344
Brian Gaeke90583492003-11-10 03:06:28 +000024345 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000024346
John Criswell7a73b802003-06-30 21:59:07 +000024347echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
24348echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
24349if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
24350 echo $ECHO_N "(cached) $ECHO_C" >&6
24351else
24352
John Criswell7a73b802003-06-30 21:59:07 +000024353 ac_ext=cc
24354ac_cpp='$CXXCPP $CPPFLAGS'
24355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24358
24359 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024360/* confdefs.h. */
24361_ACEOF
24362cat confdefs.h >>conftest.$ac_ext
24363cat >>conftest.$ac_ext <<_ACEOF
24364/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024365#include <iterator>
24366#ifdef HAVE_NAMESPACES
24367using namespace std;
24368#endif
John Criswell7a73b802003-06-30 21:59:07 +000024369int
24370main ()
24371{
24372iterator<int,int,int> t; return 0;
24373 ;
24374 return 0;
24375}
24376_ACEOF
24377rm -f conftest.$ac_objext
24378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024379 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024381 grep -v '^ *+' conftest.er1 >conftest.err
24382 rm -f conftest.er1
24383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024386 { ac_try='test -z "$ac_cxx_werror_flag"
24387 || test ! -s conftest.err'
24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24390 ac_status=$?
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); }; } &&
24393 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399 ac_cv_cxx_have_std_iterator=yes
24400else
24401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024402sed 's/^/| /' conftest.$ac_ext >&5
24403
John Criswell7a73b802003-06-30 21:59:07 +000024404ac_cv_cxx_have_std_iterator=no
24405fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024407 ac_ext=c
24408ac_cpp='$CPP $CPPFLAGS'
24409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24411ac_compiler_gnu=$ac_cv_c_compiler_gnu
24412
24413
24414fi
24415echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
24416echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000024417if test "$ac_cv_cxx_have_std_iterator" = yes
24418then
John Criswell40468462004-09-24 21:19:06 +000024419
24420cat >>confdefs.h <<\_ACEOF
24421#define HAVE_STD_ITERATOR 1
24422_ACEOF
24423
24424else
24425
24426cat >>confdefs.h <<\_ACEOF
24427#define HAVE_STD_ITERATOR 0
24428_ACEOF
24429
John Criswell7a73b802003-06-30 21:59:07 +000024430fi
24431
24432echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
24433echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
24434if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24436else
24437
John Criswell7a73b802003-06-30 21:59:07 +000024438 ac_ext=cc
24439ac_cpp='$CXXCPP $CPPFLAGS'
24440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24443
24444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024445/* confdefs.h. */
24446_ACEOF
24447cat confdefs.h >>conftest.$ac_ext
24448cat >>conftest.$ac_ext <<_ACEOF
24449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024450#include <iterator>
24451#ifdef HAVE_NAMESPACES
24452using namespace std;
24453#endif
John Criswell7a73b802003-06-30 21:59:07 +000024454int
24455main ()
24456{
John Criswellc78022e2003-07-29 19:11:58 +000024457bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000024458 ;
24459 return 0;
24460}
24461_ACEOF
24462rm -f conftest.$ac_objext
24463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024464 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024471 { ac_try='test -z "$ac_cxx_werror_flag"
24472 || test ! -s conftest.err'
24473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; } &&
24478 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24484 ac_cv_cxx_have_bi_iterator=yes
24485else
24486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024487sed 's/^/| /' conftest.$ac_ext >&5
24488
John Criswell7a73b802003-06-30 21:59:07 +000024489ac_cv_cxx_have_bi_iterator=no
24490fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024492 ac_ext=c
24493ac_cpp='$CPP $CPPFLAGS'
24494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24496ac_compiler_gnu=$ac_cv_c_compiler_gnu
24497
24498
24499fi
24500echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
24501echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000024502if test "$ac_cv_cxx_have_bi_iterator" = yes
24503then
John Criswell40468462004-09-24 21:19:06 +000024504
24505cat >>confdefs.h <<\_ACEOF
24506#define HAVE_BI_ITERATOR 1
24507_ACEOF
24508
24509else
24510
24511cat >>confdefs.h <<\_ACEOF
24512#define HAVE_BI_ITERATOR 0
24513_ACEOF
24514
John Criswell7a73b802003-06-30 21:59:07 +000024515fi
24516
24517echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
24518echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
24519if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
24520 echo $ECHO_N "(cached) $ECHO_C" >&6
24521else
24522
John Criswell7a73b802003-06-30 21:59:07 +000024523 ac_ext=cc
24524ac_cpp='$CXXCPP $CPPFLAGS'
24525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24528
24529 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024530/* confdefs.h. */
24531_ACEOF
24532cat confdefs.h >>conftest.$ac_ext
24533cat >>conftest.$ac_ext <<_ACEOF
24534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024535#include <iterator>
24536#ifdef HAVE_NAMESPACES
24537using namespace std;
24538#endif
John Criswell7a73b802003-06-30 21:59:07 +000024539int
24540main ()
24541{
John Criswellc78022e2003-07-29 19:11:58 +000024542forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000024543 ;
24544 return 0;
24545}
24546_ACEOF
24547rm -f conftest.$ac_objext
24548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024549 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024551 grep -v '^ *+' conftest.er1 >conftest.err
24552 rm -f conftest.er1
24553 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024556 { ac_try='test -z "$ac_cxx_werror_flag"
24557 || test ! -s conftest.err'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; } &&
24563 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 ac_cv_cxx_have_fwd_iterator=yes
24570else
24571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024572sed 's/^/| /' conftest.$ac_ext >&5
24573
John Criswell7a73b802003-06-30 21:59:07 +000024574ac_cv_cxx_have_fwd_iterator=no
24575fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024577 ac_ext=c
24578ac_cpp='$CPP $CPPFLAGS'
24579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24581ac_compiler_gnu=$ac_cv_c_compiler_gnu
24582
24583
24584fi
24585echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
24586echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000024587if test "$ac_cv_cxx_have_fwd_iterator" = yes
24588then
John Criswell40468462004-09-24 21:19:06 +000024589
24590cat >>confdefs.h <<\_ACEOF
24591#define HAVE_FWD_ITERATOR 1
24592_ACEOF
24593
24594else
24595
24596cat >>confdefs.h <<\_ACEOF
24597#define HAVE_FWD_ITERATOR 0
24598_ACEOF
24599
John Criswell7a73b802003-06-30 21:59:07 +000024600fi
24601
24602
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024603echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
24604echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
24605if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
24606 echo $ECHO_N "(cached) $ECHO_C" >&6
24607else
24608 ac_ext=cc
24609ac_cpp='$CXXCPP $CPPFLAGS'
24610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24613
Reid Spencerabec8f92004-10-27 23:03:44 +000024614 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024615/* confdefs.h. */
24616_ACEOF
24617cat confdefs.h >>conftest.$ac_ext
24618cat >>conftest.$ac_ext <<_ACEOF
24619/* end confdefs.h. */
24620#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000024621int
24622main ()
24623{
24624float f; isnan(f);
24625 ;
24626 return 0;
24627}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024628_ACEOF
24629rm -f conftest.$ac_objext
24630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024631 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024632 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024633 grep -v '^ *+' conftest.er1 >conftest.err
24634 rm -f conftest.er1
24635 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024638 { ac_try='test -z "$ac_cxx_werror_flag"
24639 || test ! -s conftest.err'
24640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; } &&
24645 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 ac_cv_func_isnan_in_math_h=yes
24652else
24653 echo "$as_me: failed program was:" >&5
24654sed 's/^/| /' conftest.$ac_ext >&5
24655
24656ac_cv_func_isnan_in_math_h=no
24657fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024659 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024660ac_cpp='$CPP $CPPFLAGS'
24661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24663ac_compiler_gnu=$ac_cv_c_compiler_gnu
24664
24665fi
24666echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
24667echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024668
24669
24670if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024671
24672cat >>confdefs.h <<\_ACEOF
24673#define HAVE_ISNAN_IN_MATH_H 1
24674_ACEOF
24675
Reid Spencerabec8f92004-10-27 23:03:44 +000024676fi
24677
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024678echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
24679echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
24680if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
24681 echo $ECHO_N "(cached) $ECHO_C" >&6
24682else
24683 ac_ext=cc
24684ac_cpp='$CXXCPP $CPPFLAGS'
24685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24688
Reid Spencerabec8f92004-10-27 23:03:44 +000024689 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024690/* confdefs.h. */
24691_ACEOF
24692cat confdefs.h >>conftest.$ac_ext
24693cat >>conftest.$ac_ext <<_ACEOF
24694/* end confdefs.h. */
24695#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024696int
24697main ()
24698{
24699float f; isnan(f);
24700 ;
24701 return 0;
24702}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024703_ACEOF
24704rm -f conftest.$ac_objext
24705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024706 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024713 { ac_try='test -z "$ac_cxx_werror_flag"
24714 || test ! -s conftest.err'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; } &&
24720 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; }; then
24726 ac_cv_func_isnan_in_cmath=yes
24727else
24728 echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
24731ac_cv_func_isnan_in_cmath=no
24732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024734 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024735ac_cpp='$CPP $CPPFLAGS'
24736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24738ac_compiler_gnu=$ac_cv_c_compiler_gnu
24739
24740fi
24741echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
24742echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024743
24744if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024745
24746cat >>confdefs.h <<\_ACEOF
24747#define HAVE_ISNAN_IN_CMATH 1
24748_ACEOF
24749
Reid Spencerabec8f92004-10-27 23:03:44 +000024750fi
24751
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024752echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
24753echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
24754if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24756else
24757 ac_ext=cc
24758ac_cpp='$CXXCPP $CPPFLAGS'
24759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24762
Reid Spencerabec8f92004-10-27 23:03:44 +000024763 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024764/* confdefs.h. */
24765_ACEOF
24766cat confdefs.h >>conftest.$ac_ext
24767cat >>conftest.$ac_ext <<_ACEOF
24768/* end confdefs.h. */
24769#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024770int
24771main ()
24772{
24773float f; std::isnan(f);
24774 ;
24775 return 0;
24776}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024777_ACEOF
24778rm -f conftest.$ac_objext
24779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024780 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024781 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024782 grep -v '^ *+' conftest.er1 >conftest.err
24783 rm -f conftest.er1
24784 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024787 { ac_try='test -z "$ac_cxx_werror_flag"
24788 || test ! -s conftest.err'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; } &&
24794 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; }; then
24800 ac_cv_func_std_isnan_in_cmath=yes
24801else
24802 echo "$as_me: failed program was:" >&5
24803sed 's/^/| /' conftest.$ac_ext >&5
24804
24805ac_cv_func_std_isnan_in_cmath=no
24806fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024808 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024809ac_cpp='$CPP $CPPFLAGS'
24810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24812ac_compiler_gnu=$ac_cv_c_compiler_gnu
24813
24814fi
24815echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
24816echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024817
24818if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024819
24820cat >>confdefs.h <<\_ACEOF
24821#define HAVE_STD_ISNAN_IN_CMATH 1
24822_ACEOF
24823
Reid Spencerabec8f92004-10-27 23:03:44 +000024824fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000024825
24826
Brian Gaeke52a551d2004-07-21 03:14:12 +000024827echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
24828echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
24829if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
24830 echo $ECHO_N "(cached) $ECHO_C" >&6
24831else
24832 ac_ext=cc
24833ac_cpp='$CXXCPP $CPPFLAGS'
24834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24837
Reid Spencerabec8f92004-10-27 23:03:44 +000024838 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000024839/* confdefs.h. */
24840_ACEOF
24841cat confdefs.h >>conftest.$ac_ext
24842cat >>conftest.$ac_ext <<_ACEOF
24843/* end confdefs.h. */
24844#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000024845int
24846main ()
24847{
24848float f; isinf(f);
24849 ;
24850 return 0;
24851}
Brian Gaeke52a551d2004-07-21 03:14:12 +000024852_ACEOF
24853rm -f conftest.$ac_objext
24854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024855 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000024856 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000024860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024862 { ac_try='test -z "$ac_cxx_werror_flag"
24863 || test ! -s conftest.err'
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000024870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_func_isinf_in_math_h=yes
24876else
24877 echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880ac_cv_func_isinf_in_math_h=no
24881fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024883 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000024884ac_cpp='$CPP $CPPFLAGS'
24885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24887ac_compiler_gnu=$ac_cv_c_compiler_gnu
24888
24889fi
24890echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
24891echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024892
24893if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000024894
24895cat >>confdefs.h <<\_ACEOF
24896#define HAVE_ISINF_IN_MATH_H 1
24897_ACEOF
24898
Reid Spencerabec8f92004-10-27 23:03:44 +000024899fi
24900
Brian Gaeke52a551d2004-07-21 03:14:12 +000024901echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
24902echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
24903if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24905else
24906 ac_ext=cc
24907ac_cpp='$CXXCPP $CPPFLAGS'
24908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24911
Reid Spencerabec8f92004-10-27 23:03:44 +000024912 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000024913/* confdefs.h. */
24914_ACEOF
24915cat confdefs.h >>conftest.$ac_ext
24916cat >>conftest.$ac_ext <<_ACEOF
24917/* end confdefs.h. */
24918#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024919int
24920main ()
24921{
24922float f; isinf(f);
24923 ;
24924 return 0;
24925}
Brian Gaeke52a551d2004-07-21 03:14:12 +000024926_ACEOF
24927rm -f conftest.$ac_objext
24928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024929 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000024930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024931 grep -v '^ *+' conftest.er1 >conftest.err
24932 rm -f conftest.er1
24933 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000024934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024936 { ac_try='test -z "$ac_cxx_werror_flag"
24937 || test ! -s conftest.err'
24938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 (eval $ac_try) 2>&5
24940 ac_status=$?
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); }; } &&
24943 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000024944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 (eval $ac_try) 2>&5
24946 ac_status=$?
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); }; }; then
24949 ac_cv_func_isinf_in_cmath=yes
24950else
24951 echo "$as_me: failed program was:" >&5
24952sed 's/^/| /' conftest.$ac_ext >&5
24953
24954ac_cv_func_isinf_in_cmath=no
24955fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000024957 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000024958ac_cpp='$CPP $CPPFLAGS'
24959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24961ac_compiler_gnu=$ac_cv_c_compiler_gnu
24962
24963fi
24964echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
24965echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000024966
24967if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000024968
24969cat >>confdefs.h <<\_ACEOF
24970#define HAVE_ISINF_IN_CMATH 1
24971_ACEOF
24972
Reid Spencerabec8f92004-10-27 23:03:44 +000024973fi
24974
Brian Gaeke52a551d2004-07-21 03:14:12 +000024975echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
24976echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
24977if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24979else
24980 ac_ext=cc
24981ac_cpp='$CXXCPP $CPPFLAGS'
24982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24985
Reid Spencerabec8f92004-10-27 23:03:44 +000024986 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000024987/* confdefs.h. */
24988_ACEOF
24989cat confdefs.h >>conftest.$ac_ext
24990cat >>conftest.$ac_ext <<_ACEOF
24991/* end confdefs.h. */
24992#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000024993int
24994main ()
24995{
24996float f; std::isinf(f)}
24997 ;
24998 return 0;
24999}
Brian Gaeke52a551d2004-07-21 03:14:12 +000025000_ACEOF
25001rm -f conftest.$ac_objext
25002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025003 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000025004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025005 grep -v '^ *+' conftest.er1 >conftest.err
25006 rm -f conftest.er1
25007 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000025008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025010 { ac_try='test -z "$ac_cxx_werror_flag"
25011 || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000025018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ac_cv_func_std_isinf_in_cmath=yes
25024else
25025 echo "$as_me: failed program was:" >&5
25026sed 's/^/| /' conftest.$ac_ext >&5
25027
25028ac_cv_func_std_isinf_in_cmath=no
25029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000025031 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000025032ac_cpp='$CPP $CPPFLAGS'
25033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25035ac_compiler_gnu=$ac_cv_c_compiler_gnu
25036
25037fi
25038echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
25039echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000025040
25041if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000025042
25043cat >>confdefs.h <<\_ACEOF
25044#define HAVE_STD_ISINF_IN_CMATH 1
25045_ACEOF
25046
Reid Spencerabec8f92004-10-27 23:03:44 +000025047fi
25048
Brian Gaeked59a6472004-07-21 03:33:58 +000025049echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
25050echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
25051if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25053else
25054 ac_ext=cc
25055ac_cpp='$CXXCPP $CPPFLAGS'
25056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25059
Reid Spencerabec8f92004-10-27 23:03:44 +000025060 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000025061/* confdefs.h. */
25062_ACEOF
25063cat confdefs.h >>conftest.$ac_ext
25064cat >>conftest.$ac_ext <<_ACEOF
25065/* end confdefs.h. */
25066#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000025067int
25068main ()
25069{
25070float f; finite(f);
25071 ;
25072 return 0;
25073}
Brian Gaeked59a6472004-07-21 03:33:58 +000025074_ACEOF
25075rm -f conftest.$ac_objext
25076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025077 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000025078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025079 grep -v '^ *+' conftest.er1 >conftest.err
25080 rm -f conftest.er1
25081 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000025082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025084 { ac_try='test -z "$ac_cxx_werror_flag"
25085 || test ! -s conftest.err'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; } &&
25091 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000025092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 ac_cv_func_finite_in_ieeefp_h=yes
25098else
25099 echo "$as_me: failed program was:" >&5
25100sed 's/^/| /' conftest.$ac_ext >&5
25101
25102ac_cv_func_finite_in_ieeefp_h=no
25103fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000025105 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000025106ac_cpp='$CPP $CPPFLAGS'
25107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25109ac_compiler_gnu=$ac_cv_c_compiler_gnu
25110
25111fi
25112echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
25113echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000025114
Brian Gaeke6802b552004-10-28 05:06:45 +000025115if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000025116
25117cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000025118#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000025119_ACEOF
25120
Reid Spencerabec8f92004-10-27 23:03:44 +000025121fi
25122
25123
25124
John Criswell7a73b802003-06-30 21:59:07 +000025125
25126
25127for ac_header in stdlib.h unistd.h
25128do
25129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25130if eval "test \"\${$as_ac_Header+set}\" = set"; then
25131 echo "$as_me:$LINENO: checking for $ac_header" >&5
25132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25133if eval "test \"\${$as_ac_Header+set}\" = set"; then
25134 echo $ECHO_N "(cached) $ECHO_C" >&6
25135fi
25136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25138else
25139 # Is the header compilable?
25140echo "$as_me:$LINENO: checking $ac_header usability" >&5
25141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25142cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025143/* confdefs.h. */
25144_ACEOF
25145cat confdefs.h >>conftest.$ac_ext
25146cat >>conftest.$ac_ext <<_ACEOF
25147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025148$ac_includes_default
25149#include <$ac_header>
25150_ACEOF
25151rm -f conftest.$ac_objext
25152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025153 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025154 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025160 { ac_try='test -z "$ac_c_werror_flag"
25161 || test ! -s conftest.err'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25164 ac_status=$?
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; } &&
25167 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; }; then
25173 ac_header_compiler=yes
25174else
25175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025176sed 's/^/| /' conftest.$ac_ext >&5
25177
John Criswell7a73b802003-06-30 21:59:07 +000025178ac_header_compiler=no
25179fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25182echo "${ECHO_T}$ac_header_compiler" >&6
25183
25184# Is the header present?
25185echo "$as_me:$LINENO: checking $ac_header presence" >&5
25186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25187cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025188/* confdefs.h. */
25189_ACEOF
25190cat confdefs.h >>conftest.$ac_ext
25191cat >>conftest.$ac_ext <<_ACEOF
25192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025193#include <$ac_header>
25194_ACEOF
25195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25197 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025198 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025199 rm -f conftest.er1
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } >/dev/null; then
25203 if test -s conftest.err; then
25204 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025206 else
25207 ac_cpp_err=
25208 fi
25209else
25210 ac_cpp_err=yes
25211fi
25212if test -z "$ac_cpp_err"; then
25213 ac_header_preproc=yes
25214else
25215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025216sed 's/^/| /' conftest.$ac_ext >&5
25217
John Criswell7a73b802003-06-30 21:59:07 +000025218 ac_header_preproc=no
25219fi
25220rm -f conftest.err conftest.$ac_ext
25221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25222echo "${ECHO_T}$ac_header_preproc" >&6
25223
25224# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25226 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25231 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025232 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025233 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025246 (
25247 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025248## ----------------------------------- ##
25249## Report this to llvmbugs@cs.uiuc.edu ##
25250## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025251_ASBOX
25252 ) |
25253 sed "s/^/$as_me: WARNING: /" >&2
25254 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025255esac
25256echo "$as_me:$LINENO: checking for $ac_header" >&5
25257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25258if eval "test \"\${$as_ac_Header+set}\" = set"; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25260else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025261 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025262fi
25263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25265
25266fi
25267if test `eval echo '${'$as_ac_Header'}'` = yes; then
25268 cat >>confdefs.h <<_ACEOF
25269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25270_ACEOF
25271
25272fi
25273
25274done
25275
25276
25277for ac_func in getpagesize
25278do
25279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25280echo "$as_me:$LINENO: checking for $ac_func" >&5
25281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25282if eval "test \"\${$as_ac_var+set}\" = set"; then
25283 echo $ECHO_N "(cached) $ECHO_C" >&6
25284else
25285 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025286/* confdefs.h. */
25287_ACEOF
25288cat confdefs.h >>conftest.$ac_ext
25289cat >>conftest.$ac_ext <<_ACEOF
25290/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000025291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25293#define $ac_func innocuous_$ac_func
25294
John Criswell7a73b802003-06-30 21:59:07 +000025295/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000025296 which can conflict with char $ac_func (); below.
25297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25298 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000025299
John Criswell0c38eaf2003-09-10 15:17:25 +000025300#ifdef __STDC__
25301# include <limits.h>
25302#else
25303# include <assert.h>
25304#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000025305
25306#undef $ac_func
25307
John Criswell7a73b802003-06-30 21:59:07 +000025308/* Override any gcc2 internal prototype to avoid an error. */
25309#ifdef __cplusplus
25310extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000025311{
John Criswell7a73b802003-06-30 21:59:07 +000025312#endif
25313/* We use char because int might match the return type of a gcc2
25314 builtin and then its argument prototype would still apply. */
25315char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000025316/* The GNU C library defines this for functions which it implements
25317 to always fail with ENOSYS. Some functions are actually named
25318 something starting with __ and the normal name is an alias. */
25319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25320choke me
25321#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025322char (*f) () = $ac_func;
25323#endif
25324#ifdef __cplusplus
25325}
John Criswell7a73b802003-06-30 21:59:07 +000025326#endif
25327
John Criswell0c38eaf2003-09-10 15:17:25 +000025328int
25329main ()
25330{
25331return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000025332 ;
25333 return 0;
25334}
25335_ACEOF
25336rm -f conftest.$ac_objext conftest$ac_exeext
25337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025338 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025339 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025340 grep -v '^ *+' conftest.er1 >conftest.err
25341 rm -f conftest.er1
25342 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025345 { ac_try='test -z "$ac_c_werror_flag"
25346 || test ! -s conftest.err'
25347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348 (eval $ac_try) 2>&5
25349 ac_status=$?
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; } &&
25352 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25355 ac_status=$?
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; }; then
25358 eval "$as_ac_var=yes"
25359else
25360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025361sed 's/^/| /' conftest.$ac_ext >&5
25362
John Criswell7a73b802003-06-30 21:59:07 +000025363eval "$as_ac_var=no"
25364fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025365rm -f conftest.err conftest.$ac_objext \
25366 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025367fi
25368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25369echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25370if test `eval echo '${'$as_ac_var'}'` = yes; then
25371 cat >>confdefs.h <<_ACEOF
25372#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25373_ACEOF
25374
25375fi
25376done
25377
25378echo "$as_me:$LINENO: checking for working mmap" >&5
25379echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25380if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25382else
25383 if test "$cross_compiling" = yes; then
25384 ac_cv_func_mmap_fixed_mapped=no
25385else
25386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025387/* confdefs.h. */
25388_ACEOF
25389cat confdefs.h >>conftest.$ac_ext
25390cat >>conftest.$ac_ext <<_ACEOF
25391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025392$ac_includes_default
25393/* malloc might have been renamed as rpl_malloc. */
25394#undef malloc
25395
25396/* Thanks to Mike Haertel and Jim Avera for this test.
25397 Here is a matrix of mmap possibilities:
25398 mmap private not fixed
25399 mmap private fixed at somewhere currently unmapped
25400 mmap private fixed at somewhere already mapped
25401 mmap shared not fixed
25402 mmap shared fixed at somewhere currently unmapped
25403 mmap shared fixed at somewhere already mapped
25404 For private mappings, we should verify that changes cannot be read()
25405 back from the file, nor mmap's back from the file at a different
25406 address. (There have been systems where private was not correctly
25407 implemented like the infamous i386 svr4.0, and systems where the
25408 VM page cache was not coherent with the file system buffer cache
25409 like early versions of FreeBSD and possibly contemporary NetBSD.)
25410 For shared mappings, we should conversely verify that changes get
25411 propagated back to all the places they're supposed to be.
25412
25413 Grep wants private fixed already mapped.
25414 The main things grep needs to know about mmap are:
25415 * does it exist and is it safe to write into the mmap'd area
25416 * how to use it (BSD variants) */
25417
25418#include <fcntl.h>
25419#include <sys/mman.h>
25420
25421#if !STDC_HEADERS && !HAVE_STDLIB_H
25422char *malloc ();
25423#endif
25424
25425/* This mess was copied from the GNU getpagesize.h. */
25426#if !HAVE_GETPAGESIZE
25427/* Assume that all systems that can run configure have sys/param.h. */
25428# if !HAVE_SYS_PARAM_H
25429# define HAVE_SYS_PARAM_H 1
25430# endif
25431
25432# ifdef _SC_PAGESIZE
25433# define getpagesize() sysconf(_SC_PAGESIZE)
25434# else /* no _SC_PAGESIZE */
25435# if HAVE_SYS_PARAM_H
25436# include <sys/param.h>
25437# ifdef EXEC_PAGESIZE
25438# define getpagesize() EXEC_PAGESIZE
25439# else /* no EXEC_PAGESIZE */
25440# ifdef NBPG
25441# define getpagesize() NBPG * CLSIZE
25442# ifndef CLSIZE
25443# define CLSIZE 1
25444# endif /* no CLSIZE */
25445# else /* no NBPG */
25446# ifdef NBPC
25447# define getpagesize() NBPC
25448# else /* no NBPC */
25449# ifdef PAGESIZE
25450# define getpagesize() PAGESIZE
25451# endif /* PAGESIZE */
25452# endif /* no NBPC */
25453# endif /* no NBPG */
25454# endif /* no EXEC_PAGESIZE */
25455# else /* no HAVE_SYS_PARAM_H */
25456# define getpagesize() 8192 /* punt totally */
25457# endif /* no HAVE_SYS_PARAM_H */
25458# endif /* no _SC_PAGESIZE */
25459
25460#endif /* no HAVE_GETPAGESIZE */
25461
25462int
25463main ()
25464{
25465 char *data, *data2, *data3;
25466 int i, pagesize;
25467 int fd;
25468
25469 pagesize = getpagesize ();
25470
25471 /* First, make a file with some known garbage in it. */
25472 data = (char *) malloc (pagesize);
25473 if (!data)
25474 exit (1);
25475 for (i = 0; i < pagesize; ++i)
25476 *(data + i) = rand ();
25477 umask (0);
25478 fd = creat ("conftest.mmap", 0600);
25479 if (fd < 0)
25480 exit (1);
25481 if (write (fd, data, pagesize) != pagesize)
25482 exit (1);
25483 close (fd);
25484
25485 /* Next, try to mmap the file at a fixed address which already has
25486 something else allocated at it. If we can, also make sure that
25487 we see the same garbage. */
25488 fd = open ("conftest.mmap", O_RDWR);
25489 if (fd < 0)
25490 exit (1);
25491 data2 = (char *) malloc (2 * pagesize);
25492 if (!data2)
25493 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000025494 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000025495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000025496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000025497 exit (1);
25498 for (i = 0; i < pagesize; ++i)
25499 if (*(data + i) != *(data2 + i))
25500 exit (1);
25501
25502 /* Finally, make sure that changes to the mapped area do not
25503 percolate back to the file as seen by read(). (This is a bug on
25504 some variants of i386 svr4.0.) */
25505 for (i = 0; i < pagesize; ++i)
25506 *(data2 + i) = *(data2 + i) + 1;
25507 data3 = (char *) malloc (pagesize);
25508 if (!data3)
25509 exit (1);
25510 if (read (fd, data3, pagesize) != pagesize)
25511 exit (1);
25512 for (i = 0; i < pagesize; ++i)
25513 if (*(data + i) != *(data3 + i))
25514 exit (1);
25515 close (fd);
25516 exit (0);
25517}
25518_ACEOF
25519rm -f conftest$ac_exeext
25520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25521 (eval $ac_link) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; }; then
25530 ac_cv_func_mmap_fixed_mapped=yes
25531else
25532 echo "$as_me: program exited with status $ac_status" >&5
25533echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025534sed 's/^/| /' conftest.$ac_ext >&5
25535
John Criswell7a73b802003-06-30 21:59:07 +000025536( exit $ac_status )
25537ac_cv_func_mmap_fixed_mapped=no
25538fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025540fi
25541fi
25542echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25543echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25544if test $ac_cv_func_mmap_fixed_mapped = yes; then
25545
25546cat >>confdefs.h <<\_ACEOF
25547#define HAVE_MMAP 1
25548_ACEOF
25549
25550fi
25551rm -f conftest.mmap
25552
25553echo "$as_me:$LINENO: checking for mmap of files" >&5
25554echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
25555if test "${ac_cv_func_mmap_file+set}" = set; then
25556 echo $ECHO_N "(cached) $ECHO_C" >&6
25557else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025558 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000025559ac_cpp='$CPP $CPPFLAGS'
25560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562ac_compiler_gnu=$ac_cv_c_compiler_gnu
25563
25564 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000025565 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000025566else
25567 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025568
Reid Spencer777ce172004-09-20 04:09:56 +000025569 /* confdefs.h. */
25570_ACEOF
25571cat confdefs.h >>conftest.$ac_ext
25572cat >>conftest.$ac_ext <<_ACEOF
25573/* end confdefs.h. */
25574
John Criswell7a73b802003-06-30 21:59:07 +000025575#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000025576#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000025577#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000025578
25579int
25580main ()
25581{
John Criswell7a73b802003-06-30 21:59:07 +000025582
25583 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000025584 fd = creat ("foo",0777);
25585 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
25586 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000025587 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000025588 ;
25589 return 0;
25590}
John Criswell7a73b802003-06-30 21:59:07 +000025591_ACEOF
25592rm -f conftest$ac_exeext
25593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25594 (eval $ac_link) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599 (eval $ac_try) 2>&5
25600 ac_status=$?
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); }; }; then
25603 ac_cv_func_mmap_file=yes
25604else
25605 echo "$as_me: program exited with status $ac_status" >&5
25606echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025607sed 's/^/| /' conftest.$ac_ext >&5
25608
John Criswell7a73b802003-06-30 21:59:07 +000025609( exit $ac_status )
25610ac_cv_func_mmap_file=no
25611fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025612rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025613fi
25614 ac_ext=c
25615ac_cpp='$CPP $CPPFLAGS'
25616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25618ac_compiler_gnu=$ac_cv_c_compiler_gnu
25619
25620
25621fi
25622echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
25623echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
25624if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000025625
25626cat >>confdefs.h <<\_ACEOF
25627#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000025628_ACEOF
25629
25630 MMAP_FILE=yes
25631
25632fi
25633
John Criswell7a73b802003-06-30 21:59:07 +000025634echo "$as_me:$LINENO: checking for mprotect" >&5
25635echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
25636if test "${ac_cv_func_mprotect+set}" = set; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25638else
25639 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025640/* confdefs.h. */
25641_ACEOF
25642cat confdefs.h >>conftest.$ac_ext
25643cat >>conftest.$ac_ext <<_ACEOF
25644/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000025645/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
25646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25647#define mprotect innocuous_mprotect
25648
John Criswell7a73b802003-06-30 21:59:07 +000025649/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000025650 which can conflict with char mprotect (); below.
25651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25652 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000025653
John Criswell0c38eaf2003-09-10 15:17:25 +000025654#ifdef __STDC__
25655# include <limits.h>
25656#else
25657# include <assert.h>
25658#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000025659
25660#undef mprotect
25661
John Criswell7a73b802003-06-30 21:59:07 +000025662/* Override any gcc2 internal prototype to avoid an error. */
25663#ifdef __cplusplus
25664extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000025665{
John Criswell7a73b802003-06-30 21:59:07 +000025666#endif
25667/* We use char because int might match the return type of a gcc2
25668 builtin and then its argument prototype would still apply. */
25669char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000025670/* The GNU C library defines this for functions which it implements
25671 to always fail with ENOSYS. Some functions are actually named
25672 something starting with __ and the normal name is an alias. */
25673#if defined (__stub_mprotect) || defined (__stub___mprotect)
25674choke me
25675#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025676char (*f) () = mprotect;
25677#endif
25678#ifdef __cplusplus
25679}
John Criswell7a73b802003-06-30 21:59:07 +000025680#endif
25681
John Criswell0c38eaf2003-09-10 15:17:25 +000025682int
25683main ()
25684{
25685return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000025686 ;
25687 return 0;
25688}
25689_ACEOF
25690rm -f conftest.$ac_objext conftest$ac_exeext
25691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025692 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025694 grep -v '^ *+' conftest.er1 >conftest.err
25695 rm -f conftest.er1
25696 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025699 { ac_try='test -z "$ac_c_werror_flag"
25700 || test ! -s conftest.err'
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 ac_cv_func_mprotect=yes
25713else
25714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025715sed 's/^/| /' conftest.$ac_ext >&5
25716
John Criswell7a73b802003-06-30 21:59:07 +000025717ac_cv_func_mprotect=no
25718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025719rm -f conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025721fi
25722echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
25723echo "${ECHO_T}$ac_cv_func_mprotect" >&6
25724if test $ac_cv_func_mprotect = yes; then
25725 :
25726else
25727 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
25728echo "$as_me: error: Function mprotect() required but not found" >&2;}
25729 { (exit 1); exit 1; }; }
25730fi
25731
25732
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025733if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000025734then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025735 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
25736echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000025737fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025738if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000025739then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025740 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
25741echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000025742fi
John Criswell7a73b802003-06-30 21:59:07 +000025743
25744
Brian Gaekef3b24102003-11-16 18:38:14 +000025745echo "$as_me:$LINENO: checking for llvm-gcc" >&5
25746echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025747if test "${llvm_cv_llvmgcc+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25749else
25750 llvm_cv_llvmgcc='llvmgcc_not_found'
25751if test -d "$LLVMGCCDIR" ; then
25752 if test -x "$LLVMGCCDIR/bin/gcc" ; then
25753 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
25754 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000025755fi
Brian Gaekef3b24102003-11-16 18:38:14 +000025756fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025757echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
25758echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
25759
Brian Gaekef3b24102003-11-16 18:38:14 +000025760echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
25761echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025762if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
25763 echo $ECHO_N "(cached) $ECHO_C" >&6
25764else
25765 llvm_cv_llvmgcc_sanity="no"
25766if test -x "$llvm_cv_llvmgcc" ; then
25767 cp /dev/null conftest.c
25768 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
25769 if test $? -eq 0 ; then
25770 llvm_cv_llvmgcc_sanity="yes"
25771 fi
25772 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000025773fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025774fi
25775echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
25776echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
25777
25778if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
25779 LLVMGCC="$llvm_cv_llvmgcc"
25780
25781 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
25782 LLVMCC1=$llvmcc1path
25783
25784 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
25785 LLVMCC1PLUS=$llvmcc1pluspath
25786
Brian Gaekef3b24102003-11-16 18:38:14 +000025787fi
25788
Brian Gaeke554831c2004-01-21 19:39:29 +000025789echo "$as_me:$LINENO: checking for shared library suffix" >&5
25790echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000025791eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000025792echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
25793echo "${ECHO_T}$SHLIBEXT" >&6
25794SHLIBEXT=$SHLIBEXT
25795
25796
25797cat >>confdefs.h <<_ACEOF
25798#define SHLIBEXT "$SHLIBEXT"
25799_ACEOF
25800
25801
Reid Spencere9de0912004-08-20 09:03:57 +000025802# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025803# information into substitutions that will end up in Makefile.config.in
25804# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000025805eval LLVM_PREFIX="${prefix}";
25806eval LLVM_BINDIR="${prefix}/bin";
25807eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000025808eval LLVM_DATADIR="${prefix}/share/llvm";
25809eval LLVM_DOCSDIR="${prefix}/docs/llvm";
25810eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000025811eval LLVM_INCLUDEDIR="${prefix}/include";
25812eval LLVM_INFODIR="${prefix}/info";
25813eval LLVM_MANDIR="${prefix}/man";
25814LLVM_CONFIGTIME=`date`
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025826# Place the various directores into the config.h file as #defines so that we
25827# can know about the installation paths within LLVM.
25828
Reid Spencere9de0912004-08-20 09:03:57 +000025829cat >>confdefs.h <<_ACEOF
25830#define LLVM_PREFIX "$LLVM_PREFIX"
25831_ACEOF
25832
25833
25834cat >>confdefs.h <<_ACEOF
25835#define LLVM_BINDIR "$LLVM_BINDIR"
25836_ACEOF
25837
25838
25839cat >>confdefs.h <<_ACEOF
25840#define LLVM_LIBDIR "$LLVM_LIBDIR"
25841_ACEOF
25842
25843
25844cat >>confdefs.h <<_ACEOF
25845#define LLVM_DATADIR "$LLVM_DATADIR"
25846_ACEOF
25847
25848
25849cat >>confdefs.h <<_ACEOF
25850#define LLVM_DATADIR "$LLVM_DOCSDIR"
25851_ACEOF
25852
25853
25854cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000025855#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000025856_ACEOF
25857
25858
25859cat >>confdefs.h <<_ACEOF
25860#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
25861_ACEOF
25862
25863
25864cat >>confdefs.h <<_ACEOF
25865#define LLVM_INFODIR "$LLVM_INFODIR"
25866_ACEOF
25867
25868
25869cat >>confdefs.h <<_ACEOF
25870#define LLVM_MANDIR "$LLVM_MANDIR"
25871_ACEOF
25872
25873
25874cat >>confdefs.h <<_ACEOF
25875#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
25876_ACEOF
25877
25878
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025879
25880 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
25881
25882
25883 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
25884
25885 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
25886
25887 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
25888
25889 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
25890
25891 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
25892
25893
25894 ac_config_files="$ac_config_files Makefile.config"
25895
25896
25897 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
25898
25899
Reid Spencer1f319422004-11-29 04:56:35 +000025900 ac_config_files="$ac_config_files docs/doxygen.cfg"
25901
25902
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025903 ac_config_commands="$ac_config_commands Makefile"
25904
25905
25906 ac_config_commands="$ac_config_commands Makefile.common"
25907
25908
25909 ac_config_commands="$ac_config_commands examples/Makefile"
25910
25911
25912 ac_config_commands="$ac_config_commands lib/Makefile"
25913
25914
25915 ac_config_commands="$ac_config_commands runtime/Makefile"
25916
25917
25918 ac_config_commands="$ac_config_commands test/Makefile"
25919
25920
25921 ac_config_commands="$ac_config_commands test/Makefile.tests"
25922
25923
25924 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
25925
25926
25927 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
25928
25929
25930 ac_config_commands="$ac_config_commands tools/Makefile"
25931
25932
25933 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
25934
25935
25936 ac_config_commands="$ac_config_commands utils/Makefile"
25937
25938
25939 ac_config_commands="$ac_config_commands projects/Makefile"
25940
25941
25942
John Criswell7a73b802003-06-30 21:59:07 +000025943cat >confcache <<\_ACEOF
25944# This file is a shell script that caches the results of configure
25945# tests run on this system so they can be shared between configure
25946# scripts and configure runs, see configure's option --config-cache.
25947# It is not useful on other systems. If it contains results you don't
25948# want to keep, you may remove or edit it.
25949#
25950# config.status only pays attention to the cache file if you give it
25951# the --recheck option to rerun configure.
25952#
John Criswell0c38eaf2003-09-10 15:17:25 +000025953# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000025954# loading this file, other *unset* `ac_cv_foo' will be assigned the
25955# following values.
25956
25957_ACEOF
25958
25959# The following way of writing the cache mishandles newlines in values,
25960# but we know of no workaround that is simple, portable, and efficient.
25961# So, don't put newlines in cache variables' values.
25962# Ultrix sh set writes to stderr and can't be redirected directly,
25963# and sets the high bit in the cache file unless we assign to the vars.
25964{
25965 (set) 2>&1 |
25966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25967 *ac_space=\ *)
25968 # `set' does not quote correctly, so add quotes (double-quote
25969 # substitution turns \\\\ into \\, and sed turns \\ into \).
25970 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025971 "s/'/'\\\\''/g;
25972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000025973 ;;
25974 *)
25975 # `set' quotes correctly as required by POSIX, so do not add quotes.
25976 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000025978 ;;
25979 esac;
25980} |
25981 sed '
25982 t clear
25983 : clear
25984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25985 t end
25986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25987 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000025988if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000025989 if test -w $cache_file; then
25990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25991 cat confcache >$cache_file
25992 else
25993 echo "not updating unwritable cache $cache_file"
25994 fi
25995fi
25996rm -f confcache
25997
25998test "x$prefix" = xNONE && prefix=$ac_default_prefix
25999# Let make expand exec_prefix.
26000test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26001
26002# VPATH may cause trouble with some makes, so we remove $(srcdir),
26003# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26004# trailing colons and then remove the whole line if VPATH becomes empty
26005# (actually we leave an empty line to preserve line numbers).
26006if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000026007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000026008s/:*\$(srcdir):*/:/;
26009s/:*\${srcdir}:*/:/;
26010s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026011s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000026012s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026013s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000026014}'
26015fi
26016
26017DEFS=-DHAVE_CONFIG_H
26018
John Criswell0c38eaf2003-09-10 15:17:25 +000026019ac_libobjs=
26020ac_ltlibobjs=
26021for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26022 # 1. Remove the extension, and $U if already installed.
26023 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000026024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000026025 # 2. Add them.
26026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26028done
26029LIBOBJS=$ac_libobjs
26030
26031LTLIBOBJS=$ac_ltlibobjs
26032
26033
John Criswell7a73b802003-06-30 21:59:07 +000026034
26035: ${CONFIG_STATUS=./config.status}
26036ac_clean_files_save=$ac_clean_files
26037ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26038{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26039echo "$as_me: creating $CONFIG_STATUS" >&6;}
26040cat >$CONFIG_STATUS <<_ACEOF
26041#! $SHELL
26042# Generated by $as_me.
26043# Run this file to recreate the current configuration.
26044# Compiler output produced by configure, useful for debugging
26045# configure, is in config.log if it exists.
26046
26047debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000026048ac_cs_recheck=false
26049ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000026050SHELL=\${CONFIG_SHELL-$SHELL}
26051_ACEOF
26052
26053cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026054## --------------------- ##
26055## M4sh Initialization. ##
26056## --------------------- ##
26057
26058# Be Bourne compatible
26059if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26060 emulate sh
26061 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000026062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26063 # is contrary to our usage. Disable this feature.
26064 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000026065elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26066 set -o posix
26067fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026068DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000026069
John Criswell7a73b802003-06-30 21:59:07 +000026070# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026071if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026072 as_unset=unset
26073else
26074 as_unset=false
26075fi
26076
John Criswell0c38eaf2003-09-10 15:17:25 +000026077
26078# Work around bugs in pre-3.0 UWIN ksh.
26079$as_unset ENV MAIL MAILPATH
26080PS1='$ '
26081PS2='> '
26082PS4='+ '
26083
26084# NLS nuisances.
26085for as_var in \
26086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26088 LC_TELEPHONE LC_TIME
26089do
Reid Spencer2706f8c2004-09-19 23:53:36 +000026090 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000026091 eval $as_var=C; export $as_var
26092 else
26093 $as_unset $as_var
26094 fi
26095done
26096
26097# Required to use basename.
26098if expr a : '\(a\)' >/dev/null 2>&1; then
26099 as_expr=expr
26100else
26101 as_expr=false
26102fi
26103
26104if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26105 as_basename=basename
26106else
26107 as_basename=false
26108fi
John Criswell7a73b802003-06-30 21:59:07 +000026109
26110
26111# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000026112as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000026113$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26114 X"$0" : 'X\(//\)$' \| \
26115 X"$0" : 'X\(/\)$' \| \
26116 . : '\(.\)' 2>/dev/null ||
26117echo X/"$0" |
26118 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26119 /^X\/\(\/\/\)$/{ s//\1/; q; }
26120 /^X\/\(\/\).*/{ s//\1/; q; }
26121 s/.*/./; q'`
26122
John Criswell0c38eaf2003-09-10 15:17:25 +000026123
John Criswell7a73b802003-06-30 21:59:07 +000026124# PATH needs CR, and LINENO needs CR and PATH.
26125# Avoid depending upon Character Ranges.
26126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26129as_cr_digits='0123456789'
26130as_cr_alnum=$as_cr_Letters$as_cr_digits
26131
26132# The user is always right.
26133if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000026134 echo "#! /bin/sh" >conf$$.sh
26135 echo "exit 0" >>conf$$.sh
26136 chmod +x conf$$.sh
26137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026138 PATH_SEPARATOR=';'
26139 else
26140 PATH_SEPARATOR=:
26141 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000026142 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000026143fi
26144
26145
26146 as_lineno_1=$LINENO
26147 as_lineno_2=$LINENO
26148 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26149 test "x$as_lineno_1" != "x$as_lineno_2" &&
26150 test "x$as_lineno_3" = "x$as_lineno_2" || {
26151 # Find who we are. Look in the path if we contain no path at all
26152 # relative or not.
26153 case $0 in
26154 *[\\/]* ) as_myself=$0 ;;
26155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26156for as_dir in $PATH
26157do
26158 IFS=$as_save_IFS
26159 test -z "$as_dir" && as_dir=.
26160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26161done
26162
26163 ;;
26164 esac
26165 # We did not find ourselves, most probably we were run as `sh COMMAND'
26166 # in which case we are not to be found in the path.
26167 if test "x$as_myself" = x; then
26168 as_myself=$0
26169 fi
26170 if test ! -f "$as_myself"; then
26171 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26172echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26173 { (exit 1); exit 1; }; }
26174 fi
26175 case $CONFIG_SHELL in
26176 '')
26177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26178for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26179do
26180 IFS=$as_save_IFS
26181 test -z "$as_dir" && as_dir=.
26182 for as_base in sh bash ksh sh5; do
26183 case $as_dir in
26184 /*)
26185 if ("$as_dir/$as_base" -c '
26186 as_lineno_1=$LINENO
26187 as_lineno_2=$LINENO
26188 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26189 test "x$as_lineno_1" != "x$as_lineno_2" &&
26190 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000026191 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26192 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000026193 CONFIG_SHELL=$as_dir/$as_base
26194 export CONFIG_SHELL
26195 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26196 fi;;
26197 esac
26198 done
26199done
26200;;
26201 esac
26202
26203 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26204 # uniformly replaced by the line number. The first 'sed' inserts a
26205 # line-number line before each line; the second 'sed' does the real
26206 # work. The second script uses 'N' to pair each line-number line
26207 # with the numbered line, and appends trailing '-' during
26208 # substitution so that $LINENO is not a special case at line end.
26209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26210 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26211 sed '=' <$as_myself |
26212 sed '
26213 N
26214 s,$,-,
26215 : loop
26216 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26217 t loop
26218 s,-$,,
26219 s,^['$as_cr_digits']*\n,,
26220 ' >$as_me.lineno &&
26221 chmod +x $as_me.lineno ||
26222 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26223echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26224 { (exit 1); exit 1; }; }
26225
26226 # Don't try to exec as it changes $[0], causing all sort of problems
26227 # (the dirname of $[0] is not the place where we might find the
26228 # original and so on. Autoconf is especially sensible to this).
26229 . ./$as_me.lineno
26230 # Exit status is that of the last command.
26231 exit
26232}
26233
26234
26235case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26236 *c*,-n*) ECHO_N= ECHO_C='
26237' ECHO_T=' ' ;;
26238 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26239 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26240esac
26241
26242if expr a : '\(a\)' >/dev/null 2>&1; then
26243 as_expr=expr
26244else
26245 as_expr=false
26246fi
26247
26248rm -f conf$$ conf$$.exe conf$$.file
26249echo >conf$$.file
26250if ln -s conf$$.file conf$$ 2>/dev/null; then
26251 # We could just check for DJGPP; but this test a) works b) is more generic
26252 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26253 if test -f conf$$.exe; then
26254 # Don't use ln at all; we don't have any links
26255 as_ln_s='cp -p'
26256 else
26257 as_ln_s='ln -s'
26258 fi
26259elif ln conf$$.file conf$$ 2>/dev/null; then
26260 as_ln_s=ln
26261else
26262 as_ln_s='cp -p'
26263fi
26264rm -f conf$$ conf$$.exe conf$$.file
26265
John Criswell0c38eaf2003-09-10 15:17:25 +000026266if mkdir -p . 2>/dev/null; then
26267 as_mkdir_p=:
26268else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026269 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000026270 as_mkdir_p=false
26271fi
26272
John Criswell7a73b802003-06-30 21:59:07 +000026273as_executable_p="test -f"
26274
26275# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026276as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000026277
26278# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026279as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000026280
26281
26282# IFS
26283# We need space, tab and new line, in precisely that order.
26284as_nl='
26285'
26286IFS=" $as_nl"
26287
26288# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000026289$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000026290
26291exec 6>&1
26292
26293# Open the log real soon, to keep \$[0] and so on meaningful, and to
26294# report actual input values of CONFIG_FILES etc. instead of their
26295# values after options handling. Logging --version etc. is OK.
26296exec 5>>config.log
26297{
26298 echo
26299 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26300## Running $as_me. ##
26301_ASBOX
26302} >&5
26303cat >&5 <<_CSEOF
26304
Reid Spencerabec8f92004-10-27 23:03:44 +000026305This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000026306generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000026307
26308 CONFIG_FILES = $CONFIG_FILES
26309 CONFIG_HEADERS = $CONFIG_HEADERS
26310 CONFIG_LINKS = $CONFIG_LINKS
26311 CONFIG_COMMANDS = $CONFIG_COMMANDS
26312 $ $0 $@
26313
26314_CSEOF
26315echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26316echo >&5
26317_ACEOF
26318
26319# Files that config.status was made for.
26320if test -n "$ac_config_files"; then
26321 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26322fi
26323
26324if test -n "$ac_config_headers"; then
26325 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26326fi
26327
26328if test -n "$ac_config_links"; then
26329 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26330fi
26331
26332if test -n "$ac_config_commands"; then
26333 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26334fi
26335
26336cat >>$CONFIG_STATUS <<\_ACEOF
26337
26338ac_cs_usage="\
26339\`$as_me' instantiates files from templates according to the
26340current configuration.
26341
26342Usage: $0 [OPTIONS] [FILE]...
26343
26344 -h, --help print this help, then exit
26345 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000026346 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000026347 -d, --debug don't remove temporary files
26348 --recheck update $as_me by reconfiguring in the same conditions
26349 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000026350 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000026351 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000026352 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000026353
26354Configuration files:
26355$config_files
26356
26357Configuration headers:
26358$config_headers
26359
Reid Spencerde8c47f2004-08-29 19:35:28 +000026360Configuration links:
26361$config_links
26362
John Criswellc764fbc2003-09-06 15:17:13 +000026363Configuration commands:
26364$config_commands
26365
John Criswell7a73b802003-06-30 21:59:07 +000026366Report bugs to <bug-autoconf@gnu.org>."
26367_ACEOF
26368
26369cat >>$CONFIG_STATUS <<_ACEOF
26370ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000026371llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000026372configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000026373 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26374
Reid Spencer2706f8c2004-09-19 23:53:36 +000026375Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000026376This config.status script is free software; the Free Software Foundation
26377gives unlimited permission to copy, distribute and modify it."
26378srcdir=$srcdir
26379INSTALL="$INSTALL"
26380_ACEOF
26381
26382cat >>$CONFIG_STATUS <<\_ACEOF
26383# If no file are specified by the user, then we need to provide default
26384# value. By we need to know if files were specified by the user.
26385ac_need_defaults=:
26386while test $# != 0
26387do
26388 case $1 in
26389 --*=*)
26390 ac_option=`expr "x$1" : 'x\([^=]*\)='`
26391 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000026392 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000026393 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000026394 -*)
26395 ac_option=$1
26396 ac_optarg=$2
26397 ac_shift=shift
26398 ;;
John Criswell7a73b802003-06-30 21:59:07 +000026399 *) # This is not an option, so the user has probably given explicit
26400 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000026401 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000026402 ac_need_defaults=false;;
26403 esac
26404
John Criswell0c38eaf2003-09-10 15:17:25 +000026405 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000026406 # Handling of the options.
26407_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000026408cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26410 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000026411 --version | --vers* | -V )
26412 echo "$ac_cs_version"; exit 0 ;;
26413 --he | --h)
26414 # Conflict between --help and --header
26415 { { echo "$as_me:$LINENO: error: ambiguous option: $1
26416Try \`$0 --help' for more information." >&5
26417echo "$as_me: error: ambiguous option: $1
26418Try \`$0 --help' for more information." >&2;}
26419 { (exit 1); exit 1; }; };;
26420 --help | --hel | -h )
26421 echo "$ac_cs_usage"; exit 0 ;;
26422 --debug | --d* | -d )
26423 debug=: ;;
26424 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000026425 $ac_shift
26426 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000026427 ac_need_defaults=false;;
26428 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000026429 $ac_shift
26430 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000026431 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000026432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26434 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000026435
26436 # This is an error.
26437 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26438Try \`$0 --help' for more information." >&5
26439echo "$as_me: error: unrecognized option: $1
26440Try \`$0 --help' for more information." >&2;}
26441 { (exit 1); exit 1; }; } ;;
26442
26443 *) ac_config_targets="$ac_config_targets $1" ;;
26444
26445 esac
26446 shift
26447done
26448
John Criswell0c38eaf2003-09-10 15:17:25 +000026449ac_configure_extra_args=
26450
26451if $ac_cs_silent; then
26452 exec 6>/dev/null
26453 ac_configure_extra_args="$ac_configure_extra_args --silent"
26454fi
26455
26456_ACEOF
26457cat >>$CONFIG_STATUS <<_ACEOF
26458if \$ac_cs_recheck; then
26459 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26460 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26461fi
26462
John Criswell7a73b802003-06-30 21:59:07 +000026463_ACEOF
26464
John Criswellc764fbc2003-09-06 15:17:13 +000026465cat >>$CONFIG_STATUS <<_ACEOF
26466#
26467# INIT-COMMANDS section.
26468#
John Criswell7a73b802003-06-30 21:59:07 +000026469
John Criswellc764fbc2003-09-06 15:17:13 +000026470${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
26471${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000026472${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026473${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026474${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026475${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
26476${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000026477${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
26478${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000026479${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Misha Brukman591edc62004-10-14 18:59:42 +000026480${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
Brian Gaekec45be042003-10-07 06:01:34 +000026481${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026482${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000026483
26484_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026485
26486
26487
26488cat >>$CONFIG_STATUS <<\_ACEOF
26489for ac_config_target in $ac_config_targets
26490do
26491 case "$ac_config_target" in
26492 # Handling of arguments.
26493 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000026494 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
26495 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
26496 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
26497 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000026498 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000026499 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026500 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
26501 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000026502 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026503 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026504 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026505 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
26506 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000026507 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
26508 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026509 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Misha Brukman591edc62004-10-14 18:59:42 +000026510 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000026511 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026512 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000026513 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000026514 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000026515 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
26516 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000026517 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
26518 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000026519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26520echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26521 { (exit 1); exit 1; }; };;
26522 esac
26523done
26524
26525# If the user did not use the arguments to specify the items to instantiate,
26526# then the envvar interface is used. Set only those that are not.
26527# We use the long form for the default assignment because of an extremely
26528# bizarre bug on SunOS 4.1.3.
26529if $ac_need_defaults; then
26530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000026532 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000026533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000026534fi
26535
John Criswell0c38eaf2003-09-10 15:17:25 +000026536# Have a temporary directory for convenience. Make it in the build tree
26537# simply because there is no reason to put it here, and in addition,
26538# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000026539# Create a temporary directory, and hook for its removal unless debugging.
26540$debug ||
26541{
26542 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26543 trap '{ (exit 1); exit 1; }' 1 2 13 15
26544}
26545
26546# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000026547
John Criswell7a73b802003-06-30 21:59:07 +000026548{
John Criswell0c38eaf2003-09-10 15:17:25 +000026549 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000026550 test -n "$tmp" && test -d "$tmp"
26551} ||
26552{
John Criswell0c38eaf2003-09-10 15:17:25 +000026553 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000026554 (umask 077 && mkdir $tmp)
26555} ||
26556{
John Criswell0c38eaf2003-09-10 15:17:25 +000026557 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000026558 { (exit 1); exit 1; }
26559}
26560
26561_ACEOF
26562
26563cat >>$CONFIG_STATUS <<_ACEOF
26564
26565#
26566# CONFIG_FILES section.
26567#
26568
26569# No need to generate the scripts if there are no CONFIG_FILES.
26570# This happens for instance when ./config.status config.h
26571if test -n "\$CONFIG_FILES"; then
26572 # Protect against being on the right side of a sed subst in config.status.
26573 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26574 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26575s,@SHELL@,$SHELL,;t t
26576s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26577s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26578s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26579s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26580s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26581s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26582s,@exec_prefix@,$exec_prefix,;t t
26583s,@prefix@,$prefix,;t t
26584s,@program_transform_name@,$program_transform_name,;t t
26585s,@bindir@,$bindir,;t t
26586s,@sbindir@,$sbindir,;t t
26587s,@libexecdir@,$libexecdir,;t t
26588s,@datadir@,$datadir,;t t
26589s,@sysconfdir@,$sysconfdir,;t t
26590s,@sharedstatedir@,$sharedstatedir,;t t
26591s,@localstatedir@,$localstatedir,;t t
26592s,@libdir@,$libdir,;t t
26593s,@includedir@,$includedir,;t t
26594s,@oldincludedir@,$oldincludedir,;t t
26595s,@infodir@,$infodir,;t t
26596s,@mandir@,$mandir,;t t
26597s,@build_alias@,$build_alias,;t t
26598s,@host_alias@,$host_alias,;t t
26599s,@target_alias@,$target_alias,;t t
26600s,@DEFS@,$DEFS,;t t
26601s,@ECHO_C@,$ECHO_C,;t t
26602s,@ECHO_N@,$ECHO_N,;t t
26603s,@ECHO_T@,$ECHO_T,;t t
26604s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026605s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000026606s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026607s,@build@,$build,;t t
26608s,@build_cpu@,$build_cpu,;t t
26609s,@build_vendor@,$build_vendor,;t t
26610s,@build_os@,$build_os,;t t
26611s,@host@,$host,;t t
26612s,@host_cpu@,$host_cpu,;t t
26613s,@host_vendor@,$host_vendor,;t t
26614s,@host_os@,$host_os,;t t
26615s,@target@,$target,;t t
26616s,@target_cpu@,$target_cpu,;t t
26617s,@target_vendor@,$target_vendor,;t t
26618s,@target_os@,$target_os,;t t
26619s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000026620s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026621s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026622s,@CC@,$CC,;t t
26623s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026624s,@LDFLAGS@,$LDFLAGS,;t t
26625s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026626s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026627s,@EXEEXT@,$EXEEXT,;t t
26628s,@OBJEXT@,$OBJEXT,;t t
26629s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
26630s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026631s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026632s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026633s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026634s,@CXX@,$CXX,;t t
26635s,@CXXFLAGS@,$CXXFLAGS,;t t
26636s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026637s,@LEX@,$LEX,;t t
26638s,@LEXLIB@,$LEXLIB,;t t
26639s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000026640s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026641s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000026642s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000026643s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026644s,@LN_S@,$LN_S,;t t
26645s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000026646s,@AR@,$AR,;t t
26647s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026648s,@RANLIB@,$RANLIB,;t t
26649s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26650s,@STRIP@,$STRIP,;t t
26651s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000026652s,@CXXCPP@,$CXXCPP,;t t
26653s,@F77@,$F77,;t t
26654s,@FFLAGS@,$FFLAGS,;t t
26655s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026656s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026657s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026658s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026659s,@FIND@,$FIND,;t t
26660s,@GREP@,$GREP,;t t
26661s,@MKDIR@,$MKDIR,;t t
26662s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026663s,@PAX@,$PAX,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026664s,@RM@,$RM,;t t
26665s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000026666s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026667s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26668s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26669s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026670s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026671s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026672s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026673s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026674s,@GROFF@,$GROFF,;t t
26675s,@GZIP@,$GZIP,;t t
26676s,@POD2HTML@,$POD2HTML,;t t
26677s,@POD2MAN@,$POD2MAN,;t t
John Criswellde00db22003-08-25 16:49:54 +000026678s,@PYTHON@,$PYTHON,;t t
26679s,@QMTEST@,$QMTEST,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000026680s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000026681s,@ZIP@,$ZIP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026682s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026683s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026684s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026685s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000026686s,@LLVMCC1@,$LLVMCC1,;t t
26687s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000026688s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000026689s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
26690s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
26691s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
26692s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
26693s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
26694s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
26695s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
26696s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
26697s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
26698s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000026699s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000026700s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000026701CEOF
26702
26703_ACEOF
26704
26705 cat >>$CONFIG_STATUS <<\_ACEOF
26706 # Split the substitutions into bite-sized pieces for seds with
26707 # small command number limits, like on Digital OSF/1 and HP-UX.
26708 ac_max_sed_lines=48
26709 ac_sed_frag=1 # Number of current file.
26710 ac_beg=1 # First line for current file.
26711 ac_end=$ac_max_sed_lines # Line after last line for current file.
26712 ac_more_lines=:
26713 ac_sed_cmds=
26714 while $ac_more_lines; do
26715 if test $ac_beg -gt 1; then
26716 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26717 else
26718 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26719 fi
26720 if test ! -s $tmp/subs.frag; then
26721 ac_more_lines=false
26722 else
26723 # The purpose of the label and of the branching condition is to
26724 # speed up the sed processing (if there are no `@' at all, there
26725 # is no need to browse any of the substitutions).
26726 # These are the two extra sed commands mentioned above.
26727 (echo ':t
26728 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26729 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000026730 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000026731 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026732 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000026733 fi
26734 ac_sed_frag=`expr $ac_sed_frag + 1`
26735 ac_beg=$ac_end
26736 ac_end=`expr $ac_end + $ac_max_sed_lines`
26737 fi
26738 done
26739 if test -z "$ac_sed_cmds"; then
26740 ac_sed_cmds=cat
26741 fi
26742fi # test -n "$CONFIG_FILES"
26743
26744_ACEOF
26745cat >>$CONFIG_STATUS <<\_ACEOF
26746for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26748 case $ac_file in
26749 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000026750 cat >$tmp/stdin
26751 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26752 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026753 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000026754 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026755 * ) ac_file_in=$ac_file.in ;;
26756 esac
26757
26758 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26759 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26760$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026761 X"$ac_file" : 'X\(//\)[^/]' \| \
26762 X"$ac_file" : 'X\(//\)$' \| \
26763 X"$ac_file" : 'X\(/\)' \| \
26764 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000026765echo X"$ac_file" |
26766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26768 /^X\(\/\/\)$/{ s//\1/; q; }
26769 /^X\(\/\).*/{ s//\1/; q; }
26770 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000026771 { if $as_mkdir_p; then
26772 mkdir -p "$ac_dir"
26773 else
26774 as_dir="$ac_dir"
26775 as_dirs=
26776 while test ! -d "$as_dir"; do
26777 as_dirs="$as_dir $as_dirs"
26778 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26779$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026780 X"$as_dir" : 'X\(//\)[^/]' \| \
26781 X"$as_dir" : 'X\(//\)$' \| \
26782 X"$as_dir" : 'X\(/\)' \| \
26783 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000026784echo X"$as_dir" |
26785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26786 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26787 /^X\(\/\/\)$/{ s//\1/; q; }
26788 /^X\(\/\).*/{ s//\1/; q; }
26789 s/.*/./; q'`
26790 done
26791 test ! -n "$as_dirs" || mkdir $as_dirs
26792 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26793echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26794 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000026795
26796 ac_builddir=.
26797
26798if test "$ac_dir" != .; then
26799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26800 # A "../" for each directory in $ac_dir_suffix.
26801 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26802else
26803 ac_dir_suffix= ac_top_builddir=
26804fi
26805
26806case $srcdir in
26807 .) # No --srcdir option. We are building in place.
26808 ac_srcdir=.
26809 if test -z "$ac_top_builddir"; then
26810 ac_top_srcdir=.
26811 else
26812 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26813 fi ;;
26814 [\\/]* | ?:[\\/]* ) # Absolute path.
26815 ac_srcdir=$srcdir$ac_dir_suffix;
26816 ac_top_srcdir=$srcdir ;;
26817 *) # Relative path.
26818 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26819 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26820esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026821
26822# Do not use `cd foo && pwd` to compute absolute paths, because
26823# the directories may not exist.
26824case `pwd` in
26825.) ac_abs_builddir="$ac_dir";;
26826*)
26827 case "$ac_dir" in
26828 .) ac_abs_builddir=`pwd`;;
26829 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26830 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26831 esac;;
26832esac
26833case $ac_abs_builddir in
26834.) ac_abs_top_builddir=${ac_top_builddir}.;;
26835*)
26836 case ${ac_top_builddir}. in
26837 .) ac_abs_top_builddir=$ac_abs_builddir;;
26838 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26839 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26840 esac;;
26841esac
26842case $ac_abs_builddir in
26843.) ac_abs_srcdir=$ac_srcdir;;
26844*)
26845 case $ac_srcdir in
26846 .) ac_abs_srcdir=$ac_abs_builddir;;
26847 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26848 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26849 esac;;
26850esac
26851case $ac_abs_builddir in
26852.) ac_abs_top_srcdir=$ac_top_srcdir;;
26853*)
26854 case $ac_top_srcdir in
26855 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26856 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26857 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26858 esac;;
26859esac
John Criswell7a73b802003-06-30 21:59:07 +000026860
26861
26862 case $INSTALL in
26863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26864 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26865 esac
26866
26867 if test x"$ac_file" != x-; then
26868 { echo "$as_me:$LINENO: creating $ac_file" >&5
26869echo "$as_me: creating $ac_file" >&6;}
26870 rm -f "$ac_file"
26871 fi
26872 # Let's still pretend it is `configure' which instantiates (i.e., don't
26873 # use $as_me), people would be surprised to read:
26874 # /* config.h. Generated by config.status. */
26875 if test x"$ac_file" = x-; then
26876 configure_input=
26877 else
26878 configure_input="$ac_file. "
26879 fi
26880 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000026881 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000026882
26883 # First look for the input files in the build tree, otherwise in the
26884 # src tree.
26885 ac_file_inputs=`IFS=:
26886 for f in $ac_file_in; do
26887 case $f in
26888 -) echo $tmp/stdin ;;
26889 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026890 # Absolute (can't be DOS-style, as IFS=:)
26891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026892echo "$as_me: error: cannot find input file: $f" >&2;}
26893 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026894 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000026895 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000026896 if test -f "$f"; then
26897 # Build tree
26898 echo "$f"
26899 elif test -f "$srcdir/$f"; then
26900 # Source tree
26901 echo "$srcdir/$f"
26902 else
26903 # /dev/null tree
26904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026905echo "$as_me: error: cannot find input file: $f" >&2;}
26906 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026907 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000026908 esac
26909 done` || { (exit 1); exit 1; }
26910_ACEOF
26911cat >>$CONFIG_STATUS <<_ACEOF
26912 sed "$ac_vpsub
26913$extrasub
26914_ACEOF
26915cat >>$CONFIG_STATUS <<\_ACEOF
26916:t
26917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26918s,@configure_input@,$configure_input,;t t
26919s,@srcdir@,$ac_srcdir,;t t
26920s,@abs_srcdir@,$ac_abs_srcdir,;t t
26921s,@top_srcdir@,$ac_top_srcdir,;t t
26922s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26923s,@builddir@,$ac_builddir,;t t
26924s,@abs_builddir@,$ac_abs_builddir,;t t
26925s,@top_builddir@,$ac_top_builddir,;t t
26926s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26927s,@INSTALL@,$ac_INSTALL,;t t
26928" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26929 rm -f $tmp/stdin
26930 if test x"$ac_file" != x-; then
26931 mv $tmp/out $ac_file
26932 else
26933 cat $tmp/out
26934 rm -f $tmp/out
26935 fi
26936
26937done
26938_ACEOF
26939cat >>$CONFIG_STATUS <<\_ACEOF
26940
26941#
26942# CONFIG_HEADER section.
26943#
26944
26945# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
26946# NAME is the cpp macro being defined and VALUE is the value it is being given.
26947#
26948# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026949ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26950ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000026951ac_dC=' '
26952ac_dD=',;t'
26953# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000026954ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000026955ac_uB='$,\1#\2define\3'
26956ac_uC=' '
26957ac_uD=',;t'
26958
26959for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26961 case $ac_file in
26962 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000026963 cat >$tmp/stdin
26964 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026966 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000026967 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000026968 * ) ac_file_in=$ac_file.in ;;
26969 esac
26970
26971 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26972echo "$as_me: creating $ac_file" >&6;}
26973
26974 # First look for the input files in the build tree, otherwise in the
26975 # src tree.
26976 ac_file_inputs=`IFS=:
26977 for f in $ac_file_in; do
26978 case $f in
26979 -) echo $tmp/stdin ;;
26980 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026981 # Absolute (can't be DOS-style, as IFS=:)
26982 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026983echo "$as_me: error: cannot find input file: $f" >&2;}
26984 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026985 # Do quote $f, to prevent DOS paths from being IFS'd.
26986 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000026987 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000026988 if test -f "$f"; then
26989 # Build tree
26990 echo "$f"
26991 elif test -f "$srcdir/$f"; then
26992 # Source tree
26993 echo "$srcdir/$f"
26994 else
26995 # /dev/null tree
26996 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000026997echo "$as_me: error: cannot find input file: $f" >&2;}
26998 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026999 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000027000 esac
27001 done` || { (exit 1); exit 1; }
27002 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027003 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000027004
27005_ACEOF
27006
27007# Transform confdefs.h into two sed scripts, `conftest.defines' and
27008# `conftest.undefs', that substitutes the proper values into
27009# config.h.in to produce config.h. The first handles `#define'
27010# templates, and the second `#undef' templates.
27011# And first: Protect against being on the right side of a sed subst in
27012# config.status. Protect against being in an unquoted here document
27013# in config.status.
27014rm -f conftest.defines conftest.undefs
27015# Using a here document instead of a string reduces the quoting nightmare.
27016# Putting comments in sed scripts is not portable.
27017#
27018# `end' is used to avoid that the second main sed command (meant for
27019# 0-ary CPP macros) applies to n-ary macro definitions.
27020# See the Autoconf documentation for `clear'.
27021cat >confdef2sed.sed <<\_ACEOF
27022s/[\\&,]/\\&/g
27023s,[\\$`],\\&,g
27024t clear
27025: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000027026s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000027027t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000027028s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000027029: end
27030_ACEOF
27031# If some macros were called several times there might be several times
27032# the same #defines, which is useless. Nevertheless, we may not want to
27033# sort them, since we want the *last* AC-DEFINE to be honored.
27034uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27035sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27036rm -f confdef2sed.sed
27037
27038# This sed command replaces #undef with comments. This is necessary, for
27039# example, in the case of _POSIX_SOURCE, which is predefined and required
27040# on some systems where configure will not decide to define it.
27041cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027042s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000027043_ACEOF
27044
27045# Break up conftest.defines because some shells have a limit on the size
27046# of here documents, and old seds have small limits too (100 cmds).
27047echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000027048echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000027049echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27050echo ' :' >>$CONFIG_STATUS
27051rm -f conftest.tail
27052while grep . conftest.defines >/dev/null
27053do
27054 # Write a limited-size here document to $tmp/defines.sed.
27055 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27056 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027057 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000027058 # Work around the forget-to-reset-the-flag bug.
27059 echo 't clr' >>$CONFIG_STATUS
27060 echo ': clr' >>$CONFIG_STATUS
27061 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27062 echo 'CEOF
27063 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27064 rm -f $tmp/in
27065 mv $tmp/out $tmp/in
27066' >>$CONFIG_STATUS
27067 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27068 rm -f conftest.defines
27069 mv conftest.tail conftest.defines
27070done
27071rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000027072echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000027073echo >>$CONFIG_STATUS
27074
27075# Break up conftest.undefs because some shells have a limit on the size
27076# of here documents, and old seds have small limits too (100 cmds).
27077echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27078rm -f conftest.tail
27079while grep . conftest.undefs >/dev/null
27080do
27081 # Write a limited-size here document to $tmp/undefs.sed.
27082 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27083 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000027084 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000027085 # Work around the forget-to-reset-the-flag bug.
27086 echo 't clr' >>$CONFIG_STATUS
27087 echo ': clr' >>$CONFIG_STATUS
27088 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27089 echo 'CEOF
27090 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27091 rm -f $tmp/in
27092 mv $tmp/out $tmp/in
27093' >>$CONFIG_STATUS
27094 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27095 rm -f conftest.undefs
27096 mv conftest.tail conftest.undefs
27097done
27098rm -f conftest.undefs
27099
27100cat >>$CONFIG_STATUS <<\_ACEOF
27101 # Let's still pretend it is `configure' which instantiates (i.e., don't
27102 # use $as_me), people would be surprised to read:
27103 # /* config.h. Generated by config.status. */
27104 if test x"$ac_file" = x-; then
27105 echo "/* Generated by configure. */" >$tmp/config.h
27106 else
27107 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27108 fi
27109 cat $tmp/in >>$tmp/config.h
27110 rm -f $tmp/in
27111 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000027112 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000027113 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27114echo "$as_me: $ac_file is unchanged" >&6;}
27115 else
27116 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27117$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027118 X"$ac_file" : 'X\(//\)[^/]' \| \
27119 X"$ac_file" : 'X\(//\)$' \| \
27120 X"$ac_file" : 'X\(/\)' \| \
27121 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000027122echo X"$ac_file" |
27123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27125 /^X\(\/\/\)$/{ s//\1/; q; }
27126 /^X\(\/\).*/{ s//\1/; q; }
27127 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000027128 { if $as_mkdir_p; then
27129 mkdir -p "$ac_dir"
27130 else
27131 as_dir="$ac_dir"
27132 as_dirs=
27133 while test ! -d "$as_dir"; do
27134 as_dirs="$as_dir $as_dirs"
27135 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27136$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027137 X"$as_dir" : 'X\(//\)[^/]' \| \
27138 X"$as_dir" : 'X\(//\)$' \| \
27139 X"$as_dir" : 'X\(/\)' \| \
27140 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000027141echo X"$as_dir" |
27142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27144 /^X\(\/\/\)$/{ s//\1/; q; }
27145 /^X\(\/\).*/{ s//\1/; q; }
27146 s/.*/./; q'`
27147 done
27148 test ! -n "$as_dirs" || mkdir $as_dirs
27149 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27150echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27151 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000027152
27153 rm -f $ac_file
27154 mv $tmp/config.h $ac_file
27155 fi
27156 else
27157 cat $tmp/config.h
27158 rm -f $tmp/config.h
27159 fi
27160done
27161_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000027162cat >>$CONFIG_STATUS <<\_ACEOF
27163
27164#
Reid Spencerde8c47f2004-08-29 19:35:28 +000027165# CONFIG_LINKS section.
27166#
27167
27168for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
27169 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27170 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27171
27172 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
27173echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
27174
27175 if test ! -r $srcdir/$ac_source; then
27176 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27177echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27178 { (exit 1); exit 1; }; }
27179 fi
27180 rm -f $ac_dest
27181
27182 # Make relative symlinks.
27183 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
27184$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027185 X"$ac_dest" : 'X\(//\)[^/]' \| \
27186 X"$ac_dest" : 'X\(//\)$' \| \
27187 X"$ac_dest" : 'X\(/\)' \| \
27188 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000027189echo X"$ac_dest" |
27190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27192 /^X\(\/\/\)$/{ s//\1/; q; }
27193 /^X\(\/\).*/{ s//\1/; q; }
27194 s/.*/./; q'`
27195 { if $as_mkdir_p; then
27196 mkdir -p "$ac_dest_dir"
27197 else
27198 as_dir="$ac_dest_dir"
27199 as_dirs=
27200 while test ! -d "$as_dir"; do
27201 as_dirs="$as_dir $as_dirs"
27202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027204 X"$as_dir" : 'X\(//\)[^/]' \| \
27205 X"$as_dir" : 'X\(//\)$' \| \
27206 X"$as_dir" : 'X\(/\)' \| \
27207 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000027208echo X"$as_dir" |
27209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27211 /^X\(\/\/\)$/{ s//\1/; q; }
27212 /^X\(\/\).*/{ s//\1/; q; }
27213 s/.*/./; q'`
27214 done
27215 test ! -n "$as_dirs" || mkdir $as_dirs
27216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
27217echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
27218 { (exit 1); exit 1; }; }; }
27219
27220 ac_builddir=.
27221
27222if test "$ac_dest_dir" != .; then
27223 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
27224 # A "../" for each directory in $ac_dir_suffix.
27225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27226else
27227 ac_dir_suffix= ac_top_builddir=
27228fi
27229
27230case $srcdir in
27231 .) # No --srcdir option. We are building in place.
27232 ac_srcdir=.
27233 if test -z "$ac_top_builddir"; then
27234 ac_top_srcdir=.
27235 else
27236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27237 fi ;;
27238 [\\/]* | ?:[\\/]* ) # Absolute path.
27239 ac_srcdir=$srcdir$ac_dir_suffix;
27240 ac_top_srcdir=$srcdir ;;
27241 *) # Relative path.
27242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27244esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000027245
27246# Do not use `cd foo && pwd` to compute absolute paths, because
27247# the directories may not exist.
27248case `pwd` in
27249.) ac_abs_builddir="$ac_dest_dir";;
27250*)
27251 case "$ac_dest_dir" in
27252 .) ac_abs_builddir=`pwd`;;
27253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
27254 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
27255 esac;;
27256esac
27257case $ac_abs_builddir in
27258.) ac_abs_top_builddir=${ac_top_builddir}.;;
27259*)
27260 case ${ac_top_builddir}. in
27261 .) ac_abs_top_builddir=$ac_abs_builddir;;
27262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27264 esac;;
27265esac
27266case $ac_abs_builddir in
27267.) ac_abs_srcdir=$ac_srcdir;;
27268*)
27269 case $ac_srcdir in
27270 .) ac_abs_srcdir=$ac_abs_builddir;;
27271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27273 esac;;
27274esac
27275case $ac_abs_builddir in
27276.) ac_abs_top_srcdir=$ac_top_srcdir;;
27277*)
27278 case $ac_top_srcdir in
27279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27282 esac;;
27283esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000027284
27285
27286 case $srcdir in
27287 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27288 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
27289 esac
27290
27291 # Try a symlink, then a hard link, then a copy.
27292 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
27293 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
27294 cp -p $srcdir/$ac_source $ac_dest ||
27295 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
27296echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
27297 { (exit 1); exit 1; }; }
27298done
27299_ACEOF
27300cat >>$CONFIG_STATUS <<\_ACEOF
27301
27302#
John Criswellc764fbc2003-09-06 15:17:13 +000027303# CONFIG_COMMANDS section.
27304#
27305for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27306 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27307 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27308 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27309$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027310 X"$ac_dest" : 'X\(//\)[^/]' \| \
27311 X"$ac_dest" : 'X\(//\)$' \| \
27312 X"$ac_dest" : 'X\(/\)' \| \
27313 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000027314echo X"$ac_dest" |
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27317 /^X\(\/\/\)$/{ s//\1/; q; }
27318 /^X\(\/\).*/{ s//\1/; q; }
27319 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000027320 { if $as_mkdir_p; then
27321 mkdir -p "$ac_dir"
27322 else
27323 as_dir="$ac_dir"
27324 as_dirs=
27325 while test ! -d "$as_dir"; do
27326 as_dirs="$as_dir $as_dirs"
27327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27328$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27329 X"$as_dir" : 'X\(//\)[^/]' \| \
27330 X"$as_dir" : 'X\(//\)$' \| \
27331 X"$as_dir" : 'X\(/\)' \| \
27332 . : '\(.\)' 2>/dev/null ||
27333echo X"$as_dir" |
27334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27336 /^X\(\/\/\)$/{ s//\1/; q; }
27337 /^X\(\/\).*/{ s//\1/; q; }
27338 s/.*/./; q'`
27339 done
27340 test ! -n "$as_dirs" || mkdir $as_dirs
27341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27342echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27343 { (exit 1); exit 1; }; }; }
27344
John Criswellc764fbc2003-09-06 15:17:13 +000027345 ac_builddir=.
27346
27347if test "$ac_dir" != .; then
27348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27349 # A "../" for each directory in $ac_dir_suffix.
27350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27351else
27352 ac_dir_suffix= ac_top_builddir=
27353fi
27354
27355case $srcdir in
27356 .) # No --srcdir option. We are building in place.
27357 ac_srcdir=.
27358 if test -z "$ac_top_builddir"; then
27359 ac_top_srcdir=.
27360 else
27361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27362 fi ;;
27363 [\\/]* | ?:[\\/]* ) # Absolute path.
27364 ac_srcdir=$srcdir$ac_dir_suffix;
27365 ac_top_srcdir=$srcdir ;;
27366 *) # Relative path.
27367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27369esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000027370
27371# Do not use `cd foo && pwd` to compute absolute paths, because
27372# the directories may not exist.
27373case `pwd` in
27374.) ac_abs_builddir="$ac_dir";;
27375*)
27376 case "$ac_dir" in
27377 .) ac_abs_builddir=`pwd`;;
27378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27380 esac;;
27381esac
27382case $ac_abs_builddir in
27383.) ac_abs_top_builddir=${ac_top_builddir}.;;
27384*)
27385 case ${ac_top_builddir}. in
27386 .) ac_abs_top_builddir=$ac_abs_builddir;;
27387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27389 esac;;
27390esac
27391case $ac_abs_builddir in
27392.) ac_abs_srcdir=$ac_srcdir;;
27393*)
27394 case $ac_srcdir in
27395 .) ac_abs_srcdir=$ac_abs_builddir;;
27396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27398 esac;;
27399esac
27400case $ac_abs_builddir in
27401.) ac_abs_top_srcdir=$ac_top_srcdir;;
27402*)
27403 case $ac_top_srcdir in
27404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27407 esac;;
27408esac
John Criswellc764fbc2003-09-06 15:17:13 +000027409
27410
27411 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27412echo "$as_me: executing $ac_dest commands" >&6;}
27413 case $ac_dest in
27414 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
27415 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000027416 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027417 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027418 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027419 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
27420 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000027421 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
27422 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 +000027423 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Misha Brukman591edc62004-10-14 18:59:42 +000027424 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
Brian Gaekec45be042003-10-07 06:01:34 +000027425 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027426 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000027427 esac
27428done
27429_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027430
27431cat >>$CONFIG_STATUS <<\_ACEOF
27432
27433{ (exit 0); exit 0; }
27434_ACEOF
27435chmod +x $CONFIG_STATUS
27436ac_clean_files=$ac_clean_files_save
27437
27438
27439# configure is writing to config.log, and then calls config.status.
27440# config.status does its own redirection, appending to config.log.
27441# Unfortunately, on DOS this fails, as config.log is still kept open
27442# by configure, so config.status won't be able to write to it; its
27443# output is simply discarded. So we exec the FD to /dev/null,
27444# effectively closing config.log, so it can be properly (re)opened and
27445# appended to by config.status. When coming back to configure, we
27446# need to make the FD available again.
27447if test "$no_create" != yes; then
27448 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000027449 ac_config_status_args=
27450 test "$silent" = yes &&
27451 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000027452 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000027453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000027454 exec 5>>config.log
27455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27456 # would make configure fail if this is the last instruction.
27457 $ac_cs_success || { (exit 1); exit 1; }
27458fi
27459
John Criswell12399a12003-09-30 15:55:44 +000027460#
27461# CONFIG_SUBDIRS section.
27462#
27463if test "$no_recursion" != yes; then
27464
27465 # Remove --cache-file and --srcdir arguments so they do not pile up.
27466 ac_sub_configure_args=
27467 ac_prev=
27468 for ac_arg in $ac_configure_args; do
27469 if test -n "$ac_prev"; then
27470 ac_prev=
27471 continue
27472 fi
27473 case $ac_arg in
27474 -cache-file | --cache-file | --cache-fil | --cache-fi \
27475 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27476 ac_prev=cache_file ;;
27477 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27478 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27479 | --c=*)
27480 ;;
27481 --config-cache | -C)
27482 ;;
27483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27484 ac_prev=srcdir ;;
27485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27486 ;;
27487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27488 ac_prev=prefix ;;
27489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27490 ;;
27491 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
27492 esac
27493 done
27494
27495 # Always prepend --prefix to ensure using the same prefix
27496 # in subdir configurations.
27497 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
27498
27499 ac_popdir=`pwd`
27500 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27501
27502 # Do not complain, so a configure script can configure whichever
27503 # parts of a large source tree are present.
27504 test -d $srcdir/$ac_dir || continue
27505
27506 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
27507echo "$as_me: configuring in $ac_dir" >&6;}
27508 { if $as_mkdir_p; then
27509 mkdir -p "$ac_dir"
27510 else
27511 as_dir="$ac_dir"
27512 as_dirs=
27513 while test ! -d "$as_dir"; do
27514 as_dirs="$as_dir $as_dirs"
27515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027517 X"$as_dir" : 'X\(//\)[^/]' \| \
27518 X"$as_dir" : 'X\(//\)$' \| \
27519 X"$as_dir" : 'X\(/\)' \| \
27520 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000027521echo X"$as_dir" |
27522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27524 /^X\(\/\/\)$/{ s//\1/; q; }
27525 /^X\(\/\).*/{ s//\1/; q; }
27526 s/.*/./; q'`
27527 done
27528 test ! -n "$as_dirs" || mkdir $as_dirs
27529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27530echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27531 { (exit 1); exit 1; }; }; }
27532
27533 ac_builddir=.
27534
27535if test "$ac_dir" != .; then
27536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27537 # A "../" for each directory in $ac_dir_suffix.
27538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27539else
27540 ac_dir_suffix= ac_top_builddir=
27541fi
27542
27543case $srcdir in
27544 .) # No --srcdir option. We are building in place.
27545 ac_srcdir=.
27546 if test -z "$ac_top_builddir"; then
27547 ac_top_srcdir=.
27548 else
27549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27550 fi ;;
27551 [\\/]* | ?:[\\/]* ) # Absolute path.
27552 ac_srcdir=$srcdir$ac_dir_suffix;
27553 ac_top_srcdir=$srcdir ;;
27554 *) # Relative path.
27555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27557esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000027558
27559# Do not use `cd foo && pwd` to compute absolute paths, because
27560# the directories may not exist.
27561case `pwd` in
27562.) ac_abs_builddir="$ac_dir";;
27563*)
27564 case "$ac_dir" in
27565 .) ac_abs_builddir=`pwd`;;
27566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27568 esac;;
27569esac
27570case $ac_abs_builddir in
27571.) ac_abs_top_builddir=${ac_top_builddir}.;;
27572*)
27573 case ${ac_top_builddir}. in
27574 .) ac_abs_top_builddir=$ac_abs_builddir;;
27575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27577 esac;;
27578esac
27579case $ac_abs_builddir in
27580.) ac_abs_srcdir=$ac_srcdir;;
27581*)
27582 case $ac_srcdir in
27583 .) ac_abs_srcdir=$ac_abs_builddir;;
27584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27586 esac;;
27587esac
27588case $ac_abs_builddir in
27589.) ac_abs_top_srcdir=$ac_top_srcdir;;
27590*)
27591 case $ac_top_srcdir in
27592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27595 esac;;
27596esac
John Criswell12399a12003-09-30 15:55:44 +000027597
27598
27599 cd $ac_dir
27600
27601 # Check for guested configure; otherwise get Cygnus style configure.
27602 if test -f $ac_srcdir/configure.gnu; then
27603 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
27604 elif test -f $ac_srcdir/configure; then
27605 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
27606 elif test -f $ac_srcdir/configure.in; then
27607 ac_sub_configure=$ac_configure
27608 else
27609 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27610echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27611 ac_sub_configure=
27612 fi
27613
27614 # The recursion is here.
27615 if test -n "$ac_sub_configure"; then
27616 # Make the cache file name correct relative to the subdirectory.
27617 case $cache_file in
27618 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27619 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027620 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000027621 esac
27622
27623 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27624echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27625 # The eval makes quoting arguments work.
27626 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027627 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
27628 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000027629echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27630 { (exit 1); exit 1; }; }
27631 fi
27632
27633 cd $ac_popdir
27634 done
27635fi
27636
Brian Gaekef3b24102003-11-16 18:38:14 +000027637
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027638if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
27639 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027640echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027641 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027642echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027643 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027644echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027645 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027646echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027647 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027648echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027649 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000027650echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
27651fi