blob: ce5639834503d2cd0e8d1375adbd03a5d0f2784a [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Chris Lattner95f45c52004-04-14 16:32:09 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
Chris Lattner95f45c52004-04-14 16:32:09 +0000425PACKAGE_VERSION='[1.3]'
426PACKAGE_STRING='[LLVM] [1.3]'
John Criswell7a73b802003-06-30 21:59:07 +0000427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell33a911a2003-11-25 20:36:46 +0000429ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444# include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449# include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460# include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_unique_file=""Makefile.config.in""
John Criswell7ed43ad2004-07-19 16:12:29 +0000468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000469ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806done
807
808if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881else
882 ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CXX_set=${CXX+set}
910ac_env_CXX_value=$CXX
911ac_cv_env_CXX_set=${CXX+set}
912ac_cv_env_CXX_value=$CXX
913ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914ac_env_CXXFLAGS_value=$CXXFLAGS
915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CC_set=${CC+set}
926ac_env_CC_value=$CC
927ac_cv_env_CC_set=${CC+set}
928ac_cv_env_CC_value=$CC
929ac_env_CFLAGS_set=${CFLAGS+set}
930ac_env_CFLAGS_value=$CFLAGS
931ac_cv_env_CFLAGS_set=${CFLAGS+set}
932ac_cv_env_CFLAGS_value=$CFLAGS
933ac_env_CPP_set=${CPP+set}
934ac_env_CPP_value=$CPP
935ac_cv_env_CPP_set=${CPP+set}
936ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
956 cat <<_ACEOF
Chris Lattner95f45c52004-04-14 16:32:09 +0000957\`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE. See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979 cat <<_ACEOF
980Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
982 [$ac_default_prefix]
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984 [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1006_ACEOF
1007
1008 cat <<\_ACEOF
1009
1010System types:
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1013 --target=TARGET configure for building compilers for TARGET [HOST]
1014_ACEOF
1015fi
1016
1017if test -n "$ac_init_help"; then
1018 case $ac_init_help in
Chris Lattner95f45c52004-04-14 16:32:09 +00001019 short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
John Criswell7a73b802003-06-30 21:59:07 +00001020 esac
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001026 --enable-shared[=PKGS]
1027 build shared libraries [default=yes]
1028 --enable-static[=PKGS]
1029 build static libraries [default=yes]
1030 --enable-fast-install[=PKGS]
1031 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001032 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
Brian Gaekee773b862004-04-16 17:13:44 +00001034 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1035 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1036 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
Chris Lattner95f45c52004-04-14 16:32:09 +00001134[LLVM] configure [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
Chris Lattner95f45c52004-04-14 16:32:09 +00001149It was created by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$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 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell33a911a2003-11-25 20:36:46 +00001522for i in `ls ${srcdir}/projects`
1523do
1524 if test ${i} != "CVS"
1525 then
John Criswell2f2741b2003-12-12 20:15:23 +00001526 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001527 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001528
1529
John Criswell33a911a2003-11-25 20:36:46 +00001530subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001531
John Criswell33a911a2003-11-25 20:36:46 +00001532 fi
1533 fi
1534done
John Criswell559a6c12003-09-30 16:31:48 +00001535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswellf424d742003-10-07 21:13:47 +00001556 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1557
1558
1559 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell8a54a1e2004-06-22 21:35:10 +00001568 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell878be7d2004-02-24 21:43:38 +00001607 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell613758d2003-09-11 18:03:50 +00001616 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1617
1618
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001619 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1620
1621
John Criswellcf2e9f72004-02-10 22:36:35 +00001622 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
Misha Brukman811ce9f2003-11-12 22:16:51 +00001631 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1665
1666
1667 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001676 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
Brian Gaekec45be042003-10-07 06:01:34 +00001682 ac_config_commands="$ac_config_commands utils/Makefile"
1683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell392aaa32003-07-22 19:18:09 +00001688
John Criswell7a73b802003-06-30 21:59:07 +00001689# Find a good install program. We prefer a C program (faster),
1690# so one script is as good as another. But avoid the broken or
1691# incompatible versions:
1692# SysV /etc/install, /usr/sbin/install
1693# SunOS /usr/etc/install
1694# IRIX /sbin/install
1695# AIX /bin/install
1696# AmigaOS /C/install, which installs bootblocks on floppy discs
1697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700# ./install, which can be erroneously created by make from ./install.sh.
1701echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1702echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1703if test -z "$INSTALL"; then
1704if test "${ac_cv_path_install+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 # Account for people who put trailing slashes in PATH elements.
1713case $as_dir/ in
1714 ./ | .// | /cC/* | \
1715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1716 /usr/ucb/* ) ;;
1717 *)
1718 # OSF1 and SCO ODT 3.0 have their own names for install.
1719 # Don't use installbsd from OSF since it installs stuff as root
1720 # by default.
1721 for ac_prog in ginstall scoinst install; do
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1724 if test $ac_prog = install &&
1725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1726 # AIX install. It has an incompatible calling convention.
1727 :
1728 elif test $ac_prog = install &&
1729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730 # program-specific install script used by HP pwplus--don't use.
1731 :
1732 else
1733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1734 break 3
1735 fi
1736 fi
1737 done
1738 done
1739 ;;
1740esac
1741done
1742
1743
1744fi
1745 if test "${ac_cv_path_install+set}" = set; then
1746 INSTALL=$ac_cv_path_install
1747 else
1748 # As a last resort, use the slow shell script. We don't cache a
1749 # path for INSTALL within a source directory, because that will
1750 # break other packages using the cache if that directory is
1751 # removed, or if the path is relative.
1752 INSTALL=$ac_install_sh
1753 fi
1754fi
1755echo "$as_me:$LINENO: result: $INSTALL" >&5
1756echo "${ECHO_T}$INSTALL" >&6
1757
1758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1759# It thinks the first close brace ends the variable substitution.
1760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1761
1762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1763
1764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1765
1766
1767# Make sure we can run config.sub.
1768$ac_config_sub sun4 >/dev/null 2>&1 ||
1769 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1770echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773echo "$as_me:$LINENO: checking build system type" >&5
1774echo $ECHO_N "checking build system type... $ECHO_C" >&6
1775if test "${ac_cv_build+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777else
1778 ac_cv_build_alias=$build_alias
1779test -z "$ac_cv_build_alias" &&
1780 ac_cv_build_alias=`$ac_config_guess`
1781test -z "$ac_cv_build_alias" &&
1782 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1783echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1784 { (exit 1); exit 1; }; }
1785ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1786 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1787echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1789
1790fi
1791echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1792echo "${ECHO_T}$ac_cv_build" >&6
1793build=$ac_cv_build
1794build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799echo "$as_me:$LINENO: checking host system type" >&5
1800echo $ECHO_N "checking host system type... $ECHO_C" >&6
1801if test "${ac_cv_host+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804 ac_cv_host_alias=$host_alias
1805test -z "$ac_cv_host_alias" &&
1806 ac_cv_host_alias=$ac_cv_build_alias
1807ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1808 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1809echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1810 { (exit 1); exit 1; }; }
1811
1812fi
1813echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1814echo "${ECHO_T}$ac_cv_host" >&6
1815host=$ac_cv_host
1816host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1817host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1818host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1819
1820
1821echo "$as_me:$LINENO: checking target system type" >&5
1822echo $ECHO_N "checking target system type... $ECHO_C" >&6
1823if test "${ac_cv_target+set}" = set; then
1824 echo $ECHO_N "(cached) $ECHO_C" >&6
1825else
1826 ac_cv_target_alias=$target_alias
1827test "x$ac_cv_target_alias" = "x" &&
1828 ac_cv_target_alias=$ac_cv_host_alias
1829ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1830 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1831echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1832 { (exit 1); exit 1; }; }
1833
1834fi
1835echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1836echo "${ECHO_T}$ac_cv_target" >&6
1837target=$ac_cv_target
1838target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1839target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1840target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1841
1842
1843# The aliases save the names the user supplied, while $host etc.
1844# will get canonicalized.
1845test -n "$target_alias" &&
1846 test "$program_prefix$program_suffix$program_transform_name" = \
1847 NONENONEs,x,x, &&
1848 program_prefix=${target_alias}-
1849
1850case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001851 *-*-linux*)
1852 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001853
Brian Gaekef3b24102003-11-16 18:38:14 +00001854 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1855 then
1856 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001857
Brian Gaekef3b24102003-11-16 18:38:14 +00001858 fi
John Criswell7a73b802003-06-30 21:59:07 +00001859 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001860 *-*-solaris*)
1861 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001862
Brian Gaekef3b24102003-11-16 18:38:14 +00001863 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1864 then
1865 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001866
Brian Gaekef3b24102003-11-16 18:38:14 +00001867 fi
John Criswell7a73b802003-06-30 21:59:07 +00001868 ;;
John Criswelld6621562004-06-07 14:26:24 +00001869 *-*-cygwin*)
1870 OS=Cygwin
1871
1872 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001873 *-*-darwin*)
1874 OS=Darwin
1875
1876 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001877 *-*-aix*)
1878 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001879
Misha Brukmandb84a092004-06-22 15:35:32 +00001880 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001881 *) OS=Unknown
1882
1883 ;;
1884esac
1885
1886case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001887 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001888
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001889 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001890esac
1891
John Criswell76595452003-07-01 22:07:39 +00001892case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001894
1895 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001896 sparc*-*) ARCH=Sparc
1897
1898 ;;
1899 powerpc*-*) ARCH=PowerPC
1900
1901 ;;
1902 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001903
1904 ;;
1905esac
1906
John Criswell7a73b802003-06-30 21:59:07 +00001907ac_ext=cc
1908ac_cpp='$CXXCPP $CPPFLAGS'
1909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1912if test -n "$ac_tool_prefix"; then
1913 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1914 do
1915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919if test "${ac_cv_prog_CXX+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922 if test -n "$CXX"; then
1923 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936done
1937done
1938
1939fi
1940fi
1941CXX=$ac_cv_prog_CXX
1942if test -n "$CXX"; then
1943 echo "$as_me:$LINENO: result: $CXX" >&5
1944echo "${ECHO_T}$CXX" >&6
1945else
1946 echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950 test -n "$CXX" && break
1951 done
1952fi
1953if test -z "$CXX"; then
1954 ac_ct_CXX=$CXX
1955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1956do
1957 # Extract the first word of "$ac_prog", so it can be a program name with args.
1958set dummy $ac_prog; ac_word=$2
1959echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$ac_ct_CXX"; then
1965 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1966else
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_ac_ct_CXX="$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1977 fi
1978done
1979done
1980
1981fi
1982fi
1983ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1984if test -n "$ac_ct_CXX"; then
1985 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1986echo "${ECHO_T}$ac_ct_CXX" >&6
1987else
1988 echo "$as_me:$LINENO: result: no" >&5
1989echo "${ECHO_T}no" >&6
1990fi
1991
1992 test -n "$ac_ct_CXX" && break
1993done
1994test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1995
1996 CXX=$ac_ct_CXX
1997fi
1998
1999
2000# Provide some information about the compiler.
2001echo "$as_me:$LINENO:" \
2002 "checking for C++ compiler version" >&5
2003ac_compiler=`set X $ac_compile; echo $2`
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2005 (eval $ac_compiler --version </dev/null >&5) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2010 (eval $ac_compiler -v </dev/null >&5) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }
2014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2015 (eval $ac_compiler -V </dev/null >&5) 2>&5
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2019
2020cat >conftest.$ac_ext <<_ACEOF
2021#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002022/* confdefs.h. */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002027
John Criswell7a73b802003-06-30 21:59:07 +00002028int
2029main ()
2030{
2031
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002037ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002038# Try to create an executable without -o first, disregard a.out.
2039# It will help us diagnose broken compilers, and finding out an intuition
2040# of exeext.
2041echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2042echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2043ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2045 (eval $ac_link_default) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; then
2049 # Find the output, starting from the most likely. This scheme is
2050# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2051# resort.
2052
2053# Be careful to initialize this variable, since it used to be cached.
2054# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2055ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002056# b.out is created by i960 compilers.
2057for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2058do
2059 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002060 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2062 ;;
2063 conftest.$ac_ext )
2064 # This is the source file.
2065 ;;
2066 [ab].out )
2067 # We found the default executable, but exeext='' is most
2068 # certainly right.
2069 break;;
2070 *.* )
2071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2072 # FIXME: I believe we export ac_cv_exeext for Libtool,
2073 # but it would be cool to find out if it's true. Does anybody
2074 # maintain Libtool? --akim.
2075 export ac_cv_exeext
2076 break;;
2077 * )
2078 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002079 esac
2080done
2081else
2082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2086See \`config.log' for more details." >&5
2087echo "$as_me: error: C++ compiler cannot create executables
2088See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002089 { (exit 77); exit 77; }; }
2090fi
2091
2092ac_exeext=$ac_cv_exeext
2093echo "$as_me:$LINENO: result: $ac_file" >&5
2094echo "${ECHO_T}$ac_file" >&6
2095
2096# Check the compiler produces executables we can run. If not, either
2097# the compiler is broken, or we cross compile.
2098echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2099echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2100# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2101# If not cross compiling, check that we can run a simple program.
2102if test "$cross_compiling" != yes; then
2103 if { ac_try='./$ac_file'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 (eval $ac_try) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 cross_compiling=no
2110 else
2111 if test "$cross_compiling" = maybe; then
2112 cross_compiling=yes
2113 else
2114 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002115If you meant to cross compile, use \`--host'.
2116See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002117echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002118If you meant to cross compile, use \`--host'.
2119See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002120 { (exit 1); exit 1; }; }
2121 fi
2122 fi
2123fi
2124echo "$as_me:$LINENO: result: yes" >&5
2125echo "${ECHO_T}yes" >&6
2126
John Criswell0c38eaf2003-09-10 15:17:25 +00002127rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002128ac_clean_files=$ac_clean_files_save
2129# Check the compiler produces executables we can run. If not, either
2130# the compiler is broken, or we cross compile.
2131echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2132echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2133echo "$as_me:$LINENO: result: $cross_compiling" >&5
2134echo "${ECHO_T}$cross_compiling" >&6
2135
2136echo "$as_me:$LINENO: checking for suffix of executables" >&5
2137echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2139 (eval $ac_link) 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2144# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2145# work properly (i.e., refer to `conftest.exe'), while it won't with
2146# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002147for ac_file in conftest.exe conftest conftest.*; do
2148 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002149 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002151 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2152 export ac_cv_exeext
2153 break;;
2154 * ) break;;
2155 esac
2156done
2157else
John Criswell0c38eaf2003-09-10 15:17:25 +00002158 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2161See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002162 { (exit 1); exit 1; }; }
2163fi
2164
2165rm -f conftest$ac_cv_exeext
2166echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2167echo "${ECHO_T}$ac_cv_exeext" >&6
2168
2169rm -f conftest.$ac_ext
2170EXEEXT=$ac_cv_exeext
2171ac_exeext=$EXEEXT
2172echo "$as_me:$LINENO: checking for suffix of object files" >&5
2173echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2174if test "${ac_cv_objext+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 cat >conftest.$ac_ext <<_ACEOF
2178#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002179/* confdefs.h. */
2180_ACEOF
2181cat confdefs.h >>conftest.$ac_ext
2182cat >>conftest.$ac_ext <<_ACEOF
2183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002184
John Criswell7a73b802003-06-30 21:59:07 +00002185int
2186main ()
2187{
2188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193rm -f conftest.o conftest.obj
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2200 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2203 break;;
2204 esac
2205done
2206else
2207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: cannot compute suffix of object files: cannot compile
2213See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 1); exit 1; }; }
2215fi
2216
2217rm -f conftest.$ac_cv_objext conftest.$ac_ext
2218fi
2219echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220echo "${ECHO_T}$ac_cv_objext" >&6
2221OBJEXT=$ac_cv_objext
2222ac_objext=$OBJEXT
2223echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2224echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2225if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228 cat >conftest.$ac_ext <<_ACEOF
2229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002230/* confdefs.h. */
2231_ACEOF
2232cat confdefs.h >>conftest.$ac_ext
2233cat >>conftest.$ac_ext <<_ACEOF
2234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002235
John Criswell7a73b802003-06-30 21:59:07 +00002236int
2237main ()
2238{
2239#ifndef __GNUC__
2240 choke me
2241#endif
2242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_compiler_gnu=yes
2260else
2261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002262sed 's/^/| /' conftest.$ac_ext >&5
2263
John Criswell7a73b802003-06-30 21:59:07 +00002264ac_compiler_gnu=no
2265fi
2266rm -f conftest.$ac_objext conftest.$ac_ext
2267ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2268
2269fi
2270echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2271echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2272GXX=`test $ac_compiler_gnu = yes && echo yes`
2273ac_test_CXXFLAGS=${CXXFLAGS+set}
2274ac_save_CXXFLAGS=$CXXFLAGS
2275CXXFLAGS="-g"
2276echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2277echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2278if test "${ac_cv_prog_cxx_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 cat >conftest.$ac_ext <<_ACEOF
2282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002283/* confdefs.h. */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002288
John Criswell7a73b802003-06-30 21:59:07 +00002289int
2290main ()
2291{
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297rm -f conftest.$ac_objext
2298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 ac_cv_prog_cxx_g=yes
2310else
2311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002312sed 's/^/| /' conftest.$ac_ext >&5
2313
John Criswell7a73b802003-06-30 21:59:07 +00002314ac_cv_prog_cxx_g=no
2315fi
2316rm -f conftest.$ac_objext conftest.$ac_ext
2317fi
2318echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2319echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2320if test "$ac_test_CXXFLAGS" = set; then
2321 CXXFLAGS=$ac_save_CXXFLAGS
2322elif test $ac_cv_prog_cxx_g = yes; then
2323 if test "$GXX" = yes; then
2324 CXXFLAGS="-g -O2"
2325 else
2326 CXXFLAGS="-g"
2327 fi
2328else
2329 if test "$GXX" = yes; then
2330 CXXFLAGS="-O2"
2331 else
2332 CXXFLAGS=
2333 fi
2334fi
2335for ac_declaration in \
2336 ''\
2337 '#include <stdlib.h>' \
2338 'extern "C" void std::exit (int) throw (); using std::exit;' \
2339 'extern "C" void std::exit (int); using std::exit;' \
2340 'extern "C" void exit (int) throw ();' \
2341 'extern "C" void exit (int);' \
2342 'void exit (int);'
2343do
2344 cat >conftest.$ac_ext <<_ACEOF
2345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002346/* confdefs.h. */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002351#include <stdlib.h>
2352$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002353int
2354main ()
2355{
2356exit (42);
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2373 :
2374else
2375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002376sed 's/^/| /' conftest.$ac_ext >&5
2377
John Criswell7a73b802003-06-30 21:59:07 +00002378continue
2379fi
2380rm -f conftest.$ac_objext conftest.$ac_ext
2381 cat >conftest.$ac_ext <<_ACEOF
2382#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002388$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002389int
2390main ()
2391{
2392exit (42);
2393 ;
2394 return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 break
2410else
2411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002412sed 's/^/| /' conftest.$ac_ext >&5
2413
John Criswell7a73b802003-06-30 21:59:07 +00002414fi
2415rm -f conftest.$ac_objext conftest.$ac_ext
2416done
2417rm -f conftest*
2418if test -n "$ac_declaration"; then
2419 echo '#ifdef __cplusplus' >>confdefs.h
2420 echo $ac_declaration >>confdefs.h
2421 echo '#endif' >>confdefs.h
2422fi
2423
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430ac_ext=c
2431ac_cpp='$CPP $CPPFLAGS'
2432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435if test -n "$ac_tool_prefix"; then
2436 for ac_prog in gcc
2437 do
2438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
2461
2462fi
2463fi
2464CC=$ac_cv_prog_CC
2465if test -n "$CC"; then
2466 echo "$as_me:$LINENO: result: $CC" >&5
2467echo "${ECHO_T}$CC" >&6
2468else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471fi
2472
2473 test -n "$CC" && break
2474 done
2475fi
2476if test -z "$CC"; then
2477 ac_ct_CC=$CC
2478 for ac_prog in gcc
2479do
2480 # Extract the first word of "$ac_prog", so it can be a program name with args.
2481set dummy $ac_prog; ac_word=$2
2482echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 if test -n "$ac_ct_CC"; then
2488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_ac_ct_CC="$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502done
2503
2504fi
2505fi
2506ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507if test -n "$ac_ct_CC"; then
2508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509echo "${ECHO_T}$ac_ct_CC" >&6
2510else
2511 echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6
2513fi
2514
2515 test -n "$ac_ct_CC" && break
2516done
2517
2518 CC=$ac_ct_CC
2519fi
2520
2521
John Criswell0c38eaf2003-09-10 15:17:25 +00002522test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2523See \`config.log' for more details." >&5
2524echo "$as_me: error: no acceptable C compiler found in \$PATH
2525See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002526 { (exit 1); exit 1; }; }
2527
2528# Provide some information about the compiler.
2529echo "$as_me:$LINENO:" \
2530 "checking for C compiler version" >&5
2531ac_compiler=`set X $ac_compile; echo $2`
2532{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2533 (eval $ac_compiler --version </dev/null >&5) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2538 (eval $ac_compiler -v </dev/null >&5) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }
2542{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2543 (eval $ac_compiler -V </dev/null >&5) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }
2547
2548echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2549echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2550if test "${ac_cv_c_compiler_gnu+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 cat >conftest.$ac_ext <<_ACEOF
2554#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002555/* confdefs.h. */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002560
John Criswell7a73b802003-06-30 21:59:07 +00002561int
2562main ()
2563{
2564#ifndef __GNUC__
2565 choke me
2566#endif
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_compiler_gnu=yes
2585else
2586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002587sed 's/^/| /' conftest.$ac_ext >&5
2588
John Criswell7a73b802003-06-30 21:59:07 +00002589ac_compiler_gnu=no
2590fi
2591rm -f conftest.$ac_objext conftest.$ac_ext
2592ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593
2594fi
2595echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597GCC=`test $ac_compiler_gnu = yes && echo yes`
2598ac_test_CFLAGS=${CFLAGS+set}
2599ac_save_CFLAGS=$CFLAGS
2600CFLAGS="-g"
2601echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603if test "${ac_cv_prog_cc_g+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 cat >conftest.$ac_ext <<_ACEOF
2607#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002608/* confdefs.h. */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002613
John Criswell7a73b802003-06-30 21:59:07 +00002614int
2615main ()
2616{
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624 (eval $ac_compile) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 ac_cv_prog_cc_g=yes
2635else
2636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002637sed 's/^/| /' conftest.$ac_ext >&5
2638
John Criswell7a73b802003-06-30 21:59:07 +00002639ac_cv_prog_cc_g=no
2640fi
2641rm -f conftest.$ac_objext conftest.$ac_ext
2642fi
2643echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2645if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2649 CFLAGS="-g -O2"
2650 else
2651 CFLAGS="-g"
2652 fi
2653else
2654 if test "$GCC" = yes; then
2655 CFLAGS="-O2"
2656 else
2657 CFLAGS=
2658 fi
2659fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002660echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2661echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2662if test "${ac_cv_prog_cc_stdc+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664else
2665 ac_cv_prog_cc_stdc=no
2666ac_save_CC=$CC
2667cat >conftest.$ac_ext <<_ACEOF
2668#line $LINENO "configure"
2669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
2674#include <stdarg.h>
2675#include <stdio.h>
2676#include <sys/types.h>
2677#include <sys/stat.h>
2678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679struct buf { int x; };
2680FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681static char *e (p, i)
2682 char **p;
2683 int i;
2684{
2685 return p[i];
2686}
2687static char *f (char * (*g) (char **, int), char **p, ...)
2688{
2689 char *s;
2690 va_list v;
2691 va_start (v,p);
2692 s = g (p, va_arg (v,int));
2693 va_end (v);
2694 return s;
2695}
2696int test (int i, double x);
2697struct s1 {int (*f) (int a);};
2698struct s2 {int (*f) (double a);};
2699int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2700int argc;
2701char **argv;
2702int
2703main ()
2704{
2705return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2706 ;
2707 return 0;
2708}
2709_ACEOF
2710# Don't try gcc -ansi; that turns off useful extensions and
2711# breaks some systems' header files.
2712# AIX -qlanglvl=ansi
2713# Ultrix and OSF/1 -std1
2714# HP-UX 10.20 and later -Ae
2715# HP-UX older versions -Aa -D_HPUX_SOURCE
2716# SVR4 -Xc -D__EXTENSIONS__
2717for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2718do
2719 CC="$ac_save_CC $ac_arg"
2720 rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_stdc=$ac_arg
2733break
2734else
2735 echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.$ac_objext
2740done
2741rm -f conftest.$ac_ext conftest.$ac_objext
2742CC=$ac_save_CC
2743
2744fi
2745
2746case "x$ac_cv_prog_cc_stdc" in
2747 x|xno)
2748 echo "$as_me:$LINENO: result: none needed" >&5
2749echo "${ECHO_T}none needed" >&6 ;;
2750 *)
2751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2752echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2753 CC="$CC $ac_cv_prog_cc_stdc" ;;
2754esac
2755
John Criswell7a73b802003-06-30 21:59:07 +00002756# Some people use a C++ compiler to compile C. Since we use `exit',
2757# in C++ we need to declare it. In case someone uses the same compiler
2758# for both compiling C and C++ we need to have the C++ compiler decide
2759# the declaration of exit, since it's the most demanding environment.
2760cat >conftest.$ac_ext <<_ACEOF
2761#ifndef __cplusplus
2762 choke me
2763#endif
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2777 for ac_declaration in \
2778 ''\
2779 '#include <stdlib.h>' \
2780 'extern "C" void std::exit (int) throw (); using std::exit;' \
2781 'extern "C" void std::exit (int); using std::exit;' \
2782 'extern "C" void exit (int) throw ();' \
2783 'extern "C" void exit (int);' \
2784 'void exit (int);'
2785do
2786 cat >conftest.$ac_ext <<_ACEOF
2787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002793#include <stdlib.h>
2794$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002795int
2796main ()
2797{
2798exit (42);
2799 ;
2800 return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext
2804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 :
2816else
2817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
John Criswell7a73b802003-06-30 21:59:07 +00002820continue
2821fi
2822rm -f conftest.$ac_objext conftest.$ac_ext
2823 cat >conftest.$ac_ext <<_ACEOF
2824#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002825/* confdefs.h. */
2826_ACEOF
2827cat confdefs.h >>conftest.$ac_ext
2828cat >>conftest.$ac_ext <<_ACEOF
2829/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002830$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002831int
2832main ()
2833{
2834exit (42);
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839rm -f conftest.$ac_objext
2840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 break
2852else
2853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002854sed 's/^/| /' conftest.$ac_ext >&5
2855
John Criswell7a73b802003-06-30 21:59:07 +00002856fi
2857rm -f conftest.$ac_objext conftest.$ac_ext
2858done
2859rm -f conftest*
2860if test -n "$ac_declaration"; then
2861 echo '#ifdef __cplusplus' >>confdefs.h
2862 echo $ac_declaration >>confdefs.h
2863 echo '#endif' >>confdefs.h
2864fi
2865
2866else
2867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002868sed 's/^/| /' conftest.$ac_ext >&5
2869
John Criswell7a73b802003-06-30 21:59:07 +00002870fi
2871rm -f conftest.$ac_objext conftest.$ac_ext
2872ac_ext=c
2873ac_cpp='$CPP $CPPFLAGS'
2874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
2878ac_ext=c
2879ac_cpp='$CPP $CPPFLAGS'
2880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2884echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2885# On Suns, sometimes $CPP names a directory.
2886if test -n "$CPP" && test -d "$CPP"; then
2887 CPP=
2888fi
2889if test -z "$CPP"; then
2890 if test "${ac_cv_prog_CPP+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
2893 # Double quotes because CPP needs to be expanded
2894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895 do
2896 ac_preproc_ok=false
2897for ac_c_preproc_warn_flag in '' yes
2898do
2899 # Use a header file that comes with gcc, so configuring glibc
2900 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2902 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002903 # On the NeXT, cc -E runs the code through the compiler's parser,
2904 # not just through cpp. "Syntax error" is here to catch this case.
2905 cat >conftest.$ac_ext <<_ACEOF
2906#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002907/* confdefs.h. */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h. */
2912#ifdef __STDC__
2913# include <limits.h>
2914#else
2915# include <assert.h>
2916#endif
John Criswell7a73b802003-06-30 21:59:07 +00002917 Syntax error
2918_ACEOF
2919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002922 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2929 else
2930 ac_cpp_err=
2931 fi
2932else
2933 ac_cpp_err=yes
2934fi
2935if test -z "$ac_cpp_err"; then
2936 :
2937else
2938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002939sed 's/^/| /' conftest.$ac_ext >&5
2940
John Criswell7a73b802003-06-30 21:59:07 +00002941 # Broken: fails on valid input.
2942continue
2943fi
2944rm -f conftest.err conftest.$ac_ext
2945
2946 # OK, works on sane cases. Now check whether non-existent headers
2947 # can be detected and how.
2948 cat >conftest.$ac_ext <<_ACEOF
2949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002955#include <ac_nonexistent.h>
2956_ACEOF
2957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002960 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } >/dev/null; then
2965 if test -s conftest.err; then
2966 ac_cpp_err=$ac_c_preproc_warn_flag
2967 else
2968 ac_cpp_err=
2969 fi
2970else
2971 ac_cpp_err=yes
2972fi
2973if test -z "$ac_cpp_err"; then
2974 # Broken: success on invalid input.
2975continue
2976else
2977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002978sed 's/^/| /' conftest.$ac_ext >&5
2979
John Criswell7a73b802003-06-30 21:59:07 +00002980 # Passes both tests.
2981ac_preproc_ok=:
2982break
2983fi
2984rm -f conftest.err conftest.$ac_ext
2985
2986done
2987# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988rm -f conftest.err conftest.$ac_ext
2989if $ac_preproc_ok; then
2990 break
2991fi
2992
2993 done
2994 ac_cv_prog_CPP=$CPP
2995
2996fi
2997 CPP=$ac_cv_prog_CPP
2998else
2999 ac_cv_prog_CPP=$CPP
3000fi
3001echo "$as_me:$LINENO: result: $CPP" >&5
3002echo "${ECHO_T}$CPP" >&6
3003ac_preproc_ok=false
3004for ac_c_preproc_warn_flag in '' yes
3005do
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#ifdef __STDC__
3020# include <limits.h>
3021#else
3022# include <assert.h>
3023#endif
John Criswell7a73b802003-06-30 21:59:07 +00003024 Syntax error
3025_ACEOF
3026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003029 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3036 else
3037 ac_cpp_err=
3038 fi
3039else
3040 ac_cpp_err=yes
3041fi
3042if test -z "$ac_cpp_err"; then
3043 :
3044else
3045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003046sed 's/^/| /' conftest.$ac_ext >&5
3047
John Criswell7a73b802003-06-30 21:59:07 +00003048 # Broken: fails on valid input.
3049continue
3050fi
3051rm -f conftest.err conftest.$ac_ext
3052
3053 # OK, works on sane cases. Now check whether non-existent headers
3054 # can be detected and how.
3055 cat >conftest.$ac_ext <<_ACEOF
3056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003057/* confdefs.h. */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003062#include <ac_nonexistent.h>
3063_ACEOF
3064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003067 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3074 else
3075 ac_cpp_err=
3076 fi
3077else
3078 ac_cpp_err=yes
3079fi
3080if test -z "$ac_cpp_err"; then
3081 # Broken: success on invalid input.
3082continue
3083else
3084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003085sed 's/^/| /' conftest.$ac_ext >&5
3086
John Criswell7a73b802003-06-30 21:59:07 +00003087 # Passes both tests.
3088ac_preproc_ok=:
3089break
3090fi
3091rm -f conftest.err conftest.$ac_ext
3092
3093done
3094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095rm -f conftest.err conftest.$ac_ext
3096if $ac_preproc_ok; then
3097 :
3098else
John Criswell0c38eaf2003-09-10 15:17:25 +00003099 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3100See \`config.log' for more details." >&5
3101echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3102See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003103 { (exit 1); exit 1; }; }
3104fi
3105
3106ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111
3112
3113if test "$GCC" != "yes"
3114then
3115 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3116echo "$as_me: error: gcc required but not found" >&2;}
3117 { (exit 1); exit 1; }; }
3118fi
John Criswell7a73b802003-06-30 21:59:07 +00003119if test "$GXX" != "yes"
3120then
3121 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3122echo "$as_me: error: g++ required but not found" >&2;}
3123 { (exit 1); exit 1; }; }
3124fi
3125
John Criswellde00db22003-08-25 16:49:54 +00003126gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3127if test "$gccmajor" -lt "3"
3128then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003129 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3130echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003131 { (exit 1); exit 1; }; }
3132fi
3133
John Criswell7a73b802003-06-30 21:59:07 +00003134 echo "$as_me:$LINENO: checking for GNU make" >&5
3135echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3136if test "${_cv_gnu_make_command+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139 _cv_gnu_make_command='' ;
3140 for a in "$MAKE" make gmake gnumake ; do
3141 if test -z "$a" ; then continue ; fi ;
3142 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3143 _cv_gnu_make_command=$a ;
3144 break;
3145 fi
3146 done ;
3147
3148fi
3149echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3150echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3151 if test "x$_cv_gnu_make_command" != "x" ; then
3152 ifGNUmake='' ;
3153 else
3154 ifGNUmake='#' ;
3155 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3156echo "${ECHO_T}\"Not found\"" >&6;
3157 fi
3158
3159
3160if test -z "$_cv_gnu_make_command"
3161then
3162 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3163echo "$as_me: error: GNU Make required but not found" >&2;}
3164 { (exit 1); exit 1; }; }
3165fi
3166
3167
3168echo "$as_me:$LINENO: checking " >&5
3169echo $ECHO_N "checking ... $ECHO_C" >&6
3170if test "${ac_cv_has_flex+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 for ac_prog in flex lex
3174do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177echo "$as_me:$LINENO: checking for $ac_word" >&5
3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179if test "${ac_cv_prog_LEX+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182 if test -n "$LEX"; then
3183 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_LEX="$ac_prog"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3195 fi
3196done
3197done
3198
3199fi
3200fi
3201LEX=$ac_cv_prog_LEX
3202if test -n "$LEX"; then
3203 echo "$as_me:$LINENO: result: $LEX" >&5
3204echo "${ECHO_T}$LEX" >&6
3205else
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208fi
3209
3210 test -n "$LEX" && break
3211done
3212test -n "$LEX" || LEX=":"
3213
3214if test -z "$LEXLIB"
3215then
3216 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3217echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3218if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_check_lib_save_LIBS=$LIBS
3222LIBS="-lfl $LIBS"
3223cat >conftest.$ac_ext <<_ACEOF
3224#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003225/* confdefs.h. */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003230
3231/* Override any gcc2 internal prototype to avoid an error. */
3232#ifdef __cplusplus
3233extern "C"
3234#endif
3235/* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3237char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003238int
3239main ()
3240{
3241yywrap ();
3242 ;
3243 return 0;
3244}
3245_ACEOF
3246rm -f conftest.$ac_objext conftest$ac_exeext
3247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3248 (eval $ac_link) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest$ac_exeext'
3253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 (eval $ac_try) 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_lib_fl_yywrap=yes
3259else
3260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003261sed 's/^/| /' conftest.$ac_ext >&5
3262
John Criswell7a73b802003-06-30 21:59:07 +00003263ac_cv_lib_fl_yywrap=no
3264fi
3265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3266LIBS=$ac_check_lib_save_LIBS
3267fi
3268echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3269echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3270if test $ac_cv_lib_fl_yywrap = yes; then
3271 LEXLIB="-lfl"
3272else
3273 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3274echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3275if test "${ac_cv_lib_l_yywrap+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 ac_check_lib_save_LIBS=$LIBS
3279LIBS="-ll $LIBS"
3280cat >conftest.$ac_ext <<_ACEOF
3281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003287
3288/* Override any gcc2 internal prototype to avoid an error. */
3289#ifdef __cplusplus
3290extern "C"
3291#endif
3292/* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3294char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003295int
3296main ()
3297{
3298yywrap ();
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303rm -f conftest.$ac_objext conftest$ac_exeext
3304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 (eval $ac_link) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_lib_l_yywrap=yes
3316else
3317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003318sed 's/^/| /' conftest.$ac_ext >&5
3319
John Criswell7a73b802003-06-30 21:59:07 +00003320ac_cv_lib_l_yywrap=no
3321fi
3322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3323LIBS=$ac_check_lib_save_LIBS
3324fi
3325echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3326echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3327if test $ac_cv_lib_l_yywrap = yes; then
3328 LEXLIB="-ll"
3329fi
3330
3331fi
3332
3333fi
3334
3335if test "x$LEX" != "x:"; then
3336 echo "$as_me:$LINENO: checking lex output file root" >&5
3337echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3338if test "${ac_cv_prog_lex_root+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 # The minimal lex program is just a single line: %%. But some broken lexes
3342# (Solaris, I think it was) want two %% lines, so accommodate them.
3343cat >conftest.l <<_ACEOF
3344%%
3345%%
3346_ACEOF
3347{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3348 (eval $LEX conftest.l) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }
3352if test -f lex.yy.c; then
3353 ac_cv_prog_lex_root=lex.yy
3354elif test -f lexyy.c; then
3355 ac_cv_prog_lex_root=lexyy
3356else
3357 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3358echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3359 { (exit 1); exit 1; }; }
3360fi
3361fi
3362echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3363echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3364rm -f conftest.l
3365LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3366
3367echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3368echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3369if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372 # POSIX says lex can declare yytext either as a pointer or an array; the
3373# default is implementation-dependent. Figure out which it is, since
3374# not all implementations provide the %pointer and %array declarations.
3375ac_cv_prog_lex_yytext_pointer=no
3376echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3377ac_save_LIBS=$LIBS
3378LIBS="$LIBS $LEXLIB"
3379cat >conftest.$ac_ext <<_ACEOF
3380`cat $LEX_OUTPUT_ROOT.c`
3381_ACEOF
3382rm -f conftest.$ac_objext conftest$ac_exeext
3383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384 (eval $ac_link) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -s conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_lex_yytext_pointer=yes
3395else
3396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003397sed 's/^/| /' conftest.$ac_ext >&5
3398
John Criswell7a73b802003-06-30 21:59:07 +00003399fi
3400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3401LIBS=$ac_save_LIBS
3402rm -f "${LEX_OUTPUT_ROOT}.c"
3403
3404fi
3405echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3406echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3407if test $ac_cv_prog_lex_yytext_pointer = yes; then
3408
3409cat >>confdefs.h <<\_ACEOF
3410#define YYTEXT_POINTER 1
3411_ACEOF
3412
3413fi
3414
3415fi
3416
3417fi
3418echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3419echo "${ECHO_T}$ac_cv_has_flex" >&6
3420if test "$LEX" != "flex"; then
3421 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3422echo "$as_me: error: flex not found but required" >&2;}
3423 { (exit 1); exit 1; }; }
3424fi
3425
3426echo "$as_me:$LINENO: checking " >&5
3427echo $ECHO_N "checking ... $ECHO_C" >&6
3428if test "${ac_cv_has_bison+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431 for ac_prog in 'bison -y' byacc
3432do
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434set dummy $ac_prog; ac_word=$2
3435echo "$as_me:$LINENO: checking for $ac_word" >&5
3436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3437if test "${ac_cv_prog_YACC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440 if test -n "$YACC"; then
3441 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_YACC="$ac_prog"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454done
3455done
3456
3457fi
3458fi
3459YACC=$ac_cv_prog_YACC
3460if test -n "$YACC"; then
3461 echo "$as_me:$LINENO: result: $YACC" >&5
3462echo "${ECHO_T}$YACC" >&6
3463else
3464 echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6
3466fi
3467
3468 test -n "$YACC" && break
3469done
3470test -n "$YACC" || YACC="yacc"
3471
3472
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3475echo "${ECHO_T}$ac_cv_has_bison" >&6
3476if test "$YACC" != "bison -y"; then
3477 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3478echo "$as_me: error: bison not found but required" >&2;}
3479 { (exit 1); exit 1; }; }
3480else
Brian Gaeke12810632004-01-13 06:52:10 +00003481 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003482
3483fi
3484
John Criswell7a73b802003-06-30 21:59:07 +00003485# Check whether --enable-shared or --disable-shared was given.
3486if test "${enable_shared+set}" = set; then
3487 enableval="$enable_shared"
3488 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003489 case $enableval in
3490 yes) enable_shared=yes ;;
3491 no) enable_shared=no ;;
3492 *)
3493 enable_shared=no
3494 # Look at the argument we got. We use all the common list separators.
3495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3496 for pkg in $enableval; do
3497 IFS="$lt_save_ifs"
3498 if test "X$pkg" = "X$p"; then
3499 enable_shared=yes
3500 fi
3501 done
3502 IFS="$lt_save_ifs"
3503 ;;
3504 esac
John Criswell7a73b802003-06-30 21:59:07 +00003505else
3506 enable_shared=yes
3507fi;
John Criswell47fdd832003-07-14 16:52:07 +00003508
John Criswell7a73b802003-06-30 21:59:07 +00003509# Check whether --enable-static or --disable-static was given.
3510if test "${enable_static+set}" = set; then
3511 enableval="$enable_static"
3512 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003513 case $enableval in
3514 yes) enable_static=yes ;;
3515 no) enable_static=no ;;
3516 *)
3517 enable_static=no
3518 # Look at the argument we got. We use all the common list separators.
3519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3520 for pkg in $enableval; do
3521 IFS="$lt_save_ifs"
3522 if test "X$pkg" = "X$p"; then
3523 enable_static=yes
3524 fi
3525 done
3526 IFS="$lt_save_ifs"
3527 ;;
3528 esac
John Criswell7a73b802003-06-30 21:59:07 +00003529else
3530 enable_static=yes
3531fi;
John Criswell47fdd832003-07-14 16:52:07 +00003532
John Criswell7a73b802003-06-30 21:59:07 +00003533# Check whether --enable-fast-install or --disable-fast-install was given.
3534if test "${enable_fast_install+set}" = set; then
3535 enableval="$enable_fast_install"
3536 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003537 case $enableval in
3538 yes) enable_fast_install=yes ;;
3539 no) enable_fast_install=no ;;
3540 *)
3541 enable_fast_install=no
3542 # Look at the argument we got. We use all the common list separators.
3543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3544 for pkg in $enableval; do
3545 IFS="$lt_save_ifs"
3546 if test "X$pkg" = "X$p"; then
3547 enable_fast_install=yes
3548 fi
3549 done
3550 IFS="$lt_save_ifs"
3551 ;;
3552 esac
John Criswell7a73b802003-06-30 21:59:07 +00003553else
3554 enable_fast_install=yes
3555fi;
John Criswell47fdd832003-07-14 16:52:07 +00003556
3557echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3558echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3559if test "${lt_cv_path_SED+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562 # Loop through the user's path and test for sed and gsed.
3563# Then use that list of sed's as ones to test for truncation.
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for lt_ac_prog in sed gsed; do
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3572 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3573 fi
3574 done
3575 done
3576done
3577lt_ac_max=0
3578lt_ac_count=0
3579# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3580# along with /bin/sed that truncates output.
3581for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3582 test ! -f $lt_ac_sed && break
3583 cat /dev/null > conftest.in
3584 lt_ac_count=0
3585 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3586 # Check for GNU sed and select it if it is found.
3587 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3588 lt_cv_path_SED=$lt_ac_sed
3589 break
3590 fi
3591 while true; do
3592 cat conftest.in conftest.in >conftest.tmp
3593 mv conftest.tmp conftest.in
3594 cp conftest.in conftest.nl
3595 echo >>conftest.nl
3596 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3597 cmp -s conftest.out conftest.nl || break
3598 # 10000 chars as input seems more than enough
3599 test $lt_ac_count -gt 10 && break
3600 lt_ac_count=`expr $lt_ac_count + 1`
3601 if test $lt_ac_count -gt $lt_ac_max; then
3602 lt_ac_max=$lt_ac_count
3603 lt_cv_path_SED=$lt_ac_sed
3604 fi
3605 done
3606done
3607SED=$lt_cv_path_SED
3608
John Criswell7a73b802003-06-30 21:59:07 +00003609fi
3610
John Criswell47fdd832003-07-14 16:52:07 +00003611echo "$as_me:$LINENO: result: $SED" >&5
3612echo "${ECHO_T}$SED" >&6
3613
3614echo "$as_me:$LINENO: checking for egrep" >&5
3615echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3616if test "${ac_cv_prog_egrep+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3620 then ac_cv_prog_egrep='grep -E'
3621 else ac_cv_prog_egrep='egrep'
3622 fi
3623fi
3624echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3625echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3626 EGREP=$ac_cv_prog_egrep
3627
3628
John Criswell7a73b802003-06-30 21:59:07 +00003629
3630# Check whether --with-gnu-ld or --without-gnu-ld was given.
3631if test "${with_gnu_ld+set}" = set; then
3632 withval="$with_gnu_ld"
3633 test "$withval" = no || with_gnu_ld=yes
3634else
3635 with_gnu_ld=no
3636fi;
3637ac_prog=ld
3638if test "$GCC" = yes; then
3639 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003640 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3641echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003642 case $host in
3643 *-*-mingw*)
3644 # gcc leaves a trailing carriage return which upsets mingw
3645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3646 *)
3647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3648 esac
3649 case $ac_prog in
3650 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003651 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003652 re_direlt='/[^/][^/]*/\.\./'
3653 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003654 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003655 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003656 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003657 done
3658 test -z "$LD" && LD="$ac_prog"
3659 ;;
3660 "")
3661 # If it fails, then pretend we aren't using GCC.
3662 ac_prog=ld
3663 ;;
3664 *)
3665 # If it is relative, then search for the first ld in PATH.
3666 with_gnu_ld=unknown
3667 ;;
3668 esac
3669elif test "$with_gnu_ld" = yes; then
3670 echo "$as_me:$LINENO: checking for GNU ld" >&5
3671echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3672else
3673 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3674echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3675fi
3676if test "${lt_cv_path_LD+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003681 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003682 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003683 test -z "$ac_dir" && ac_dir=.
3684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3685 lt_cv_path_LD="$ac_dir/$ac_prog"
3686 # Check to see if the program is GNU ld. I'd rather use --version,
3687 # but apparently some GNU ld's only accept -v.
3688 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003689 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3690 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003691 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003692 ;;
3693 *)
John Criswell7a73b802003-06-30 21:59:07 +00003694 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003695 ;;
3696 esac
John Criswell7a73b802003-06-30 21:59:07 +00003697 fi
3698 done
John Criswell47fdd832003-07-14 16:52:07 +00003699 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003700else
3701 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3702fi
3703fi
3704
3705LD="$lt_cv_path_LD"
3706if test -n "$LD"; then
3707 echo "$as_me:$LINENO: result: $LD" >&5
3708echo "${ECHO_T}$LD" >&6
3709else
3710 echo "$as_me:$LINENO: result: no" >&5
3711echo "${ECHO_T}no" >&6
3712fi
3713test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3714echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3715 { (exit 1); exit 1; }; }
3716echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3717echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3718if test "${lt_cv_prog_gnu_ld+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720else
3721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003722case `"$LD" -v 2>&1 </dev/null` in
3723*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003724 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003725 ;;
3726*)
John Criswell7a73b802003-06-30 21:59:07 +00003727 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003728 ;;
3729esac
John Criswell7a73b802003-06-30 21:59:07 +00003730fi
3731echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3732echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3733with_gnu_ld=$lt_cv_prog_gnu_ld
3734
3735
3736echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3737echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3738if test "${lt_cv_ld_reload_flag+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 lt_cv_ld_reload_flag='-r'
3742fi
3743echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3744echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3745reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003746case $reload_flag in
3747"" | " "*) ;;
3748*) reload_flag=" $reload_flag" ;;
3749esac
3750reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003751
3752echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3753echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3754if test "${lt_cv_path_NM+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else
3757 if test -n "$NM"; then
3758 # Let the user override the test.
3759 lt_cv_path_NM="$NM"
3760else
John Criswell47fdd832003-07-14 16:52:07 +00003761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003762 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003763 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003764 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003765 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003767 # Check to see if the nm accepts a BSD-compat flag.
3768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3769 # nm: unknown option "B" ignored
3770 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3772 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003773 lt_cv_path_NM="$tmp_nm -B"
3774 break
John Criswell47fdd832003-07-14 16:52:07 +00003775 ;;
3776 *)
3777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3778 */dev/null*)
3779 lt_cv_path_NM="$tmp_nm -p"
3780 break
3781 ;;
3782 *)
3783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3784 continue # so that we can try to find one that supports BSD flags
3785 ;;
3786 esac
3787 esac
John Criswell7a73b802003-06-30 21:59:07 +00003788 fi
3789 done
John Criswell47fdd832003-07-14 16:52:07 +00003790 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003791 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3792fi
3793fi
John Criswell47fdd832003-07-14 16:52:07 +00003794echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3795echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003796NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003797
3798echo "$as_me:$LINENO: checking whether ln -s works" >&5
3799echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3800LN_S=$as_ln_s
3801if test "$LN_S" = "ln -s"; then
3802 echo "$as_me:$LINENO: result: yes" >&5
3803echo "${ECHO_T}yes" >&6
3804else
3805 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3806echo "${ECHO_T}no, using $LN_S" >&6
3807fi
3808
John Criswell47fdd832003-07-14 16:52:07 +00003809echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3810echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003811if test "${lt_cv_deplibs_check_method+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 lt_cv_file_magic_cmd='$MAGIC_CMD'
3815lt_cv_file_magic_test_file=
3816lt_cv_deplibs_check_method='unknown'
3817# Need to set the preceding variable on all platforms that support
3818# interlibrary dependencies.
3819# 'none' -- dependencies not supported.
3820# `unknown' -- same as none, but documents that we really don't know.
3821# 'pass_all' -- all dependencies passed with no checks.
3822# 'test_compile' -- check by making test program.
3823# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003824# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003825# If you have `file' or equivalent on your system and you're not sure
3826# whether `pass_all' will *always* work, you probably want this one.
3827
3828case $host_os in
3829aix4* | aix5*)
3830 lt_cv_deplibs_check_method=pass_all
3831 ;;
3832
3833beos*)
3834 lt_cv_deplibs_check_method=pass_all
3835 ;;
3836
3837bsdi4*)
3838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3839 lt_cv_file_magic_cmd='/usr/bin/file -L'
3840 lt_cv_file_magic_test_file=/shlib/libc.so
3841 ;;
3842
3843cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003844 # win32_libid is a shell function defined in ltmain.sh
3845 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3846 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003847 ;;
3848
3849darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003850 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003851 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3852 lt_cv_file_magic_cmd='/usr/bin/file -L'
3853 case "$host_os" in
3854 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003855 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003856 ;;
3857 *) # Darwin 1.3 on
3858 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3859 ;;
3860 esac
John Criswell47fdd832003-07-14 16:52:07 +00003861 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003862 ;;
3863
3864freebsd*)
3865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3866 case $host_cpu in
3867 i*86 )
3868 # Not sure whether the presence of OpenBSD here was a mistake.
3869 # Let's accept both of them until this is cleared up.
3870 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3873 ;;
3874 esac
3875 else
3876 lt_cv_deplibs_check_method=pass_all
3877 fi
3878 ;;
3879
3880gnu*)
3881 lt_cv_deplibs_check_method=pass_all
3882 ;;
3883
John Criswell47fdd832003-07-14 16:52:07 +00003884hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003885 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003886 case "$host_cpu" in
3887 ia64*)
3888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3890 ;;
3891 hppa*64*)
3892 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]'
3893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3894 ;;
3895 *)
3896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3898 ;;
3899 esac
John Criswell7a73b802003-06-30 21:59:07 +00003900 ;;
3901
John Criswell47fdd832003-07-14 16:52:07 +00003902irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003903 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003904 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003905 # this will be overridden with pass_all, but let us keep it just in case
3906 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3907 ;;
3908 *)
3909 case $LD in
3910 *-32|*"-32 ") libmagic=32-bit;;
3911 *-n32|*"-n32 ") libmagic=N32;;
3912 *-64|*"-64 ") libmagic=64-bit;;
3913 *) libmagic=never-match;;
3914 esac
3915 # this will be overridden with pass_all, but let us keep it just in case
3916 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3917 ;;
3918 esac
3919 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3920 lt_cv_deplibs_check_method=pass_all
3921 ;;
3922
3923# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003924linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003925 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003926 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003927 lt_cv_deplibs_check_method=pass_all ;;
3928 *)
3929 # glibc up to 2.1.1 does not perform some relocations on ARM
3930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3931 esac
3932 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3933 ;;
3934
3935netbsd*)
3936 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003938 else
John Criswell47fdd832003-07-14 16:52:07 +00003939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003940 fi
3941 ;;
3942
3943newos6*)
3944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3945 lt_cv_file_magic_cmd=/usr/bin/file
3946 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3947 ;;
3948
John Criswell47fdd832003-07-14 16:52:07 +00003949nto-qnx)
3950 lt_cv_deplibs_check_method=unknown
3951 ;;
3952
John Criswell7a73b802003-06-30 21:59:07 +00003953openbsd*)
3954 lt_cv_file_magic_cmd=/usr/bin/file
3955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3958 else
3959 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3960 fi
3961 ;;
3962
3963osf3* | osf4* | osf5*)
3964 # this will be overridden with pass_all, but let us keep it just in case
3965 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3966 lt_cv_file_magic_test_file=/shlib/libc.so
3967 lt_cv_deplibs_check_method=pass_all
3968 ;;
3969
3970sco3.2v5*)
3971 lt_cv_deplibs_check_method=pass_all
3972 ;;
3973
3974solaris*)
3975 lt_cv_deplibs_check_method=pass_all
3976 lt_cv_file_magic_test_file=/lib/libc.so
3977 ;;
3978
John Criswell7a73b802003-06-30 21:59:07 +00003979sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3980 case $host_vendor in
3981 motorola)
3982 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]'
3983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3984 ;;
3985 ncr)
3986 lt_cv_deplibs_check_method=pass_all
3987 ;;
3988 sequent)
3989 lt_cv_file_magic_cmd='/bin/file'
3990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3991 ;;
3992 sni)
3993 lt_cv_file_magic_cmd='/bin/file'
3994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3995 lt_cv_file_magic_test_file=/lib/libc.so
3996 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003997 siemens)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004000 esac
4001 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004002
4003sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4004 lt_cv_deplibs_check_method=pass_all
4005 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004006esac
4007
4008fi
4009echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4010echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4011file_magic_cmd=$lt_cv_file_magic_cmd
4012deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004013test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004014
4015
4016
4017
John Criswell47fdd832003-07-14 16:52:07 +00004018# If no C compiler was specified, use CC.
4019LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004020
John Criswell47fdd832003-07-14 16:52:07 +00004021# Allow CC to be a program name with arguments.
4022compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004023
John Criswell47fdd832003-07-14 16:52:07 +00004024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4025if test "${enable_libtool_lock+set}" = set; then
4026 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004027
John Criswell47fdd832003-07-14 16:52:07 +00004028fi;
4029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004030
John Criswell47fdd832003-07-14 16:52:07 +00004031# Some flags need to be propagated to the compiler or linker for good
4032# libtool support.
4033case $host in
4034ia64-*-hpux*)
4035 # Find out which ABI we are using.
4036 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004042 case `/usr/bin/file conftest.$ac_objext` in
4043 *ELF-32*)
4044 HPUX_IA64_MODE="32"
4045 ;;
4046 *ELF-64*)
4047 HPUX_IA64_MODE="64"
4048 ;;
4049 esac
4050 fi
4051 rm -rf conftest*
4052 ;;
4053*-*-irix6*)
4054 # Find out which ABI we are using.
John Criswell8a54a1e2004-06-22 21:35:10 +00004055 echo '#line 4055 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4057 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004060 (exit $ac_status); }; then
4061 if test "$lt_cv_prog_gnu_ld" = yes; then
4062 case `/usr/bin/file conftest.$ac_objext` in
4063 *32-bit*)
4064 LD="${LD-ld} -melf32bsmip"
4065 ;;
4066 *N32*)
4067 LD="${LD-ld} -melf32bmipn32"
4068 ;;
4069 *64-bit*)
4070 LD="${LD-ld} -melf64bmip"
4071 ;;
4072 esac
4073 else
4074 case `/usr/bin/file conftest.$ac_objext` in
4075 *32-bit*)
4076 LD="${LD-ld} -32"
4077 ;;
4078 *N32*)
4079 LD="${LD-ld} -n32"
4080 ;;
4081 *64-bit*)
4082 LD="${LD-ld} -64"
4083 ;;
4084 esac
4085 fi
4086 fi
4087 rm -rf conftest*
4088 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004089
John Criswell47fdd832003-07-14 16:52:07 +00004090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_i386"
4103 ;;
4104 ppc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4106 ;;
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4109 ;;
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4112 ;;
4113 esac
4114 ;;
4115 *64-bit*)
4116 case $host in
4117 x86_64-*linux*)
4118 LD="${LD-ld} -m elf_x86_64"
4119 ;;
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4122 ;;
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4125 ;;
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4128 ;;
4129 esac
4130 ;;
4131 esac
4132 fi
4133 rm -rf conftest*
4134 ;;
4135
4136*-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4138 SAVE_CFLAGS="$CFLAGS"
4139 CFLAGS="$CFLAGS -belf"
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144else
4145 ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151 cat >conftest.$ac_ext <<_ACEOF
4152#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004158
John Criswell47fdd832003-07-14 16:52:07 +00004159int
4160main ()
John Criswell7a73b802003-06-30 21:59:07 +00004161{
John Criswell7a73b802003-06-30 21:59:07 +00004162
John Criswell47fdd832003-07-14 16:52:07 +00004163 ;
4164 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004165}
John Criswell47fdd832003-07-14 16:52:07 +00004166_ACEOF
4167rm -f conftest.$ac_objext conftest$ac_exeext
4168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004169 (eval $ac_link) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004172 (exit $ac_status); } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 (eval $ac_try) 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004180else
John Criswell47fdd832003-07-14 16:52:07 +00004181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004182sed 's/^/| /' conftest.$ac_ext >&5
4183
John Criswell47fdd832003-07-14 16:52:07 +00004184lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004185fi
John Criswell47fdd832003-07-14 16:52:07 +00004186rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4187 ac_ext=c
4188ac_cpp='$CPP $CPPFLAGS'
4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
John Criswell7a73b802003-06-30 21:59:07 +00004193fi
John Criswell47fdd832003-07-14 16:52:07 +00004194echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4195echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4198 CFLAGS="$SAVE_CFLAGS"
4199 fi
4200 ;;
4201
4202esac
4203
4204need_locks="$enable_libtool_lock"
4205
John Criswell7a73b802003-06-30 21:59:07 +00004206
4207
4208echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4209echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4210if test "${ac_cv_header_stdc+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213 cat >conftest.$ac_ext <<_ACEOF
4214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004215/* confdefs.h. */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004220#include <stdlib.h>
4221#include <stdarg.h>
4222#include <string.h>
4223#include <float.h>
4224
John Criswell0c38eaf2003-09-10 15:17:25 +00004225int
4226main ()
4227{
4228
4229 ;
4230 return 0;
4231}
John Criswell7a73b802003-06-30 21:59:07 +00004232_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004233rm -f conftest.$ac_objext
4234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004236 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest.$ac_objext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004245 ac_cv_header_stdc=yes
4246else
4247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004251fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004252rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004253
4254if test $ac_cv_header_stdc = yes; then
4255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4256 cat >conftest.$ac_ext <<_ACEOF
4257#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004258/* confdefs.h. */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004263#include <string.h>
4264
4265_ACEOF
4266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004267 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004268 :
4269else
4270 ac_cv_header_stdc=no
4271fi
4272rm -f conftest*
4273
4274fi
4275
4276if test $ac_cv_header_stdc = yes; then
4277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4278 cat >conftest.$ac_ext <<_ACEOF
4279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004280/* confdefs.h. */
4281_ACEOF
4282cat confdefs.h >>conftest.$ac_ext
4283cat >>conftest.$ac_ext <<_ACEOF
4284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004285#include <stdlib.h>
4286
4287_ACEOF
4288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004289 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004290 :
4291else
4292 ac_cv_header_stdc=no
4293fi
4294rm -f conftest*
4295
4296fi
4297
4298if test $ac_cv_header_stdc = yes; then
4299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4300 if test "$cross_compiling" = yes; then
4301 :
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004310#include <ctype.h>
4311#if ((' ' & 0x0FF) == 0x020)
4312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004315# define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320#endif
4321
4322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323int
4324main ()
4325{
4326 int i;
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4330 exit(2);
4331 exit (0);
4332}
4333_ACEOF
4334rm -f conftest$ac_exeext
4335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 :
4346else
4347 echo "$as_me: program exited with status $ac_status" >&5
4348echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004349sed 's/^/| /' conftest.$ac_ext >&5
4350
John Criswell7a73b802003-06-30 21:59:07 +00004351( exit $ac_status )
4352ac_cv_header_stdc=no
4353fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004354rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004355fi
4356fi
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360if test $ac_cv_header_stdc = yes; then
4361
4362cat >>confdefs.h <<\_ACEOF
4363#define STDC_HEADERS 1
4364_ACEOF
4365
4366fi
4367
4368# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379 inttypes.h stdint.h unistd.h
4380do
4381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382echo "$as_me:$LINENO: checking for $ac_header" >&5
4383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386else
4387 cat >conftest.$ac_ext <<_ACEOF
4388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004394$ac_includes_default
4395
4396#include <$ac_header>
4397_ACEOF
4398rm -f conftest.$ac_objext
4399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400 (eval $ac_compile) 2>&5
4401 ac_status=$?
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 (eval $ac_try) 2>&5
4407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 eval "$as_ac_Header=yes"
4411else
4412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004413sed 's/^/| /' conftest.$ac_ext >&5
4414
John Criswell7a73b802003-06-30 21:59:07 +00004415eval "$as_ac_Header=no"
4416fi
4417rm -f conftest.$ac_objext conftest.$ac_ext
4418fi
4419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4421if test `eval echo '${'$as_ac_Header'}'` = yes; then
4422 cat >>confdefs.h <<_ACEOF
4423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424_ACEOF
4425
4426fi
4427
4428done
4429
4430
4431
4432for ac_header in dlfcn.h
4433do
4434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435if eval "test \"\${$as_ac_Header+set}\" = set"; then
4436 echo "$as_me:$LINENO: checking for $ac_header" >&5
4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4438if eval "test \"\${$as_ac_Header+set}\" = set"; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440fi
4441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4443else
4444 # Is the header compilable?
4445echo "$as_me:$LINENO: checking $ac_header usability" >&5
4446echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4447cat >conftest.$ac_ext <<_ACEOF
4448#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004454$ac_includes_default
4455#include <$ac_header>
4456_ACEOF
4457rm -f conftest.$ac_objext
4458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 (eval $ac_try) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_header_compiler=yes
4470else
4471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004472sed 's/^/| /' conftest.$ac_ext >&5
4473
John Criswell7a73b802003-06-30 21:59:07 +00004474ac_header_compiler=no
4475fi
4476rm -f conftest.$ac_objext conftest.$ac_ext
4477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4478echo "${ECHO_T}$ac_header_compiler" >&6
4479
4480# Is the header present?
4481echo "$as_me:$LINENO: checking $ac_header presence" >&5
4482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4483cat >conftest.$ac_ext <<_ACEOF
4484#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004490#include <$ac_header>
4491_ACEOF
4492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4494 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004495 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null; then
4500 if test -s conftest.err; then
4501 ac_cpp_err=$ac_c_preproc_warn_flag
4502 else
4503 ac_cpp_err=
4504 fi
4505else
4506 ac_cpp_err=yes
4507fi
4508if test -z "$ac_cpp_err"; then
4509 ac_header_preproc=yes
4510else
4511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004512sed 's/^/| /' conftest.$ac_ext >&5
4513
John Criswell7a73b802003-06-30 21:59:07 +00004514 ac_header_preproc=no
4515fi
4516rm -f conftest.err conftest.$ac_ext
4517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4518echo "${ECHO_T}$ac_header_preproc" >&6
4519
4520# So? What about this header?
4521case $ac_header_compiler:$ac_header_preproc in
4522 yes:no )
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4527 (
4528 cat <<\_ASBOX
4529## ------------------------------------ ##
4530## Report this to bug-autoconf@gnu.org. ##
4531## ------------------------------------ ##
4532_ASBOX
4533 ) |
4534 sed "s/^/$as_me: WARNING: /" >&2
4535 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004536 no:yes )
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4543 (
4544 cat <<\_ASBOX
4545## ------------------------------------ ##
4546## Report this to bug-autoconf@gnu.org. ##
4547## ------------------------------------ ##
4548_ASBOX
4549 ) |
4550 sed "s/^/$as_me: WARNING: /" >&2
4551 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004552esac
4553echo "$as_me:$LINENO: checking for $ac_header" >&5
4554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4555if eval "test \"\${$as_ac_Header+set}\" = set"; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4557else
4558 eval "$as_ac_Header=$ac_header_preproc"
4559fi
4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562
4563fi
4564if test `eval echo '${'$as_ac_Header'}'` = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567_ACEOF
4568
4569fi
4570
4571done
4572
John Criswell47fdd832003-07-14 16:52:07 +00004573ac_ext=cc
4574ac_cpp='$CXXCPP $CPPFLAGS'
4575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4579echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4580if test -z "$CXXCPP"; then
4581 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
John Criswell47fdd832003-07-14 16:52:07 +00004584 # Double quotes because CXXCPP needs to be expanded
4585 for CXXCPP in "$CXX -E" "/lib/cpp"
4586 do
4587 ac_preproc_ok=false
4588for ac_cxx_preproc_warn_flag in '' yes
4589do
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat >conftest.$ac_ext <<_ACEOF
4597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004598/* confdefs.h. */
4599_ACEOF
4600cat confdefs.h >>conftest.$ac_ext
4601cat >>conftest.$ac_ext <<_ACEOF
4602/* end confdefs.h. */
4603#ifdef __STDC__
4604# include <limits.h>
4605#else
4606# include <assert.h>
4607#endif
John Criswell47fdd832003-07-14 16:52:07 +00004608 Syntax error
4609_ACEOF
4610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4612 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004613 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } >/dev/null; then
4618 if test -s conftest.err; then
4619 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004620 else
John Criswell47fdd832003-07-14 16:52:07 +00004621 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004622 fi
John Criswell47fdd832003-07-14 16:52:07 +00004623else
4624 ac_cpp_err=yes
4625fi
4626if test -z "$ac_cpp_err"; then
4627 :
4628else
4629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
John Criswell47fdd832003-07-14 16:52:07 +00004632 # Broken: fails on valid input.
4633continue
4634fi
4635rm -f conftest.err conftest.$ac_ext
4636
4637 # OK, works on sane cases. Now check whether non-existent headers
4638 # can be detected and how.
4639 cat >conftest.$ac_ext <<_ACEOF
4640#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004646#include <ac_nonexistent.h>
4647_ACEOF
4648if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004651 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_cxx_preproc_warn_flag
4658 else
4659 ac_cpp_err=
4660 fi
4661else
4662 ac_cpp_err=yes
4663fi
4664if test -z "$ac_cpp_err"; then
4665 # Broken: success on invalid input.
4666continue
4667else
4668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004669sed 's/^/| /' conftest.$ac_ext >&5
4670
John Criswell47fdd832003-07-14 16:52:07 +00004671 # Passes both tests.
4672ac_preproc_ok=:
4673break
4674fi
4675rm -f conftest.err conftest.$ac_ext
4676
4677done
4678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4679rm -f conftest.err conftest.$ac_ext
4680if $ac_preproc_ok; then
4681 break
John Criswell7a73b802003-06-30 21:59:07 +00004682fi
4683
John Criswell47fdd832003-07-14 16:52:07 +00004684 done
4685 ac_cv_prog_CXXCPP=$CXXCPP
4686
4687fi
4688 CXXCPP=$ac_cv_prog_CXXCPP
4689else
4690 ac_cv_prog_CXXCPP=$CXXCPP
4691fi
4692echo "$as_me:$LINENO: result: $CXXCPP" >&5
4693echo "${ECHO_T}$CXXCPP" >&6
4694ac_preproc_ok=false
4695for ac_cxx_preproc_warn_flag in '' yes
4696do
4697 # Use a header file that comes with gcc, so configuring glibc
4698 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004701 # On the NeXT, cc -E runs the code through the compiler's parser,
4702 # not just through cpp. "Syntax error" is here to catch this case.
4703 cat >conftest.$ac_ext <<_ACEOF
4704#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
4710#ifdef __STDC__
4711# include <limits.h>
4712#else
4713# include <assert.h>
4714#endif
John Criswell47fdd832003-07-14 16:52:07 +00004715 Syntax error
4716_ACEOF
4717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4719 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004720 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004721 rm -f conftest.er1
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } >/dev/null; then
4725 if test -s conftest.err; then
4726 ac_cpp_err=$ac_cxx_preproc_warn_flag
4727 else
4728 ac_cpp_err=
4729 fi
4730else
4731 ac_cpp_err=yes
4732fi
4733if test -z "$ac_cpp_err"; then
4734 :
4735else
4736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004737sed 's/^/| /' conftest.$ac_ext >&5
4738
John Criswell47fdd832003-07-14 16:52:07 +00004739 # Broken: fails on valid input.
4740continue
4741fi
4742rm -f conftest.err conftest.$ac_ext
4743
4744 # OK, works on sane cases. Now check whether non-existent headers
4745 # can be detected and how.
4746 cat >conftest.$ac_ext <<_ACEOF
4747#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004753#include <ac_nonexistent.h>
4754_ACEOF
4755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004758 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null; then
4763 if test -s conftest.err; then
4764 ac_cpp_err=$ac_cxx_preproc_warn_flag
4765 else
4766 ac_cpp_err=
4767 fi
4768else
4769 ac_cpp_err=yes
4770fi
4771if test -z "$ac_cpp_err"; then
4772 # Broken: success on invalid input.
4773continue
4774else
4775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004776sed 's/^/| /' conftest.$ac_ext >&5
4777
John Criswell47fdd832003-07-14 16:52:07 +00004778 # Passes both tests.
4779ac_preproc_ok=:
4780break
4781fi
4782rm -f conftest.err conftest.$ac_ext
4783
4784done
4785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786rm -f conftest.err conftest.$ac_ext
4787if $ac_preproc_ok; then
4788 :
4789else
John Criswell0c38eaf2003-09-10 15:17:25 +00004790 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4791See \`config.log' for more details." >&5
4792echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4793See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004794 { (exit 1); exit 1; }; }
4795fi
4796
4797ac_ext=cc
4798ac_cpp='$CXXCPP $CPPFLAGS'
4799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4802
4803
4804ac_ext=f
4805ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4806ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4808if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004809 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004810 do
4811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4813echo "$as_me:$LINENO: checking for $ac_word" >&5
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815if test "${ac_cv_prog_F77+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818 if test -n "$F77"; then
4819 ac_cv_prog_F77="$F77" # Let the user override the test.
4820else
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
4833done
4834
4835fi
4836fi
4837F77=$ac_cv_prog_F77
4838if test -n "$F77"; then
4839 echo "$as_me:$LINENO: result: $F77" >&5
4840echo "${ECHO_T}$F77" >&6
4841else
4842 echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6
4844fi
4845
4846 test -n "$F77" && break
4847 done
4848fi
4849if test -z "$F77"; then
4850 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004851 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004852do
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854set dummy $ac_prog; ac_word=$2
4855echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 if test -n "$ac_ct_F77"; then
4861 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_F77="$ac_prog"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4873 fi
4874done
4875done
4876
4877fi
4878fi
4879ac_ct_F77=$ac_cv_prog_ac_ct_F77
4880if test -n "$ac_ct_F77"; then
4881 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4882echo "${ECHO_T}$ac_ct_F77" >&6
4883else
4884 echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
4886fi
4887
4888 test -n "$ac_ct_F77" && break
4889done
4890
4891 F77=$ac_ct_F77
4892fi
4893
4894
4895# Provide some information about the compiler.
John Criswell8a54a1e2004-06-22 21:35:10 +00004896echo "$as_me:4896:" \
John Criswell47fdd832003-07-14 16:52:07 +00004897 "checking for Fortran 77 compiler version" >&5
4898ac_compiler=`set X $ac_compile; echo $2`
4899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4900 (eval $ac_compiler --version </dev/null >&5) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4905 (eval $ac_compiler -v </dev/null >&5) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }
4909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4910 (eval $ac_compiler -V </dev/null >&5) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }
4914
4915# If we don't use `.F' as extension, the preprocessor is not run on the
4916# input file.
4917ac_save_ext=$ac_ext
4918ac_ext=F
4919echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4920echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4921if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924 cat >conftest.$ac_ext <<_ACEOF
4925 program main
4926#ifndef __GNUC__
4927 choke me
4928#endif
4929
4930 end
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>&5
4935 ac_status=$?
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest.$ac_objext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 (eval $ac_try) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_compiler_gnu=yes
4945else
4946 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004947sed 's/^/| /' conftest.$ac_ext >&5
4948
John Criswell47fdd832003-07-14 16:52:07 +00004949ac_compiler_gnu=no
4950fi
4951rm -f conftest.$ac_objext conftest.$ac_ext
4952ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4953
4954fi
4955echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4956echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4957ac_ext=$ac_save_ext
4958G77=`test $ac_compiler_gnu = yes && echo yes`
4959ac_test_FFLAGS=${FFLAGS+set}
4960ac_save_FFLAGS=$FFLAGS
4961FFLAGS=
4962echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4963echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4964if test "${ac_cv_prog_f77_g+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967 FFLAGS=-g
4968cat >conftest.$ac_ext <<_ACEOF
4969 program main
4970
4971 end
4972_ACEOF
4973rm -f conftest.$ac_objext
4974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -s conftest.$ac_objext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4985 ac_cv_prog_f77_g=yes
4986else
4987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004988sed 's/^/| /' conftest.$ac_ext >&5
4989
John Criswell47fdd832003-07-14 16:52:07 +00004990ac_cv_prog_f77_g=no
4991fi
4992rm -f conftest.$ac_objext conftest.$ac_ext
4993
4994fi
4995echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4996echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4997if test "$ac_test_FFLAGS" = set; then
4998 FFLAGS=$ac_save_FFLAGS
4999elif test $ac_cv_prog_f77_g = yes; then
5000 if test "$G77" = yes; then
5001 FFLAGS="-g -O2"
5002 else
5003 FFLAGS="-g"
5004 fi
5005else
5006 if test "$G77" = yes; then
5007 FFLAGS="-O2"
5008 else
5009 FFLAGS=
5010 fi
5011fi
5012ac_ext=c
5013ac_cpp='$CPP $CPPFLAGS'
5014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017
5018
5019
5020# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5021
5022# find the maximum length of command line arguments
5023echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5024echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5025if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 i=0
5029 testring="ABCD"
5030
5031 case $build_os in
5032 msdosdjgpp*)
5033 # On DJGPP, this test can blow up pretty badly due to problems in libc
5034 # (any single argument exceeding 2000 bytes causes a buffer overrun
5035 # during glob expansion). Even if it were fixed, the result of this
5036 # check would be larger than it should be.
5037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5038 ;;
5039
5040 gnu*)
5041 # Under GNU Hurd, this test is not required because there is
5042 # no limit to the length of command line arguments.
5043 # Libtool will interpret -1 as no limit whatsoever
5044 lt_cv_sys_max_cmd_len=-1;
5045 ;;
5046
5047 cygwin* | mingw*)
5048 # On Win9x/ME, this test blows up -- it succeeds, but takes
5049 # about 5 minutes as the teststring grows exponentially.
5050 # Worse, since 9x/ME are not pre-emptively multitasking,
5051 # you end up with a "frozen" computer, even though with patience
5052 # the test eventually succeeds (with a max line length of 256k).
5053 # Instead, let's just punt: use the minimum linelength reported by
5054 # all of the supported platforms: 8192 (on NT/2K/XP).
5055 lt_cv_sys_max_cmd_len=8192;
5056 ;;
5057
5058 *)
5059 # If test is not a shell built-in, we'll probably end up computing a
5060 # maximum length that is only half of the actual maximum length, but
5061 # we can't tell.
5062 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5063 = "XX$testring") >/dev/null 2>&1 &&
5064 new_result=`expr "X$testring" : ".*" 2>&1` &&
5065 lt_cv_sys_max_cmd_len=$new_result &&
5066 test $i != 17 # 1/2 MB should be enough
5067 do
5068 i=`expr $i + 1`
5069 testring=$testring$testring
5070 done
5071 testring=
5072 # Add a significant safety factor because C++ compilers can tack on massive
5073 # amounts of additional arguments before passing them to the linker.
5074 # It appears as though 1/2 is a usable value.
5075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5076 ;;
5077 esac
5078
5079fi
5080
5081if test -n $lt_cv_sys_max_cmd_len ; then
5082 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5083echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5084else
5085 echo "$as_me:$LINENO: result: none" >&5
5086echo "${ECHO_T}none" >&6
5087fi
5088
5089
5090
5091
5092# Check for command to grab the raw symbol name followed by C symbol from nm.
5093echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5094echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5095if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098
5099# These are sane defaults that work on at least a few old systems.
5100# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5101
5102# Character class describing NM global symbol codes.
5103symcode='[BCDEGRST]'
5104
5105# Regexp to match symbols that can be accessed directly from C.
5106sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5107
5108# Transform the above into a raw symbol and a C symbol.
5109symxfrm='\1 \2\3 \3'
5110
5111# Transform an extracted symbol line into a proper C declaration
5112lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5113
5114# Transform an extracted symbol line into symbol name and symbol address
5115lt_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'"
5116
5117# Define system-specific variables.
5118case $host_os in
5119aix*)
5120 symcode='[BCDT]'
5121 ;;
5122cygwin* | mingw* | pw32*)
5123 symcode='[ABCDGISTW]'
5124 ;;
5125hpux*) # Its linker distinguishes data from code symbols
5126 if test "$host_cpu" = ia64; then
5127 symcode='[ABCDEGRST]'
5128 fi
5129 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5130 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'"
5131 ;;
5132irix* | nonstopux*)
5133 symcode='[BCDEGRST]'
5134 ;;
5135osf*)
5136 symcode='[BCDEGQRST]'
5137 ;;
5138solaris* | sysv5*)
5139 symcode='[BDT]'
5140 ;;
5141sysv4)
5142 symcode='[DFNSTU]'
5143 ;;
5144esac
5145
5146# Handle CRLF in mingw tool chain
5147opt_cr=
5148case $build_os in
5149mingw*)
5150 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5151 ;;
5152esac
5153
5154# If we're using GNU nm, then use its standard symbol codes.
5155case `$NM -V 2>&1` in
5156*GNU* | *'with BFD'*)
5157 symcode='[ABCDGISTW]' ;;
5158esac
5159
5160# Try without a prefix undercore, then with it.
5161for ac_symprfx in "" "_"; do
5162
5163 # Write the raw and C identifiers.
5164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5165
5166 # Check to see that the pipe works correctly.
5167 pipe_works=no
5168
5169 rm -f conftest*
5170 cat > conftest.$ac_ext <<EOF
5171#ifdef __cplusplus
5172extern "C" {
5173#endif
5174char nm_test_var;
5175void nm_test_func(){}
5176#ifdef __cplusplus
5177}
5178#endif
5179int main(){nm_test_var='a';nm_test_func();return(0);}
5180EOF
5181
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; then
5187 # Now try to grab the symbols.
5188 nlist=conftest.nm
5189 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && test -s "$nlist"; then
5194 # Try sorting and uniquifying the output.
5195 if sort "$nlist" | uniq > "$nlist"T; then
5196 mv -f "$nlist"T "$nlist"
5197 else
5198 rm -f "$nlist"T
5199 fi
5200
5201 # Make sure that we snagged all the symbols we need.
5202 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5203 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5204 cat <<EOF > conftest.$ac_ext
5205#ifdef __cplusplus
5206extern "C" {
5207#endif
5208
5209EOF
5210 # Now generate the symbol file.
5211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5212
5213 cat <<EOF >> conftest.$ac_ext
5214#if defined (__STDC__) && __STDC__
5215# define lt_ptr_t void *
5216#else
5217# define lt_ptr_t char *
5218# define const
5219#endif
5220
5221/* The mapping between symbol names and symbols. */
5222const struct {
5223 const char *name;
5224 lt_ptr_t address;
5225}
5226lt_preloaded_symbols[] =
5227{
5228EOF
5229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5230 cat <<\EOF >> conftest.$ac_ext
5231 {0, (lt_ptr_t) 0}
5232};
5233
5234#ifdef __cplusplus
5235}
5236#endif
5237EOF
5238 # Now try linking the two files.
5239 mv conftest.$ac_objext conftstm.$ac_objext
5240 lt_save_LIBS="$LIBS"
5241 lt_save_CFLAGS="$CFLAGS"
5242 LIBS="conftstm.$ac_objext"
5243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5249 pipe_works=yes
5250 fi
5251 LIBS="$lt_save_LIBS"
5252 CFLAGS="$lt_save_CFLAGS"
5253 else
5254 echo "cannot find nm_test_func in $nlist" >&5
5255 fi
5256 else
5257 echo "cannot find nm_test_var in $nlist" >&5
5258 fi
5259 else
5260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5261 fi
5262 else
5263 echo "$progname: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 fi
5266 rm -f conftest* conftst*
5267
5268 # Do not use the global_symbol_pipe unless it works.
5269 if test "$pipe_works" = yes; then
5270 break
5271 else
5272 lt_cv_sys_global_symbol_pipe=
5273 fi
5274done
5275
5276fi
5277
5278if test -z "$lt_cv_sys_global_symbol_pipe"; then
5279 lt_cv_sys_global_symbol_to_cdecl=
5280fi
5281if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5282 echo "$as_me:$LINENO: result: failed" >&5
5283echo "${ECHO_T}failed" >&6
5284else
5285 echo "$as_me:$LINENO: result: ok" >&5
5286echo "${ECHO_T}ok" >&6
5287fi
5288
5289echo "$as_me:$LINENO: checking for objdir" >&5
5290echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5291if test "${lt_cv_objdir+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293else
5294 rm -f .libs 2>/dev/null
5295mkdir .libs 2>/dev/null
5296if test -d .libs; then
5297 lt_cv_objdir=.libs
5298else
5299 # MS-DOS does not allow filenames that begin with a dot.
5300 lt_cv_objdir=_libs
5301fi
5302rmdir .libs 2>/dev/null
5303fi
5304echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5305echo "${ECHO_T}$lt_cv_objdir" >&6
5306objdir=$lt_cv_objdir
5307
5308
5309
5310
5311
5312case $host_os in
5313aix3*)
5314 # AIX sometimes has problems with the GCC collect2 program. For some
5315 # reason, if we set the COLLECT_NAMES environment variable, the problems
5316 # vanish in a puff of smoke.
5317 if test "X${COLLECT_NAMES+set}" != Xset; then
5318 COLLECT_NAMES=
5319 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005320 fi
5321 ;;
5322esac
5323
John Criswell47fdd832003-07-14 16:52:07 +00005324# Sed substitution that helps us do robust quoting. It backslashifies
5325# metacharacters that are still active within double-quoted strings.
5326Xsed='sed -e s/^X//'
5327sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5328
5329# Same as above, but do not quote variable references.
5330double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5331
5332# Sed substitution to delay expansion of an escaped shell variable in a
5333# double_quote_subst'ed string.
5334delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5335
5336# Sed substitution to avoid accidental globbing in evaled expressions
5337no_glob_subst='s/\*/\\\*/g'
5338
5339# Constants:
5340rm="rm -f"
5341
5342# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005343default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005344can_build_shared=yes
5345
5346# All known linkers require a `.a' archive for static linking (except M$VC,
5347# which needs '.lib').
5348libext=a
5349ltmain="$ac_aux_dir/ltmain.sh"
5350ofile="$default_ofile"
5351with_gnu_ld="$lt_cv_prog_gnu_ld"
5352
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}ar; ac_word=$2
5356echo "$as_me:$LINENO: checking for $ac_word" >&5
5357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358if test "${ac_cv_prog_AR+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361 if test -n "$AR"; then
5362 ac_cv_prog_AR="$AR" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_AR="${ac_tool_prefix}ar"
5372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376done
5377
5378fi
5379fi
5380AR=$ac_cv_prog_AR
5381if test -n "$AR"; then
5382 echo "$as_me:$LINENO: result: $AR" >&5
5383echo "${ECHO_T}$AR" >&6
5384else
5385 echo "$as_me:$LINENO: result: no" >&5
5386echo "${ECHO_T}no" >&6
5387fi
5388
5389fi
5390if test -z "$ac_cv_prog_AR"; then
5391 ac_ct_AR=$AR
5392 # Extract the first word of "ar", so it can be a program name with args.
5393set dummy ar; ac_word=$2
5394echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 if test -n "$ac_ct_AR"; then
5400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_AR="ar"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415
5416 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5417fi
5418fi
5419ac_ct_AR=$ac_cv_prog_ac_ct_AR
5420if test -n "$ac_ct_AR"; then
5421 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5422echo "${ECHO_T}$ac_ct_AR" >&6
5423else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426fi
5427
5428 AR=$ac_ct_AR
5429else
5430 AR="$ac_cv_prog_AR"
5431fi
5432
John Criswell7a73b802003-06-30 21:59:07 +00005433if test -n "$ac_tool_prefix"; then
5434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5436echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438if test "${ac_cv_prog_RANLIB+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441 if test -n "$RANLIB"; then
5442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456done
5457
5458fi
5459fi
5460RANLIB=$ac_cv_prog_RANLIB
5461if test -n "$RANLIB"; then
5462 echo "$as_me:$LINENO: result: $RANLIB" >&5
5463echo "${ECHO_T}$RANLIB" >&6
5464else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468
5469fi
5470if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473set dummy ranlib; ac_word=$2
5474echo "$as_me:$LINENO: checking for $ac_word" >&5
5475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485 IFS=$as_save_IFS
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB="ranlib"
5490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 break 2
5492 fi
5493done
5494done
5495
5496 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5497fi
5498fi
5499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500if test -n "$ac_ct_RANLIB"; then
5501 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5502echo "${ECHO_T}$ac_ct_RANLIB" >&6
5503else
5504 echo "$as_me:$LINENO: result: no" >&5
5505echo "${ECHO_T}no" >&6
5506fi
5507
5508 RANLIB=$ac_ct_RANLIB
5509else
5510 RANLIB="$ac_cv_prog_RANLIB"
5511fi
5512
5513if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}strip; ac_word=$2
5516echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518if test "${ac_cv_prog_STRIP+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535done
5536done
5537
5538fi
5539fi
5540STRIP=$ac_cv_prog_STRIP
5541if test -n "$STRIP"; then
5542 echo "$as_me:$LINENO: result: $STRIP" >&5
5543echo "${ECHO_T}$STRIP" >&6
5544else
5545 echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547fi
5548
5549fi
5550if test -z "$ac_cv_prog_STRIP"; then
5551 ac_ct_STRIP=$STRIP
5552 # Extract the first word of "strip", so it can be a program name with args.
5553set dummy strip; ac_word=$2
5554echo "$as_me:$LINENO: checking for $ac_word" >&5
5555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559 if test -n "$ac_ct_STRIP"; then
5560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_ac_ct_STRIP="strip"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
5574done
5575
5576 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5577fi
5578fi
5579ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580if test -n "$ac_ct_STRIP"; then
5581 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582echo "${ECHO_T}$ac_ct_STRIP" >&6
5583else
5584 echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586fi
5587
5588 STRIP=$ac_ct_STRIP
5589else
5590 STRIP="$ac_cv_prog_STRIP"
5591fi
5592
5593
John Criswell7a73b802003-06-30 21:59:07 +00005594old_CC="$CC"
5595old_CFLAGS="$CFLAGS"
5596
5597# Set sane defaults for various variables
5598test -z "$AR" && AR=ar
5599test -z "$AR_FLAGS" && AR_FLAGS=cru
5600test -z "$AS" && AS=as
5601test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005602test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005603test -z "$DLLTOOL" && DLLTOOL=dlltool
5604test -z "$LD" && LD=ld
5605test -z "$LN_S" && LN_S="ln -s"
5606test -z "$MAGIC_CMD" && MAGIC_CMD=file
5607test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005608test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005609test -z "$OBJDUMP" && OBJDUMP=objdump
5610test -z "$RANLIB" && RANLIB=:
5611test -z "$STRIP" && STRIP=:
5612test -z "$ac_objext" && ac_objext=o
5613
John Criswell7a73b802003-06-30 21:59:07 +00005614# Determine commands to create old-style static archives.
5615old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5616old_postinstall_cmds='chmod 644 $oldlib'
5617old_postuninstall_cmds=
5618
5619if test -n "$RANLIB"; then
5620 case $host_os in
5621 openbsd*)
5622 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5623 ;;
5624 *)
5625 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5626 ;;
5627 esac
5628 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5629fi
5630
John Criswell47fdd832003-07-14 16:52:07 +00005631# Only perform the check for file, if the check method requires it
5632case $deplibs_check_method in
5633file_magic*)
5634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5635 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5636echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005639else
John Criswell47fdd832003-07-14 16:52:07 +00005640 case $MAGIC_CMD in
5641[\\/*] | ?:[\\/]*)
5642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5643 ;;
5644*)
5645 lt_save_MAGIC_CMD="$MAGIC_CMD"
5646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5648 for ac_dir in $ac_dummy; do
5649 IFS="$lt_save_ifs"
5650 test -z "$ac_dir" && ac_dir=.
5651 if test -f $ac_dir/${ac_tool_prefix}file; then
5652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5653 if test -n "$file_magic_test_file"; then
5654 case $deplibs_check_method in
5655 "file_magic "*)
5656 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5659 $EGREP "$file_magic_regex" > /dev/null; then
5660 :
5661 else
5662 cat <<EOF 1>&2
5663
5664*** Warning: the command libtool uses to detect shared libraries,
5665*** $file_magic_cmd, produces output that libtool cannot recognize.
5666*** The result is that libtool may fail to recognize shared libraries
5667*** as such. This will affect the creation of libtool libraries that
5668*** depend on shared libraries, but programs linked with such libtool
5669*** libraries will work regardless of this problem. Nevertheless, you
5670*** may want to report the problem to your system manager and/or to
5671*** bug-libtool@gnu.org
5672
5673EOF
5674 fi ;;
5675 esac
5676 fi
5677 break
5678 fi
5679 done
5680 IFS="$lt_save_ifs"
5681 MAGIC_CMD="$lt_save_MAGIC_CMD"
5682 ;;
5683esac
John Criswell7a73b802003-06-30 21:59:07 +00005684fi
John Criswell7a73b802003-06-30 21:59:07 +00005685
John Criswell47fdd832003-07-14 16:52:07 +00005686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5687if test -n "$MAGIC_CMD"; then
5688 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5689echo "${ECHO_T}$MAGIC_CMD" >&6
5690else
5691 echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693fi
John Criswell7a73b802003-06-30 21:59:07 +00005694
John Criswell47fdd832003-07-14 16:52:07 +00005695if test -z "$lt_cv_path_MAGIC_CMD"; then
5696 if test -n "$ac_tool_prefix"; then
5697 echo "$as_me:$LINENO: checking for file" >&5
5698echo $ECHO_N "checking for file... $ECHO_C" >&6
5699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 case $MAGIC_CMD in
5703[\\/*] | ?:[\\/]*)
5704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5705 ;;
5706*)
5707 lt_save_MAGIC_CMD="$MAGIC_CMD"
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5710 for ac_dir in $ac_dummy; do
5711 IFS="$lt_save_ifs"
5712 test -z "$ac_dir" && ac_dir=.
5713 if test -f $ac_dir/file; then
5714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5715 if test -n "$file_magic_test_file"; then
5716 case $deplibs_check_method in
5717 "file_magic "*)
5718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5721 $EGREP "$file_magic_regex" > /dev/null; then
5722 :
5723 else
5724 cat <<EOF 1>&2
5725
5726*** Warning: the command libtool uses to detect shared libraries,
5727*** $file_magic_cmd, produces output that libtool cannot recognize.
5728*** The result is that libtool may fail to recognize shared libraries
5729*** as such. This will affect the creation of libtool libraries that
5730*** depend on shared libraries, but programs linked with such libtool
5731*** libraries will work regardless of this problem. Nevertheless, you
5732*** may want to report the problem to your system manager and/or to
5733*** bug-libtool@gnu.org
5734
5735EOF
5736 fi ;;
5737 esac
5738 fi
5739 break
5740 fi
5741 done
5742 IFS="$lt_save_ifs"
5743 MAGIC_CMD="$lt_save_MAGIC_CMD"
5744 ;;
5745esac
5746fi
5747
5748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5749if test -n "$MAGIC_CMD"; then
5750 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751echo "${ECHO_T}$MAGIC_CMD" >&6
5752else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757 else
5758 MAGIC_CMD=:
5759 fi
5760fi
5761
5762 fi
5763 ;;
5764esac
5765
5766enable_dlopen=no
5767enable_win32_dll=no
5768
5769# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5770if test "${enable_libtool_lock+set}" = set; then
5771 enableval="$enable_libtool_lock"
5772
5773fi;
5774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5775
John Criswell7a73b802003-06-30 21:59:07 +00005776
5777# Check whether --with-pic or --without-pic was given.
5778if test "${with_pic+set}" = set; then
5779 withval="$with_pic"
5780 pic_mode="$withval"
5781else
5782 pic_mode=default
5783fi;
5784test -z "$pic_mode" && pic_mode=default
5785
John Criswell47fdd832003-07-14 16:52:07 +00005786# Use C for the default configuration in the libtool script
5787tagname=
5788lt_save_CC="$CC"
5789ac_ext=c
5790ac_cpp='$CPP $CPPFLAGS'
5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794
5795
5796# Source file extension for C test sources.
5797ac_ext=c
5798
5799# Object file extension for compiled C test sources.
5800objext=o
5801objext=$objext
5802
5803# Code to be used in simple compile tests
5804lt_simple_compile_test_code="int some_variable = 0;\n"
5805
5806# Code to be used in simple link tests
5807lt_simple_link_test_code='int main(){return(0);}\n'
5808
5809
5810# If no C compiler was specified, use CC.
5811LTCC=${LTCC-"$CC"}
5812
5813# Allow CC to be a program name with arguments.
5814compiler=$CC
5815
5816
5817#
5818# Check for any special shared library compilation flags.
5819#
5820lt_prog_cc_shlib=
5821if test "$GCC" = no; then
5822 case $host_os in
5823 sco3.2v5*)
5824 lt_prog_cc_shlib='-belf'
5825 ;;
5826 esac
5827fi
5828if test -n "$lt_prog_cc_shlib"; then
5829 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5830echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5831 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5832 else
5833 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5834echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5835 lt_cv_prog_cc_can_build_shared=no
5836 fi
5837fi
5838
5839
5840#
5841# Check to make sure the static flag actually works.
5842#
5843echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5844echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5845if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
John Criswell47fdd832003-07-14 16:52:07 +00005848 lt_prog_compiler_static_works=no
5849 save_LDFLAGS="$LDFLAGS"
5850 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5851 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5852 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5853 # The compiler can only warn and ignore the option if not recognized
5854 # So say no if there are warnings
5855 if test -s conftest.err; then
5856 # Append any errors to the config.log.
5857 cat conftest.err 1>&5
5858 else
5859 lt_prog_compiler_static_works=yes
5860 fi
5861 fi
5862 $rm conftest*
5863 LDFLAGS="$save_LDFLAGS"
5864
5865fi
5866echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5867echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5868
5869if test x"$lt_prog_compiler_static_works" = xyes; then
5870 :
5871else
5872 lt_prog_compiler_static=
5873fi
5874
5875
5876
John Criswell47fdd832003-07-14 16:52:07 +00005877
5878lt_prog_compiler_no_builtin_flag=
5879
5880if test "$GCC" = yes; then
5881 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5882
5883 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5884echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888 lt_cv_prog_compiler_rtti_exceptions=no
5889 ac_outfile=conftest.$ac_objext
5890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5891 lt_compiler_flag="-fno-rtti -fno-exceptions"
5892 # Insert the option either (1) after the last *FLAGS variable, or
5893 # (2) before a word containing "conftest.", or (3) at the end.
5894 # Note that $ac_compile itself does not contain backslashes and begins
5895 # with a dollar sign (not a hyphen), so the echo should work correctly.
5896 # The option is referenced via a variable to avoid confusing sed.
5897 lt_compile=`echo "$ac_compile" | $SED \
5898 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5900 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +00005901 (eval echo "\"\$as_me:5901: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005902 (eval "$lt_compile" 2>conftest.err)
5903 ac_status=$?
5904 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +00005905 echo "$as_me:5905: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005906 if (exit $ac_status) && test -s "$ac_outfile"; then
5907 # The compiler can only warn and ignore the option if not recognized
5908 # So say no if there are warnings
5909 if test ! -s conftest.err; then
5910 lt_cv_prog_compiler_rtti_exceptions=yes
5911 fi
5912 fi
5913 $rm conftest*
5914
5915fi
5916echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5917echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5918
5919if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5921else
5922 :
5923fi
5924
5925fi
5926
5927lt_prog_compiler_wl=
5928lt_prog_compiler_pic=
5929lt_prog_compiler_static=
5930
5931echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5932echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005933
5934 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005935 lt_prog_compiler_wl='-Wl,'
5936 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005937
5938 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005939 aix*)
5940 # All AIX code is PIC.
5941 if test "$host_cpu" = ia64; then
5942 # AIX 5 now supports IA64 processor
5943 lt_prog_compiler_static='-Bstatic'
5944 fi
John Criswell7a73b802003-06-30 21:59:07 +00005945 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005946
John Criswell7a73b802003-06-30 21:59:07 +00005947 amigaos*)
5948 # FIXME: we need at least 68020 code to build shared libraries, but
5949 # adding the `-m68020' flag to GCC prevents building anything better,
5950 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005952 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005953
5954 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005955 # PIC is the default for these OSes.
5956 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005957
5958 mingw* | pw32* | os2*)
5959 # This hack is so that the source file can tell whether it is being
5960 # built for inclusion in a dll (and should export symbols for example).
5961 lt_prog_compiler_pic='-DDLL_EXPORT'
5962 ;;
5963
John Criswell7a73b802003-06-30 21:59:07 +00005964 darwin* | rhapsody*)
5965 # PIC is the default on this platform
5966 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005967 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005968 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005969
5970 msdosdjgpp*)
5971 # Just because we use GCC doesn't mean we suddenly get shared libraries
5972 # on systems that don't support them.
5973 lt_prog_compiler_can_build_shared=no
5974 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005975 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005976
John Criswell7a73b802003-06-30 21:59:07 +00005977 sysv4*MP*)
5978 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005979 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005980 fi
5981 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005982
5983 hpux*)
5984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5985 # not for PA HP-UX.
5986 case "$host_cpu" in
5987 hppa*64*|ia64*)
5988 # +Z the default
5989 ;;
5990 *)
5991 lt_prog_compiler_pic='-fPIC'
5992 ;;
5993 esac
5994 ;;
5995
John Criswell7a73b802003-06-30 21:59:07 +00005996 *)
John Criswell47fdd832003-07-14 16:52:07 +00005997 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005998 ;;
5999 esac
6000 else
John Criswell47fdd832003-07-14 16:52:07 +00006001 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006002 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006003 aix*)
6004 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006005 if test "$host_cpu" = ia64; then
6006 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006007 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006008 else
John Criswell47fdd832003-07-14 16:52:07 +00006009 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006010 fi
6011 ;;
6012
John Criswell47fdd832003-07-14 16:52:07 +00006013 mingw* | pw32* | os2*)
6014 # This hack is so that the source file can tell whether it is being
6015 # built for inclusion in a dll (and should export symbols for example).
6016 lt_prog_compiler_pic='-DDLL_EXPORT'
6017 ;;
6018
John Criswell7a73b802003-06-30 21:59:07 +00006019 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006020 lt_prog_compiler_wl='-Wl,'
6021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6022 # not for PA HP-UX.
6023 case "$host_cpu" in
6024 hppa*64*|ia64*)
6025 # +Z the default
6026 ;;
6027 *)
6028 lt_prog_compiler_pic='+Z'
6029 ;;
6030 esac
6031 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6032 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006033 ;;
6034
John Criswell47fdd832003-07-14 16:52:07 +00006035 irix5* | irix6* | nonstopux*)
6036 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006037 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006038 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006039 ;;
6040
6041 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006042 lt_prog_compiler_pic='-KPIC'
6043 lt_prog_compiler_static='-Bstatic'
6044 ;;
6045
6046 linux*)
6047 case $CC in
6048 icc|ecc)
6049 lt_prog_compiler_wl='-Wl,'
6050 lt_prog_compiler_pic='-KPIC'
6051 lt_prog_compiler_static='-static'
6052 ;;
6053 ccc)
6054 lt_prog_compiler_wl='-Wl,'
6055 # All Alpha code is PIC.
6056 lt_prog_compiler_static='-non_shared'
6057 ;;
6058 esac
John Criswell7a73b802003-06-30 21:59:07 +00006059 ;;
6060
6061 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006062 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006063 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006064 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006065 ;;
6066
6067 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006068 lt_prog_compiler_pic='-Kpic'
6069 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006070 ;;
6071
6072 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006073 lt_prog_compiler_wl='-Wl,'
6074 lt_prog_compiler_pic='-KPIC'
6075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006076 ;;
6077
6078 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006079 lt_prog_compiler_wl='-Qoption ld '
6080 lt_prog_compiler_pic='-PIC'
6081 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006082 ;;
6083
6084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006085 lt_prog_compiler_wl='-Wl,'
6086 lt_prog_compiler_pic='-KPIC'
6087 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006088 ;;
6089
6090 sysv4*MP*)
6091 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006092 lt_prog_compiler_pic='-Kconform_pic'
6093 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006094 fi
6095 ;;
6096
John Criswell47fdd832003-07-14 16:52:07 +00006097 uts4*)
6098 lt_prog_compiler_pic='-pic'
6099 lt_prog_compiler_static='-Bstatic'
6100 ;;
6101
John Criswell7a73b802003-06-30 21:59:07 +00006102 *)
John Criswell47fdd832003-07-14 16:52:07 +00006103 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006104 ;;
6105 esac
6106 fi
6107
John Criswell47fdd832003-07-14 16:52:07 +00006108echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6109echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006110
John Criswell47fdd832003-07-14 16:52:07 +00006111#
6112# Check to make sure the PIC flag actually works.
6113#
6114if test -n "$lt_prog_compiler_pic"; then
6115 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6116echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6117if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
John Criswell47fdd832003-07-14 16:52:07 +00006120 lt_prog_compiler_pic_works=no
6121 ac_outfile=conftest.$ac_objext
6122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6123 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6124 # Insert the option either (1) after the last *FLAGS variable, or
6125 # (2) before a word containing "conftest.", or (3) at the end.
6126 # Note that $ac_compile itself does not contain backslashes and begins
6127 # with a dollar sign (not a hyphen), so the echo should work correctly.
6128 # The option is referenced via a variable to avoid confusing sed.
6129 lt_compile=`echo "$ac_compile" | $SED \
6130 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6132 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +00006133 (eval echo "\"\$as_me:6133: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006134 (eval "$lt_compile" 2>conftest.err)
6135 ac_status=$?
6136 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +00006137 echo "$as_me:6137: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006138 if (exit $ac_status) && test -s "$ac_outfile"; then
6139 # The compiler can only warn and ignore the option if not recognized
6140 # So say no if there are warnings
6141 if test ! -s conftest.err; then
6142 lt_prog_compiler_pic_works=yes
6143 fi
6144 fi
6145 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006146
John Criswell47fdd832003-07-14 16:52:07 +00006147fi
6148echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6149echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006150
John Criswell47fdd832003-07-14 16:52:07 +00006151if test x"$lt_prog_compiler_pic_works" = xyes; then
6152 case $lt_prog_compiler_pic in
6153 "" | " "*) ;;
6154 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6155 esac
John Criswell7a73b802003-06-30 21:59:07 +00006156else
John Criswell47fdd832003-07-14 16:52:07 +00006157 lt_prog_compiler_pic=
6158 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006159fi
6160
John Criswell7a73b802003-06-30 21:59:07 +00006161fi
John Criswell47fdd832003-07-14 16:52:07 +00006162case "$host_os" in
6163 # For platforms which do not support PIC, -DPIC is meaningless:
6164 *djgpp*)
6165 lt_prog_compiler_pic=
6166 ;;
6167 *)
6168 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6169 ;;
6170esac
John Criswell7a73b802003-06-30 21:59:07 +00006171
John Criswell7a73b802003-06-30 21:59:07 +00006172echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6173echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006174if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
John Criswell47fdd832003-07-14 16:52:07 +00006177 lt_cv_prog_compiler_c_o=no
6178 $rm -r conftest 2>/dev/null
6179 mkdir conftest
6180 cd conftest
6181 mkdir out
6182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006183
John Criswell47fdd832003-07-14 16:52:07 +00006184 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6185 # that will create temporary files in the current directory regardless of
6186 # the output directory. Thus, making CWD read-only will cause this test
6187 # to fail, enabling locking or at least warning the user not to do parallel
6188 # builds.
6189 chmod -w .
6190
6191 lt_compiler_flag="-o out/conftest2.$ac_objext"
6192 # Insert the option either (1) after the last *FLAGS variable, or
6193 # (2) before a word containing "conftest.", or (3) at the end.
6194 # Note that $ac_compile itself does not contain backslashes and begins
6195 # with a dollar sign (not a hyphen), so the echo should work correctly.
6196 lt_compile=`echo "$ac_compile" | $SED \
6197 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6199 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +00006200 (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006201 (eval "$lt_compile" 2>out/conftest.err)
6202 ac_status=$?
6203 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +00006204 echo "$as_me:6204: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6206 then
6207 # The compiler can only warn and ignore the option if not recognized
6208 # So say no if there are warnings
6209 if test ! -s out/conftest.err; then
6210 lt_cv_prog_compiler_c_o=yes
6211 fi
6212 fi
6213 chmod u+w .
6214 $rm conftest* out/*
6215 rmdir out
6216 cd ..
6217 rmdir conftest
6218 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006219
6220fi
John Criswell47fdd832003-07-14 16:52:07 +00006221echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6222echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006223
John Criswell7a73b802003-06-30 21:59:07 +00006224
John Criswell7a73b802003-06-30 21:59:07 +00006225hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006226if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006227 # do not overwrite the value of need_locks provided by the user
6228 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6229echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6230 hard_links=yes
6231 $rm conftest*
6232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6233 touch conftest.a
6234 ln conftest.a conftest.b 2>&5 || hard_links=no
6235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6236 echo "$as_me:$LINENO: result: $hard_links" >&5
6237echo "${ECHO_T}$hard_links" >&6
6238 if test "$hard_links" = no; then
6239 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6240echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6241 need_locks=warn
6242 fi
6243else
6244 need_locks=no
6245fi
John Criswell7a73b802003-06-30 21:59:07 +00006246
John Criswell47fdd832003-07-14 16:52:07 +00006247echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6248echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6249
6250 runpath_var=
6251 allow_undefined_flag=
6252 enable_shared_with_static_runtimes=no
6253 archive_cmds=
6254 archive_expsym_cmds=
6255 old_archive_From_new_cmds=
6256 old_archive_from_expsyms_cmds=
6257 export_dynamic_flag_spec=
6258 whole_archive_flag_spec=
6259 thread_safe_flag_spec=
6260 hardcode_libdir_flag_spec=
6261 hardcode_libdir_flag_spec_ld=
6262 hardcode_libdir_separator=
6263 hardcode_direct=no
6264 hardcode_minus_L=no
6265 hardcode_shlibpath_var=unsupported
6266 link_all_deplibs=unknown
6267 hardcode_automatic=no
6268 module_cmds=
6269 module_expsym_cmds=
6270 always_export_symbols=no
6271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6272 # include_expsyms should be a list of space-separated symbols to be *always*
6273 # included in the symbol list
6274 include_expsyms=
6275 # exclude_expsyms can be an extended regexp of symbols to exclude
6276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6278 # as well as any symbol that contains `d'.
6279 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6281 # platforms (ab)use it in PIC code, but their linkers get confused if
6282 # the symbol is explicitly referenced. Since portable code cannot
6283 # rely on this symbol name, it's probably fine to never include it in
6284 # preloaded symbol tables.
6285 extract_expsyms_cmds=
6286
6287 case $host_os in
6288 cygwin* | mingw* | pw32*)
6289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6290 # When not using gcc, we currently assume that we are using
6291 # Microsoft Visual C++.
6292 if test "$GCC" != yes; then
6293 with_gnu_ld=no
6294 fi
6295 ;;
6296 openbsd*)
6297 with_gnu_ld=no
6298 ;;
6299 esac
6300
6301 ld_shlibs=yes
6302 if test "$with_gnu_ld" = yes; then
6303 # If archive_cmds runs LD, not CC, wlarc should be empty
6304 wlarc='${wl}'
6305
6306 # See if GNU ld supports shared libraries.
6307 case $host_os in
6308 aix3* | aix4* | aix5*)
6309 # On AIX/PPC, the GNU linker is very broken
6310 if test "$host_cpu" != ia64; then
6311 ld_shlibs=no
6312 cat <<EOF 1>&2
6313
6314*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6315*** to be unable to reliably create shared libraries on AIX.
6316*** Therefore, libtool is disabling shared libraries support. If you
6317*** really care for shared libraries, you may want to modify your PATH
6318*** so that a non-GNU linker is found, and then restart.
6319
6320EOF
6321 fi
6322 ;;
6323
6324 amigaos*)
6325 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)'
6326 hardcode_libdir_flag_spec='-L$libdir'
6327 hardcode_minus_L=yes
6328
6329 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6330 # that the semantics of dynamic libraries on AmigaOS, at least up
6331 # to version 4, is to share data among multiple programs linked
6332 # with the same dynamic library. Since this doesn't match the
6333 # behavior of shared libraries on other platforms, we can't use
6334 # them.
6335 ld_shlibs=no
6336 ;;
6337
6338 beos*)
6339 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6340 allow_undefined_flag=unsupported
6341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6342 # support --undefined. This deserves some investigation. FIXME
6343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6344 else
6345 ld_shlibs=no
6346 fi
6347 ;;
6348
6349 cygwin* | mingw* | pw32*)
6350 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6351 # as there is no search path for DLLs.
6352 hardcode_libdir_flag_spec='-L$libdir'
6353 allow_undefined_flag=unsupported
6354 always_export_symbols=no
6355 enable_shared_with_static_runtimes=yes
6356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6357
6358 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6360 # If the export-symbols file already is a .def file (1st line
6361 # is EXPORTS), use it as is; otherwise, prepend...
6362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6363 cp $export_symbols $output_objdir/$soname.def;
6364 else
6365 echo EXPORTS > $output_objdir/$soname.def;
6366 cat $export_symbols >> $output_objdir/$soname.def;
6367 fi~
6368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6369 else
6370 ld_shlibs=no
6371 fi
6372 ;;
6373
6374 netbsd*)
6375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6377 wlarc=
6378 else
6379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6381 fi
6382 ;;
6383
6384 solaris* | sysv5*)
6385 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6386 ld_shlibs=no
6387 cat <<EOF 1>&2
6388
6389*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6390*** create shared libraries on Solaris systems. Therefore, libtool
6391*** is disabling shared libraries support. We urge you to upgrade GNU
6392*** binutils to release 2.9.1 or newer. Another option is to modify
6393*** your PATH or compiler configuration so that the native linker is
6394*** used, and then restart.
6395
6396EOF
6397 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6400 else
6401 ld_shlibs=no
6402 fi
6403 ;;
6404
6405 sunos4*)
6406 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6407 wlarc=
6408 hardcode_direct=yes
6409 hardcode_shlibpath_var=no
6410 ;;
6411
6412 *)
6413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6416 else
6417 ld_shlibs=no
6418 fi
6419 ;;
6420 esac
6421
6422 if test "$ld_shlibs" = yes; then
6423 runpath_var=LD_RUN_PATH
6424 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6425 export_dynamic_flag_spec='${wl}--export-dynamic'
6426 # ancient GNU ld didn't support --whole-archive et. al.
6427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6429 else
6430 whole_archive_flag_spec=
6431 fi
6432 fi
6433 else
6434 # PORTME fill in a description of your system's linker (not GNU ld)
6435 case $host_os in
6436 aix3*)
6437 allow_undefined_flag=unsupported
6438 always_export_symbols=yes
6439 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'
6440 # Note: this linker hardcodes the directories in LIBPATH if there
6441 # are no directories specified by -L.
6442 hardcode_minus_L=yes
6443 if test "$GCC" = yes && test -z "$link_static_flag"; then
6444 # Neither direct hardcoding nor static linking is supported with a
6445 # broken collect2.
6446 hardcode_direct=unsupported
6447 fi
6448 ;;
6449
6450 aix4* | aix5*)
6451 if test "$host_cpu" = ia64; then
6452 # On IA64, the linker does run time linking by default, so we don't
6453 # have to do anything special.
6454 aix_use_runtimelinking=no
6455 exp_sym_flag='-Bexport'
6456 no_entry_flag=""
6457 else
6458 # If we're using GNU nm, then we don't want the "-C" option.
6459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6461 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'
6462 else
6463 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'
6464 fi
6465 aix_use_runtimelinking=no
6466
6467 # Test if we are trying to use run time linking or normal
6468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6469 # need to do runtime linking.
6470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6471 for ld_flag in $LDFLAGS; do
6472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6473 aix_use_runtimelinking=yes
6474 break
6475 fi
6476 done
6477 esac
6478
6479 exp_sym_flag='-bexport'
6480 no_entry_flag='-bnoentry'
6481 fi
6482
6483 # When large executables or shared objects are built, AIX ld can
6484 # have problems creating the table of contents. If linking a library
6485 # or program results in "error TOC overflow" add -mminimal-toc to
6486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6488
6489 archive_cmds=''
6490 hardcode_direct=yes
6491 hardcode_libdir_separator=':'
6492 link_all_deplibs=yes
6493
6494 if test "$GCC" = yes; then
6495 case $host_os in aix4.012|aix4.012.*)
6496 # We only want to do this on AIX 4.2 and lower, the check
6497 # below for broken collect2 doesn't work under 4.3+
6498 collect2name=`${CC} -print-prog-name=collect2`
6499 if test -f "$collect2name" && \
6500 strings "$collect2name" | grep resolve_lib_name >/dev/null
6501 then
6502 # We have reworked collect2
6503 hardcode_direct=yes
6504 else
6505 # We have old collect2
6506 hardcode_direct=unsupported
6507 # It fails to find uninstalled libraries when the uninstalled
6508 # path is not listed in the libpath. Setting hardcode_minus_L
6509 # to unsupported forces relinking
6510 hardcode_minus_L=yes
6511 hardcode_libdir_flag_spec='-L$libdir'
6512 hardcode_libdir_separator=
6513 fi
6514 esac
6515 shared_flag='-shared'
6516 else
6517 # not using gcc
6518 if test "$host_cpu" = ia64; then
6519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6520 # chokes on -Wl,-G. The following line is correct:
6521 shared_flag='-G'
6522 else
6523 if test "$aix_use_runtimelinking" = yes; then
6524 shared_flag='${wl}-G'
6525 else
6526 shared_flag='${wl}-bM:SRE'
6527 fi
6528 fi
6529 fi
6530
6531 # It seems that -bexpall does not export symbols beginning with
6532 # underscore (_), so it is better to generate a list of symbols to export.
6533 always_export_symbols=yes
6534 if test "$aix_use_runtimelinking" = yes; then
6535 # Warning - without using the other runtime loading flags (-brtl),
6536 # -berok will link without error, but may produce a broken library.
6537 allow_undefined_flag='-berok'
6538 # Determine the default libpath from the value encoded in an empty executable.
6539 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006540#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006546
John Criswell7a73b802003-06-30 21:59:07 +00006547int
6548main ()
6549{
John Criswell47fdd832003-07-14 16:52:07 +00006550
John Criswell7a73b802003-06-30 21:59:07 +00006551 ;
6552 return 0;
6553}
6554_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006555rm -f conftest.$ac_objext conftest$ac_exeext
6556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006561 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006567
John Criswell47fdd832003-07-14 16:52:07 +00006568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6569}'`
6570# Check for a 64-bit object if we didn't find anything.
6571if 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; }
6572}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006573else
6574 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006575sed 's/^/| /' conftest.$ac_ext >&5
6576
John Criswell7a73b802003-06-30 21:59:07 +00006577fi
John Criswell47fdd832003-07-14 16:52:07 +00006578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006580
John Criswell47fdd832003-07-14 16:52:07 +00006581 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6582 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"
6583 else
6584 if test "$host_cpu" = ia64; then
6585 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6586 allow_undefined_flag="-z nodefs"
6587 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"
6588 else
6589 # Determine the default libpath from the value encoded in an empty executable.
6590 cat >conftest.$ac_ext <<_ACEOF
6591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006597
John Criswell47fdd832003-07-14 16:52:07 +00006598int
6599main ()
6600{
John Criswell7a73b802003-06-30 21:59:07 +00006601
John Criswell47fdd832003-07-14 16:52:07 +00006602 ;
6603 return 0;
6604}
6605_ACEOF
6606rm -f conftest.$ac_objext conftest$ac_exeext
6607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006618
John Criswell47fdd832003-07-14 16:52:07 +00006619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6620}'`
6621# Check for a 64-bit object if we didn't find anything.
6622if 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; }
6623}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006624else
John Criswell47fdd832003-07-14 16:52:07 +00006625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006626sed 's/^/| /' conftest.$ac_ext >&5
6627
John Criswell47fdd832003-07-14 16:52:07 +00006628fi
6629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006631
John Criswell47fdd832003-07-14 16:52:07 +00006632 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6633 # Warning - without using the other run time loading flags,
6634 # -berok will link without error, but may produce a broken library.
6635 no_undefined_flag=' ${wl}-bernotok'
6636 allow_undefined_flag=' ${wl}-berok'
6637 # -bexpall does not export symbols beginning with underscore (_)
6638 always_export_symbols=yes
6639 # Exported symbols can be pulled into shared objects from archives
6640 whole_archive_flag_spec=' '
6641 archive_cmds_need_lc=yes
6642 # This is similar to how AIX traditionally builds it's shared libraries.
6643 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 +00006644 fi
6645 fi
John Criswell7a73b802003-06-30 21:59:07 +00006646 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006647
6648 amigaos*)
6649 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)'
6650 hardcode_libdir_flag_spec='-L$libdir'
6651 hardcode_minus_L=yes
6652 # see comment about different semantics on the GNU ld section
6653 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006654 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006655
John Criswell47fdd832003-07-14 16:52:07 +00006656 bsdi4*)
6657 export_dynamic_flag_spec=-rdynamic
6658 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006659
John Criswell47fdd832003-07-14 16:52:07 +00006660 cygwin* | mingw* | pw32*)
6661 # When not using gcc, we currently assume that we are using
6662 # Microsoft Visual C++.
6663 # hardcode_libdir_flag_spec is actually meaningless, as there is
6664 # no search path for DLLs.
6665 hardcode_libdir_flag_spec=' '
6666 allow_undefined_flag=unsupported
6667 # Tell ltmain to make .lib files, not .a files.
6668 libext=lib
6669 # Tell ltmain to make .dll files, not .so files.
6670 shrext=".dll"
6671 # FIXME: Setting linknames here is a bad hack.
6672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6673 # The linker will automatically build a .lib file if we build a DLL.
6674 old_archive_From_new_cmds='true'
6675 # FIXME: Should let the user specify the lib program.
6676 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6677 fix_srcfile_path='`cygpath -w "$srcfile"`'
6678 enable_shared_with_static_runtimes=yes
6679 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006680
John Criswell47fdd832003-07-14 16:52:07 +00006681 darwin* | rhapsody*)
6682 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6683 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006684 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006685 rhapsody* | darwin1.[012])
6686 allow_undefined_flag='-undefined suppress'
6687 ;;
6688 *) # Darwin 1.3 on
6689 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006690 ;;
6691 esac
John Criswell47fdd832003-07-14 16:52:07 +00006692 # FIXME: Relying on posixy $() will cause problems for
6693 # cross-compilation, but unfortunately the echo tests do not
6694 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6695 # `"' quotes if we put them in here... so don't!
6696 lt_int_apple_cc_single_mod=no
6697 output_verbose_link_cmd='echo'
6698 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6699 lt_int_apple_cc_single_mod=yes
6700 fi
6701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6702 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6703 else
6704 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6705 fi
6706 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6709 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6710 else
6711 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6712 fi
6713 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6714 hardcode_direct=no
6715 hardcode_automatic=yes
6716 hardcode_shlibpath_var=unsupported
6717 whole_archive_flag_spec='-all_load $convenience'
6718 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006719 fi
John Criswell47fdd832003-07-14 16:52:07 +00006720 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006721
John Criswell47fdd832003-07-14 16:52:07 +00006722 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006724 hardcode_libdir_flag_spec='-L$libdir'
6725 hardcode_shlibpath_var=no
6726 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006727
John Criswell47fdd832003-07-14 16:52:07 +00006728 freebsd1*)
6729 ld_shlibs=no
6730 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006731
John Criswell47fdd832003-07-14 16:52:07 +00006732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6733 # support. Future versions do this automatically, but an explicit c++rt0.o
6734 # does not break anything, and helps significantly (at the cost of a little
6735 # extra space).
6736 freebsd2.2*)
6737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6738 hardcode_libdir_flag_spec='-R$libdir'
6739 hardcode_direct=yes
6740 hardcode_shlibpath_var=no
6741 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006742
John Criswell47fdd832003-07-14 16:52:07 +00006743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6744 freebsd2*)
6745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6746 hardcode_direct=yes
6747 hardcode_minus_L=yes
6748 hardcode_shlibpath_var=no
6749 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006750
John Criswell47fdd832003-07-14 16:52:07 +00006751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6752 freebsd*)
6753 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6754 hardcode_libdir_flag_spec='-R$libdir'
6755 hardcode_direct=yes
6756 hardcode_shlibpath_var=no
6757 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006758
John Criswell47fdd832003-07-14 16:52:07 +00006759 hpux9*)
6760 if test "$GCC" = yes; then
6761 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'
6762 else
6763 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'
6764 fi
6765 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6766 hardcode_libdir_separator=:
6767 hardcode_direct=yes
6768
6769 # hardcode_minus_L: Not really in the search PATH,
6770 # but as the default location of the library.
6771 hardcode_minus_L=yes
6772 export_dynamic_flag_spec='${wl}-E'
6773 ;;
6774
6775 hpux10* | hpux11*)
6776 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6777 case "$host_cpu" in
6778 hppa*64*|ia64*)
6779 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6780 ;;
6781 *)
6782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6783 ;;
6784 esac
6785 else
6786 case "$host_cpu" in
6787 hppa*64*|ia64*)
6788 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6789 ;;
6790 *)
6791 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6792 ;;
6793 esac
6794 fi
6795 if test "$with_gnu_ld" = no; then
6796 case "$host_cpu" in
6797 hppa*64*)
6798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799 hardcode_libdir_flag_spec_ld='+b $libdir'
6800 hardcode_libdir_separator=:
6801 hardcode_direct=no
6802 hardcode_shlibpath_var=no
6803 ;;
6804 ia64*)
6805 hardcode_libdir_flag_spec='-L$libdir'
6806 hardcode_direct=no
6807 hardcode_shlibpath_var=no
6808
6809 # hardcode_minus_L: Not really in the search PATH,
6810 # but as the default location of the library.
6811 hardcode_minus_L=yes
6812 ;;
6813 *)
6814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6815 hardcode_libdir_separator=:
6816 hardcode_direct=yes
6817 export_dynamic_flag_spec='${wl}-E'
6818
6819 # hardcode_minus_L: Not really in the search PATH,
6820 # but as the default location of the library.
6821 hardcode_minus_L=yes
6822 ;;
6823 esac
6824 fi
6825 ;;
6826
6827 irix5* | irix6* | nonstopux*)
6828 if test "$GCC" = yes; then
6829 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'
6830 else
6831 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'
6832 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6833 fi
6834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6835 hardcode_libdir_separator=:
6836 link_all_deplibs=yes
6837 ;;
6838
6839 netbsd*)
6840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6842 else
6843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6844 fi
6845 hardcode_libdir_flag_spec='-R$libdir'
6846 hardcode_direct=yes
6847 hardcode_shlibpath_var=no
6848 ;;
6849
6850 newsos6)
6851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6852 hardcode_direct=yes
6853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6854 hardcode_libdir_separator=:
6855 hardcode_shlibpath_var=no
6856 ;;
6857
6858 openbsd*)
6859 hardcode_direct=yes
6860 hardcode_shlibpath_var=no
6861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6864 export_dynamic_flag_spec='${wl}-E'
6865 else
6866 case $host_os in
6867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6869 hardcode_libdir_flag_spec='-R$libdir'
6870 ;;
6871 *)
6872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6874 ;;
6875 esac
6876 fi
6877 ;;
6878
6879 os2*)
6880 hardcode_libdir_flag_spec='-L$libdir'
6881 hardcode_minus_L=yes
6882 allow_undefined_flag=unsupported
6883 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'
6884 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6885 ;;
6886
6887 osf3*)
6888 if test "$GCC" = yes; then
6889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6890 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'
6891 else
6892 allow_undefined_flag=' -expect_unresolved \*'
6893 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'
6894 fi
6895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6896 hardcode_libdir_separator=:
6897 ;;
6898
6899 osf4* | osf5*) # as osf3* with the addition of -msym flag
6900 if test "$GCC" = yes; then
6901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6902 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'
6903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6904 else
6905 allow_undefined_flag=' -expect_unresolved \*'
6906 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'
6907 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6908 $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'
6909
6910 # Both c and cxx compiler support -rpath directly
6911 hardcode_libdir_flag_spec='-rpath $libdir'
6912 fi
6913 hardcode_libdir_separator=:
6914 ;;
6915
6916 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6918 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006919 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006920 runpath_var=LD_RUN_PATH
6921 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006922 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006923
John Criswell47fdd832003-07-14 16:52:07 +00006924 solaris*)
6925 no_undefined_flag=' -z text'
6926 if test "$GCC" = yes; then
6927 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6928 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6929 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6930 else
6931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6932 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6934 fi
6935 hardcode_libdir_flag_spec='-R$libdir'
6936 hardcode_shlibpath_var=no
6937 case $host_os in
6938 solaris2.[0-5] | solaris2.[0-5].*) ;;
6939 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6940 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6941 esac
6942 link_all_deplibs=yes
6943 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006944
John Criswell47fdd832003-07-14 16:52:07 +00006945 sunos4*)
6946 if test "x$host_vendor" = xsequent; then
6947 # Use $CC to link under sequent, because it throws in some extra .o
6948 # files that make .init and .fini sections work.
6949 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6950 else
6951 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6952 fi
6953 hardcode_libdir_flag_spec='-L$libdir'
6954 hardcode_direct=yes
6955 hardcode_minus_L=yes
6956 hardcode_shlibpath_var=no
6957 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006958
John Criswell47fdd832003-07-14 16:52:07 +00006959 sysv4)
6960 case $host_vendor in
6961 sni)
6962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6963 hardcode_direct=yes # is this really true???
6964 ;;
6965 siemens)
6966 ## LD is ld it makes a PLAMLIB
6967 ## CC just makes a GrossModule.
6968 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6969 reload_cmds='$CC -r -o $output$reload_objs'
6970 hardcode_direct=no
6971 ;;
6972 motorola)
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6975 ;;
6976 esac
6977 runpath_var='LD_RUN_PATH'
6978 hardcode_shlibpath_var=no
6979 ;;
6980
6981 sysv4.3*)
6982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983 hardcode_shlibpath_var=no
6984 export_dynamic_flag_spec='-Bexport'
6985 ;;
6986
6987 sysv4*MP*)
6988 if test -d /usr/nec; then
6989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6990 hardcode_shlibpath_var=no
6991 runpath_var=LD_RUN_PATH
6992 hardcode_runpath_var=yes
6993 ld_shlibs=yes
6994 fi
6995 ;;
6996
6997 sysv4.2uw2*)
6998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6999 hardcode_direct=yes
7000 hardcode_minus_L=no
7001 hardcode_shlibpath_var=no
7002 hardcode_runpath_var=yes
7003 runpath_var=LD_RUN_PATH
7004 ;;
7005
7006 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7007 no_undefined_flag='${wl}-z ${wl}text'
7008 if test "$GCC" = yes; then
7009 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7010 else
7011 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7012 fi
7013 runpath_var='LD_RUN_PATH'
7014 hardcode_shlibpath_var=no
7015 ;;
7016
7017 sysv5*)
7018 no_undefined_flag=' -z text'
7019 # $CC -shared without GNU ld will not create a library from C++
7020 # object files and a static libstdc++, better avoid it by now
7021 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7022 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7024 hardcode_libdir_flag_spec=
7025 hardcode_shlibpath_var=no
7026 runpath_var='LD_RUN_PATH'
7027 ;;
7028
7029 uts4*)
7030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7031 hardcode_libdir_flag_spec='-L$libdir'
7032 hardcode_shlibpath_var=no
7033 ;;
7034
7035 *)
7036 ld_shlibs=no
7037 ;;
7038 esac
7039 fi
7040
John Criswell7a73b802003-06-30 21:59:07 +00007041echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7042echo "${ECHO_T}$ld_shlibs" >&6
7043test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007044
John Criswell47fdd832003-07-14 16:52:07 +00007045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7046if test "$GCC" = yes; then
7047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7048fi
7049
7050#
7051# Do we need to explicitly link libc?
7052#
7053case "x$archive_cmds_need_lc" in
7054x|xyes)
7055 # Assume -lc should be added
7056 archive_cmds_need_lc=yes
7057
7058 if test "$enable_shared" = yes && test "$GCC" = yes; then
7059 case $archive_cmds in
7060 *'~'*)
7061 # FIXME: we may have to deal with multi-command sequences.
7062 ;;
7063 '$CC '*)
7064 # Test whether the compiler implicitly links with -lc since on some
7065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7066 # to ld, don't add -lc before -lgcc.
7067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7069 $rm conftest*
7070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7071
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073 (eval $ac_compile) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } 2>conftest.err; then
7077 soname=conftest
7078 lib=conftest
7079 libobjs=conftest.$ac_objext
7080 deplibs=
7081 wl=$lt_prog_compiler_wl
7082 compiler_flags=-v
7083 linker_flags=-v
7084 verstring=
7085 output_objdir=.
7086 libname=conftest
7087 lt_save_allow_undefined_flag=$allow_undefined_flag
7088 allow_undefined_flag=
7089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7090 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }
7094 then
7095 archive_cmds_need_lc=no
7096 else
7097 archive_cmds_need_lc=yes
7098 fi
7099 allow_undefined_flag=$lt_save_allow_undefined_flag
7100 else
7101 cat conftest.err 1>&5
7102 fi
7103 $rm conftest*
7104 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7105echo "${ECHO_T}$archive_cmds_need_lc" >&6
7106 ;;
7107 esac
7108 fi
7109 ;;
7110esac
7111
John Criswell7a73b802003-06-30 21:59:07 +00007112echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7113echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7114hardcode_action=
7115if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007116 test -n "$runpath_var " || \
7117 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007118
7119 # We can hardcode non-existant directories.
7120 if test "$hardcode_direct" != no &&
7121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7122 # have to relink, otherwise we might link with an installed library
7123 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007125 test "$hardcode_minus_L" != no; then
7126 # Linking always hardcodes the temporary library directory.
7127 hardcode_action=relink
7128 else
7129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7130 hardcode_action=immediate
7131 fi
7132else
7133 # We cannot hardcode anything, or else we can only hardcode existing
7134 # directories.
7135 hardcode_action=unsupported
7136fi
7137echo "$as_me:$LINENO: result: $hardcode_action" >&5
7138echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007139
John Criswell47fdd832003-07-14 16:52:07 +00007140if test "$hardcode_action" = relink; then
7141 # Fast installation is not supported
7142 enable_fast_install=no
7143elif test "$shlibpath_overrides_runpath" = yes ||
7144 test "$enable_shared" = no; then
7145 # Fast installation is not necessary
7146 enable_fast_install=needless
7147fi
7148
John Criswell7a73b802003-06-30 21:59:07 +00007149striplib=
7150old_striplib=
7151echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7152echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7153if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7156 echo "$as_me:$LINENO: result: yes" >&5
7157echo "${ECHO_T}yes" >&6
7158else
John Criswell47fdd832003-07-14 16:52:07 +00007159# FIXME - insert some real tests, host_os isn't really good enough
7160 case $host_os in
7161 darwin*)
7162 if test -n "$STRIP" ; then
7163 striplib="$STRIP -x"
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
John Criswell7a73b802003-06-30 21:59:07 +00007167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169fi
John Criswell47fdd832003-07-14 16:52:07 +00007170 ;;
7171 *)
7172 echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6
7174 ;;
7175 esac
7176fi
John Criswell7a73b802003-06-30 21:59:07 +00007177
John Criswell7a73b802003-06-30 21:59:07 +00007178echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7179echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7180library_names_spec=
7181libname_spec='lib$name'
7182soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007183shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007184postinstall_cmds=
7185postuninstall_cmds=
7186finish_cmds=
7187finish_eval=
7188shlibpath_var=
7189shlibpath_overrides_runpath=unknown
7190version_type=none
7191dynamic_linker="$host_os ld.so"
7192sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007193if test "$GCC" = yes; then
7194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7195 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7196 # if the path contains ";" then we assume it to be the separator
7197 # otherwise default to the standard path separator (i.e. ":") - it is
7198 # assumed that no part of a normal pathname contains ";" but that should
7199 # okay in the real world where ";" in dirpaths is itself problematic.
7200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7201 else
7202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7203 fi
7204else
7205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7206fi
7207need_lib_prefix=unknown
7208hardcode_into_libs=no
7209
7210# when you set need_version to no, make sure it does not cause -set_version
7211# flags to be left without arguments
7212need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007213
7214case $host_os in
7215aix3*)
7216 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007218 shlibpath_var=LIBPATH
7219
John Criswell47fdd832003-07-14 16:52:07 +00007220 # AIX 3 has no versioning support, so we append a major version to the name.
7221 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007222 ;;
7223
7224aix4* | aix5*)
7225 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007226 need_lib_prefix=no
7227 need_version=no
7228 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007229 if test "$host_cpu" = ia64; then
7230 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007232 shlibpath_var=LD_LIBRARY_PATH
7233 else
7234 # With GCC up to 2.95.x, collect2 would create an import file
7235 # for dependence libraries. The import file would start with
7236 # the line `#! .'. This would cause the generated library to
7237 # depend on `.', always an invalid library. This was fixed in
7238 # development snapshots of GCC prior to 3.0.
7239 case $host_os in
7240 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7242 echo ' yes '
7243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7244 :
7245 else
7246 can_build_shared=no
7247 fi
7248 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007249 esac
John Criswell47fdd832003-07-14 16:52:07 +00007250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7251 # soname into executable. Probably we can add versioning support to
7252 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007253 if test "$aix_use_runtimelinking" = yes; then
7254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7255 # instead of lib<name>.a to let people know that these are not
7256 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007258 else
7259 # We preserve .a as extension for shared libraries through AIX4.2
7260 # and later when we are not doing run time linking.
7261 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007262 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007263 fi
7264 shlibpath_var=LIBPATH
7265 fi
7266 ;;
7267
7268amigaos*)
7269 library_names_spec='$libname.ixlibrary $libname.a'
7270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7271 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'
7272 ;;
7273
7274beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007275 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007276 dynamic_linker="$host_os ld.so"
7277 shlibpath_var=LIBRARY_PATH
7278 ;;
7279
7280bsdi4*)
7281 version_type=linux
7282 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7284 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7286 shlibpath_var=LD_LIBRARY_PATH
7287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007289 # the default ld.so.conf also contains /usr/contrib/lib and
7290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7291 # libtool to hard-code these into programs
7292 ;;
7293
7294cygwin* | mingw* | pw32*)
7295 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007296 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007297 need_version=no
7298 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007299
John Criswell7a73b802003-06-30 21:59:07 +00007300 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007301 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007302 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7304 postinstall_cmds='base_file=`basename \${file}`~
7305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007306 dldir=$destdir/`dirname \$dlpath`~
7307 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007308 $install_prog $dir/$dlname \$dldir/$dlname'
7309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007310 dlpath=$dir/\$dldll~
7311 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007312 shlibpath_overrides_runpath=yes
7313
7314 case $host_os in
7315 cygwin*)
7316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7318 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7319 ;;
7320 mingw*)
7321 # MinGW DLLs use traditional 'lib' prefix
7322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7325 # It is most probably a Windows format PATH printed by
7326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7327 # path with ; separators, and with drive letters. We can handle the
7328 # drive letters (cygwin fileutils understands them), so leave them,
7329 # especially as we might pass files found there to a mingw objdump,
7330 # which wouldn't understand a cygwinified path. Ahh.
7331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7332 else
7333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7334 fi
7335 ;;
7336 pw32*)
7337 # pw32 DLLs use 'pw' prefix rather than 'lib'
7338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7339 ;;
7340 esac
John Criswell7a73b802003-06-30 21:59:07 +00007341 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007342
John Criswell7a73b802003-06-30 21:59:07 +00007343 *)
John Criswell47fdd832003-07-14 16:52:07 +00007344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007345 ;;
7346 esac
7347 dynamic_linker='Win32 ld.exe'
7348 # FIXME: first we should search . and the directory the executable is in
7349 shlibpath_var=PATH
7350 ;;
7351
7352darwin* | rhapsody*)
7353 dynamic_linker="$host_os dyld"
7354 version_type=darwin
7355 need_lib_prefix=no
7356 need_version=no
7357 # FIXME: Relying on posixy $() will cause problems for
7358 # cross-compilation, but unfortunately the echo tests do not
7359 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7361 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007362 shlibpath_overrides_runpath=yes
7363 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007364 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7366 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7367 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"`
7368 fi
7369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7370 ;;
7371
7372dgux*)
7373 version_type=linux
7374 need_lib_prefix=no
7375 need_version=no
7376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7377 soname_spec='${libname}${release}${shared_ext}$major'
7378 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007379 ;;
7380
7381freebsd1*)
7382 dynamic_linker=no
7383 ;;
7384
7385freebsd*)
7386 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7387 version_type=freebsd-$objformat
7388 case $version_type in
7389 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007391 need_version=no
7392 need_lib_prefix=no
7393 ;;
7394 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007396 need_version=yes
7397 ;;
7398 esac
7399 shlibpath_var=LD_LIBRARY_PATH
7400 case $host_os in
7401 freebsd2*)
7402 shlibpath_overrides_runpath=yes
7403 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007404 freebsd3.01* | freebsdelf3.01*)
7405 shlibpath_overrides_runpath=yes
7406 hardcode_into_libs=yes
7407 ;;
7408 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007409 shlibpath_overrides_runpath=no
7410 hardcode_into_libs=yes
7411 ;;
7412 esac
7413 ;;
7414
7415gnu*)
7416 version_type=linux
7417 need_lib_prefix=no
7418 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007421 shlibpath_var=LD_LIBRARY_PATH
7422 hardcode_into_libs=yes
7423 ;;
7424
7425hpux9* | hpux10* | hpux11*)
7426 # Give a soname corresponding to the major version so that dld.sl refuses to
7427 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007428 version_type=sunos
7429 need_lib_prefix=no
7430 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007431 case "$host_cpu" in
7432 ia64*)
7433 shrext='.so'
7434 hardcode_into_libs=yes
7435 dynamic_linker="$host_os dld.so"
7436 shlibpath_var=LD_LIBRARY_PATH
7437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7439 soname_spec='${libname}${release}${shared_ext}$major'
7440 if test "X$HPUX_IA64_MODE" = X32; then
7441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7442 else
7443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7444 fi
7445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7446 ;;
7447 hppa*64*)
7448 shrext='.sl'
7449 hardcode_into_libs=yes
7450 dynamic_linker="$host_os dld.sl"
7451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7454 soname_spec='${libname}${release}${shared_ext}$major'
7455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7457 ;;
7458 *)
7459 shrext='.sl'
7460 dynamic_linker="$host_os dld.sl"
7461 shlibpath_var=SHLIB_PATH
7462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7464 soname_spec='${libname}${release}${shared_ext}$major'
7465 ;;
7466 esac
John Criswell7a73b802003-06-30 21:59:07 +00007467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7468 postinstall_cmds='chmod 555 $lib'
7469 ;;
7470
John Criswell47fdd832003-07-14 16:52:07 +00007471irix5* | irix6* | nonstopux*)
7472 case $host_os in
7473 nonstopux*) version_type=nonstopux ;;
7474 *)
7475 if test "$lt_cv_prog_gnu_ld" = yes; then
7476 version_type=linux
7477 else
7478 version_type=irix
7479 fi ;;
7480 esac
John Criswell7a73b802003-06-30 21:59:07 +00007481 need_lib_prefix=no
7482 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007483 soname_spec='${libname}${release}${shared_ext}$major'
7484 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 +00007485 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007486 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007487 libsuff= shlibsuff=
7488 ;;
7489 *)
7490 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7492 libsuff= shlibsuff= libmagic=32-bit;;
7493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7494 libsuff=32 shlibsuff=N32 libmagic=N32;;
7495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007497 *) libsuff= shlibsuff= libmagic=never-match;;
7498 esac
7499 ;;
7500 esac
7501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7502 shlibpath_overrides_runpath=no
7503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007505 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007506 ;;
7507
7508# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007509linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007510 dynamic_linker=no
7511 ;;
7512
7513# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007514linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007515 version_type=linux
7516 need_lib_prefix=no
7517 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7519 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7521 shlibpath_var=LD_LIBRARY_PATH
7522 shlibpath_overrides_runpath=no
7523 # This implies no fast_install, which is unacceptable.
7524 # Some rework will be needed to allow for fast_install
7525 # before this can be enabled.
7526 hardcode_into_libs=yes
7527
7528 # We used to test for /lib/ld.so.1 and disable shared libraries on
7529 # powerpc, because MkLinux only supported shared libraries with the
7530 # GNU dynamic linker. Since this was broken with cross compilers,
7531 # most powerpc-linux boxes support dynamic linking these days and
7532 # people can always --disable-shared, the test was removed, and we
7533 # assume the GNU/Linux dynamic linker is in use.
7534 dynamic_linker='GNU/Linux ld.so'
7535 ;;
7536
7537netbsd*)
7538 version_type=sunos
7539 need_lib_prefix=no
7540 need_version=no
7541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7544 dynamic_linker='NetBSD (a.out) ld.so'
7545 else
John Criswell47fdd832003-07-14 16:52:07 +00007546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7547 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007548 dynamic_linker='NetBSD ld.elf_so'
7549 fi
7550 shlibpath_var=LD_LIBRARY_PATH
7551 shlibpath_overrides_runpath=yes
7552 hardcode_into_libs=yes
7553 ;;
7554
7555newsos6)
7556 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7558 shlibpath_var=LD_LIBRARY_PATH
7559 shlibpath_overrides_runpath=yes
7560 ;;
7561
7562nto-qnx)
7563 version_type=linux
7564 need_lib_prefix=no
7565 need_version=no
7566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7567 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007568 shlibpath_var=LD_LIBRARY_PATH
7569 shlibpath_overrides_runpath=yes
7570 ;;
7571
7572openbsd*)
7573 version_type=sunos
7574 need_lib_prefix=no
7575 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7578 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007579 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 +00007580 case $host_os in
7581 openbsd2.[89] | openbsd2.[89].*)
7582 shlibpath_overrides_runpath=no
7583 ;;
7584 *)
7585 shlibpath_overrides_runpath=yes
7586 ;;
7587 esac
John Criswell7a73b802003-06-30 21:59:07 +00007588 else
7589 shlibpath_overrides_runpath=yes
7590 fi
John Criswell7a73b802003-06-30 21:59:07 +00007591 ;;
7592
7593os2*)
7594 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007595 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007596 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007597 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007598 dynamic_linker='OS/2 ld.exe'
7599 shlibpath_var=LIBPATH
7600 ;;
7601
7602osf3* | osf4* | osf5*)
7603 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007604 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007605 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007606 soname_spec='${libname}${release}${shared_ext}$major'
7607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007608 shlibpath_var=LD_LIBRARY_PATH
7609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7611 ;;
7612
7613sco3.2v5*)
7614 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007615 soname_spec='${libname}${release}${shared_ext}$major'
7616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007617 shlibpath_var=LD_LIBRARY_PATH
7618 ;;
7619
7620solaris*)
7621 version_type=linux
7622 need_lib_prefix=no
7623 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7625 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007626 shlibpath_var=LD_LIBRARY_PATH
7627 shlibpath_overrides_runpath=yes
7628 hardcode_into_libs=yes
7629 # ldd complains unless libraries are executable
7630 postinstall_cmds='chmod +x $lib'
7631 ;;
7632
7633sunos4*)
7634 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 shlibpath_overrides_runpath=yes
7639 if test "$with_gnu_ld" = yes; then
7640 need_lib_prefix=no
7641 fi
7642 need_version=yes
7643 ;;
7644
7645sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7646 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7648 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007649 shlibpath_var=LD_LIBRARY_PATH
7650 case $host_vendor in
7651 sni)
7652 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007653 need_lib_prefix=no
7654 export_dynamic_flag_spec='${wl}-Blargedynsym'
7655 runpath_var=LD_RUN_PATH
7656 ;;
7657 siemens)
7658 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007659 ;;
7660 motorola)
7661 need_lib_prefix=no
7662 need_version=no
7663 shlibpath_overrides_runpath=no
7664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7665 ;;
7666 esac
7667 ;;
7668
John Criswell7a73b802003-06-30 21:59:07 +00007669sysv4*MP*)
7670 if test -d /usr/nec ;then
7671 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7673 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007674 shlibpath_var=LD_LIBRARY_PATH
7675 fi
7676 ;;
7677
John Criswell47fdd832003-07-14 16:52:07 +00007678uts4*)
7679 version_type=linux
7680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7681 soname_spec='${libname}${release}${shared_ext}$major'
7682 shlibpath_var=LD_LIBRARY_PATH
7683 ;;
7684
John Criswell7a73b802003-06-30 21:59:07 +00007685*)
7686 dynamic_linker=no
7687 ;;
7688esac
7689echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7690echo "${ECHO_T}$dynamic_linker" >&6
7691test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007692
7693if test "x$enable_dlopen" != xyes; then
7694 enable_dlopen=unknown
7695 enable_dlopen_self=unknown
7696 enable_dlopen_self_static=unknown
7697else
7698 lt_cv_dlopen=no
7699 lt_cv_dlopen_libs=
7700
7701 case $host_os in
7702 beos*)
7703 lt_cv_dlopen="load_add_on"
7704 lt_cv_dlopen_libs=
7705 lt_cv_dlopen_self=yes
7706 ;;
7707
John Criswell47fdd832003-07-14 16:52:07 +00007708 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007709 lt_cv_dlopen="LoadLibrary"
7710 lt_cv_dlopen_libs=
7711 ;;
7712
John Criswell47fdd832003-07-14 16:52:07 +00007713 cygwin*)
7714 lt_cv_dlopen="dlopen"
7715 lt_cv_dlopen_libs=
7716 ;;
7717
7718 darwin*)
7719 # if libdl is installed we need to link against it
7720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7721echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7722if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725 ac_check_lib_save_LIBS=$LIBS
7726LIBS="-ldl $LIBS"
7727cat >conftest.$ac_ext <<_ACEOF
7728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007729/* confdefs.h. */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007734
7735/* Override any gcc2 internal prototype to avoid an error. */
7736#ifdef __cplusplus
7737extern "C"
7738#endif
7739/* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */
7741char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007742int
7743main ()
7744{
7745dlopen ();
7746 ;
7747 return 0;
7748}
7749_ACEOF
7750rm -f conftest.$ac_objext conftest$ac_exeext
7751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752 (eval $ac_link) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_lib_dl_dlopen=yes
7763else
7764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007765sed 's/^/| /' conftest.$ac_ext >&5
7766
John Criswell47fdd832003-07-14 16:52:07 +00007767ac_cv_lib_dl_dlopen=no
7768fi
7769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7770LIBS=$ac_check_lib_save_LIBS
7771fi
7772echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7773echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7774if test $ac_cv_lib_dl_dlopen = yes; then
7775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7776else
7777
7778 lt_cv_dlopen="dyld"
7779 lt_cv_dlopen_libs=
7780 lt_cv_dlopen_self=yes
7781
7782fi
7783
7784 ;;
7785
John Criswell7a73b802003-06-30 21:59:07 +00007786 *)
7787 echo "$as_me:$LINENO: checking for shl_load" >&5
7788echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7789if test "${ac_cv_func_shl_load+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792 cat >conftest.$ac_ext <<_ACEOF
7793#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007799/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007800 which can conflict with char shl_load (); below.
7801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 <limits.h> exists even on freestanding compilers. */
7803#ifdef __STDC__
7804# include <limits.h>
7805#else
7806# include <assert.h>
7807#endif
John Criswell7a73b802003-06-30 21:59:07 +00007808/* Override any gcc2 internal prototype to avoid an error. */
7809#ifdef __cplusplus
7810extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007811{
John Criswell7a73b802003-06-30 21:59:07 +00007812#endif
7813/* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7815char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007816/* The GNU C library defines this for functions which it implements
7817 to always fail with ENOSYS. Some functions are actually named
7818 something starting with __ and the normal name is an alias. */
7819#if defined (__stub_shl_load) || defined (__stub___shl_load)
7820choke me
7821#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007822char (*f) () = shl_load;
7823#endif
7824#ifdef __cplusplus
7825}
John Criswell7a73b802003-06-30 21:59:07 +00007826#endif
7827
John Criswell0c38eaf2003-09-10 15:17:25 +00007828int
7829main ()
7830{
7831return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007832 ;
7833 return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext conftest$ac_exeext
7837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_func_shl_load=yes
7849else
7850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007851sed 's/^/| /' conftest.$ac_ext >&5
7852
John Criswell7a73b802003-06-30 21:59:07 +00007853ac_cv_func_shl_load=no
7854fi
7855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856fi
7857echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7858echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7859if test $ac_cv_func_shl_load = yes; then
7860 lt_cv_dlopen="shl_load"
7861else
7862 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7863echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7864if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867 ac_check_lib_save_LIBS=$LIBS
7868LIBS="-ldld $LIBS"
7869cat >conftest.$ac_ext <<_ACEOF
7870#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007876
7877/* Override any gcc2 internal prototype to avoid an error. */
7878#ifdef __cplusplus
7879extern "C"
7880#endif
7881/* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007884int
7885main ()
7886{
7887shl_load ();
7888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
7893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 ac_cv_lib_dld_shl_load=yes
7905else
7906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007907sed 's/^/| /' conftest.$ac_ext >&5
7908
John Criswell7a73b802003-06-30 21:59:07 +00007909ac_cv_lib_dld_shl_load=no
7910fi
7911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912LIBS=$ac_check_lib_save_LIBS
7913fi
7914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7915echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7916if test $ac_cv_lib_dld_shl_load = yes; then
7917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7918else
7919 echo "$as_me:$LINENO: checking for dlopen" >&5
7920echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7921if test "${ac_cv_func_dlopen+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924 cat >conftest.$ac_ext <<_ACEOF
7925#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007931/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007932 which can conflict with char dlopen (); below.
7933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 <limits.h> exists even on freestanding compilers. */
7935#ifdef __STDC__
7936# include <limits.h>
7937#else
7938# include <assert.h>
7939#endif
John Criswell7a73b802003-06-30 21:59:07 +00007940/* Override any gcc2 internal prototype to avoid an error. */
7941#ifdef __cplusplus
7942extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007943{
John Criswell7a73b802003-06-30 21:59:07 +00007944#endif
7945/* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7947char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007948/* The GNU C library defines this for functions which it implements
7949 to always fail with ENOSYS. Some functions are actually named
7950 something starting with __ and the normal name is an alias. */
7951#if defined (__stub_dlopen) || defined (__stub___dlopen)
7952choke me
7953#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007954char (*f) () = dlopen;
7955#endif
7956#ifdef __cplusplus
7957}
John Criswell7a73b802003-06-30 21:59:07 +00007958#endif
7959
John Criswell0c38eaf2003-09-10 15:17:25 +00007960int
7961main ()
7962{
7963return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007964 ;
7965 return 0;
7966}
7967_ACEOF
7968rm -f conftest.$ac_objext conftest$ac_exeext
7969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970 (eval $ac_link) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 (eval $ac_try) 2>&5
7977 ac_status=$?
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_func_dlopen=yes
7981else
7982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007983sed 's/^/| /' conftest.$ac_ext >&5
7984
John Criswell7a73b802003-06-30 21:59:07 +00007985ac_cv_func_dlopen=no
7986fi
7987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7988fi
7989echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7990echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7991if test $ac_cv_func_dlopen = yes; then
7992 lt_cv_dlopen="dlopen"
7993else
7994 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7995echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7996if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 ac_check_lib_save_LIBS=$LIBS
8000LIBS="-ldl $LIBS"
8001cat >conftest.$ac_ext <<_ACEOF
8002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008008
8009/* Override any gcc2 internal prototype to avoid an error. */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013/* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008016int
8017main ()
8018{
8019dlopen ();
8020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>&5
8027 ac_status=$?
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -s conftest$ac_exeext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_lib_dl_dlopen=yes
8037else
8038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008039sed 's/^/| /' conftest.$ac_ext >&5
8040
John Criswell7a73b802003-06-30 21:59:07 +00008041ac_cv_lib_dl_dlopen=no
8042fi
8043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8044LIBS=$ac_check_lib_save_LIBS
8045fi
8046echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048if test $ac_cv_lib_dl_dlopen = yes; then
8049 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8050else
8051 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8052echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8053if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 ac_check_lib_save_LIBS=$LIBS
8057LIBS="-lsvld $LIBS"
8058cat >conftest.$ac_ext <<_ACEOF
8059#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008060/* confdefs.h. */
8061_ACEOF
8062cat confdefs.h >>conftest.$ac_ext
8063cat >>conftest.$ac_ext <<_ACEOF
8064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008065
8066/* Override any gcc2 internal prototype to avoid an error. */
8067#ifdef __cplusplus
8068extern "C"
8069#endif
8070/* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8072char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008073int
8074main ()
8075{
8076dlopen ();
8077 ;
8078 return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext conftest$ac_exeext
8082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8083 (eval $ac_link) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -s conftest$ac_exeext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 ac_cv_lib_svld_dlopen=yes
8094else
8095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008096sed 's/^/| /' conftest.$ac_ext >&5
8097
John Criswell7a73b802003-06-30 21:59:07 +00008098ac_cv_lib_svld_dlopen=no
8099fi
8100rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8101LIBS=$ac_check_lib_save_LIBS
8102fi
8103echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8104echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8105if test $ac_cv_lib_svld_dlopen = yes; then
8106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8107else
8108 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8109echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8110if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 ac_check_lib_save_LIBS=$LIBS
8114LIBS="-ldld $LIBS"
8115cat >conftest.$ac_ext <<_ACEOF
8116#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008122
8123/* Override any gcc2 internal prototype to avoid an error. */
8124#ifdef __cplusplus
8125extern "C"
8126#endif
8127/* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8129char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008130int
8131main ()
8132{
8133dld_link ();
8134 ;
8135 return 0;
8136}
8137_ACEOF
8138rm -f conftest.$ac_objext conftest$ac_exeext
8139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_lib_dld_dld_link=yes
8151else
8152 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008153sed 's/^/| /' conftest.$ac_ext >&5
8154
John Criswell7a73b802003-06-30 21:59:07 +00008155ac_cv_lib_dld_dld_link=no
8156fi
8157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8158LIBS=$ac_check_lib_save_LIBS
8159fi
8160echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8161echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8162if test $ac_cv_lib_dld_dld_link = yes; then
8163 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8164fi
8165
8166
8167fi
8168
8169
8170fi
8171
8172
8173fi
8174
8175
8176fi
8177
8178
8179fi
8180
8181 ;;
8182 esac
8183
8184 if test "x$lt_cv_dlopen" != xno; then
8185 enable_dlopen=yes
8186 else
8187 enable_dlopen=no
8188 fi
8189
8190 case $lt_cv_dlopen in
8191 dlopen)
8192 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008193 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008194
8195 save_LDFLAGS="$LDFLAGS"
8196 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8197
8198 save_LIBS="$LIBS"
8199 LIBS="$lt_cv_dlopen_libs $LIBS"
8200
8201 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8202echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8203if test "${lt_cv_dlopen_self+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205else
8206 if test "$cross_compiling" = yes; then :
8207 lt_cv_dlopen_self=cross
8208else
John Criswell47fdd832003-07-14 16:52:07 +00008209 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008210 lt_status=$lt_dlunknown
8211 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +00008212#line 8212 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008213#include "confdefs.h"
8214
8215#if HAVE_DLFCN_H
8216#include <dlfcn.h>
8217#endif
8218
8219#include <stdio.h>
8220
8221#ifdef RTLD_GLOBAL
8222# define LT_DLGLOBAL RTLD_GLOBAL
8223#else
8224# ifdef DL_GLOBAL
8225# define LT_DLGLOBAL DL_GLOBAL
8226# else
8227# define LT_DLGLOBAL 0
8228# endif
8229#endif
8230
8231/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8232 find out it does not work in some platform. */
8233#ifndef LT_DLLAZY_OR_NOW
8234# ifdef RTLD_LAZY
8235# define LT_DLLAZY_OR_NOW RTLD_LAZY
8236# else
8237# ifdef DL_LAZY
8238# define LT_DLLAZY_OR_NOW DL_LAZY
8239# else
8240# ifdef RTLD_NOW
8241# define LT_DLLAZY_OR_NOW RTLD_NOW
8242# else
8243# ifdef DL_NOW
8244# define LT_DLLAZY_OR_NOW DL_NOW
8245# else
8246# define LT_DLLAZY_OR_NOW 0
8247# endif
8248# endif
8249# endif
8250# endif
8251#endif
8252
8253#ifdef __cplusplus
8254extern "C" void exit (int);
8255#endif
8256
8257void fnord() { int i=42;}
8258int main ()
8259{
8260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8261 int status = $lt_dlunknown;
8262
8263 if (self)
8264 {
8265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8267 /* dlclose (self); */
8268 }
8269
8270 exit (status);
8271}
8272EOF
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8278 (./conftest; exit; ) 2>/dev/null
8279 lt_status=$?
8280 case x$lt_status in
8281 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8282 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8283 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8284 esac
8285 else :
8286 # compilation failed
8287 lt_cv_dlopen_self=no
8288 fi
8289fi
8290rm -fr conftest*
8291
8292
8293fi
8294echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8295echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8296
8297 if test "x$lt_cv_dlopen_self" = xyes; then
8298 LDFLAGS="$LDFLAGS $link_static_flag"
8299 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8300echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8301if test "${lt_cv_dlopen_self_static+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 if test "$cross_compiling" = yes; then :
8305 lt_cv_dlopen_self_static=cross
8306else
John Criswell47fdd832003-07-14 16:52:07 +00008307 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008308 lt_status=$lt_dlunknown
8309 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +00008310#line 8310 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008311#include "confdefs.h"
8312
8313#if HAVE_DLFCN_H
8314#include <dlfcn.h>
8315#endif
8316
8317#include <stdio.h>
8318
8319#ifdef RTLD_GLOBAL
8320# define LT_DLGLOBAL RTLD_GLOBAL
8321#else
8322# ifdef DL_GLOBAL
8323# define LT_DLGLOBAL DL_GLOBAL
8324# else
8325# define LT_DLGLOBAL 0
8326# endif
8327#endif
8328
8329/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8330 find out it does not work in some platform. */
8331#ifndef LT_DLLAZY_OR_NOW
8332# ifdef RTLD_LAZY
8333# define LT_DLLAZY_OR_NOW RTLD_LAZY
8334# else
8335# ifdef DL_LAZY
8336# define LT_DLLAZY_OR_NOW DL_LAZY
8337# else
8338# ifdef RTLD_NOW
8339# define LT_DLLAZY_OR_NOW RTLD_NOW
8340# else
8341# ifdef DL_NOW
8342# define LT_DLLAZY_OR_NOW DL_NOW
8343# else
8344# define LT_DLLAZY_OR_NOW 0
8345# endif
8346# endif
8347# endif
8348# endif
8349#endif
8350
8351#ifdef __cplusplus
8352extern "C" void exit (int);
8353#endif
8354
8355void fnord() { int i=42;}
8356int main ()
8357{
8358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8359 int status = $lt_dlunknown;
8360
8361 if (self)
8362 {
8363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8364 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8365 /* dlclose (self); */
8366 }
8367
8368 exit (status);
8369}
8370EOF
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8376 (./conftest; exit; ) 2>/dev/null
8377 lt_status=$?
8378 case x$lt_status in
8379 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8380 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8381 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8382 esac
8383 else :
8384 # compilation failed
8385 lt_cv_dlopen_self_static=no
8386 fi
8387fi
8388rm -fr conftest*
8389
8390
8391fi
8392echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8393echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8394 fi
8395
8396 CPPFLAGS="$save_CPPFLAGS"
8397 LDFLAGS="$save_LDFLAGS"
8398 LIBS="$save_LIBS"
8399 ;;
8400 esac
8401
8402 case $lt_cv_dlopen_self in
8403 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8404 *) enable_dlopen_self=unknown ;;
8405 esac
8406
8407 case $lt_cv_dlopen_self_static in
8408 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8409 *) enable_dlopen_self_static=unknown ;;
8410 esac
8411fi
8412
8413
John Criswell47fdd832003-07-14 16:52:07 +00008414# Report which librarie types wil actually be built
8415echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8416echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8417echo "$as_me:$LINENO: result: $can_build_shared" >&5
8418echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008419
John Criswell47fdd832003-07-14 16:52:07 +00008420echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8421echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8422test "$can_build_shared" = "no" && enable_shared=no
8423
8424# On AIX, shared libraries and static libraries use the same namespace, and
8425# are all built from PIC.
8426case "$host_os" in
8427aix3*)
8428 test "$enable_shared" = yes && enable_static=no
8429 if test -n "$RANLIB"; then
8430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8431 postinstall_cmds='$RANLIB $lib'
8432 fi
8433 ;;
8434
8435aix4*)
8436 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8437 test "$enable_shared" = yes && enable_static=no
8438 fi
8439 ;;
8440 darwin* | rhapsody*)
8441 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8442 archive_cmds_need_lc=no
8443 case "$host_os" in
8444 rhapsody* | darwin1.[012])
8445 allow_undefined_flag='-undefined suppress'
8446 ;;
8447 *) # Darwin 1.3 on
8448 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8449 ;;
8450 esac
8451 # FIXME: Relying on posixy $() will cause problems for
8452 # cross-compilation, but unfortunately the echo tests do not
8453 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8454 # `"' quotes if we put them in here... so don't!
8455 output_verbose_link_cmd='echo'
8456 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8457 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8458 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8459 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}'
8460 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8461 hardcode_direct=no
8462 hardcode_automatic=yes
8463 hardcode_shlibpath_var=unsupported
8464 whole_archive_flag_spec='-all_load $convenience'
8465 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008466 fi
John Criswell7a73b802003-06-30 21:59:07 +00008467 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008468esac
8469echo "$as_me:$LINENO: result: $enable_shared" >&5
8470echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008471
John Criswell47fdd832003-07-14 16:52:07 +00008472echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8473echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8474# Make sure either enable_shared or enable_static is yes.
8475test "$enable_shared" = yes || enable_static=yes
8476echo "$as_me:$LINENO: result: $enable_static" >&5
8477echo "${ECHO_T}$enable_static" >&6
8478
8479# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008480# libtool distribution, otherwise you forgot to ship ltmain.sh
8481# with your package, and you will get complaints that there are
8482# no rules to generate ltmain.sh.
8483if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008484 # See if we are running on zsh, and set the options which allow our commands through
8485 # without removal of \ escapes.
8486 if test -n "${ZSH_VERSION+set}" ; then
8487 setopt NO_GLOB_SUBST
8488 fi
John Criswell7a73b802003-06-30 21:59:07 +00008489 # Now quote all the things that may contain metacharacters while being
8490 # careful not to overquote the AC_SUBSTed values. We take copies of the
8491 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8495 deplibs_check_method reload_flag reload_cmds need_locks \
8496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8497 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008499 old_postinstall_cmds old_postuninstall_cmds \
8500 compiler \
8501 CC \
8502 LD \
8503 lt_prog_compiler_wl \
8504 lt_prog_compiler_pic \
8505 lt_prog_compiler_static \
8506 lt_prog_compiler_no_builtin_flag \
8507 export_dynamic_flag_spec \
8508 thread_safe_flag_spec \
8509 whole_archive_flag_spec \
8510 enable_shared_with_static_runtimes \
8511 old_archive_cmds \
8512 old_archive_from_new_cmds \
8513 predep_objects \
8514 postdep_objects \
8515 predeps \
8516 postdeps \
8517 compiler_lib_search_path \
8518 archive_cmds \
8519 archive_expsym_cmds \
8520 postinstall_cmds \
8521 postuninstall_cmds \
8522 old_archive_from_expsyms_cmds \
8523 allow_undefined_flag \
8524 no_undefined_flag \
8525 export_symbols_cmds \
8526 hardcode_libdir_flag_spec \
8527 hardcode_libdir_flag_spec_ld \
8528 hardcode_libdir_separator \
8529 hardcode_automatic \
8530 module_cmds \
8531 module_expsym_cmds \
8532 lt_cv_prog_compiler_c_o \
8533 exclude_expsyms \
8534 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008535
8536 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008537 old_archive_cmds | \
8538 old_archive_from_new_cmds | \
8539 archive_cmds | \
8540 archive_expsym_cmds | \
8541 module_cmds | \
8542 module_expsym_cmds | \
8543 old_archive_from_expsyms_cmds | \
8544 export_symbols_cmds | \
8545 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008546 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008547 old_postinstall_cmds | old_postuninstall_cmds | \
8548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008549 # Double-quote double-evaled strings.
8550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8551 ;;
8552 *)
8553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8554 ;;
8555 esac
8556 done
8557
John Criswell47fdd832003-07-14 16:52:07 +00008558 case $lt_echo in
8559 *'\$0 --fallback-echo"')
8560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8561 ;;
8562 esac
8563
8564cfgfile="${ofile}T"
8565 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8566 $rm -f "$cfgfile"
8567 { echo "$as_me:$LINENO: creating $ofile" >&5
8568echo "$as_me: creating $ofile" >&6;}
8569
8570 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008571#! $SHELL
8572
John Criswell47fdd832003-07-14 16:52:07 +00008573# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008574# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8575# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8576#
John Criswell47fdd832003-07-14 16:52:07 +00008577# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8578# Free Software Foundation, Inc.
8579#
8580# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008581# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8582#
8583# This program is free software; you can redistribute it and/or modify
8584# it under the terms of the GNU General Public License as published by
8585# the Free Software Foundation; either version 2 of the License, or
8586# (at your option) any later version.
8587#
8588# This program is distributed in the hope that it will be useful, but
8589# WITHOUT ANY WARRANTY; without even the implied warranty of
8590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8591# General Public License for more details.
8592#
8593# You should have received a copy of the GNU General Public License
8594# along with this program; if not, write to the Free Software
8595# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8596#
8597# As a special exception to the GNU General Public License, if you
8598# distribute this file as part of a program that contains a
8599# configuration script generated by Autoconf, you may include it under
8600# the same distribution terms that you use for the rest of that program.
8601
John Criswell47fdd832003-07-14 16:52:07 +00008602# A sed program that does not truncate output.
8603SED=$lt_SED
8604
John Criswell7a73b802003-06-30 21:59:07 +00008605# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008606Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008607
8608# The HP-UX ksh and POSIX shell print the target directory to stdout
8609# if CDPATH is set.
8610if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8611
John Criswell47fdd832003-07-14 16:52:07 +00008612# The names of the tagged configurations supported by this script.
8613available_tags=
8614
John Criswell7a73b802003-06-30 21:59:07 +00008615# ### BEGIN LIBTOOL CONFIG
8616
8617# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8618
8619# Shell to use when invoking shell scripts.
8620SHELL=$lt_SHELL
8621
8622# Whether or not to build shared libraries.
8623build_libtool_libs=$enable_shared
8624
8625# Whether or not to build static libraries.
8626build_old_libs=$enable_static
8627
8628# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008629build_libtool_need_lc=$archive_cmds_need_lc
8630
8631# Whether or not to disallow shared libs when runtime libs are static
8632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008633
8634# Whether or not to optimize for fast installation.
8635fast_install=$enable_fast_install
8636
8637# The host system.
8638host_alias=$host_alias
8639host=$host
8640
8641# An echo program that does not interpret backslashes.
8642echo=$lt_echo
8643
8644# The archiver.
8645AR=$lt_AR
8646AR_FLAGS=$lt_AR_FLAGS
8647
John Criswell47fdd832003-07-14 16:52:07 +00008648# A C compiler.
8649LTCC=$lt_LTCC
8650
8651# A language-specific compiler.
8652CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008653
8654# Is the compiler the GNU C compiler?
8655with_gcc=$GCC
8656
John Criswell47fdd832003-07-14 16:52:07 +00008657# An ERE matcher.
8658EGREP=$lt_EGREP
8659
John Criswell7a73b802003-06-30 21:59:07 +00008660# The linker used to build libraries.
8661LD=$lt_LD
8662
8663# Whether we need hard or soft links.
8664LN_S=$lt_LN_S
8665
8666# A BSD-compatible nm program.
8667NM=$lt_NM
8668
8669# A symbol stripping program
8670STRIP=$STRIP
8671
8672# Used to examine libraries when file_magic_cmd begins "file"
8673MAGIC_CMD=$MAGIC_CMD
8674
8675# Used on cygwin: DLL creation program.
8676DLLTOOL="$DLLTOOL"
8677
8678# Used on cygwin: object dumper.
8679OBJDUMP="$OBJDUMP"
8680
8681# Used on cygwin: assembler.
8682AS="$AS"
8683
8684# The name of the directory that contains temporary libtool files.
8685objdir=$objdir
8686
8687# How to create reloadable object files.
8688reload_flag=$lt_reload_flag
8689reload_cmds=$lt_reload_cmds
8690
8691# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008692wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008693
8694# Object file suffix (normally "o").
8695objext="$ac_objext"
8696
8697# Old archive suffix (normally "a").
8698libext="$libext"
8699
John Criswell47fdd832003-07-14 16:52:07 +00008700# Shared library suffix (normally ".so").
8701shrext='$shrext'
8702
John Criswell7a73b802003-06-30 21:59:07 +00008703# Executable file suffix (normally "").
8704exeext="$exeext"
8705
8706# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008707pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008708pic_mode=$pic_mode
8709
John Criswell47fdd832003-07-14 16:52:07 +00008710# What is the maximum length of a command?
8711max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008712
John Criswell47fdd832003-07-14 16:52:07 +00008713# Does compiler simultaneously support -c and -o options?
8714compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008715
8716# Must we lock files when doing compilation ?
8717need_locks=$lt_need_locks
8718
8719# Do we need the lib prefix for modules?
8720need_lib_prefix=$need_lib_prefix
8721
8722# Do we need a version for libraries?
8723need_version=$need_version
8724
8725# Whether dlopen is supported.
8726dlopen_support=$enable_dlopen
8727
8728# Whether dlopen of programs is supported.
8729dlopen_self=$enable_dlopen_self
8730
8731# Whether dlopen of statically linked programs is supported.
8732dlopen_self_static=$enable_dlopen_self_static
8733
8734# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008735link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008736
8737# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008739
8740# Compiler flag to allow reflexive dlopens.
8741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8742
8743# Compiler flag to generate shared objects directly from archives.
8744whole_archive_flag_spec=$lt_whole_archive_flag_spec
8745
8746# Compiler flag to generate thread-safe objects.
8747thread_safe_flag_spec=$lt_thread_safe_flag_spec
8748
8749# Library versioning type.
8750version_type=$version_type
8751
8752# Format of library name prefix.
8753libname_spec=$lt_libname_spec
8754
8755# List of archive names. First name is the real one, the rest are links.
8756# The last name is the one that the linker finds with -lNAME.
8757library_names_spec=$lt_library_names_spec
8758
8759# The coded name of the library, if different from the real name.
8760soname_spec=$lt_soname_spec
8761
8762# Commands used to build and install an old-style archive.
8763RANLIB=$lt_RANLIB
8764old_archive_cmds=$lt_old_archive_cmds
8765old_postinstall_cmds=$lt_old_postinstall_cmds
8766old_postuninstall_cmds=$lt_old_postuninstall_cmds
8767
8768# Create an old-style archive from a shared archive.
8769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8770
8771# Create a temporary old-style archive to link instead of a shared archive.
8772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8773
8774# Commands used to build and install a shared archive.
8775archive_cmds=$lt_archive_cmds
8776archive_expsym_cmds=$lt_archive_expsym_cmds
8777postinstall_cmds=$lt_postinstall_cmds
8778postuninstall_cmds=$lt_postuninstall_cmds
8779
John Criswell47fdd832003-07-14 16:52:07 +00008780# Commands used to build a loadable module (assumed same as above if empty)
8781module_cmds=$lt_module_cmds
8782module_expsym_cmds=$lt_module_expsym_cmds
8783
John Criswell7a73b802003-06-30 21:59:07 +00008784# Commands to strip libraries.
8785old_striplib=$lt_old_striplib
8786striplib=$lt_striplib
8787
John Criswell47fdd832003-07-14 16:52:07 +00008788# Dependencies to place before the objects being linked to create a
8789# shared library.
8790predep_objects=$lt_predep_objects
8791
8792# Dependencies to place after the objects being linked to create a
8793# shared library.
8794postdep_objects=$lt_postdep_objects
8795
8796# Dependencies to place before the objects being linked to create a
8797# shared library.
8798predeps=$lt_predeps
8799
8800# Dependencies to place after the objects being linked to create a
8801# shared library.
8802postdeps=$lt_postdeps
8803
8804# The library search path used internally by the compiler when linking
8805# a shared library.
8806compiler_lib_search_path=$lt_compiler_lib_search_path
8807
John Criswell7a73b802003-06-30 21:59:07 +00008808# Method to check whether dependent libraries are shared objects.
8809deplibs_check_method=$lt_deplibs_check_method
8810
8811# Command to use when deplibs_check_method == file_magic.
8812file_magic_cmd=$lt_file_magic_cmd
8813
8814# Flag that allows shared libraries with undefined symbols to be built.
8815allow_undefined_flag=$lt_allow_undefined_flag
8816
8817# Flag that forces no undefined symbols.
8818no_undefined_flag=$lt_no_undefined_flag
8819
8820# Commands used to finish a libtool library installation in a directory.
8821finish_cmds=$lt_finish_cmds
8822
8823# Same as above, but a single script fragment to be evaled but not shown.
8824finish_eval=$lt_finish_eval
8825
8826# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008828
8829# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008831
8832# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008834
8835# This is the shared library runtime path variable.
8836runpath_var=$runpath_var
8837
8838# This is the shared library path variable.
8839shlibpath_var=$shlibpath_var
8840
8841# Is shlibpath searched before the hard-coded library search path?
8842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8843
8844# How to hardcode a shared library path into an executable.
8845hardcode_action=$hardcode_action
8846
8847# Whether we should hardcode library paths into libraries.
8848hardcode_into_libs=$hardcode_into_libs
8849
8850# Flag to hardcode \$libdir into a binary during linking.
8851# This must work even if \$libdir does not exist.
8852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8853
John Criswell47fdd832003-07-14 16:52:07 +00008854# If ld is used when linking, flag to hardcode \$libdir into
8855# a binary during linking. This must work even if \$libdir does
8856# not exist.
8857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8858
John Criswell7a73b802003-06-30 21:59:07 +00008859# Whether we need a single -rpath flag with a separated argument.
8860hardcode_libdir_separator=$lt_hardcode_libdir_separator
8861
John Criswell47fdd832003-07-14 16:52:07 +00008862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008863# resulting binary.
8864hardcode_direct=$hardcode_direct
8865
8866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8867# resulting binary.
8868hardcode_minus_L=$hardcode_minus_L
8869
8870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8871# the resulting binary.
8872hardcode_shlibpath_var=$hardcode_shlibpath_var
8873
John Criswell47fdd832003-07-14 16:52:07 +00008874# Set to yes if building a shared library automatically hardcodes DIR into the library
8875# and all subsequent libraries and executables linked against it.
8876hardcode_automatic=$hardcode_automatic
8877
John Criswell7a73b802003-06-30 21:59:07 +00008878# Variables whose values should be saved in libtool wrapper scripts and
8879# restored at relink time.
8880variables_saved_for_relink="$variables_saved_for_relink"
8881
8882# Whether libtool must link a program against all its dependency libraries.
8883link_all_deplibs=$link_all_deplibs
8884
8885# Compile-time system search path for libraries
8886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8887
8888# Run-time system search path for libraries
8889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8890
8891# Fix the shell variable \$srcfile for the compiler.
8892fix_srcfile_path="$fix_srcfile_path"
8893
8894# Set to yes if exported symbols are required.
8895always_export_symbols=$always_export_symbols
8896
8897# The commands to list exported symbols.
8898export_symbols_cmds=$lt_export_symbols_cmds
8899
8900# The commands to extract the exported symbol list from a shared archive.
8901extract_expsyms_cmds=$lt_extract_expsyms_cmds
8902
8903# Symbols that should not be listed in the preloaded symbols.
8904exclude_expsyms=$lt_exclude_expsyms
8905
8906# Symbols that must always be exported.
8907include_expsyms=$lt_include_expsyms
8908
8909# ### END LIBTOOL CONFIG
8910
8911__EOF__
8912
John Criswell47fdd832003-07-14 16:52:07 +00008913
John Criswell7a73b802003-06-30 21:59:07 +00008914 case $host_os in
8915 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008916 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008917
8918# AIX sometimes has problems with the GCC collect2 program. For some
8919# reason, if we set the COLLECT_NAMES environment variable, the problems
8920# vanish in a puff of smoke.
8921if test "X${COLLECT_NAMES+set}" != Xset; then
8922 COLLECT_NAMES=
8923 export COLLECT_NAMES
8924fi
8925EOF
8926 ;;
8927 esac
8928
John Criswell7a73b802003-06-30 21:59:07 +00008929 # We use sed instead of cat because bash on DJGPP gets confused if
8930 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8931 # text mode, it properly converts lines to CR/LF. This bash problem
8932 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008933 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008934
John Criswell47fdd832003-07-14 16:52:07 +00008935 mv -f "$cfgfile" "$ofile" || \
8936 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008937 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008938
8939else
8940 # If there is no Makefile yet, we rely on a make rule to execute
8941 # `config.status --recheck' to rerun these tests and create the
8942 # libtool script then.
8943 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008944fi
John Criswell7a73b802003-06-30 21:59:07 +00008945
8946
John Criswell47fdd832003-07-14 16:52:07 +00008947ac_ext=c
8948ac_cpp='$CPP $CPPFLAGS'
8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953CC="$lt_save_CC"
8954
8955
8956# Check whether --with-tags or --without-tags was given.
8957if test "${with_tags+set}" = set; then
8958 withval="$with_tags"
8959 tagnames="$withval"
8960fi;
8961
8962if test -f "$ltmain" && test -n "$tagnames"; then
8963 if test ! -f "${ofile}"; then
8964 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8965echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8966 fi
8967
8968 if test -z "$LTCC"; then
8969 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8970 if test -z "$LTCC"; then
8971 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8972echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8973 else
8974 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8975echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8976 fi
8977 fi
8978
8979 # Extract list of available tagged configurations in $ofile.
8980 # Note that this assumes the entire list is on one line.
8981 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8982
8983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8984 for tagname in $tagnames; do
8985 IFS="$lt_save_ifs"
8986 # Check whether tagname contains only valid characters
8987 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8988 "") ;;
8989 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8990echo "$as_me: error: invalid tag name: $tagname" >&2;}
8991 { (exit 1); exit 1; }; }
8992 ;;
8993 esac
8994
8995 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8996 then
8997 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8998echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8999 { (exit 1); exit 1; }; }
9000 fi
9001
9002 # Update the list of available tags.
9003 if test -n "$tagname"; then
9004 echo appending configuration tag \"$tagname\" to $ofile
9005
9006 case $tagname in
9007 CXX)
9008 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9009 ac_ext=cc
9010ac_cpp='$CXXCPP $CPPFLAGS'
9011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9014
9015
9016
9017
9018archive_cmds_need_lc_CXX=no
9019allow_undefined_flag_CXX=
9020always_export_symbols_CXX=no
9021archive_expsym_cmds_CXX=
9022export_dynamic_flag_spec_CXX=
9023hardcode_direct_CXX=no
9024hardcode_libdir_flag_spec_CXX=
9025hardcode_libdir_flag_spec_ld_CXX=
9026hardcode_libdir_separator_CXX=
9027hardcode_minus_L_CXX=no
9028hardcode_automatic_CXX=no
9029module_cmds_CXX=
9030module_expsym_cmds_CXX=
9031link_all_deplibs_CXX=unknown
9032old_archive_cmds_CXX=$old_archive_cmds
9033no_undefined_flag_CXX=
9034whole_archive_flag_spec_CXX=
9035enable_shared_with_static_runtimes_CXX=no
9036
9037# Dependencies to place before and after the object being linked:
9038predep_objects_CXX=
9039postdep_objects_CXX=
9040predeps_CXX=
9041postdeps_CXX=
9042compiler_lib_search_path_CXX=
9043
9044# Source file extension for C++ test sources.
9045ac_ext=cc
9046
9047# Object file extension for compiled C++ test sources.
9048objext=o
9049objext_CXX=$objext
9050
9051# Code to be used in simple compile tests
9052lt_simple_compile_test_code="int some_variable = 0;\n"
9053
9054# Code to be used in simple link tests
9055lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9056
9057# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9058
9059# If no C compiler was specified, use CC.
9060LTCC=${LTCC-"$CC"}
9061
9062# Allow CC to be a program name with arguments.
9063compiler=$CC
9064
9065
9066# Allow CC to be a program name with arguments.
9067lt_save_CC=$CC
9068lt_save_LD=$LD
9069lt_save_GCC=$GCC
9070GCC=$GXX
9071lt_save_with_gnu_ld=$with_gnu_ld
9072lt_save_path_LD=$lt_cv_path_LD
9073if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9074 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9075else
9076 unset lt_cv_prog_gnu_ld
9077fi
9078if test -n "${lt_cv_path_LDCXX+set}"; then
9079 lt_cv_path_LD=$lt_cv_path_LDCXX
9080else
9081 unset lt_cv_path_LD
9082fi
9083test -z "${LDCXX+set}" || LD=$LDCXX
9084CC=${CXX-"c++"}
9085compiler=$CC
9086compiler_CXX=$CC
9087cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9088
9089# We don't want -fno-exception wen compiling C++ code, so set the
9090# no_builtin_flag separately
9091if test "$GXX" = yes; then
9092 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9093else
9094 lt_prog_compiler_no_builtin_flag_CXX=
9095fi
9096
9097if test "$GXX" = yes; then
9098 # Set up default GNU C++ configuration
9099
9100
9101# Check whether --with-gnu-ld or --without-gnu-ld was given.
9102if test "${with_gnu_ld+set}" = set; then
9103 withval="$with_gnu_ld"
9104 test "$withval" = no || with_gnu_ld=yes
9105else
9106 with_gnu_ld=no
9107fi;
9108ac_prog=ld
9109if test "$GCC" = yes; then
9110 # Check if gcc -print-prog-name=ld gives a path.
9111 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9112echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9113 case $host in
9114 *-*-mingw*)
9115 # gcc leaves a trailing carriage return which upsets mingw
9116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9117 *)
9118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9119 esac
9120 case $ac_prog in
9121 # Accept absolute paths.
9122 [\\/]* | ?:[\\/]*)
9123 re_direlt='/[^/][^/]*/\.\./'
9124 # Canonicalize the path of ld
9125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9128 done
9129 test -z "$LD" && LD="$ac_prog"
9130 ;;
9131 "")
9132 # If it fails, then pretend we aren't using GCC.
9133 ac_prog=ld
9134 ;;
9135 *)
9136 # If it is relative, then search for the first ld in PATH.
9137 with_gnu_ld=unknown
9138 ;;
9139 esac
9140elif test "$with_gnu_ld" = yes; then
9141 echo "$as_me:$LINENO: checking for GNU ld" >&5
9142echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9143else
9144 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9146fi
9147if test "${lt_cv_path_LD+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150 if test -z "$LD"; then
9151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9152 for ac_dir in $PATH; do
9153 IFS="$lt_save_ifs"
9154 test -z "$ac_dir" && ac_dir=.
9155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9156 lt_cv_path_LD="$ac_dir/$ac_prog"
9157 # Check to see if the program is GNU ld. I'd rather use --version,
9158 # but apparently some GNU ld's only accept -v.
9159 # Break only if it was the GNU/non-GNU ld that we prefer.
9160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9161 *GNU* | *'with BFD'*)
9162 test "$with_gnu_ld" != no && break
9163 ;;
9164 *)
9165 test "$with_gnu_ld" != yes && break
9166 ;;
9167 esac
9168 fi
9169 done
9170 IFS="$lt_save_ifs"
9171else
9172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9173fi
9174fi
9175
9176LD="$lt_cv_path_LD"
9177if test -n "$LD"; then
9178 echo "$as_me:$LINENO: result: $LD" >&5
9179echo "${ECHO_T}$LD" >&6
9180else
9181 echo "$as_me:$LINENO: result: no" >&5
9182echo "${ECHO_T}no" >&6
9183fi
9184test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9185echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9186 { (exit 1); exit 1; }; }
9187echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9188echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9189if test "${lt_cv_prog_gnu_ld+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9193case `"$LD" -v 2>&1 </dev/null` in
9194*GNU* | *'with BFD'*)
9195 lt_cv_prog_gnu_ld=yes
9196 ;;
9197*)
9198 lt_cv_prog_gnu_ld=no
9199 ;;
9200esac
9201fi
9202echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9203echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9204with_gnu_ld=$lt_cv_prog_gnu_ld
9205
9206
9207
9208 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9209 # archiving commands below assume that GNU ld is being used.
9210 if test "$with_gnu_ld" = yes; then
9211 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 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'
9213
9214 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9215 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9216
9217 # If archive_cmds runs LD, not CC, wlarc should be empty
9218 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9219 # investigate it a little bit more. (MM)
9220 wlarc='${wl}'
9221
9222 # ancient GNU ld didn't support --whole-archive et. al.
9223 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9224 grep 'no-whole-archive' > /dev/null; then
9225 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9226 else
9227 whole_archive_flag_spec_CXX=
9228 fi
9229 else
9230 with_gnu_ld=no
9231 wlarc=
9232
9233 # A generic and very simple default shared library creation
9234 # command for GNU C++ for the case where it uses the native
9235 # linker, instead of GNU ld. If possible, this setting should
9236 # overridden to take advantage of the native linker features on
9237 # the platform it is being used on.
9238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9239 fi
9240
9241 # Commands to make compiler produce verbose output that lists
9242 # what "hidden" libraries, object files and flags are used when
9243 # linking a shared library.
9244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9245
9246else
9247 GXX=no
9248 with_gnu_ld=no
9249 wlarc=
9250fi
9251
9252# PORTME: fill in a description of your system's C++ link characteristics
9253echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9254echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9255ld_shlibs_CXX=yes
9256case $host_os in
9257 aix3*)
9258 # FIXME: insert proper C++ library support
9259 ld_shlibs_CXX=no
9260 ;;
9261 aix4* | aix5*)
9262 if test "$host_cpu" = ia64; then
9263 # On IA64, the linker does run time linking by default, so we don't
9264 # have to do anything special.
9265 aix_use_runtimelinking=no
9266 exp_sym_flag='-Bexport'
9267 no_entry_flag=""
9268 else
9269 aix_use_runtimelinking=no
9270
9271 # Test if we are trying to use run time linking or normal
9272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9273 # need to do runtime linking.
9274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9275 for ld_flag in $LDFLAGS; do
9276 case $ld_flag in
9277 *-brtl*)
9278 aix_use_runtimelinking=yes
9279 break
9280 ;;
9281 esac
9282 done
9283 esac
9284
9285 exp_sym_flag='-bexport'
9286 no_entry_flag='-bnoentry'
9287 fi
9288
9289 # When large executables or shared objects are built, AIX ld can
9290 # have problems creating the table of contents. If linking a library
9291 # or program results in "error TOC overflow" add -mminimal-toc to
9292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9294
9295 archive_cmds_CXX=''
9296 hardcode_direct_CXX=yes
9297 hardcode_libdir_separator_CXX=':'
9298 link_all_deplibs_CXX=yes
9299
9300 if test "$GXX" = yes; then
9301 case $host_os in aix4.012|aix4.012.*)
9302 # We only want to do this on AIX 4.2 and lower, the check
9303 # below for broken collect2 doesn't work under 4.3+
9304 collect2name=`${CC} -print-prog-name=collect2`
9305 if test -f "$collect2name" && \
9306 strings "$collect2name" | grep resolve_lib_name >/dev/null
9307 then
9308 # We have reworked collect2
9309 hardcode_direct_CXX=yes
9310 else
9311 # We have old collect2
9312 hardcode_direct_CXX=unsupported
9313 # It fails to find uninstalled libraries when the uninstalled
9314 # path is not listed in the libpath. Setting hardcode_minus_L
9315 # to unsupported forces relinking
9316 hardcode_minus_L_CXX=yes
9317 hardcode_libdir_flag_spec_CXX='-L$libdir'
9318 hardcode_libdir_separator_CXX=
9319 fi
9320 esac
9321 shared_flag='-shared'
9322 else
9323 # not using gcc
9324 if test "$host_cpu" = ia64; then
9325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9326 # chokes on -Wl,-G. The following line is correct:
9327 shared_flag='-G'
9328 else
9329 if test "$aix_use_runtimelinking" = yes; then
9330 shared_flag='${wl}-G'
9331 else
9332 shared_flag='${wl}-bM:SRE'
9333 fi
9334 fi
9335 fi
9336
9337 # It seems that -bexpall does not export symbols beginning with
9338 # underscore (_), so it is better to generate a list of symbols to export.
9339 always_export_symbols_CXX=yes
9340 if test "$aix_use_runtimelinking" = yes; then
9341 # Warning - without using the other runtime loading flags (-brtl),
9342 # -berok will link without error, but may produce a broken library.
9343 allow_undefined_flag_CXX='-berok'
9344 # Determine the default libpath from the value encoded in an empty executable.
9345 cat >conftest.$ac_ext <<_ACEOF
9346#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009347/* confdefs.h. */
9348_ACEOF
9349cat confdefs.h >>conftest.$ac_ext
9350cat >>conftest.$ac_ext <<_ACEOF
9351/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009352
John Criswell47fdd832003-07-14 16:52:07 +00009353int
9354main ()
9355{
9356
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>&5
9364 ac_status=$?
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -s conftest$ac_exeext'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373
9374aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9375}'`
9376# Check for a 64-bit object if we didn't find anything.
9377if 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; }
9378}'`; fi
9379else
9380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009381sed 's/^/| /' conftest.$ac_ext >&5
9382
John Criswell47fdd832003-07-14 16:52:07 +00009383fi
9384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9386
9387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9388
9389 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"
9390 else
9391 if test "$host_cpu" = ia64; then
9392 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9393 allow_undefined_flag_CXX="-z nodefs"
9394 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"
9395 else
9396 # Determine the default libpath from the value encoded in an empty executable.
9397 cat >conftest.$ac_ext <<_ACEOF
9398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009404
John Criswell47fdd832003-07-14 16:52:07 +00009405int
9406main ()
9407{
9408
9409 ;
9410 return 0;
9411}
9412_ACEOF
9413rm -f conftest.$ac_objext conftest$ac_exeext
9414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425
9426aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9427}'`
9428# Check for a 64-bit object if we didn't find anything.
9429if 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; }
9430}'`; fi
9431else
9432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009433sed 's/^/| /' conftest.$ac_ext >&5
9434
John Criswell47fdd832003-07-14 16:52:07 +00009435fi
9436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9438
9439 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9440 # Warning - without using the other run time loading flags,
9441 # -berok will link without error, but may produce a broken library.
9442 no_undefined_flag_CXX=' ${wl}-bernotok'
9443 allow_undefined_flag_CXX=' ${wl}-berok'
9444 # -bexpall does not export symbols beginning with underscore (_)
9445 always_export_symbols_CXX=yes
9446 # Exported symbols can be pulled into shared objects from archives
9447 whole_archive_flag_spec_CXX=' '
9448 archive_cmds_need_lc_CXX=yes
9449 # This is similar to how AIX traditionally builds it's shared libraries.
9450 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'
9451 fi
9452 fi
9453 ;;
9454 chorus*)
9455 case $cc_basename in
9456 *)
9457 # FIXME: insert proper C++ library support
9458 ld_shlibs_CXX=no
9459 ;;
9460 esac
9461 ;;
9462
9463 cygwin* | mingw* | pw32*)
9464 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9465 # as there is no search path for DLLs.
9466 hardcode_libdir_flag_spec_CXX='-L$libdir'
9467 allow_undefined_flag_CXX=unsupported
9468 always_export_symbols_CXX=no
9469 enable_shared_with_static_runtimes_CXX=yes
9470
9471 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9472 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'
9473 # If the export-symbols file already is a .def file (1st line
9474 # is EXPORTS), use it as is; otherwise, prepend...
9475 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9476 cp $export_symbols $output_objdir/$soname.def;
9477 else
9478 echo EXPORTS > $output_objdir/$soname.def;
9479 cat $export_symbols >> $output_objdir/$soname.def;
9480 fi~
9481 $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'
9482 else
9483 ld_shlibs_CXX=no
9484 fi
9485 ;;
9486
9487 darwin* | rhapsody*)
9488 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9489 archive_cmds_need_lc_CXX=no
9490 case "$host_os" in
9491 rhapsody* | darwin1.[012])
9492 allow_undefined_flag_CXX='-undefined suppress'
9493 ;;
9494 *) # Darwin 1.3 on
9495 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9496 ;;
9497 esac
9498 lt_int_apple_cc_single_mod=no
9499 output_verbose_link_cmd='echo'
9500 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9501 lt_int_apple_cc_single_mod=yes
9502 fi
9503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9505 else
9506 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9507 fi
9508 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9509
9510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9511 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9512 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}'
9513 else
9514 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9515 fi
9516 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9517 hardcode_direct_CXX=no
9518 hardcode_automatic_CXX=yes
9519 hardcode_shlibpath_var_CXX=unsupported
9520 whole_archive_flag_spec_CXX='-all_load $convenience'
9521 link_all_deplibs_CXX=yes
9522 fi
9523 ;;
9524
9525 dgux*)
9526 case $cc_basename in
9527 ec++)
9528 # FIXME: insert proper C++ library support
9529 ld_shlibs_CXX=no
9530 ;;
9531 ghcx)
9532 # Green Hills C++ Compiler
9533 # FIXME: insert proper C++ library support
9534 ld_shlibs_CXX=no
9535 ;;
9536 *)
9537 # FIXME: insert proper C++ library support
9538 ld_shlibs_CXX=no
9539 ;;
9540 esac
9541 ;;
9542 freebsd12*)
9543 # C++ shared libraries reported to be fairly broken before switch to ELF
9544 ld_shlibs_CXX=no
9545 ;;
9546 freebsd-elf*)
9547 archive_cmds_need_lc_CXX=no
9548 ;;
9549 freebsd*)
9550 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9551 # conventions
9552 ld_shlibs_CXX=yes
9553 ;;
9554 gnu*)
9555 ;;
9556 hpux9*)
9557 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9558 hardcode_libdir_separator_CXX=:
9559 export_dynamic_flag_spec_CXX='${wl}-E'
9560 hardcode_direct_CXX=yes
9561 hardcode_minus_L_CXX=yes # Not in the search PATH,
9562 # but as the default
9563 # location of the library.
9564
9565 case $cc_basename in
9566 CC)
9567 # FIXME: insert proper C++ library support
9568 ld_shlibs_CXX=no
9569 ;;
9570 aCC)
9571 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'
9572 # Commands to make compiler produce verbose output that lists
9573 # what "hidden" libraries, object files and flags are used when
9574 # linking a shared library.
9575 #
9576 # There doesn't appear to be a way to prevent this compiler from
9577 # explicitly linking system object files so we need to strip them
9578 # from the output so that they don't get included in the library
9579 # dependencies.
9580 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9581 ;;
9582 *)
9583 if test "$GXX" = yes; then
9584 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'
9585 else
9586 # FIXME: insert proper C++ library support
9587 ld_shlibs_CXX=no
9588 fi
9589 ;;
9590 esac
9591 ;;
9592 hpux10*|hpux11*)
9593 if test $with_gnu_ld = no; then
9594 case "$host_cpu" in
9595 hppa*64*)
9596 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9597 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9598 hardcode_libdir_separator_CXX=:
9599 ;;
9600 ia64*)
9601 hardcode_libdir_flag_spec_CXX='-L$libdir'
9602 ;;
9603 *)
9604 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9605 hardcode_libdir_separator_CXX=:
9606 export_dynamic_flag_spec_CXX='${wl}-E'
9607 ;;
9608 esac
9609 fi
9610 case "$host_cpu" in
9611 hppa*64*)
9612 hardcode_direct_CXX=no
9613 hardcode_shlibpath_var_CXX=no
9614 ;;
9615 ia64*)
9616 hardcode_direct_CXX=no
9617 hardcode_shlibpath_var_CXX=no
9618 hardcode_minus_L_CXX=yes # Not in the search PATH,
9619 # but as the default
9620 # location of the library.
9621 ;;
9622 *)
9623 hardcode_direct_CXX=yes
9624 hardcode_minus_L_CXX=yes # Not in the search PATH,
9625 # but as the default
9626 # location of the library.
9627 ;;
9628 esac
9629
9630 case $cc_basename in
9631 CC)
9632 # FIXME: insert proper C++ library support
9633 ld_shlibs_CXX=no
9634 ;;
9635 aCC)
9636 case "$host_cpu" in
9637 hppa*64*|ia64*)
9638 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9639 ;;
9640 *)
9641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9642 ;;
9643 esac
9644 # Commands to make compiler produce verbose output that lists
9645 # what "hidden" libraries, object files and flags are used when
9646 # linking a shared library.
9647 #
9648 # There doesn't appear to be a way to prevent this compiler from
9649 # explicitly linking system object files so we need to strip them
9650 # from the output so that they don't get included in the library
9651 # dependencies.
9652 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'
9653 ;;
9654 *)
9655 if test "$GXX" = yes; then
9656 if test $with_gnu_ld = no; then
9657 case "$host_cpu" in
9658 ia64*|hppa*64*)
9659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9660 ;;
9661 *)
9662 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'
9663 ;;
9664 esac
9665 fi
9666 else
9667 # FIXME: insert proper C++ library support
9668 ld_shlibs_CXX=no
9669 fi
9670 ;;
9671 esac
9672 ;;
9673 irix5* | irix6*)
9674 case $cc_basename in
9675 CC)
9676 # SGI C++
9677 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'
9678
9679 # Archives containing C++ object files must be created using
9680 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9681 # necessary to make sure instantiated templates are included
9682 # in the archive.
9683 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9684 ;;
9685 *)
9686 if test "$GXX" = yes; then
9687 if test "$with_gnu_ld" = no; then
9688 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'
9689 else
9690 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'
9691 fi
9692 fi
9693 link_all_deplibs_CXX=yes
9694 ;;
9695 esac
9696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator_CXX=:
9698 ;;
9699 linux*)
9700 case $cc_basename in
9701 KCC)
9702 # Kuck and Associates, Inc. (KAI) C++ Compiler
9703
9704 # KCC will only create a shared library if the output file
9705 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9706 # to its proper name (with version) after linking.
9707 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'
9708 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'
9709 # Commands to make compiler produce verbose output that lists
9710 # what "hidden" libraries, object files and flags are used when
9711 # linking a shared library.
9712 #
9713 # There doesn't appear to be a way to prevent this compiler from
9714 # explicitly linking system object files so we need to strip them
9715 # from the output so that they don't get included in the library
9716 # dependencies.
9717 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'
9718
9719 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9720 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9721
9722 # Archives containing C++ object files must be created using
9723 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9725 ;;
9726 icpc)
9727 # Intel C++
9728 with_gnu_ld=yes
9729 archive_cmds_need_lc_CXX=no
9730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731 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'
9732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9735 ;;
9736 cxx)
9737 # Compaq C++
9738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9739 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'
9740
9741 runpath_var=LD_RUN_PATH
9742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9743 hardcode_libdir_separator_CXX=:
9744
9745 # Commands to make compiler produce verbose output that lists
9746 # what "hidden" libraries, object files and flags are used when
9747 # linking a shared library.
9748 #
9749 # There doesn't appear to be a way to prevent this compiler from
9750 # explicitly linking system object files so we need to strip them
9751 # from the output so that they don't get included in the library
9752 # dependencies.
9753 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'
9754 ;;
9755 esac
9756 ;;
9757 lynxos*)
9758 # FIXME: insert proper C++ library support
9759 ld_shlibs_CXX=no
9760 ;;
9761 m88k*)
9762 # FIXME: insert proper C++ library support
9763 ld_shlibs_CXX=no
9764 ;;
9765 mvs*)
9766 case $cc_basename in
9767 cxx)
9768 # FIXME: insert proper C++ library support
9769 ld_shlibs_CXX=no
9770 ;;
9771 *)
9772 # FIXME: insert proper C++ library support
9773 ld_shlibs_CXX=no
9774 ;;
9775 esac
9776 ;;
9777 netbsd*)
9778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9779 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9780 wlarc=
9781 hardcode_libdir_flag_spec_CXX='-R$libdir'
9782 hardcode_direct_CXX=yes
9783 hardcode_shlibpath_var_CXX=no
9784 fi
9785 # Workaround some broken pre-1.5 toolchains
9786 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9787 ;;
9788 osf3*)
9789 case $cc_basename in
9790 KCC)
9791 # Kuck and Associates, Inc. (KAI) C++ Compiler
9792
9793 # KCC will only create a shared library if the output file
9794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9795 # to its proper name (with version) after linking.
9796 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'
9797
9798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9799 hardcode_libdir_separator_CXX=:
9800
9801 # Archives containing C++ object files must be created using
9802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9804
9805 ;;
9806 RCC)
9807 # Rational C++ 2.4.1
9808 # FIXME: insert proper C++ library support
9809 ld_shlibs_CXX=no
9810 ;;
9811 cxx)
9812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9813 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'
9814
9815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9816 hardcode_libdir_separator_CXX=:
9817
9818 # Commands to make compiler produce verbose output that lists
9819 # what "hidden" libraries, object files and flags are used when
9820 # linking a shared library.
9821 #
9822 # There doesn't appear to be a way to prevent this compiler from
9823 # explicitly linking system object files so we need to strip them
9824 # from the output so that they don't get included in the library
9825 # dependencies.
9826 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'
9827 ;;
9828 *)
9829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9831 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'
9832
9833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9834 hardcode_libdir_separator_CXX=:
9835
9836 # Commands to make compiler produce verbose output that lists
9837 # what "hidden" libraries, object files and flags are used when
9838 # linking a shared library.
9839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9840
9841 else
9842 # FIXME: insert proper C++ library support
9843 ld_shlibs_CXX=no
9844 fi
9845 ;;
9846 esac
9847 ;;
9848 osf4* | osf5*)
9849 case $cc_basename in
9850 KCC)
9851 # Kuck and Associates, Inc. (KAI) C++ Compiler
9852
9853 # KCC will only create a shared library if the output file
9854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9855 # to its proper name (with version) after linking.
9856 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'
9857
9858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9859 hardcode_libdir_separator_CXX=:
9860
9861 # Archives containing C++ object files must be created using
9862 # the KAI C++ compiler.
9863 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9864 ;;
9865 RCC)
9866 # Rational C++ 2.4.1
9867 # FIXME: insert proper C++ library support
9868 ld_shlibs_CXX=no
9869 ;;
9870 cxx)
9871 allow_undefined_flag_CXX=' -expect_unresolved \*'
9872 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'
9873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9874 echo "-hidden">> $lib.exp~
9875 $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~
9876 $rm $lib.exp'
9877
9878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9879 hardcode_libdir_separator_CXX=:
9880
9881 # Commands to make compiler produce verbose output that lists
9882 # what "hidden" libraries, object files and flags are used when
9883 # linking a shared library.
9884 #
9885 # There doesn't appear to be a way to prevent this compiler from
9886 # explicitly linking system object files so we need to strip them
9887 # from the output so that they don't get included in the library
9888 # dependencies.
9889 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'
9890 ;;
9891 *)
9892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9894 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'
9895
9896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator_CXX=:
9898
9899 # Commands to make compiler produce verbose output that lists
9900 # what "hidden" libraries, object files and flags are used when
9901 # linking a shared library.
9902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9903
9904 else
9905 # FIXME: insert proper C++ library support
9906 ld_shlibs_CXX=no
9907 fi
9908 ;;
9909 esac
9910 ;;
9911 psos*)
9912 # FIXME: insert proper C++ library support
9913 ld_shlibs_CXX=no
9914 ;;
9915 sco*)
9916 archive_cmds_need_lc_CXX=no
9917 case $cc_basename in
9918 CC)
9919 # FIXME: insert proper C++ library support
9920 ld_shlibs_CXX=no
9921 ;;
9922 *)
9923 # FIXME: insert proper C++ library support
9924 ld_shlibs_CXX=no
9925 ;;
9926 esac
9927 ;;
9928 sunos4*)
9929 case $cc_basename in
9930 CC)
9931 # Sun C++ 4.x
9932 # FIXME: insert proper C++ library support
9933 ld_shlibs_CXX=no
9934 ;;
9935 lcc)
9936 # Lucid
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 ;;
9940 *)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 esac
9945 ;;
9946 solaris*)
9947 case $cc_basename in
9948 CC)
9949 # Sun C++ 4.2, 5.x and Centerline C++
9950 no_undefined_flag_CXX=' -zdefs'
9951 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9952 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9953 $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'
9954
9955 hardcode_libdir_flag_spec_CXX='-R$libdir'
9956 hardcode_shlibpath_var_CXX=no
9957 case $host_os in
9958 solaris2.0-5 | solaris2.0-5.*) ;;
9959 *)
9960 # The C++ compiler is used as linker so we must use $wl
9961 # flag to pass the commands to the underlying system
9962 # linker.
9963 # Supported since Solaris 2.6 (maybe 2.5.1?)
9964 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9965 ;;
9966 esac
9967 link_all_deplibs_CXX=yes
9968
9969 # Commands to make compiler produce verbose output that lists
9970 # what "hidden" libraries, object files and flags are used when
9971 # linking a shared library.
9972 #
9973 # There doesn't appear to be a way to prevent this compiler from
9974 # explicitly linking system object files so we need to strip them
9975 # from the output so that they don't get included in the library
9976 # dependencies.
9977 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'
9978
9979 # Archives containing C++ object files must be created using
9980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9981 # necessary to make sure instantiated templates are included
9982 # in the archive.
9983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9984 ;;
9985 gcx)
9986 # Green Hills C++ Compiler
9987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9988
9989 # The C++ compiler must be used to create the archive.
9990 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9991 ;;
9992 *)
9993 # GNU C++ compiler with Solaris linker
9994 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9995 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9996 if $CC --version | grep -v '^2\.7' > /dev/null; then
9997 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9999 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10000
10001 # Commands to make compiler produce verbose output that lists
10002 # what "hidden" libraries, object files and flags are used when
10003 # linking a shared library.
10004 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10005 else
10006 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10007 # platform.
10008 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10010 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10011
10012 # Commands to make compiler produce verbose output that lists
10013 # what "hidden" libraries, object files and flags are used when
10014 # linking a shared library.
10015 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10016 fi
10017
10018 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10019 fi
10020 ;;
10021 esac
10022 ;;
10023 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10024 archive_cmds_need_lc_CXX=no
10025 ;;
10026 tandem*)
10027 case $cc_basename in
10028 NCC)
10029 # NonStop-UX NCC 3.20
10030 # FIXME: insert proper C++ library support
10031 ld_shlibs_CXX=no
10032 ;;
10033 *)
10034 # FIXME: insert proper C++ library support
10035 ld_shlibs_CXX=no
10036 ;;
10037 esac
10038 ;;
10039 vxworks*)
10040 # FIXME: insert proper C++ library support
10041 ld_shlibs_CXX=no
10042 ;;
10043 *)
10044 # FIXME: insert proper C++ library support
10045 ld_shlibs_CXX=no
10046 ;;
10047esac
10048echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10049echo "${ECHO_T}$ld_shlibs_CXX" >&6
10050test "$ld_shlibs_CXX" = no && can_build_shared=no
10051
10052GCC_CXX="$GXX"
10053LD_CXX="$LD"
10054
John Criswell47fdd832003-07-14 16:52:07 +000010055
10056cat > conftest.$ac_ext <<EOF
10057class Foo
10058{
10059public:
10060 Foo (void) { a = 0; }
10061private:
10062 int a;
10063};
10064EOF
10065
10066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10067 (eval $ac_compile) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; then
10071 # Parse the compiler output and extract the necessary
10072 # objects, libraries and library flags.
10073
10074 # Sentinel used to keep track of whether or not we are before
10075 # the conftest object file.
10076 pre_test_object_deps_done=no
10077
10078 # The `*' in the case matches for architectures that use `case' in
10079 # $output_verbose_cmd can trigger glob expansion during the loop
10080 # eval without this substitution.
10081 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10082
10083 for p in `eval $output_verbose_link_cmd`; do
10084 case $p in
10085
10086 -L* | -R* | -l*)
10087 # Some compilers place space between "-{L,R}" and the path.
10088 # Remove the space.
10089 if test $p = "-L" \
10090 || test $p = "-R"; then
10091 prev=$p
10092 continue
10093 else
10094 prev=
10095 fi
10096
10097 if test "$pre_test_object_deps_done" = no; then
10098 case $p in
10099 -L* | -R*)
10100 # Internal compiler library paths should come after those
10101 # provided the user. The postdeps already come after the
10102 # user supplied libs so there is no need to process them.
10103 if test -z "$compiler_lib_search_path_CXX"; then
10104 compiler_lib_search_path_CXX="${prev}${p}"
10105 else
10106 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10107 fi
10108 ;;
10109 # The "-l" case would never come before the object being
10110 # linked, so don't bother handling this case.
10111 esac
10112 else
10113 if test -z "$postdeps_CXX"; then
10114 postdeps_CXX="${prev}${p}"
10115 else
10116 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10117 fi
10118 fi
10119 ;;
10120
10121 *.$objext)
10122 # This assumes that the test object file only shows up
10123 # once in the compiler output.
10124 if test "$p" = "conftest.$objext"; then
10125 pre_test_object_deps_done=yes
10126 continue
10127 fi
10128
10129 if test "$pre_test_object_deps_done" = no; then
10130 if test -z "$predep_objects_CXX"; then
10131 predep_objects_CXX="$p"
10132 else
10133 predep_objects_CXX="$predep_objects_CXX $p"
10134 fi
10135 else
10136 if test -z "$postdep_objects_CXX"; then
10137 postdep_objects_CXX="$p"
10138 else
10139 postdep_objects_CXX="$postdep_objects_CXX $p"
10140 fi
10141 fi
10142 ;;
10143
10144 *) ;; # Ignore the rest.
10145
10146 esac
10147 done
10148
10149 # Clean up.
10150 rm -f a.out a.exe
10151else
10152 echo "libtool.m4: error: problem compiling CXX test program"
10153fi
10154
10155$rm -f confest.$objext
10156
10157case " $postdeps_CXX " in
10158*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10159esac
10160
10161lt_prog_compiler_wl_CXX=
10162lt_prog_compiler_pic_CXX=
10163lt_prog_compiler_static_CXX=
10164
10165echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10166echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10167
10168 # C++ specific cases for pic, static, wl, etc.
10169 if test "$GXX" = yes; then
10170 lt_prog_compiler_wl_CXX='-Wl,'
10171 lt_prog_compiler_static_CXX='-static'
10172
10173 case $host_os in
10174 aix*)
10175 # All AIX code is PIC.
10176 if test "$host_cpu" = ia64; then
10177 # AIX 5 now supports IA64 processor
10178 lt_prog_compiler_static_CXX='-Bstatic'
10179 fi
10180 ;;
10181 amigaos*)
10182 # FIXME: we need at least 68020 code to build shared libraries, but
10183 # adding the `-m68020' flag to GCC prevents building anything better,
10184 # like `-m68040'.
10185 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10186 ;;
10187 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10188 # PIC is the default for these OSes.
10189 ;;
10190 mingw* | os2* | pw32*)
10191 # This hack is so that the source file can tell whether it is being
10192 # built for inclusion in a dll (and should export symbols for example).
10193 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10194 ;;
10195 darwin* | rhapsody*)
10196 # PIC is the default on this platform
10197 # Common symbols not allowed in MH_DYLIB files
10198 lt_prog_compiler_pic_CXX='-fno-common'
10199 ;;
10200 *djgpp*)
10201 # DJGPP does not support shared libraries at all
10202 lt_prog_compiler_pic_CXX=
10203 ;;
10204 sysv4*MP*)
10205 if test -d /usr/nec; then
10206 lt_prog_compiler_pic_CXX=-Kconform_pic
10207 fi
10208 ;;
10209 hpux*)
10210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10211 # not for PA HP-UX.
10212 case "$host_cpu" in
10213 hppa*64*|ia64*)
10214 ;;
10215 *)
10216 lt_prog_compiler_pic_CXX='-fPIC'
10217 ;;
10218 esac
10219 ;;
10220 *)
10221 lt_prog_compiler_pic_CXX='-fPIC'
10222 ;;
10223 esac
10224 else
10225 case $host_os in
10226 aix4* | aix5*)
10227 # All AIX code is PIC.
10228 if test "$host_cpu" = ia64; then
10229 # AIX 5 now supports IA64 processor
10230 lt_prog_compiler_static_CXX='-Bstatic'
10231 else
10232 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10233 fi
10234 ;;
10235 chorus*)
10236 case $cc_basename in
10237 cxch68)
10238 # Green Hills C++ Compiler
10239 # _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"
10240 ;;
10241 esac
10242 ;;
10243 dgux*)
10244 case $cc_basename in
10245 ec++)
10246 lt_prog_compiler_pic_CXX='-KPIC'
10247 ;;
10248 ghcx)
10249 # Green Hills C++ Compiler
10250 lt_prog_compiler_pic_CXX='-pic'
10251 ;;
10252 *)
10253 ;;
10254 esac
10255 ;;
10256 freebsd*)
10257 # FreeBSD uses GNU C++
10258 ;;
10259 hpux9* | hpux10* | hpux11*)
10260 case $cc_basename in
10261 CC)
10262 lt_prog_compiler_wl_CXX='-Wl,'
10263 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10264 if test "$host_cpu" != ia64; then
10265 lt_prog_compiler_pic_CXX='+Z'
10266 fi
10267 ;;
10268 aCC)
10269 lt_prog_compiler_wl_CXX='-Wl,'
10270 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10271 case "$host_cpu" in
10272 hppa*64*|ia64*)
10273 # +Z the default
10274 ;;
10275 *)
10276 lt_prog_compiler_pic_CXX='+Z'
10277 ;;
10278 esac
10279 ;;
10280 *)
10281 ;;
10282 esac
10283 ;;
10284 irix5* | irix6* | nonstopux*)
10285 case $cc_basename in
10286 CC)
10287 lt_prog_compiler_wl_CXX='-Wl,'
10288 lt_prog_compiler_static_CXX='-non_shared'
10289 # CC pic flag -KPIC is the default.
10290 ;;
10291 *)
10292 ;;
10293 esac
10294 ;;
10295 linux*)
10296 case $cc_basename in
10297 KCC)
10298 # KAI C++ Compiler
10299 lt_prog_compiler_wl_CXX='--backend -Wl,'
10300 lt_prog_compiler_pic_CXX='-fPIC'
10301 ;;
10302 icpc)
10303 # Intel C++
10304 lt_prog_compiler_wl_CXX='-Wl,'
10305 lt_prog_compiler_pic_CXX='-KPIC'
10306 lt_prog_compiler_static_CXX='-static'
10307 ;;
10308 cxx)
10309 # Compaq C++
10310 # Make sure the PIC flag is empty. It appears that all Alpha
10311 # Linux and Compaq Tru64 Unix objects are PIC.
10312 lt_prog_compiler_pic_CXX=
10313 lt_prog_compiler_static_CXX='-non_shared'
10314 ;;
10315 *)
10316 ;;
10317 esac
10318 ;;
10319 lynxos*)
10320 ;;
10321 m88k*)
10322 ;;
10323 mvs*)
10324 case $cc_basename in
10325 cxx)
10326 lt_prog_compiler_pic_CXX='-W c,exportall'
10327 ;;
10328 *)
10329 ;;
10330 esac
10331 ;;
10332 netbsd*)
10333 ;;
10334 osf3* | osf4* | osf5*)
10335 case $cc_basename in
10336 KCC)
10337 lt_prog_compiler_wl_CXX='--backend -Wl,'
10338 ;;
10339 RCC)
10340 # Rational C++ 2.4.1
10341 lt_prog_compiler_pic_CXX='-pic'
10342 ;;
10343 cxx)
10344 # Digital/Compaq C++
10345 lt_prog_compiler_wl_CXX='-Wl,'
10346 # Make sure the PIC flag is empty. It appears that all Alpha
10347 # Linux and Compaq Tru64 Unix objects are PIC.
10348 lt_prog_compiler_pic_CXX=
10349 lt_prog_compiler_static_CXX='-non_shared'
10350 ;;
10351 *)
10352 ;;
10353 esac
10354 ;;
10355 psos*)
10356 ;;
10357 sco*)
10358 case $cc_basename in
10359 CC)
10360 lt_prog_compiler_pic_CXX='-fPIC'
10361 ;;
10362 *)
10363 ;;
10364 esac
10365 ;;
10366 solaris*)
10367 case $cc_basename in
10368 CC)
10369 # Sun C++ 4.2, 5.x and Centerline C++
10370 lt_prog_compiler_pic_CXX='-KPIC'
10371 lt_prog_compiler_static_CXX='-Bstatic'
10372 lt_prog_compiler_wl_CXX='-Qoption ld '
10373 ;;
10374 gcx)
10375 # Green Hills C++ Compiler
10376 lt_prog_compiler_pic_CXX='-PIC'
10377 ;;
10378 *)
10379 ;;
10380 esac
10381 ;;
10382 sunos4*)
10383 case $cc_basename in
10384 CC)
10385 # Sun C++ 4.x
10386 lt_prog_compiler_pic_CXX='-pic'
10387 lt_prog_compiler_static_CXX='-Bstatic'
10388 ;;
10389 lcc)
10390 # Lucid
10391 lt_prog_compiler_pic_CXX='-pic'
10392 ;;
10393 *)
10394 ;;
10395 esac
10396 ;;
10397 tandem*)
10398 case $cc_basename in
10399 NCC)
10400 # NonStop-UX NCC 3.20
10401 lt_prog_compiler_pic_CXX='-KPIC'
10402 ;;
10403 *)
10404 ;;
10405 esac
10406 ;;
10407 unixware*)
10408 ;;
10409 vxworks*)
10410 ;;
10411 *)
10412 lt_prog_compiler_can_build_shared_CXX=no
10413 ;;
10414 esac
10415 fi
10416
10417echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10418echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10419
10420#
10421# Check to make sure the PIC flag actually works.
10422#
10423if test -n "$lt_prog_compiler_pic_CXX"; then
10424 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10425echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10426if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428else
10429 lt_prog_compiler_pic_works_CXX=no
10430 ac_outfile=conftest.$ac_objext
10431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10432 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10433 # Insert the option either (1) after the last *FLAGS variable, or
10434 # (2) before a word containing "conftest.", or (3) at the end.
10435 # Note that $ac_compile itself does not contain backslashes and begins
10436 # with a dollar sign (not a hyphen), so the echo should work correctly.
10437 # The option is referenced via a variable to avoid confusing sed.
10438 lt_compile=`echo "$ac_compile" | $SED \
10439 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10441 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000010442 (eval echo "\"\$as_me:10442: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010443 (eval "$lt_compile" 2>conftest.err)
10444 ac_status=$?
10445 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000010446 echo "$as_me:10446: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010447 if (exit $ac_status) && test -s "$ac_outfile"; then
10448 # The compiler can only warn and ignore the option if not recognized
10449 # So say no if there are warnings
10450 if test ! -s conftest.err; then
10451 lt_prog_compiler_pic_works_CXX=yes
10452 fi
10453 fi
10454 $rm conftest*
10455
10456fi
10457echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10458echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10459
10460if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10461 case $lt_prog_compiler_pic_CXX in
10462 "" | " "*) ;;
10463 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10464 esac
10465else
10466 lt_prog_compiler_pic_CXX=
10467 lt_prog_compiler_can_build_shared_CXX=no
10468fi
10469
10470fi
10471case "$host_os" in
10472 # For platforms which do not support PIC, -DPIC is meaningless:
10473 *djgpp*)
10474 lt_prog_compiler_pic_CXX=
10475 ;;
10476 *)
10477 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10478 ;;
10479esac
10480
10481echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10482echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10483if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485else
10486 lt_cv_prog_compiler_c_o_CXX=no
10487 $rm -r conftest 2>/dev/null
10488 mkdir conftest
10489 cd conftest
10490 mkdir out
10491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10492
10493 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10494 # that will create temporary files in the current directory regardless of
10495 # the output directory. Thus, making CWD read-only will cause this test
10496 # to fail, enabling locking or at least warning the user not to do parallel
10497 # builds.
10498 chmod -w .
10499
10500 lt_compiler_flag="-o out/conftest2.$ac_objext"
10501 # Insert the option either (1) after the last *FLAGS variable, or
10502 # (2) before a word containing "conftest.", or (3) at the end.
10503 # Note that $ac_compile itself does not contain backslashes and begins
10504 # with a dollar sign (not a hyphen), so the echo should work correctly.
10505 lt_compile=`echo "$ac_compile" | $SED \
10506 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10508 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000010509 (eval echo "\"\$as_me:10509: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010510 (eval "$lt_compile" 2>out/conftest.err)
10511 ac_status=$?
10512 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000010513 echo "$as_me:10513: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10515 then
10516 # The compiler can only warn and ignore the option if not recognized
10517 # So say no if there are warnings
10518 if test ! -s out/conftest.err; then
10519 lt_cv_prog_compiler_c_o_CXX=yes
10520 fi
10521 fi
10522 chmod u+w .
10523 $rm conftest* out/*
10524 rmdir out
10525 cd ..
10526 rmdir conftest
10527 $rm conftest*
10528
10529fi
10530echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10531echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10532
10533
10534hard_links="nottested"
10535if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10536 # do not overwrite the value of need_locks provided by the user
10537 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10538echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10539 hard_links=yes
10540 $rm conftest*
10541 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10542 touch conftest.a
10543 ln conftest.a conftest.b 2>&5 || hard_links=no
10544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10545 echo "$as_me:$LINENO: result: $hard_links" >&5
10546echo "${ECHO_T}$hard_links" >&6
10547 if test "$hard_links" = no; then
10548 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10549echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10550 need_locks=warn
10551 fi
10552else
10553 need_locks=no
10554fi
10555
10556echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10557echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10558
10559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10560 case $host_os in
10561 aix4* | aix5*)
10562 # If we're using GNU nm, then we don't want the "-C" option.
10563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10564 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10565 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'
10566 else
10567 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'
10568 fi
10569 ;;
10570 pw32*)
10571 export_symbols_cmds_CXX="$ltdll_cmds"
10572 ;;
10573 cygwin* | mingw*)
10574 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10575 ;;
10576 *)
10577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10578 ;;
10579 esac
10580
10581echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10582echo "${ECHO_T}$ld_shlibs_CXX" >&6
10583test "$ld_shlibs_CXX" = no && can_build_shared=no
10584
10585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10586if test "$GCC" = yes; then
10587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10588fi
10589
10590#
10591# Do we need to explicitly link libc?
10592#
10593case "x$archive_cmds_need_lc_CXX" in
10594x|xyes)
10595 # Assume -lc should be added
10596 archive_cmds_need_lc_CXX=yes
10597
10598 if test "$enable_shared" = yes && test "$GCC" = yes; then
10599 case $archive_cmds_CXX in
10600 *'~'*)
10601 # FIXME: we may have to deal with multi-command sequences.
10602 ;;
10603 '$CC '*)
10604 # Test whether the compiler implicitly links with -lc since on some
10605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10606 # to ld, don't add -lc before -lgcc.
10607 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10609 $rm conftest*
10610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10611
10612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10613 (eval $ac_compile) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } 2>conftest.err; then
10617 soname=conftest
10618 lib=conftest
10619 libobjs=conftest.$ac_objext
10620 deplibs=
10621 wl=$lt_prog_compiler_wl_CXX
10622 compiler_flags=-v
10623 linker_flags=-v
10624 verstring=
10625 output_objdir=.
10626 libname=conftest
10627 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10628 allow_undefined_flag_CXX=
10629 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10630 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }
10634 then
10635 archive_cmds_need_lc_CXX=no
10636 else
10637 archive_cmds_need_lc_CXX=yes
10638 fi
10639 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10640 else
10641 cat conftest.err 1>&5
10642 fi
10643 $rm conftest*
10644 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10645echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10646 ;;
10647 esac
10648 fi
10649 ;;
10650esac
10651
10652echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10653echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10654hardcode_action_CXX=
10655if test -n "$hardcode_libdir_flag_spec_CXX" || \
10656 test -n "$runpath_var CXX" || \
10657 test "X$hardcode_automatic_CXX"="Xyes" ; then
10658
10659 # We can hardcode non-existant directories.
10660 if test "$hardcode_direct_CXX" != no &&
10661 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10662 # have to relink, otherwise we might link with an installed library
10663 # when we should be linking with a yet-to-be-installed one
10664 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10665 test "$hardcode_minus_L_CXX" != no; then
10666 # Linking always hardcodes the temporary library directory.
10667 hardcode_action_CXX=relink
10668 else
10669 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10670 hardcode_action_CXX=immediate
10671 fi
10672else
10673 # We cannot hardcode anything, or else we can only hardcode existing
10674 # directories.
10675 hardcode_action_CXX=unsupported
10676fi
10677echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10678echo "${ECHO_T}$hardcode_action_CXX" >&6
10679
10680if test "$hardcode_action_CXX" = relink; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
10687fi
10688
10689striplib=
10690old_striplib=
10691echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10692echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10693if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10696 echo "$as_me:$LINENO: result: yes" >&5
10697echo "${ECHO_T}yes" >&6
10698else
10699# FIXME - insert some real tests, host_os isn't really good enough
10700 case $host_os in
10701 darwin*)
10702 if test -n "$STRIP" ; then
10703 striplib="$STRIP -x"
10704 echo "$as_me:$LINENO: result: yes" >&5
10705echo "${ECHO_T}yes" >&6
10706 else
10707 echo "$as_me:$LINENO: result: no" >&5
10708echo "${ECHO_T}no" >&6
10709fi
10710 ;;
10711 *)
10712 echo "$as_me:$LINENO: result: no" >&5
10713echo "${ECHO_T}no" >&6
10714 ;;
10715 esac
10716fi
10717
10718echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10719echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10720library_names_spec=
10721libname_spec='lib$name'
10722soname_spec=
10723shrext=".so"
10724postinstall_cmds=
10725postuninstall_cmds=
10726finish_cmds=
10727finish_eval=
10728shlibpath_var=
10729shlibpath_overrides_runpath=unknown
10730version_type=none
10731dynamic_linker="$host_os ld.so"
10732sys_lib_dlsearch_path_spec="/lib /usr/lib"
10733if test "$GCC" = yes; then
10734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10735 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10736 # if the path contains ";" then we assume it to be the separator
10737 # otherwise default to the standard path separator (i.e. ":") - it is
10738 # assumed that no part of a normal pathname contains ";" but that should
10739 # okay in the real world where ";" in dirpaths is itself problematic.
10740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10741 else
10742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 fi
10744else
10745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10746fi
10747need_lib_prefix=unknown
10748hardcode_into_libs=no
10749
10750# when you set need_version to no, make sure it does not cause -set_version
10751# flags to be left without arguments
10752need_version=unknown
10753
10754case $host_os in
10755aix3*)
10756 version_type=linux
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10758 shlibpath_var=LIBPATH
10759
10760 # AIX 3 has no versioning support, so we append a major version to the name.
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 ;;
10763
10764aix4* | aix5*)
10765 version_type=linux
10766 need_lib_prefix=no
10767 need_version=no
10768 hardcode_into_libs=yes
10769 if test "$host_cpu" = ia64; then
10770 # AIX 5 supports IA64
10771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 else
10774 # With GCC up to 2.95.x, collect2 would create an import file
10775 # for dependence libraries. The import file would start with
10776 # the line `#! .'. This would cause the generated library to
10777 # depend on `.', always an invalid library. This was fixed in
10778 # development snapshots of GCC prior to 3.0.
10779 case $host_os in
10780 aix4 | aix4.[01] | aix4.[01].*)
10781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10782 echo ' yes '
10783 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10784 :
10785 else
10786 can_build_shared=no
10787 fi
10788 ;;
10789 esac
10790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10791 # soname into executable. Probably we can add versioning support to
10792 # collect2, so additional links can be useful in future.
10793 if test "$aix_use_runtimelinking" = yes; then
10794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10795 # instead of lib<name>.a to let people know that these are not
10796 # typical AIX shared libraries.
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 else
10799 # We preserve .a as extension for shared libraries through AIX4.2
10800 # and later when we are not doing run time linking.
10801 library_names_spec='${libname}${release}.a $libname.a'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 fi
10804 shlibpath_var=LIBPATH
10805 fi
10806 ;;
10807
10808amigaos*)
10809 library_names_spec='$libname.ixlibrary $libname.a'
10810 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10811 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'
10812 ;;
10813
10814beos*)
10815 library_names_spec='${libname}${shared_ext}'
10816 dynamic_linker="$host_os ld.so"
10817 shlibpath_var=LIBRARY_PATH
10818 ;;
10819
10820bsdi4*)
10821 version_type=linux
10822 need_version=no
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10829 # the default ld.so.conf also contains /usr/contrib/lib and
10830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10831 # libtool to hard-code these into programs
10832 ;;
10833
10834cygwin* | mingw* | pw32*)
10835 version_type=windows
10836 shrext=".dll"
10837 need_version=no
10838 need_lib_prefix=no
10839
10840 case $GCC,$host_os in
10841 yes,cygwin* | yes,mingw* | yes,pw32*)
10842 library_names_spec='$libname.dll.a'
10843 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10844 postinstall_cmds='base_file=`basename \${file}`~
10845 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10846 dldir=$destdir/`dirname \$dlpath`~
10847 test -d \$dldir || mkdir -p \$dldir~
10848 $install_prog $dir/$dlname \$dldir/$dlname'
10849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10850 dlpath=$dir/\$dldll~
10851 $rm \$dlpath'
10852 shlibpath_overrides_runpath=yes
10853
10854 case $host_os in
10855 cygwin*)
10856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10857 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10858 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10859 ;;
10860 mingw*)
10861 # MinGW DLLs use traditional 'lib' prefix
10862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10864 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10865 # It is most probably a Windows format PATH printed by
10866 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10867 # path with ; separators, and with drive letters. We can handle the
10868 # drive letters (cygwin fileutils understands them), so leave them,
10869 # especially as we might pass files found there to a mingw objdump,
10870 # which wouldn't understand a cygwinified path. Ahh.
10871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10872 else
10873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10874 fi
10875 ;;
10876 pw32*)
10877 # pw32 DLLs use 'pw' prefix rather than 'lib'
10878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10879 ;;
10880 esac
10881 ;;
10882
10883 *)
10884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10885 ;;
10886 esac
10887 dynamic_linker='Win32 ld.exe'
10888 # FIXME: first we should search . and the directory the executable is in
10889 shlibpath_var=PATH
10890 ;;
10891
10892darwin* | rhapsody*)
10893 dynamic_linker="$host_os dyld"
10894 version_type=darwin
10895 need_lib_prefix=no
10896 need_version=no
10897 # FIXME: Relying on posixy $() will cause problems for
10898 # cross-compilation, but unfortunately the echo tests do not
10899 # yet detect zsh echo's removal of \ escapes.
10900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10901 soname_spec='${libname}${release}${major}$shared_ext'
10902 shlibpath_overrides_runpath=yes
10903 shlibpath_var=DYLD_LIBRARY_PATH
10904 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10905 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10906 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10907 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"`
10908 fi
10909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10910 ;;
10911
10912dgux*)
10913 version_type=linux
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 ;;
10920
10921freebsd1*)
10922 dynamic_linker=no
10923 ;;
10924
10925freebsd*)
10926 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10927 version_type=freebsd-$objformat
10928 case $version_type in
10929 freebsd-elf*)
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10931 need_version=no
10932 need_lib_prefix=no
10933 ;;
10934 freebsd-*)
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10936 need_version=yes
10937 ;;
10938 esac
10939 shlibpath_var=LD_LIBRARY_PATH
10940 case $host_os in
10941 freebsd2*)
10942 shlibpath_overrides_runpath=yes
10943 ;;
10944 freebsd3.01* | freebsdelf3.01*)
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10947 ;;
10948 *) # from 3.2 on
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10951 ;;
10952 esac
10953 ;;
10954
10955gnu*)
10956 version_type=linux
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 hardcode_into_libs=yes
10963 ;;
10964
10965hpux9* | hpux10* | hpux11*)
10966 # Give a soname corresponding to the major version so that dld.sl refuses to
10967 # link against other versions.
10968 version_type=sunos
10969 need_lib_prefix=no
10970 need_version=no
10971 case "$host_cpu" in
10972 ia64*)
10973 shrext='.so'
10974 hardcode_into_libs=yes
10975 dynamic_linker="$host_os dld.so"
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 if test "X$HPUX_IA64_MODE" = X32; then
10981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10982 else
10983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10984 fi
10985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10986 ;;
10987 hppa*64*)
10988 shrext='.sl'
10989 hardcode_into_libs=yes
10990 dynamic_linker="$host_os dld.sl"
10991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10997 ;;
10998 *)
10999 shrext='.sl'
11000 dynamic_linker="$host_os dld.sl"
11001 shlibpath_var=SHLIB_PATH
11002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 ;;
11006 esac
11007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11008 postinstall_cmds='chmod 555 $lib'
11009 ;;
11010
11011irix5* | irix6* | nonstopux*)
11012 case $host_os in
11013 nonstopux*) version_type=nonstopux ;;
11014 *)
11015 if test "$lt_cv_prog_gnu_ld" = yes; then
11016 version_type=linux
11017 else
11018 version_type=irix
11019 fi ;;
11020 esac
11021 need_lib_prefix=no
11022 need_version=no
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11025 case $host_os in
11026 irix5* | nonstopux*)
11027 libsuff= shlibsuff=
11028 ;;
11029 *)
11030 case $LD in # libtool.m4 will add one of these switches to LD
11031 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11032 libsuff= shlibsuff= libmagic=32-bit;;
11033 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11034 libsuff=32 shlibsuff=N32 libmagic=N32;;
11035 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11036 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11037 *) libsuff= shlibsuff= libmagic=never-match;;
11038 esac
11039 ;;
11040 esac
11041 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11042 shlibpath_overrides_runpath=no
11043 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11044 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11045 hardcode_into_libs=yes
11046 ;;
11047
11048# No shared lib support for Linux oldld, aout, or coff.
11049linux*oldld* | linux*aout* | linux*coff*)
11050 dynamic_linker=no
11051 ;;
11052
11053# This must be Linux ELF.
11054linux*)
11055 version_type=linux
11056 need_lib_prefix=no
11057 need_version=no
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=no
11063 # This implies no fast_install, which is unacceptable.
11064 # Some rework will be needed to allow for fast_install
11065 # before this can be enabled.
11066 hardcode_into_libs=yes
11067
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11075 ;;
11076
11077netbsd*)
11078 version_type=sunos
11079 need_lib_prefix=no
11080 need_version=no
11081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11085 else
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11089 fi
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11093 ;;
11094
11095newsos6)
11096 version_type=linux
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 ;;
11101
11102nto-qnx)
11103 version_type=linux
11104 need_lib_prefix=no
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 ;;
11111
11112openbsd*)
11113 version_type=sunos
11114 need_lib_prefix=no
11115 need_version=no
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11120 case $host_os in
11121 openbsd2.[89] | openbsd2.[89].*)
11122 shlibpath_overrides_runpath=no
11123 ;;
11124 *)
11125 shlibpath_overrides_runpath=yes
11126 ;;
11127 esac
11128 else
11129 shlibpath_overrides_runpath=yes
11130 fi
11131 ;;
11132
11133os2*)
11134 libname_spec='$name'
11135 shrext=".dll"
11136 need_lib_prefix=no
11137 library_names_spec='$libname${shared_ext} $libname.a'
11138 dynamic_linker='OS/2 ld.exe'
11139 shlibpath_var=LIBPATH
11140 ;;
11141
11142osf3* | osf4* | osf5*)
11143 version_type=osf
11144 need_lib_prefix=no
11145 need_version=no
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11151 ;;
11152
11153sco3.2v5*)
11154 version_type=osf
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 ;;
11159
11160solaris*)
11161 version_type=linux
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 # ldd complains unless libraries are executable
11170 postinstall_cmds='chmod +x $lib'
11171 ;;
11172
11173sunos4*)
11174 version_type=sunos
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes
11179 if test "$with_gnu_ld" = yes; then
11180 need_lib_prefix=no
11181 fi
11182 need_version=yes
11183 ;;
11184
11185sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11186 version_type=linux
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 case $host_vendor in
11191 sni)
11192 shlibpath_overrides_runpath=no
11193 need_lib_prefix=no
11194 export_dynamic_flag_spec='${wl}-Blargedynsym'
11195 runpath_var=LD_RUN_PATH
11196 ;;
11197 siemens)
11198 need_lib_prefix=no
11199 ;;
11200 motorola)
11201 need_lib_prefix=no
11202 need_version=no
11203 shlibpath_overrides_runpath=no
11204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11205 ;;
11206 esac
11207 ;;
11208
11209sysv4*MP*)
11210 if test -d /usr/nec ;then
11211 version_type=linux
11212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213 soname_spec='$libname${shared_ext}.$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 fi
11216 ;;
11217
11218uts4*)
11219 version_type=linux
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221 soname_spec='${libname}${release}${shared_ext}$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 ;;
11224
11225*)
11226 dynamic_linker=no
11227 ;;
11228esac
11229echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11230echo "${ECHO_T}$dynamic_linker" >&6
11231test "$dynamic_linker" = no && can_build_shared=no
11232
11233if test "x$enable_dlopen" != xyes; then
11234 enable_dlopen=unknown
11235 enable_dlopen_self=unknown
11236 enable_dlopen_self_static=unknown
11237else
11238 lt_cv_dlopen=no
11239 lt_cv_dlopen_libs=
11240
11241 case $host_os in
11242 beos*)
11243 lt_cv_dlopen="load_add_on"
11244 lt_cv_dlopen_libs=
11245 lt_cv_dlopen_self=yes
11246 ;;
11247
11248 mingw* | pw32*)
11249 lt_cv_dlopen="LoadLibrary"
11250 lt_cv_dlopen_libs=
11251 ;;
11252
11253 cygwin*)
11254 lt_cv_dlopen="dlopen"
11255 lt_cv_dlopen_libs=
11256 ;;
11257
11258 darwin*)
11259 # if libdl is installed we need to link against it
11260 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11261echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11262if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264else
11265 ac_check_lib_save_LIBS=$LIBS
11266LIBS="-ldl $LIBS"
11267cat >conftest.$ac_ext <<_ACEOF
11268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011274
11275/* Override any gcc2 internal prototype to avoid an error. */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279/* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011282int
11283main ()
11284{
11285dlopen ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290rm -f conftest.$ac_objext conftest$ac_exeext
11291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_lib_dl_dlopen=yes
11303else
11304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011305sed 's/^/| /' conftest.$ac_ext >&5
11306
John Criswell47fdd832003-07-14 16:52:07 +000011307ac_cv_lib_dl_dlopen=no
11308fi
11309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11310LIBS=$ac_check_lib_save_LIBS
11311fi
11312echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11313echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11314if test $ac_cv_lib_dl_dlopen = yes; then
11315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316else
11317
11318 lt_cv_dlopen="dyld"
11319 lt_cv_dlopen_libs=
11320 lt_cv_dlopen_self=yes
11321
11322fi
11323
11324 ;;
11325
11326 *)
11327 echo "$as_me:$LINENO: checking for shl_load" >&5
11328echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11329if test "${ac_cv_func_shl_load+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11331else
11332 cat >conftest.$ac_ext <<_ACEOF
11333#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011334/* confdefs.h. */
11335_ACEOF
11336cat confdefs.h >>conftest.$ac_ext
11337cat >>conftest.$ac_ext <<_ACEOF
11338/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011339/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011340 which can conflict with char shl_load (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11343#ifdef __STDC__
11344# include <limits.h>
11345#else
11346# include <assert.h>
11347#endif
John Criswell47fdd832003-07-14 16:52:07 +000011348/* Override any gcc2 internal prototype to avoid an error. */
11349#ifdef __cplusplus
11350extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011351{
John Criswell47fdd832003-07-14 16:52:07 +000011352#endif
11353/* We use char because int might match the return type of a gcc2
11354 builtin and then its argument prototype would still apply. */
11355char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011356/* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359#if defined (__stub_shl_load) || defined (__stub___shl_load)
11360choke me
11361#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011362char (*f) () = shl_load;
11363#endif
11364#ifdef __cplusplus
11365}
John Criswell47fdd832003-07-14 16:52:07 +000011366#endif
11367
John Criswell0c38eaf2003-09-10 15:17:25 +000011368int
11369main ()
11370{
11371return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011372 ;
11373 return 0;
11374}
11375_ACEOF
11376rm -f conftest.$ac_objext conftest$ac_exeext
11377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11378 (eval $ac_link) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -s conftest$ac_exeext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_cv_func_shl_load=yes
11389else
11390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011391sed 's/^/| /' conftest.$ac_ext >&5
11392
John Criswell47fdd832003-07-14 16:52:07 +000011393ac_cv_func_shl_load=no
11394fi
11395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11396fi
11397echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11398echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11399if test $ac_cv_func_shl_load = yes; then
11400 lt_cv_dlopen="shl_load"
11401else
11402 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11403echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11404if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 ac_check_lib_save_LIBS=$LIBS
11408LIBS="-ldld $LIBS"
11409cat >conftest.$ac_ext <<_ACEOF
11410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011416
11417/* Override any gcc2 internal prototype to avoid an error. */
11418#ifdef __cplusplus
11419extern "C"
11420#endif
11421/* We use char because int might match the return type of a gcc2
11422 builtin and then its argument prototype would still apply. */
11423char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011424int
11425main ()
11426{
11427shl_load ();
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432rm -f conftest.$ac_objext conftest$ac_exeext
11433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434 (eval $ac_link) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -s conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_lib_dld_shl_load=yes
11445else
11446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011447sed 's/^/| /' conftest.$ac_ext >&5
11448
John Criswell47fdd832003-07-14 16:52:07 +000011449ac_cv_lib_dld_shl_load=no
11450fi
11451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11452LIBS=$ac_check_lib_save_LIBS
11453fi
11454echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11455echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11456if test $ac_cv_lib_dld_shl_load = yes; then
11457 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11458else
11459 echo "$as_me:$LINENO: checking for dlopen" >&5
11460echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11461if test "${ac_cv_func_dlopen+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464 cat >conftest.$ac_ext <<_ACEOF
11465#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011471/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011472 which can conflict with char dlopen (); below.
11473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11474 <limits.h> exists even on freestanding compilers. */
11475#ifdef __STDC__
11476# include <limits.h>
11477#else
11478# include <assert.h>
11479#endif
John Criswell47fdd832003-07-14 16:52:07 +000011480/* Override any gcc2 internal prototype to avoid an error. */
11481#ifdef __cplusplus
11482extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011483{
John Criswell47fdd832003-07-14 16:52:07 +000011484#endif
11485/* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */
11487char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011488/* The GNU C library defines this for functions which it implements
11489 to always fail with ENOSYS. Some functions are actually named
11490 something starting with __ and the normal name is an alias. */
11491#if defined (__stub_dlopen) || defined (__stub___dlopen)
11492choke me
11493#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011494char (*f) () = dlopen;
11495#endif
11496#ifdef __cplusplus
11497}
John Criswell47fdd832003-07-14 16:52:07 +000011498#endif
11499
John Criswell0c38eaf2003-09-10 15:17:25 +000011500int
11501main ()
11502{
11503return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011504 ;
11505 return 0;
11506}
11507_ACEOF
11508rm -f conftest.$ac_objext conftest$ac_exeext
11509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11510 (eval $ac_link) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_cv_func_dlopen=yes
11521else
11522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011523sed 's/^/| /' conftest.$ac_ext >&5
11524
John Criswell47fdd832003-07-14 16:52:07 +000011525ac_cv_func_dlopen=no
11526fi
11527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11528fi
11529echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11530echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11531if test $ac_cv_func_dlopen = yes; then
11532 lt_cv_dlopen="dlopen"
11533else
11534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11535echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11536if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 ac_check_lib_save_LIBS=$LIBS
11540LIBS="-ldl $LIBS"
11541cat >conftest.$ac_ext <<_ACEOF
11542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011548
11549/* Override any gcc2 internal prototype to avoid an error. */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553/* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011556int
11557main ()
11558{
11559dlopen ();
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext conftest$ac_exeext
11565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_lib_dl_dlopen=yes
11577else
11578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011579sed 's/^/| /' conftest.$ac_ext >&5
11580
John Criswell47fdd832003-07-14 16:52:07 +000011581ac_cv_lib_dl_dlopen=no
11582fi
11583rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11584LIBS=$ac_check_lib_save_LIBS
11585fi
11586echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11587echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11588if test $ac_cv_lib_dl_dlopen = yes; then
11589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11590else
11591 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11592echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11593if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595else
11596 ac_check_lib_save_LIBS=$LIBS
11597LIBS="-lsvld $LIBS"
11598cat >conftest.$ac_ext <<_ACEOF
11599#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011605
11606/* Override any gcc2 internal prototype to avoid an error. */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610/* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11612char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011613int
11614main ()
11615{
11616dlopen ();
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
11622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_lib_svld_dlopen=yes
11634else
11635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011636sed 's/^/| /' conftest.$ac_ext >&5
11637
John Criswell47fdd832003-07-14 16:52:07 +000011638ac_cv_lib_svld_dlopen=no
11639fi
11640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11641LIBS=$ac_check_lib_save_LIBS
11642fi
11643echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11644echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11645if test $ac_cv_lib_svld_dlopen = yes; then
11646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11647else
11648 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11649echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11650if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652else
11653 ac_check_lib_save_LIBS=$LIBS
11654LIBS="-ldld $LIBS"
11655cat >conftest.$ac_ext <<_ACEOF
11656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011657/* confdefs.h. */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011662
11663/* Override any gcc2 internal prototype to avoid an error. */
11664#ifdef __cplusplus
11665extern "C"
11666#endif
11667/* We use char because int might match the return type of a gcc2
11668 builtin and then its argument prototype would still apply. */
11669char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011670int
11671main ()
11672{
11673dld_link ();
11674 ;
11675 return 0;
11676}
11677_ACEOF
11678rm -f conftest.$ac_objext conftest$ac_exeext
11679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_cv_lib_dld_dld_link=yes
11691else
11692 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011693sed 's/^/| /' conftest.$ac_ext >&5
11694
John Criswell47fdd832003-07-14 16:52:07 +000011695ac_cv_lib_dld_dld_link=no
11696fi
11697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11698LIBS=$ac_check_lib_save_LIBS
11699fi
11700echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11701echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11702if test $ac_cv_lib_dld_dld_link = yes; then
11703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11704fi
11705
11706
11707fi
11708
11709
11710fi
11711
11712
11713fi
11714
11715
11716fi
11717
11718
11719fi
11720
11721 ;;
11722 esac
11723
11724 if test "x$lt_cv_dlopen" != xno; then
11725 enable_dlopen=yes
11726 else
11727 enable_dlopen=no
11728 fi
11729
11730 case $lt_cv_dlopen in
11731 dlopen)
11732 save_CPPFLAGS="$CPPFLAGS"
11733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11734
11735 save_LDFLAGS="$LDFLAGS"
11736 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11737
11738 save_LIBS="$LIBS"
11739 LIBS="$lt_cv_dlopen_libs $LIBS"
11740
11741 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11742echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11743if test "${lt_cv_dlopen_self+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 if test "$cross_compiling" = yes; then :
11747 lt_cv_dlopen_self=cross
11748else
11749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11750 lt_status=$lt_dlunknown
11751 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000011752#line 11752 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011753#include "confdefs.h"
11754
11755#if HAVE_DLFCN_H
11756#include <dlfcn.h>
11757#endif
11758
11759#include <stdio.h>
11760
11761#ifdef RTLD_GLOBAL
11762# define LT_DLGLOBAL RTLD_GLOBAL
11763#else
11764# ifdef DL_GLOBAL
11765# define LT_DLGLOBAL DL_GLOBAL
11766# else
11767# define LT_DLGLOBAL 0
11768# endif
11769#endif
11770
11771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11772 find out it does not work in some platform. */
11773#ifndef LT_DLLAZY_OR_NOW
11774# ifdef RTLD_LAZY
11775# define LT_DLLAZY_OR_NOW RTLD_LAZY
11776# else
11777# ifdef DL_LAZY
11778# define LT_DLLAZY_OR_NOW DL_LAZY
11779# else
11780# ifdef RTLD_NOW
11781# define LT_DLLAZY_OR_NOW RTLD_NOW
11782# else
11783# ifdef DL_NOW
11784# define LT_DLLAZY_OR_NOW DL_NOW
11785# else
11786# define LT_DLLAZY_OR_NOW 0
11787# endif
11788# endif
11789# endif
11790# endif
11791#endif
11792
11793#ifdef __cplusplus
11794extern "C" void exit (int);
11795#endif
11796
11797void fnord() { int i=42;}
11798int main ()
11799{
11800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801 int status = $lt_dlunknown;
11802
11803 if (self)
11804 {
11805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807 /* dlclose (self); */
11808 }
11809
11810 exit (status);
11811}
11812EOF
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11818 (./conftest; exit; ) 2>/dev/null
11819 lt_status=$?
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11823 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11824 esac
11825 else :
11826 # compilation failed
11827 lt_cv_dlopen_self=no
11828 fi
11829fi
11830rm -fr conftest*
11831
11832
11833fi
11834echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11835echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11836
11837 if test "x$lt_cv_dlopen_self" = xyes; then
11838 LDFLAGS="$LDFLAGS $link_static_flag"
11839 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11840echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11841if test "${lt_cv_dlopen_self_static+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 if test "$cross_compiling" = yes; then :
11845 lt_cv_dlopen_self_static=cross
11846else
11847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11848 lt_status=$lt_dlunknown
11849 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000011850#line 11850 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011851#include "confdefs.h"
11852
11853#if HAVE_DLFCN_H
11854#include <dlfcn.h>
11855#endif
11856
11857#include <stdio.h>
11858
11859#ifdef RTLD_GLOBAL
11860# define LT_DLGLOBAL RTLD_GLOBAL
11861#else
11862# ifdef DL_GLOBAL
11863# define LT_DLGLOBAL DL_GLOBAL
11864# else
11865# define LT_DLGLOBAL 0
11866# endif
11867#endif
11868
11869/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11870 find out it does not work in some platform. */
11871#ifndef LT_DLLAZY_OR_NOW
11872# ifdef RTLD_LAZY
11873# define LT_DLLAZY_OR_NOW RTLD_LAZY
11874# else
11875# ifdef DL_LAZY
11876# define LT_DLLAZY_OR_NOW DL_LAZY
11877# else
11878# ifdef RTLD_NOW
11879# define LT_DLLAZY_OR_NOW RTLD_NOW
11880# else
11881# ifdef DL_NOW
11882# define LT_DLLAZY_OR_NOW DL_NOW
11883# else
11884# define LT_DLLAZY_OR_NOW 0
11885# endif
11886# endif
11887# endif
11888# endif
11889#endif
11890
11891#ifdef __cplusplus
11892extern "C" void exit (int);
11893#endif
11894
11895void fnord() { int i=42;}
11896int main ()
11897{
11898 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11899 int status = $lt_dlunknown;
11900
11901 if (self)
11902 {
11903 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11904 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905 /* dlclose (self); */
11906 }
11907
11908 exit (status);
11909}
11910EOF
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11916 (./conftest; exit; ) 2>/dev/null
11917 lt_status=$?
11918 case x$lt_status in
11919 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11920 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11921 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11922 esac
11923 else :
11924 # compilation failed
11925 lt_cv_dlopen_self_static=no
11926 fi
11927fi
11928rm -fr conftest*
11929
11930
11931fi
11932echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11933echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11934 fi
11935
11936 CPPFLAGS="$save_CPPFLAGS"
11937 LDFLAGS="$save_LDFLAGS"
11938 LIBS="$save_LIBS"
11939 ;;
11940 esac
11941
11942 case $lt_cv_dlopen_self in
11943 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11944 *) enable_dlopen_self=unknown ;;
11945 esac
11946
11947 case $lt_cv_dlopen_self_static in
11948 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11949 *) enable_dlopen_self_static=unknown ;;
11950 esac
11951fi
11952
11953
11954# The else clause should only fire when bootstrapping the
11955# libtool distribution, otherwise you forgot to ship ltmain.sh
11956# with your package, and you will get complaints that there are
11957# no rules to generate ltmain.sh.
11958if test -f "$ltmain"; then
11959 # See if we are running on zsh, and set the options which allow our commands through
11960 # without removal of \ escapes.
11961 if test -n "${ZSH_VERSION+set}" ; then
11962 setopt NO_GLOB_SUBST
11963 fi
11964 # Now quote all the things that may contain metacharacters while being
11965 # careful not to overquote the AC_SUBSTed values. We take copies of the
11966 # variables and quote the copies for generation of the libtool script.
11967 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11970 deplibs_check_method reload_flag reload_cmds need_locks \
11971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11972 lt_cv_sys_global_symbol_to_c_name_address \
11973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11974 old_postinstall_cmds old_postuninstall_cmds \
11975 compiler_CXX \
11976 CC_CXX \
11977 LD_CXX \
11978 lt_prog_compiler_wl_CXX \
11979 lt_prog_compiler_pic_CXX \
11980 lt_prog_compiler_static_CXX \
11981 lt_prog_compiler_no_builtin_flag_CXX \
11982 export_dynamic_flag_spec_CXX \
11983 thread_safe_flag_spec_CXX \
11984 whole_archive_flag_spec_CXX \
11985 enable_shared_with_static_runtimes_CXX \
11986 old_archive_cmds_CXX \
11987 old_archive_from_new_cmds_CXX \
11988 predep_objects_CXX \
11989 postdep_objects_CXX \
11990 predeps_CXX \
11991 postdeps_CXX \
11992 compiler_lib_search_path_CXX \
11993 archive_cmds_CXX \
11994 archive_expsym_cmds_CXX \
11995 postinstall_cmds_CXX \
11996 postuninstall_cmds_CXX \
11997 old_archive_from_expsyms_cmds_CXX \
11998 allow_undefined_flag_CXX \
11999 no_undefined_flag_CXX \
12000 export_symbols_cmds_CXX \
12001 hardcode_libdir_flag_spec_CXX \
12002 hardcode_libdir_flag_spec_ld_CXX \
12003 hardcode_libdir_separator_CXX \
12004 hardcode_automatic_CXX \
12005 module_cmds_CXX \
12006 module_expsym_cmds_CXX \
12007 lt_cv_prog_compiler_c_o_CXX \
12008 exclude_expsyms_CXX \
12009 include_expsyms_CXX; do
12010
12011 case $var in
12012 old_archive_cmds_CXX | \
12013 old_archive_from_new_cmds_CXX | \
12014 archive_cmds_CXX | \
12015 archive_expsym_cmds_CXX | \
12016 module_cmds_CXX | \
12017 module_expsym_cmds_CXX | \
12018 old_archive_from_expsyms_cmds_CXX | \
12019 export_symbols_cmds_CXX | \
12020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12021 postinstall_cmds | postuninstall_cmds | \
12022 old_postinstall_cmds | old_postuninstall_cmds | \
12023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12024 # Double-quote double-evaled strings.
12025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12026 ;;
12027 *)
12028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12029 ;;
12030 esac
12031 done
12032
12033 case $lt_echo in
12034 *'\$0 --fallback-echo"')
12035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12036 ;;
12037 esac
12038
12039cfgfile="$ofile"
12040
12041 cat <<__EOF__ >> "$cfgfile"
12042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12043
12044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12045
12046# Shell to use when invoking shell scripts.
12047SHELL=$lt_SHELL
12048
12049# Whether or not to build shared libraries.
12050build_libtool_libs=$enable_shared
12051
12052# Whether or not to build static libraries.
12053build_old_libs=$enable_static
12054
12055# Whether or not to add -lc for building shared libraries.
12056build_libtool_need_lc=$archive_cmds_need_lc_CXX
12057
12058# Whether or not to disallow shared libs when runtime libs are static
12059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12060
12061# Whether or not to optimize for fast installation.
12062fast_install=$enable_fast_install
12063
12064# The host system.
12065host_alias=$host_alias
12066host=$host
12067
12068# An echo program that does not interpret backslashes.
12069echo=$lt_echo
12070
12071# The archiver.
12072AR=$lt_AR
12073AR_FLAGS=$lt_AR_FLAGS
12074
12075# A C compiler.
12076LTCC=$lt_LTCC
12077
12078# A language-specific compiler.
12079CC=$lt_compiler_CXX
12080
12081# Is the compiler the GNU C compiler?
12082with_gcc=$GCC_CXX
12083
12084# An ERE matcher.
12085EGREP=$lt_EGREP
12086
12087# The linker used to build libraries.
12088LD=$lt_LD_CXX
12089
12090# Whether we need hard or soft links.
12091LN_S=$lt_LN_S
12092
12093# A BSD-compatible nm program.
12094NM=$lt_NM
12095
12096# A symbol stripping program
12097STRIP=$STRIP
12098
12099# Used to examine libraries when file_magic_cmd begins "file"
12100MAGIC_CMD=$MAGIC_CMD
12101
12102# Used on cygwin: DLL creation program.
12103DLLTOOL="$DLLTOOL"
12104
12105# Used on cygwin: object dumper.
12106OBJDUMP="$OBJDUMP"
12107
12108# Used on cygwin: assembler.
12109AS="$AS"
12110
12111# The name of the directory that contains temporary libtool files.
12112objdir=$objdir
12113
12114# How to create reloadable object files.
12115reload_flag=$lt_reload_flag
12116reload_cmds=$lt_reload_cmds
12117
12118# How to pass a linker flag through the compiler.
12119wl=$lt_lt_prog_compiler_wl_CXX
12120
12121# Object file suffix (normally "o").
12122objext="$ac_objext"
12123
12124# Old archive suffix (normally "a").
12125libext="$libext"
12126
12127# Shared library suffix (normally ".so").
12128shrext='$shrext'
12129
12130# Executable file suffix (normally "").
12131exeext="$exeext"
12132
12133# Additional compiler flags for building library objects.
12134pic_flag=$lt_lt_prog_compiler_pic_CXX
12135pic_mode=$pic_mode
12136
12137# What is the maximum length of a command?
12138max_cmd_len=$lt_cv_sys_max_cmd_len
12139
12140# Does compiler simultaneously support -c and -o options?
12141compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12142
12143# Must we lock files when doing compilation ?
12144need_locks=$lt_need_locks
12145
12146# Do we need the lib prefix for modules?
12147need_lib_prefix=$need_lib_prefix
12148
12149# Do we need a version for libraries?
12150need_version=$need_version
12151
12152# Whether dlopen is supported.
12153dlopen_support=$enable_dlopen
12154
12155# Whether dlopen of programs is supported.
12156dlopen_self=$enable_dlopen_self
12157
12158# Whether dlopen of statically linked programs is supported.
12159dlopen_self_static=$enable_dlopen_self_static
12160
12161# Compiler flag to prevent dynamic linking.
12162link_static_flag=$lt_lt_prog_compiler_static_CXX
12163
12164# Compiler flag to turn off builtin functions.
12165no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12166
12167# Compiler flag to allow reflexive dlopens.
12168export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12169
12170# Compiler flag to generate shared objects directly from archives.
12171whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12172
12173# Compiler flag to generate thread-safe objects.
12174thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12175
12176# Library versioning type.
12177version_type=$version_type
12178
12179# Format of library name prefix.
12180libname_spec=$lt_libname_spec
12181
12182# List of archive names. First name is the real one, the rest are links.
12183# The last name is the one that the linker finds with -lNAME.
12184library_names_spec=$lt_library_names_spec
12185
12186# The coded name of the library, if different from the real name.
12187soname_spec=$lt_soname_spec
12188
12189# Commands used to build and install an old-style archive.
12190RANLIB=$lt_RANLIB
12191old_archive_cmds=$lt_old_archive_cmds_CXX
12192old_postinstall_cmds=$lt_old_postinstall_cmds
12193old_postuninstall_cmds=$lt_old_postuninstall_cmds
12194
12195# Create an old-style archive from a shared archive.
12196old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12197
12198# Create a temporary old-style archive to link instead of a shared archive.
12199old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12200
12201# Commands used to build and install a shared archive.
12202archive_cmds=$lt_archive_cmds_CXX
12203archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12204postinstall_cmds=$lt_postinstall_cmds
12205postuninstall_cmds=$lt_postuninstall_cmds
12206
12207# Commands used to build a loadable module (assumed same as above if empty)
12208module_cmds=$lt_module_cmds_CXX
12209module_expsym_cmds=$lt_module_expsym_cmds_CXX
12210
12211# Commands to strip libraries.
12212old_striplib=$lt_old_striplib
12213striplib=$lt_striplib
12214
12215# Dependencies to place before the objects being linked to create a
12216# shared library.
12217predep_objects=$lt_predep_objects_CXX
12218
12219# Dependencies to place after the objects being linked to create a
12220# shared library.
12221postdep_objects=$lt_postdep_objects_CXX
12222
12223# Dependencies to place before the objects being linked to create a
12224# shared library.
12225predeps=$lt_predeps_CXX
12226
12227# Dependencies to place after the objects being linked to create a
12228# shared library.
12229postdeps=$lt_postdeps_CXX
12230
12231# The library search path used internally by the compiler when linking
12232# a shared library.
12233compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12234
12235# Method to check whether dependent libraries are shared objects.
12236deplibs_check_method=$lt_deplibs_check_method
12237
12238# Command to use when deplibs_check_method == file_magic.
12239file_magic_cmd=$lt_file_magic_cmd
12240
12241# Flag that allows shared libraries with undefined symbols to be built.
12242allow_undefined_flag=$lt_allow_undefined_flag_CXX
12243
12244# Flag that forces no undefined symbols.
12245no_undefined_flag=$lt_no_undefined_flag_CXX
12246
12247# Commands used to finish a libtool library installation in a directory.
12248finish_cmds=$lt_finish_cmds
12249
12250# Same as above, but a single script fragment to be evaled but not shown.
12251finish_eval=$lt_finish_eval
12252
12253# Take the output of nm and produce a listing of raw symbols and C names.
12254global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12255
12256# Transform the output of nm in a proper C declaration
12257global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12258
12259# Transform the output of nm in a C name address pair
12260global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12261
12262# This is the shared library runtime path variable.
12263runpath_var=$runpath_var
12264
12265# This is the shared library path variable.
12266shlibpath_var=$shlibpath_var
12267
12268# Is shlibpath searched before the hard-coded library search path?
12269shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12270
12271# How to hardcode a shared library path into an executable.
12272hardcode_action=$hardcode_action_CXX
12273
12274# Whether we should hardcode library paths into libraries.
12275hardcode_into_libs=$hardcode_into_libs
12276
12277# Flag to hardcode \$libdir into a binary during linking.
12278# This must work even if \$libdir does not exist.
12279hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12280
12281# If ld is used when linking, flag to hardcode \$libdir into
12282# a binary during linking. This must work even if \$libdir does
12283# not exist.
12284hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12285
12286# Whether we need a single -rpath flag with a separated argument.
12287hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12288
12289# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12290# resulting binary.
12291hardcode_direct=$hardcode_direct_CXX
12292
12293# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12294# resulting binary.
12295hardcode_minus_L=$hardcode_minus_L_CXX
12296
12297# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12298# the resulting binary.
12299hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12300
12301# Set to yes if building a shared library automatically hardcodes DIR into the library
12302# and all subsequent libraries and executables linked against it.
12303hardcode_automatic=$hardcode_automatic_CXX
12304
12305# Variables whose values should be saved in libtool wrapper scripts and
12306# restored at relink time.
12307variables_saved_for_relink="$variables_saved_for_relink"
12308
12309# Whether libtool must link a program against all its dependency libraries.
12310link_all_deplibs=$link_all_deplibs_CXX
12311
12312# Compile-time system search path for libraries
12313sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12314
12315# Run-time system search path for libraries
12316sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12317
12318# Fix the shell variable \$srcfile for the compiler.
12319fix_srcfile_path="$fix_srcfile_path_CXX"
12320
12321# Set to yes if exported symbols are required.
12322always_export_symbols=$always_export_symbols_CXX
12323
12324# The commands to list exported symbols.
12325export_symbols_cmds=$lt_export_symbols_cmds_CXX
12326
12327# The commands to extract the exported symbol list from a shared archive.
12328extract_expsyms_cmds=$lt_extract_expsyms_cmds
12329
12330# Symbols that should not be listed in the preloaded symbols.
12331exclude_expsyms=$lt_exclude_expsyms_CXX
12332
12333# Symbols that must always be exported.
12334include_expsyms=$lt_include_expsyms_CXX
12335
12336# ### END LIBTOOL TAG CONFIG: $tagname
12337
12338__EOF__
12339
12340
12341else
12342 # If there is no Makefile yet, we rely on a make rule to execute
12343 # `config.status --recheck' to rerun these tests and create the
12344 # libtool script then.
12345 test -f Makefile && make "$ltmain"
12346fi
12347
12348
12349ac_ext=c
12350ac_cpp='$CPP $CPPFLAGS'
12351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12353ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354
12355CC=$lt_save_CC
12356LDCXX=$LD
12357LD=$lt_save_LD
12358GCC=$lt_save_GCC
12359with_gnu_ldcxx=$with_gnu_ld
12360with_gnu_ld=$lt_save_with_gnu_ld
12361lt_cv_path_LDCXX=$lt_cv_path_LD
12362lt_cv_path_LD=$lt_save_path_LD
12363lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12364lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12365
12366 else
12367 tagname=""
12368 fi
12369 ;;
12370
12371 F77)
12372 if test -n "$F77" && test "X$F77" != "Xno"; then
12373
12374ac_ext=f
12375ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12376ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12378
12379
12380archive_cmds_need_lc_F77=no
12381allow_undefined_flag_F77=
12382always_export_symbols_F77=no
12383archive_expsym_cmds_F77=
12384export_dynamic_flag_spec_F77=
12385hardcode_direct_F77=no
12386hardcode_libdir_flag_spec_F77=
12387hardcode_libdir_flag_spec_ld_F77=
12388hardcode_libdir_separator_F77=
12389hardcode_minus_L_F77=no
12390hardcode_automatic_F77=no
12391module_cmds_F77=
12392module_expsym_cmds_F77=
12393link_all_deplibs_F77=unknown
12394old_archive_cmds_F77=$old_archive_cmds
12395no_undefined_flag_F77=
12396whole_archive_flag_spec_F77=
12397enable_shared_with_static_runtimes_F77=no
12398
12399# Source file extension for f77 test sources.
12400ac_ext=f
12401
12402# Object file extension for compiled f77 test sources.
12403objext=o
12404objext_F77=$objext
12405
12406# Code to be used in simple compile tests
12407lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12408
12409# Code to be used in simple link tests
12410lt_simple_link_test_code=" program t\n end\n"
12411
12412# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12413
12414# If no C compiler was specified, use CC.
12415LTCC=${LTCC-"$CC"}
12416
12417# Allow CC to be a program name with arguments.
12418compiler=$CC
12419
12420
12421# Allow CC to be a program name with arguments.
12422lt_save_CC="$CC"
12423CC=${F77-"f77"}
12424compiler=$CC
12425compiler_F77=$CC
12426cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12427
12428echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12429echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12430echo "$as_me:$LINENO: result: $can_build_shared" >&5
12431echo "${ECHO_T}$can_build_shared" >&6
12432
12433echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12434echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12435test "$can_build_shared" = "no" && enable_shared=no
12436
12437# On AIX, shared libraries and static libraries use the same namespace, and
12438# are all built from PIC.
12439case "$host_os" in
12440aix3*)
12441 test "$enable_shared" = yes && enable_static=no
12442 if test -n "$RANLIB"; then
12443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444 postinstall_cmds='$RANLIB $lib'
12445 fi
12446 ;;
12447aix4*)
12448 test "$enable_shared" = yes && enable_static=no
12449 ;;
12450esac
12451echo "$as_me:$LINENO: result: $enable_shared" >&5
12452echo "${ECHO_T}$enable_shared" >&6
12453
12454echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12455echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12456# Make sure either enable_shared or enable_static is yes.
12457test "$enable_shared" = yes || enable_static=yes
12458echo "$as_me:$LINENO: result: $enable_static" >&5
12459echo "${ECHO_T}$enable_static" >&6
12460
12461test "$ld_shlibs_F77" = no && can_build_shared=no
12462
12463GCC_F77="$G77"
12464LD_F77="$LD"
12465
12466lt_prog_compiler_wl_F77=
12467lt_prog_compiler_pic_F77=
12468lt_prog_compiler_static_F77=
12469
12470echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12471echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12472
12473 if test "$GCC" = yes; then
12474 lt_prog_compiler_wl_F77='-Wl,'
12475 lt_prog_compiler_static_F77='-static'
12476
12477 case $host_os in
12478 aix*)
12479 # All AIX code is PIC.
12480 if test "$host_cpu" = ia64; then
12481 # AIX 5 now supports IA64 processor
12482 lt_prog_compiler_static_F77='-Bstatic'
12483 fi
12484 ;;
12485
12486 amigaos*)
12487 # FIXME: we need at least 68020 code to build shared libraries, but
12488 # adding the `-m68020' flag to GCC prevents building anything better,
12489 # like `-m68040'.
12490 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12491 ;;
12492
12493 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12494 # PIC is the default for these OSes.
12495 ;;
12496
12497 mingw* | pw32* | os2*)
12498 # This hack is so that the source file can tell whether it is being
12499 # built for inclusion in a dll (and should export symbols for example).
12500 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12501 ;;
12502
12503 darwin* | rhapsody*)
12504 # PIC is the default on this platform
12505 # Common symbols not allowed in MH_DYLIB files
12506 lt_prog_compiler_pic_F77='-fno-common'
12507 ;;
12508
12509 msdosdjgpp*)
12510 # Just because we use GCC doesn't mean we suddenly get shared libraries
12511 # on systems that don't support them.
12512 lt_prog_compiler_can_build_shared_F77=no
12513 enable_shared=no
12514 ;;
12515
12516 sysv4*MP*)
12517 if test -d /usr/nec; then
12518 lt_prog_compiler_pic_F77=-Kconform_pic
12519 fi
12520 ;;
12521
12522 hpux*)
12523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12524 # not for PA HP-UX.
12525 case "$host_cpu" in
12526 hppa*64*|ia64*)
12527 # +Z the default
12528 ;;
12529 *)
12530 lt_prog_compiler_pic_F77='-fPIC'
12531 ;;
12532 esac
12533 ;;
12534
12535 *)
12536 lt_prog_compiler_pic_F77='-fPIC'
12537 ;;
12538 esac
12539 else
12540 # PORTME Check for flag to pass linker flags through the system compiler.
12541 case $host_os in
12542 aix*)
12543 lt_prog_compiler_wl_F77='-Wl,'
12544 if test "$host_cpu" = ia64; then
12545 # AIX 5 now supports IA64 processor
12546 lt_prog_compiler_static_F77='-Bstatic'
12547 else
12548 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12549 fi
12550 ;;
12551
12552 mingw* | pw32* | os2*)
12553 # This hack is so that the source file can tell whether it is being
12554 # built for inclusion in a dll (and should export symbols for example).
12555 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12556 ;;
12557
12558 hpux9* | hpux10* | hpux11*)
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12561 # not for PA HP-UX.
12562 case "$host_cpu" in
12563 hppa*64*|ia64*)
12564 # +Z the default
12565 ;;
12566 *)
12567 lt_prog_compiler_pic_F77='+Z'
12568 ;;
12569 esac
12570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12571 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12572 ;;
12573
12574 irix5* | irix6* | nonstopux*)
12575 lt_prog_compiler_wl_F77='-Wl,'
12576 # PIC (with -KPIC) is the default.
12577 lt_prog_compiler_static_F77='-non_shared'
12578 ;;
12579
12580 newsos6)
12581 lt_prog_compiler_pic_F77='-KPIC'
12582 lt_prog_compiler_static_F77='-Bstatic'
12583 ;;
12584
12585 linux*)
12586 case $CC in
12587 icc|ecc)
12588 lt_prog_compiler_wl_F77='-Wl,'
12589 lt_prog_compiler_pic_F77='-KPIC'
12590 lt_prog_compiler_static_F77='-static'
12591 ;;
12592 ccc)
12593 lt_prog_compiler_wl_F77='-Wl,'
12594 # All Alpha code is PIC.
12595 lt_prog_compiler_static_F77='-non_shared'
12596 ;;
12597 esac
12598 ;;
12599
12600 osf3* | osf4* | osf5*)
12601 lt_prog_compiler_wl_F77='-Wl,'
12602 # All OSF/1 code is PIC.
12603 lt_prog_compiler_static_F77='-non_shared'
12604 ;;
12605
12606 sco3.2v5*)
12607 lt_prog_compiler_pic_F77='-Kpic'
12608 lt_prog_compiler_static_F77='-dn'
12609 ;;
12610
12611 solaris*)
12612 lt_prog_compiler_wl_F77='-Wl,'
12613 lt_prog_compiler_pic_F77='-KPIC'
12614 lt_prog_compiler_static_F77='-Bstatic'
12615 ;;
12616
12617 sunos4*)
12618 lt_prog_compiler_wl_F77='-Qoption ld '
12619 lt_prog_compiler_pic_F77='-PIC'
12620 lt_prog_compiler_static_F77='-Bstatic'
12621 ;;
12622
12623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12624 lt_prog_compiler_wl_F77='-Wl,'
12625 lt_prog_compiler_pic_F77='-KPIC'
12626 lt_prog_compiler_static_F77='-Bstatic'
12627 ;;
12628
12629 sysv4*MP*)
12630 if test -d /usr/nec ;then
12631 lt_prog_compiler_pic_F77='-Kconform_pic'
12632 lt_prog_compiler_static_F77='-Bstatic'
12633 fi
12634 ;;
12635
12636 uts4*)
12637 lt_prog_compiler_pic_F77='-pic'
12638 lt_prog_compiler_static_F77='-Bstatic'
12639 ;;
12640
12641 *)
12642 lt_prog_compiler_can_build_shared_F77=no
12643 ;;
12644 esac
12645 fi
12646
12647echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12648echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12649
12650#
12651# Check to make sure the PIC flag actually works.
12652#
12653if test -n "$lt_prog_compiler_pic_F77"; then
12654 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12655echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12656if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 lt_prog_compiler_pic_works_F77=no
12660 ac_outfile=conftest.$ac_objext
12661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12662 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12663 # Insert the option either (1) after the last *FLAGS variable, or
12664 # (2) before a word containing "conftest.", or (3) at the end.
12665 # Note that $ac_compile itself does not contain backslashes and begins
12666 # with a dollar sign (not a hyphen), so the echo should work correctly.
12667 # The option is referenced via a variable to avoid confusing sed.
12668 lt_compile=`echo "$ac_compile" | $SED \
12669 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12671 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000012672 (eval echo "\"\$as_me:12672: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012673 (eval "$lt_compile" 2>conftest.err)
12674 ac_status=$?
12675 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000012676 echo "$as_me:12676: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012677 if (exit $ac_status) && test -s "$ac_outfile"; then
12678 # The compiler can only warn and ignore the option if not recognized
12679 # So say no if there are warnings
12680 if test ! -s conftest.err; then
12681 lt_prog_compiler_pic_works_F77=yes
12682 fi
12683 fi
12684 $rm conftest*
12685
12686fi
12687echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12688echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12689
12690if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12691 case $lt_prog_compiler_pic_F77 in
12692 "" | " "*) ;;
12693 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12694 esac
12695else
12696 lt_prog_compiler_pic_F77=
12697 lt_prog_compiler_can_build_shared_F77=no
12698fi
12699
12700fi
12701case "$host_os" in
12702 # For platforms which do not support PIC, -DPIC is meaningless:
12703 *djgpp*)
12704 lt_prog_compiler_pic_F77=
12705 ;;
12706 *)
12707 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12708 ;;
12709esac
12710
12711echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12712echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12713if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715else
12716 lt_cv_prog_compiler_c_o_F77=no
12717 $rm -r conftest 2>/dev/null
12718 mkdir conftest
12719 cd conftest
12720 mkdir out
12721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12722
12723 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12724 # that will create temporary files in the current directory regardless of
12725 # the output directory. Thus, making CWD read-only will cause this test
12726 # to fail, enabling locking or at least warning the user not to do parallel
12727 # builds.
12728 chmod -w .
12729
12730 lt_compiler_flag="-o out/conftest2.$ac_objext"
12731 # Insert the option either (1) after the last *FLAGS variable, or
12732 # (2) before a word containing "conftest.", or (3) at the end.
12733 # Note that $ac_compile itself does not contain backslashes and begins
12734 # with a dollar sign (not a hyphen), so the echo should work correctly.
12735 lt_compile=`echo "$ac_compile" | $SED \
12736 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12738 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000012739 (eval echo "\"\$as_me:12739: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012740 (eval "$lt_compile" 2>out/conftest.err)
12741 ac_status=$?
12742 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000012743 echo "$as_me:12743: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12745 then
12746 # The compiler can only warn and ignore the option if not recognized
12747 # So say no if there are warnings
12748 if test ! -s out/conftest.err; then
12749 lt_cv_prog_compiler_c_o_F77=yes
12750 fi
12751 fi
12752 chmod u+w .
12753 $rm conftest* out/*
12754 rmdir out
12755 cd ..
12756 rmdir conftest
12757 $rm conftest*
12758
12759fi
12760echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12761echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12762
12763
12764hard_links="nottested"
12765if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12766 # do not overwrite the value of need_locks provided by the user
12767 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12768echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12769 hard_links=yes
12770 $rm conftest*
12771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12772 touch conftest.a
12773 ln conftest.a conftest.b 2>&5 || hard_links=no
12774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12775 echo "$as_me:$LINENO: result: $hard_links" >&5
12776echo "${ECHO_T}$hard_links" >&6
12777 if test "$hard_links" = no; then
12778 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12779echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12780 need_locks=warn
12781 fi
12782else
12783 need_locks=no
12784fi
12785
12786echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12788
12789 runpath_var=
12790 allow_undefined_flag_F77=
12791 enable_shared_with_static_runtimes_F77=no
12792 archive_cmds_F77=
12793 archive_expsym_cmds_F77=
12794 old_archive_From_new_cmds_F77=
12795 old_archive_from_expsyms_cmds_F77=
12796 export_dynamic_flag_spec_F77=
12797 whole_archive_flag_spec_F77=
12798 thread_safe_flag_spec_F77=
12799 hardcode_libdir_flag_spec_F77=
12800 hardcode_libdir_flag_spec_ld_F77=
12801 hardcode_libdir_separator_F77=
12802 hardcode_direct_F77=no
12803 hardcode_minus_L_F77=no
12804 hardcode_shlibpath_var_F77=unsupported
12805 link_all_deplibs_F77=unknown
12806 hardcode_automatic_F77=no
12807 module_cmds_F77=
12808 module_expsym_cmds_F77=
12809 always_export_symbols_F77=no
12810 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12811 # include_expsyms should be a list of space-separated symbols to be *always*
12812 # included in the symbol list
12813 include_expsyms_F77=
12814 # exclude_expsyms can be an extended regexp of symbols to exclude
12815 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12816 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12817 # as well as any symbol that contains `d'.
12818 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12819 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12820 # platforms (ab)use it in PIC code, but their linkers get confused if
12821 # the symbol is explicitly referenced. Since portable code cannot
12822 # rely on this symbol name, it's probably fine to never include it in
12823 # preloaded symbol tables.
12824 extract_expsyms_cmds=
12825
12826 case $host_os in
12827 cygwin* | mingw* | pw32*)
12828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12829 # When not using gcc, we currently assume that we are using
12830 # Microsoft Visual C++.
12831 if test "$GCC" != yes; then
12832 with_gnu_ld=no
12833 fi
12834 ;;
12835 openbsd*)
12836 with_gnu_ld=no
12837 ;;
12838 esac
12839
12840 ld_shlibs_F77=yes
12841 if test "$with_gnu_ld" = yes; then
12842 # If archive_cmds runs LD, not CC, wlarc should be empty
12843 wlarc='${wl}'
12844
12845 # See if GNU ld supports shared libraries.
12846 case $host_os in
12847 aix3* | aix4* | aix5*)
12848 # On AIX/PPC, the GNU linker is very broken
12849 if test "$host_cpu" != ia64; then
12850 ld_shlibs_F77=no
12851 cat <<EOF 1>&2
12852
12853*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12854*** to be unable to reliably create shared libraries on AIX.
12855*** Therefore, libtool is disabling shared libraries support. If you
12856*** really care for shared libraries, you may want to modify your PATH
12857*** so that a non-GNU linker is found, and then restart.
12858
12859EOF
12860 fi
12861 ;;
12862
12863 amigaos*)
12864 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)'
12865 hardcode_libdir_flag_spec_F77='-L$libdir'
12866 hardcode_minus_L_F77=yes
12867
12868 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12869 # that the semantics of dynamic libraries on AmigaOS, at least up
12870 # to version 4, is to share data among multiple programs linked
12871 # with the same dynamic library. Since this doesn't match the
12872 # behavior of shared libraries on other platforms, we can't use
12873 # them.
12874 ld_shlibs_F77=no
12875 ;;
12876
12877 beos*)
12878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12879 allow_undefined_flag_F77=unsupported
12880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12881 # support --undefined. This deserves some investigation. FIXME
12882 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12883 else
12884 ld_shlibs_F77=no
12885 fi
12886 ;;
12887
12888 cygwin* | mingw* | pw32*)
12889 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12890 # as there is no search path for DLLs.
12891 hardcode_libdir_flag_spec_F77='-L$libdir'
12892 allow_undefined_flag_F77=unsupported
12893 always_export_symbols_F77=no
12894 enable_shared_with_static_runtimes_F77=yes
12895 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12896
12897 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12898 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12899 # If the export-symbols file already is a .def file (1st line
12900 # is EXPORTS), use it as is; otherwise, prepend...
12901 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12902 cp $export_symbols $output_objdir/$soname.def;
12903 else
12904 echo EXPORTS > $output_objdir/$soname.def;
12905 cat $export_symbols >> $output_objdir/$soname.def;
12906 fi~
12907 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12908 else
12909 ld_shlibs=no
12910 fi
12911 ;;
12912
12913 netbsd*)
12914 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12915 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12916 wlarc=
12917 else
12918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12920 fi
12921 ;;
12922
12923 solaris* | sysv5*)
12924 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12925 ld_shlibs_F77=no
12926 cat <<EOF 1>&2
12927
12928*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12929*** create shared libraries on Solaris systems. Therefore, libtool
12930*** is disabling shared libraries support. We urge you to upgrade GNU
12931*** binutils to release 2.9.1 or newer. Another option is to modify
12932*** your PATH or compiler configuration so that the native linker is
12933*** used, and then restart.
12934
12935EOF
12936 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12937 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12939 else
12940 ld_shlibs_F77=no
12941 fi
12942 ;;
12943
12944 sunos4*)
12945 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12946 wlarc=
12947 hardcode_direct_F77=yes
12948 hardcode_shlibpath_var_F77=no
12949 ;;
12950
12951 *)
12952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12953 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12954 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12955 else
12956 ld_shlibs_F77=no
12957 fi
12958 ;;
12959 esac
12960
12961 if test "$ld_shlibs_F77" = yes; then
12962 runpath_var=LD_RUN_PATH
12963 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12964 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12965 # ancient GNU ld didn't support --whole-archive et. al.
12966 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12967 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12968 else
12969 whole_archive_flag_spec_F77=
12970 fi
12971 fi
12972 else
12973 # PORTME fill in a description of your system's linker (not GNU ld)
12974 case $host_os in
12975 aix3*)
12976 allow_undefined_flag_F77=unsupported
12977 always_export_symbols_F77=yes
12978 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'
12979 # Note: this linker hardcodes the directories in LIBPATH if there
12980 # are no directories specified by -L.
12981 hardcode_minus_L_F77=yes
12982 if test "$GCC" = yes && test -z "$link_static_flag"; then
12983 # Neither direct hardcoding nor static linking is supported with a
12984 # broken collect2.
12985 hardcode_direct_F77=unsupported
12986 fi
12987 ;;
12988
12989 aix4* | aix5*)
12990 if test "$host_cpu" = ia64; then
12991 # On IA64, the linker does run time linking by default, so we don't
12992 # have to do anything special.
12993 aix_use_runtimelinking=no
12994 exp_sym_flag='-Bexport'
12995 no_entry_flag=""
12996 else
12997 # If we're using GNU nm, then we don't want the "-C" option.
12998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12999 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13000 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'
13001 else
13002 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'
13003 fi
13004 aix_use_runtimelinking=no
13005
13006 # Test if we are trying to use run time linking or normal
13007 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13008 # need to do runtime linking.
13009 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13010 for ld_flag in $LDFLAGS; do
13011 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13012 aix_use_runtimelinking=yes
13013 break
13014 fi
13015 done
13016 esac
13017
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13020 fi
13021
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028 archive_cmds_F77=''
13029 hardcode_direct_F77=yes
13030 hardcode_libdir_separator_F77=':'
13031 link_all_deplibs_F77=yes
13032
13033 if test "$GCC" = yes; then
13034 case $host_os in aix4.012|aix4.012.*)
13035 # We only want to do this on AIX 4.2 and lower, the check
13036 # below for broken collect2 doesn't work under 4.3+
13037 collect2name=`${CC} -print-prog-name=collect2`
13038 if test -f "$collect2name" && \
13039 strings "$collect2name" | grep resolve_lib_name >/dev/null
13040 then
13041 # We have reworked collect2
13042 hardcode_direct_F77=yes
13043 else
13044 # We have old collect2
13045 hardcode_direct_F77=unsupported
13046 # It fails to find uninstalled libraries when the uninstalled
13047 # path is not listed in the libpath. Setting hardcode_minus_L
13048 # to unsupported forces relinking
13049 hardcode_minus_L_F77=yes
13050 hardcode_libdir_flag_spec_F77='-L$libdir'
13051 hardcode_libdir_separator_F77=
13052 fi
13053 esac
13054 shared_flag='-shared'
13055 else
13056 # not using gcc
13057 if test "$host_cpu" = ia64; then
13058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13059 # chokes on -Wl,-G. The following line is correct:
13060 shared_flag='-G'
13061 else
13062 if test "$aix_use_runtimelinking" = yes; then
13063 shared_flag='${wl}-G'
13064 else
13065 shared_flag='${wl}-bM:SRE'
13066 fi
13067 fi
13068 fi
13069
13070 # It seems that -bexpall does not export symbols beginning with
13071 # underscore (_), so it is better to generate a list of symbols to export.
13072 always_export_symbols_F77=yes
13073 if test "$aix_use_runtimelinking" = yes; then
13074 # Warning - without using the other runtime loading flags (-brtl),
13075 # -berok will link without error, but may produce a broken library.
13076 allow_undefined_flag_F77='-berok'
13077 # Determine the default libpath from the value encoded in an empty executable.
13078 cat >conftest.$ac_ext <<_ACEOF
13079 program main
13080
13081 end
13082_ACEOF
13083rm -f conftest.$ac_objext conftest$ac_exeext
13084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13085 (eval $ac_link) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095
13096aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13097}'`
13098# Check for a 64-bit object if we didn't find anything.
13099if 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; }
13100}'`; fi
13101else
13102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013103sed 's/^/| /' conftest.$ac_ext >&5
13104
John Criswell47fdd832003-07-14 16:52:07 +000013105fi
13106rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13108
13109 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13110 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"
13111 else
13112 if test "$host_cpu" = ia64; then
13113 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13114 allow_undefined_flag_F77="-z nodefs"
13115 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"
13116 else
13117 # Determine the default libpath from the value encoded in an empty executable.
13118 cat >conftest.$ac_ext <<_ACEOF
13119 program main
13120
13121 end
13122_ACEOF
13123rm -f conftest.$ac_objext conftest$ac_exeext
13124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135
13136aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13137}'`
13138# Check for a 64-bit object if we didn't find anything.
13139if 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; }
13140}'`; fi
13141else
13142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013143sed 's/^/| /' conftest.$ac_ext >&5
13144
John Criswell47fdd832003-07-14 16:52:07 +000013145fi
13146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13148
13149 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13150 # Warning - without using the other run time loading flags,
13151 # -berok will link without error, but may produce a broken library.
13152 no_undefined_flag_F77=' ${wl}-bernotok'
13153 allow_undefined_flag_F77=' ${wl}-berok'
13154 # -bexpall does not export symbols beginning with underscore (_)
13155 always_export_symbols_F77=yes
13156 # Exported symbols can be pulled into shared objects from archives
13157 whole_archive_flag_spec_F77=' '
13158 archive_cmds_need_lc_F77=yes
13159 # This is similar to how AIX traditionally builds it's shared libraries.
13160 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'
13161 fi
13162 fi
13163 ;;
13164
13165 amigaos*)
13166 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)'
13167 hardcode_libdir_flag_spec_F77='-L$libdir'
13168 hardcode_minus_L_F77=yes
13169 # see comment about different semantics on the GNU ld section
13170 ld_shlibs_F77=no
13171 ;;
13172
13173 bsdi4*)
13174 export_dynamic_flag_spec_F77=-rdynamic
13175 ;;
13176
13177 cygwin* | mingw* | pw32*)
13178 # When not using gcc, we currently assume that we are using
13179 # Microsoft Visual C++.
13180 # hardcode_libdir_flag_spec is actually meaningless, as there is
13181 # no search path for DLLs.
13182 hardcode_libdir_flag_spec_F77=' '
13183 allow_undefined_flag_F77=unsupported
13184 # Tell ltmain to make .lib files, not .a files.
13185 libext=lib
13186 # Tell ltmain to make .dll files, not .so files.
13187 shrext=".dll"
13188 # FIXME: Setting linknames here is a bad hack.
13189 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13190 # The linker will automatically build a .lib file if we build a DLL.
13191 old_archive_From_new_cmds_F77='true'
13192 # FIXME: Should let the user specify the lib program.
13193 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13194 fix_srcfile_path='`cygpath -w "$srcfile"`'
13195 enable_shared_with_static_runtimes_F77=yes
13196 ;;
13197
13198 darwin* | rhapsody*)
13199 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13200 archive_cmds_need_lc_F77=no
13201 case "$host_os" in
13202 rhapsody* | darwin1.[012])
13203 allow_undefined_flag_F77='-undefined suppress'
13204 ;;
13205 *) # Darwin 1.3 on
13206 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13207 ;;
13208 esac
13209 # FIXME: Relying on posixy $() will cause problems for
13210 # cross-compilation, but unfortunately the echo tests do not
13211 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13212 # `"' quotes if we put them in here... so don't!
13213 lt_int_apple_cc_single_mod=no
13214 output_verbose_link_cmd='echo'
13215 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13216 lt_int_apple_cc_single_mod=yes
13217 fi
13218 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13219 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13220 else
13221 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13222 fi
13223 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13224 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13225 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13226 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13227 else
13228 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13229 fi
13230 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13231 hardcode_direct_F77=no
13232 hardcode_automatic_F77=yes
13233 hardcode_shlibpath_var_F77=unsupported
13234 whole_archive_flag_spec_F77='-all_load $convenience'
13235 link_all_deplibs_F77=yes
13236 fi
13237 ;;
13238
13239 dgux*)
13240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13241 hardcode_libdir_flag_spec_F77='-L$libdir'
13242 hardcode_shlibpath_var_F77=no
13243 ;;
13244
13245 freebsd1*)
13246 ld_shlibs_F77=no
13247 ;;
13248
13249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13250 # support. Future versions do this automatically, but an explicit c++rt0.o
13251 # does not break anything, and helps significantly (at the cost of a little
13252 # extra space).
13253 freebsd2.2*)
13254 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13255 hardcode_libdir_flag_spec_F77='-R$libdir'
13256 hardcode_direct_F77=yes
13257 hardcode_shlibpath_var_F77=no
13258 ;;
13259
13260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13261 freebsd2*)
13262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13263 hardcode_direct_F77=yes
13264 hardcode_minus_L_F77=yes
13265 hardcode_shlibpath_var_F77=no
13266 ;;
13267
13268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13269 freebsd*)
13270 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13271 hardcode_libdir_flag_spec_F77='-R$libdir'
13272 hardcode_direct_F77=yes
13273 hardcode_shlibpath_var_F77=no
13274 ;;
13275
13276 hpux9*)
13277 if test "$GCC" = yes; then
13278 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'
13279 else
13280 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'
13281 fi
13282 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13283 hardcode_libdir_separator_F77=:
13284 hardcode_direct_F77=yes
13285
13286 # hardcode_minus_L: Not really in the search PATH,
13287 # but as the default location of the library.
13288 hardcode_minus_L_F77=yes
13289 export_dynamic_flag_spec_F77='${wl}-E'
13290 ;;
13291
13292 hpux10* | hpux11*)
13293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13294 case "$host_cpu" in
13295 hppa*64*|ia64*)
13296 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 ;;
13298 *)
13299 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13300 ;;
13301 esac
13302 else
13303 case "$host_cpu" in
13304 hppa*64*|ia64*)
13305 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13306 ;;
13307 *)
13308 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13309 ;;
13310 esac
13311 fi
13312 if test "$with_gnu_ld" = no; then
13313 case "$host_cpu" in
13314 hppa*64*)
13315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13317 hardcode_libdir_separator_F77=:
13318 hardcode_direct_F77=no
13319 hardcode_shlibpath_var_F77=no
13320 ;;
13321 ia64*)
13322 hardcode_libdir_flag_spec_F77='-L$libdir'
13323 hardcode_direct_F77=no
13324 hardcode_shlibpath_var_F77=no
13325
13326 # hardcode_minus_L: Not really in the search PATH,
13327 # but as the default location of the library.
13328 hardcode_minus_L_F77=yes
13329 ;;
13330 *)
13331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13332 hardcode_libdir_separator_F77=:
13333 hardcode_direct_F77=yes
13334 export_dynamic_flag_spec_F77='${wl}-E'
13335
13336 # hardcode_minus_L: Not really in the search PATH,
13337 # but as the default location of the library.
13338 hardcode_minus_L_F77=yes
13339 ;;
13340 esac
13341 fi
13342 ;;
13343
13344 irix5* | irix6* | nonstopux*)
13345 if test "$GCC" = yes; then
13346 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'
13347 else
13348 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'
13349 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13350 fi
13351 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13352 hardcode_libdir_separator_F77=:
13353 link_all_deplibs_F77=yes
13354 ;;
13355
13356 netbsd*)
13357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13358 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13359 else
13360 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13361 fi
13362 hardcode_libdir_flag_spec_F77='-R$libdir'
13363 hardcode_direct_F77=yes
13364 hardcode_shlibpath_var_F77=no
13365 ;;
13366
13367 newsos6)
13368 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13369 hardcode_direct_F77=yes
13370 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13371 hardcode_libdir_separator_F77=:
13372 hardcode_shlibpath_var_F77=no
13373 ;;
13374
13375 openbsd*)
13376 hardcode_direct_F77=yes
13377 hardcode_shlibpath_var_F77=no
13378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13379 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13380 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13381 export_dynamic_flag_spec_F77='${wl}-E'
13382 else
13383 case $host_os in
13384 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13385 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13386 hardcode_libdir_flag_spec_F77='-R$libdir'
13387 ;;
13388 *)
13389 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13391 ;;
13392 esac
13393 fi
13394 ;;
13395
13396 os2*)
13397 hardcode_libdir_flag_spec_F77='-L$libdir'
13398 hardcode_minus_L_F77=yes
13399 allow_undefined_flag_F77=unsupported
13400 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'
13401 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13402 ;;
13403
13404 osf3*)
13405 if test "$GCC" = yes; then
13406 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13407 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'
13408 else
13409 allow_undefined_flag_F77=' -expect_unresolved \*'
13410 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'
13411 fi
13412 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13413 hardcode_libdir_separator_F77=:
13414 ;;
13415
13416 osf4* | osf5*) # as osf3* with the addition of -msym flag
13417 if test "$GCC" = yes; then
13418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13419 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'
13420 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13421 else
13422 allow_undefined_flag_F77=' -expect_unresolved \*'
13423 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'
13424 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~
13425 $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'
13426
13427 # Both c and cxx compiler support -rpath directly
13428 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13429 fi
13430 hardcode_libdir_separator_F77=:
13431 ;;
13432
13433 sco3.2v5*)
13434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435 hardcode_shlibpath_var_F77=no
13436 export_dynamic_flag_spec_F77='${wl}-Bexport'
13437 runpath_var=LD_RUN_PATH
13438 hardcode_runpath_var=yes
13439 ;;
13440
13441 solaris*)
13442 no_undefined_flag_F77=' -z text'
13443 if test "$GCC" = yes; then
13444 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13446 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13447 else
13448 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13449 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13451 fi
13452 hardcode_libdir_flag_spec_F77='-R$libdir'
13453 hardcode_shlibpath_var_F77=no
13454 case $host_os in
13455 solaris2.[0-5] | solaris2.[0-5].*) ;;
13456 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13457 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13458 esac
13459 link_all_deplibs_F77=yes
13460 ;;
13461
13462 sunos4*)
13463 if test "x$host_vendor" = xsequent; then
13464 # Use $CC to link under sequent, because it throws in some extra .o
13465 # files that make .init and .fini sections work.
13466 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13467 else
13468 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13469 fi
13470 hardcode_libdir_flag_spec_F77='-L$libdir'
13471 hardcode_direct_F77=yes
13472 hardcode_minus_L_F77=yes
13473 hardcode_shlibpath_var_F77=no
13474 ;;
13475
13476 sysv4)
13477 case $host_vendor in
13478 sni)
13479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct_F77=yes # is this really true???
13481 ;;
13482 siemens)
13483 ## LD is ld it makes a PLAMLIB
13484 ## CC just makes a GrossModule.
13485 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13486 reload_cmds_F77='$CC -r -o $output$reload_objs'
13487 hardcode_direct_F77=no
13488 ;;
13489 motorola)
13490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13492 ;;
13493 esac
13494 runpath_var='LD_RUN_PATH'
13495 hardcode_shlibpath_var_F77=no
13496 ;;
13497
13498 sysv4.3*)
13499 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_shlibpath_var_F77=no
13501 export_dynamic_flag_spec_F77='-Bexport'
13502 ;;
13503
13504 sysv4*MP*)
13505 if test -d /usr/nec; then
13506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_shlibpath_var_F77=no
13508 runpath_var=LD_RUN_PATH
13509 hardcode_runpath_var=yes
13510 ld_shlibs_F77=yes
13511 fi
13512 ;;
13513
13514 sysv4.2uw2*)
13515 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_F77=yes
13517 hardcode_minus_L_F77=no
13518 hardcode_shlibpath_var_F77=no
13519 hardcode_runpath_var=yes
13520 runpath_var=LD_RUN_PATH
13521 ;;
13522
13523 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13524 no_undefined_flag_F77='${wl}-z ${wl}text'
13525 if test "$GCC" = yes; then
13526 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 else
13528 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 fi
13530 runpath_var='LD_RUN_PATH'
13531 hardcode_shlibpath_var_F77=no
13532 ;;
13533
13534 sysv5*)
13535 no_undefined_flag_F77=' -z text'
13536 # $CC -shared without GNU ld will not create a library from C++
13537 # object files and a static libstdc++, better avoid it by now
13538 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13541 hardcode_libdir_flag_spec_F77=
13542 hardcode_shlibpath_var_F77=no
13543 runpath_var='LD_RUN_PATH'
13544 ;;
13545
13546 uts4*)
13547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13548 hardcode_libdir_flag_spec_F77='-L$libdir'
13549 hardcode_shlibpath_var_F77=no
13550 ;;
13551
13552 *)
13553 ld_shlibs_F77=no
13554 ;;
13555 esac
13556 fi
13557
13558echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13559echo "${ECHO_T}$ld_shlibs_F77" >&6
13560test "$ld_shlibs_F77" = no && can_build_shared=no
13561
13562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13563if test "$GCC" = yes; then
13564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13565fi
13566
13567#
13568# Do we need to explicitly link libc?
13569#
13570case "x$archive_cmds_need_lc_F77" in
13571x|xyes)
13572 # Assume -lc should be added
13573 archive_cmds_need_lc_F77=yes
13574
13575 if test "$enable_shared" = yes && test "$GCC" = yes; then
13576 case $archive_cmds_F77 in
13577 *'~'*)
13578 # FIXME: we may have to deal with multi-command sequences.
13579 ;;
13580 '$CC '*)
13581 # Test whether the compiler implicitly links with -lc since on some
13582 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13583 # to ld, don't add -lc before -lgcc.
13584 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13585echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13586 $rm conftest*
13587 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13588
13589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13590 (eval $ac_compile) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } 2>conftest.err; then
13594 soname=conftest
13595 lib=conftest
13596 libobjs=conftest.$ac_objext
13597 deplibs=
13598 wl=$lt_prog_compiler_wl_F77
13599 compiler_flags=-v
13600 linker_flags=-v
13601 verstring=
13602 output_objdir=.
13603 libname=conftest
13604 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13605 allow_undefined_flag_F77=
13606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13607 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }
13611 then
13612 archive_cmds_need_lc_F77=no
13613 else
13614 archive_cmds_need_lc_F77=yes
13615 fi
13616 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13617 else
13618 cat conftest.err 1>&5
13619 fi
13620 $rm conftest*
13621 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13622echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13623 ;;
13624 esac
13625 fi
13626 ;;
13627esac
13628
13629echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13630echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13631hardcode_action_F77=
13632if test -n "$hardcode_libdir_flag_spec_F77" || \
13633 test -n "$runpath_var F77" || \
13634 test "X$hardcode_automatic_F77"="Xyes" ; then
13635
13636 # We can hardcode non-existant directories.
13637 if test "$hardcode_direct_F77" != no &&
13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639 # have to relink, otherwise we might link with an installed library
13640 # when we should be linking with a yet-to-be-installed one
13641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13642 test "$hardcode_minus_L_F77" != no; then
13643 # Linking always hardcodes the temporary library directory.
13644 hardcode_action_F77=relink
13645 else
13646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647 hardcode_action_F77=immediate
13648 fi
13649else
13650 # We cannot hardcode anything, or else we can only hardcode existing
13651 # directories.
13652 hardcode_action_F77=unsupported
13653fi
13654echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13655echo "${ECHO_T}$hardcode_action_F77" >&6
13656
13657if test "$hardcode_action_F77" = relink; then
13658 # Fast installation is not supported
13659 enable_fast_install=no
13660elif test "$shlibpath_overrides_runpath" = yes ||
13661 test "$enable_shared" = no; then
13662 # Fast installation is not necessary
13663 enable_fast_install=needless
13664fi
13665
13666striplib=
13667old_striplib=
13668echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13669echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13670if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13673 echo "$as_me:$LINENO: result: yes" >&5
13674echo "${ECHO_T}yes" >&6
13675else
13676# FIXME - insert some real tests, host_os isn't really good enough
13677 case $host_os in
13678 darwin*)
13679 if test -n "$STRIP" ; then
13680 striplib="$STRIP -x"
13681 echo "$as_me:$LINENO: result: yes" >&5
13682echo "${ECHO_T}yes" >&6
13683 else
13684 echo "$as_me:$LINENO: result: no" >&5
13685echo "${ECHO_T}no" >&6
13686fi
13687 ;;
13688 *)
13689 echo "$as_me:$LINENO: result: no" >&5
13690echo "${ECHO_T}no" >&6
13691 ;;
13692 esac
13693fi
13694
13695echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13696echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13697library_names_spec=
13698libname_spec='lib$name'
13699soname_spec=
13700shrext=".so"
13701postinstall_cmds=
13702postuninstall_cmds=
13703finish_cmds=
13704finish_eval=
13705shlibpath_var=
13706shlibpath_overrides_runpath=unknown
13707version_type=none
13708dynamic_linker="$host_os ld.so"
13709sys_lib_dlsearch_path_spec="/lib /usr/lib"
13710if test "$GCC" = yes; then
13711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13713 # if the path contains ";" then we assume it to be the separator
13714 # otherwise default to the standard path separator (i.e. ":") - it is
13715 # assumed that no part of a normal pathname contains ";" but that should
13716 # okay in the real world where ";" in dirpaths is itself problematic.
13717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13718 else
13719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13720 fi
13721else
13722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13723fi
13724need_lib_prefix=unknown
13725hardcode_into_libs=no
13726
13727# when you set need_version to no, make sure it does not cause -set_version
13728# flags to be left without arguments
13729need_version=unknown
13730
13731case $host_os in
13732aix3*)
13733 version_type=linux
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13735 shlibpath_var=LIBPATH
13736
13737 # AIX 3 has no versioning support, so we append a major version to the name.
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 ;;
13740
13741aix4* | aix5*)
13742 version_type=linux
13743 need_lib_prefix=no
13744 need_version=no
13745 hardcode_into_libs=yes
13746 if test "$host_cpu" = ia64; then
13747 # AIX 5 supports IA64
13748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13749 shlibpath_var=LD_LIBRARY_PATH
13750 else
13751 # With GCC up to 2.95.x, collect2 would create an import file
13752 # for dependence libraries. The import file would start with
13753 # the line `#! .'. This would cause the generated library to
13754 # depend on `.', always an invalid library. This was fixed in
13755 # development snapshots of GCC prior to 3.0.
13756 case $host_os in
13757 aix4 | aix4.[01] | aix4.[01].*)
13758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13759 echo ' yes '
13760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13761 :
13762 else
13763 can_build_shared=no
13764 fi
13765 ;;
13766 esac
13767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13768 # soname into executable. Probably we can add versioning support to
13769 # collect2, so additional links can be useful in future.
13770 if test "$aix_use_runtimelinking" = yes; then
13771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13772 # instead of lib<name>.a to let people know that these are not
13773 # typical AIX shared libraries.
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 else
13776 # We preserve .a as extension for shared libraries through AIX4.2
13777 # and later when we are not doing run time linking.
13778 library_names_spec='${libname}${release}.a $libname.a'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 fi
13781 shlibpath_var=LIBPATH
13782 fi
13783 ;;
13784
13785amigaos*)
13786 library_names_spec='$libname.ixlibrary $libname.a'
13787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13788 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'
13789 ;;
13790
13791beos*)
13792 library_names_spec='${libname}${shared_ext}'
13793 dynamic_linker="$host_os ld.so"
13794 shlibpath_var=LIBRARY_PATH
13795 ;;
13796
13797bsdi4*)
13798 version_type=linux
13799 need_version=no
13800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13801 soname_spec='${libname}${release}${shared_ext}$major'
13802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13803 shlibpath_var=LD_LIBRARY_PATH
13804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13806 # the default ld.so.conf also contains /usr/contrib/lib and
13807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13808 # libtool to hard-code these into programs
13809 ;;
13810
13811cygwin* | mingw* | pw32*)
13812 version_type=windows
13813 shrext=".dll"
13814 need_version=no
13815 need_lib_prefix=no
13816
13817 case $GCC,$host_os in
13818 yes,cygwin* | yes,mingw* | yes,pw32*)
13819 library_names_spec='$libname.dll.a'
13820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13821 postinstall_cmds='base_file=`basename \${file}`~
13822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13823 dldir=$destdir/`dirname \$dlpath`~
13824 test -d \$dldir || mkdir -p \$dldir~
13825 $install_prog $dir/$dlname \$dldir/$dlname'
13826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13827 dlpath=$dir/\$dldll~
13828 $rm \$dlpath'
13829 shlibpath_overrides_runpath=yes
13830
13831 case $host_os in
13832 cygwin*)
13833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13835 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13836 ;;
13837 mingw*)
13838 # MinGW DLLs use traditional 'lib' prefix
13839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13842 # It is most probably a Windows format PATH printed by
13843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13844 # path with ; separators, and with drive letters. We can handle the
13845 # drive letters (cygwin fileutils understands them), so leave them,
13846 # especially as we might pass files found there to a mingw objdump,
13847 # which wouldn't understand a cygwinified path. Ahh.
13848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13849 else
13850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13851 fi
13852 ;;
13853 pw32*)
13854 # pw32 DLLs use 'pw' prefix rather than 'lib'
13855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13856 ;;
13857 esac
13858 ;;
13859
13860 *)
13861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13862 ;;
13863 esac
13864 dynamic_linker='Win32 ld.exe'
13865 # FIXME: first we should search . and the directory the executable is in
13866 shlibpath_var=PATH
13867 ;;
13868
13869darwin* | rhapsody*)
13870 dynamic_linker="$host_os dyld"
13871 version_type=darwin
13872 need_lib_prefix=no
13873 need_version=no
13874 # FIXME: Relying on posixy $() will cause problems for
13875 # cross-compilation, but unfortunately the echo tests do not
13876 # yet detect zsh echo's removal of \ escapes.
13877 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13878 soname_spec='${libname}${release}${major}$shared_ext'
13879 shlibpath_overrides_runpath=yes
13880 shlibpath_var=DYLD_LIBRARY_PATH
13881 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13882 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13883 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13884 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"`
13885 fi
13886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13887 ;;
13888
13889dgux*)
13890 version_type=linux
13891 need_lib_prefix=no
13892 need_version=no
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 shlibpath_var=LD_LIBRARY_PATH
13896 ;;
13897
13898freebsd1*)
13899 dynamic_linker=no
13900 ;;
13901
13902freebsd*)
13903 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13904 version_type=freebsd-$objformat
13905 case $version_type in
13906 freebsd-elf*)
13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13908 need_version=no
13909 need_lib_prefix=no
13910 ;;
13911 freebsd-*)
13912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13913 need_version=yes
13914 ;;
13915 esac
13916 shlibpath_var=LD_LIBRARY_PATH
13917 case $host_os in
13918 freebsd2*)
13919 shlibpath_overrides_runpath=yes
13920 ;;
13921 freebsd3.01* | freebsdelf3.01*)
13922 shlibpath_overrides_runpath=yes
13923 hardcode_into_libs=yes
13924 ;;
13925 *) # from 3.2 on
13926 shlibpath_overrides_runpath=no
13927 hardcode_into_libs=yes
13928 ;;
13929 esac
13930 ;;
13931
13932gnu*)
13933 version_type=linux
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 hardcode_into_libs=yes
13940 ;;
13941
13942hpux9* | hpux10* | hpux11*)
13943 # Give a soname corresponding to the major version so that dld.sl refuses to
13944 # link against other versions.
13945 version_type=sunos
13946 need_lib_prefix=no
13947 need_version=no
13948 case "$host_cpu" in
13949 ia64*)
13950 shrext='.so'
13951 hardcode_into_libs=yes
13952 dynamic_linker="$host_os dld.so"
13953 shlibpath_var=LD_LIBRARY_PATH
13954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 if test "X$HPUX_IA64_MODE" = X32; then
13958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13959 else
13960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13961 fi
13962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963 ;;
13964 hppa*64*)
13965 shrext='.sl'
13966 hardcode_into_libs=yes
13967 dynamic_linker="$host_os dld.sl"
13968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13974 ;;
13975 *)
13976 shrext='.sl'
13977 dynamic_linker="$host_os dld.sl"
13978 shlibpath_var=SHLIB_PATH
13979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 ;;
13983 esac
13984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13985 postinstall_cmds='chmod 555 $lib'
13986 ;;
13987
13988irix5* | irix6* | nonstopux*)
13989 case $host_os in
13990 nonstopux*) version_type=nonstopux ;;
13991 *)
13992 if test "$lt_cv_prog_gnu_ld" = yes; then
13993 version_type=linux
13994 else
13995 version_type=irix
13996 fi ;;
13997 esac
13998 need_lib_prefix=no
13999 need_version=no
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14002 case $host_os in
14003 irix5* | nonstopux*)
14004 libsuff= shlibsuff=
14005 ;;
14006 *)
14007 case $LD in # libtool.m4 will add one of these switches to LD
14008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14009 libsuff= shlibsuff= libmagic=32-bit;;
14010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14011 libsuff=32 shlibsuff=N32 libmagic=N32;;
14012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14014 *) libsuff= shlibsuff= libmagic=never-match;;
14015 esac
14016 ;;
14017 esac
14018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14019 shlibpath_overrides_runpath=no
14020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14022 hardcode_into_libs=yes
14023 ;;
14024
14025# No shared lib support for Linux oldld, aout, or coff.
14026linux*oldld* | linux*aout* | linux*coff*)
14027 dynamic_linker=no
14028 ;;
14029
14030# This must be Linux ELF.
14031linux*)
14032 version_type=linux
14033 need_lib_prefix=no
14034 need_version=no
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14036 soname_spec='${libname}${release}${shared_ext}$major'
14037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14038 shlibpath_var=LD_LIBRARY_PATH
14039 shlibpath_overrides_runpath=no
14040 # This implies no fast_install, which is unacceptable.
14041 # Some rework will be needed to allow for fast_install
14042 # before this can be enabled.
14043 hardcode_into_libs=yes
14044
14045 # We used to test for /lib/ld.so.1 and disable shared libraries on
14046 # powerpc, because MkLinux only supported shared libraries with the
14047 # GNU dynamic linker. Since this was broken with cross compilers,
14048 # most powerpc-linux boxes support dynamic linking these days and
14049 # people can always --disable-shared, the test was removed, and we
14050 # assume the GNU/Linux dynamic linker is in use.
14051 dynamic_linker='GNU/Linux ld.so'
14052 ;;
14053
14054netbsd*)
14055 version_type=sunos
14056 need_lib_prefix=no
14057 need_version=no
14058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14061 dynamic_linker='NetBSD (a.out) ld.so'
14062 else
14063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14064 soname_spec='${libname}${release}${shared_ext}$major'
14065 dynamic_linker='NetBSD ld.elf_so'
14066 fi
14067 shlibpath_var=LD_LIBRARY_PATH
14068 shlibpath_overrides_runpath=yes
14069 hardcode_into_libs=yes
14070 ;;
14071
14072newsos6)
14073 version_type=linux
14074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14075 shlibpath_var=LD_LIBRARY_PATH
14076 shlibpath_overrides_runpath=yes
14077 ;;
14078
14079nto-qnx)
14080 version_type=linux
14081 need_lib_prefix=no
14082 need_version=no
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 soname_spec='${libname}${release}${shared_ext}$major'
14085 shlibpath_var=LD_LIBRARY_PATH
14086 shlibpath_overrides_runpath=yes
14087 ;;
14088
14089openbsd*)
14090 version_type=sunos
14091 need_lib_prefix=no
14092 need_version=no
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14097 case $host_os in
14098 openbsd2.[89] | openbsd2.[89].*)
14099 shlibpath_overrides_runpath=no
14100 ;;
14101 *)
14102 shlibpath_overrides_runpath=yes
14103 ;;
14104 esac
14105 else
14106 shlibpath_overrides_runpath=yes
14107 fi
14108 ;;
14109
14110os2*)
14111 libname_spec='$name'
14112 shrext=".dll"
14113 need_lib_prefix=no
14114 library_names_spec='$libname${shared_ext} $libname.a'
14115 dynamic_linker='OS/2 ld.exe'
14116 shlibpath_var=LIBPATH
14117 ;;
14118
14119osf3* | osf4* | osf5*)
14120 version_type=osf
14121 need_lib_prefix=no
14122 need_version=no
14123 soname_spec='${libname}${release}${shared_ext}$major'
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14128 ;;
14129
14130sco3.2v5*)
14131 version_type=osf
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 ;;
14136
14137solaris*)
14138 version_type=linux
14139 need_lib_prefix=no
14140 need_version=no
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 soname_spec='${libname}${release}${shared_ext}$major'
14143 shlibpath_var=LD_LIBRARY_PATH
14144 shlibpath_overrides_runpath=yes
14145 hardcode_into_libs=yes
14146 # ldd complains unless libraries are executable
14147 postinstall_cmds='chmod +x $lib'
14148 ;;
14149
14150sunos4*)
14151 version_type=sunos
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes
14156 if test "$with_gnu_ld" = yes; then
14157 need_lib_prefix=no
14158 fi
14159 need_version=yes
14160 ;;
14161
14162sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14163 version_type=linux
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 case $host_vendor in
14168 sni)
14169 shlibpath_overrides_runpath=no
14170 need_lib_prefix=no
14171 export_dynamic_flag_spec='${wl}-Blargedynsym'
14172 runpath_var=LD_RUN_PATH
14173 ;;
14174 siemens)
14175 need_lib_prefix=no
14176 ;;
14177 motorola)
14178 need_lib_prefix=no
14179 need_version=no
14180 shlibpath_overrides_runpath=no
14181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14182 ;;
14183 esac
14184 ;;
14185
14186sysv4*MP*)
14187 if test -d /usr/nec ;then
14188 version_type=linux
14189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14190 soname_spec='$libname${shared_ext}.$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 fi
14193 ;;
14194
14195uts4*)
14196 version_type=linux
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 ;;
14201
14202*)
14203 dynamic_linker=no
14204 ;;
14205esac
14206echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14207echo "${ECHO_T}$dynamic_linker" >&6
14208test "$dynamic_linker" = no && can_build_shared=no
14209
14210
14211# The else clause should only fire when bootstrapping the
14212# libtool distribution, otherwise you forgot to ship ltmain.sh
14213# with your package, and you will get complaints that there are
14214# no rules to generate ltmain.sh.
14215if test -f "$ltmain"; then
14216 # See if we are running on zsh, and set the options which allow our commands through
14217 # without removal of \ escapes.
14218 if test -n "${ZSH_VERSION+set}" ; then
14219 setopt NO_GLOB_SUBST
14220 fi
14221 # Now quote all the things that may contain metacharacters while being
14222 # careful not to overquote the AC_SUBSTed values. We take copies of the
14223 # variables and quote the copies for generation of the libtool script.
14224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14227 deplibs_check_method reload_flag reload_cmds need_locks \
14228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14229 lt_cv_sys_global_symbol_to_c_name_address \
14230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14231 old_postinstall_cmds old_postuninstall_cmds \
14232 compiler_F77 \
14233 CC_F77 \
14234 LD_F77 \
14235 lt_prog_compiler_wl_F77 \
14236 lt_prog_compiler_pic_F77 \
14237 lt_prog_compiler_static_F77 \
14238 lt_prog_compiler_no_builtin_flag_F77 \
14239 export_dynamic_flag_spec_F77 \
14240 thread_safe_flag_spec_F77 \
14241 whole_archive_flag_spec_F77 \
14242 enable_shared_with_static_runtimes_F77 \
14243 old_archive_cmds_F77 \
14244 old_archive_from_new_cmds_F77 \
14245 predep_objects_F77 \
14246 postdep_objects_F77 \
14247 predeps_F77 \
14248 postdeps_F77 \
14249 compiler_lib_search_path_F77 \
14250 archive_cmds_F77 \
14251 archive_expsym_cmds_F77 \
14252 postinstall_cmds_F77 \
14253 postuninstall_cmds_F77 \
14254 old_archive_from_expsyms_cmds_F77 \
14255 allow_undefined_flag_F77 \
14256 no_undefined_flag_F77 \
14257 export_symbols_cmds_F77 \
14258 hardcode_libdir_flag_spec_F77 \
14259 hardcode_libdir_flag_spec_ld_F77 \
14260 hardcode_libdir_separator_F77 \
14261 hardcode_automatic_F77 \
14262 module_cmds_F77 \
14263 module_expsym_cmds_F77 \
14264 lt_cv_prog_compiler_c_o_F77 \
14265 exclude_expsyms_F77 \
14266 include_expsyms_F77; do
14267
14268 case $var in
14269 old_archive_cmds_F77 | \
14270 old_archive_from_new_cmds_F77 | \
14271 archive_cmds_F77 | \
14272 archive_expsym_cmds_F77 | \
14273 module_cmds_F77 | \
14274 module_expsym_cmds_F77 | \
14275 old_archive_from_expsyms_cmds_F77 | \
14276 export_symbols_cmds_F77 | \
14277 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14278 postinstall_cmds | postuninstall_cmds | \
14279 old_postinstall_cmds | old_postuninstall_cmds | \
14280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14281 # Double-quote double-evaled strings.
14282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14283 ;;
14284 *)
14285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14286 ;;
14287 esac
14288 done
14289
14290 case $lt_echo in
14291 *'\$0 --fallback-echo"')
14292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14293 ;;
14294 esac
14295
14296cfgfile="$ofile"
14297
14298 cat <<__EOF__ >> "$cfgfile"
14299# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14300
14301# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14302
14303# Shell to use when invoking shell scripts.
14304SHELL=$lt_SHELL
14305
14306# Whether or not to build shared libraries.
14307build_libtool_libs=$enable_shared
14308
14309# Whether or not to build static libraries.
14310build_old_libs=$enable_static
14311
14312# Whether or not to add -lc for building shared libraries.
14313build_libtool_need_lc=$archive_cmds_need_lc_F77
14314
14315# Whether or not to disallow shared libs when runtime libs are static
14316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14317
14318# Whether or not to optimize for fast installation.
14319fast_install=$enable_fast_install
14320
14321# The host system.
14322host_alias=$host_alias
14323host=$host
14324
14325# An echo program that does not interpret backslashes.
14326echo=$lt_echo
14327
14328# The archiver.
14329AR=$lt_AR
14330AR_FLAGS=$lt_AR_FLAGS
14331
14332# A C compiler.
14333LTCC=$lt_LTCC
14334
14335# A language-specific compiler.
14336CC=$lt_compiler_F77
14337
14338# Is the compiler the GNU C compiler?
14339with_gcc=$GCC_F77
14340
14341# An ERE matcher.
14342EGREP=$lt_EGREP
14343
14344# The linker used to build libraries.
14345LD=$lt_LD_F77
14346
14347# Whether we need hard or soft links.
14348LN_S=$lt_LN_S
14349
14350# A BSD-compatible nm program.
14351NM=$lt_NM
14352
14353# A symbol stripping program
14354STRIP=$STRIP
14355
14356# Used to examine libraries when file_magic_cmd begins "file"
14357MAGIC_CMD=$MAGIC_CMD
14358
14359# Used on cygwin: DLL creation program.
14360DLLTOOL="$DLLTOOL"
14361
14362# Used on cygwin: object dumper.
14363OBJDUMP="$OBJDUMP"
14364
14365# Used on cygwin: assembler.
14366AS="$AS"
14367
14368# The name of the directory that contains temporary libtool files.
14369objdir=$objdir
14370
14371# How to create reloadable object files.
14372reload_flag=$lt_reload_flag
14373reload_cmds=$lt_reload_cmds
14374
14375# How to pass a linker flag through the compiler.
14376wl=$lt_lt_prog_compiler_wl_F77
14377
14378# Object file suffix (normally "o").
14379objext="$ac_objext"
14380
14381# Old archive suffix (normally "a").
14382libext="$libext"
14383
14384# Shared library suffix (normally ".so").
14385shrext='$shrext'
14386
14387# Executable file suffix (normally "").
14388exeext="$exeext"
14389
14390# Additional compiler flags for building library objects.
14391pic_flag=$lt_lt_prog_compiler_pic_F77
14392pic_mode=$pic_mode
14393
14394# What is the maximum length of a command?
14395max_cmd_len=$lt_cv_sys_max_cmd_len
14396
14397# Does compiler simultaneously support -c and -o options?
14398compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14399
14400# Must we lock files when doing compilation ?
14401need_locks=$lt_need_locks
14402
14403# Do we need the lib prefix for modules?
14404need_lib_prefix=$need_lib_prefix
14405
14406# Do we need a version for libraries?
14407need_version=$need_version
14408
14409# Whether dlopen is supported.
14410dlopen_support=$enable_dlopen
14411
14412# Whether dlopen of programs is supported.
14413dlopen_self=$enable_dlopen_self
14414
14415# Whether dlopen of statically linked programs is supported.
14416dlopen_self_static=$enable_dlopen_self_static
14417
14418# Compiler flag to prevent dynamic linking.
14419link_static_flag=$lt_lt_prog_compiler_static_F77
14420
14421# Compiler flag to turn off builtin functions.
14422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14423
14424# Compiler flag to allow reflexive dlopens.
14425export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14426
14427# Compiler flag to generate shared objects directly from archives.
14428whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14429
14430# Compiler flag to generate thread-safe objects.
14431thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14432
14433# Library versioning type.
14434version_type=$version_type
14435
14436# Format of library name prefix.
14437libname_spec=$lt_libname_spec
14438
14439# List of archive names. First name is the real one, the rest are links.
14440# The last name is the one that the linker finds with -lNAME.
14441library_names_spec=$lt_library_names_spec
14442
14443# The coded name of the library, if different from the real name.
14444soname_spec=$lt_soname_spec
14445
14446# Commands used to build and install an old-style archive.
14447RANLIB=$lt_RANLIB
14448old_archive_cmds=$lt_old_archive_cmds_F77
14449old_postinstall_cmds=$lt_old_postinstall_cmds
14450old_postuninstall_cmds=$lt_old_postuninstall_cmds
14451
14452# Create an old-style archive from a shared archive.
14453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14454
14455# Create a temporary old-style archive to link instead of a shared archive.
14456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14457
14458# Commands used to build and install a shared archive.
14459archive_cmds=$lt_archive_cmds_F77
14460archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14461postinstall_cmds=$lt_postinstall_cmds
14462postuninstall_cmds=$lt_postuninstall_cmds
14463
14464# Commands used to build a loadable module (assumed same as above if empty)
14465module_cmds=$lt_module_cmds_F77
14466module_expsym_cmds=$lt_module_expsym_cmds_F77
14467
14468# Commands to strip libraries.
14469old_striplib=$lt_old_striplib
14470striplib=$lt_striplib
14471
14472# Dependencies to place before the objects being linked to create a
14473# shared library.
14474predep_objects=$lt_predep_objects_F77
14475
14476# Dependencies to place after the objects being linked to create a
14477# shared library.
14478postdep_objects=$lt_postdep_objects_F77
14479
14480# Dependencies to place before the objects being linked to create a
14481# shared library.
14482predeps=$lt_predeps_F77
14483
14484# Dependencies to place after the objects being linked to create a
14485# shared library.
14486postdeps=$lt_postdeps_F77
14487
14488# The library search path used internally by the compiler when linking
14489# a shared library.
14490compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14491
14492# Method to check whether dependent libraries are shared objects.
14493deplibs_check_method=$lt_deplibs_check_method
14494
14495# Command to use when deplibs_check_method == file_magic.
14496file_magic_cmd=$lt_file_magic_cmd
14497
14498# Flag that allows shared libraries with undefined symbols to be built.
14499allow_undefined_flag=$lt_allow_undefined_flag_F77
14500
14501# Flag that forces no undefined symbols.
14502no_undefined_flag=$lt_no_undefined_flag_F77
14503
14504# Commands used to finish a libtool library installation in a directory.
14505finish_cmds=$lt_finish_cmds
14506
14507# Same as above, but a single script fragment to be evaled but not shown.
14508finish_eval=$lt_finish_eval
14509
14510# Take the output of nm and produce a listing of raw symbols and C names.
14511global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14512
14513# Transform the output of nm in a proper C declaration
14514global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14515
14516# Transform the output of nm in a C name address pair
14517global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14518
14519# This is the shared library runtime path variable.
14520runpath_var=$runpath_var
14521
14522# This is the shared library path variable.
14523shlibpath_var=$shlibpath_var
14524
14525# Is shlibpath searched before the hard-coded library search path?
14526shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14527
14528# How to hardcode a shared library path into an executable.
14529hardcode_action=$hardcode_action_F77
14530
14531# Whether we should hardcode library paths into libraries.
14532hardcode_into_libs=$hardcode_into_libs
14533
14534# Flag to hardcode \$libdir into a binary during linking.
14535# This must work even if \$libdir does not exist.
14536hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14537
14538# If ld is used when linking, flag to hardcode \$libdir into
14539# a binary during linking. This must work even if \$libdir does
14540# not exist.
14541hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14542
14543# Whether we need a single -rpath flag with a separated argument.
14544hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14545
14546# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14547# resulting binary.
14548hardcode_direct=$hardcode_direct_F77
14549
14550# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14551# resulting binary.
14552hardcode_minus_L=$hardcode_minus_L_F77
14553
14554# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14555# the resulting binary.
14556hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14557
14558# Set to yes if building a shared library automatically hardcodes DIR into the library
14559# and all subsequent libraries and executables linked against it.
14560hardcode_automatic=$hardcode_automatic_F77
14561
14562# Variables whose values should be saved in libtool wrapper scripts and
14563# restored at relink time.
14564variables_saved_for_relink="$variables_saved_for_relink"
14565
14566# Whether libtool must link a program against all its dependency libraries.
14567link_all_deplibs=$link_all_deplibs_F77
14568
14569# Compile-time system search path for libraries
14570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14571
14572# Run-time system search path for libraries
14573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14574
14575# Fix the shell variable \$srcfile for the compiler.
14576fix_srcfile_path="$fix_srcfile_path_F77"
14577
14578# Set to yes if exported symbols are required.
14579always_export_symbols=$always_export_symbols_F77
14580
14581# The commands to list exported symbols.
14582export_symbols_cmds=$lt_export_symbols_cmds_F77
14583
14584# The commands to extract the exported symbol list from a shared archive.
14585extract_expsyms_cmds=$lt_extract_expsyms_cmds
14586
14587# Symbols that should not be listed in the preloaded symbols.
14588exclude_expsyms=$lt_exclude_expsyms_F77
14589
14590# Symbols that must always be exported.
14591include_expsyms=$lt_include_expsyms_F77
14592
14593# ### END LIBTOOL TAG CONFIG: $tagname
14594
14595__EOF__
14596
14597
14598else
14599 # If there is no Makefile yet, we rely on a make rule to execute
14600 # `config.status --recheck' to rerun these tests and create the
14601 # libtool script then.
14602 test -f Makefile && make "$ltmain"
14603fi
14604
14605
14606ac_ext=c
14607ac_cpp='$CPP $CPPFLAGS'
14608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612CC="$lt_save_CC"
14613
14614 else
14615 tagname=""
14616 fi
14617 ;;
14618
14619 GCJ)
14620 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14621
14622
14623
14624# Source file extension for Java test sources.
14625ac_ext=java
14626
14627# Object file extension for compiled Java test sources.
14628objext=o
14629objext_GCJ=$objext
14630
14631# Code to be used in simple compile tests
14632lt_simple_compile_test_code="class foo {}\n"
14633
14634# Code to be used in simple link tests
14635lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14636
14637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14638
14639# If no C compiler was specified, use CC.
14640LTCC=${LTCC-"$CC"}
14641
14642# Allow CC to be a program name with arguments.
14643compiler=$CC
14644
14645
14646# Allow CC to be a program name with arguments.
14647lt_save_CC="$CC"
14648CC=${GCJ-"gcj"}
14649compiler=$CC
14650compiler_GCJ=$CC
14651
14652# GCJ did not exist at the time GCC didn't implicitly link libc in.
14653archive_cmds_need_lc_GCJ=no
14654
John Criswell47fdd832003-07-14 16:52:07 +000014655
14656lt_prog_compiler_no_builtin_flag_GCJ=
14657
14658if test "$GCC" = yes; then
14659 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14660
14661 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14662echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14663if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 lt_cv_prog_compiler_rtti_exceptions=no
14667 ac_outfile=conftest.$ac_objext
14668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 lt_compiler_flag="-fno-rtti -fno-exceptions"
14670 # Insert the option either (1) after the last *FLAGS variable, or
14671 # (2) before a word containing "conftest.", or (3) at the end.
14672 # Note that $ac_compile itself does not contain backslashes and begins
14673 # with a dollar sign (not a hyphen), so the echo should work correctly.
14674 # The option is referenced via a variable to avoid confusing sed.
14675 lt_compile=`echo "$ac_compile" | $SED \
14676 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14678 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000014679 (eval echo "\"\$as_me:14679: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014680 (eval "$lt_compile" 2>conftest.err)
14681 ac_status=$?
14682 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000014683 echo "$as_me:14683: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014684 if (exit $ac_status) && test -s "$ac_outfile"; then
14685 # The compiler can only warn and ignore the option if not recognized
14686 # So say no if there are warnings
14687 if test ! -s conftest.err; then
14688 lt_cv_prog_compiler_rtti_exceptions=yes
14689 fi
14690 fi
14691 $rm conftest*
14692
14693fi
14694echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14695echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14696
14697if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14698 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14699else
14700 :
14701fi
14702
14703fi
14704
14705lt_prog_compiler_wl_GCJ=
14706lt_prog_compiler_pic_GCJ=
14707lt_prog_compiler_static_GCJ=
14708
14709echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14710echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14711
14712 if test "$GCC" = yes; then
14713 lt_prog_compiler_wl_GCJ='-Wl,'
14714 lt_prog_compiler_static_GCJ='-static'
14715
14716 case $host_os in
14717 aix*)
14718 # All AIX code is PIC.
14719 if test "$host_cpu" = ia64; then
14720 # AIX 5 now supports IA64 processor
14721 lt_prog_compiler_static_GCJ='-Bstatic'
14722 fi
14723 ;;
14724
14725 amigaos*)
14726 # FIXME: we need at least 68020 code to build shared libraries, but
14727 # adding the `-m68020' flag to GCC prevents building anything better,
14728 # like `-m68040'.
14729 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14730 ;;
14731
14732 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14733 # PIC is the default for these OSes.
14734 ;;
14735
14736 mingw* | pw32* | os2*)
14737 # This hack is so that the source file can tell whether it is being
14738 # built for inclusion in a dll (and should export symbols for example).
14739 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14740 ;;
14741
14742 darwin* | rhapsody*)
14743 # PIC is the default on this platform
14744 # Common symbols not allowed in MH_DYLIB files
14745 lt_prog_compiler_pic_GCJ='-fno-common'
14746 ;;
14747
14748 msdosdjgpp*)
14749 # Just because we use GCC doesn't mean we suddenly get shared libraries
14750 # on systems that don't support them.
14751 lt_prog_compiler_can_build_shared_GCJ=no
14752 enable_shared=no
14753 ;;
14754
14755 sysv4*MP*)
14756 if test -d /usr/nec; then
14757 lt_prog_compiler_pic_GCJ=-Kconform_pic
14758 fi
14759 ;;
14760
14761 hpux*)
14762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14763 # not for PA HP-UX.
14764 case "$host_cpu" in
14765 hppa*64*|ia64*)
14766 # +Z the default
14767 ;;
14768 *)
14769 lt_prog_compiler_pic_GCJ='-fPIC'
14770 ;;
14771 esac
14772 ;;
14773
14774 *)
14775 lt_prog_compiler_pic_GCJ='-fPIC'
14776 ;;
14777 esac
14778 else
14779 # PORTME Check for flag to pass linker flags through the system compiler.
14780 case $host_os in
14781 aix*)
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 if test "$host_cpu" = ia64; then
14784 # AIX 5 now supports IA64 processor
14785 lt_prog_compiler_static_GCJ='-Bstatic'
14786 else
14787 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14788 fi
14789 ;;
14790
14791 mingw* | pw32* | os2*)
14792 # This hack is so that the source file can tell whether it is being
14793 # built for inclusion in a dll (and should export symbols for example).
14794 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14795 ;;
14796
14797 hpux9* | hpux10* | hpux11*)
14798 lt_prog_compiler_wl_GCJ='-Wl,'
14799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14800 # not for PA HP-UX.
14801 case "$host_cpu" in
14802 hppa*64*|ia64*)
14803 # +Z the default
14804 ;;
14805 *)
14806 lt_prog_compiler_pic_GCJ='+Z'
14807 ;;
14808 esac
14809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14810 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14811 ;;
14812
14813 irix5* | irix6* | nonstopux*)
14814 lt_prog_compiler_wl_GCJ='-Wl,'
14815 # PIC (with -KPIC) is the default.
14816 lt_prog_compiler_static_GCJ='-non_shared'
14817 ;;
14818
14819 newsos6)
14820 lt_prog_compiler_pic_GCJ='-KPIC'
14821 lt_prog_compiler_static_GCJ='-Bstatic'
14822 ;;
14823
14824 linux*)
14825 case $CC in
14826 icc|ecc)
14827 lt_prog_compiler_wl_GCJ='-Wl,'
14828 lt_prog_compiler_pic_GCJ='-KPIC'
14829 lt_prog_compiler_static_GCJ='-static'
14830 ;;
14831 ccc)
14832 lt_prog_compiler_wl_GCJ='-Wl,'
14833 # All Alpha code is PIC.
14834 lt_prog_compiler_static_GCJ='-non_shared'
14835 ;;
14836 esac
14837 ;;
14838
14839 osf3* | osf4* | osf5*)
14840 lt_prog_compiler_wl_GCJ='-Wl,'
14841 # All OSF/1 code is PIC.
14842 lt_prog_compiler_static_GCJ='-non_shared'
14843 ;;
14844
14845 sco3.2v5*)
14846 lt_prog_compiler_pic_GCJ='-Kpic'
14847 lt_prog_compiler_static_GCJ='-dn'
14848 ;;
14849
14850 solaris*)
14851 lt_prog_compiler_wl_GCJ='-Wl,'
14852 lt_prog_compiler_pic_GCJ='-KPIC'
14853 lt_prog_compiler_static_GCJ='-Bstatic'
14854 ;;
14855
14856 sunos4*)
14857 lt_prog_compiler_wl_GCJ='-Qoption ld '
14858 lt_prog_compiler_pic_GCJ='-PIC'
14859 lt_prog_compiler_static_GCJ='-Bstatic'
14860 ;;
14861
14862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14863 lt_prog_compiler_wl_GCJ='-Wl,'
14864 lt_prog_compiler_pic_GCJ='-KPIC'
14865 lt_prog_compiler_static_GCJ='-Bstatic'
14866 ;;
14867
14868 sysv4*MP*)
14869 if test -d /usr/nec ;then
14870 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14871 lt_prog_compiler_static_GCJ='-Bstatic'
14872 fi
14873 ;;
14874
14875 uts4*)
14876 lt_prog_compiler_pic_GCJ='-pic'
14877 lt_prog_compiler_static_GCJ='-Bstatic'
14878 ;;
14879
14880 *)
14881 lt_prog_compiler_can_build_shared_GCJ=no
14882 ;;
14883 esac
14884 fi
14885
14886echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14887echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14888
14889#
14890# Check to make sure the PIC flag actually works.
14891#
14892if test -n "$lt_prog_compiler_pic_GCJ"; then
14893 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14894echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14895if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897else
14898 lt_prog_compiler_pic_works_GCJ=no
14899 ac_outfile=conftest.$ac_objext
14900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14901 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14902 # Insert the option either (1) after the last *FLAGS variable, or
14903 # (2) before a word containing "conftest.", or (3) at the end.
14904 # Note that $ac_compile itself does not contain backslashes and begins
14905 # with a dollar sign (not a hyphen), so the echo should work correctly.
14906 # The option is referenced via a variable to avoid confusing sed.
14907 lt_compile=`echo "$ac_compile" | $SED \
14908 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14910 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000014911 (eval echo "\"\$as_me:14911: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014912 (eval "$lt_compile" 2>conftest.err)
14913 ac_status=$?
14914 cat conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000014915 echo "$as_me:14915: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014916 if (exit $ac_status) && test -s "$ac_outfile"; then
14917 # The compiler can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test ! -s conftest.err; then
14920 lt_prog_compiler_pic_works_GCJ=yes
14921 fi
14922 fi
14923 $rm conftest*
14924
14925fi
14926echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14927echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14928
14929if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14930 case $lt_prog_compiler_pic_GCJ in
14931 "" | " "*) ;;
14932 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14933 esac
14934else
14935 lt_prog_compiler_pic_GCJ=
14936 lt_prog_compiler_can_build_shared_GCJ=no
14937fi
14938
14939fi
14940case "$host_os" in
14941 # For platforms which do not support PIC, -DPIC is meaningless:
14942 *djgpp*)
14943 lt_prog_compiler_pic_GCJ=
14944 ;;
14945 *)
14946 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14947 ;;
14948esac
14949
14950echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14951echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14952if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954else
14955 lt_cv_prog_compiler_c_o_GCJ=no
14956 $rm -r conftest 2>/dev/null
14957 mkdir conftest
14958 cd conftest
14959 mkdir out
14960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14961
14962 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14963 # that will create temporary files in the current directory regardless of
14964 # the output directory. Thus, making CWD read-only will cause this test
14965 # to fail, enabling locking or at least warning the user not to do parallel
14966 # builds.
14967 chmod -w .
14968
14969 lt_compiler_flag="-o out/conftest2.$ac_objext"
14970 # Insert the option either (1) after the last *FLAGS variable, or
14971 # (2) before a word containing "conftest.", or (3) at the end.
14972 # Note that $ac_compile itself does not contain backslashes and begins
14973 # with a dollar sign (not a hyphen), so the echo should work correctly.
14974 lt_compile=`echo "$ac_compile" | $SED \
14975 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977 -e 's:$: $lt_compiler_flag:'`
John Criswell8a54a1e2004-06-22 21:35:10 +000014978 (eval echo "\"\$as_me:14978: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014979 (eval "$lt_compile" 2>out/conftest.err)
14980 ac_status=$?
14981 cat out/conftest.err >&5
John Criswell8a54a1e2004-06-22 21:35:10 +000014982 echo "$as_me:14982: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14984 then
14985 # The compiler can only warn and ignore the option if not recognized
14986 # So say no if there are warnings
14987 if test ! -s out/conftest.err; then
14988 lt_cv_prog_compiler_c_o_GCJ=yes
14989 fi
14990 fi
14991 chmod u+w .
14992 $rm conftest* out/*
14993 rmdir out
14994 cd ..
14995 rmdir conftest
14996 $rm conftest*
14997
14998fi
14999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15000echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15001
15002
15003hard_links="nottested"
15004if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15005 # do not overwrite the value of need_locks provided by the user
15006 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15007echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15008 hard_links=yes
15009 $rm conftest*
15010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15011 touch conftest.a
15012 ln conftest.a conftest.b 2>&5 || hard_links=no
15013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15014 echo "$as_me:$LINENO: result: $hard_links" >&5
15015echo "${ECHO_T}$hard_links" >&6
15016 if test "$hard_links" = no; then
15017 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15018echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15019 need_locks=warn
15020 fi
15021else
15022 need_locks=no
15023fi
15024
15025echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15026echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15027
15028 runpath_var=
15029 allow_undefined_flag_GCJ=
15030 enable_shared_with_static_runtimes_GCJ=no
15031 archive_cmds_GCJ=
15032 archive_expsym_cmds_GCJ=
15033 old_archive_From_new_cmds_GCJ=
15034 old_archive_from_expsyms_cmds_GCJ=
15035 export_dynamic_flag_spec_GCJ=
15036 whole_archive_flag_spec_GCJ=
15037 thread_safe_flag_spec_GCJ=
15038 hardcode_libdir_flag_spec_GCJ=
15039 hardcode_libdir_flag_spec_ld_GCJ=
15040 hardcode_libdir_separator_GCJ=
15041 hardcode_direct_GCJ=no
15042 hardcode_minus_L_GCJ=no
15043 hardcode_shlibpath_var_GCJ=unsupported
15044 link_all_deplibs_GCJ=unknown
15045 hardcode_automatic_GCJ=no
15046 module_cmds_GCJ=
15047 module_expsym_cmds_GCJ=
15048 always_export_symbols_GCJ=no
15049 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15050 # include_expsyms should be a list of space-separated symbols to be *always*
15051 # included in the symbol list
15052 include_expsyms_GCJ=
15053 # exclude_expsyms can be an extended regexp of symbols to exclude
15054 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15055 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15056 # as well as any symbol that contains `d'.
15057 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15058 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15059 # platforms (ab)use it in PIC code, but their linkers get confused if
15060 # the symbol is explicitly referenced. Since portable code cannot
15061 # rely on this symbol name, it's probably fine to never include it in
15062 # preloaded symbol tables.
15063 extract_expsyms_cmds=
15064
15065 case $host_os in
15066 cygwin* | mingw* | pw32*)
15067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15068 # When not using gcc, we currently assume that we are using
15069 # Microsoft Visual C++.
15070 if test "$GCC" != yes; then
15071 with_gnu_ld=no
15072 fi
15073 ;;
15074 openbsd*)
15075 with_gnu_ld=no
15076 ;;
15077 esac
15078
15079 ld_shlibs_GCJ=yes
15080 if test "$with_gnu_ld" = yes; then
15081 # If archive_cmds runs LD, not CC, wlarc should be empty
15082 wlarc='${wl}'
15083
15084 # See if GNU ld supports shared libraries.
15085 case $host_os in
15086 aix3* | aix4* | aix5*)
15087 # On AIX/PPC, the GNU linker is very broken
15088 if test "$host_cpu" != ia64; then
15089 ld_shlibs_GCJ=no
15090 cat <<EOF 1>&2
15091
15092*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15093*** to be unable to reliably create shared libraries on AIX.
15094*** Therefore, libtool is disabling shared libraries support. If you
15095*** really care for shared libraries, you may want to modify your PATH
15096*** so that a non-GNU linker is found, and then restart.
15097
15098EOF
15099 fi
15100 ;;
15101
15102 amigaos*)
15103 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)'
15104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15105 hardcode_minus_L_GCJ=yes
15106
15107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15108 # that the semantics of dynamic libraries on AmigaOS, at least up
15109 # to version 4, is to share data among multiple programs linked
15110 # with the same dynamic library. Since this doesn't match the
15111 # behavior of shared libraries on other platforms, we can't use
15112 # them.
15113 ld_shlibs_GCJ=no
15114 ;;
15115
15116 beos*)
15117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118 allow_undefined_flag_GCJ=unsupported
15119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120 # support --undefined. This deserves some investigation. FIXME
15121 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122 else
15123 ld_shlibs_GCJ=no
15124 fi
15125 ;;
15126
15127 cygwin* | mingw* | pw32*)
15128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15129 # as there is no search path for DLLs.
15130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15131 allow_undefined_flag_GCJ=unsupported
15132 always_export_symbols_GCJ=no
15133 enable_shared_with_static_runtimes_GCJ=yes
15134 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15135
15136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15137 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15138 # If the export-symbols file already is a .def file (1st line
15139 # is EXPORTS), use it as is; otherwise, prepend...
15140 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15141 cp $export_symbols $output_objdir/$soname.def;
15142 else
15143 echo EXPORTS > $output_objdir/$soname.def;
15144 cat $export_symbols >> $output_objdir/$soname.def;
15145 fi~
15146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15147 else
15148 ld_shlibs=no
15149 fi
15150 ;;
15151
15152 netbsd*)
15153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15154 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15155 wlarc=
15156 else
15157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15159 fi
15160 ;;
15161
15162 solaris* | sysv5*)
15163 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15164 ld_shlibs_GCJ=no
15165 cat <<EOF 1>&2
15166
15167*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15168*** create shared libraries on Solaris systems. Therefore, libtool
15169*** is disabling shared libraries support. We urge you to upgrade GNU
15170*** binutils to release 2.9.1 or newer. Another option is to modify
15171*** your PATH or compiler configuration so that the native linker is
15172*** used, and then restart.
15173
15174EOF
15175 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15178 else
15179 ld_shlibs_GCJ=no
15180 fi
15181 ;;
15182
15183 sunos4*)
15184 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 wlarc=
15186 hardcode_direct_GCJ=yes
15187 hardcode_shlibpath_var_GCJ=no
15188 ;;
15189
15190 *)
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194 else
15195 ld_shlibs_GCJ=no
15196 fi
15197 ;;
15198 esac
15199
15200 if test "$ld_shlibs_GCJ" = yes; then
15201 runpath_var=LD_RUN_PATH
15202 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15203 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15204 # ancient GNU ld didn't support --whole-archive et. al.
15205 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15206 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15207 else
15208 whole_archive_flag_spec_GCJ=
15209 fi
15210 fi
15211 else
15212 # PORTME fill in a description of your system's linker (not GNU ld)
15213 case $host_os in
15214 aix3*)
15215 allow_undefined_flag_GCJ=unsupported
15216 always_export_symbols_GCJ=yes
15217 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'
15218 # Note: this linker hardcodes the directories in LIBPATH if there
15219 # are no directories specified by -L.
15220 hardcode_minus_L_GCJ=yes
15221 if test "$GCC" = yes && test -z "$link_static_flag"; then
15222 # Neither direct hardcoding nor static linking is supported with a
15223 # broken collect2.
15224 hardcode_direct_GCJ=unsupported
15225 fi
15226 ;;
15227
15228 aix4* | aix5*)
15229 if test "$host_cpu" = ia64; then
15230 # On IA64, the linker does run time linking by default, so we don't
15231 # have to do anything special.
15232 aix_use_runtimelinking=no
15233 exp_sym_flag='-Bexport'
15234 no_entry_flag=""
15235 else
15236 # If we're using GNU nm, then we don't want the "-C" option.
15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239 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'
15240 else
15241 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'
15242 fi
15243 aix_use_runtimelinking=no
15244
15245 # Test if we are trying to use run time linking or normal
15246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247 # need to do runtime linking.
15248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249 for ld_flag in $LDFLAGS; do
15250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251 aix_use_runtimelinking=yes
15252 break
15253 fi
15254 done
15255 esac
15256
15257 exp_sym_flag='-bexport'
15258 no_entry_flag='-bnoentry'
15259 fi
15260
15261 # When large executables or shared objects are built, AIX ld can
15262 # have problems creating the table of contents. If linking a library
15263 # or program results in "error TOC overflow" add -mminimal-toc to
15264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15266
15267 archive_cmds_GCJ=''
15268 hardcode_direct_GCJ=yes
15269 hardcode_libdir_separator_GCJ=':'
15270 link_all_deplibs_GCJ=yes
15271
15272 if test "$GCC" = yes; then
15273 case $host_os in aix4.012|aix4.012.*)
15274 # We only want to do this on AIX 4.2 and lower, the check
15275 # below for broken collect2 doesn't work under 4.3+
15276 collect2name=`${CC} -print-prog-name=collect2`
15277 if test -f "$collect2name" && \
15278 strings "$collect2name" | grep resolve_lib_name >/dev/null
15279 then
15280 # We have reworked collect2
15281 hardcode_direct_GCJ=yes
15282 else
15283 # We have old collect2
15284 hardcode_direct_GCJ=unsupported
15285 # It fails to find uninstalled libraries when the uninstalled
15286 # path is not listed in the libpath. Setting hardcode_minus_L
15287 # to unsupported forces relinking
15288 hardcode_minus_L_GCJ=yes
15289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15290 hardcode_libdir_separator_GCJ=
15291 fi
15292 esac
15293 shared_flag='-shared'
15294 else
15295 # not using gcc
15296 if test "$host_cpu" = ia64; then
15297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298 # chokes on -Wl,-G. The following line is correct:
15299 shared_flag='-G'
15300 else
15301 if test "$aix_use_runtimelinking" = yes; then
15302 shared_flag='${wl}-G'
15303 else
15304 shared_flag='${wl}-bM:SRE'
15305 fi
15306 fi
15307 fi
15308
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to export.
15311 always_export_symbols_GCJ=yes
15312 if test "$aix_use_runtimelinking" = yes; then
15313 # Warning - without using the other runtime loading flags (-brtl),
15314 # -berok will link without error, but may produce a broken library.
15315 allow_undefined_flag_GCJ='-berok'
15316 # Determine the default libpath from the value encoded in an empty executable.
15317 cat >conftest.$ac_ext <<_ACEOF
15318#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015319/* confdefs.h. */
15320_ACEOF
15321cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015324
John Criswell47fdd832003-07-14 16:52:07 +000015325int
15326main ()
15327{
15328
15329 ;
15330 return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext conftest$ac_exeext
15334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15335 (eval $ac_link) 2>&5
15336 ac_status=$?
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest$ac_exeext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345
15346aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15347}'`
15348# Check for a 64-bit object if we didn't find anything.
15349if 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; }
15350}'`; fi
15351else
15352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015353sed 's/^/| /' conftest.$ac_ext >&5
15354
John Criswell47fdd832003-07-14 16:52:07 +000015355fi
15356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358
15359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15360 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"
15361 else
15362 if test "$host_cpu" = ia64; then
15363 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15364 allow_undefined_flag_GCJ="-z nodefs"
15365 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"
15366 else
15367 # Determine the default libpath from the value encoded in an empty executable.
15368 cat >conftest.$ac_ext <<_ACEOF
15369#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015375
John Criswell47fdd832003-07-14 16:52:07 +000015376int
15377main ()
15378{
15379
15380 ;
15381 return 0;
15382}
15383_ACEOF
15384rm -f conftest.$ac_objext conftest$ac_exeext
15385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386 (eval $ac_link) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -s conftest$ac_exeext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396
15397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15398}'`
15399# Check for a 64-bit object if we didn't find anything.
15400if 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; }
15401}'`; fi
15402else
15403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015404sed 's/^/| /' conftest.$ac_ext >&5
15405
John Criswell47fdd832003-07-14 16:52:07 +000015406fi
15407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15409
15410 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15411 # Warning - without using the other run time loading flags,
15412 # -berok will link without error, but may produce a broken library.
15413 no_undefined_flag_GCJ=' ${wl}-bernotok'
15414 allow_undefined_flag_GCJ=' ${wl}-berok'
15415 # -bexpall does not export symbols beginning with underscore (_)
15416 always_export_symbols_GCJ=yes
15417 # Exported symbols can be pulled into shared objects from archives
15418 whole_archive_flag_spec_GCJ=' '
15419 archive_cmds_need_lc_GCJ=yes
15420 # This is similar to how AIX traditionally builds it's shared libraries.
15421 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'
15422 fi
15423 fi
15424 ;;
15425
15426 amigaos*)
15427 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)'
15428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15429 hardcode_minus_L_GCJ=yes
15430 # see comment about different semantics on the GNU ld section
15431 ld_shlibs_GCJ=no
15432 ;;
15433
15434 bsdi4*)
15435 export_dynamic_flag_spec_GCJ=-rdynamic
15436 ;;
15437
15438 cygwin* | mingw* | pw32*)
15439 # When not using gcc, we currently assume that we are using
15440 # Microsoft Visual C++.
15441 # hardcode_libdir_flag_spec is actually meaningless, as there is
15442 # no search path for DLLs.
15443 hardcode_libdir_flag_spec_GCJ=' '
15444 allow_undefined_flag_GCJ=unsupported
15445 # Tell ltmain to make .lib files, not .a files.
15446 libext=lib
15447 # Tell ltmain to make .dll files, not .so files.
15448 shrext=".dll"
15449 # FIXME: Setting linknames here is a bad hack.
15450 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15451 # The linker will automatically build a .lib file if we build a DLL.
15452 old_archive_From_new_cmds_GCJ='true'
15453 # FIXME: Should let the user specify the lib program.
15454 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15455 fix_srcfile_path='`cygpath -w "$srcfile"`'
15456 enable_shared_with_static_runtimes_GCJ=yes
15457 ;;
15458
15459 darwin* | rhapsody*)
15460 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15461 archive_cmds_need_lc_GCJ=no
15462 case "$host_os" in
15463 rhapsody* | darwin1.[012])
15464 allow_undefined_flag_GCJ='-undefined suppress'
15465 ;;
15466 *) # Darwin 1.3 on
15467 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15468 ;;
15469 esac
15470 # FIXME: Relying on posixy $() will cause problems for
15471 # cross-compilation, but unfortunately the echo tests do not
15472 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15473 # `"' quotes if we put them in here... so don't!
15474 lt_int_apple_cc_single_mod=no
15475 output_verbose_link_cmd='echo'
15476 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15477 lt_int_apple_cc_single_mod=yes
15478 fi
15479 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15480 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15481 else
15482 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15483 fi
15484 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15485 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15486 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15487 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15488 else
15489 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15490 fi
15491 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15492 hardcode_direct_GCJ=no
15493 hardcode_automatic_GCJ=yes
15494 hardcode_shlibpath_var_GCJ=unsupported
15495 whole_archive_flag_spec_GCJ='-all_load $convenience'
15496 link_all_deplibs_GCJ=yes
15497 fi
15498 ;;
15499
15500 dgux*)
15501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15503 hardcode_shlibpath_var_GCJ=no
15504 ;;
15505
15506 freebsd1*)
15507 ld_shlibs_GCJ=no
15508 ;;
15509
15510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15511 # support. Future versions do this automatically, but an explicit c++rt0.o
15512 # does not break anything, and helps significantly (at the cost of a little
15513 # extra space).
15514 freebsd2.2*)
15515 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517 hardcode_direct_GCJ=yes
15518 hardcode_shlibpath_var_GCJ=no
15519 ;;
15520
15521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15522 freebsd2*)
15523 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15524 hardcode_direct_GCJ=yes
15525 hardcode_minus_L_GCJ=yes
15526 hardcode_shlibpath_var_GCJ=no
15527 ;;
15528
15529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15530 freebsd*)
15531 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15533 hardcode_direct_GCJ=yes
15534 hardcode_shlibpath_var_GCJ=no
15535 ;;
15536
15537 hpux9*)
15538 if test "$GCC" = yes; then
15539 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'
15540 else
15541 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'
15542 fi
15543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15544 hardcode_libdir_separator_GCJ=:
15545 hardcode_direct_GCJ=yes
15546
15547 # hardcode_minus_L: Not really in the search PATH,
15548 # but as the default location of the library.
15549 hardcode_minus_L_GCJ=yes
15550 export_dynamic_flag_spec_GCJ='${wl}-E'
15551 ;;
15552
15553 hpux10* | hpux11*)
15554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15555 case "$host_cpu" in
15556 hppa*64*|ia64*)
15557 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 ;;
15559 *)
15560 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15561 ;;
15562 esac
15563 else
15564 case "$host_cpu" in
15565 hppa*64*|ia64*)
15566 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15567 ;;
15568 *)
15569 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15570 ;;
15571 esac
15572 fi
15573 if test "$with_gnu_ld" = no; then
15574 case "$host_cpu" in
15575 hppa*64*)
15576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15578 hardcode_libdir_separator_GCJ=:
15579 hardcode_direct_GCJ=no
15580 hardcode_shlibpath_var_GCJ=no
15581 ;;
15582 ia64*)
15583 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15584 hardcode_direct_GCJ=no
15585 hardcode_shlibpath_var_GCJ=no
15586
15587 # hardcode_minus_L: Not really in the search PATH,
15588 # but as the default location of the library.
15589 hardcode_minus_L_GCJ=yes
15590 ;;
15591 *)
15592 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15593 hardcode_libdir_separator_GCJ=:
15594 hardcode_direct_GCJ=yes
15595 export_dynamic_flag_spec_GCJ='${wl}-E'
15596
15597 # hardcode_minus_L: Not really in the search PATH,
15598 # but as the default location of the library.
15599 hardcode_minus_L_GCJ=yes
15600 ;;
15601 esac
15602 fi
15603 ;;
15604
15605 irix5* | irix6* | nonstopux*)
15606 if test "$GCC" = yes; then
15607 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'
15608 else
15609 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'
15610 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15611 fi
15612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15613 hardcode_libdir_separator_GCJ=:
15614 link_all_deplibs_GCJ=yes
15615 ;;
15616
15617 netbsd*)
15618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15619 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15620 else
15621 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15622 fi
15623 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15624 hardcode_direct_GCJ=yes
15625 hardcode_shlibpath_var_GCJ=no
15626 ;;
15627
15628 newsos6)
15629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15630 hardcode_direct_GCJ=yes
15631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator_GCJ=:
15633 hardcode_shlibpath_var_GCJ=no
15634 ;;
15635
15636 openbsd*)
15637 hardcode_direct_GCJ=yes
15638 hardcode_shlibpath_var_GCJ=no
15639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15640 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15642 export_dynamic_flag_spec_GCJ='${wl}-E'
15643 else
15644 case $host_os in
15645 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15646 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15648 ;;
15649 *)
15650 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15652 ;;
15653 esac
15654 fi
15655 ;;
15656
15657 os2*)
15658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15659 hardcode_minus_L_GCJ=yes
15660 allow_undefined_flag_GCJ=unsupported
15661 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'
15662 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15663 ;;
15664
15665 osf3*)
15666 if test "$GCC" = yes; then
15667 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15668 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'
15669 else
15670 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15671 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'
15672 fi
15673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674 hardcode_libdir_separator_GCJ=:
15675 ;;
15676
15677 osf4* | osf5*) # as osf3* with the addition of -msym flag
15678 if test "$GCC" = yes; then
15679 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15680 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'
15681 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15682 else
15683 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15684 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'
15685 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~
15686 $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'
15687
15688 # Both c and cxx compiler support -rpath directly
15689 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15690 fi
15691 hardcode_libdir_separator_GCJ=:
15692 ;;
15693
15694 sco3.2v5*)
15695 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696 hardcode_shlibpath_var_GCJ=no
15697 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15698 runpath_var=LD_RUN_PATH
15699 hardcode_runpath_var=yes
15700 ;;
15701
15702 solaris*)
15703 no_undefined_flag_GCJ=' -z text'
15704 if test "$GCC" = yes; then
15705 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15707 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15708 else
15709 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15712 fi
15713 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15714 hardcode_shlibpath_var_GCJ=no
15715 case $host_os in
15716 solaris2.[0-5] | solaris2.[0-5].*) ;;
15717 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15718 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15719 esac
15720 link_all_deplibs_GCJ=yes
15721 ;;
15722
15723 sunos4*)
15724 if test "x$host_vendor" = xsequent; then
15725 # Use $CC to link under sequent, because it throws in some extra .o
15726 # files that make .init and .fini sections work.
15727 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15728 else
15729 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15730 fi
15731 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15732 hardcode_direct_GCJ=yes
15733 hardcode_minus_L_GCJ=yes
15734 hardcode_shlibpath_var_GCJ=no
15735 ;;
15736
15737 sysv4)
15738 case $host_vendor in
15739 sni)
15740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_GCJ=yes # is this really true???
15742 ;;
15743 siemens)
15744 ## LD is ld it makes a PLAMLIB
15745 ## CC just makes a GrossModule.
15746 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15748 hardcode_direct_GCJ=no
15749 ;;
15750 motorola)
15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15753 ;;
15754 esac
15755 runpath_var='LD_RUN_PATH'
15756 hardcode_shlibpath_var_GCJ=no
15757 ;;
15758
15759 sysv4.3*)
15760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_shlibpath_var_GCJ=no
15762 export_dynamic_flag_spec_GCJ='-Bexport'
15763 ;;
15764
15765 sysv4*MP*)
15766 if test -d /usr/nec; then
15767 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_shlibpath_var_GCJ=no
15769 runpath_var=LD_RUN_PATH
15770 hardcode_runpath_var=yes
15771 ld_shlibs_GCJ=yes
15772 fi
15773 ;;
15774
15775 sysv4.2uw2*)
15776 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15777 hardcode_direct_GCJ=yes
15778 hardcode_minus_L_GCJ=no
15779 hardcode_shlibpath_var_GCJ=no
15780 hardcode_runpath_var=yes
15781 runpath_var=LD_RUN_PATH
15782 ;;
15783
15784 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15785 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15786 if test "$GCC" = yes; then
15787 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15788 else
15789 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 fi
15791 runpath_var='LD_RUN_PATH'
15792 hardcode_shlibpath_var_GCJ=no
15793 ;;
15794
15795 sysv5*)
15796 no_undefined_flag_GCJ=' -z text'
15797 # $CC -shared without GNU ld will not create a library from C++
15798 # object files and a static libstdc++, better avoid it by now
15799 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15802 hardcode_libdir_flag_spec_GCJ=
15803 hardcode_shlibpath_var_GCJ=no
15804 runpath_var='LD_RUN_PATH'
15805 ;;
15806
15807 uts4*)
15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810 hardcode_shlibpath_var_GCJ=no
15811 ;;
15812
15813 *)
15814 ld_shlibs_GCJ=no
15815 ;;
15816 esac
15817 fi
15818
15819echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15820echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15821test "$ld_shlibs_GCJ" = no && can_build_shared=no
15822
15823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15824if test "$GCC" = yes; then
15825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15826fi
15827
15828#
15829# Do we need to explicitly link libc?
15830#
15831case "x$archive_cmds_need_lc_GCJ" in
15832x|xyes)
15833 # Assume -lc should be added
15834 archive_cmds_need_lc_GCJ=yes
15835
15836 if test "$enable_shared" = yes && test "$GCC" = yes; then
15837 case $archive_cmds_GCJ in
15838 *'~'*)
15839 # FIXME: we may have to deal with multi-command sequences.
15840 ;;
15841 '$CC '*)
15842 # Test whether the compiler implicitly links with -lc since on some
15843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15844 # to ld, don't add -lc before -lgcc.
15845 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15846echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15847 $rm conftest*
15848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15849
15850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15851 (eval $ac_compile) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } 2>conftest.err; then
15855 soname=conftest
15856 lib=conftest
15857 libobjs=conftest.$ac_objext
15858 deplibs=
15859 wl=$lt_prog_compiler_wl_GCJ
15860 compiler_flags=-v
15861 linker_flags=-v
15862 verstring=
15863 output_objdir=.
15864 libname=conftest
15865 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15866 allow_undefined_flag_GCJ=
15867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15868 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15869 ac_status=$?
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }
15872 then
15873 archive_cmds_need_lc_GCJ=no
15874 else
15875 archive_cmds_need_lc_GCJ=yes
15876 fi
15877 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15878 else
15879 cat conftest.err 1>&5
15880 fi
15881 $rm conftest*
15882 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15883echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15884 ;;
15885 esac
15886 fi
15887 ;;
15888esac
15889
15890echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15891echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15892hardcode_action_GCJ=
15893if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15894 test -n "$runpath_var GCJ" || \
15895 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15896
15897 # We can hardcode non-existant directories.
15898 if test "$hardcode_direct_GCJ" != no &&
15899 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15900 # have to relink, otherwise we might link with an installed library
15901 # when we should be linking with a yet-to-be-installed one
15902 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15903 test "$hardcode_minus_L_GCJ" != no; then
15904 # Linking always hardcodes the temporary library directory.
15905 hardcode_action_GCJ=relink
15906 else
15907 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15908 hardcode_action_GCJ=immediate
15909 fi
15910else
15911 # We cannot hardcode anything, or else we can only hardcode existing
15912 # directories.
15913 hardcode_action_GCJ=unsupported
15914fi
15915echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15916echo "${ECHO_T}$hardcode_action_GCJ" >&6
15917
15918if test "$hardcode_action_GCJ" = relink; then
15919 # Fast installation is not supported
15920 enable_fast_install=no
15921elif test "$shlibpath_overrides_runpath" = yes ||
15922 test "$enable_shared" = no; then
15923 # Fast installation is not necessary
15924 enable_fast_install=needless
15925fi
15926
15927striplib=
15928old_striplib=
15929echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15930echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15931if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15933 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15934 echo "$as_me:$LINENO: result: yes" >&5
15935echo "${ECHO_T}yes" >&6
15936else
15937# FIXME - insert some real tests, host_os isn't really good enough
15938 case $host_os in
15939 darwin*)
15940 if test -n "$STRIP" ; then
15941 striplib="$STRIP -x"
15942 echo "$as_me:$LINENO: result: yes" >&5
15943echo "${ECHO_T}yes" >&6
15944 else
15945 echo "$as_me:$LINENO: result: no" >&5
15946echo "${ECHO_T}no" >&6
15947fi
15948 ;;
15949 *)
15950 echo "$as_me:$LINENO: result: no" >&5
15951echo "${ECHO_T}no" >&6
15952 ;;
15953 esac
15954fi
15955
15956echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15957echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15958library_names_spec=
15959libname_spec='lib$name'
15960soname_spec=
15961shrext=".so"
15962postinstall_cmds=
15963postuninstall_cmds=
15964finish_cmds=
15965finish_eval=
15966shlibpath_var=
15967shlibpath_overrides_runpath=unknown
15968version_type=none
15969dynamic_linker="$host_os ld.so"
15970sys_lib_dlsearch_path_spec="/lib /usr/lib"
15971if test "$GCC" = yes; then
15972 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15974 # if the path contains ";" then we assume it to be the separator
15975 # otherwise default to the standard path separator (i.e. ":") - it is
15976 # assumed that no part of a normal pathname contains ";" but that should
15977 # okay in the real world where ";" in dirpaths is itself problematic.
15978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15979 else
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15981 fi
15982else
15983 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15984fi
15985need_lib_prefix=unknown
15986hardcode_into_libs=no
15987
15988# when you set need_version to no, make sure it does not cause -set_version
15989# flags to be left without arguments
15990need_version=unknown
15991
15992case $host_os in
15993aix3*)
15994 version_type=linux
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15996 shlibpath_var=LIBPATH
15997
15998 # AIX 3 has no versioning support, so we append a major version to the name.
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 ;;
16001
16002aix4* | aix5*)
16003 version_type=linux
16004 need_lib_prefix=no
16005 need_version=no
16006 hardcode_into_libs=yes
16007 if test "$host_cpu" = ia64; then
16008 # AIX 5 supports IA64
16009 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 else
16012 # With GCC up to 2.95.x, collect2 would create an import file
16013 # for dependence libraries. The import file would start with
16014 # the line `#! .'. This would cause the generated library to
16015 # depend on `.', always an invalid library. This was fixed in
16016 # development snapshots of GCC prior to 3.0.
16017 case $host_os in
16018 aix4 | aix4.[01] | aix4.[01].*)
16019 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16020 echo ' yes '
16021 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16022 :
16023 else
16024 can_build_shared=no
16025 fi
16026 ;;
16027 esac
16028 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16029 # soname into executable. Probably we can add versioning support to
16030 # collect2, so additional links can be useful in future.
16031 if test "$aix_use_runtimelinking" = yes; then
16032 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16033 # instead of lib<name>.a to let people know that these are not
16034 # typical AIX shared libraries.
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 else
16037 # We preserve .a as extension for shared libraries through AIX4.2
16038 # and later when we are not doing run time linking.
16039 library_names_spec='${libname}${release}.a $libname.a'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 fi
16042 shlibpath_var=LIBPATH
16043 fi
16044 ;;
16045
16046amigaos*)
16047 library_names_spec='$libname.ixlibrary $libname.a'
16048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049 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'
16050 ;;
16051
16052beos*)
16053 library_names_spec='${libname}${shared_ext}'
16054 dynamic_linker="$host_os ld.so"
16055 shlibpath_var=LIBRARY_PATH
16056 ;;
16057
16058bsdi4*)
16059 version_type=linux
16060 need_version=no
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16067 # the default ld.so.conf also contains /usr/contrib/lib and
16068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16069 # libtool to hard-code these into programs
16070 ;;
16071
16072cygwin* | mingw* | pw32*)
16073 version_type=windows
16074 shrext=".dll"
16075 need_version=no
16076 need_lib_prefix=no
16077
16078 case $GCC,$host_os in
16079 yes,cygwin* | yes,mingw* | yes,pw32*)
16080 library_names_spec='$libname.dll.a'
16081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16082 postinstall_cmds='base_file=`basename \${file}`~
16083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16084 dldir=$destdir/`dirname \$dlpath`~
16085 test -d \$dldir || mkdir -p \$dldir~
16086 $install_prog $dir/$dlname \$dldir/$dlname'
16087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16088 dlpath=$dir/\$dldll~
16089 $rm \$dlpath'
16090 shlibpath_overrides_runpath=yes
16091
16092 case $host_os in
16093 cygwin*)
16094 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16095 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16096 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16097 ;;
16098 mingw*)
16099 # MinGW DLLs use traditional 'lib' prefix
16100 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16102 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16103 # It is most probably a Windows format PATH printed by
16104 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16105 # path with ; separators, and with drive letters. We can handle the
16106 # drive letters (cygwin fileutils understands them), so leave them,
16107 # especially as we might pass files found there to a mingw objdump,
16108 # which wouldn't understand a cygwinified path. Ahh.
16109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16110 else
16111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16112 fi
16113 ;;
16114 pw32*)
16115 # pw32 DLLs use 'pw' prefix rather than 'lib'
16116 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16117 ;;
16118 esac
16119 ;;
16120
16121 *)
16122 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16123 ;;
16124 esac
16125 dynamic_linker='Win32 ld.exe'
16126 # FIXME: first we should search . and the directory the executable is in
16127 shlibpath_var=PATH
16128 ;;
16129
16130darwin* | rhapsody*)
16131 dynamic_linker="$host_os dyld"
16132 version_type=darwin
16133 need_lib_prefix=no
16134 need_version=no
16135 # FIXME: Relying on posixy $() will cause problems for
16136 # cross-compilation, but unfortunately the echo tests do not
16137 # yet detect zsh echo's removal of \ escapes.
16138 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16139 soname_spec='${libname}${release}${major}$shared_ext'
16140 shlibpath_overrides_runpath=yes
16141 shlibpath_var=DYLD_LIBRARY_PATH
16142 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16143 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16144 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16145 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"`
16146 fi
16147 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16148 ;;
16149
16150dgux*)
16151 version_type=linux
16152 need_lib_prefix=no
16153 need_version=no
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16155 soname_spec='${libname}${release}${shared_ext}$major'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 ;;
16158
16159freebsd1*)
16160 dynamic_linker=no
16161 ;;
16162
16163freebsd*)
16164 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16165 version_type=freebsd-$objformat
16166 case $version_type in
16167 freebsd-elf*)
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16169 need_version=no
16170 need_lib_prefix=no
16171 ;;
16172 freebsd-*)
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16174 need_version=yes
16175 ;;
16176 esac
16177 shlibpath_var=LD_LIBRARY_PATH
16178 case $host_os in
16179 freebsd2*)
16180 shlibpath_overrides_runpath=yes
16181 ;;
16182 freebsd3.01* | freebsdelf3.01*)
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16185 ;;
16186 *) # from 3.2 on
16187 shlibpath_overrides_runpath=no
16188 hardcode_into_libs=yes
16189 ;;
16190 esac
16191 ;;
16192
16193gnu*)
16194 version_type=linux
16195 need_lib_prefix=no
16196 need_version=no
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 hardcode_into_libs=yes
16201 ;;
16202
16203hpux9* | hpux10* | hpux11*)
16204 # Give a soname corresponding to the major version so that dld.sl refuses to
16205 # link against other versions.
16206 version_type=sunos
16207 need_lib_prefix=no
16208 need_version=no
16209 case "$host_cpu" in
16210 ia64*)
16211 shrext='.so'
16212 hardcode_into_libs=yes
16213 dynamic_linker="$host_os dld.so"
16214 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 if test "X$HPUX_IA64_MODE" = X32; then
16219 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16220 else
16221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16222 fi
16223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16224 ;;
16225 hppa*64*)
16226 shrext='.sl'
16227 hardcode_into_libs=yes
16228 dynamic_linker="$host_os dld.sl"
16229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16235 ;;
16236 *)
16237 shrext='.sl'
16238 dynamic_linker="$host_os dld.sl"
16239 shlibpath_var=SHLIB_PATH
16240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242 soname_spec='${libname}${release}${shared_ext}$major'
16243 ;;
16244 esac
16245 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16246 postinstall_cmds='chmod 555 $lib'
16247 ;;
16248
16249irix5* | irix6* | nonstopux*)
16250 case $host_os in
16251 nonstopux*) version_type=nonstopux ;;
16252 *)
16253 if test "$lt_cv_prog_gnu_ld" = yes; then
16254 version_type=linux
16255 else
16256 version_type=irix
16257 fi ;;
16258 esac
16259 need_lib_prefix=no
16260 need_version=no
16261 soname_spec='${libname}${release}${shared_ext}$major'
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16263 case $host_os in
16264 irix5* | nonstopux*)
16265 libsuff= shlibsuff=
16266 ;;
16267 *)
16268 case $LD in # libtool.m4 will add one of these switches to LD
16269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16270 libsuff= shlibsuff= libmagic=32-bit;;
16271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16272 libsuff=32 shlibsuff=N32 libmagic=N32;;
16273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16275 *) libsuff= shlibsuff= libmagic=never-match;;
16276 esac
16277 ;;
16278 esac
16279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16280 shlibpath_overrides_runpath=no
16281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16283 hardcode_into_libs=yes
16284 ;;
16285
16286# No shared lib support for Linux oldld, aout, or coff.
16287linux*oldld* | linux*aout* | linux*coff*)
16288 dynamic_linker=no
16289 ;;
16290
16291# This must be Linux ELF.
16292linux*)
16293 version_type=linux
16294 need_lib_prefix=no
16295 need_version=no
16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297 soname_spec='${libname}${release}${shared_ext}$major'
16298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 shlibpath_overrides_runpath=no
16301 # This implies no fast_install, which is unacceptable.
16302 # Some rework will be needed to allow for fast_install
16303 # before this can be enabled.
16304 hardcode_into_libs=yes
16305
16306 # We used to test for /lib/ld.so.1 and disable shared libraries on
16307 # powerpc, because MkLinux only supported shared libraries with the
16308 # GNU dynamic linker. Since this was broken with cross compilers,
16309 # most powerpc-linux boxes support dynamic linking these days and
16310 # people can always --disable-shared, the test was removed, and we
16311 # assume the GNU/Linux dynamic linker is in use.
16312 dynamic_linker='GNU/Linux ld.so'
16313 ;;
16314
16315netbsd*)
16316 version_type=sunos
16317 need_lib_prefix=no
16318 need_version=no
16319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16322 dynamic_linker='NetBSD (a.out) ld.so'
16323 else
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 dynamic_linker='NetBSD ld.elf_so'
16327 fi
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16330 hardcode_into_libs=yes
16331 ;;
16332
16333newsos6)
16334 version_type=linux
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16338 ;;
16339
16340nto-qnx)
16341 version_type=linux
16342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 shlibpath_var=LD_LIBRARY_PATH
16347 shlibpath_overrides_runpath=yes
16348 ;;
16349
16350openbsd*)
16351 version_type=sunos
16352 need_lib_prefix=no
16353 need_version=no
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16358 case $host_os in
16359 openbsd2.[89] | openbsd2.[89].*)
16360 shlibpath_overrides_runpath=no
16361 ;;
16362 *)
16363 shlibpath_overrides_runpath=yes
16364 ;;
16365 esac
16366 else
16367 shlibpath_overrides_runpath=yes
16368 fi
16369 ;;
16370
16371os2*)
16372 libname_spec='$name'
16373 shrext=".dll"
16374 need_lib_prefix=no
16375 library_names_spec='$libname${shared_ext} $libname.a'
16376 dynamic_linker='OS/2 ld.exe'
16377 shlibpath_var=LIBPATH
16378 ;;
16379
16380osf3* | osf4* | osf5*)
16381 version_type=osf
16382 need_lib_prefix=no
16383 need_version=no
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16389 ;;
16390
16391sco3.2v5*)
16392 version_type=osf
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 shlibpath_var=LD_LIBRARY_PATH
16396 ;;
16397
16398solaris*)
16399 version_type=linux
16400 need_lib_prefix=no
16401 need_version=no
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16407 # ldd complains unless libraries are executable
16408 postinstall_cmds='chmod +x $lib'
16409 ;;
16410
16411sunos4*)
16412 version_type=sunos
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=yes
16417 if test "$with_gnu_ld" = yes; then
16418 need_lib_prefix=no
16419 fi
16420 need_version=yes
16421 ;;
16422
16423sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16424 version_type=linux
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 shlibpath_var=LD_LIBRARY_PATH
16428 case $host_vendor in
16429 sni)
16430 shlibpath_overrides_runpath=no
16431 need_lib_prefix=no
16432 export_dynamic_flag_spec='${wl}-Blargedynsym'
16433 runpath_var=LD_RUN_PATH
16434 ;;
16435 siemens)
16436 need_lib_prefix=no
16437 ;;
16438 motorola)
16439 need_lib_prefix=no
16440 need_version=no
16441 shlibpath_overrides_runpath=no
16442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16443 ;;
16444 esac
16445 ;;
16446
16447sysv4*MP*)
16448 if test -d /usr/nec ;then
16449 version_type=linux
16450 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16451 soname_spec='$libname${shared_ext}.$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 fi
16454 ;;
16455
16456uts4*)
16457 version_type=linux
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 ;;
16462
16463*)
16464 dynamic_linker=no
16465 ;;
16466esac
16467echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16468echo "${ECHO_T}$dynamic_linker" >&6
16469test "$dynamic_linker" = no && can_build_shared=no
16470
16471if test "x$enable_dlopen" != xyes; then
16472 enable_dlopen=unknown
16473 enable_dlopen_self=unknown
16474 enable_dlopen_self_static=unknown
16475else
16476 lt_cv_dlopen=no
16477 lt_cv_dlopen_libs=
16478
16479 case $host_os in
16480 beos*)
16481 lt_cv_dlopen="load_add_on"
16482 lt_cv_dlopen_libs=
16483 lt_cv_dlopen_self=yes
16484 ;;
16485
16486 mingw* | pw32*)
16487 lt_cv_dlopen="LoadLibrary"
16488 lt_cv_dlopen_libs=
16489 ;;
16490
16491 cygwin*)
16492 lt_cv_dlopen="dlopen"
16493 lt_cv_dlopen_libs=
16494 ;;
16495
16496 darwin*)
16497 # if libdl is installed we need to link against it
16498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16499echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16500if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502else
16503 ac_check_lib_save_LIBS=$LIBS
16504LIBS="-ldl $LIBS"
16505cat >conftest.$ac_ext <<_ACEOF
16506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016507/* confdefs.h. */
16508_ACEOF
16509cat confdefs.h >>conftest.$ac_ext
16510cat >>conftest.$ac_ext <<_ACEOF
16511/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016512
16513/* Override any gcc2 internal prototype to avoid an error. */
16514#ifdef __cplusplus
16515extern "C"
16516#endif
16517/* We use char because int might match the return type of a gcc2
16518 builtin and then its argument prototype would still apply. */
16519char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016520int
16521main ()
16522{
16523dlopen ();
16524 ;
16525 return 0;
16526}
16527_ACEOF
16528rm -f conftest.$ac_objext conftest$ac_exeext
16529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530 (eval $ac_link) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -s conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_lib_dl_dlopen=yes
16541else
16542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016543sed 's/^/| /' conftest.$ac_ext >&5
16544
John Criswell47fdd832003-07-14 16:52:07 +000016545ac_cv_lib_dl_dlopen=no
16546fi
16547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16548LIBS=$ac_check_lib_save_LIBS
16549fi
16550echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16551echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16552if test $ac_cv_lib_dl_dlopen = yes; then
16553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16554else
16555
16556 lt_cv_dlopen="dyld"
16557 lt_cv_dlopen_libs=
16558 lt_cv_dlopen_self=yes
16559
16560fi
16561
16562 ;;
16563
16564 *)
16565 echo "$as_me:$LINENO: checking for shl_load" >&5
16566echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16567if test "${ac_cv_func_shl_load+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569else
16570 cat >conftest.$ac_ext <<_ACEOF
16571#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016572/* confdefs.h. */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016577/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016578 which can conflict with char shl_load (); below.
16579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16580 <limits.h> exists even on freestanding compilers. */
16581#ifdef __STDC__
16582# include <limits.h>
16583#else
16584# include <assert.h>
16585#endif
John Criswell47fdd832003-07-14 16:52:07 +000016586/* Override any gcc2 internal prototype to avoid an error. */
16587#ifdef __cplusplus
16588extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016589{
John Criswell47fdd832003-07-14 16:52:07 +000016590#endif
16591/* We use char because int might match the return type of a gcc2
16592 builtin and then its argument prototype would still apply. */
16593char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016594/* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597#if defined (__stub_shl_load) || defined (__stub___shl_load)
16598choke me
16599#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016600char (*f) () = shl_load;
16601#endif
16602#ifdef __cplusplus
16603}
John Criswell47fdd832003-07-14 16:52:07 +000016604#endif
16605
John Criswell0c38eaf2003-09-10 15:17:25 +000016606int
16607main ()
16608{
16609return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016610 ;
16611 return 0;
16612}
16613_ACEOF
16614rm -f conftest.$ac_objext conftest$ac_exeext
16615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616 (eval $ac_link) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest$ac_exeext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_func_shl_load=yes
16627else
16628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016629sed 's/^/| /' conftest.$ac_ext >&5
16630
John Criswell47fdd832003-07-14 16:52:07 +000016631ac_cv_func_shl_load=no
16632fi
16633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16634fi
16635echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16636echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16637if test $ac_cv_func_shl_load = yes; then
16638 lt_cv_dlopen="shl_load"
16639else
16640 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16641echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16642if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 ac_check_lib_save_LIBS=$LIBS
16646LIBS="-ldld $LIBS"
16647cat >conftest.$ac_ext <<_ACEOF
16648#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016654
16655/* Override any gcc2 internal prototype to avoid an error. */
16656#ifdef __cplusplus
16657extern "C"
16658#endif
16659/* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16661char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016662int
16663main ()
16664{
16665shl_load ();
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext conftest$ac_exeext
16671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_lib_dld_shl_load=yes
16683else
16684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016685sed 's/^/| /' conftest.$ac_ext >&5
16686
John Criswell47fdd832003-07-14 16:52:07 +000016687ac_cv_lib_dld_shl_load=no
16688fi
16689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690LIBS=$ac_check_lib_save_LIBS
16691fi
16692echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16693echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16694if test $ac_cv_lib_dld_shl_load = yes; then
16695 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16696else
16697 echo "$as_me:$LINENO: checking for dlopen" >&5
16698echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16699if test "${ac_cv_func_dlopen+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701else
16702 cat >conftest.$ac_ext <<_ACEOF
16703#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016704/* confdefs.h. */
16705_ACEOF
16706cat confdefs.h >>conftest.$ac_ext
16707cat >>conftest.$ac_ext <<_ACEOF
16708/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016709/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016710 which can conflict with char dlopen (); below.
16711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16712 <limits.h> exists even on freestanding compilers. */
16713#ifdef __STDC__
16714# include <limits.h>
16715#else
16716# include <assert.h>
16717#endif
John Criswell47fdd832003-07-14 16:52:07 +000016718/* Override any gcc2 internal prototype to avoid an error. */
16719#ifdef __cplusplus
16720extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016721{
John Criswell47fdd832003-07-14 16:52:07 +000016722#endif
16723/* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16725char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016726/* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729#if defined (__stub_dlopen) || defined (__stub___dlopen)
16730choke me
16731#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016732char (*f) () = dlopen;
16733#endif
16734#ifdef __cplusplus
16735}
John Criswell47fdd832003-07-14 16:52:07 +000016736#endif
16737
John Criswell0c38eaf2003-09-10 15:17:25 +000016738int
16739main ()
16740{
16741return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext conftest$ac_exeext
16747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754 (eval $ac_try) 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_func_dlopen=yes
16759else
16760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016761sed 's/^/| /' conftest.$ac_ext >&5
16762
John Criswell47fdd832003-07-14 16:52:07 +000016763ac_cv_func_dlopen=no
16764fi
16765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16766fi
16767echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16768echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16769if test $ac_cv_func_dlopen = yes; then
16770 lt_cv_dlopen="dlopen"
16771else
16772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16773echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16774if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16776else
16777 ac_check_lib_save_LIBS=$LIBS
16778LIBS="-ldl $LIBS"
16779cat >conftest.$ac_ext <<_ACEOF
16780#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016781/* confdefs.h. */
16782_ACEOF
16783cat confdefs.h >>conftest.$ac_ext
16784cat >>conftest.$ac_ext <<_ACEOF
16785/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016786
16787/* Override any gcc2 internal prototype to avoid an error. */
16788#ifdef __cplusplus
16789extern "C"
16790#endif
16791/* We use char because int might match the return type of a gcc2
16792 builtin and then its argument prototype would still apply. */
16793char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016794int
16795main ()
16796{
16797dlopen ();
16798 ;
16799 return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
16803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_dl_dlopen=yes
16815else
16816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016817sed 's/^/| /' conftest.$ac_ext >&5
16818
John Criswell47fdd832003-07-14 16:52:07 +000016819ac_cv_lib_dl_dlopen=no
16820fi
16821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822LIBS=$ac_check_lib_save_LIBS
16823fi
16824echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16825echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16826if test $ac_cv_lib_dl_dlopen = yes; then
16827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16828else
16829 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16830echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16831if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834 ac_check_lib_save_LIBS=$LIBS
16835LIBS="-lsvld $LIBS"
16836cat >conftest.$ac_ext <<_ACEOF
16837#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016838/* confdefs.h. */
16839_ACEOF
16840cat confdefs.h >>conftest.$ac_ext
16841cat >>conftest.$ac_ext <<_ACEOF
16842/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016843
16844/* Override any gcc2 internal prototype to avoid an error. */
16845#ifdef __cplusplus
16846extern "C"
16847#endif
16848/* We use char because int might match the return type of a gcc2
16849 builtin and then its argument prototype would still apply. */
16850char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016851int
16852main ()
16853{
16854dlopen ();
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext conftest$ac_exeext
16860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861 (eval $ac_link) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_lib_svld_dlopen=yes
16872else
16873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016874sed 's/^/| /' conftest.$ac_ext >&5
16875
John Criswell47fdd832003-07-14 16:52:07 +000016876ac_cv_lib_svld_dlopen=no
16877fi
16878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879LIBS=$ac_check_lib_save_LIBS
16880fi
16881echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16882echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16883if test $ac_cv_lib_svld_dlopen = yes; then
16884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16885else
16886 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16887echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16888if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
16891 ac_check_lib_save_LIBS=$LIBS
16892LIBS="-ldld $LIBS"
16893cat >conftest.$ac_ext <<_ACEOF
16894#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016895/* confdefs.h. */
16896_ACEOF
16897cat confdefs.h >>conftest.$ac_ext
16898cat >>conftest.$ac_ext <<_ACEOF
16899/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016900
16901/* Override any gcc2 internal prototype to avoid an error. */
16902#ifdef __cplusplus
16903extern "C"
16904#endif
16905/* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16907char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016908int
16909main ()
16910{
16911dld_link ();
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext conftest$ac_exeext
16917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16918 (eval $ac_link) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_dld_dld_link=yes
16929else
16930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016931sed 's/^/| /' conftest.$ac_ext >&5
16932
John Criswell47fdd832003-07-14 16:52:07 +000016933ac_cv_lib_dld_dld_link=no
16934fi
16935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16936LIBS=$ac_check_lib_save_LIBS
16937fi
16938echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16939echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16940if test $ac_cv_lib_dld_dld_link = yes; then
16941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16942fi
16943
16944
16945fi
16946
16947
16948fi
16949
16950
16951fi
16952
16953
16954fi
16955
16956
16957fi
16958
16959 ;;
16960 esac
16961
16962 if test "x$lt_cv_dlopen" != xno; then
16963 enable_dlopen=yes
16964 else
16965 enable_dlopen=no
16966 fi
16967
16968 case $lt_cv_dlopen in
16969 dlopen)
16970 save_CPPFLAGS="$CPPFLAGS"
16971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16972
16973 save_LDFLAGS="$LDFLAGS"
16974 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16975
16976 save_LIBS="$LIBS"
16977 LIBS="$lt_cv_dlopen_libs $LIBS"
16978
16979 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16980echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16981if test "${lt_cv_dlopen_self+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984 if test "$cross_compiling" = yes; then :
16985 lt_cv_dlopen_self=cross
16986else
16987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16988 lt_status=$lt_dlunknown
16989 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000016990#line 16990 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016991#include "confdefs.h"
16992
16993#if HAVE_DLFCN_H
16994#include <dlfcn.h>
16995#endif
16996
16997#include <stdio.h>
16998
16999#ifdef RTLD_GLOBAL
17000# define LT_DLGLOBAL RTLD_GLOBAL
17001#else
17002# ifdef DL_GLOBAL
17003# define LT_DLGLOBAL DL_GLOBAL
17004# else
17005# define LT_DLGLOBAL 0
17006# endif
17007#endif
17008
17009/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17010 find out it does not work in some platform. */
17011#ifndef LT_DLLAZY_OR_NOW
17012# ifdef RTLD_LAZY
17013# define LT_DLLAZY_OR_NOW RTLD_LAZY
17014# else
17015# ifdef DL_LAZY
17016# define LT_DLLAZY_OR_NOW DL_LAZY
17017# else
17018# ifdef RTLD_NOW
17019# define LT_DLLAZY_OR_NOW RTLD_NOW
17020# else
17021# ifdef DL_NOW
17022# define LT_DLLAZY_OR_NOW DL_NOW
17023# else
17024# define LT_DLLAZY_OR_NOW 0
17025# endif
17026# endif
17027# endif
17028# endif
17029#endif
17030
17031#ifdef __cplusplus
17032extern "C" void exit (int);
17033#endif
17034
17035void fnord() { int i=42;}
17036int main ()
17037{
17038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17039 int status = $lt_dlunknown;
17040
17041 if (self)
17042 {
17043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17044 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17045 /* dlclose (self); */
17046 }
17047
17048 exit (status);
17049}
17050EOF
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17056 (./conftest; exit; ) 2>/dev/null
17057 lt_status=$?
17058 case x$lt_status in
17059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17061 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17062 esac
17063 else :
17064 # compilation failed
17065 lt_cv_dlopen_self=no
17066 fi
17067fi
17068rm -fr conftest*
17069
17070
17071fi
17072echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17074
17075 if test "x$lt_cv_dlopen_self" = xyes; then
17076 LDFLAGS="$LDFLAGS $link_static_flag"
17077 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17079if test "${lt_cv_dlopen_self_static+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082 if test "$cross_compiling" = yes; then :
17083 lt_cv_dlopen_self_static=cross
17084else
17085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17086 lt_status=$lt_dlunknown
17087 cat > conftest.$ac_ext <<EOF
John Criswell8a54a1e2004-06-22 21:35:10 +000017088#line 17088 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017089#include "confdefs.h"
17090
17091#if HAVE_DLFCN_H
17092#include <dlfcn.h>
17093#endif
17094
17095#include <stdio.h>
17096
17097#ifdef RTLD_GLOBAL
17098# define LT_DLGLOBAL RTLD_GLOBAL
17099#else
17100# ifdef DL_GLOBAL
17101# define LT_DLGLOBAL DL_GLOBAL
17102# else
17103# define LT_DLGLOBAL 0
17104# endif
17105#endif
17106
17107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108 find out it does not work in some platform. */
17109#ifndef LT_DLLAZY_OR_NOW
17110# ifdef RTLD_LAZY
17111# define LT_DLLAZY_OR_NOW RTLD_LAZY
17112# else
17113# ifdef DL_LAZY
17114# define LT_DLLAZY_OR_NOW DL_LAZY
17115# else
17116# ifdef RTLD_NOW
17117# define LT_DLLAZY_OR_NOW RTLD_NOW
17118# else
17119# ifdef DL_NOW
17120# define LT_DLLAZY_OR_NOW DL_NOW
17121# else
17122# define LT_DLLAZY_OR_NOW 0
17123# endif
17124# endif
17125# endif
17126# endif
17127#endif
17128
17129#ifdef __cplusplus
17130extern "C" void exit (int);
17131#endif
17132
17133void fnord() { int i=42;}
17134int main ()
17135{
17136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137 int status = $lt_dlunknown;
17138
17139 if (self)
17140 {
17141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143 /* dlclose (self); */
17144 }
17145
17146 exit (status);
17147}
17148EOF
17149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17150 (eval $ac_link) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17154 (./conftest; exit; ) 2>/dev/null
17155 lt_status=$?
17156 case x$lt_status in
17157 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17158 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17160 esac
17161 else :
17162 # compilation failed
17163 lt_cv_dlopen_self_static=no
17164 fi
17165fi
17166rm -fr conftest*
17167
17168
17169fi
17170echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17171echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17172 fi
17173
17174 CPPFLAGS="$save_CPPFLAGS"
17175 LDFLAGS="$save_LDFLAGS"
17176 LIBS="$save_LIBS"
17177 ;;
17178 esac
17179
17180 case $lt_cv_dlopen_self in
17181 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17182 *) enable_dlopen_self=unknown ;;
17183 esac
17184
17185 case $lt_cv_dlopen_self_static in
17186 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17187 *) enable_dlopen_self_static=unknown ;;
17188 esac
17189fi
17190
17191
17192# The else clause should only fire when bootstrapping the
17193# libtool distribution, otherwise you forgot to ship ltmain.sh
17194# with your package, and you will get complaints that there are
17195# no rules to generate ltmain.sh.
17196if test -f "$ltmain"; then
17197 # See if we are running on zsh, and set the options which allow our commands through
17198 # without removal of \ escapes.
17199 if test -n "${ZSH_VERSION+set}" ; then
17200 setopt NO_GLOB_SUBST
17201 fi
17202 # Now quote all the things that may contain metacharacters while being
17203 # careful not to overquote the AC_SUBSTed values. We take copies of the
17204 # variables and quote the copies for generation of the libtool script.
17205 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17208 deplibs_check_method reload_flag reload_cmds need_locks \
17209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17210 lt_cv_sys_global_symbol_to_c_name_address \
17211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17212 old_postinstall_cmds old_postuninstall_cmds \
17213 compiler_GCJ \
17214 CC_GCJ \
17215 LD_GCJ \
17216 lt_prog_compiler_wl_GCJ \
17217 lt_prog_compiler_pic_GCJ \
17218 lt_prog_compiler_static_GCJ \
17219 lt_prog_compiler_no_builtin_flag_GCJ \
17220 export_dynamic_flag_spec_GCJ \
17221 thread_safe_flag_spec_GCJ \
17222 whole_archive_flag_spec_GCJ \
17223 enable_shared_with_static_runtimes_GCJ \
17224 old_archive_cmds_GCJ \
17225 old_archive_from_new_cmds_GCJ \
17226 predep_objects_GCJ \
17227 postdep_objects_GCJ \
17228 predeps_GCJ \
17229 postdeps_GCJ \
17230 compiler_lib_search_path_GCJ \
17231 archive_cmds_GCJ \
17232 archive_expsym_cmds_GCJ \
17233 postinstall_cmds_GCJ \
17234 postuninstall_cmds_GCJ \
17235 old_archive_from_expsyms_cmds_GCJ \
17236 allow_undefined_flag_GCJ \
17237 no_undefined_flag_GCJ \
17238 export_symbols_cmds_GCJ \
17239 hardcode_libdir_flag_spec_GCJ \
17240 hardcode_libdir_flag_spec_ld_GCJ \
17241 hardcode_libdir_separator_GCJ \
17242 hardcode_automatic_GCJ \
17243 module_cmds_GCJ \
17244 module_expsym_cmds_GCJ \
17245 lt_cv_prog_compiler_c_o_GCJ \
17246 exclude_expsyms_GCJ \
17247 include_expsyms_GCJ; do
17248
17249 case $var in
17250 old_archive_cmds_GCJ | \
17251 old_archive_from_new_cmds_GCJ | \
17252 archive_cmds_GCJ | \
17253 archive_expsym_cmds_GCJ | \
17254 module_cmds_GCJ | \
17255 module_expsym_cmds_GCJ | \
17256 old_archive_from_expsyms_cmds_GCJ | \
17257 export_symbols_cmds_GCJ | \
17258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17259 postinstall_cmds | postuninstall_cmds | \
17260 old_postinstall_cmds | old_postuninstall_cmds | \
17261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17262 # Double-quote double-evaled strings.
17263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17264 ;;
17265 *)
17266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17267 ;;
17268 esac
17269 done
17270
17271 case $lt_echo in
17272 *'\$0 --fallback-echo"')
17273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17274 ;;
17275 esac
17276
17277cfgfile="$ofile"
17278
17279 cat <<__EOF__ >> "$cfgfile"
17280# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17281
17282# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17283
17284# Shell to use when invoking shell scripts.
17285SHELL=$lt_SHELL
17286
17287# Whether or not to build shared libraries.
17288build_libtool_libs=$enable_shared
17289
17290# Whether or not to build static libraries.
17291build_old_libs=$enable_static
17292
17293# Whether or not to add -lc for building shared libraries.
17294build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17295
17296# Whether or not to disallow shared libs when runtime libs are static
17297allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17298
17299# Whether or not to optimize for fast installation.
17300fast_install=$enable_fast_install
17301
17302# The host system.
17303host_alias=$host_alias
17304host=$host
17305
17306# An echo program that does not interpret backslashes.
17307echo=$lt_echo
17308
17309# The archiver.
17310AR=$lt_AR
17311AR_FLAGS=$lt_AR_FLAGS
17312
17313# A C compiler.
17314LTCC=$lt_LTCC
17315
17316# A language-specific compiler.
17317CC=$lt_compiler_GCJ
17318
17319# Is the compiler the GNU C compiler?
17320with_gcc=$GCC_GCJ
17321
17322# An ERE matcher.
17323EGREP=$lt_EGREP
17324
17325# The linker used to build libraries.
17326LD=$lt_LD_GCJ
17327
17328# Whether we need hard or soft links.
17329LN_S=$lt_LN_S
17330
17331# A BSD-compatible nm program.
17332NM=$lt_NM
17333
17334# A symbol stripping program
17335STRIP=$STRIP
17336
17337# Used to examine libraries when file_magic_cmd begins "file"
17338MAGIC_CMD=$MAGIC_CMD
17339
17340# Used on cygwin: DLL creation program.
17341DLLTOOL="$DLLTOOL"
17342
17343# Used on cygwin: object dumper.
17344OBJDUMP="$OBJDUMP"
17345
17346# Used on cygwin: assembler.
17347AS="$AS"
17348
17349# The name of the directory that contains temporary libtool files.
17350objdir=$objdir
17351
17352# How to create reloadable object files.
17353reload_flag=$lt_reload_flag
17354reload_cmds=$lt_reload_cmds
17355
17356# How to pass a linker flag through the compiler.
17357wl=$lt_lt_prog_compiler_wl_GCJ
17358
17359# Object file suffix (normally "o").
17360objext="$ac_objext"
17361
17362# Old archive suffix (normally "a").
17363libext="$libext"
17364
17365# Shared library suffix (normally ".so").
17366shrext='$shrext'
17367
17368# Executable file suffix (normally "").
17369exeext="$exeext"
17370
17371# Additional compiler flags for building library objects.
17372pic_flag=$lt_lt_prog_compiler_pic_GCJ
17373pic_mode=$pic_mode
17374
17375# What is the maximum length of a command?
17376max_cmd_len=$lt_cv_sys_max_cmd_len
17377
17378# Does compiler simultaneously support -c and -o options?
17379compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17380
17381# Must we lock files when doing compilation ?
17382need_locks=$lt_need_locks
17383
17384# Do we need the lib prefix for modules?
17385need_lib_prefix=$need_lib_prefix
17386
17387# Do we need a version for libraries?
17388need_version=$need_version
17389
17390# Whether dlopen is supported.
17391dlopen_support=$enable_dlopen
17392
17393# Whether dlopen of programs is supported.
17394dlopen_self=$enable_dlopen_self
17395
17396# Whether dlopen of statically linked programs is supported.
17397dlopen_self_static=$enable_dlopen_self_static
17398
17399# Compiler flag to prevent dynamic linking.
17400link_static_flag=$lt_lt_prog_compiler_static_GCJ
17401
17402# Compiler flag to turn off builtin functions.
17403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17404
17405# Compiler flag to allow reflexive dlopens.
17406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17407
17408# Compiler flag to generate shared objects directly from archives.
17409whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17410
17411# Compiler flag to generate thread-safe objects.
17412thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17413
17414# Library versioning type.
17415version_type=$version_type
17416
17417# Format of library name prefix.
17418libname_spec=$lt_libname_spec
17419
17420# List of archive names. First name is the real one, the rest are links.
17421# The last name is the one that the linker finds with -lNAME.
17422library_names_spec=$lt_library_names_spec
17423
17424# The coded name of the library, if different from the real name.
17425soname_spec=$lt_soname_spec
17426
17427# Commands used to build and install an old-style archive.
17428RANLIB=$lt_RANLIB
17429old_archive_cmds=$lt_old_archive_cmds_GCJ
17430old_postinstall_cmds=$lt_old_postinstall_cmds
17431old_postuninstall_cmds=$lt_old_postuninstall_cmds
17432
17433# Create an old-style archive from a shared archive.
17434old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17435
17436# Create a temporary old-style archive to link instead of a shared archive.
17437old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17438
17439# Commands used to build and install a shared archive.
17440archive_cmds=$lt_archive_cmds_GCJ
17441archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17442postinstall_cmds=$lt_postinstall_cmds
17443postuninstall_cmds=$lt_postuninstall_cmds
17444
17445# Commands used to build a loadable module (assumed same as above if empty)
17446module_cmds=$lt_module_cmds_GCJ
17447module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17448
17449# Commands to strip libraries.
17450old_striplib=$lt_old_striplib
17451striplib=$lt_striplib
17452
17453# Dependencies to place before the objects being linked to create a
17454# shared library.
17455predep_objects=$lt_predep_objects_GCJ
17456
17457# Dependencies to place after the objects being linked to create a
17458# shared library.
17459postdep_objects=$lt_postdep_objects_GCJ
17460
17461# Dependencies to place before the objects being linked to create a
17462# shared library.
17463predeps=$lt_predeps_GCJ
17464
17465# Dependencies to place after the objects being linked to create a
17466# shared library.
17467postdeps=$lt_postdeps_GCJ
17468
17469# The library search path used internally by the compiler when linking
17470# a shared library.
17471compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17472
17473# Method to check whether dependent libraries are shared objects.
17474deplibs_check_method=$lt_deplibs_check_method
17475
17476# Command to use when deplibs_check_method == file_magic.
17477file_magic_cmd=$lt_file_magic_cmd
17478
17479# Flag that allows shared libraries with undefined symbols to be built.
17480allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17481
17482# Flag that forces no undefined symbols.
17483no_undefined_flag=$lt_no_undefined_flag_GCJ
17484
17485# Commands used to finish a libtool library installation in a directory.
17486finish_cmds=$lt_finish_cmds
17487
17488# Same as above, but a single script fragment to be evaled but not shown.
17489finish_eval=$lt_finish_eval
17490
17491# Take the output of nm and produce a listing of raw symbols and C names.
17492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17493
17494# Transform the output of nm in a proper C declaration
17495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17496
17497# Transform the output of nm in a C name address pair
17498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17499
17500# This is the shared library runtime path variable.
17501runpath_var=$runpath_var
17502
17503# This is the shared library path variable.
17504shlibpath_var=$shlibpath_var
17505
17506# Is shlibpath searched before the hard-coded library search path?
17507shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17508
17509# How to hardcode a shared library path into an executable.
17510hardcode_action=$hardcode_action_GCJ
17511
17512# Whether we should hardcode library paths into libraries.
17513hardcode_into_libs=$hardcode_into_libs
17514
17515# Flag to hardcode \$libdir into a binary during linking.
17516# This must work even if \$libdir does not exist.
17517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17518
17519# If ld is used when linking, flag to hardcode \$libdir into
17520# a binary during linking. This must work even if \$libdir does
17521# not exist.
17522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17523
17524# Whether we need a single -rpath flag with a separated argument.
17525hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17526
17527# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17528# resulting binary.
17529hardcode_direct=$hardcode_direct_GCJ
17530
17531# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17532# resulting binary.
17533hardcode_minus_L=$hardcode_minus_L_GCJ
17534
17535# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17536# the resulting binary.
17537hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17538
17539# Set to yes if building a shared library automatically hardcodes DIR into the library
17540# and all subsequent libraries and executables linked against it.
17541hardcode_automatic=$hardcode_automatic_GCJ
17542
17543# Variables whose values should be saved in libtool wrapper scripts and
17544# restored at relink time.
17545variables_saved_for_relink="$variables_saved_for_relink"
17546
17547# Whether libtool must link a program against all its dependency libraries.
17548link_all_deplibs=$link_all_deplibs_GCJ
17549
17550# Compile-time system search path for libraries
17551sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17552
17553# Run-time system search path for libraries
17554sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17555
17556# Fix the shell variable \$srcfile for the compiler.
17557fix_srcfile_path="$fix_srcfile_path_GCJ"
17558
17559# Set to yes if exported symbols are required.
17560always_export_symbols=$always_export_symbols_GCJ
17561
17562# The commands to list exported symbols.
17563export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17564
17565# The commands to extract the exported symbol list from a shared archive.
17566extract_expsyms_cmds=$lt_extract_expsyms_cmds
17567
17568# Symbols that should not be listed in the preloaded symbols.
17569exclude_expsyms=$lt_exclude_expsyms_GCJ
17570
17571# Symbols that must always be exported.
17572include_expsyms=$lt_include_expsyms_GCJ
17573
17574# ### END LIBTOOL TAG CONFIG: $tagname
17575
17576__EOF__
17577
17578
17579else
17580 # If there is no Makefile yet, we rely on a make rule to execute
17581 # `config.status --recheck' to rerun these tests and create the
17582 # libtool script then.
17583 test -f Makefile && make "$ltmain"
17584fi
17585
17586
17587ac_ext=c
17588ac_cpp='$CPP $CPPFLAGS'
17589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17591ac_compiler_gnu=$ac_cv_c_compiler_gnu
17592
17593CC="$lt_save_CC"
17594
17595 else
17596 tagname=""
17597 fi
17598 ;;
17599
17600 RC)
17601
17602
17603
17604# Source file extension for RC test sources.
17605ac_ext=rc
17606
17607# Object file extension for compiled RC test sources.
17608objext=o
17609objext_RC=$objext
17610
17611# Code to be used in simple compile tests
17612lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17613
17614# Code to be used in simple link tests
17615lt_simple_link_test_code="$lt_simple_compile_test_code"
17616
17617# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17618
17619# If no C compiler was specified, use CC.
17620LTCC=${LTCC-"$CC"}
17621
17622# Allow CC to be a program name with arguments.
17623compiler=$CC
17624
17625
17626# Allow CC to be a program name with arguments.
17627lt_save_CC="$CC"
17628CC=${RC-"windres"}
17629compiler=$CC
17630compiler_RC=$CC
17631lt_cv_prog_compiler_c_o_RC=yes
17632
17633# The else clause should only fire when bootstrapping the
17634# libtool distribution, otherwise you forgot to ship ltmain.sh
17635# with your package, and you will get complaints that there are
17636# no rules to generate ltmain.sh.
17637if test -f "$ltmain"; then
17638 # See if we are running on zsh, and set the options which allow our commands through
17639 # without removal of \ escapes.
17640 if test -n "${ZSH_VERSION+set}" ; then
17641 setopt NO_GLOB_SUBST
17642 fi
17643 # Now quote all the things that may contain metacharacters while being
17644 # careful not to overquote the AC_SUBSTed values. We take copies of the
17645 # variables and quote the copies for generation of the libtool script.
17646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17649 deplibs_check_method reload_flag reload_cmds need_locks \
17650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17651 lt_cv_sys_global_symbol_to_c_name_address \
17652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17653 old_postinstall_cmds old_postuninstall_cmds \
17654 compiler_RC \
17655 CC_RC \
17656 LD_RC \
17657 lt_prog_compiler_wl_RC \
17658 lt_prog_compiler_pic_RC \
17659 lt_prog_compiler_static_RC \
17660 lt_prog_compiler_no_builtin_flag_RC \
17661 export_dynamic_flag_spec_RC \
17662 thread_safe_flag_spec_RC \
17663 whole_archive_flag_spec_RC \
17664 enable_shared_with_static_runtimes_RC \
17665 old_archive_cmds_RC \
17666 old_archive_from_new_cmds_RC \
17667 predep_objects_RC \
17668 postdep_objects_RC \
17669 predeps_RC \
17670 postdeps_RC \
17671 compiler_lib_search_path_RC \
17672 archive_cmds_RC \
17673 archive_expsym_cmds_RC \
17674 postinstall_cmds_RC \
17675 postuninstall_cmds_RC \
17676 old_archive_from_expsyms_cmds_RC \
17677 allow_undefined_flag_RC \
17678 no_undefined_flag_RC \
17679 export_symbols_cmds_RC \
17680 hardcode_libdir_flag_spec_RC \
17681 hardcode_libdir_flag_spec_ld_RC \
17682 hardcode_libdir_separator_RC \
17683 hardcode_automatic_RC \
17684 module_cmds_RC \
17685 module_expsym_cmds_RC \
17686 lt_cv_prog_compiler_c_o_RC \
17687 exclude_expsyms_RC \
17688 include_expsyms_RC; do
17689
17690 case $var in
17691 old_archive_cmds_RC | \
17692 old_archive_from_new_cmds_RC | \
17693 archive_cmds_RC | \
17694 archive_expsym_cmds_RC | \
17695 module_cmds_RC | \
17696 module_expsym_cmds_RC | \
17697 old_archive_from_expsyms_cmds_RC | \
17698 export_symbols_cmds_RC | \
17699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17700 postinstall_cmds | postuninstall_cmds | \
17701 old_postinstall_cmds | old_postuninstall_cmds | \
17702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17703 # Double-quote double-evaled strings.
17704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17705 ;;
17706 *)
17707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17708 ;;
17709 esac
17710 done
17711
17712 case $lt_echo in
17713 *'\$0 --fallback-echo"')
17714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17715 ;;
17716 esac
17717
17718cfgfile="$ofile"
17719
17720 cat <<__EOF__ >> "$cfgfile"
17721# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17722
17723# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17724
17725# Shell to use when invoking shell scripts.
17726SHELL=$lt_SHELL
17727
17728# Whether or not to build shared libraries.
17729build_libtool_libs=$enable_shared
17730
17731# Whether or not to build static libraries.
17732build_old_libs=$enable_static
17733
17734# Whether or not to add -lc for building shared libraries.
17735build_libtool_need_lc=$archive_cmds_need_lc_RC
17736
17737# Whether or not to disallow shared libs when runtime libs are static
17738allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17739
17740# Whether or not to optimize for fast installation.
17741fast_install=$enable_fast_install
17742
17743# The host system.
17744host_alias=$host_alias
17745host=$host
17746
17747# An echo program that does not interpret backslashes.
17748echo=$lt_echo
17749
17750# The archiver.
17751AR=$lt_AR
17752AR_FLAGS=$lt_AR_FLAGS
17753
17754# A C compiler.
17755LTCC=$lt_LTCC
17756
17757# A language-specific compiler.
17758CC=$lt_compiler_RC
17759
17760# Is the compiler the GNU C compiler?
17761with_gcc=$GCC_RC
17762
17763# An ERE matcher.
17764EGREP=$lt_EGREP
17765
17766# The linker used to build libraries.
17767LD=$lt_LD_RC
17768
17769# Whether we need hard or soft links.
17770LN_S=$lt_LN_S
17771
17772# A BSD-compatible nm program.
17773NM=$lt_NM
17774
17775# A symbol stripping program
17776STRIP=$STRIP
17777
17778# Used to examine libraries when file_magic_cmd begins "file"
17779MAGIC_CMD=$MAGIC_CMD
17780
17781# Used on cygwin: DLL creation program.
17782DLLTOOL="$DLLTOOL"
17783
17784# Used on cygwin: object dumper.
17785OBJDUMP="$OBJDUMP"
17786
17787# Used on cygwin: assembler.
17788AS="$AS"
17789
17790# The name of the directory that contains temporary libtool files.
17791objdir=$objdir
17792
17793# How to create reloadable object files.
17794reload_flag=$lt_reload_flag
17795reload_cmds=$lt_reload_cmds
17796
17797# How to pass a linker flag through the compiler.
17798wl=$lt_lt_prog_compiler_wl_RC
17799
17800# Object file suffix (normally "o").
17801objext="$ac_objext"
17802
17803# Old archive suffix (normally "a").
17804libext="$libext"
17805
17806# Shared library suffix (normally ".so").
17807shrext='$shrext'
17808
17809# Executable file suffix (normally "").
17810exeext="$exeext"
17811
17812# Additional compiler flags for building library objects.
17813pic_flag=$lt_lt_prog_compiler_pic_RC
17814pic_mode=$pic_mode
17815
17816# What is the maximum length of a command?
17817max_cmd_len=$lt_cv_sys_max_cmd_len
17818
17819# Does compiler simultaneously support -c and -o options?
17820compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17821
17822# Must we lock files when doing compilation ?
17823need_locks=$lt_need_locks
17824
17825# Do we need the lib prefix for modules?
17826need_lib_prefix=$need_lib_prefix
17827
17828# Do we need a version for libraries?
17829need_version=$need_version
17830
17831# Whether dlopen is supported.
17832dlopen_support=$enable_dlopen
17833
17834# Whether dlopen of programs is supported.
17835dlopen_self=$enable_dlopen_self
17836
17837# Whether dlopen of statically linked programs is supported.
17838dlopen_self_static=$enable_dlopen_self_static
17839
17840# Compiler flag to prevent dynamic linking.
17841link_static_flag=$lt_lt_prog_compiler_static_RC
17842
17843# Compiler flag to turn off builtin functions.
17844no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17845
17846# Compiler flag to allow reflexive dlopens.
17847export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17848
17849# Compiler flag to generate shared objects directly from archives.
17850whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17851
17852# Compiler flag to generate thread-safe objects.
17853thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17854
17855# Library versioning type.
17856version_type=$version_type
17857
17858# Format of library name prefix.
17859libname_spec=$lt_libname_spec
17860
17861# List of archive names. First name is the real one, the rest are links.
17862# The last name is the one that the linker finds with -lNAME.
17863library_names_spec=$lt_library_names_spec
17864
17865# The coded name of the library, if different from the real name.
17866soname_spec=$lt_soname_spec
17867
17868# Commands used to build and install an old-style archive.
17869RANLIB=$lt_RANLIB
17870old_archive_cmds=$lt_old_archive_cmds_RC
17871old_postinstall_cmds=$lt_old_postinstall_cmds
17872old_postuninstall_cmds=$lt_old_postuninstall_cmds
17873
17874# Create an old-style archive from a shared archive.
17875old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17876
17877# Create a temporary old-style archive to link instead of a shared archive.
17878old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17879
17880# Commands used to build and install a shared archive.
17881archive_cmds=$lt_archive_cmds_RC
17882archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17883postinstall_cmds=$lt_postinstall_cmds
17884postuninstall_cmds=$lt_postuninstall_cmds
17885
17886# Commands used to build a loadable module (assumed same as above if empty)
17887module_cmds=$lt_module_cmds_RC
17888module_expsym_cmds=$lt_module_expsym_cmds_RC
17889
17890# Commands to strip libraries.
17891old_striplib=$lt_old_striplib
17892striplib=$lt_striplib
17893
17894# Dependencies to place before the objects being linked to create a
17895# shared library.
17896predep_objects=$lt_predep_objects_RC
17897
17898# Dependencies to place after the objects being linked to create a
17899# shared library.
17900postdep_objects=$lt_postdep_objects_RC
17901
17902# Dependencies to place before the objects being linked to create a
17903# shared library.
17904predeps=$lt_predeps_RC
17905
17906# Dependencies to place after the objects being linked to create a
17907# shared library.
17908postdeps=$lt_postdeps_RC
17909
17910# The library search path used internally by the compiler when linking
17911# a shared library.
17912compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17913
17914# Method to check whether dependent libraries are shared objects.
17915deplibs_check_method=$lt_deplibs_check_method
17916
17917# Command to use when deplibs_check_method == file_magic.
17918file_magic_cmd=$lt_file_magic_cmd
17919
17920# Flag that allows shared libraries with undefined symbols to be built.
17921allow_undefined_flag=$lt_allow_undefined_flag_RC
17922
17923# Flag that forces no undefined symbols.
17924no_undefined_flag=$lt_no_undefined_flag_RC
17925
17926# Commands used to finish a libtool library installation in a directory.
17927finish_cmds=$lt_finish_cmds
17928
17929# Same as above, but a single script fragment to be evaled but not shown.
17930finish_eval=$lt_finish_eval
17931
17932# Take the output of nm and produce a listing of raw symbols and C names.
17933global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17934
17935# Transform the output of nm in a proper C declaration
17936global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17937
17938# Transform the output of nm in a C name address pair
17939global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17940
17941# This is the shared library runtime path variable.
17942runpath_var=$runpath_var
17943
17944# This is the shared library path variable.
17945shlibpath_var=$shlibpath_var
17946
17947# Is shlibpath searched before the hard-coded library search path?
17948shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17949
17950# How to hardcode a shared library path into an executable.
17951hardcode_action=$hardcode_action_RC
17952
17953# Whether we should hardcode library paths into libraries.
17954hardcode_into_libs=$hardcode_into_libs
17955
17956# Flag to hardcode \$libdir into a binary during linking.
17957# This must work even if \$libdir does not exist.
17958hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17959
17960# If ld is used when linking, flag to hardcode \$libdir into
17961# a binary during linking. This must work even if \$libdir does
17962# not exist.
17963hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17964
17965# Whether we need a single -rpath flag with a separated argument.
17966hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17967
17968# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17969# resulting binary.
17970hardcode_direct=$hardcode_direct_RC
17971
17972# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17973# resulting binary.
17974hardcode_minus_L=$hardcode_minus_L_RC
17975
17976# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17977# the resulting binary.
17978hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17979
17980# Set to yes if building a shared library automatically hardcodes DIR into the library
17981# and all subsequent libraries and executables linked against it.
17982hardcode_automatic=$hardcode_automatic_RC
17983
17984# Variables whose values should be saved in libtool wrapper scripts and
17985# restored at relink time.
17986variables_saved_for_relink="$variables_saved_for_relink"
17987
17988# Whether libtool must link a program against all its dependency libraries.
17989link_all_deplibs=$link_all_deplibs_RC
17990
17991# Compile-time system search path for libraries
17992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17993
17994# Run-time system search path for libraries
17995sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17996
17997# Fix the shell variable \$srcfile for the compiler.
17998fix_srcfile_path="$fix_srcfile_path_RC"
17999
18000# Set to yes if exported symbols are required.
18001always_export_symbols=$always_export_symbols_RC
18002
18003# The commands to list exported symbols.
18004export_symbols_cmds=$lt_export_symbols_cmds_RC
18005
18006# The commands to extract the exported symbol list from a shared archive.
18007extract_expsyms_cmds=$lt_extract_expsyms_cmds
18008
18009# Symbols that should not be listed in the preloaded symbols.
18010exclude_expsyms=$lt_exclude_expsyms_RC
18011
18012# Symbols that must always be exported.
18013include_expsyms=$lt_include_expsyms_RC
18014
18015# ### END LIBTOOL TAG CONFIG: $tagname
18016
18017__EOF__
18018
18019
18020else
18021 # If there is no Makefile yet, we rely on a make rule to execute
18022 # `config.status --recheck' to rerun these tests and create the
18023 # libtool script then.
18024 test -f Makefile && make "$ltmain"
18025fi
18026
18027
18028ac_ext=c
18029ac_cpp='$CPP $CPPFLAGS'
18030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032ac_compiler_gnu=$ac_cv_c_compiler_gnu
18033
18034CC="$lt_save_CC"
18035
18036 ;;
18037
18038 *)
18039 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18040echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18041 { (exit 1); exit 1; }; }
18042 ;;
18043 esac
18044
18045 # Append the new tag name to the list of available tags.
18046 if test -n "$tagname" ; then
18047 available_tags="$available_tags $tagname"
18048 fi
18049 fi
18050 done
18051 IFS="$lt_save_ifs"
18052
18053 # Now substitute the updated list of available tags.
18054 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18055 mv "${ofile}T" "$ofile"
18056 chmod +x "$ofile"
18057 else
18058 rm -f "${ofile}T"
18059 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18060echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18061 { (exit 1); exit 1; }; }
18062 fi
18063fi
John Criswell7a73b802003-06-30 21:59:07 +000018064
18065
18066
18067# This can be used to rebuild libtool when needed
18068LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18069
18070# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018071LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018072
18073# Prevent multiple expansion
18074
18075
18076
John Criswell47fdd832003-07-14 16:52:07 +000018077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
John Criswell7a73b802003-06-30 21:59:07 +000018095# Extract the first word of "dot", so it can be a program name with args.
18096set dummy dot; ac_word=$2
18097echo "$as_me:$LINENO: checking for $ac_word" >&5
18098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18099if test "${ac_cv_path_DOT+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18101else
18102 case $DOT in
18103 [\\/]* | ?:[\\/]*)
18104 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18105 ;;
18106 *)
18107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18108for as_dir in $PATH
18109do
18110 IFS=$as_save_IFS
18111 test -z "$as_dir" && as_dir=.
18112 for ac_exec_ext in '' $ac_executable_extensions; do
18113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18114 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18116 break 2
18117 fi
18118done
18119done
18120
Brian Gaeke26be9c52004-01-13 06:43:16 +000018121 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018122 ;;
18123esac
18124fi
18125DOT=$ac_cv_path_DOT
18126
18127if test -n "$DOT"; then
18128 echo "$as_me:$LINENO: result: $DOT" >&5
18129echo "${ECHO_T}$DOT" >&6
18130else
18131 echo "$as_me:$LINENO: result: no" >&5
18132echo "${ECHO_T}no" >&6
18133fi
18134
18135# Extract the first word of "etags", so it can be a program name with args.
18136set dummy etags; ac_word=$2
18137echo "$as_me:$LINENO: checking for $ac_word" >&5
18138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18139if test "${ac_cv_path_ETAGS+set}" = set; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18141else
18142 case $ETAGS in
18143 [\\/]* | ?:[\\/]*)
18144 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18145 ;;
18146 *)
18147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18148for as_dir in $PATH
18149do
18150 IFS=$as_save_IFS
18151 test -z "$as_dir" && as_dir=.
18152 for ac_exec_ext in '' $ac_executable_extensions; do
18153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18154 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18156 break 2
18157 fi
18158done
18159done
18160
Brian Gaeke26be9c52004-01-13 06:43:16 +000018161 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018162 ;;
18163esac
18164fi
18165ETAGS=$ac_cv_path_ETAGS
18166
18167if test -n "$ETAGS"; then
18168 echo "$as_me:$LINENO: result: $ETAGS" >&5
18169echo "${ECHO_T}$ETAGS" >&6
18170else
18171 echo "$as_me:$LINENO: result: no" >&5
18172echo "${ECHO_T}no" >&6
18173fi
18174
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018175etags_version=`$ETAGS --version 2>&1`
18176case "$etags_version" in
18177 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18178 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18179 *) ETAGSFLAGS="" ;;
18180esac
18181ETAGSFLAGS=$ETAGSFLAGS
18182
John Criswellde00db22003-08-25 16:49:54 +000018183# Extract the first word of "python", so it can be a program name with args.
18184set dummy python; ac_word=$2
18185echo "$as_me:$LINENO: checking for $ac_word" >&5
18186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18187if test "${ac_cv_path_PYTHON+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189else
18190 case $PYTHON in
18191 [\\/]* | ?:[\\/]*)
18192 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18193 ;;
18194 *)
18195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196for as_dir in $PATH
18197do
18198 IFS=$as_save_IFS
18199 test -z "$as_dir" && as_dir=.
18200 for ac_exec_ext in '' $ac_executable_extensions; do
18201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18202 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18204 break 2
18205 fi
18206done
18207done
18208
Brian Gaeke26be9c52004-01-13 06:43:16 +000018209 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018210 ;;
18211esac
18212fi
18213PYTHON=$ac_cv_path_PYTHON
18214
18215if test -n "$PYTHON"; then
18216 echo "$as_me:$LINENO: result: $PYTHON" >&5
18217echo "${ECHO_T}$PYTHON" >&6
18218else
18219 echo "$as_me:$LINENO: result: no" >&5
18220echo "${ECHO_T}no" >&6
18221fi
18222
Brian Gaeke26be9c52004-01-13 06:43:16 +000018223if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018224then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018225 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18226echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018227fi
John Criswellde00db22003-08-25 16:49:54 +000018228# Extract the first word of "qmtest", so it can be a program name with args.
18229set dummy qmtest; ac_word=$2
18230echo "$as_me:$LINENO: checking for $ac_word" >&5
18231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18232if test "${ac_cv_path_QMTEST+set}" = set; then
18233 echo $ECHO_N "(cached) $ECHO_C" >&6
18234else
18235 case $QMTEST in
18236 [\\/]* | ?:[\\/]*)
18237 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18238 ;;
18239 *)
18240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18241for as_dir in $PATH
18242do
18243 IFS=$as_save_IFS
18244 test -z "$as_dir" && as_dir=.
18245 for ac_exec_ext in '' $ac_executable_extensions; do
18246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18247 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18249 break 2
18250 fi
18251done
18252done
18253
Brian Gaeke26be9c52004-01-13 06:43:16 +000018254 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018255 ;;
18256esac
18257fi
18258QMTEST=$ac_cv_path_QMTEST
18259
18260if test -n "$QMTEST"; then
18261 echo "$as_me:$LINENO: result: $QMTEST" >&5
18262echo "${ECHO_T}$QMTEST" >&6
18263else
18264 echo "$as_me:$LINENO: result: no" >&5
18265echo "${ECHO_T}no" >&6
18266fi
18267
Brian Gaeke26be9c52004-01-13 06:43:16 +000018268if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018269then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018270 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18271echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018272fi
John Criswellde00db22003-08-25 16:49:54 +000018273
18274pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18275pymajor=`echo $pyversion | cut -d. -f1`
18276pyminor=`echo $pyversion | cut -d. -f2`
18277
18278if test "$pymajor" -ge "2"
18279then
18280 if test "$pymajor" -eq "2"
18281 then
18282 if test "$pyminor" -lt "2"
18283 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018284 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18285echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018286 fi
18287 fi
18288else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018289 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18290echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018291fi
John Criswell7a73b802003-06-30 21:59:07 +000018292
18293
18294
18295
John Criswell7a73b802003-06-30 21:59:07 +000018296echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18297echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18298if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300else
18301 ac_check_lib_save_LIBS=$LIBS
18302LIBS="-lelf $LIBS"
18303cat >conftest.$ac_ext <<_ACEOF
18304#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018305/* confdefs.h. */
18306_ACEOF
18307cat confdefs.h >>conftest.$ac_ext
18308cat >>conftest.$ac_ext <<_ACEOF
18309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018310
18311/* Override any gcc2 internal prototype to avoid an error. */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315/* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18317char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018318int
18319main ()
18320{
18321elf_begin ();
18322 ;
18323 return 0;
18324}
18325_ACEOF
18326rm -f conftest.$ac_objext conftest$ac_exeext
18327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18328 (eval $ac_link) 2>&5
18329 ac_status=$?
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); } &&
18332 { ac_try='test -s conftest$ac_exeext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 ac_cv_lib_elf_elf_begin=yes
18339else
18340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018341sed 's/^/| /' conftest.$ac_ext >&5
18342
John Criswell7a73b802003-06-30 21:59:07 +000018343ac_cv_lib_elf_elf_begin=no
18344fi
18345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18346LIBS=$ac_check_lib_save_LIBS
18347fi
18348echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18349echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18350if test $ac_cv_lib_elf_elf_begin = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352#define HAVE_LIBELF 1
18353_ACEOF
18354
18355 LIBS="-lelf $LIBS"
18356
18357fi
18358
18359
18360echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18361echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18362if test "${ac_cv_search_dlopen+set}" = set; then
18363 echo $ECHO_N "(cached) $ECHO_C" >&6
18364else
18365 ac_func_search_save_LIBS=$LIBS
18366ac_cv_search_dlopen=no
18367cat >conftest.$ac_ext <<_ACEOF
18368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018374
18375/* Override any gcc2 internal prototype to avoid an error. */
18376#ifdef __cplusplus
18377extern "C"
18378#endif
18379/* We use char because int might match the return type of a gcc2
18380 builtin and then its argument prototype would still apply. */
18381char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018382int
18383main ()
18384{
18385dlopen ();
18386 ;
18387 return 0;
18388}
18389_ACEOF
18390rm -f conftest.$ac_objext conftest$ac_exeext
18391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18392 (eval $ac_link) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } &&
18396 { ac_try='test -s conftest$ac_exeext'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_cv_search_dlopen="none required"
18403else
18404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018405sed 's/^/| /' conftest.$ac_ext >&5
18406
John Criswell7a73b802003-06-30 21:59:07 +000018407fi
18408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18409if test "$ac_cv_search_dlopen" = no; then
18410 for ac_lib in dl; do
18411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18412 cat >conftest.$ac_ext <<_ACEOF
18413#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018419
18420/* Override any gcc2 internal prototype to avoid an error. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424/* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18426char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018427int
18428main ()
18429{
18430dlopen ();
18431 ;
18432 return 0;
18433}
18434_ACEOF
18435rm -f conftest.$ac_objext conftest$ac_exeext
18436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -s conftest$ac_exeext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_search_dlopen="-l$ac_lib"
18448break
18449else
18450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018451sed 's/^/| /' conftest.$ac_ext >&5
18452
John Criswell7a73b802003-06-30 21:59:07 +000018453fi
18454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18455 done
18456fi
18457LIBS=$ac_func_search_save_LIBS
18458fi
18459echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18460echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18461if test "$ac_cv_search_dlopen" != no; then
18462 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018463
18464cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018465#define HAVE_DLOPEN 1
18466_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018467
18468else
Brian Gaekec45be042003-10-07 06:01:34 +000018469 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18470echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018471fi
18472
18473
18474echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18475echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18476if test "${ac_cv_search_mallinfo+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18478else
18479 ac_func_search_save_LIBS=$LIBS
18480ac_cv_search_mallinfo=no
18481cat >conftest.$ac_ext <<_ACEOF
18482#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018483/* confdefs.h. */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018488
18489/* Override any gcc2 internal prototype to avoid an error. */
18490#ifdef __cplusplus
18491extern "C"
18492#endif
18493/* We use char because int might match the return type of a gcc2
18494 builtin and then its argument prototype would still apply. */
18495char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018496int
18497main ()
18498{
18499mallinfo ();
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext conftest$ac_exeext
18505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506 (eval $ac_link) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_cv_search_mallinfo="none required"
18517else
18518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018519sed 's/^/| /' conftest.$ac_ext >&5
18520
John Criswell7a73b802003-06-30 21:59:07 +000018521fi
18522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18523if test "$ac_cv_search_mallinfo" = no; then
18524 for ac_lib in malloc; do
18525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18526 cat >conftest.$ac_ext <<_ACEOF
18527#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018528/* confdefs.h. */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018533
18534/* Override any gcc2 internal prototype to avoid an error. */
18535#ifdef __cplusplus
18536extern "C"
18537#endif
18538/* We use char because int might match the return type of a gcc2
18539 builtin and then its argument prototype would still apply. */
18540char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018541int
18542main ()
18543{
18544mallinfo ();
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext conftest$ac_exeext
18550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18551 (eval $ac_link) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_search_mallinfo="-l$ac_lib"
18562break
18563else
18564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018565sed 's/^/| /' conftest.$ac_ext >&5
18566
John Criswell7a73b802003-06-30 21:59:07 +000018567fi
18568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18569 done
18570fi
18571LIBS=$ac_func_search_save_LIBS
18572fi
18573echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18574echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18575if test "$ac_cv_search_mallinfo" != no; then
18576 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018577
18578cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018579#define HAVE_MALLINFO 1
18580_ACEOF
18581
18582fi
18583
18584
Brian Gaeke5f268f72003-12-05 19:29:01 +000018585echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18586echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18587if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590 ac_func_search_save_LIBS=$LIBS
18591ac_cv_search_pthread_mutex_lock=no
18592cat >conftest.$ac_ext <<_ACEOF
18593#line $LINENO "configure"
18594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
18599
18600/* Override any gcc2 internal prototype to avoid an error. */
18601#ifdef __cplusplus
18602extern "C"
18603#endif
18604/* We use char because int might match the return type of a gcc2
18605 builtin and then its argument prototype would still apply. */
18606char pthread_mutex_lock ();
18607int
18608main ()
18609{
18610pthread_mutex_lock ();
18611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext conftest$ac_exeext
18616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18617 (eval $ac_link) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_search_pthread_mutex_lock="none required"
18628else
18629 echo "$as_me: failed program was:" >&5
18630sed 's/^/| /' conftest.$ac_ext >&5
18631
18632fi
18633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18634if test "$ac_cv_search_pthread_mutex_lock" = no; then
18635 for ac_lib in pthread; do
18636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18637 cat >conftest.$ac_ext <<_ACEOF
18638#line $LINENO "configure"
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
18643/* end confdefs.h. */
18644
18645/* Override any gcc2 internal prototype to avoid an error. */
18646#ifdef __cplusplus
18647extern "C"
18648#endif
18649/* We use char because int might match the return type of a gcc2
18650 builtin and then its argument prototype would still apply. */
18651char pthread_mutex_lock ();
18652int
18653main ()
18654{
18655pthread_mutex_lock ();
18656 ;
18657 return 0;
18658}
18659_ACEOF
18660rm -f conftest.$ac_objext conftest$ac_exeext
18661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18662 (eval $ac_link) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
18666 { ac_try='test -s conftest$ac_exeext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18673break
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678fi
18679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18680 done
18681fi
18682LIBS=$ac_func_search_save_LIBS
18683fi
18684echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18685echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18686if test "$ac_cv_search_pthread_mutex_lock" != no; then
18687 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000018688 HAVE_PTHREAD_MUTEX_LOCK=1
18689else
18690 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000018691fi
18692
18693
Brian Gaekec9a410c2004-02-23 21:30:37 +000018694
John Criswell7a73b802003-06-30 21:59:07 +000018695echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18696echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18697if test "${ac_cv_header_stdc+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700 cat >conftest.$ac_ext <<_ACEOF
18701#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018702/* confdefs.h. */
18703_ACEOF
18704cat confdefs.h >>conftest.$ac_ext
18705cat >>conftest.$ac_ext <<_ACEOF
18706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018707#include <stdlib.h>
18708#include <stdarg.h>
18709#include <string.h>
18710#include <float.h>
18711
John Criswell0c38eaf2003-09-10 15:17:25 +000018712int
18713main ()
18714{
18715
18716 ;
18717 return 0;
18718}
John Criswell7a73b802003-06-30 21:59:07 +000018719_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018720rm -f conftest.$ac_objext
18721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018723 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018725 (exit $ac_status); } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018732 ac_cv_header_stdc=yes
18733else
18734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018735sed 's/^/| /' conftest.$ac_ext >&5
18736
18737ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018738fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018739rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018740
18741if test $ac_cv_header_stdc = yes; then
18742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18743 cat >conftest.$ac_ext <<_ACEOF
18744#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018750#include <string.h>
18751
18752_ACEOF
18753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018754 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018755 :
18756else
18757 ac_cv_header_stdc=no
18758fi
18759rm -f conftest*
18760
18761fi
18762
18763if test $ac_cv_header_stdc = yes; then
18764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18765 cat >conftest.$ac_ext <<_ACEOF
18766#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018772#include <stdlib.h>
18773
18774_ACEOF
18775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018776 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018777 :
18778else
18779 ac_cv_header_stdc=no
18780fi
18781rm -f conftest*
18782
18783fi
18784
18785if test $ac_cv_header_stdc = yes; then
18786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18787 if test "$cross_compiling" = yes; then
18788 :
18789else
18790 cat >conftest.$ac_ext <<_ACEOF
18791#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018792/* confdefs.h. */
18793_ACEOF
18794cat confdefs.h >>conftest.$ac_ext
18795cat >>conftest.$ac_ext <<_ACEOF
18796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018797#include <ctype.h>
18798#if ((' ' & 0x0FF) == 0x020)
18799# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18800# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18801#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018802# define ISLOWER(c) \
18803 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018804 || ('j' <= (c) && (c) <= 'r') \
18805 || ('s' <= (c) && (c) <= 'z'))
18806# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18807#endif
18808
18809#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18810int
18811main ()
18812{
18813 int i;
18814 for (i = 0; i < 256; i++)
18815 if (XOR (islower (i), ISLOWER (i))
18816 || toupper (i) != TOUPPER (i))
18817 exit(2);
18818 exit (0);
18819}
18820_ACEOF
18821rm -f conftest$ac_exeext
18822if { (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); } && { ac_try='./conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 :
18833else
18834 echo "$as_me: program exited with status $ac_status" >&5
18835echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018836sed 's/^/| /' conftest.$ac_ext >&5
18837
John Criswell7a73b802003-06-30 21:59:07 +000018838( exit $ac_status )
18839ac_cv_header_stdc=no
18840fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018841rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018842fi
18843fi
18844fi
18845echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18846echo "${ECHO_T}$ac_cv_header_stdc" >&6
18847if test $ac_cv_header_stdc = yes; then
18848
18849cat >>confdefs.h <<\_ACEOF
18850#define STDC_HEADERS 1
18851_ACEOF
18852
18853fi
18854
18855echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18856echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18857if test "${ac_cv_header_sys_wait_h+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 cat >conftest.$ac_ext <<_ACEOF
18861#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018867#include <sys/types.h>
18868#include <sys/wait.h>
18869#ifndef WEXITSTATUS
18870# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18871#endif
18872#ifndef WIFEXITED
18873# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18874#endif
18875
John Criswell7a73b802003-06-30 21:59:07 +000018876int
18877main ()
18878{
18879 int s;
18880 wait (&s);
18881 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18882 ;
18883 return 0;
18884}
18885_ACEOF
18886rm -f conftest.$ac_objext
18887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888 (eval $ac_compile) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 ac_cv_header_sys_wait_h=yes
18899else
18900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018901sed 's/^/| /' conftest.$ac_ext >&5
18902
John Criswell7a73b802003-06-30 21:59:07 +000018903ac_cv_header_sys_wait_h=no
18904fi
18905rm -f conftest.$ac_objext conftest.$ac_ext
18906fi
18907echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18908echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18909if test $ac_cv_header_sys_wait_h = yes; then
18910
18911cat >>confdefs.h <<\_ACEOF
18912#define HAVE_SYS_WAIT_H 1
18913_ACEOF
18914
18915fi
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
Brian Gaeke26be9c52004-01-13 06:43:16 +000018926
Brian Gaekef5261472004-02-20 06:40:57 +000018927
John Criswellb2815e02004-05-27 20:40:39 +000018928
18929for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
John Criswell7a73b802003-06-30 21:59:07 +000018930do
18931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18932if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo "$as_me:$LINENO: checking for $ac_header" >&5
18934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18935if eval "test \"\${$as_ac_Header+set}\" = set"; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937fi
18938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18940else
18941 # Is the header compilable?
18942echo "$as_me:$LINENO: checking $ac_header usability" >&5
18943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18944cat >conftest.$ac_ext <<_ACEOF
18945#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018951$ac_includes_default
18952#include <$ac_header>
18953_ACEOF
18954rm -f conftest.$ac_objext
18955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18956 (eval $ac_compile) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18967else
18968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018969sed 's/^/| /' conftest.$ac_ext >&5
18970
John Criswell7a73b802003-06-30 21:59:07 +000018971ac_header_compiler=no
18972fi
18973rm -f conftest.$ac_objext conftest.$ac_ext
18974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977# Is the header present?
18978echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980cat >conftest.$ac_ext <<_ACEOF
18981#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018987#include <$ac_header>
18988_ACEOF
18989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018992 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null; then
18997 if test -s conftest.err; then
18998 ac_cpp_err=$ac_c_preproc_warn_flag
18999 else
19000 ac_cpp_err=
19001 fi
19002else
19003 ac_cpp_err=yes
19004fi
19005if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19007else
19008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019009sed 's/^/| /' conftest.$ac_ext >&5
19010
John Criswell7a73b802003-06-30 21:59:07 +000019011 ac_header_preproc=no
19012fi
19013rm -f conftest.err conftest.$ac_ext
19014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017# So? What about this header?
19018case $ac_header_compiler:$ac_header_preproc in
19019 yes:no )
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 (
19025 cat <<\_ASBOX
19026## ------------------------------------ ##
19027## Report this to bug-autoconf@gnu.org. ##
19028## ------------------------------------ ##
19029_ASBOX
19030 ) |
19031 sed "s/^/$as_me: WARNING: /" >&2
19032 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019033 no:yes )
19034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19040 (
19041 cat <<\_ASBOX
19042## ------------------------------------ ##
19043## Report this to bug-autoconf@gnu.org. ##
19044## ------------------------------------ ##
19045_ASBOX
19046 ) |
19047 sed "s/^/$as_me: WARNING: /" >&2
19048 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019049esac
19050echo "$as_me:$LINENO: checking for $ac_header" >&5
19051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19052if eval "test \"\${$as_ac_Header+set}\" = set"; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054else
19055 eval "$as_ac_Header=$ac_header_preproc"
19056fi
19057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19059
19060fi
19061if test `eval echo '${'$as_ac_Header'}'` = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19064_ACEOF
19065
19066fi
19067
19068done
19069
19070
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019071if test "${ac_cv_header_sys_types_h+set}" = set; then
19072 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19073echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19074if test "${ac_cv_header_sys_types_h+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076fi
19077echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19078echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19079else
19080 # Is the header compilable?
19081echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19082echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19083cat >conftest.$ac_ext <<_ACEOF
19084#line $LINENO "configure"
19085/* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
19090$ac_includes_default
19091#include <sys/types.h>
19092_ACEOF
19093rm -f conftest.$ac_objext
19094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19095 (eval $ac_compile) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -s conftest.$ac_objext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_header_compiler=yes
19106else
19107 echo "$as_me: failed program was:" >&5
19108sed 's/^/| /' conftest.$ac_ext >&5
19109
19110ac_header_compiler=no
19111fi
19112rm -f conftest.$ac_objext conftest.$ac_ext
19113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19114echo "${ECHO_T}$ac_header_compiler" >&6
19115
19116# Is the header present?
19117echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19118echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19119cat >conftest.$ac_ext <<_ACEOF
19120#line $LINENO "configure"
19121/* confdefs.h. */
19122_ACEOF
19123cat confdefs.h >>conftest.$ac_ext
19124cat >>conftest.$ac_ext <<_ACEOF
19125/* end confdefs.h. */
19126#include <sys/types.h>
19127_ACEOF
19128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } >/dev/null; then
19136 if test -s conftest.err; then
19137 ac_cpp_err=$ac_c_preproc_warn_flag
19138 else
19139 ac_cpp_err=
19140 fi
19141else
19142 ac_cpp_err=yes
19143fi
19144if test -z "$ac_cpp_err"; then
19145 ac_header_preproc=yes
19146else
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_header_preproc=no
19151fi
19152rm -f conftest.err conftest.$ac_ext
19153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19154echo "${ECHO_T}$ac_header_preproc" >&6
19155
19156# So? What about this header?
19157case $ac_header_compiler:$ac_header_preproc in
19158 yes:no )
19159 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19160echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19162echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19163 (
19164 cat <<\_ASBOX
19165## ------------------------------------ ##
19166## Report this to bug-autoconf@gnu.org. ##
19167## ------------------------------------ ##
19168_ASBOX
19169 ) |
19170 sed "s/^/$as_me: WARNING: /" >&2
19171 ;;
19172 no:yes )
19173 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19174echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19175 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19176echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19177 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19178echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19179 (
19180 cat <<\_ASBOX
19181## ------------------------------------ ##
19182## Report this to bug-autoconf@gnu.org. ##
19183## ------------------------------------ ##
19184_ASBOX
19185 ) |
19186 sed "s/^/$as_me: WARNING: /" >&2
19187 ;;
19188esac
19189echo "$as_me:$LINENO: checking for sys/types.h" >&5
19190echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19191if test "${ac_cv_header_sys_types_h+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193else
19194 ac_cv_header_sys_types_h=$ac_header_preproc
19195fi
19196echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19197echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19198
19199fi
19200if test $ac_cv_header_sys_types_h = yes; then
19201 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19202else
19203 INCLUDE_SYS_TYPES_H=''
19204fi
19205
19206
19207
19208if test "${ac_cv_header_inttypes_h+set}" = set; then
19209 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19210echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19211if test "${ac_cv_header_inttypes_h+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213fi
19214echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19215echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19216else
19217 # Is the header compilable?
19218echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19219echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19220cat >conftest.$ac_ext <<_ACEOF
19221#line $LINENO "configure"
19222/* confdefs.h. */
19223_ACEOF
19224cat confdefs.h >>conftest.$ac_ext
19225cat >>conftest.$ac_ext <<_ACEOF
19226/* end confdefs.h. */
19227$ac_includes_default
19228#include <inttypes.h>
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_header_compiler=yes
19243else
19244 echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
19247ac_header_compiler=no
19248fi
19249rm -f conftest.$ac_objext conftest.$ac_ext
19250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251echo "${ECHO_T}$ac_header_compiler" >&6
19252
19253# Is the header present?
19254echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19255echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19256cat >conftest.$ac_ext <<_ACEOF
19257#line $LINENO "configure"
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263#include <inttypes.h>
19264_ACEOF
19265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } >/dev/null; then
19273 if test -s conftest.err; then
19274 ac_cpp_err=$ac_c_preproc_warn_flag
19275 else
19276 ac_cpp_err=
19277 fi
19278else
19279 ac_cpp_err=yes
19280fi
19281if test -z "$ac_cpp_err"; then
19282 ac_header_preproc=yes
19283else
19284 echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287 ac_header_preproc=no
19288fi
19289rm -f conftest.err conftest.$ac_ext
19290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291echo "${ECHO_T}$ac_header_preproc" >&6
19292
19293# So? What about this header?
19294case $ac_header_compiler:$ac_header_preproc in
19295 yes:no )
19296 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19297echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19299echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19300 (
19301 cat <<\_ASBOX
19302## ------------------------------------ ##
19303## Report this to bug-autoconf@gnu.org. ##
19304## ------------------------------------ ##
19305_ASBOX
19306 ) |
19307 sed "s/^/$as_me: WARNING: /" >&2
19308 ;;
19309 no:yes )
19310 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19311echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19313echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19315echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19316 (
19317 cat <<\_ASBOX
19318## ------------------------------------ ##
19319## Report this to bug-autoconf@gnu.org. ##
19320## ------------------------------------ ##
19321_ASBOX
19322 ) |
19323 sed "s/^/$as_me: WARNING: /" >&2
19324 ;;
19325esac
19326echo "$as_me:$LINENO: checking for inttypes.h" >&5
19327echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19328if test "${ac_cv_header_inttypes_h+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 ac_cv_header_inttypes_h=$ac_header_preproc
19332fi
19333echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19334echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19335
19336fi
19337if test $ac_cv_header_inttypes_h = yes; then
19338 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19339else
19340 INCLUDE_INTTYPES_H=''
19341fi
19342
19343
19344
John Criswell7ed43ad2004-07-19 16:12:29 +000019345if test "${ac_cv_header_stdint_h+set}" = set; then
19346 echo "$as_me:$LINENO: checking for stdint.h" >&5
19347echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19348if test "${ac_cv_header_stdint_h+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350fi
19351echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19352echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19353else
19354 # Is the header compilable?
19355echo "$as_me:$LINENO: checking stdint.h usability" >&5
19356echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19357cat >conftest.$ac_ext <<_ACEOF
19358#line $LINENO "configure"
19359/* confdefs.h. */
19360_ACEOF
19361cat confdefs.h >>conftest.$ac_ext
19362cat >>conftest.$ac_ext <<_ACEOF
19363/* end confdefs.h. */
19364$ac_includes_default
19365#include <stdint.h>
19366_ACEOF
19367rm -f conftest.$ac_objext
19368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -s conftest.$ac_objext'
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_header_compiler=yes
19380else
19381 echo "$as_me: failed program was:" >&5
19382sed 's/^/| /' conftest.$ac_ext >&5
19383
19384ac_header_compiler=no
19385fi
19386rm -f conftest.$ac_objext conftest.$ac_ext
19387echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19388echo "${ECHO_T}$ac_header_compiler" >&6
19389
19390# Is the header present?
19391echo "$as_me:$LINENO: checking stdint.h presence" >&5
19392echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19393cat >conftest.$ac_ext <<_ACEOF
19394#line $LINENO "configure"
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
19400#include <stdint.h>
19401_ACEOF
19402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19404 ac_status=$?
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } >/dev/null; then
19410 if test -s conftest.err; then
19411 ac_cpp_err=$ac_c_preproc_warn_flag
19412 else
19413 ac_cpp_err=
19414 fi
19415else
19416 ac_cpp_err=yes
19417fi
19418if test -z "$ac_cpp_err"; then
19419 ac_header_preproc=yes
19420else
19421 echo "$as_me: failed program was:" >&5
19422sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 ac_header_preproc=no
19425fi
19426rm -f conftest.err conftest.$ac_ext
19427echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19428echo "${ECHO_T}$ac_header_preproc" >&6
19429
19430# So? What about this header?
19431case $ac_header_compiler:$ac_header_preproc in
19432 yes:no )
19433 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19434echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19435 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19436echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19437 (
19438 cat <<\_ASBOX
19439## ------------------------------------ ##
19440## Report this to bug-autoconf@gnu.org. ##
19441## ------------------------------------ ##
19442_ASBOX
19443 ) |
19444 sed "s/^/$as_me: WARNING: /" >&2
19445 ;;
19446 no:yes )
19447 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19448echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19450echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19452echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19453 (
19454 cat <<\_ASBOX
19455## ------------------------------------ ##
19456## Report this to bug-autoconf@gnu.org. ##
19457## ------------------------------------ ##
19458_ASBOX
19459 ) |
19460 sed "s/^/$as_me: WARNING: /" >&2
19461 ;;
19462esac
19463echo "$as_me:$LINENO: checking for stdint.h" >&5
19464echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19465if test "${ac_cv_header_stdint_h+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468 ac_cv_header_stdint_h=$ac_header_preproc
19469fi
19470echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19471echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19472
19473fi
19474if test $ac_cv_header_stdint_h = yes; then
19475 INCLUDE_STDINT_H='#include <stdint.h>'
19476else
19477 INCLUDE_STDINT_H=''
19478fi
19479
19480
19481
19482
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019483
John Criswell7a73b802003-06-30 21:59:07 +000019484echo "$as_me:$LINENO: checking for pid_t" >&5
19485echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19486if test "${ac_cv_type_pid_t+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488else
19489 cat >conftest.$ac_ext <<_ACEOF
19490#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019496$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019497int
19498main ()
19499{
19500if ((pid_t *) 0)
19501 return 0;
19502if (sizeof (pid_t))
19503 return 0;
19504 ;
19505 return 0;
19506}
19507_ACEOF
19508rm -f conftest.$ac_objext
19509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_type_pid_t=yes
19521else
19522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019523sed 's/^/| /' conftest.$ac_ext >&5
19524
John Criswell7a73b802003-06-30 21:59:07 +000019525ac_cv_type_pid_t=no
19526fi
19527rm -f conftest.$ac_objext conftest.$ac_ext
19528fi
19529echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19530echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19531if test $ac_cv_type_pid_t = yes; then
19532 :
19533else
19534
19535cat >>confdefs.h <<_ACEOF
19536#define pid_t int
19537_ACEOF
19538
19539fi
19540
19541echo "$as_me:$LINENO: checking for size_t" >&5
19542echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19543if test "${ac_cv_type_size_t+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
19546 cat >conftest.$ac_ext <<_ACEOF
19547#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019548/* confdefs.h. */
19549_ACEOF
19550cat confdefs.h >>conftest.$ac_ext
19551cat >>conftest.$ac_ext <<_ACEOF
19552/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019553$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019554int
19555main ()
19556{
19557if ((size_t *) 0)
19558 return 0;
19559if (sizeof (size_t))
19560 return 0;
19561 ;
19562 return 0;
19563}
19564_ACEOF
19565rm -f conftest.$ac_objext
19566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567 (eval $ac_compile) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
19571 { ac_try='test -s conftest.$ac_objext'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; }; then
19577 ac_cv_type_size_t=yes
19578else
19579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019580sed 's/^/| /' conftest.$ac_ext >&5
19581
John Criswell7a73b802003-06-30 21:59:07 +000019582ac_cv_type_size_t=no
19583fi
19584rm -f conftest.$ac_objext conftest.$ac_ext
19585fi
19586echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19587echo "${ECHO_T}$ac_cv_type_size_t" >&6
19588if test $ac_cv_type_size_t = yes; then
19589 :
19590else
19591
19592cat >>confdefs.h <<_ACEOF
19593#define size_t unsigned
19594_ACEOF
19595
19596fi
19597
19598echo "$as_me:$LINENO: checking for int64_t" >&5
19599echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19600if test "${ac_cv_type_int64_t+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602else
19603 cat >conftest.$ac_ext <<_ACEOF
19604#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019610$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019611int
19612main ()
19613{
19614if ((int64_t *) 0)
19615 return 0;
19616if (sizeof (int64_t))
19617 return 0;
19618 ;
19619 return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624 (eval $ac_compile) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -s conftest.$ac_objext'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; }; then
19634 ac_cv_type_int64_t=yes
19635else
19636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019637sed 's/^/| /' conftest.$ac_ext >&5
19638
John Criswell7a73b802003-06-30 21:59:07 +000019639ac_cv_type_int64_t=no
19640fi
19641rm -f conftest.$ac_objext conftest.$ac_ext
19642fi
19643echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19644echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19645if test $ac_cv_type_int64_t = yes; then
19646
19647cat >>confdefs.h <<_ACEOF
19648#define HAVE_INT64_T 1
19649_ACEOF
19650
19651
19652else
19653 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19654echo "$as_me: error: Type int64_t required but not found" >&2;}
19655 { (exit 1); exit 1; }; }
19656fi
19657
19658echo "$as_me:$LINENO: checking for uint64_t" >&5
19659echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19660if test "${ac_cv_type_uint64_t+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662else
19663 cat >conftest.$ac_ext <<_ACEOF
19664#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019670$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019671int
19672main ()
19673{
19674if ((uint64_t *) 0)
19675 return 0;
19676if (sizeof (uint64_t))
19677 return 0;
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext
19683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684 (eval $ac_compile) 2>&5
19685 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_cv_type_uint64_t=yes
19695else
19696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019697sed 's/^/| /' conftest.$ac_ext >&5
19698
John Criswell7a73b802003-06-30 21:59:07 +000019699ac_cv_type_uint64_t=no
19700fi
19701rm -f conftest.$ac_objext conftest.$ac_ext
19702fi
19703echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19704echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19705if test $ac_cv_type_uint64_t = yes; then
19706
19707cat >>confdefs.h <<_ACEOF
19708#define HAVE_UINT64_T 1
19709_ACEOF
19710
19711
19712else
19713 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19714echo "$as_me: error: Type uint64_t required but not found" >&2;}
19715 { (exit 1); exit 1; }; }
19716fi
19717
19718echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19719echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19720if test "${ac_cv_header_time+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19722else
19723 cat >conftest.$ac_ext <<_ACEOF
19724#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019725/* confdefs.h. */
19726_ACEOF
19727cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019730#include <sys/types.h>
19731#include <sys/time.h>
19732#include <time.h>
19733
John Criswell7a73b802003-06-30 21:59:07 +000019734int
19735main ()
19736{
19737if ((struct tm *) 0)
19738return 0;
19739 ;
19740 return 0;
19741}
19742_ACEOF
19743rm -f conftest.$ac_objext
19744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_header_time=yes
19756else
19757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019758sed 's/^/| /' conftest.$ac_ext >&5
19759
John Criswell7a73b802003-06-30 21:59:07 +000019760ac_cv_header_time=no
19761fi
19762rm -f conftest.$ac_objext conftest.$ac_ext
19763fi
19764echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19765echo "${ECHO_T}$ac_cv_header_time" >&6
19766if test $ac_cv_header_time = yes; then
19767
19768cat >>confdefs.h <<\_ACEOF
19769#define TIME_WITH_SYS_TIME 1
19770_ACEOF
19771
19772fi
19773
19774echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19775echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19776if test "${ac_cv_struct_tm+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778else
19779 cat >conftest.$ac_ext <<_ACEOF
19780#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019786#include <sys/types.h>
19787#include <time.h>
19788
John Criswell7a73b802003-06-30 21:59:07 +000019789int
19790main ()
19791{
19792struct tm *tp; tp->tm_sec;
19793 ;
19794 return 0;
19795}
19796_ACEOF
19797rm -f conftest.$ac_objext
19798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -s conftest.$ac_objext'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; }; then
19809 ac_cv_struct_tm=time.h
19810else
19811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019812sed 's/^/| /' conftest.$ac_ext >&5
19813
John Criswell7a73b802003-06-30 21:59:07 +000019814ac_cv_struct_tm=sys/time.h
19815fi
19816rm -f conftest.$ac_objext conftest.$ac_ext
19817fi
19818echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19819echo "${ECHO_T}$ac_cv_struct_tm" >&6
19820if test $ac_cv_struct_tm = sys/time.h; then
19821
19822cat >>confdefs.h <<\_ACEOF
19823#define TM_IN_SYS_TIME 1
19824_ACEOF
19825
19826fi
19827
19828
John Criswella0137d32003-10-13 16:22:01 +000019829
19830
19831
19832 ac_ext=c
19833ac_cpp='$CPP $CPPFLAGS'
19834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836ac_compiler_gnu=$ac_cv_c_compiler_gnu
19837
19838 if test "$cross_compiling" = yes; then
19839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19840See \`config.log' for more details." >&5
19841echo "$as_me: error: cannot run test program while cross compiling
19842See \`config.log' for more details." >&2;}
19843 { (exit 1); exit 1; }; }
19844else
19845 cat >conftest.$ac_ext <<_ACEOF
19846#line $LINENO "configure"
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852#include <stdio.h>
19853 #include <stdlib.h>
19854int
19855main ()
19856{
19857
19858 volatile double A, B;
19859 char Buffer[100];
19860 A = 1;
19861 A /= 10.0;
19862 sprintf(Buffer, "%a", A);
19863 B = atof(Buffer);
19864 if (A != B)
19865 return (1);
19866 if (A != 0x1.999999999999ap-4)
19867 return (1);
19868 return (0);
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873rm -f conftest$ac_exeext
19874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19875 (eval $ac_link) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_c_printf_a=yes
19885else
19886 echo "$as_me: program exited with status $ac_status" >&5
19887echo "$as_me: failed program was:" >&5
19888sed 's/^/| /' conftest.$ac_ext >&5
19889
19890( exit $ac_status )
19891ac_c_printf_a=no
19892fi
19893rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19894fi
19895 ac_ext=c
19896ac_cpp='$CPP $CPPFLAGS'
19897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19899ac_compiler_gnu=$ac_cv_c_compiler_gnu
19900
19901 if test "$ac_c_printf_a" = "yes"; then
19902
19903cat >>confdefs.h <<\_ACEOF
19904#define HAVE_PRINTF_A 1
19905_ACEOF
19906
19907 fi
19908
19909
John Criswell0021c312004-02-13 21:57:29 +000019910echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19911echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19912if test "${ac_cv_c_bigendian+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915 # See if sys/param.h defines the BYTE_ORDER macro.
19916cat >conftest.$ac_ext <<_ACEOF
19917#line $LINENO "configure"
19918/* confdefs.h. */
19919_ACEOF
19920cat confdefs.h >>conftest.$ac_ext
19921cat >>conftest.$ac_ext <<_ACEOF
19922/* end confdefs.h. */
19923#include <sys/types.h>
19924#include <sys/param.h>
19925
19926int
19927main ()
19928{
19929#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19930 bogus endian macros
19931#endif
19932
19933 ;
19934 return 0;
19935}
19936_ACEOF
19937rm -f conftest.$ac_objext
19938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19939 (eval $ac_compile) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } &&
19943 { ac_try='test -s conftest.$ac_objext'
19944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945 (eval $ac_try) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); }; }; then
19949 # It does; now see whether it defined to BIG_ENDIAN or not.
19950cat >conftest.$ac_ext <<_ACEOF
19951#line $LINENO "configure"
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957#include <sys/types.h>
19958#include <sys/param.h>
19959
19960int
19961main ()
19962{
19963#if BYTE_ORDER != BIG_ENDIAN
19964 not big endian
19965#endif
19966
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext
19972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973 (eval $ac_compile) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -s conftest.$ac_objext'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 ac_cv_c_bigendian=yes
19984else
19985 echo "$as_me: failed program was:" >&5
19986sed 's/^/| /' conftest.$ac_ext >&5
19987
19988ac_cv_c_bigendian=no
19989fi
19990rm -f conftest.$ac_objext conftest.$ac_ext
19991else
19992 echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995# It does not; compile a test program.
19996if test "$cross_compiling" = yes; then
19997 # try to guess the endianness by grepping values into an object file
19998 ac_cv_c_bigendian=unknown
19999 cat >conftest.$ac_ext <<_ACEOF
20000#line $LINENO "configure"
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
20006short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20007short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20008void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20009short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20010short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20011void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20012int
20013main ()
20014{
20015 _ascii (); _ebcdic ();
20016 ;
20017 return 0;
20018}
20019_ACEOF
20020rm -f conftest.$ac_objext
20021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>&5
20023 ac_status=$?
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try='test -s conftest.$ac_objext'
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20029 ac_status=$?
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20033 ac_cv_c_bigendian=yes
20034fi
20035if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20036 if test "$ac_cv_c_bigendian" = unknown; then
20037 ac_cv_c_bigendian=no
20038 else
20039 # finding both strings is unlikely to happen, but who knows?
20040 ac_cv_c_bigendian=unknown
20041 fi
20042fi
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047fi
20048rm -f conftest.$ac_objext conftest.$ac_ext
20049else
20050 cat >conftest.$ac_ext <<_ACEOF
20051#line $LINENO "configure"
20052/* confdefs.h. */
20053_ACEOF
20054cat confdefs.h >>conftest.$ac_ext
20055cat >>conftest.$ac_ext <<_ACEOF
20056/* end confdefs.h. */
20057int
20058main ()
20059{
20060 /* Are we little or big endian? From Harbison&Steele. */
20061 union
20062 {
20063 long l;
20064 char c[sizeof (long)];
20065 } u;
20066 u.l = 1;
20067 exit (u.c[sizeof (long) - 1] == 1);
20068}
20069_ACEOF
20070rm -f conftest$ac_exeext
20071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20072 (eval $ac_link) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; }; then
20081 ac_cv_c_bigendian=no
20082else
20083 echo "$as_me: program exited with status $ac_status" >&5
20084echo "$as_me: failed program was:" >&5
20085sed 's/^/| /' conftest.$ac_ext >&5
20086
20087( exit $ac_status )
20088ac_cv_c_bigendian=yes
20089fi
20090rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20091fi
20092fi
20093rm -f conftest.$ac_objext conftest.$ac_ext
20094fi
20095echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20096echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20097case $ac_cv_c_bigendian in
20098 yes)
20099 ENDIAN=big
20100 ;;
20101 no)
20102 ENDIAN=little
20103 ;;
20104 *)
20105 { { echo "$as_me:$LINENO: error: unknown endianness
20106presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20107echo "$as_me: error: unknown endianness
20108presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20109 { (exit 1); exit 1; }; } ;;
20110esac
20111
20112
John Criswell7a73b802003-06-30 21:59:07 +000020113echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20114echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20115if test "${ac_cv_cxx_namespaces+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117else
20118
20119
20120 ac_ext=cc
20121ac_cpp='$CXXCPP $CPPFLAGS'
20122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20125
20126 cat >conftest.$ac_ext <<_ACEOF
20127#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020133namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020134int
20135main ()
20136{
20137using namespace Outer::Inner; return i;
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } &&
20148 { ac_try='test -s conftest.$ac_objext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_cxx_namespaces=yes
20155else
20156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020157sed 's/^/| /' conftest.$ac_ext >&5
20158
John Criswell7a73b802003-06-30 21:59:07 +000020159ac_cv_cxx_namespaces=no
20160fi
20161rm -f conftest.$ac_objext conftest.$ac_ext
20162 ac_ext=c
20163ac_cpp='$CPP $CPPFLAGS'
20164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20166ac_compiler_gnu=$ac_cv_c_compiler_gnu
20167
20168
20169fi
20170echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20171echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20172if test "$ac_cv_cxx_namespaces" = yes; then
20173
20174cat >>confdefs.h <<\_ACEOF
20175#define HAVE_NAMESPACES
20176_ACEOF
20177
20178fi
20179
Brian Gaeke90583492003-11-10 03:06:28 +000020180echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20181echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20182if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184else
20185
20186
20187
20188 ac_ext=cc
20189ac_cpp='$CXXCPP $CPPFLAGS'
20190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20193
20194 cat >conftest.$ac_ext <<_ACEOF
20195#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020201#include <ext/hash_map>
20202#ifdef HAVE_NAMESPACES
20203using namespace std;
20204#endif
John Criswell7a73b802003-06-30 21:59:07 +000020205int
20206main ()
20207{
Brian Gaeke90583492003-11-10 03:06:28 +000020208hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020209 ;
20210 return 0;
20211}
20212_ACEOF
20213rm -f conftest.$ac_objext
20214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } &&
20219 { ac_try='test -s conftest.$ac_objext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020225 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020226else
20227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020228sed 's/^/| /' conftest.$ac_ext >&5
20229
Brian Gaeke90583492003-11-10 03:06:28 +000020230ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020231fi
20232rm -f conftest.$ac_objext conftest.$ac_ext
20233 ac_ext=c
20234ac_cpp='$CPP $CPPFLAGS'
20235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20237ac_compiler_gnu=$ac_cv_c_compiler_gnu
20238
John Criswell7a73b802003-06-30 21:59:07 +000020239fi
Brian Gaeke90583492003-11-10 03:06:28 +000020240echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20241echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020242 HAVE_STD_EXT_HASH_MAP=0
20243 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20244 then
20245 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020246 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020247
Brian Gaeke90583492003-11-10 03:06:28 +000020248 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20249echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20250if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252else
20253
20254
20255
20256 ac_ext=cc
20257ac_cpp='$CXXCPP $CPPFLAGS'
20258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20261
20262 cat >conftest.$ac_ext <<_ACEOF
20263#line $LINENO "configure"
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
20269#include <ext/hash_map>
20270#ifdef HAVE_NAMESPACES
20271using namespace __gnu_cxx;
20272#endif
20273int
20274main ()
20275{
20276hash_map<int,int> t;
20277 ;
20278 return 0;
20279}
20280_ACEOF
20281rm -f conftest.$ac_objext
20282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20283 (eval $ac_compile) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_cxx_have_gnu_ext_hash_map=yes
20294else
20295 echo "$as_me: failed program was:" >&5
20296sed 's/^/| /' conftest.$ac_ext >&5
20297
20298ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020299fi
Brian Gaeke90583492003-11-10 03:06:28 +000020300rm -f conftest.$ac_objext conftest.$ac_ext
20301 ac_ext=c
20302ac_cpp='$CPP $CPPFLAGS'
20303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20305ac_compiler_gnu=$ac_cv_c_compiler_gnu
20306
20307fi
20308echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20309echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020310 HAVE_GNU_EXT_HASH_MAP=0
20311 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20312 then
20313 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020314 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020315
Brian Gaeke90583492003-11-10 03:06:28 +000020316 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20317echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20318if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320else
John Criswell7a73b802003-06-30 21:59:07 +000020321
Brian Gaeke90583492003-11-10 03:06:28 +000020322
20323
20324 ac_ext=cc
20325ac_cpp='$CXXCPP $CPPFLAGS'
20326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20329
20330 cat >conftest.$ac_ext <<_ACEOF
20331#line $LINENO "configure"
20332/* confdefs.h. */
20333_ACEOF
20334cat confdefs.h >>conftest.$ac_ext
20335cat >>conftest.$ac_ext <<_ACEOF
20336/* end confdefs.h. */
20337#include <hash_map>
20338int
20339main ()
20340{
20341hash_map<int,int> t;
20342 ;
20343 return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext
20347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20348 (eval $ac_compile) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 ac_cv_cxx_have_global_hash_map=yes
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
20363ac_cv_cxx_have_global_hash_map=no
20364fi
20365rm -f conftest.$ac_objext conftest.$ac_ext
20366 ac_ext=c
20367ac_cpp='$CPP $CPPFLAGS'
20368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20370ac_compiler_gnu=$ac_cv_c_compiler_gnu
20371
20372fi
20373echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20374echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020375 HAVE_GLOBAL_HASH_MAP=0
20376 if test "$ac_cv_cxx_have_global_hash_map" = yes
20377 then
20378 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020379 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020380
Brian Gaeke90583492003-11-10 03:06:28 +000020381echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20382echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20383if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020384 echo $ECHO_N "(cached) $ECHO_C" >&6
20385else
20386
20387
20388
20389 ac_ext=cc
20390ac_cpp='$CXXCPP $CPPFLAGS'
20391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20394
20395 cat >conftest.$ac_ext <<_ACEOF
20396#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020397/* confdefs.h. */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020402#include <ext/hash_set>
20403#ifdef HAVE_NAMESPACES
20404using namespace std;
20405#endif
John Criswell7a73b802003-06-30 21:59:07 +000020406int
20407main ()
20408{
Brian Gaeke90583492003-11-10 03:06:28 +000020409hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020410 ;
20411 return 0;
20412}
20413_ACEOF
20414rm -f conftest.$ac_objext
20415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20416 (eval $ac_compile) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -s conftest.$ac_objext'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020426 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020427else
20428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020429sed 's/^/| /' conftest.$ac_ext >&5
20430
Brian Gaeke90583492003-11-10 03:06:28 +000020431ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020432fi
20433rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020434 ac_ext=c
20435ac_cpp='$CPP $CPPFLAGS'
20436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20438ac_compiler_gnu=$ac_cv_c_compiler_gnu
20439
20440fi
20441echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20442echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020443 HAVE_STD_EXT_HASH_SET=0
20444 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20445 then
20446 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020447 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020448
Brian Gaeke90583492003-11-10 03:06:28 +000020449 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20450echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20451if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20453else
20454
20455
20456
20457 ac_ext=cc
20458ac_cpp='$CXXCPP $CPPFLAGS'
20459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20462
John Criswell7a73b802003-06-30 21:59:07 +000020463 cat >conftest.$ac_ext <<_ACEOF
20464#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020465/* confdefs.h. */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020470#include <ext/hash_set>
20471#ifdef HAVE_NAMESPACES
20472using namespace __gnu_cxx;
20473#endif
John Criswell7a73b802003-06-30 21:59:07 +000020474int
20475main ()
20476{
Brian Gaeke90583492003-11-10 03:06:28 +000020477hash_set<int> t;
20478 ;
20479 return 0;
20480}
20481_ACEOF
20482rm -f conftest.$ac_objext
20483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484 (eval $ac_compile) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
20488 { ac_try='test -s conftest.$ac_objext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_cxx_have_gnu_ext_hash_set=yes
20495else
20496 echo "$as_me: failed program was:" >&5
20497sed 's/^/| /' conftest.$ac_ext >&5
20498
20499ac_cv_cxx_have_gnu_ext_hash_set=no
20500fi
20501rm -f conftest.$ac_objext conftest.$ac_ext
20502 ac_ext=c
20503ac_cpp='$CPP $CPPFLAGS'
20504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508fi
20509echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20510echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020511 HAVE_GNU_EXT_HASH_SET=0
20512 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20513 then
20514 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020515 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020516
Brian Gaeke90583492003-11-10 03:06:28 +000020517 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20518echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20519if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522
20523
20524
20525 ac_ext=cc
20526ac_cpp='$CXXCPP $CPPFLAGS'
20527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20530
20531 cat >conftest.$ac_ext <<_ACEOF
20532#line $LINENO "configure"
20533/* confdefs.h. */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h. */
20538#include <hash_set>
20539int
20540main ()
20541{
John Criswell7a73b802003-06-30 21:59:07 +000020542hash_set<int> t; return 0;
20543 ;
20544 return 0;
20545}
20546_ACEOF
20547rm -f conftest.$ac_objext
20548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549 (eval $ac_compile) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } &&
20553 { ac_try='test -s conftest.$ac_objext'
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020559 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020560else
20561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020562sed 's/^/| /' conftest.$ac_ext >&5
20563
Brian Gaeke90583492003-11-10 03:06:28 +000020564ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020565fi
20566rm -f conftest.$ac_objext conftest.$ac_ext
20567 ac_ext=c
20568ac_cpp='$CPP $CPPFLAGS'
20569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20571ac_compiler_gnu=$ac_cv_c_compiler_gnu
20572
John Criswell7a73b802003-06-30 21:59:07 +000020573fi
Brian Gaeke90583492003-11-10 03:06:28 +000020574echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20575echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020576 HAVE_GLOBAL_HASH_SET=0
20577 if test "$ac_cv_cxx_have_global_hash_set" = yes
20578 then
20579 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020580 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020581
John Criswell7a73b802003-06-30 21:59:07 +000020582echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20583echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20584if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586else
20587
20588
20589
20590 ac_ext=cc
20591ac_cpp='$CXXCPP $CPPFLAGS'
20592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20595
20596 cat >conftest.$ac_ext <<_ACEOF
20597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020598/* confdefs.h. */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020603#include <iterator>
20604#ifdef HAVE_NAMESPACES
20605using namespace std;
20606#endif
John Criswell7a73b802003-06-30 21:59:07 +000020607int
20608main ()
20609{
20610iterator<int,int,int> t; return 0;
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 ac_cv_cxx_have_std_iterator=yes
20628else
20629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020630sed 's/^/| /' conftest.$ac_ext >&5
20631
John Criswell7a73b802003-06-30 21:59:07 +000020632ac_cv_cxx_have_std_iterator=no
20633fi
20634rm -f conftest.$ac_objext conftest.$ac_ext
20635 ac_ext=c
20636ac_cpp='$CPP $CPPFLAGS'
20637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642fi
20643echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20644echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020645HAVE_STD_ITERATOR=0
20646if test "$ac_cv_cxx_have_std_iterator" = yes
20647then
20648 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020649fi
20650
20651echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20652echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20653if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655else
20656
20657
20658
20659 ac_ext=cc
20660ac_cpp='$CXXCPP $CPPFLAGS'
20661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20664
20665 cat >conftest.$ac_ext <<_ACEOF
20666#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020667/* confdefs.h. */
20668_ACEOF
20669cat confdefs.h >>conftest.$ac_ext
20670cat >>conftest.$ac_ext <<_ACEOF
20671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020672#include <iterator>
20673#ifdef HAVE_NAMESPACES
20674using namespace std;
20675#endif
John Criswell7a73b802003-06-30 21:59:07 +000020676int
20677main ()
20678{
John Criswellc78022e2003-07-29 19:11:58 +000020679bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020680 ;
20681 return 0;
20682}
20683_ACEOF
20684rm -f conftest.$ac_objext
20685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686 (eval $ac_compile) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_cv_cxx_have_bi_iterator=yes
20697else
20698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020699sed 's/^/| /' conftest.$ac_ext >&5
20700
John Criswell7a73b802003-06-30 21:59:07 +000020701ac_cv_cxx_have_bi_iterator=no
20702fi
20703rm -f conftest.$ac_objext conftest.$ac_ext
20704 ac_ext=c
20705ac_cpp='$CPP $CPPFLAGS'
20706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708ac_compiler_gnu=$ac_cv_c_compiler_gnu
20709
20710
20711fi
20712echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20713echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020714HAVE_BI_ITERATOR=0
20715if test "$ac_cv_cxx_have_bi_iterator" = yes
20716then
20717 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020718fi
20719
20720echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20721echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20722if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20724else
20725
20726
20727
20728 ac_ext=cc
20729ac_cpp='$CXXCPP $CPPFLAGS'
20730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20733
20734 cat >conftest.$ac_ext <<_ACEOF
20735#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020736/* confdefs.h. */
20737_ACEOF
20738cat confdefs.h >>conftest.$ac_ext
20739cat >>conftest.$ac_ext <<_ACEOF
20740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020741#include <iterator>
20742#ifdef HAVE_NAMESPACES
20743using namespace std;
20744#endif
John Criswell7a73b802003-06-30 21:59:07 +000020745int
20746main ()
20747{
John Criswellc78022e2003-07-29 19:11:58 +000020748forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020749 ;
20750 return 0;
20751}
20752_ACEOF
20753rm -f conftest.$ac_objext
20754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20755 (eval $ac_compile) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } &&
20759 { ac_try='test -s conftest.$ac_objext'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 ac_cv_cxx_have_fwd_iterator=yes
20766else
20767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020768sed 's/^/| /' conftest.$ac_ext >&5
20769
John Criswell7a73b802003-06-30 21:59:07 +000020770ac_cv_cxx_have_fwd_iterator=no
20771fi
20772rm -f conftest.$ac_objext conftest.$ac_ext
20773 ac_ext=c
20774ac_cpp='$CPP $CPPFLAGS'
20775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20777ac_compiler_gnu=$ac_cv_c_compiler_gnu
20778
20779
20780fi
20781echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20782echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020783HAVE_FWD_ITERATOR=0
20784if test "$ac_cv_cxx_have_fwd_iterator" = yes
20785then
20786 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020787fi
20788
20789
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020790
20791echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20792echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20793if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795else
20796 ac_ext=cc
20797ac_cpp='$CXXCPP $CPPFLAGS'
20798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20801
20802 cat >conftest.$ac_ext <<_ACEOF
20803#line $LINENO "configure"
20804/* confdefs.h. */
20805_ACEOF
20806cat confdefs.h >>conftest.$ac_ext
20807cat >>conftest.$ac_ext <<_ACEOF
20808/* end confdefs.h. */
20809#include <math.h>
20810 int foo(float f) {return isnan(f);}
20811_ACEOF
20812rm -f conftest.$ac_objext
20813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20814 (eval $ac_compile) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_func_isnan_in_math_h=yes
20825else
20826 echo "$as_me: failed program was:" >&5
20827sed 's/^/| /' conftest.$ac_ext >&5
20828
20829ac_cv_func_isnan_in_math_h=no
20830fi
20831rm -f conftest.$ac_objext conftest.$ac_ext
20832 ac_ext=c
20833ac_cpp='$CPP $CPPFLAGS'
20834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_c_compiler_gnu
20837
20838fi
20839echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20840echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20841 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20842 then
20843
20844cat >>confdefs.h <<\_ACEOF
20845#define HAVE_ISNAN_IN_MATH_H 1
20846_ACEOF
20847
20848 fi
20849echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20850echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20851if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20853else
20854 ac_ext=cc
20855ac_cpp='$CXXCPP $CPPFLAGS'
20856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20859
20860 cat >conftest.$ac_ext <<_ACEOF
20861#line $LINENO "configure"
20862/* confdefs.h. */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h. */
20867#include <cmath>
20868 int foo(float f) {return isnan(f);}
20869_ACEOF
20870rm -f conftest.$ac_objext
20871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20872 (eval $ac_compile) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_cv_func_isnan_in_cmath=yes
20883else
20884 echo "$as_me: failed program was:" >&5
20885sed 's/^/| /' conftest.$ac_ext >&5
20886
20887ac_cv_func_isnan_in_cmath=no
20888fi
20889rm -f conftest.$ac_objext conftest.$ac_ext
20890 ac_ext=c
20891ac_cpp='$CPP $CPPFLAGS'
20892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895
20896fi
20897echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20898echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
20899 if test "$ac_cv_func_isnan_in_cmath" = "yes"
20900 then
20901
20902cat >>confdefs.h <<\_ACEOF
20903#define HAVE_ISNAN_IN_CMATH 1
20904_ACEOF
20905
20906 fi
20907echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20908echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
20909if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20911else
20912 ac_ext=cc
20913ac_cpp='$CXXCPP $CPPFLAGS'
20914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917
20918 cat >conftest.$ac_ext <<_ACEOF
20919#line $LINENO "configure"
20920/* confdefs.h. */
20921_ACEOF
20922cat confdefs.h >>conftest.$ac_ext
20923cat >>conftest.$ac_ext <<_ACEOF
20924/* end confdefs.h. */
20925#include <cmath>
20926 using std::isnan; int foo(float f) {return isnan(f);}
20927_ACEOF
20928rm -f conftest.$ac_objext
20929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -s conftest.$ac_objext'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_func_std_isnan_in_cmath=yes
20941else
20942 echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945ac_cv_func_std_isnan_in_cmath=no
20946fi
20947rm -f conftest.$ac_objext conftest.$ac_ext
20948 ac_ext=c
20949ac_cpp='$CPP $CPPFLAGS'
20950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953
20954fi
20955echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20956echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
20957 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
20958 then
20959
20960cat >>confdefs.h <<\_ACEOF
20961#define HAVE_STD_ISNAN_IN_CMATH 1
20962_ACEOF
20963
20964 fi
20965
20966
Brian Gaeke52a551d2004-07-21 03:14:12 +000020967echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20968echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
20969if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20971else
20972 ac_ext=cc
20973ac_cpp='$CXXCPP $CPPFLAGS'
20974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20977
20978 cat >conftest.$ac_ext <<_ACEOF
20979#line $LINENO "configure"
20980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
20985#include <math.h>
20986 int foo(float f) {return isinf(f);}
20987_ACEOF
20988rm -f conftest.$ac_objext
20989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20990 (eval $ac_compile) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } &&
20994 { ac_try='test -s conftest.$ac_objext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_cv_func_isinf_in_math_h=yes
21001else
21002 echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
21005ac_cv_func_isinf_in_math_h=no
21006fi
21007rm -f conftest.$ac_objext conftest.$ac_ext
21008 ac_ext=c
21009ac_cpp='$CPP $CPPFLAGS'
21010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012ac_compiler_gnu=$ac_cv_c_compiler_gnu
21013
21014fi
21015echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21016echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21017 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21018 then
21019
21020cat >>confdefs.h <<\_ACEOF
21021#define HAVE_ISINF_IN_MATH_H 1
21022_ACEOF
21023
21024 fi
21025echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21026echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21027if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029else
21030 ac_ext=cc
21031ac_cpp='$CXXCPP $CPPFLAGS'
21032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035
21036 cat >conftest.$ac_ext <<_ACEOF
21037#line $LINENO "configure"
21038/* confdefs.h. */
21039_ACEOF
21040cat confdefs.h >>conftest.$ac_ext
21041cat >>conftest.$ac_ext <<_ACEOF
21042/* end confdefs.h. */
21043#include <cmath>
21044 int foo(float f) {return isinf(f);}
21045_ACEOF
21046rm -f conftest.$ac_objext
21047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21048 (eval $ac_compile) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
21052 { ac_try='test -s conftest.$ac_objext'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21055 ac_status=$?
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_func_isinf_in_cmath=yes
21059else
21060 echo "$as_me: failed program was:" >&5
21061sed 's/^/| /' conftest.$ac_ext >&5
21062
21063ac_cv_func_isinf_in_cmath=no
21064fi
21065rm -f conftest.$ac_objext conftest.$ac_ext
21066 ac_ext=c
21067ac_cpp='$CPP $CPPFLAGS'
21068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070ac_compiler_gnu=$ac_cv_c_compiler_gnu
21071
21072fi
21073echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21074echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21075 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21076 then
21077
21078cat >>confdefs.h <<\_ACEOF
21079#define HAVE_ISINF_IN_CMATH 1
21080_ACEOF
21081
21082 fi
21083echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21084echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21085if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21087else
21088 ac_ext=cc
21089ac_cpp='$CXXCPP $CPPFLAGS'
21090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21093
21094 cat >conftest.$ac_ext <<_ACEOF
21095#line $LINENO "configure"
21096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
21101#include <cmath>
21102 using std::isinf; int foo(float f) {return isinf(f);}
21103_ACEOF
21104rm -f conftest.$ac_objext
21105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21106 (eval $ac_compile) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } &&
21110 { ac_try='test -s conftest.$ac_objext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_func_std_isinf_in_cmath=yes
21117else
21118 echo "$as_me: failed program was:" >&5
21119sed 's/^/| /' conftest.$ac_ext >&5
21120
21121ac_cv_func_std_isinf_in_cmath=no
21122fi
21123rm -f conftest.$ac_objext conftest.$ac_ext
21124 ac_ext=c
21125ac_cpp='$CPP $CPPFLAGS'
21126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21128ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129
21130fi
21131echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21132echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21133 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21134 then
21135
21136cat >>confdefs.h <<\_ACEOF
21137#define HAVE_STD_ISINF_IN_CMATH 1
21138_ACEOF
21139
21140 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000021141echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21142echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21143if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145else
21146 ac_ext=cc
21147ac_cpp='$CXXCPP $CPPFLAGS'
21148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21151
21152 cat >conftest.$ac_ext <<_ACEOF
21153#line $LINENO "configure"
21154/* confdefs.h. */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h. */
21159#include <ieeefp.h>
21160 int foo(float f) {return finite(f);}
21161_ACEOF
21162rm -f conftest.$ac_objext
21163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try='test -s conftest.$ac_objext'
21169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170 (eval $ac_try) 2>&5
21171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ac_cv_func_finite_in_ieeefp_h=yes
21175else
21176 echo "$as_me: failed program was:" >&5
21177sed 's/^/| /' conftest.$ac_ext >&5
21178
21179ac_cv_func_finite_in_ieeefp_h=no
21180fi
21181rm -f conftest.$ac_objext conftest.$ac_ext
21182 ac_ext=c
21183ac_cpp='$CPP $CPPFLAGS'
21184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21186ac_compiler_gnu=$ac_cv_c_compiler_gnu
21187
21188fi
21189echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21190echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21191 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21192 then
21193
21194cat >>confdefs.h <<\_ACEOF
21195#define HAVE_FINITE_IN_IEEEFP_H 1
21196_ACEOF
21197
21198 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000021199
21200
John Criswell7a73b802003-06-30 21:59:07 +000021201# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21202# for constant arguments. Useless!
21203echo "$as_me:$LINENO: checking for working alloca.h" >&5
21204echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21205if test "${ac_cv_working_alloca_h+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21207else
21208 cat >conftest.$ac_ext <<_ACEOF
21209#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021210/* confdefs.h. */
21211_ACEOF
21212cat confdefs.h >>conftest.$ac_ext
21213cat >>conftest.$ac_ext <<_ACEOF
21214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021215#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021216int
21217main ()
21218{
21219char *p = (char *) alloca (2 * sizeof (int));
21220 ;
21221 return 0;
21222}
21223_ACEOF
21224rm -f conftest.$ac_objext conftest$ac_exeext
21225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21226 (eval $ac_link) 2>&5
21227 ac_status=$?
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -s conftest$ac_exeext'
21231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; }; then
21236 ac_cv_working_alloca_h=yes
21237else
21238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021239sed 's/^/| /' conftest.$ac_ext >&5
21240
John Criswell7a73b802003-06-30 21:59:07 +000021241ac_cv_working_alloca_h=no
21242fi
21243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21244fi
21245echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21246echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21247if test $ac_cv_working_alloca_h = yes; then
21248
21249cat >>confdefs.h <<\_ACEOF
21250#define HAVE_ALLOCA_H 1
21251_ACEOF
21252
21253fi
21254
21255echo "$as_me:$LINENO: checking for alloca" >&5
21256echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21257if test "${ac_cv_func_alloca_works+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259else
21260 cat >conftest.$ac_ext <<_ACEOF
21261#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021262/* confdefs.h. */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021267#ifdef __GNUC__
21268# define alloca __builtin_alloca
21269#else
21270# ifdef _MSC_VER
21271# include <malloc.h>
21272# define alloca _alloca
21273# else
21274# if HAVE_ALLOCA_H
21275# include <alloca.h>
21276# else
21277# ifdef _AIX
21278 #pragma alloca
21279# else
21280# ifndef alloca /* predefined by HP cc +Olibcalls */
21281char *alloca ();
21282# endif
21283# endif
21284# endif
21285# endif
21286#endif
21287
John Criswell7a73b802003-06-30 21:59:07 +000021288int
21289main ()
21290{
21291char *p = (char *) alloca (1);
21292 ;
21293 return 0;
21294}
21295_ACEOF
21296rm -f conftest.$ac_objext conftest$ac_exeext
21297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298 (eval $ac_link) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } &&
21302 { ac_try='test -s conftest$ac_exeext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
21308 ac_cv_func_alloca_works=yes
21309else
21310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021311sed 's/^/| /' conftest.$ac_ext >&5
21312
John Criswell7a73b802003-06-30 21:59:07 +000021313ac_cv_func_alloca_works=no
21314fi
21315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21316fi
21317echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21318echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21319
21320if test $ac_cv_func_alloca_works = yes; then
21321
21322cat >>confdefs.h <<\_ACEOF
21323#define HAVE_ALLOCA 1
21324_ACEOF
21325
21326else
21327 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21328# that cause trouble. Some versions do not even contain alloca or
21329# contain a buggy version. If you still want to use their alloca,
21330# use ar to extract alloca.o from them instead of compiling alloca.c.
21331
21332ALLOCA=alloca.$ac_objext
21333
21334cat >>confdefs.h <<\_ACEOF
21335#define C_ALLOCA 1
21336_ACEOF
21337
21338
21339echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21340echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21341if test "${ac_cv_os_cray+set}" = set; then
21342 echo $ECHO_N "(cached) $ECHO_C" >&6
21343else
21344 cat >conftest.$ac_ext <<_ACEOF
21345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021346/* confdefs.h. */
21347_ACEOF
21348cat confdefs.h >>conftest.$ac_ext
21349cat >>conftest.$ac_ext <<_ACEOF
21350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021351#if defined(CRAY) && ! defined(CRAY2)
21352webecray
21353#else
21354wenotbecray
21355#endif
21356
21357_ACEOF
21358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021359 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021360 ac_cv_os_cray=yes
21361else
21362 ac_cv_os_cray=no
21363fi
21364rm -f conftest*
21365
21366fi
21367echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21368echo "${ECHO_T}$ac_cv_os_cray" >&6
21369if test $ac_cv_os_cray = yes; then
21370 for ac_func in _getb67 GETB67 getb67; do
21371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21372echo "$as_me:$LINENO: checking for $ac_func" >&5
21373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21374if eval "test \"\${$as_ac_var+set}\" = set"; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377 cat >conftest.$ac_ext <<_ACEOF
21378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021379/* confdefs.h. */
21380_ACEOF
21381cat confdefs.h >>conftest.$ac_ext
21382cat >>conftest.$ac_ext <<_ACEOF
21383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021384/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021385 which can conflict with char $ac_func (); below.
21386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21387 <limits.h> exists even on freestanding compilers. */
21388#ifdef __STDC__
21389# include <limits.h>
21390#else
21391# include <assert.h>
21392#endif
John Criswell7a73b802003-06-30 21:59:07 +000021393/* Override any gcc2 internal prototype to avoid an error. */
21394#ifdef __cplusplus
21395extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021396{
John Criswell7a73b802003-06-30 21:59:07 +000021397#endif
21398/* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21400char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021401/* The GNU C library defines this for functions which it implements
21402 to always fail with ENOSYS. Some functions are actually named
21403 something starting with __ and the normal name is an alias. */
21404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21405choke me
21406#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021407char (*f) () = $ac_func;
21408#endif
21409#ifdef __cplusplus
21410}
John Criswell7a73b802003-06-30 21:59:07 +000021411#endif
21412
John Criswell0c38eaf2003-09-10 15:17:25 +000021413int
21414main ()
21415{
21416return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021417 ;
21418 return 0;
21419}
21420_ACEOF
21421rm -f conftest.$ac_objext conftest$ac_exeext
21422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423 (eval $ac_link) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
21427 { ac_try='test -s conftest$ac_exeext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 eval "$as_ac_var=yes"
21434else
21435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021436sed 's/^/| /' conftest.$ac_ext >&5
21437
John Criswell7a73b802003-06-30 21:59:07 +000021438eval "$as_ac_var=no"
21439fi
21440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21441fi
21442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21444if test `eval echo '${'$as_ac_var'}'` = yes; then
21445
21446cat >>confdefs.h <<_ACEOF
21447#define CRAY_STACKSEG_END $ac_func
21448_ACEOF
21449
21450 break
21451fi
21452
21453 done
21454fi
21455
21456echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21457echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21458if test "${ac_cv_c_stack_direction+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460else
21461 if test "$cross_compiling" = yes; then
21462 ac_cv_c_stack_direction=0
21463else
21464 cat >conftest.$ac_ext <<_ACEOF
21465#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021466/* confdefs.h. */
21467_ACEOF
21468cat confdefs.h >>conftest.$ac_ext
21469cat >>conftest.$ac_ext <<_ACEOF
21470/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021471int
21472find_stack_direction ()
21473{
21474 static char *addr = 0;
21475 auto char dummy;
21476 if (addr == 0)
21477 {
21478 addr = &dummy;
21479 return find_stack_direction ();
21480 }
21481 else
21482 return (&dummy > addr) ? 1 : -1;
21483}
21484
21485int
21486main ()
21487{
21488 exit (find_stack_direction () < 0);
21489}
21490_ACEOF
21491rm -f conftest$ac_exeext
21492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 ac_cv_c_stack_direction=1
21503else
21504 echo "$as_me: program exited with status $ac_status" >&5
21505echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021506sed 's/^/| /' conftest.$ac_ext >&5
21507
John Criswell7a73b802003-06-30 21:59:07 +000021508( exit $ac_status )
21509ac_cv_c_stack_direction=-1
21510fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021511rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021512fi
21513fi
21514echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21515echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21516
21517cat >>confdefs.h <<_ACEOF
21518#define STACK_DIRECTION $ac_cv_c_stack_direction
21519_ACEOF
21520
21521
21522fi
21523
John Criswell7a73b802003-06-30 21:59:07 +000021524
21525
21526for ac_header in stdlib.h unistd.h
21527do
21528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21529if eval "test \"\${$as_ac_Header+set}\" = set"; then
21530 echo "$as_me:$LINENO: checking for $ac_header" >&5
21531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21532if eval "test \"\${$as_ac_Header+set}\" = set"; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21534fi
21535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21537else
21538 # Is the header compilable?
21539echo "$as_me:$LINENO: checking $ac_header usability" >&5
21540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21541cat >conftest.$ac_ext <<_ACEOF
21542#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021543/* confdefs.h. */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021548$ac_includes_default
21549#include <$ac_header>
21550_ACEOF
21551rm -f conftest.$ac_objext
21552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21553 (eval $ac_compile) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } &&
21557 { ac_try='test -s conftest.$ac_objext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_header_compiler=yes
21564else
21565 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021566sed 's/^/| /' conftest.$ac_ext >&5
21567
John Criswell7a73b802003-06-30 21:59:07 +000021568ac_header_compiler=no
21569fi
21570rm -f conftest.$ac_objext conftest.$ac_ext
21571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21572echo "${ECHO_T}$ac_header_compiler" >&6
21573
21574# Is the header present?
21575echo "$as_me:$LINENO: checking $ac_header presence" >&5
21576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21577cat >conftest.$ac_ext <<_ACEOF
21578#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021579/* confdefs.h. */
21580_ACEOF
21581cat confdefs.h >>conftest.$ac_ext
21582cat >>conftest.$ac_ext <<_ACEOF
21583/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021584#include <$ac_header>
21585_ACEOF
21586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21588 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021589 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } >/dev/null; then
21594 if test -s conftest.err; then
21595 ac_cpp_err=$ac_c_preproc_warn_flag
21596 else
21597 ac_cpp_err=
21598 fi
21599else
21600 ac_cpp_err=yes
21601fi
21602if test -z "$ac_cpp_err"; then
21603 ac_header_preproc=yes
21604else
21605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021606sed 's/^/| /' conftest.$ac_ext >&5
21607
John Criswell7a73b802003-06-30 21:59:07 +000021608 ac_header_preproc=no
21609fi
21610rm -f conftest.err conftest.$ac_ext
21611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21612echo "${ECHO_T}$ac_header_preproc" >&6
21613
21614# So? What about this header?
21615case $ac_header_compiler:$ac_header_preproc in
21616 yes:no )
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21621 (
21622 cat <<\_ASBOX
21623## ------------------------------------ ##
21624## Report this to bug-autoconf@gnu.org. ##
21625## ------------------------------------ ##
21626_ASBOX
21627 ) |
21628 sed "s/^/$as_me: WARNING: /" >&2
21629 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021630 no:yes )
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21637 (
21638 cat <<\_ASBOX
21639## ------------------------------------ ##
21640## Report this to bug-autoconf@gnu.org. ##
21641## ------------------------------------ ##
21642_ASBOX
21643 ) |
21644 sed "s/^/$as_me: WARNING: /" >&2
21645 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021646esac
21647echo "$as_me:$LINENO: checking for $ac_header" >&5
21648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21649if eval "test \"\${$as_ac_Header+set}\" = set"; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651else
21652 eval "$as_ac_Header=$ac_header_preproc"
21653fi
21654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21656
21657fi
21658if test `eval echo '${'$as_ac_Header'}'` = yes; then
21659 cat >>confdefs.h <<_ACEOF
21660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21661_ACEOF
21662
21663fi
21664
21665done
21666
21667
21668for ac_func in getpagesize
21669do
21670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21671echo "$as_me:$LINENO: checking for $ac_func" >&5
21672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21673if eval "test \"\${$as_ac_var+set}\" = set"; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675else
21676 cat >conftest.$ac_ext <<_ACEOF
21677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021678/* confdefs.h. */
21679_ACEOF
21680cat confdefs.h >>conftest.$ac_ext
21681cat >>conftest.$ac_ext <<_ACEOF
21682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021683/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021684 which can conflict with char $ac_func (); below.
21685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21686 <limits.h> exists even on freestanding compilers. */
21687#ifdef __STDC__
21688# include <limits.h>
21689#else
21690# include <assert.h>
21691#endif
John Criswell7a73b802003-06-30 21:59:07 +000021692/* Override any gcc2 internal prototype to avoid an error. */
21693#ifdef __cplusplus
21694extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021695{
John Criswell7a73b802003-06-30 21:59:07 +000021696#endif
21697/* We use char because int might match the return type of a gcc2
21698 builtin and then its argument prototype would still apply. */
21699char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021700/* The GNU C library defines this for functions which it implements
21701 to always fail with ENOSYS. Some functions are actually named
21702 something starting with __ and the normal name is an alias. */
21703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21704choke me
21705#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021706char (*f) () = $ac_func;
21707#endif
21708#ifdef __cplusplus
21709}
John Criswell7a73b802003-06-30 21:59:07 +000021710#endif
21711
John Criswell0c38eaf2003-09-10 15:17:25 +000021712int
21713main ()
21714{
21715return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021716 ;
21717 return 0;
21718}
21719_ACEOF
21720rm -f conftest.$ac_objext conftest$ac_exeext
21721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21722 (eval $ac_link) 2>&5
21723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } &&
21726 { ac_try='test -s conftest$ac_exeext'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; }; then
21732 eval "$as_ac_var=yes"
21733else
21734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021735sed 's/^/| /' conftest.$ac_ext >&5
21736
John Criswell7a73b802003-06-30 21:59:07 +000021737eval "$as_ac_var=no"
21738fi
21739rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21740fi
21741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21743if test `eval echo '${'$as_ac_var'}'` = yes; then
21744 cat >>confdefs.h <<_ACEOF
21745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21746_ACEOF
21747
21748fi
21749done
21750
21751echo "$as_me:$LINENO: checking for working mmap" >&5
21752echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21753if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755else
21756 if test "$cross_compiling" = yes; then
21757 ac_cv_func_mmap_fixed_mapped=no
21758else
21759 cat >conftest.$ac_ext <<_ACEOF
21760#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021761/* confdefs.h. */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021766$ac_includes_default
21767/* malloc might have been renamed as rpl_malloc. */
21768#undef malloc
21769
21770/* Thanks to Mike Haertel and Jim Avera for this test.
21771 Here is a matrix of mmap possibilities:
21772 mmap private not fixed
21773 mmap private fixed at somewhere currently unmapped
21774 mmap private fixed at somewhere already mapped
21775 mmap shared not fixed
21776 mmap shared fixed at somewhere currently unmapped
21777 mmap shared fixed at somewhere already mapped
21778 For private mappings, we should verify that changes cannot be read()
21779 back from the file, nor mmap's back from the file at a different
21780 address. (There have been systems where private was not correctly
21781 implemented like the infamous i386 svr4.0, and systems where the
21782 VM page cache was not coherent with the file system buffer cache
21783 like early versions of FreeBSD and possibly contemporary NetBSD.)
21784 For shared mappings, we should conversely verify that changes get
21785 propagated back to all the places they're supposed to be.
21786
21787 Grep wants private fixed already mapped.
21788 The main things grep needs to know about mmap are:
21789 * does it exist and is it safe to write into the mmap'd area
21790 * how to use it (BSD variants) */
21791
21792#include <fcntl.h>
21793#include <sys/mman.h>
21794
21795#if !STDC_HEADERS && !HAVE_STDLIB_H
21796char *malloc ();
21797#endif
21798
21799/* This mess was copied from the GNU getpagesize.h. */
21800#if !HAVE_GETPAGESIZE
21801/* Assume that all systems that can run configure have sys/param.h. */
21802# if !HAVE_SYS_PARAM_H
21803# define HAVE_SYS_PARAM_H 1
21804# endif
21805
21806# ifdef _SC_PAGESIZE
21807# define getpagesize() sysconf(_SC_PAGESIZE)
21808# else /* no _SC_PAGESIZE */
21809# if HAVE_SYS_PARAM_H
21810# include <sys/param.h>
21811# ifdef EXEC_PAGESIZE
21812# define getpagesize() EXEC_PAGESIZE
21813# else /* no EXEC_PAGESIZE */
21814# ifdef NBPG
21815# define getpagesize() NBPG * CLSIZE
21816# ifndef CLSIZE
21817# define CLSIZE 1
21818# endif /* no CLSIZE */
21819# else /* no NBPG */
21820# ifdef NBPC
21821# define getpagesize() NBPC
21822# else /* no NBPC */
21823# ifdef PAGESIZE
21824# define getpagesize() PAGESIZE
21825# endif /* PAGESIZE */
21826# endif /* no NBPC */
21827# endif /* no NBPG */
21828# endif /* no EXEC_PAGESIZE */
21829# else /* no HAVE_SYS_PARAM_H */
21830# define getpagesize() 8192 /* punt totally */
21831# endif /* no HAVE_SYS_PARAM_H */
21832# endif /* no _SC_PAGESIZE */
21833
21834#endif /* no HAVE_GETPAGESIZE */
21835
21836int
21837main ()
21838{
21839 char *data, *data2, *data3;
21840 int i, pagesize;
21841 int fd;
21842
21843 pagesize = getpagesize ();
21844
21845 /* First, make a file with some known garbage in it. */
21846 data = (char *) malloc (pagesize);
21847 if (!data)
21848 exit (1);
21849 for (i = 0; i < pagesize; ++i)
21850 *(data + i) = rand ();
21851 umask (0);
21852 fd = creat ("conftest.mmap", 0600);
21853 if (fd < 0)
21854 exit (1);
21855 if (write (fd, data, pagesize) != pagesize)
21856 exit (1);
21857 close (fd);
21858
21859 /* Next, try to mmap the file at a fixed address which already has
21860 something else allocated at it. If we can, also make sure that
21861 we see the same garbage. */
21862 fd = open ("conftest.mmap", O_RDWR);
21863 if (fd < 0)
21864 exit (1);
21865 data2 = (char *) malloc (2 * pagesize);
21866 if (!data2)
21867 exit (1);
21868 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21869 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21870 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21871 exit (1);
21872 for (i = 0; i < pagesize; ++i)
21873 if (*(data + i) != *(data2 + i))
21874 exit (1);
21875
21876 /* Finally, make sure that changes to the mapped area do not
21877 percolate back to the file as seen by read(). (This is a bug on
21878 some variants of i386 svr4.0.) */
21879 for (i = 0; i < pagesize; ++i)
21880 *(data2 + i) = *(data2 + i) + 1;
21881 data3 = (char *) malloc (pagesize);
21882 if (!data3)
21883 exit (1);
21884 if (read (fd, data3, pagesize) != pagesize)
21885 exit (1);
21886 for (i = 0; i < pagesize; ++i)
21887 if (*(data + i) != *(data3 + i))
21888 exit (1);
21889 close (fd);
21890 exit (0);
21891}
21892_ACEOF
21893rm -f conftest$ac_exeext
21894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21895 (eval $ac_link) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 ac_cv_func_mmap_fixed_mapped=yes
21905else
21906 echo "$as_me: program exited with status $ac_status" >&5
21907echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021908sed 's/^/| /' conftest.$ac_ext >&5
21909
John Criswell7a73b802003-06-30 21:59:07 +000021910( exit $ac_status )
21911ac_cv_func_mmap_fixed_mapped=no
21912fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021913rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021914fi
21915fi
21916echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21917echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21918if test $ac_cv_func_mmap_fixed_mapped = yes; then
21919
21920cat >>confdefs.h <<\_ACEOF
21921#define HAVE_MMAP 1
21922_ACEOF
21923
21924fi
21925rm -f conftest.mmap
21926
Brian Gaeke26be9c52004-01-13 06:43:16 +000021927if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21928then
John Criswellf3ecf3a2004-05-27 00:57:50 +000021929 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21930echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000021931fi
John Criswell7a73b802003-06-30 21:59:07 +000021932echo "$as_me:$LINENO: checking for mmap of files" >&5
21933echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21934if test "${ac_cv_func_mmap_file+set}" = set; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
21936else
21937
21938
21939 ac_ext=c
21940ac_cpp='$CPP $CPPFLAGS'
21941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21943ac_compiler_gnu=$ac_cv_c_compiler_gnu
21944
21945 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021946 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21947See \`config.log' for more details." >&5
21948echo "$as_me: error: cannot run test program while cross compiling
21949See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021950 { (exit 1); exit 1; }; }
21951else
21952 cat >conftest.$ac_ext <<_ACEOF
21953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021954/* confdefs.h. */
21955_ACEOF
21956cat confdefs.h >>conftest.$ac_ext
21957cat >>conftest.$ac_ext <<_ACEOF
21958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021959
John Criswell7a73b802003-06-30 21:59:07 +000021960#ifdef HAVE_SYS_TYPES_H
21961#include <sys/types.h>
21962#endif
21963
John Criswell5ab73462003-10-09 15:44:28 +000021964#ifdef HAVE_SYS_MMAN_H
21965#include <sys/mman.h>
21966#endif
21967
John Criswell7a73b802003-06-30 21:59:07 +000021968#ifdef HAVE_FCNTL_H
21969#include <fcntl.h>
21970#endif
21971
21972 int fd;
21973 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021974 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000021975_ACEOF
21976rm -f conftest$ac_exeext
21977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21978 (eval $ac_link) 2>&5
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; }; then
21987 ac_cv_func_mmap_file=yes
21988else
21989 echo "$as_me: program exited with status $ac_status" >&5
21990echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021991sed 's/^/| /' conftest.$ac_ext >&5
21992
John Criswell7a73b802003-06-30 21:59:07 +000021993( exit $ac_status )
21994ac_cv_func_mmap_file=no
21995fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021996rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021997fi
21998 ac_ext=c
21999ac_cpp='$CPP $CPPFLAGS'
22000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22002ac_compiler_gnu=$ac_cv_c_compiler_gnu
22003
22004
22005fi
22006echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22007echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22008if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022009
22010cat >>confdefs.h <<\_ACEOF
22011#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022012_ACEOF
22013
22014 MMAP_FILE=yes
22015
22016fi
22017
Brian Gaeke26be9c52004-01-13 06:43:16 +000022018if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000022019then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022020 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22021echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022022fi
22023echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22024echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22025if test "${ac_cv_header_mmap_anon+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22027else
22028
22029
22030 ac_ext=c
22031ac_cpp='$CPP $CPPFLAGS'
22032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22034ac_compiler_gnu=$ac_cv_c_compiler_gnu
22035
22036 cat >conftest.$ac_ext <<_ACEOF
22037#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022043#include <sys/mman.h>
22044 #include <unistd.h>
22045 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022046int
22047main ()
22048{
22049mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22050 ;
22051 return 0;
22052}
22053_ACEOF
22054rm -f conftest.$ac_objext
22055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056 (eval $ac_compile) 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
22060 { ac_try='test -s conftest.$ac_objext'
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 ac_cv_header_mmap_anon=yes
22067else
22068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022069sed 's/^/| /' conftest.$ac_ext >&5
22070
John Criswell7a73b802003-06-30 21:59:07 +000022071ac_cv_header_mmap_anon=no
22072fi
22073rm -f conftest.$ac_objext conftest.$ac_ext
22074 ac_ext=c
22075ac_cpp='$CPP $CPPFLAGS'
22076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078ac_compiler_gnu=$ac_cv_c_compiler_gnu
22079
22080
22081fi
22082echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22083echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22084if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022085
22086cat >>confdefs.h <<\_ACEOF
22087#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022088_ACEOF
22089
22090fi
22091
22092echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22093echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22094if test "${ac_cv_type_signal+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097 cat >conftest.$ac_ext <<_ACEOF
22098#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022099/* confdefs.h. */
22100_ACEOF
22101cat confdefs.h >>conftest.$ac_ext
22102cat >>conftest.$ac_ext <<_ACEOF
22103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022104#include <sys/types.h>
22105#include <signal.h>
22106#ifdef signal
22107# undef signal
22108#endif
22109#ifdef __cplusplus
22110extern "C" void (*signal (int, void (*)(int)))(int);
22111#else
22112void (*signal ()) ();
22113#endif
22114
John Criswell7a73b802003-06-30 21:59:07 +000022115int
22116main ()
22117{
22118int i;
22119 ;
22120 return 0;
22121}
22122_ACEOF
22123rm -f conftest.$ac_objext
22124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125 (eval $ac_compile) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); } &&
22129 { ac_try='test -s conftest.$ac_objext'
22130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_type_signal=void
22136else
22137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022138sed 's/^/| /' conftest.$ac_ext >&5
22139
John Criswell7a73b802003-06-30 21:59:07 +000022140ac_cv_type_signal=int
22141fi
22142rm -f conftest.$ac_objext conftest.$ac_ext
22143fi
22144echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22145echo "${ECHO_T}$ac_cv_type_signal" >&6
22146
22147cat >>confdefs.h <<_ACEOF
22148#define RETSIGTYPE $ac_cv_type_signal
22149_ACEOF
22150
22151
22152
22153
22154
22155
22156
Brian Gaekef5261472004-02-20 06:40:57 +000022157
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000022158
John Criswelld6621562004-06-07 14:26:24 +000022159
22160
John Criswell7ed43ad2004-07-19 16:12:29 +000022161for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000022162do
22163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22164echo "$as_me:$LINENO: checking for $ac_func" >&5
22165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22166if eval "test \"\${$as_ac_var+set}\" = set"; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169 cat >conftest.$ac_ext <<_ACEOF
22170#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022176/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022177 which can conflict with char $ac_func (); below.
22178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22179 <limits.h> exists even on freestanding compilers. */
22180#ifdef __STDC__
22181# include <limits.h>
22182#else
22183# include <assert.h>
22184#endif
John Criswell7a73b802003-06-30 21:59:07 +000022185/* Override any gcc2 internal prototype to avoid an error. */
22186#ifdef __cplusplus
22187extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022188{
John Criswell7a73b802003-06-30 21:59:07 +000022189#endif
22190/* We use char because int might match the return type of a gcc2
22191 builtin and then its argument prototype would still apply. */
22192char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022193/* The GNU C library defines this for functions which it implements
22194 to always fail with ENOSYS. Some functions are actually named
22195 something starting with __ and the normal name is an alias. */
22196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22197choke me
22198#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022199char (*f) () = $ac_func;
22200#endif
22201#ifdef __cplusplus
22202}
John Criswell7a73b802003-06-30 21:59:07 +000022203#endif
22204
John Criswell0c38eaf2003-09-10 15:17:25 +000022205int
22206main ()
22207{
22208return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022209 ;
22210 return 0;
22211}
22212_ACEOF
22213rm -f conftest.$ac_objext conftest$ac_exeext
22214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22215 (eval $ac_link) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } &&
22219 { ac_try='test -s conftest$ac_exeext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 eval "$as_ac_var=yes"
22226else
22227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022228sed 's/^/| /' conftest.$ac_ext >&5
22229
John Criswell7a73b802003-06-30 21:59:07 +000022230eval "$as_ac_var=no"
22231fi
22232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22233fi
22234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22236if test `eval echo '${'$as_ac_var'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22239_ACEOF
22240
22241fi
22242done
22243
John Criswell7a73b802003-06-30 21:59:07 +000022244echo "$as_me:$LINENO: checking for mprotect" >&5
22245echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22246if test "${ac_cv_func_mprotect+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248else
22249 cat >conftest.$ac_ext <<_ACEOF
22250#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022251/* confdefs.h. */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022256/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022257 which can conflict with char mprotect (); below.
22258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22259 <limits.h> exists even on freestanding compilers. */
22260#ifdef __STDC__
22261# include <limits.h>
22262#else
22263# include <assert.h>
22264#endif
John Criswell7a73b802003-06-30 21:59:07 +000022265/* Override any gcc2 internal prototype to avoid an error. */
22266#ifdef __cplusplus
22267extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022268{
John Criswell7a73b802003-06-30 21:59:07 +000022269#endif
22270/* We use char because int might match the return type of a gcc2
22271 builtin and then its argument prototype would still apply. */
22272char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022273/* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276#if defined (__stub_mprotect) || defined (__stub___mprotect)
22277choke me
22278#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022279char (*f) () = mprotect;
22280#endif
22281#ifdef __cplusplus
22282}
John Criswell7a73b802003-06-30 21:59:07 +000022283#endif
22284
John Criswell0c38eaf2003-09-10 15:17:25 +000022285int
22286main ()
22287{
22288return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022289 ;
22290 return 0;
22291}
22292_ACEOF
22293rm -f conftest.$ac_objext conftest$ac_exeext
22294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22295 (eval $ac_link) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } &&
22299 { ac_try='test -s conftest$ac_exeext'
22300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22301 (eval $ac_try) 2>&5
22302 ac_status=$?
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); }; }; then
22305 ac_cv_func_mprotect=yes
22306else
22307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022308sed 's/^/| /' conftest.$ac_ext >&5
22309
John Criswell7a73b802003-06-30 21:59:07 +000022310ac_cv_func_mprotect=no
22311fi
22312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22313fi
22314echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22315echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22316if test $ac_cv_func_mprotect = yes; then
22317 :
22318else
22319 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22320echo "$as_me: error: Function mprotect() required but not found" >&2;}
22321 { (exit 1); exit 1; }; }
22322fi
22323
22324
John Criswellb13092b2003-07-22 21:00:24 +000022325
John Criswellcb7a1eb2003-11-17 19:46:02 +000022326
22327
22328 ac_ext=c
22329ac_cpp='$CPP $CPPFLAGS'
22330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
Brian Gaekef91a15c2003-11-18 06:20:41 +000022334 oldcflags="$CFLAGS"
22335 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000022336 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000022337int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000022338_ACEOF
22339rm -f conftest.$ac_objext conftest$ac_exeext
22340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22341 (eval $ac_link) 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } &&
22345 { ac_try='test -s conftest$ac_exeext'
22346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22347 (eval $ac_try) 2>&5
22348 ac_status=$?
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); }; }; then
22351 ac_cv_link_use_r=yes
22352else
22353 echo "$as_me: failed program was:" >&5
22354sed 's/^/| /' conftest.$ac_ext >&5
22355
Brian Gaekef91a15c2003-11-18 06:20:41 +000022356ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000022357fi
22358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000022359 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000022360 ac_ext=c
22361ac_cpp='$CPP $CPPFLAGS'
22362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22364ac_compiler_gnu=$ac_cv_c_compiler_gnu
22365
Brian Gaekef91a15c2003-11-18 06:20:41 +000022366 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000022367 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000022368
22369cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000022370#define HAVE_LINK_R 1
22371_ACEOF
22372
22373 fi
22374
22375
John Criswell7a73b802003-06-30 21:59:07 +000022376# Check whether --enable-optimized or --disable-optimized was given.
22377if test "${enable_optimized+set}" = set; then
22378 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022379
22380else
John Criswellb13092b2003-07-22 21:00:24 +000022381 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022382fi;
John Criswellb13092b2003-07-22 21:00:24 +000022383if test ${enableval} = "no"
22384then
22385 ENABLE_OPTIMIZED=
22386
22387else
22388 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22389
22390fi
22391
John Criswell55126592003-10-07 21:57:39 +000022392
22393
John Criswell55126592003-10-07 21:57:39 +000022394
Brian Gaekee773b862004-04-16 17:13:44 +000022395 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000022396if test "${enable_spec95+set}" = set; then
22397 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000022398 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000022399else
Brian Gaekee773b862004-04-16 17:13:44 +000022400 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000022401fi;
Brian Gaekee773b862004-04-16 17:13:44 +000022402echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22403echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22404case "$checkresult" in
22405auto|yes)
22406 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22407 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000022408 then
Brian Gaekee773b862004-04-16 17:13:44 +000022409 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000022410
22411 USE_SPEC95=USE_SPEC95=1
22412
Brian Gaekee773b862004-04-16 17:13:44 +000022413 checkresult="yes, found in $defaultdir"
22414 else
22415 checkresult=no
22416 fi
22417 ;;
22418no)
John Criswellcf2e9f72004-02-10 22:36:35 +000022419
22420
Brian Gaekee773b862004-04-16 17:13:44 +000022421 checkresult=no
22422 ;;
22423*) if test -d "$checkresult"
22424 then
22425 SPEC95_ROOT="$checkresult"
22426
22427 USE_SPEC95=USE_SPEC95=1
22428
22429 checkresult="yes, in $checkresult"
22430 else
22431
22432
22433 checkresult="no, not found in $checkresult"
22434 fi
22435 ;;
22436esac
22437echo "$as_me:$LINENO: result: $checkresult" >&5
22438echo "${ECHO_T}$checkresult" >&6
22439
22440
22441
22442 # Check whether --enable-spec2000 or --disable-spec2000 was given.
22443if test "${enable_spec2000+set}" = set; then
22444 enableval="$enable_spec2000"
22445 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000022446else
Brian Gaekee773b862004-04-16 17:13:44 +000022447 checkresult=auto
22448fi;
22449echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22450echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22451case "$checkresult" in
22452auto|yes)
22453 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22454 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000022455 then
Brian Gaekee773b862004-04-16 17:13:44 +000022456 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000022457
Brian Gaekee773b862004-04-16 17:13:44 +000022458 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000022459
Brian Gaekee773b862004-04-16 17:13:44 +000022460 checkresult="yes, found in $defaultdir"
22461 else
22462 checkresult=no
22463 fi
22464 ;;
22465no)
John Criswellcf2e9f72004-02-10 22:36:35 +000022466
John Criswellcf2e9f72004-02-10 22:36:35 +000022467
Brian Gaekee773b862004-04-16 17:13:44 +000022468 checkresult=no
22469 ;;
22470*) if test -d "$checkresult"
22471 then
22472 SPEC2000_ROOT="$checkresult"
22473
22474 USE_SPEC2000=USE_SPEC2000=1
22475
22476 checkresult="yes, in $checkresult"
22477 else
22478
22479
22480 checkresult="no, not found in $checkresult"
22481 fi
22482 ;;
22483esac
22484echo "$as_me:$LINENO: result: $checkresult" >&5
22485echo "${ECHO_T}$checkresult" >&6
22486
22487
22488
22489 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000022490if test "${enable_povray+set}" = set; then
22491 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000022492 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000022493else
Brian Gaekee773b862004-04-16 17:13:44 +000022494 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000022495fi;
Brian Gaekee773b862004-04-16 17:13:44 +000022496echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22497echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22498case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000022499auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000022500 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000022501 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000022502 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000022503 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000022504
22505 USE_POVRAY=USE_POVRAY=1
22506
Brian Gaekee773b862004-04-16 17:13:44 +000022507 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022508 else
Brian Gaekee773b862004-04-16 17:13:44 +000022509 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000022510 fi
22511 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000022512no)
John Criswell0538d422004-02-20 22:30:22 +000022513
22514
Brian Gaekee773b862004-04-16 17:13:44 +000022515 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000022516 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000022517*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022518 then
Brian Gaekee773b862004-04-16 17:13:44 +000022519 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000022520
Brian Gaekef66cdf82004-04-13 19:03:49 +000022521 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000022522
Brian Gaekee773b862004-04-16 17:13:44 +000022523 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022524 else
John Criswell0538d422004-02-20 22:30:22 +000022525
John Criswell0538d422004-02-20 22:30:22 +000022526
Brian Gaekee773b862004-04-16 17:13:44 +000022527 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000022528 fi
22529 ;;
22530esac
Brian Gaekee773b862004-04-16 17:13:44 +000022531echo "$as_me:$LINENO: result: $checkresult" >&5
22532echo "${ECHO_T}$checkresult" >&6
22533
22534
John Criswell0538d422004-02-20 22:30:22 +000022535
John Criswell7a73b802003-06-30 21:59:07 +000022536# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22537if test "${enable_precompiled_bytecode+set}" = set; then
22538 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022539
22540else
John Criswellb13092b2003-07-22 21:00:24 +000022541 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022542fi;
John Criswellb13092b2003-07-22 21:00:24 +000022543if test ${enableval} = "no"
22544then
22545 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022546
John Criswellb13092b2003-07-22 21:00:24 +000022547else
22548 UPB=USE_PRECOMPILED_BYTECODE=1
22549
22550fi
John Criswellf02dbf02003-07-22 20:07:49 +000022551
John Criswellf02dbf02003-07-22 20:07:49 +000022552# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22553if test "${enable_llc_diffs+set}" = set; then
22554 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022555
22556else
John Criswellb13092b2003-07-22 21:00:24 +000022557 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022558fi;
John Criswellb13092b2003-07-22 21:00:24 +000022559if test ${enableval} = "no"
22560then
22561 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022562
John Criswellb13092b2003-07-22 21:00:24 +000022563else
22564 DISABLE_LLC_DIFFS=
22565
22566fi
22567
22568# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022569if test "${enable_jit+set}" = set; then
22570 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022571
22572else
John Criswellc78022e2003-07-29 19:11:58 +000022573 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022574fi;
John Criswellb13092b2003-07-22 21:00:24 +000022575if test ${enableval} = "no"
22576then
22577 JIT=
22578
22579else
John Criswellc78022e2003-07-29 19:11:58 +000022580 case $target in
22581 *i*86*)
22582 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022583
John Criswellc78022e2003-07-29 19:11:58 +000022584 ;;
22585 *sparc*)
22586 JIT=TARGET_HAS_JIT=1
22587
22588 ;;
22589 *)
22590 JIT=
22591
22592 ;;
22593 esac
John Criswellb13092b2003-07-22 21:00:24 +000022594fi
John Criswell7a73b802003-06-30 21:59:07 +000022595
22596
John Criswell7a73b802003-06-30 21:59:07 +000022597# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22598if test "${with_llvmgccdir+set}" = set; then
22599 withval="$with_llvmgccdir"
22600 LLVMGCCDIR=$withval
22601
22602fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000022603echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22604echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22605LLVM_GCC_CHECK=no
22606if test -d "$LLVMGCCDIR"
22607then
22608 if test -x "$LLVMGCCDIR/bin/gcc"
22609 then
22610 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22611 fi
22612fi
22613llvmgccwarn=no
22614echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22615echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22616if test "$LLVM_GCC_CHECK" = "no"
22617then
22618 llvmgccwarn=yes
22619fi
Brian Gaekef3b24102003-11-16 18:38:14 +000022620echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22621echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22622LLVM_GCC_SANE=no
22623if test -x "$LLVM_GCC_CHECK"
22624then
22625 cp /dev/null conftest.c
22626 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22627 if test $? -eq 0
22628 then
22629 LLVM_GCC_SANE=yes
22630 fi
22631 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000022632 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000022633 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000022634
22635 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000022636 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000022637
Brian Gaekef3b24102003-11-16 18:38:14 +000022638fi
22639echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22640echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22641if test "$LLVM_GCC_SANE" = "no"
22642then
22643 llvmgccwarn=yes
22644fi
22645
John Criswellc78022e2003-07-29 19:11:58 +000022646
John Criswell7a73b802003-06-30 21:59:07 +000022647# Check whether --with-bcrepos or --without-bcrepos was given.
22648if test "${with_bcrepos+set}" = set; then
22649 withval="$with_bcrepos"
22650 BCR=$withval
22651
22652else
22653 BCR=/home/vadve/lattner/LLVMPrograms
22654
22655fi;
22656
John Criswellc78022e2003-07-29 19:11:58 +000022657
John Criswell7a73b802003-06-30 21:59:07 +000022658# Check whether --with-papi or --without-papi was given.
22659if test "${with_papi+set}" = set; then
22660 withval="$with_papi"
22661 PAPIDIR=$withval
22662
22663else
John Criswellde00db22003-08-25 16:49:54 +000022664 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022665
22666fi;
22667
Brian Gaeke554831c2004-01-21 19:39:29 +000022668echo "$as_me:$LINENO: checking for shared library suffix" >&5
22669echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22670eval "SHLIBEXT=$shrext"
22671echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22672echo "${ECHO_T}$SHLIBEXT" >&6
22673SHLIBEXT=$SHLIBEXT
22674
22675
22676cat >>confdefs.h <<_ACEOF
22677#define SHLIBEXT "$SHLIBEXT"
22678_ACEOF
22679
22680
Brian Gaeke6c3fd812004-02-23 22:07:00 +000022681 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
John Criswell7a73b802003-06-30 21:59:07 +000022682cat >confcache <<\_ACEOF
22683# This file is a shell script that caches the results of configure
22684# tests run on this system so they can be shared between configure
22685# scripts and configure runs, see configure's option --config-cache.
22686# It is not useful on other systems. If it contains results you don't
22687# want to keep, you may remove or edit it.
22688#
22689# config.status only pays attention to the cache file if you give it
22690# the --recheck option to rerun configure.
22691#
John Criswell0c38eaf2003-09-10 15:17:25 +000022692# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022693# loading this file, other *unset* `ac_cv_foo' will be assigned the
22694# following values.
22695
22696_ACEOF
22697
22698# The following way of writing the cache mishandles newlines in values,
22699# but we know of no workaround that is simple, portable, and efficient.
22700# So, don't put newlines in cache variables' values.
22701# Ultrix sh set writes to stderr and can't be redirected directly,
22702# and sets the high bit in the cache file unless we assign to the vars.
22703{
22704 (set) 2>&1 |
22705 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22706 *ac_space=\ *)
22707 # `set' does not quote correctly, so add quotes (double-quote
22708 # substitution turns \\\\ into \\, and sed turns \\ into \).
22709 sed -n \
22710 "s/'/'\\\\''/g;
22711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22712 ;;
22713 *)
22714 # `set' quotes correctly as required by POSIX, so do not add quotes.
22715 sed -n \
22716 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22717 ;;
22718 esac;
22719} |
22720 sed '
22721 t clear
22722 : clear
22723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22724 t end
22725 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22726 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022727if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022728 if test -w $cache_file; then
22729 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22730 cat confcache >$cache_file
22731 else
22732 echo "not updating unwritable cache $cache_file"
22733 fi
22734fi
22735rm -f confcache
22736
22737test "x$prefix" = xNONE && prefix=$ac_default_prefix
22738# Let make expand exec_prefix.
22739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22740
22741# VPATH may cause trouble with some makes, so we remove $(srcdir),
22742# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22743# trailing colons and then remove the whole line if VPATH becomes empty
22744# (actually we leave an empty line to preserve line numbers).
22745if test "x$srcdir" = x.; then
22746 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22747s/:*\$(srcdir):*/:/;
22748s/:*\${srcdir}:*/:/;
22749s/:*@srcdir@:*/:/;
22750s/^\([^=]*=[ ]*\):*/\1/;
22751s/:*$//;
22752s/^[^=]*=[ ]*$//;
22753}'
22754fi
22755
22756DEFS=-DHAVE_CONFIG_H
22757
John Criswell0c38eaf2003-09-10 15:17:25 +000022758ac_libobjs=
22759ac_ltlibobjs=
22760for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22761 # 1. Remove the extension, and $U if already installed.
22762 ac_i=`echo "$ac_i" |
22763 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22764 # 2. Add them.
22765 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22766 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22767done
22768LIBOBJS=$ac_libobjs
22769
22770LTLIBOBJS=$ac_ltlibobjs
22771
22772
John Criswell7a73b802003-06-30 21:59:07 +000022773
22774: ${CONFIG_STATUS=./config.status}
22775ac_clean_files_save=$ac_clean_files
22776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22777{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22778echo "$as_me: creating $CONFIG_STATUS" >&6;}
22779cat >$CONFIG_STATUS <<_ACEOF
22780#! $SHELL
22781# Generated by $as_me.
22782# Run this file to recreate the current configuration.
22783# Compiler output produced by configure, useful for debugging
22784# configure, is in config.log if it exists.
22785
22786debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022787ac_cs_recheck=false
22788ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022789SHELL=\${CONFIG_SHELL-$SHELL}
22790_ACEOF
22791
22792cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022793## --------------------- ##
22794## M4sh Initialization. ##
22795## --------------------- ##
22796
22797# Be Bourne compatible
22798if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22799 emulate sh
22800 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022801 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22802 # is contrary to our usage. Disable this feature.
22803 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022804elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22805 set -o posix
22806fi
22807
John Criswell7a73b802003-06-30 21:59:07 +000022808# Support unset when possible.
22809if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22810 as_unset=unset
22811else
22812 as_unset=false
22813fi
22814
John Criswell0c38eaf2003-09-10 15:17:25 +000022815
22816# Work around bugs in pre-3.0 UWIN ksh.
22817$as_unset ENV MAIL MAILPATH
22818PS1='$ '
22819PS2='> '
22820PS4='+ '
22821
22822# NLS nuisances.
22823for as_var in \
22824 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22825 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22826 LC_TELEPHONE LC_TIME
22827do
22828 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22829 eval $as_var=C; export $as_var
22830 else
22831 $as_unset $as_var
22832 fi
22833done
22834
22835# Required to use basename.
22836if expr a : '\(a\)' >/dev/null 2>&1; then
22837 as_expr=expr
22838else
22839 as_expr=false
22840fi
22841
22842if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22843 as_basename=basename
22844else
22845 as_basename=false
22846fi
John Criswell7a73b802003-06-30 21:59:07 +000022847
22848
22849# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022850as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022851$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22852 X"$0" : 'X\(//\)$' \| \
22853 X"$0" : 'X\(/\)$' \| \
22854 . : '\(.\)' 2>/dev/null ||
22855echo X/"$0" |
22856 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22857 /^X\/\(\/\/\)$/{ s//\1/; q; }
22858 /^X\/\(\/\).*/{ s//\1/; q; }
22859 s/.*/./; q'`
22860
John Criswell0c38eaf2003-09-10 15:17:25 +000022861
John Criswell7a73b802003-06-30 21:59:07 +000022862# PATH needs CR, and LINENO needs CR and PATH.
22863# Avoid depending upon Character Ranges.
22864as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22865as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22866as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22867as_cr_digits='0123456789'
22868as_cr_alnum=$as_cr_Letters$as_cr_digits
22869
22870# The user is always right.
22871if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022872 echo "#! /bin/sh" >conf$$.sh
22873 echo "exit 0" >>conf$$.sh
22874 chmod +x conf$$.sh
22875 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022876 PATH_SEPARATOR=';'
22877 else
22878 PATH_SEPARATOR=:
22879 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022880 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022881fi
22882
22883
22884 as_lineno_1=$LINENO
22885 as_lineno_2=$LINENO
22886 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22887 test "x$as_lineno_1" != "x$as_lineno_2" &&
22888 test "x$as_lineno_3" = "x$as_lineno_2" || {
22889 # Find who we are. Look in the path if we contain no path at all
22890 # relative or not.
22891 case $0 in
22892 *[\\/]* ) as_myself=$0 ;;
22893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22894for as_dir in $PATH
22895do
22896 IFS=$as_save_IFS
22897 test -z "$as_dir" && as_dir=.
22898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22899done
22900
22901 ;;
22902 esac
22903 # We did not find ourselves, most probably we were run as `sh COMMAND'
22904 # in which case we are not to be found in the path.
22905 if test "x$as_myself" = x; then
22906 as_myself=$0
22907 fi
22908 if test ! -f "$as_myself"; then
22909 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22910echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22911 { (exit 1); exit 1; }; }
22912 fi
22913 case $CONFIG_SHELL in
22914 '')
22915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22916for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22917do
22918 IFS=$as_save_IFS
22919 test -z "$as_dir" && as_dir=.
22920 for as_base in sh bash ksh sh5; do
22921 case $as_dir in
22922 /*)
22923 if ("$as_dir/$as_base" -c '
22924 as_lineno_1=$LINENO
22925 as_lineno_2=$LINENO
22926 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22927 test "x$as_lineno_1" != "x$as_lineno_2" &&
22928 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022929 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22930 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022931 CONFIG_SHELL=$as_dir/$as_base
22932 export CONFIG_SHELL
22933 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22934 fi;;
22935 esac
22936 done
22937done
22938;;
22939 esac
22940
22941 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22942 # uniformly replaced by the line number. The first 'sed' inserts a
22943 # line-number line before each line; the second 'sed' does the real
22944 # work. The second script uses 'N' to pair each line-number line
22945 # with the numbered line, and appends trailing '-' during
22946 # substitution so that $LINENO is not a special case at line end.
22947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22948 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22949 sed '=' <$as_myself |
22950 sed '
22951 N
22952 s,$,-,
22953 : loop
22954 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22955 t loop
22956 s,-$,,
22957 s,^['$as_cr_digits']*\n,,
22958 ' >$as_me.lineno &&
22959 chmod +x $as_me.lineno ||
22960 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22961echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22962 { (exit 1); exit 1; }; }
22963
22964 # Don't try to exec as it changes $[0], causing all sort of problems
22965 # (the dirname of $[0] is not the place where we might find the
22966 # original and so on. Autoconf is especially sensible to this).
22967 . ./$as_me.lineno
22968 # Exit status is that of the last command.
22969 exit
22970}
22971
22972
22973case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22974 *c*,-n*) ECHO_N= ECHO_C='
22975' ECHO_T=' ' ;;
22976 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22977 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22978esac
22979
22980if expr a : '\(a\)' >/dev/null 2>&1; then
22981 as_expr=expr
22982else
22983 as_expr=false
22984fi
22985
22986rm -f conf$$ conf$$.exe conf$$.file
22987echo >conf$$.file
22988if ln -s conf$$.file conf$$ 2>/dev/null; then
22989 # We could just check for DJGPP; but this test a) works b) is more generic
22990 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22991 if test -f conf$$.exe; then
22992 # Don't use ln at all; we don't have any links
22993 as_ln_s='cp -p'
22994 else
22995 as_ln_s='ln -s'
22996 fi
22997elif ln conf$$.file conf$$ 2>/dev/null; then
22998 as_ln_s=ln
22999else
23000 as_ln_s='cp -p'
23001fi
23002rm -f conf$$ conf$$.exe conf$$.file
23003
John Criswell0c38eaf2003-09-10 15:17:25 +000023004if mkdir -p . 2>/dev/null; then
23005 as_mkdir_p=:
23006else
23007 as_mkdir_p=false
23008fi
23009
John Criswell7a73b802003-06-30 21:59:07 +000023010as_executable_p="test -f"
23011
23012# Sed expression to map a string onto a valid CPP name.
23013as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23014
23015# Sed expression to map a string onto a valid variable name.
23016as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23017
23018
23019# IFS
23020# We need space, tab and new line, in precisely that order.
23021as_nl='
23022'
23023IFS=" $as_nl"
23024
23025# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023026$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023027
23028exec 6>&1
23029
23030# Open the log real soon, to keep \$[0] and so on meaningful, and to
23031# report actual input values of CONFIG_FILES etc. instead of their
23032# values after options handling. Logging --version etc. is OK.
23033exec 5>>config.log
23034{
23035 echo
23036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23037## Running $as_me. ##
23038_ASBOX
23039} >&5
23040cat >&5 <<_CSEOF
23041
Chris Lattner95f45c52004-04-14 16:32:09 +000023042This file was extended by [LLVM] $as_me [1.3], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023043generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023044
23045 CONFIG_FILES = $CONFIG_FILES
23046 CONFIG_HEADERS = $CONFIG_HEADERS
23047 CONFIG_LINKS = $CONFIG_LINKS
23048 CONFIG_COMMANDS = $CONFIG_COMMANDS
23049 $ $0 $@
23050
23051_CSEOF
23052echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23053echo >&5
23054_ACEOF
23055
23056# Files that config.status was made for.
23057if test -n "$ac_config_files"; then
23058 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23059fi
23060
23061if test -n "$ac_config_headers"; then
23062 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23063fi
23064
23065if test -n "$ac_config_links"; then
23066 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23067fi
23068
23069if test -n "$ac_config_commands"; then
23070 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23071fi
23072
23073cat >>$CONFIG_STATUS <<\_ACEOF
23074
23075ac_cs_usage="\
23076\`$as_me' instantiates files from templates according to the
23077current configuration.
23078
23079Usage: $0 [OPTIONS] [FILE]...
23080
23081 -h, --help print this help, then exit
23082 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023083 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023084 -d, --debug don't remove temporary files
23085 --recheck update $as_me by reconfiguring in the same conditions
23086 --file=FILE[:TEMPLATE]
23087 instantiate the configuration file FILE
23088 --header=FILE[:TEMPLATE]
23089 instantiate the configuration header FILE
23090
23091Configuration files:
23092$config_files
23093
23094Configuration headers:
23095$config_headers
23096
John Criswellc764fbc2003-09-06 15:17:13 +000023097Configuration commands:
23098$config_commands
23099
John Criswell7a73b802003-06-30 21:59:07 +000023100Report bugs to <bug-autoconf@gnu.org>."
23101_ACEOF
23102
23103cat >>$CONFIG_STATUS <<_ACEOF
23104ac_cs_version="\\
Chris Lattner95f45c52004-04-14 16:32:09 +000023105[LLVM] config.status [1.3]
John Criswell0c38eaf2003-09-10 15:17:25 +000023106configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023107 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23108
23109Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23110Free Software Foundation, Inc.
23111This config.status script is free software; the Free Software Foundation
23112gives unlimited permission to copy, distribute and modify it."
23113srcdir=$srcdir
23114INSTALL="$INSTALL"
23115_ACEOF
23116
23117cat >>$CONFIG_STATUS <<\_ACEOF
23118# If no file are specified by the user, then we need to provide default
23119# value. By we need to know if files were specified by the user.
23120ac_need_defaults=:
23121while test $# != 0
23122do
23123 case $1 in
23124 --*=*)
23125 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23126 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023127 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023128 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023129 -*)
23130 ac_option=$1
23131 ac_optarg=$2
23132 ac_shift=shift
23133 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023134 *) # This is not an option, so the user has probably given explicit
23135 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023136 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023137 ac_need_defaults=false;;
23138 esac
23139
John Criswell0c38eaf2003-09-10 15:17:25 +000023140 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023141 # Handling of the options.
23142_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023143cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23145 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023146 --version | --vers* | -V )
23147 echo "$ac_cs_version"; exit 0 ;;
23148 --he | --h)
23149 # Conflict between --help and --header
23150 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23151Try \`$0 --help' for more information." >&5
23152echo "$as_me: error: ambiguous option: $1
23153Try \`$0 --help' for more information." >&2;}
23154 { (exit 1); exit 1; }; };;
23155 --help | --hel | -h )
23156 echo "$ac_cs_usage"; exit 0 ;;
23157 --debug | --d* | -d )
23158 debug=: ;;
23159 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023160 $ac_shift
23161 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023162 ac_need_defaults=false;;
23163 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023164 $ac_shift
23165 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023166 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23168 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23169 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023170
23171 # This is an error.
23172 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23173Try \`$0 --help' for more information." >&5
23174echo "$as_me: error: unrecognized option: $1
23175Try \`$0 --help' for more information." >&2;}
23176 { (exit 1); exit 1; }; } ;;
23177
23178 *) ac_config_targets="$ac_config_targets $1" ;;
23179
23180 esac
23181 shift
23182done
23183
John Criswell0c38eaf2003-09-10 15:17:25 +000023184ac_configure_extra_args=
23185
23186if $ac_cs_silent; then
23187 exec 6>/dev/null
23188 ac_configure_extra_args="$ac_configure_extra_args --silent"
23189fi
23190
23191_ACEOF
23192cat >>$CONFIG_STATUS <<_ACEOF
23193if \$ac_cs_recheck; then
23194 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23195 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23196fi
23197
John Criswell7a73b802003-06-30 21:59:07 +000023198_ACEOF
23199
John Criswellc764fbc2003-09-06 15:17:13 +000023200cat >>$CONFIG_STATUS <<_ACEOF
23201#
23202# INIT-COMMANDS section.
23203#
John Criswell7a73b802003-06-30 21:59:07 +000023204
John Criswellc764fbc2003-09-06 15:17:13 +000023205${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23206${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000023207${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023208${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023209${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23210${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023211${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23212${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023213${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23214${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000023215${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000023216${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23217${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000023218${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23219${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23220${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23221${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23222${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23223${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23224${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23225${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23226${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23227${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000023228${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023229${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23230${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023231${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023232${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000023233${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000023234${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23235${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023236${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23237${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23238${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23239${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23240${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23241${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23242${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23243${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23244${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23245${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23246${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23247${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23248${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000023249${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23250${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023251${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023252${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023253${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023254${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023255
23256_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023257
23258
23259
23260cat >>$CONFIG_STATUS <<\_ACEOF
23261for ac_config_target in $ac_config_targets
23262do
23263 case "$ac_config_target" in
23264 # Handling of arguments.
23265 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023266 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
23267 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000023268 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
23269 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023270 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023271 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23272 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023273 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023274 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023275 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23276 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023277 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23278 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023279 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23280 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000023281 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023282 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23283 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023284 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23285 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23286 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23287 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23288 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23289 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23290 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23291 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23292 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23293 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000023294 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023295 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23296 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023297 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023298 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000023299 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023300 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23301 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000023302 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23303 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23304 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23305 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23306 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23307 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23308 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23309 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23310 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23311 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23312 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23313 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23314 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023315 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23316 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000023317 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023318 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023319 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023320 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023321 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23322 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23323echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23324 { (exit 1); exit 1; }; };;
23325 esac
23326done
23327
23328# If the user did not use the arguments to specify the items to instantiate,
23329# then the envvar interface is used. Set only those that are not.
23330# We use the long form for the default assignment because of an extremely
23331# bizarre bug on SunOS 4.1.3.
23332if $ac_need_defaults; then
23333 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23334 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023335 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023336fi
23337
John Criswell0c38eaf2003-09-10 15:17:25 +000023338# Have a temporary directory for convenience. Make it in the build tree
23339# simply because there is no reason to put it here, and in addition,
23340# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023341# Create a temporary directory, and hook for its removal unless debugging.
23342$debug ||
23343{
23344 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23345 trap '{ (exit 1); exit 1; }' 1 2 13 15
23346}
23347
23348# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023349
John Criswell7a73b802003-06-30 21:59:07 +000023350{
John Criswell0c38eaf2003-09-10 15:17:25 +000023351 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023352 test -n "$tmp" && test -d "$tmp"
23353} ||
23354{
John Criswell0c38eaf2003-09-10 15:17:25 +000023355 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023356 (umask 077 && mkdir $tmp)
23357} ||
23358{
John Criswell0c38eaf2003-09-10 15:17:25 +000023359 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023360 { (exit 1); exit 1; }
23361}
23362
23363_ACEOF
23364
23365cat >>$CONFIG_STATUS <<_ACEOF
23366
23367#
23368# CONFIG_FILES section.
23369#
23370
23371# No need to generate the scripts if there are no CONFIG_FILES.
23372# This happens for instance when ./config.status config.h
23373if test -n "\$CONFIG_FILES"; then
23374 # Protect against being on the right side of a sed subst in config.status.
23375 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23376 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23377s,@SHELL@,$SHELL,;t t
23378s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23379s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23380s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23381s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23382s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23383s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23384s,@exec_prefix@,$exec_prefix,;t t
23385s,@prefix@,$prefix,;t t
23386s,@program_transform_name@,$program_transform_name,;t t
23387s,@bindir@,$bindir,;t t
23388s,@sbindir@,$sbindir,;t t
23389s,@libexecdir@,$libexecdir,;t t
23390s,@datadir@,$datadir,;t t
23391s,@sysconfdir@,$sysconfdir,;t t
23392s,@sharedstatedir@,$sharedstatedir,;t t
23393s,@localstatedir@,$localstatedir,;t t
23394s,@libdir@,$libdir,;t t
23395s,@includedir@,$includedir,;t t
23396s,@oldincludedir@,$oldincludedir,;t t
23397s,@infodir@,$infodir,;t t
23398s,@mandir@,$mandir,;t t
23399s,@build_alias@,$build_alias,;t t
23400s,@host_alias@,$host_alias,;t t
23401s,@target_alias@,$target_alias,;t t
23402s,@DEFS@,$DEFS,;t t
23403s,@ECHO_C@,$ECHO_C,;t t
23404s,@ECHO_N@,$ECHO_N,;t t
23405s,@ECHO_T@,$ECHO_T,;t t
23406s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023407s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023408s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23409s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23410s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23411s,@build@,$build,;t t
23412s,@build_cpu@,$build_cpu,;t t
23413s,@build_vendor@,$build_vendor,;t t
23414s,@build_os@,$build_os,;t t
23415s,@host@,$host,;t t
23416s,@host_cpu@,$host_cpu,;t t
23417s,@host_vendor@,$host_vendor,;t t
23418s,@host_os@,$host_os,;t t
23419s,@target@,$target,;t t
23420s,@target_cpu@,$target_cpu,;t t
23421s,@target_vendor@,$target_vendor,;t t
23422s,@target_os@,$target_os,;t t
23423s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023424s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023425s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023426s,@CXX@,$CXX,;t t
23427s,@CXXFLAGS@,$CXXFLAGS,;t t
23428s,@LDFLAGS@,$LDFLAGS,;t t
23429s,@CPPFLAGS@,$CPPFLAGS,;t t
23430s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23431s,@EXEEXT@,$EXEEXT,;t t
23432s,@OBJEXT@,$OBJEXT,;t t
23433s,@CC@,$CC,;t t
23434s,@CFLAGS@,$CFLAGS,;t t
23435s,@ac_ct_CC@,$ac_ct_CC,;t t
23436s,@CPP@,$CPP,;t t
23437s,@ifGNUmake@,$ifGNUmake,;t t
23438s,@LEX@,$LEX,;t t
23439s,@LEXLIB@,$LEXLIB,;t t
23440s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23441s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000023442s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023443s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023444s,@LN_S@,$LN_S,;t t
23445s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023446s,@AR@,$AR,;t t
23447s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023448s,@RANLIB@,$RANLIB,;t t
23449s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23450s,@STRIP@,$STRIP,;t t
23451s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023452s,@CXXCPP@,$CXXCPP,;t t
23453s,@F77@,$F77,;t t
23454s,@FFLAGS@,$FFLAGS,;t t
23455s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023456s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023457s,@DOT@,$DOT,;t t
23458s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000023459s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023460s,@PYTHON@,$PYTHON,;t t
23461s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000023462s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023463s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23464s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000023465s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000023466s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000023467s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23468s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23469s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23470s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23471s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23472s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000023473s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23474s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23475s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023476s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023477s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023478s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000023479s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23480s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000023481s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23482s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000023483s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23484s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023485s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023486s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023487s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000023488s,@LLVMCC1@,$LLVMCC1,;t t
23489s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023490s,@BCR@,$BCR,;t t
23491s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000023492s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000023493s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023494s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023495CEOF
23496
23497_ACEOF
23498
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23500 # Split the substitutions into bite-sized pieces for seds with
23501 # small command number limits, like on Digital OSF/1 and HP-UX.
23502 ac_max_sed_lines=48
23503 ac_sed_frag=1 # Number of current file.
23504 ac_beg=1 # First line for current file.
23505 ac_end=$ac_max_sed_lines # Line after last line for current file.
23506 ac_more_lines=:
23507 ac_sed_cmds=
23508 while $ac_more_lines; do
23509 if test $ac_beg -gt 1; then
23510 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23511 else
23512 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23513 fi
23514 if test ! -s $tmp/subs.frag; then
23515 ac_more_lines=false
23516 else
23517 # The purpose of the label and of the branching condition is to
23518 # speed up the sed processing (if there are no `@' at all, there
23519 # is no need to browse any of the substitutions).
23520 # These are the two extra sed commands mentioned above.
23521 (echo ':t
23522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23523 if test -z "$ac_sed_cmds"; then
23524 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23525 else
23526 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23527 fi
23528 ac_sed_frag=`expr $ac_sed_frag + 1`
23529 ac_beg=$ac_end
23530 ac_end=`expr $ac_end + $ac_max_sed_lines`
23531 fi
23532 done
23533 if test -z "$ac_sed_cmds"; then
23534 ac_sed_cmds=cat
23535 fi
23536fi # test -n "$CONFIG_FILES"
23537
23538_ACEOF
23539cat >>$CONFIG_STATUS <<\_ACEOF
23540for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23542 case $ac_file in
23543 - | *:- | *:-:* ) # input from stdin
23544 cat >$tmp/stdin
23545 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23546 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23547 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23549 * ) ac_file_in=$ac_file.in ;;
23550 esac
23551
23552 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23553 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23554$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23555 X"$ac_file" : 'X\(//\)[^/]' \| \
23556 X"$ac_file" : 'X\(//\)$' \| \
23557 X"$ac_file" : 'X\(/\)' \| \
23558 . : '\(.\)' 2>/dev/null ||
23559echo X"$ac_file" |
23560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23562 /^X\(\/\/\)$/{ s//\1/; q; }
23563 /^X\(\/\).*/{ s//\1/; q; }
23564 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023565 { if $as_mkdir_p; then
23566 mkdir -p "$ac_dir"
23567 else
23568 as_dir="$ac_dir"
23569 as_dirs=
23570 while test ! -d "$as_dir"; do
23571 as_dirs="$as_dir $as_dirs"
23572 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23573$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23574 X"$as_dir" : 'X\(//\)[^/]' \| \
23575 X"$as_dir" : 'X\(//\)$' \| \
23576 X"$as_dir" : 'X\(/\)' \| \
23577 . : '\(.\)' 2>/dev/null ||
23578echo X"$as_dir" |
23579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23581 /^X\(\/\/\)$/{ s//\1/; q; }
23582 /^X\(\/\).*/{ s//\1/; q; }
23583 s/.*/./; q'`
23584 done
23585 test ! -n "$as_dirs" || mkdir $as_dirs
23586 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23587echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23588 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023589
23590 ac_builddir=.
23591
23592if test "$ac_dir" != .; then
23593 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23594 # A "../" for each directory in $ac_dir_suffix.
23595 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23596else
23597 ac_dir_suffix= ac_top_builddir=
23598fi
23599
23600case $srcdir in
23601 .) # No --srcdir option. We are building in place.
23602 ac_srcdir=.
23603 if test -z "$ac_top_builddir"; then
23604 ac_top_srcdir=.
23605 else
23606 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23607 fi ;;
23608 [\\/]* | ?:[\\/]* ) # Absolute path.
23609 ac_srcdir=$srcdir$ac_dir_suffix;
23610 ac_top_srcdir=$srcdir ;;
23611 *) # Relative path.
23612 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23613 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23614esac
23615# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23616# absolute.
23617ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023618ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023619ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23620ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23621
23622
23623 case $INSTALL in
23624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23625 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23626 esac
23627
23628 if test x"$ac_file" != x-; then
23629 { echo "$as_me:$LINENO: creating $ac_file" >&5
23630echo "$as_me: creating $ac_file" >&6;}
23631 rm -f "$ac_file"
23632 fi
23633 # Let's still pretend it is `configure' which instantiates (i.e., don't
23634 # use $as_me), people would be surprised to read:
23635 # /* config.h. Generated by config.status. */
23636 if test x"$ac_file" = x-; then
23637 configure_input=
23638 else
23639 configure_input="$ac_file. "
23640 fi
23641 configure_input=$configure_input"Generated from `echo $ac_file_in |
23642 sed 's,.*/,,'` by configure."
23643
23644 # First look for the input files in the build tree, otherwise in the
23645 # src tree.
23646 ac_file_inputs=`IFS=:
23647 for f in $ac_file_in; do
23648 case $f in
23649 -) echo $tmp/stdin ;;
23650 [\\/$]*)
23651 # Absolute (can't be DOS-style, as IFS=:)
23652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23653echo "$as_me: error: cannot find input file: $f" >&2;}
23654 { (exit 1); exit 1; }; }
23655 echo $f;;
23656 *) # Relative
23657 if test -f "$f"; then
23658 # Build tree
23659 echo $f
23660 elif test -f "$srcdir/$f"; then
23661 # Source tree
23662 echo $srcdir/$f
23663 else
23664 # /dev/null tree
23665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23666echo "$as_me: error: cannot find input file: $f" >&2;}
23667 { (exit 1); exit 1; }; }
23668 fi;;
23669 esac
23670 done` || { (exit 1); exit 1; }
23671_ACEOF
23672cat >>$CONFIG_STATUS <<_ACEOF
23673 sed "$ac_vpsub
23674$extrasub
23675_ACEOF
23676cat >>$CONFIG_STATUS <<\_ACEOF
23677:t
23678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23679s,@configure_input@,$configure_input,;t t
23680s,@srcdir@,$ac_srcdir,;t t
23681s,@abs_srcdir@,$ac_abs_srcdir,;t t
23682s,@top_srcdir@,$ac_top_srcdir,;t t
23683s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23684s,@builddir@,$ac_builddir,;t t
23685s,@abs_builddir@,$ac_abs_builddir,;t t
23686s,@top_builddir@,$ac_top_builddir,;t t
23687s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23688s,@INSTALL@,$ac_INSTALL,;t t
23689" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23690 rm -f $tmp/stdin
23691 if test x"$ac_file" != x-; then
23692 mv $tmp/out $ac_file
23693 else
23694 cat $tmp/out
23695 rm -f $tmp/out
23696 fi
23697
23698done
23699_ACEOF
23700cat >>$CONFIG_STATUS <<\_ACEOF
23701
23702#
23703# CONFIG_HEADER section.
23704#
23705
23706# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23707# NAME is the cpp macro being defined and VALUE is the value it is being given.
23708#
23709# ac_d sets the value in "#define NAME VALUE" lines.
23710ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23711ac_dB='[ ].*$,\1#\2'
23712ac_dC=' '
23713ac_dD=',;t'
23714# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23715ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23716ac_uB='$,\1#\2define\3'
23717ac_uC=' '
23718ac_uD=',;t'
23719
23720for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23721 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23722 case $ac_file in
23723 - | *:- | *:-:* ) # input from stdin
23724 cat >$tmp/stdin
23725 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23726 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23727 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23728 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23729 * ) ac_file_in=$ac_file.in ;;
23730 esac
23731
23732 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23733echo "$as_me: creating $ac_file" >&6;}
23734
23735 # First look for the input files in the build tree, otherwise in the
23736 # src tree.
23737 ac_file_inputs=`IFS=:
23738 for f in $ac_file_in; do
23739 case $f in
23740 -) echo $tmp/stdin ;;
23741 [\\/$]*)
23742 # Absolute (can't be DOS-style, as IFS=:)
23743 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23744echo "$as_me: error: cannot find input file: $f" >&2;}
23745 { (exit 1); exit 1; }; }
23746 echo $f;;
23747 *) # Relative
23748 if test -f "$f"; then
23749 # Build tree
23750 echo $f
23751 elif test -f "$srcdir/$f"; then
23752 # Source tree
23753 echo $srcdir/$f
23754 else
23755 # /dev/null tree
23756 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23757echo "$as_me: error: cannot find input file: $f" >&2;}
23758 { (exit 1); exit 1; }; }
23759 fi;;
23760 esac
23761 done` || { (exit 1); exit 1; }
23762 # Remove the trailing spaces.
23763 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23764
23765_ACEOF
23766
23767# Transform confdefs.h into two sed scripts, `conftest.defines' and
23768# `conftest.undefs', that substitutes the proper values into
23769# config.h.in to produce config.h. The first handles `#define'
23770# templates, and the second `#undef' templates.
23771# And first: Protect against being on the right side of a sed subst in
23772# config.status. Protect against being in an unquoted here document
23773# in config.status.
23774rm -f conftest.defines conftest.undefs
23775# Using a here document instead of a string reduces the quoting nightmare.
23776# Putting comments in sed scripts is not portable.
23777#
23778# `end' is used to avoid that the second main sed command (meant for
23779# 0-ary CPP macros) applies to n-ary macro definitions.
23780# See the Autoconf documentation for `clear'.
23781cat >confdef2sed.sed <<\_ACEOF
23782s/[\\&,]/\\&/g
23783s,[\\$`],\\&,g
23784t clear
23785: clear
23786s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23787t end
23788s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23789: end
23790_ACEOF
23791# If some macros were called several times there might be several times
23792# the same #defines, which is useless. Nevertheless, we may not want to
23793# sort them, since we want the *last* AC-DEFINE to be honored.
23794uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23795sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23796rm -f confdef2sed.sed
23797
23798# This sed command replaces #undef with comments. This is necessary, for
23799# example, in the case of _POSIX_SOURCE, which is predefined and required
23800# on some systems where configure will not decide to define it.
23801cat >>conftest.undefs <<\_ACEOF
23802s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23803_ACEOF
23804
23805# Break up conftest.defines because some shells have a limit on the size
23806# of here documents, and old seds have small limits too (100 cmds).
23807echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000023808echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023809echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23810echo ' :' >>$CONFIG_STATUS
23811rm -f conftest.tail
23812while grep . conftest.defines >/dev/null
23813do
23814 # Write a limited-size here document to $tmp/defines.sed.
23815 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23816 # Speed up: don't consider the non `#define' lines.
23817 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23818 # Work around the forget-to-reset-the-flag bug.
23819 echo 't clr' >>$CONFIG_STATUS
23820 echo ': clr' >>$CONFIG_STATUS
23821 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23822 echo 'CEOF
23823 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23824 rm -f $tmp/in
23825 mv $tmp/out $tmp/in
23826' >>$CONFIG_STATUS
23827 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23828 rm -f conftest.defines
23829 mv conftest.tail conftest.defines
23830done
23831rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023832echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023833echo >>$CONFIG_STATUS
23834
23835# Break up conftest.undefs because some shells have a limit on the size
23836# of here documents, and old seds have small limits too (100 cmds).
23837echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23838rm -f conftest.tail
23839while grep . conftest.undefs >/dev/null
23840do
23841 # Write a limited-size here document to $tmp/undefs.sed.
23842 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23843 # Speed up: don't consider the non `#undef'
23844 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23845 # Work around the forget-to-reset-the-flag bug.
23846 echo 't clr' >>$CONFIG_STATUS
23847 echo ': clr' >>$CONFIG_STATUS
23848 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23849 echo 'CEOF
23850 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23851 rm -f $tmp/in
23852 mv $tmp/out $tmp/in
23853' >>$CONFIG_STATUS
23854 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23855 rm -f conftest.undefs
23856 mv conftest.tail conftest.undefs
23857done
23858rm -f conftest.undefs
23859
23860cat >>$CONFIG_STATUS <<\_ACEOF
23861 # Let's still pretend it is `configure' which instantiates (i.e., don't
23862 # use $as_me), people would be surprised to read:
23863 # /* config.h. Generated by config.status. */
23864 if test x"$ac_file" = x-; then
23865 echo "/* Generated by configure. */" >$tmp/config.h
23866 else
23867 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23868 fi
23869 cat $tmp/in >>$tmp/config.h
23870 rm -f $tmp/in
23871 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023872 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23874echo "$as_me: $ac_file is unchanged" >&6;}
23875 else
23876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23878 X"$ac_file" : 'X\(//\)[^/]' \| \
23879 X"$ac_file" : 'X\(//\)$' \| \
23880 X"$ac_file" : 'X\(/\)' \| \
23881 . : '\(.\)' 2>/dev/null ||
23882echo X"$ac_file" |
23883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23885 /^X\(\/\/\)$/{ s//\1/; q; }
23886 /^X\(\/\).*/{ s//\1/; q; }
23887 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023888 { if $as_mkdir_p; then
23889 mkdir -p "$ac_dir"
23890 else
23891 as_dir="$ac_dir"
23892 as_dirs=
23893 while test ! -d "$as_dir"; do
23894 as_dirs="$as_dir $as_dirs"
23895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23897 X"$as_dir" : 'X\(//\)[^/]' \| \
23898 X"$as_dir" : 'X\(//\)$' \| \
23899 X"$as_dir" : 'X\(/\)' \| \
23900 . : '\(.\)' 2>/dev/null ||
23901echo X"$as_dir" |
23902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23904 /^X\(\/\/\)$/{ s//\1/; q; }
23905 /^X\(\/\).*/{ s//\1/; q; }
23906 s/.*/./; q'`
23907 done
23908 test ! -n "$as_dirs" || mkdir $as_dirs
23909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23910echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23911 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023912
23913 rm -f $ac_file
23914 mv $tmp/config.h $ac_file
23915 fi
23916 else
23917 cat $tmp/config.h
23918 rm -f $tmp/config.h
23919 fi
23920done
23921_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023922cat >>$CONFIG_STATUS <<\_ACEOF
23923
23924#
23925# CONFIG_COMMANDS section.
23926#
23927for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23928 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23929 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23930 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23931$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23932 X"$ac_dest" : 'X\(//\)[^/]' \| \
23933 X"$ac_dest" : 'X\(//\)$' \| \
23934 X"$ac_dest" : 'X\(/\)' \| \
23935 . : '\(.\)' 2>/dev/null ||
23936echo X"$ac_dest" |
23937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23939 /^X\(\/\/\)$/{ s//\1/; q; }
23940 /^X\(\/\).*/{ s//\1/; q; }
23941 s/.*/./; q'`
23942 ac_builddir=.
23943
23944if test "$ac_dir" != .; then
23945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23946 # A "../" for each directory in $ac_dir_suffix.
23947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23948else
23949 ac_dir_suffix= ac_top_builddir=
23950fi
23951
23952case $srcdir in
23953 .) # No --srcdir option. We are building in place.
23954 ac_srcdir=.
23955 if test -z "$ac_top_builddir"; then
23956 ac_top_srcdir=.
23957 else
23958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23959 fi ;;
23960 [\\/]* | ?:[\\/]* ) # Absolute path.
23961 ac_srcdir=$srcdir$ac_dir_suffix;
23962 ac_top_srcdir=$srcdir ;;
23963 *) # Relative path.
23964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23966esac
23967# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23968# absolute.
23969ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023970ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023971ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23972ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23973
23974
23975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23976echo "$as_me: executing $ac_dest commands" >&6;}
23977 case $ac_dest in
23978 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23979 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023980 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023981 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023982 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23983 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000023984 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23985 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 +000023986 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23987 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000023988 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023989 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23990 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023991 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23992 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23993 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23994 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23995 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23996 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23997 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23998 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23999 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24000 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
John Criswell878be7d2004-02-24 21:43:38 +000024001 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024002 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24003 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024004 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024005 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000024006 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024007 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24008 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024009 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24010 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24011 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24012 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24013 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24014 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24015 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24016 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24017 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24018 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24019 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24020 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24021 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024022 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24023 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024024 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024025 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024026 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024027 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024028 esac
24029done
24030_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024031
24032cat >>$CONFIG_STATUS <<\_ACEOF
24033
24034{ (exit 0); exit 0; }
24035_ACEOF
24036chmod +x $CONFIG_STATUS
24037ac_clean_files=$ac_clean_files_save
24038
24039
24040# configure is writing to config.log, and then calls config.status.
24041# config.status does its own redirection, appending to config.log.
24042# Unfortunately, on DOS this fails, as config.log is still kept open
24043# by configure, so config.status won't be able to write to it; its
24044# output is simply discarded. So we exec the FD to /dev/null,
24045# effectively closing config.log, so it can be properly (re)opened and
24046# appended to by config.status. When coming back to configure, we
24047# need to make the FD available again.
24048if test "$no_create" != yes; then
24049 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024050 ac_config_status_args=
24051 test "$silent" = yes &&
24052 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024053 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024055 exec 5>>config.log
24056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24057 # would make configure fail if this is the last instruction.
24058 $ac_cs_success || { (exit 1); exit 1; }
24059fi
24060
John Criswell12399a12003-09-30 15:55:44 +000024061#
24062# CONFIG_SUBDIRS section.
24063#
24064if test "$no_recursion" != yes; then
24065
24066 # Remove --cache-file and --srcdir arguments so they do not pile up.
24067 ac_sub_configure_args=
24068 ac_prev=
24069 for ac_arg in $ac_configure_args; do
24070 if test -n "$ac_prev"; then
24071 ac_prev=
24072 continue
24073 fi
24074 case $ac_arg in
24075 -cache-file | --cache-file | --cache-fil | --cache-fi \
24076 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24077 ac_prev=cache_file ;;
24078 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24079 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24080 | --c=*)
24081 ;;
24082 --config-cache | -C)
24083 ;;
24084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24085 ac_prev=srcdir ;;
24086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24087 ;;
24088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24089 ac_prev=prefix ;;
24090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24091 ;;
24092 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24093 esac
24094 done
24095
24096 # Always prepend --prefix to ensure using the same prefix
24097 # in subdir configurations.
24098 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24099
24100 ac_popdir=`pwd`
24101 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24102
24103 # Do not complain, so a configure script can configure whichever
24104 # parts of a large source tree are present.
24105 test -d $srcdir/$ac_dir || continue
24106
24107 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24108echo "$as_me: configuring in $ac_dir" >&6;}
24109 { if $as_mkdir_p; then
24110 mkdir -p "$ac_dir"
24111 else
24112 as_dir="$ac_dir"
24113 as_dirs=
24114 while test ! -d "$as_dir"; do
24115 as_dirs="$as_dir $as_dirs"
24116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24118 X"$as_dir" : 'X\(//\)[^/]' \| \
24119 X"$as_dir" : 'X\(//\)$' \| \
24120 X"$as_dir" : 'X\(/\)' \| \
24121 . : '\(.\)' 2>/dev/null ||
24122echo X"$as_dir" |
24123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24125 /^X\(\/\/\)$/{ s//\1/; q; }
24126 /^X\(\/\).*/{ s//\1/; q; }
24127 s/.*/./; q'`
24128 done
24129 test ! -n "$as_dirs" || mkdir $as_dirs
24130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24132 { (exit 1); exit 1; }; }; }
24133
24134 ac_builddir=.
24135
24136if test "$ac_dir" != .; then
24137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24138 # A "../" for each directory in $ac_dir_suffix.
24139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24140else
24141 ac_dir_suffix= ac_top_builddir=
24142fi
24143
24144case $srcdir in
24145 .) # No --srcdir option. We are building in place.
24146 ac_srcdir=.
24147 if test -z "$ac_top_builddir"; then
24148 ac_top_srcdir=.
24149 else
24150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24151 fi ;;
24152 [\\/]* | ?:[\\/]* ) # Absolute path.
24153 ac_srcdir=$srcdir$ac_dir_suffix;
24154 ac_top_srcdir=$srcdir ;;
24155 *) # Relative path.
24156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24158esac
24159# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24160# absolute.
24161ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24162ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24163ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24164ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24165
24166
24167 cd $ac_dir
24168
24169 # Check for guested configure; otherwise get Cygnus style configure.
24170 if test -f $ac_srcdir/configure.gnu; then
24171 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24172 elif test -f $ac_srcdir/configure; then
24173 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24174 elif test -f $ac_srcdir/configure.in; then
24175 ac_sub_configure=$ac_configure
24176 else
24177 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24178echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24179 ac_sub_configure=
24180 fi
24181
24182 # The recursion is here.
24183 if test -n "$ac_sub_configure"; then
24184 # Make the cache file name correct relative to the subdirectory.
24185 case $cache_file in
24186 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24187 *) # Relative path.
24188 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24189 esac
24190
24191 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24192echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24193 # The eval makes quoting arguments work.
24194 eval $ac_sub_configure $ac_sub_configure_args \
24195 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24196 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24197echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24198 { (exit 1); exit 1; }; }
24199 fi
24200
24201 cd $ac_popdir
24202 done
24203fi
24204
Brian Gaekef3b24102003-11-16 18:38:14 +000024205
24206if test $llvmgccwarn = yes
24207then
24208 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24209echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24210 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24211echo "$as_me: WARNING: ***** appear to be working." >&2;}
24212 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24213echo "$as_me: WARNING: ***** " >&2;}
24214 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24215echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24216 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24217echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24218 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24219echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24220fi
Brian Gaeke554831c2004-01-21 19:39:29 +000024221