blob: 0de11a8a17b835767265ca4fcd744b9b83016df1 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelld000e1d2003-12-18 16:43:17 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.1].
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--'
John Criswelld000e1d2003-12-18 16:43:17 +0000425PACKAGE_VERSION='[1.1]'
426PACKAGE_STRING='[LLVM] [1.1]'
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""
Brian Gaekeafa3fbf2004-01-22 21:55:02 +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 ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC 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
John Criswelld000e1d2003-12-18 16:43:17 +0000957\`configure' configures [LLVM] [1.1] 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
John Criswelld000e1d2003-12-18 16:43:17 +00001019 short | recursive ) echo "Configuration of [LLVM] [1.1]:";;
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)
Alkis Evlogimenos3e58e482003-12-20 21:35:15 +00001034 --enable-spec2000 Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-llvmgccdir Location of LLVM GCC front-end
1049 --with-bcrepos Location of Bytecode Repository
1050 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001051
1052Some influential environment variables:
1053 CXX C++ compiler command
1054 CXXFLAGS C++ compiler flags
1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1056 nonstandard directory <lib dir>
1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058 headers in a nonstandard directory <include dir>
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001062 CXXCPP C++ preprocessor
1063 F77 Fortran 77 compiler command
1064 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066Use these variables to override the choices made by `configure' or to help
1067it to find libraries and programs with nonstandard names/locations.
1068
1069Report bugs to <llvmbugs@cs.uiuc.edu>.
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074 # If there are subdirs, report their specific --help.
1075 ac_popdir=`pwd`
1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077 test -d $ac_dir || continue
1078 ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082 # A "../" for each directory in $ac_dir_suffix.
1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085 ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089 .) # No --srcdir option. We are building in place.
1090 ac_srcdir=.
1091 if test -z "$ac_top_builddir"; then
1092 ac_top_srcdir=.
1093 else
1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095 fi ;;
1096 [\\/]* | ?:[\\/]* ) # Absolute path.
1097 ac_srcdir=$srcdir$ac_dir_suffix;
1098 ac_top_srcdir=$srcdir ;;
1099 *) # Relative path.
1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1104# absolute.
1105ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001106ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001107ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1108ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1109
1110 cd $ac_dir
1111 # Check for guested configure; otherwise get Cygnus style configure.
1112 if test -f $ac_srcdir/configure.gnu; then
1113 echo
1114 $SHELL $ac_srcdir/configure.gnu --help=recursive
1115 elif test -f $ac_srcdir/configure; then
1116 echo
1117 $SHELL $ac_srcdir/configure --help=recursive
1118 elif test -f $ac_srcdir/configure.ac ||
1119 test -f $ac_srcdir/configure.in; then
1120 echo
1121 $ac_configure --help
1122 else
1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 fi
1125 cd $ac_popdir
1126 done
1127fi
1128
1129test -n "$ac_init_help" && exit 0
1130if $ac_init_version; then
1131 cat <<\_ACEOF
John Criswelld000e1d2003-12-18 16:43:17 +00001132[LLVM] configure [1.1]
John Criswell0c38eaf2003-09-10 15:17:25 +00001133generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001134
1135Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1136Free Software Foundation, Inc.
1137This configure script is free software; the Free Software Foundation
1138gives unlimited permission to copy, distribute and modify it.
1139_ACEOF
1140 exit 0
1141fi
1142exec 5>config.log
1143cat >&5 <<_ACEOF
1144This file contains any messages produced by compilers while
1145running configure, to aid debugging if configure makes a mistake.
1146
John Criswelld000e1d2003-12-18 16:43:17 +00001147It was created by [LLVM] $as_me [1.1], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001148generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 $ $0 $@
1151
1152_ACEOF
1153{
1154cat <<_ASUNAME
1155## --------- ##
1156## Platform. ##
1157## --------- ##
1158
1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1167
1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1175
1176_ASUNAME
1177
1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179for as_dir in $PATH
1180do
1181 IFS=$as_save_IFS
1182 test -z "$as_dir" && as_dir=.
1183 echo "PATH: $as_dir"
1184done
1185
1186} >&5
1187
1188cat >&5 <<_ACEOF
1189
1190
1191## ----------- ##
1192## Core tests. ##
1193## ----------- ##
1194
1195_ACEOF
1196
1197
1198# Keep a trace of the command line.
1199# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001200# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001201# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001203ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001204ac_configure_args0=
1205ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001206ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001207ac_must_keep_next=false
1208for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001209do
John Criswell0c38eaf2003-09-10 15:17:25 +00001210 for ac_arg
1211 do
1212 case $ac_arg in
1213 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 continue ;;
1217 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219 esac
1220 case $ac_pass in
1221 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222 2)
1223 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224 if test $ac_must_keep_next = true; then
1225 ac_must_keep_next=false # Got value, back to normal.
1226 else
1227 case $ac_arg in
1228 *=* | --config-cache | -C | -disable-* | --disable-* \
1229 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231 | -with-* | --with-* | -without-* | --without-* | --x)
1232 case "$ac_configure_args0 " in
1233 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234 esac
1235 ;;
1236 -* ) ac_must_keep_next=true ;;
1237 esac
1238 fi
1239 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240 # Get rid of the leading space.
1241 ac_sep=" "
1242 ;;
1243 esac
1244 done
John Criswell7a73b802003-06-30 21:59:07 +00001245done
John Criswell0c38eaf2003-09-10 15:17:25 +00001246$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001248
1249# When interrupted or exit'd, cleanup temporary files, and complete
1250# config.log. We remove comments because anyway the quotes in there
1251# would cause problems or look ugly.
1252# WARNING: Be sure not to use single quotes in there, as some shells,
1253# such as our DU 5.0 friend, will then `close' the trap.
1254trap 'exit_status=$?
1255 # Save into config.log some information that might help in debugging.
1256 {
1257 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001258
John Criswell7a73b802003-06-30 21:59:07 +00001259 cat <<\_ASBOX
1260## ---------------- ##
1261## Cache variables. ##
1262## ---------------- ##
1263_ASBOX
1264 echo
1265 # The following way of writing the cache mishandles newlines in values,
1266{
1267 (set) 2>&1 |
1268 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269 *ac_space=\ *)
1270 sed -n \
1271 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273 ;;
1274 *)
1275 sed -n \
1276 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277 ;;
1278 esac;
1279}
1280 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001281
1282 cat <<\_ASBOX
1283## ----------------- ##
1284## Output variables. ##
1285## ----------------- ##
1286_ASBOX
1287 echo
1288 for ac_var in $ac_subst_vars
1289 do
1290 eval ac_val=$`echo $ac_var`
1291 echo "$ac_var='"'"'$ac_val'"'"'"
1292 done | sort
1293 echo
1294
1295 if test -n "$ac_subst_files"; then
1296 cat <<\_ASBOX
1297## ------------- ##
1298## Output files. ##
1299## ------------- ##
1300_ASBOX
1301 echo
1302 for ac_var in $ac_subst_files
1303 do
1304 eval ac_val=$`echo $ac_var`
1305 echo "$ac_var='"'"'$ac_val'"'"'"
1306 done | sort
1307 echo
1308 fi
1309
John Criswell7a73b802003-06-30 21:59:07 +00001310 if test -s confdefs.h; then
1311 cat <<\_ASBOX
1312## ----------- ##
1313## confdefs.h. ##
1314## ----------- ##
1315_ASBOX
1316 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001317 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001318 echo
1319 fi
1320 test "$ac_signal" != 0 &&
1321 echo "$as_me: caught signal $ac_signal"
1322 echo "$as_me: exit $exit_status"
1323 } >&5
1324 rm -f core core.* *.core &&
1325 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326 exit $exit_status
1327 ' 0
1328for ac_signal in 1 2 13 15; do
1329 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330done
1331ac_signal=0
1332
1333# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334rm -rf conftest* confdefs.h
1335# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336echo >confdefs.h
1337
1338# Predefined preprocessor variables.
1339
1340cat >>confdefs.h <<_ACEOF
1341#define PACKAGE_NAME "$PACKAGE_NAME"
1342_ACEOF
1343
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_STRING "$PACKAGE_STRING"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362_ACEOF
1363
1364
1365# Let the site file select an alternate cache file if it wants to.
1366# Prefer explicitly selected file to automatically selected ones.
1367if test -z "$CONFIG_SITE"; then
1368 if test "x$prefix" != xNONE; then
1369 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370 else
1371 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372 fi
1373fi
1374for ac_site_file in $CONFIG_SITE; do
1375 if test -r "$ac_site_file"; then
1376 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377echo "$as_me: loading site script $ac_site_file" >&6;}
1378 sed 's/^/| /' "$ac_site_file" >&5
1379 . "$ac_site_file"
1380 fi
1381done
1382
1383if test -r "$cache_file"; then
1384 # Some versions of bash will fail to source /dev/null (special
1385 # files actually), so we avoid doing that.
1386 if test -f "$cache_file"; then
1387 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388echo "$as_me: loading cache $cache_file" >&6;}
1389 case $cache_file in
1390 [\\/]* | ?:[\\/]* ) . $cache_file;;
1391 *) . ./$cache_file;;
1392 esac
1393 fi
1394else
1395 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396echo "$as_me: creating cache $cache_file" >&6;}
1397 >$cache_file
1398fi
1399
1400# Check that the precious variables saved in the cache have kept the same
1401# value.
1402ac_cache_corrupted=false
1403for ac_var in `(set) 2>&1 |
1404 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406 eval ac_new_set=\$ac_env_${ac_var}_set
1407 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408 eval ac_new_val="\$ac_env_${ac_var}_value"
1409 case $ac_old_set,$ac_new_set in
1410 set,)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,set)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,);;
1419 *)
1420 if test "x$ac_old_val" != "x$ac_new_val"; then
1421 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1424echo "$as_me: former value: $ac_old_val" >&2;}
1425 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1426echo "$as_me: current value: $ac_new_val" >&2;}
1427 ac_cache_corrupted=:
1428 fi;;
1429 esac
1430 # Pass precious variables to config.status.
1431 if test "$ac_new_set" = set; then
1432 case $ac_new_val in
1433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435 *) ac_arg=$ac_var=$ac_new_val ;;
1436 esac
1437 case " $ac_configure_args " in
1438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1439 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440 esac
1441 fi
1442done
1443if $ac_cache_corrupted; then
1444 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448 { (exit 1); exit 1; }; }
1449fi
1450
1451ac_ext=c
1452ac_cpp='$CPP $CPPFLAGS'
1453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
John Criswell0c38eaf2003-09-10 15:17:25 +00001483
John Criswell7a73b802003-06-30 21:59:07 +00001484ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001485for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001486 if test -f $ac_dir/install-sh; then
1487 ac_aux_dir=$ac_dir
1488 ac_install_sh="$ac_aux_dir/install-sh -c"
1489 break
1490 elif test -f $ac_dir/install.sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install.sh -c"
1493 break
1494 elif test -f $ac_dir/shtool; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/shtool install -c"
1497 break
1498 fi
1499done
1500if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001501 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1502echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001503 { (exit 1); exit 1; }; }
1504fi
1505ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1508
John Criswell392aaa32003-07-22 19:18:09 +00001509
John Criswell1b824322003-09-15 17:19:42 +00001510if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001511then
John Criswell1b824322003-09-15 17:19:42 +00001512 if test -f ${srcdir}/include/Config/config.h
1513 then
1514 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001515echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1516 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001517 fi
John Criswell93e1c722003-09-15 17:04:06 +00001518fi
1519
John Criswell33a911a2003-11-25 20:36:46 +00001520for i in `ls ${srcdir}/projects`
1521do
1522 if test ${i} != "CVS"
1523 then
John Criswell2f2741b2003-12-12 20:15:23 +00001524 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001525 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001526
1527
John Criswell33a911a2003-11-25 20:36:46 +00001528subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001529
John Criswell33a911a2003-11-25 20:36:46 +00001530 fi
1531 fi
1532done
John Criswell559a6c12003-09-30 16:31:48 +00001533
John Criswell0c38eaf2003-09-10 15:17:25 +00001534 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001537
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswellf424d742003-10-07 21:13:47 +00001554 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1555
1556
1557 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell613758d2003-09-11 18:03:50 +00001614 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
Misha Brukman811ce9f2003-11-12 22:16:51 +00001623 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1624
1625
1626 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1627
1628
1629 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1630
1631
1632 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1633
1634
1635 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1636
1637
1638 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1639
1640
1641 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1642
1643
1644 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1645
1646
1647 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1648
1649
1650 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1651
1652
1653 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1654
1655
1656 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1657
1658
1659 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
Brian Gaekec45be042003-10-07 06:01:34 +00001671 ac_config_commands="$ac_config_commands utils/Makefile"
1672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell392aaa32003-07-22 19:18:09 +00001677
John Criswell7a73b802003-06-30 21:59:07 +00001678# Find a good install program. We prefer a C program (faster),
1679# so one script is as good as another. But avoid the broken or
1680# incompatible versions:
1681# SysV /etc/install, /usr/sbin/install
1682# SunOS /usr/etc/install
1683# IRIX /sbin/install
1684# AIX /bin/install
1685# AmigaOS /C/install, which installs bootblocks on floppy discs
1686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1689# ./install, which can be erroneously created by make from ./install.sh.
1690echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692if test -z "$INSTALL"; then
1693if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1702case $as_dir/ in
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 /usr/ucb/* ) ;;
1706 *)
1707 # OSF1 and SCO ODT 3.0 have their own names for install.
1708 # Don't use installbsd from OSF since it installs stuff as root
1709 # by default.
1710 for ac_prog in ginstall scoinst install; do
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1713 if test $ac_prog = install &&
1714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1715 # AIX install. It has an incompatible calling convention.
1716 :
1717 elif test $ac_prog = install &&
1718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1719 # program-specific install script used by HP pwplus--don't use.
1720 :
1721 else
1722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1723 break 3
1724 fi
1725 fi
1726 done
1727 done
1728 ;;
1729esac
1730done
1731
1732
1733fi
1734 if test "${ac_cv_path_install+set}" = set; then
1735 INSTALL=$ac_cv_path_install
1736 else
1737 # As a last resort, use the slow shell script. We don't cache a
1738 # path for INSTALL within a source directory, because that will
1739 # break other packages using the cache if that directory is
1740 # removed, or if the path is relative.
1741 INSTALL=$ac_install_sh
1742 fi
1743fi
1744echo "$as_me:$LINENO: result: $INSTALL" >&5
1745echo "${ECHO_T}$INSTALL" >&6
1746
1747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1748# It thinks the first close brace ends the variable substitution.
1749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1750
1751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1752
1753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1754
1755
1756# Make sure we can run config.sub.
1757$ac_config_sub sun4 >/dev/null 2>&1 ||
1758 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1759echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762echo "$as_me:$LINENO: checking build system type" >&5
1763echo $ECHO_N "checking build system type... $ECHO_C" >&6
1764if test "${ac_cv_build+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767 ac_cv_build_alias=$build_alias
1768test -z "$ac_cv_build_alias" &&
1769 ac_cv_build_alias=`$ac_config_guess`
1770test -z "$ac_cv_build_alias" &&
1771 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1772echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1773 { (exit 1); exit 1; }; }
1774ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1775 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1776echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1777 { (exit 1); exit 1; }; }
1778
1779fi
1780echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1781echo "${ECHO_T}$ac_cv_build" >&6
1782build=$ac_cv_build
1783build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786
1787
1788echo "$as_me:$LINENO: checking host system type" >&5
1789echo $ECHO_N "checking host system type... $ECHO_C" >&6
1790if test "${ac_cv_host+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 ac_cv_host_alias=$host_alias
1794test -z "$ac_cv_host_alias" &&
1795 ac_cv_host_alias=$ac_cv_build_alias
1796ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1797 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1798echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1799 { (exit 1); exit 1; }; }
1800
1801fi
1802echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1803echo "${ECHO_T}$ac_cv_host" >&6
1804host=$ac_cv_host
1805host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1808
1809
1810echo "$as_me:$LINENO: checking target system type" >&5
1811echo $ECHO_N "checking target system type... $ECHO_C" >&6
1812if test "${ac_cv_target+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 ac_cv_target_alias=$target_alias
1816test "x$ac_cv_target_alias" = "x" &&
1817 ac_cv_target_alias=$ac_cv_host_alias
1818ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1819 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1820echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1821 { (exit 1); exit 1; }; }
1822
1823fi
1824echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1825echo "${ECHO_T}$ac_cv_target" >&6
1826target=$ac_cv_target
1827target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1828target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1829target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1830
1831
1832# The aliases save the names the user supplied, while $host etc.
1833# will get canonicalized.
1834test -n "$target_alias" &&
1835 test "$program_prefix$program_suffix$program_transform_name" = \
1836 NONENONEs,x,x, &&
1837 program_prefix=${target_alias}-
1838
1839case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001840 *-*-linux*)
1841 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001842
Brian Gaekef3b24102003-11-16 18:38:14 +00001843 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1844 then
1845 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001846
Brian Gaekef3b24102003-11-16 18:38:14 +00001847 fi
John Criswell7a73b802003-06-30 21:59:07 +00001848 ;;
1849
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001850 *-*-solaris*)
1851 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001852
Brian Gaekef3b24102003-11-16 18:38:14 +00001853 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1854 then
1855 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001856
Brian Gaekef3b24102003-11-16 18:38:14 +00001857 fi
John Criswell7a73b802003-06-30 21:59:07 +00001858 ;;
1859
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001860 *-*-darwin*)
1861 OS=Darwin
1862
1863 ;;
1864
John Criswell7a73b802003-06-30 21:59:07 +00001865 *) OS=Unknown
1866
1867 ;;
1868esac
1869
1870case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001871 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001872
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001873 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001874esac
1875
John Criswell76595452003-07-01 22:07:39 +00001876case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001877 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001878
1879 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001880 sparc*-*) ARCH=Sparc
1881
1882 ;;
1883 powerpc*-*) ARCH=PowerPC
1884
1885 ;;
1886 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001887
1888 ;;
1889esac
1890
John Criswell7a73b802003-06-30 21:59:07 +00001891ac_ext=cc
1892ac_cpp='$CXXCPP $CPPFLAGS'
1893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1896if test -n "$ac_tool_prefix"; then
1897 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1898 do
1899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_CXX+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906 if test -n "$CXX"; then
1907 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912 IFS=$as_save_IFS
1913 test -z "$as_dir" && as_dir=.
1914 for ac_exec_ext in '' $ac_executable_extensions; do
1915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 break 2
1919 fi
1920done
1921done
1922
1923fi
1924fi
1925CXX=$ac_cv_prog_CXX
1926if test -n "$CXX"; then
1927 echo "$as_me:$LINENO: result: $CXX" >&5
1928echo "${ECHO_T}$CXX" >&6
1929else
1930 echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6
1932fi
1933
1934 test -n "$CXX" && break
1935 done
1936fi
1937if test -z "$CXX"; then
1938 ac_ct_CXX=$CXX
1939 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1940do
1941 # Extract the first word of "$ac_prog", so it can be a program name with args.
1942set dummy $ac_prog; ac_word=$2
1943echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 if test -n "$ac_ct_CXX"; then
1949 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1950else
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_ac_ct_CXX="$ac_prog"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 break 2
1961 fi
1962done
1963done
1964
1965fi
1966fi
1967ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1968if test -n "$ac_ct_CXX"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1970echo "${ECHO_T}$ac_ct_CXX" >&6
1971else
1972 echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974fi
1975
1976 test -n "$ac_ct_CXX" && break
1977done
1978test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1979
1980 CXX=$ac_ct_CXX
1981fi
1982
1983
1984# Provide some information about the compiler.
1985echo "$as_me:$LINENO:" \
1986 "checking for C++ compiler version" >&5
1987ac_compiler=`set X $ac_compile; echo $2`
1988{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1989 (eval $ac_compiler --version </dev/null >&5) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }
1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1994 (eval $ac_compiler -v </dev/null >&5) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); }
1998{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1999 (eval $ac_compiler -V </dev/null >&5) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003
2004cat >conftest.$ac_ext <<_ACEOF
2005#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002006/* confdefs.h. */
2007_ACEOF
2008cat confdefs.h >>conftest.$ac_ext
2009cat >>conftest.$ac_ext <<_ACEOF
2010/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002011
John Criswell7a73b802003-06-30 21:59:07 +00002012int
2013main ()
2014{
2015
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002021ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002022# Try to create an executable without -o first, disregard a.out.
2023# It will help us diagnose broken compilers, and finding out an intuition
2024# of exeext.
2025echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2026echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2027ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2028if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2029 (eval $ac_link_default) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 # Find the output, starting from the most likely. This scheme is
2034# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2035# resort.
2036
2037# Be careful to initialize this variable, since it used to be cached.
2038# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2039ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002040# b.out is created by i960 compilers.
2041for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2042do
2043 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002044 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2046 ;;
2047 conftest.$ac_ext )
2048 # This is the source file.
2049 ;;
2050 [ab].out )
2051 # We found the default executable, but exeext='' is most
2052 # certainly right.
2053 break;;
2054 *.* )
2055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056 # FIXME: I believe we export ac_cv_exeext for Libtool,
2057 # but it would be cool to find out if it's true. Does anybody
2058 # maintain Libtool? --akim.
2059 export ac_cv_exeext
2060 break;;
2061 * )
2062 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002063 esac
2064done
2065else
2066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002067sed 's/^/| /' conftest.$ac_ext >&5
2068
2069{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: C++ compiler cannot create executables
2072See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002073 { (exit 77); exit 77; }; }
2074fi
2075
2076ac_exeext=$ac_cv_exeext
2077echo "$as_me:$LINENO: result: $ac_file" >&5
2078echo "${ECHO_T}$ac_file" >&6
2079
2080# Check the compiler produces executables we can run. If not, either
2081# the compiler is broken, or we cross compile.
2082echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2083echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2084# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2085# If not cross compiling, check that we can run a simple program.
2086if test "$cross_compiling" != yes; then
2087 if { ac_try='./$ac_file'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 (eval $ac_try) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2093 cross_compiling=no
2094 else
2095 if test "$cross_compiling" = maybe; then
2096 cross_compiling=yes
2097 else
2098 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002099If you meant to cross compile, use \`--host'.
2100See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002101echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002102If you meant to cross compile, use \`--host'.
2103See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002104 { (exit 1); exit 1; }; }
2105 fi
2106 fi
2107fi
2108echo "$as_me:$LINENO: result: yes" >&5
2109echo "${ECHO_T}yes" >&6
2110
John Criswell0c38eaf2003-09-10 15:17:25 +00002111rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002112ac_clean_files=$ac_clean_files_save
2113# Check the compiler produces executables we can run. If not, either
2114# the compiler is broken, or we cross compile.
2115echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2116echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2117echo "$as_me:$LINENO: result: $cross_compiling" >&5
2118echo "${ECHO_T}$cross_compiling" >&6
2119
2120echo "$as_me:$LINENO: checking for suffix of executables" >&5
2121echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2123 (eval $ac_link) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2128# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2129# work properly (i.e., refer to `conftest.exe'), while it won't with
2130# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002131for ac_file in conftest.exe conftest conftest.*; do
2132 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002133 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136 export ac_cv_exeext
2137 break;;
2138 * ) break;;
2139 esac
2140done
2141else
John Criswell0c38eaf2003-09-10 15:17:25 +00002142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2145See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002146 { (exit 1); exit 1; }; }
2147fi
2148
2149rm -f conftest$ac_cv_exeext
2150echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2151echo "${ECHO_T}$ac_cv_exeext" >&6
2152
2153rm -f conftest.$ac_ext
2154EXEEXT=$ac_cv_exeext
2155ac_exeext=$EXEEXT
2156echo "$as_me:$LINENO: checking for suffix of object files" >&5
2157echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2158if test "${ac_cv_objext+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161 cat >conftest.$ac_ext <<_ACEOF
2162#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002163/* confdefs.h. */
2164_ACEOF
2165cat confdefs.h >>conftest.$ac_ext
2166cat >>conftest.$ac_ext <<_ACEOF
2167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002168
John Criswell7a73b802003-06-30 21:59:07 +00002169int
2170main ()
2171{
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177rm -f conftest.o conftest.obj
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2184 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2187 break;;
2188 esac
2189done
2190else
2191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2195See \`config.log' for more details." >&5
2196echo "$as_me: error: cannot compute suffix of object files: cannot compile
2197See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002198 { (exit 1); exit 1; }; }
2199fi
2200
2201rm -f conftest.$ac_cv_objext conftest.$ac_ext
2202fi
2203echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2204echo "${ECHO_T}$ac_cv_objext" >&6
2205OBJEXT=$ac_cv_objext
2206ac_objext=$OBJEXT
2207echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2208echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2209if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211else
2212 cat >conftest.$ac_ext <<_ACEOF
2213#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002214/* confdefs.h. */
2215_ACEOF
2216cat confdefs.h >>conftest.$ac_ext
2217cat >>conftest.$ac_ext <<_ACEOF
2218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002219
John Criswell7a73b802003-06-30 21:59:07 +00002220int
2221main ()
2222{
2223#ifndef __GNUC__
2224 choke me
2225#endif
2226
2227 ;
2228 return 0;
2229}
2230_ACEOF
2231rm -f conftest.$ac_objext
2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233 (eval $ac_compile) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 ac_compiler_gnu=yes
2244else
2245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002246sed 's/^/| /' conftest.$ac_ext >&5
2247
John Criswell7a73b802003-06-30 21:59:07 +00002248ac_compiler_gnu=no
2249fi
2250rm -f conftest.$ac_objext conftest.$ac_ext
2251ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2252
2253fi
2254echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2255echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2256GXX=`test $ac_compiler_gnu = yes && echo yes`
2257ac_test_CXXFLAGS=${CXXFLAGS+set}
2258ac_save_CXXFLAGS=$CXXFLAGS
2259CXXFLAGS="-g"
2260echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2261echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2262if test "${ac_cv_prog_cxx_g+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264else
2265 cat >conftest.$ac_ext <<_ACEOF
2266#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002267/* confdefs.h. */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002272
John Criswell7a73b802003-06-30 21:59:07 +00002273int
2274main ()
2275{
2276
2277 ;
2278 return 0;
2279}
2280_ACEOF
2281rm -f conftest.$ac_objext
2282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 ac_cv_prog_cxx_g=yes
2294else
2295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002296sed 's/^/| /' conftest.$ac_ext >&5
2297
John Criswell7a73b802003-06-30 21:59:07 +00002298ac_cv_prog_cxx_g=no
2299fi
2300rm -f conftest.$ac_objext conftest.$ac_ext
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2303echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2304if test "$ac_test_CXXFLAGS" = set; then
2305 CXXFLAGS=$ac_save_CXXFLAGS
2306elif test $ac_cv_prog_cxx_g = yes; then
2307 if test "$GXX" = yes; then
2308 CXXFLAGS="-g -O2"
2309 else
2310 CXXFLAGS="-g"
2311 fi
2312else
2313 if test "$GXX" = yes; then
2314 CXXFLAGS="-O2"
2315 else
2316 CXXFLAGS=
2317 fi
2318fi
2319for ac_declaration in \
2320 ''\
2321 '#include <stdlib.h>' \
2322 'extern "C" void std::exit (int) throw (); using std::exit;' \
2323 'extern "C" void std::exit (int); using std::exit;' \
2324 'extern "C" void exit (int) throw ();' \
2325 'extern "C" void exit (int);' \
2326 'void exit (int);'
2327do
2328 cat >conftest.$ac_ext <<_ACEOF
2329#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002330/* confdefs.h. */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002335#include <stdlib.h>
2336$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002337int
2338main ()
2339{
2340exit (42);
2341 ;
2342 return 0;
2343}
2344_ACEOF
2345rm -f conftest.$ac_objext
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2357 :
2358else
2359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002360sed 's/^/| /' conftest.$ac_ext >&5
2361
John Criswell7a73b802003-06-30 21:59:07 +00002362continue
2363fi
2364rm -f conftest.$ac_objext conftest.$ac_ext
2365 cat >conftest.$ac_ext <<_ACEOF
2366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376exit (42);
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 break
2394else
2395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002396sed 's/^/| /' conftest.$ac_ext >&5
2397
John Criswell7a73b802003-06-30 21:59:07 +00002398fi
2399rm -f conftest.$ac_objext conftest.$ac_ext
2400done
2401rm -f conftest*
2402if test -n "$ac_declaration"; then
2403 echo '#ifdef __cplusplus' >>confdefs.h
2404 echo $ac_declaration >>confdefs.h
2405 echo '#endif' >>confdefs.h
2406fi
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414ac_ext=c
2415ac_cpp='$CPP $CPPFLAGS'
2416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419if test -n "$ac_tool_prefix"; then
2420 for ac_prog in gcc
2421 do
2422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2423set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2424echo "$as_me:$LINENO: checking for $ac_word" >&5
2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443done
2444done
2445
2446fi
2447fi
2448CC=$ac_cv_prog_CC
2449if test -n "$CC"; then
2450 echo "$as_me:$LINENO: result: $CC" >&5
2451echo "${ECHO_T}$CC" >&6
2452else
2453 echo "$as_me:$LINENO: result: no" >&5
2454echo "${ECHO_T}no" >&6
2455fi
2456
2457 test -n "$CC" && break
2458 done
2459fi
2460if test -z "$CC"; then
2461 ac_ct_CC=$CC
2462 for ac_prog in gcc
2463do
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465set dummy $ac_prog; ac_word=$2
2466echo "$as_me:$LINENO: checking for $ac_word" >&5
2467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471 if test -n "$ac_ct_CC"; then
2472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481 ac_cv_prog_ac_ct_CC="$ac_prog"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485done
2486done
2487
2488fi
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
2492 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493echo "${ECHO_T}$ac_ct_CC" >&6
2494else
2495 echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6
2497fi
2498
2499 test -n "$ac_ct_CC" && break
2500done
2501
2502 CC=$ac_ct_CC
2503fi
2504
2505
John Criswell0c38eaf2003-09-10 15:17:25 +00002506test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2507See \`config.log' for more details." >&5
2508echo "$as_me: error: no acceptable C compiler found in \$PATH
2509See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002510 { (exit 1); exit 1; }; }
2511
2512# Provide some information about the compiler.
2513echo "$as_me:$LINENO:" \
2514 "checking for C compiler version" >&5
2515ac_compiler=`set X $ac_compile; echo $2`
2516{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531
2532echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2534if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537 cat >conftest.$ac_ext <<_ACEOF
2538#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002539/* confdefs.h. */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002544
John Criswell7a73b802003-06-30 21:59:07 +00002545int
2546main ()
2547{
2548#ifndef __GNUC__
2549 choke me
2550#endif
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>&5
2559 ac_status=$?
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2568 ac_compiler_gnu=yes
2569else
2570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002571sed 's/^/| /' conftest.$ac_ext >&5
2572
John Criswell7a73b802003-06-30 21:59:07 +00002573ac_compiler_gnu=no
2574fi
2575rm -f conftest.$ac_objext conftest.$ac_ext
2576ac_cv_c_compiler_gnu=$ac_compiler_gnu
2577
2578fi
2579echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2580echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2581GCC=`test $ac_compiler_gnu = yes && echo yes`
2582ac_test_CFLAGS=${CFLAGS+set}
2583ac_save_CFLAGS=$CFLAGS
2584CFLAGS="-g"
2585echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2586echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2587if test "${ac_cv_prog_cc_g+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589else
2590 cat >conftest.$ac_ext <<_ACEOF
2591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002597
John Criswell7a73b802003-06-30 21:59:07 +00002598int
2599main ()
2600{
2601
2602 ;
2603 return 0;
2604}
2605_ACEOF
2606rm -f conftest.$ac_objext
2607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608 (eval $ac_compile) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 ac_cv_prog_cc_g=yes
2619else
2620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002621sed 's/^/| /' conftest.$ac_ext >&5
2622
John Criswell7a73b802003-06-30 21:59:07 +00002623ac_cv_prog_cc_g=no
2624fi
2625rm -f conftest.$ac_objext conftest.$ac_ext
2626fi
2627echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2628echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2629if test "$ac_test_CFLAGS" = set; then
2630 CFLAGS=$ac_save_CFLAGS
2631elif test $ac_cv_prog_cc_g = yes; then
2632 if test "$GCC" = yes; then
2633 CFLAGS="-g -O2"
2634 else
2635 CFLAGS="-g"
2636 fi
2637else
2638 if test "$GCC" = yes; then
2639 CFLAGS="-O2"
2640 else
2641 CFLAGS=
2642 fi
2643fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002644echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2645echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2646if test "${ac_cv_prog_cc_stdc+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
2649 ac_cv_prog_cc_stdc=no
2650ac_save_CC=$CC
2651cat >conftest.$ac_ext <<_ACEOF
2652#line $LINENO "configure"
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h. */
2658#include <stdarg.h>
2659#include <stdio.h>
2660#include <sys/types.h>
2661#include <sys/stat.h>
2662/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2663struct buf { int x; };
2664FILE * (*rcsopen) (struct buf *, struct stat *, int);
2665static char *e (p, i)
2666 char **p;
2667 int i;
2668{
2669 return p[i];
2670}
2671static char *f (char * (*g) (char **, int), char **p, ...)
2672{
2673 char *s;
2674 va_list v;
2675 va_start (v,p);
2676 s = g (p, va_arg (v,int));
2677 va_end (v);
2678 return s;
2679}
2680int test (int i, double x);
2681struct s1 {int (*f) (int a);};
2682struct s2 {int (*f) (double a);};
2683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684int argc;
2685char **argv;
2686int
2687main ()
2688{
2689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694# Don't try gcc -ansi; that turns off useful extensions and
2695# breaks some systems' header files.
2696# AIX -qlanglvl=ansi
2697# Ultrix and OSF/1 -std1
2698# HP-UX 10.20 and later -Ae
2699# HP-UX older versions -Aa -D_HPUX_SOURCE
2700# SVR4 -Xc -D__EXTENSIONS__
2701for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702do
2703 CC="$ac_save_CC $ac_arg"
2704 rm -f conftest.$ac_objext
2705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 ac_cv_prog_cc_stdc=$ac_arg
2717break
2718else
2719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.$ac_objext
2724done
2725rm -f conftest.$ac_ext conftest.$ac_objext
2726CC=$ac_save_CC
2727
2728fi
2729
2730case "x$ac_cv_prog_cc_stdc" in
2731 x|xno)
2732 echo "$as_me:$LINENO: result: none needed" >&5
2733echo "${ECHO_T}none needed" >&6 ;;
2734 *)
2735 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2736echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2737 CC="$CC $ac_cv_prog_cc_stdc" ;;
2738esac
2739
John Criswell7a73b802003-06-30 21:59:07 +00002740# Some people use a C++ compiler to compile C. Since we use `exit',
2741# in C++ we need to declare it. In case someone uses the same compiler
2742# for both compiling C and C++ we need to have the C++ compiler decide
2743# the declaration of exit, since it's the most demanding environment.
2744cat >conftest.$ac_ext <<_ACEOF
2745#ifndef __cplusplus
2746 choke me
2747#endif
2748_ACEOF
2749rm -f conftest.$ac_objext
2750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 (eval $ac_try) 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 for ac_declaration in \
2762 ''\
2763 '#include <stdlib.h>' \
2764 'extern "C" void std::exit (int) throw (); using std::exit;' \
2765 'extern "C" void std::exit (int); using std::exit;' \
2766 'extern "C" void exit (int) throw ();' \
2767 'extern "C" void exit (int);' \
2768 'void exit (int);'
2769do
2770 cat >conftest.$ac_ext <<_ACEOF
2771#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002777#include <stdlib.h>
2778$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002779int
2780main ()
2781{
2782exit (42);
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 :
2800else
2801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002802sed 's/^/| /' conftest.$ac_ext >&5
2803
John Criswell7a73b802003-06-30 21:59:07 +00002804continue
2805fi
2806rm -f conftest.$ac_objext conftest.$ac_ext
2807 cat >conftest.$ac_ext <<_ACEOF
2808#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002809/* confdefs.h. */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002814$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002815int
2816main ()
2817{
2818exit (42);
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 break
2836else
2837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002838sed 's/^/| /' conftest.$ac_ext >&5
2839
John Criswell7a73b802003-06-30 21:59:07 +00002840fi
2841rm -f conftest.$ac_objext conftest.$ac_ext
2842done
2843rm -f conftest*
2844if test -n "$ac_declaration"; then
2845 echo '#ifdef __cplusplus' >>confdefs.h
2846 echo $ac_declaration >>confdefs.h
2847 echo '#endif' >>confdefs.h
2848fi
2849
2850else
2851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002852sed 's/^/| /' conftest.$ac_ext >&5
2853
John Criswell7a73b802003-06-30 21:59:07 +00002854fi
2855rm -f conftest.$ac_objext conftest.$ac_ext
2856ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861
2862ac_ext=c
2863ac_cpp='$CPP $CPPFLAGS'
2864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2868echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2869# On Suns, sometimes $CPP names a directory.
2870if test -n "$CPP" && test -d "$CPP"; then
2871 CPP=
2872fi
2873if test -z "$CPP"; then
2874 if test "${ac_cv_prog_CPP+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 # Double quotes because CPP needs to be expanded
2878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2879 do
2880 ac_preproc_ok=false
2881for ac_c_preproc_warn_flag in '' yes
2882do
2883 # Use a header file that comes with gcc, so configuring glibc
2884 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002887 # On the NeXT, cc -E runs the code through the compiler's parser,
2888 # not just through cpp. "Syntax error" is here to catch this case.
2889 cat >conftest.$ac_ext <<_ACEOF
2890#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
2896#ifdef __STDC__
2897# include <limits.h>
2898#else
2899# include <assert.h>
2900#endif
John Criswell7a73b802003-06-30 21:59:07 +00002901 Syntax error
2902_ACEOF
2903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2905 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002906 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002907 rm -f conftest.er1
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } >/dev/null; then
2911 if test -s conftest.err; then
2912 ac_cpp_err=$ac_c_preproc_warn_flag
2913 else
2914 ac_cpp_err=
2915 fi
2916else
2917 ac_cpp_err=yes
2918fi
2919if test -z "$ac_cpp_err"; then
2920 :
2921else
2922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002923sed 's/^/| /' conftest.$ac_ext >&5
2924
John Criswell7a73b802003-06-30 21:59:07 +00002925 # Broken: fails on valid input.
2926continue
2927fi
2928rm -f conftest.err conftest.$ac_ext
2929
2930 # OK, works on sane cases. Now check whether non-existent headers
2931 # can be detected and how.
2932 cat >conftest.$ac_ext <<_ACEOF
2933#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002939#include <ac_nonexistent.h>
2940_ACEOF
2941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2943 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002944 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } >/dev/null; then
2949 if test -s conftest.err; then
2950 ac_cpp_err=$ac_c_preproc_warn_flag
2951 else
2952 ac_cpp_err=
2953 fi
2954else
2955 ac_cpp_err=yes
2956fi
2957if test -z "$ac_cpp_err"; then
2958 # Broken: success on invalid input.
2959continue
2960else
2961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
John Criswell7a73b802003-06-30 21:59:07 +00002964 # Passes both tests.
2965ac_preproc_ok=:
2966break
2967fi
2968rm -f conftest.err conftest.$ac_ext
2969
2970done
2971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2972rm -f conftest.err conftest.$ac_ext
2973if $ac_preproc_ok; then
2974 break
2975fi
2976
2977 done
2978 ac_cv_prog_CPP=$CPP
2979
2980fi
2981 CPP=$ac_cv_prog_CPP
2982else
2983 ac_cv_prog_CPP=$CPP
2984fi
2985echo "$as_me:$LINENO: result: $CPP" >&5
2986echo "${ECHO_T}$CPP" >&6
2987ac_preproc_ok=false
2988for ac_c_preproc_warn_flag in '' yes
2989do
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
3003#ifdef __STDC__
3004# include <limits.h>
3005#else
3006# include <assert.h>
3007#endif
John Criswell7a73b802003-06-30 21:59:07 +00003008 Syntax error
3009_ACEOF
3010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003013 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3020 else
3021 ac_cpp_err=
3022 fi
3023else
3024 ac_cpp_err=yes
3025fi
3026if test -z "$ac_cpp_err"; then
3027 :
3028else
3029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003030sed 's/^/| /' conftest.$ac_ext >&5
3031
John Criswell7a73b802003-06-30 21:59:07 +00003032 # Broken: fails on valid input.
3033continue
3034fi
3035rm -f conftest.err conftest.$ac_ext
3036
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3040#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003041/* confdefs.h. */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003046#include <ac_nonexistent.h>
3047_ACEOF
3048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003051 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 else
3059 ac_cpp_err=
3060 fi
3061else
3062 ac_cpp_err=yes
3063fi
3064if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3066continue
3067else
3068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003069sed 's/^/| /' conftest.$ac_ext >&5
3070
John Criswell7a73b802003-06-30 21:59:07 +00003071 # Passes both tests.
3072ac_preproc_ok=:
3073break
3074fi
3075rm -f conftest.err conftest.$ac_ext
3076
3077done
3078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079rm -f conftest.err conftest.$ac_ext
3080if $ac_preproc_ok; then
3081 :
3082else
John Criswell0c38eaf2003-09-10 15:17:25 +00003083 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3084See \`config.log' for more details." >&5
3085echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3086See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003087 { (exit 1); exit 1; }; }
3088fi
3089
3090ac_ext=c
3091ac_cpp='$CPP $CPPFLAGS'
3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096
3097if test "$GCC" != "yes"
3098then
3099 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3100echo "$as_me: error: gcc required but not found" >&2;}
3101 { (exit 1); exit 1; }; }
3102fi
John Criswell7a73b802003-06-30 21:59:07 +00003103if test "$GXX" != "yes"
3104then
3105 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3106echo "$as_me: error: g++ required but not found" >&2;}
3107 { (exit 1); exit 1; }; }
3108fi
3109
John Criswellde00db22003-08-25 16:49:54 +00003110gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3111if test "$gccmajor" -lt "3"
3112then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003113 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3114echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003115 { (exit 1); exit 1; }; }
3116fi
3117
John Criswell7a73b802003-06-30 21:59:07 +00003118 echo "$as_me:$LINENO: checking for GNU make" >&5
3119echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3120if test "${_cv_gnu_make_command+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123 _cv_gnu_make_command='' ;
3124 for a in "$MAKE" make gmake gnumake ; do
3125 if test -z "$a" ; then continue ; fi ;
3126 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3127 _cv_gnu_make_command=$a ;
3128 break;
3129 fi
3130 done ;
3131
3132fi
3133echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3134echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3135 if test "x$_cv_gnu_make_command" != "x" ; then
3136 ifGNUmake='' ;
3137 else
3138 ifGNUmake='#' ;
3139 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3140echo "${ECHO_T}\"Not found\"" >&6;
3141 fi
3142
3143
3144if test -z "$_cv_gnu_make_command"
3145then
3146 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3147echo "$as_me: error: GNU Make required but not found" >&2;}
3148 { (exit 1); exit 1; }; }
3149fi
3150
3151
3152echo "$as_me:$LINENO: checking " >&5
3153echo $ECHO_N "checking ... $ECHO_C" >&6
3154if test "${ac_cv_has_flex+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157 for ac_prog in flex lex
3158do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_LEX+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166 if test -n "$LEX"; then
3167 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_LEX="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181done
3182
3183fi
3184fi
3185LEX=$ac_cv_prog_LEX
3186if test -n "$LEX"; then
3187 echo "$as_me:$LINENO: result: $LEX" >&5
3188echo "${ECHO_T}$LEX" >&6
3189else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194 test -n "$LEX" && break
3195done
3196test -n "$LEX" || LEX=":"
3197
3198if test -z "$LEXLIB"
3199then
3200 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3201echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3202if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 ac_check_lib_save_LIBS=$LIBS
3206LIBS="-lfl $LIBS"
3207cat >conftest.$ac_ext <<_ACEOF
3208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003209/* confdefs.h. */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003214
3215/* Override any gcc2 internal prototype to avoid an error. */
3216#ifdef __cplusplus
3217extern "C"
3218#endif
3219/* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3221char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003222int
3223main ()
3224{
3225yywrap ();
3226 ;
3227 return 0;
3228}
3229_ACEOF
3230rm -f conftest.$ac_objext conftest$ac_exeext
3231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_fl_yywrap=yes
3243else
3244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003245sed 's/^/| /' conftest.$ac_ext >&5
3246
John Criswell7a73b802003-06-30 21:59:07 +00003247ac_cv_lib_fl_yywrap=no
3248fi
3249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3250LIBS=$ac_check_lib_save_LIBS
3251fi
3252echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3253echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3254if test $ac_cv_lib_fl_yywrap = yes; then
3255 LEXLIB="-lfl"
3256else
3257 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3258echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3259if test "${ac_cv_lib_l_yywrap+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262 ac_check_lib_save_LIBS=$LIBS
3263LIBS="-ll $LIBS"
3264cat >conftest.$ac_ext <<_ACEOF
3265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003271
3272/* Override any gcc2 internal prototype to avoid an error. */
3273#ifdef __cplusplus
3274extern "C"
3275#endif
3276/* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3278char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003279int
3280main ()
3281{
3282yywrap ();
3283 ;
3284 return 0;
3285}
3286_ACEOF
3287rm -f conftest.$ac_objext conftest$ac_exeext
3288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -s conftest$ac_exeext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_lib_l_yywrap=yes
3300else
3301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003302sed 's/^/| /' conftest.$ac_ext >&5
3303
John Criswell7a73b802003-06-30 21:59:07 +00003304ac_cv_lib_l_yywrap=no
3305fi
3306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3307LIBS=$ac_check_lib_save_LIBS
3308fi
3309echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3310echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3311if test $ac_cv_lib_l_yywrap = yes; then
3312 LEXLIB="-ll"
3313fi
3314
3315fi
3316
3317fi
3318
3319if test "x$LEX" != "x:"; then
3320 echo "$as_me:$LINENO: checking lex output file root" >&5
3321echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3322if test "${ac_cv_prog_lex_root+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325 # The minimal lex program is just a single line: %%. But some broken lexes
3326# (Solaris, I think it was) want two %% lines, so accommodate them.
3327cat >conftest.l <<_ACEOF
3328%%
3329%%
3330_ACEOF
3331{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3332 (eval $LEX conftest.l) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }
3336if test -f lex.yy.c; then
3337 ac_cv_prog_lex_root=lex.yy
3338elif test -f lexyy.c; then
3339 ac_cv_prog_lex_root=lexyy
3340else
3341 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3342echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3343 { (exit 1); exit 1; }; }
3344fi
3345fi
3346echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3347echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3348rm -f conftest.l
3349LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3350
3351echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3352echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3353if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355else
3356 # POSIX says lex can declare yytext either as a pointer or an array; the
3357# default is implementation-dependent. Figure out which it is, since
3358# not all implementations provide the %pointer and %array declarations.
3359ac_cv_prog_lex_yytext_pointer=no
3360echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3361ac_save_LIBS=$LIBS
3362LIBS="$LIBS $LEXLIB"
3363cat >conftest.$ac_ext <<_ACEOF
3364`cat $LEX_OUTPUT_ROOT.c`
3365_ACEOF
3366rm -f conftest.$ac_objext conftest$ac_exeext
3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_prog_lex_yytext_pointer=yes
3379else
3380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003381sed 's/^/| /' conftest.$ac_ext >&5
3382
John Criswell7a73b802003-06-30 21:59:07 +00003383fi
3384rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3385LIBS=$ac_save_LIBS
3386rm -f "${LEX_OUTPUT_ROOT}.c"
3387
3388fi
3389echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3390echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3391if test $ac_cv_prog_lex_yytext_pointer = yes; then
3392
3393cat >>confdefs.h <<\_ACEOF
3394#define YYTEXT_POINTER 1
3395_ACEOF
3396
3397fi
3398
3399fi
3400
3401fi
3402echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3403echo "${ECHO_T}$ac_cv_has_flex" >&6
3404if test "$LEX" != "flex"; then
3405 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3406echo "$as_me: error: flex not found but required" >&2;}
3407 { (exit 1); exit 1; }; }
3408fi
3409
3410echo "$as_me:$LINENO: checking " >&5
3411echo $ECHO_N "checking ... $ECHO_C" >&6
3412if test "${ac_cv_has_bison+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 for ac_prog in 'bison -y' byacc
3416do
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418set dummy $ac_prog; ac_word=$2
3419echo "$as_me:$LINENO: checking for $ac_word" >&5
3420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421if test "${ac_cv_prog_YACC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -n "$YACC"; then
3425 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_YACC="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438done
3439done
3440
3441fi
3442fi
3443YACC=$ac_cv_prog_YACC
3444if test -n "$YACC"; then
3445 echo "$as_me:$LINENO: result: $YACC" >&5
3446echo "${ECHO_T}$YACC" >&6
3447else
3448 echo "$as_me:$LINENO: result: no" >&5
3449echo "${ECHO_T}no" >&6
3450fi
3451
3452 test -n "$YACC" && break
3453done
3454test -n "$YACC" || YACC="yacc"
3455
3456
3457fi
3458echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3459echo "${ECHO_T}$ac_cv_has_bison" >&6
3460if test "$YACC" != "bison -y"; then
3461 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3462echo "$as_me: error: bison not found but required" >&2;}
3463 { (exit 1); exit 1; }; }
3464else
Brian Gaeke12810632004-01-13 06:52:10 +00003465 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003466
3467fi
3468
John Criswell7a73b802003-06-30 21:59:07 +00003469# Check whether --enable-shared or --disable-shared was given.
3470if test "${enable_shared+set}" = set; then
3471 enableval="$enable_shared"
3472 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003473 case $enableval in
3474 yes) enable_shared=yes ;;
3475 no) enable_shared=no ;;
3476 *)
3477 enable_shared=no
3478 # Look at the argument we got. We use all the common list separators.
3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480 for pkg in $enableval; do
3481 IFS="$lt_save_ifs"
3482 if test "X$pkg" = "X$p"; then
3483 enable_shared=yes
3484 fi
3485 done
3486 IFS="$lt_save_ifs"
3487 ;;
3488 esac
John Criswell7a73b802003-06-30 21:59:07 +00003489else
3490 enable_shared=yes
3491fi;
John Criswell47fdd832003-07-14 16:52:07 +00003492
John Criswell7a73b802003-06-30 21:59:07 +00003493# Check whether --enable-static or --disable-static was given.
3494if test "${enable_static+set}" = set; then
3495 enableval="$enable_static"
3496 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003497 case $enableval in
3498 yes) enable_static=yes ;;
3499 no) enable_static=no ;;
3500 *)
3501 enable_static=no
3502 # Look at the argument we got. We use all the common list separators.
3503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504 for pkg in $enableval; do
3505 IFS="$lt_save_ifs"
3506 if test "X$pkg" = "X$p"; then
3507 enable_static=yes
3508 fi
3509 done
3510 IFS="$lt_save_ifs"
3511 ;;
3512 esac
John Criswell7a73b802003-06-30 21:59:07 +00003513else
3514 enable_static=yes
3515fi;
John Criswell47fdd832003-07-14 16:52:07 +00003516
John Criswell7a73b802003-06-30 21:59:07 +00003517# Check whether --enable-fast-install or --disable-fast-install was given.
3518if test "${enable_fast_install+set}" = set; then
3519 enableval="$enable_fast_install"
3520 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003521 case $enableval in
3522 yes) enable_fast_install=yes ;;
3523 no) enable_fast_install=no ;;
3524 *)
3525 enable_fast_install=no
3526 # Look at the argument we got. We use all the common list separators.
3527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3528 for pkg in $enableval; do
3529 IFS="$lt_save_ifs"
3530 if test "X$pkg" = "X$p"; then
3531 enable_fast_install=yes
3532 fi
3533 done
3534 IFS="$lt_save_ifs"
3535 ;;
3536 esac
John Criswell7a73b802003-06-30 21:59:07 +00003537else
3538 enable_fast_install=yes
3539fi;
John Criswell47fdd832003-07-14 16:52:07 +00003540
3541echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3542echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3543if test "${lt_cv_path_SED+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 # Loop through the user's path and test for sed and gsed.
3547# Then use that list of sed's as ones to test for truncation.
3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549for as_dir in $PATH
3550do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for lt_ac_prog in sed gsed; do
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3556 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3557 fi
3558 done
3559 done
3560done
3561lt_ac_max=0
3562lt_ac_count=0
3563# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3564# along with /bin/sed that truncates output.
3565for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3566 test ! -f $lt_ac_sed && break
3567 cat /dev/null > conftest.in
3568 lt_ac_count=0
3569 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3570 # Check for GNU sed and select it if it is found.
3571 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3572 lt_cv_path_SED=$lt_ac_sed
3573 break
3574 fi
3575 while true; do
3576 cat conftest.in conftest.in >conftest.tmp
3577 mv conftest.tmp conftest.in
3578 cp conftest.in conftest.nl
3579 echo >>conftest.nl
3580 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3581 cmp -s conftest.out conftest.nl || break
3582 # 10000 chars as input seems more than enough
3583 test $lt_ac_count -gt 10 && break
3584 lt_ac_count=`expr $lt_ac_count + 1`
3585 if test $lt_ac_count -gt $lt_ac_max; then
3586 lt_ac_max=$lt_ac_count
3587 lt_cv_path_SED=$lt_ac_sed
3588 fi
3589 done
3590done
3591SED=$lt_cv_path_SED
3592
John Criswell7a73b802003-06-30 21:59:07 +00003593fi
3594
John Criswell47fdd832003-07-14 16:52:07 +00003595echo "$as_me:$LINENO: result: $SED" >&5
3596echo "${ECHO_T}$SED" >&6
3597
3598echo "$as_me:$LINENO: checking for egrep" >&5
3599echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3600if test "${ac_cv_prog_egrep+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602else
3603 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3604 then ac_cv_prog_egrep='grep -E'
3605 else ac_cv_prog_egrep='egrep'
3606 fi
3607fi
3608echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3609echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3610 EGREP=$ac_cv_prog_egrep
3611
3612
John Criswell7a73b802003-06-30 21:59:07 +00003613
3614# Check whether --with-gnu-ld or --without-gnu-ld was given.
3615if test "${with_gnu_ld+set}" = set; then
3616 withval="$with_gnu_ld"
3617 test "$withval" = no || with_gnu_ld=yes
3618else
3619 with_gnu_ld=no
3620fi;
3621ac_prog=ld
3622if test "$GCC" = yes; then
3623 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003624 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3625echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003626 case $host in
3627 *-*-mingw*)
3628 # gcc leaves a trailing carriage return which upsets mingw
3629 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3630 *)
3631 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3632 esac
3633 case $ac_prog in
3634 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003635 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003636 re_direlt='/[^/][^/]*/\.\./'
3637 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003638 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003639 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003640 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003641 done
3642 test -z "$LD" && LD="$ac_prog"
3643 ;;
3644 "")
3645 # If it fails, then pretend we aren't using GCC.
3646 ac_prog=ld
3647 ;;
3648 *)
3649 # If it is relative, then search for the first ld in PATH.
3650 with_gnu_ld=unknown
3651 ;;
3652 esac
3653elif test "$with_gnu_ld" = yes; then
3654 echo "$as_me:$LINENO: checking for GNU ld" >&5
3655echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3656else
3657 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3658echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3659fi
3660if test "${lt_cv_path_LD+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003665 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003666 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003667 test -z "$ac_dir" && ac_dir=.
3668 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3669 lt_cv_path_LD="$ac_dir/$ac_prog"
3670 # Check to see if the program is GNU ld. I'd rather use --version,
3671 # but apparently some GNU ld's only accept -v.
3672 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003673 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3674 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003675 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003676 ;;
3677 *)
John Criswell7a73b802003-06-30 21:59:07 +00003678 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003679 ;;
3680 esac
John Criswell7a73b802003-06-30 21:59:07 +00003681 fi
3682 done
John Criswell47fdd832003-07-14 16:52:07 +00003683 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003684else
3685 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3686fi
3687fi
3688
3689LD="$lt_cv_path_LD"
3690if test -n "$LD"; then
3691 echo "$as_me:$LINENO: result: $LD" >&5
3692echo "${ECHO_T}$LD" >&6
3693else
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696fi
3697test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3698echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3699 { (exit 1); exit 1; }; }
3700echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3701echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3702if test "${lt_cv_prog_gnu_ld+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003706case `"$LD" -v 2>&1 </dev/null` in
3707*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003708 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003709 ;;
3710*)
John Criswell7a73b802003-06-30 21:59:07 +00003711 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003712 ;;
3713esac
John Criswell7a73b802003-06-30 21:59:07 +00003714fi
3715echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3716echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3717with_gnu_ld=$lt_cv_prog_gnu_ld
3718
3719
3720echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3721echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3722if test "${lt_cv_ld_reload_flag+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725 lt_cv_ld_reload_flag='-r'
3726fi
3727echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3728echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3729reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003730case $reload_flag in
3731"" | " "*) ;;
3732*) reload_flag=" $reload_flag" ;;
3733esac
3734reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003735
3736echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3737echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3738if test "${lt_cv_path_NM+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 if test -n "$NM"; then
3742 # Let the user override the test.
3743 lt_cv_path_NM="$NM"
3744else
John Criswell47fdd832003-07-14 16:52:07 +00003745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003746 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003747 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003748 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003749 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003751 # Check to see if the nm accepts a BSD-compat flag.
3752 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3753 # nm: unknown option "B" ignored
3754 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003755 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3756 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003757 lt_cv_path_NM="$tmp_nm -B"
3758 break
John Criswell47fdd832003-07-14 16:52:07 +00003759 ;;
3760 *)
3761 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3762 */dev/null*)
3763 lt_cv_path_NM="$tmp_nm -p"
3764 break
3765 ;;
3766 *)
3767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3768 continue # so that we can try to find one that supports BSD flags
3769 ;;
3770 esac
3771 esac
John Criswell7a73b802003-06-30 21:59:07 +00003772 fi
3773 done
John Criswell47fdd832003-07-14 16:52:07 +00003774 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003775 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3776fi
3777fi
John Criswell47fdd832003-07-14 16:52:07 +00003778echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3779echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003780NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003781
3782echo "$as_me:$LINENO: checking whether ln -s works" >&5
3783echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3784LN_S=$as_ln_s
3785if test "$LN_S" = "ln -s"; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787echo "${ECHO_T}yes" >&6
3788else
3789 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3790echo "${ECHO_T}no, using $LN_S" >&6
3791fi
3792
John Criswell47fdd832003-07-14 16:52:07 +00003793echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3794echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003795if test "${lt_cv_deplibs_check_method+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 lt_cv_file_magic_cmd='$MAGIC_CMD'
3799lt_cv_file_magic_test_file=
3800lt_cv_deplibs_check_method='unknown'
3801# Need to set the preceding variable on all platforms that support
3802# interlibrary dependencies.
3803# 'none' -- dependencies not supported.
3804# `unknown' -- same as none, but documents that we really don't know.
3805# 'pass_all' -- all dependencies passed with no checks.
3806# 'test_compile' -- check by making test program.
3807# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003808# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003809# If you have `file' or equivalent on your system and you're not sure
3810# whether `pass_all' will *always* work, you probably want this one.
3811
3812case $host_os in
3813aix4* | aix5*)
3814 lt_cv_deplibs_check_method=pass_all
3815 ;;
3816
3817beos*)
3818 lt_cv_deplibs_check_method=pass_all
3819 ;;
3820
3821bsdi4*)
3822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3823 lt_cv_file_magic_cmd='/usr/bin/file -L'
3824 lt_cv_file_magic_test_file=/shlib/libc.so
3825 ;;
3826
3827cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003828 # win32_libid is a shell function defined in ltmain.sh
3829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3830 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003831 ;;
3832
3833darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003834 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003835 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3836 lt_cv_file_magic_cmd='/usr/bin/file -L'
3837 case "$host_os" in
3838 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003839 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003840 ;;
3841 *) # Darwin 1.3 on
3842 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3843 ;;
3844 esac
John Criswell47fdd832003-07-14 16:52:07 +00003845 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003846 ;;
3847
3848freebsd*)
3849 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3850 case $host_cpu in
3851 i*86 )
3852 # Not sure whether the presence of OpenBSD here was a mistake.
3853 # Let's accept both of them until this is cleared up.
3854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3855 lt_cv_file_magic_cmd=/usr/bin/file
3856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3857 ;;
3858 esac
3859 else
3860 lt_cv_deplibs_check_method=pass_all
3861 fi
3862 ;;
3863
3864gnu*)
3865 lt_cv_deplibs_check_method=pass_all
3866 ;;
3867
John Criswell47fdd832003-07-14 16:52:07 +00003868hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003869 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003870 case "$host_cpu" in
3871 ia64*)
3872 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3874 ;;
3875 hppa*64*)
3876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3878 ;;
3879 *)
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3882 ;;
3883 esac
John Criswell7a73b802003-06-30 21:59:07 +00003884 ;;
3885
John Criswell47fdd832003-07-14 16:52:07 +00003886irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003887 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003888 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003889 # this will be overridden with pass_all, but let us keep it just in case
3890 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3891 ;;
3892 *)
3893 case $LD in
3894 *-32|*"-32 ") libmagic=32-bit;;
3895 *-n32|*"-n32 ") libmagic=N32;;
3896 *-64|*"-64 ") libmagic=64-bit;;
3897 *) libmagic=never-match;;
3898 esac
3899 # this will be overridden with pass_all, but let us keep it just in case
3900 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3901 ;;
3902 esac
3903 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3904 lt_cv_deplibs_check_method=pass_all
3905 ;;
3906
3907# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003908linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003909 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003910 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003911 lt_cv_deplibs_check_method=pass_all ;;
3912 *)
3913 # glibc up to 2.1.1 does not perform some relocations on ARM
3914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3915 esac
3916 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3917 ;;
3918
3919netbsd*)
3920 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003922 else
John Criswell47fdd832003-07-14 16:52:07 +00003923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003924 fi
3925 ;;
3926
3927newos6*)
3928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3929 lt_cv_file_magic_cmd=/usr/bin/file
3930 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3931 ;;
3932
John Criswell47fdd832003-07-14 16:52:07 +00003933nto-qnx)
3934 lt_cv_deplibs_check_method=unknown
3935 ;;
3936
John Criswell7a73b802003-06-30 21:59:07 +00003937openbsd*)
3938 lt_cv_file_magic_cmd=/usr/bin/file
3939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3942 else
3943 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3944 fi
3945 ;;
3946
3947osf3* | osf4* | osf5*)
3948 # this will be overridden with pass_all, but let us keep it just in case
3949 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3950 lt_cv_file_magic_test_file=/shlib/libc.so
3951 lt_cv_deplibs_check_method=pass_all
3952 ;;
3953
3954sco3.2v5*)
3955 lt_cv_deplibs_check_method=pass_all
3956 ;;
3957
3958solaris*)
3959 lt_cv_deplibs_check_method=pass_all
3960 lt_cv_file_magic_test_file=/lib/libc.so
3961 ;;
3962
John Criswell7a73b802003-06-30 21:59:07 +00003963sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3964 case $host_vendor in
3965 motorola)
3966 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]'
3967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3968 ;;
3969 ncr)
3970 lt_cv_deplibs_check_method=pass_all
3971 ;;
3972 sequent)
3973 lt_cv_file_magic_cmd='/bin/file'
3974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3975 ;;
3976 sni)
3977 lt_cv_file_magic_cmd='/bin/file'
3978 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3979 lt_cv_file_magic_test_file=/lib/libc.so
3980 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003981 siemens)
3982 lt_cv_deplibs_check_method=pass_all
3983 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003984 esac
3985 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003986
3987sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3988 lt_cv_deplibs_check_method=pass_all
3989 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003990esac
3991
3992fi
3993echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3994echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3995file_magic_cmd=$lt_cv_file_magic_cmd
3996deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00003997test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00003998
3999
4000
4001
John Criswell47fdd832003-07-14 16:52:07 +00004002# If no C compiler was specified, use CC.
4003LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004004
John Criswell47fdd832003-07-14 16:52:07 +00004005# Allow CC to be a program name with arguments.
4006compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004007
John Criswell47fdd832003-07-14 16:52:07 +00004008# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4009if test "${enable_libtool_lock+set}" = set; then
4010 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004011
John Criswell47fdd832003-07-14 16:52:07 +00004012fi;
4013test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004014
John Criswell47fdd832003-07-14 16:52:07 +00004015# Some flags need to be propagated to the compiler or linker for good
4016# libtool support.
4017case $host in
4018ia64-*-hpux*)
4019 # Find out which ABI we are using.
4020 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004026 case `/usr/bin/file conftest.$ac_objext` in
4027 *ELF-32*)
4028 HPUX_IA64_MODE="32"
4029 ;;
4030 *ELF-64*)
4031 HPUX_IA64_MODE="64"
4032 ;;
4033 esac
4034 fi
4035 rm -rf conftest*
4036 ;;
4037*-*-irix6*)
4038 # Find out which ABI we are using.
Brian Gaeke26be9c52004-01-13 06:43:16 +00004039 echo '#line 4039 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004044 (exit $ac_status); }; then
4045 if test "$lt_cv_prog_gnu_ld" = yes; then
4046 case `/usr/bin/file conftest.$ac_objext` in
4047 *32-bit*)
4048 LD="${LD-ld} -melf32bsmip"
4049 ;;
4050 *N32*)
4051 LD="${LD-ld} -melf32bmipn32"
4052 ;;
4053 *64-bit*)
4054 LD="${LD-ld} -melf64bmip"
4055 ;;
4056 esac
4057 else
4058 case `/usr/bin/file conftest.$ac_objext` in
4059 *32-bit*)
4060 LD="${LD-ld} -32"
4061 ;;
4062 *N32*)
4063 LD="${LD-ld} -n32"
4064 ;;
4065 *64-bit*)
4066 LD="${LD-ld} -64"
4067 ;;
4068 esac
4069 fi
4070 fi
4071 rm -rf conftest*
4072 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004073
John Criswell47fdd832003-07-14 16:52:07 +00004074x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4075 # Find out which ABI we are using.
4076 echo 'int i;' > conftest.$ac_ext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078 (eval $ac_compile) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; then
4082 case "`/usr/bin/file conftest.o`" in
4083 *32-bit*)
4084 case $host in
4085 x86_64-*linux*)
4086 LD="${LD-ld} -m elf_i386"
4087 ;;
4088 ppc64-*linux*)
4089 LD="${LD-ld} -m elf32ppclinux"
4090 ;;
4091 s390x-*linux*)
4092 LD="${LD-ld} -m elf_s390"
4093 ;;
4094 sparc64-*linux*)
4095 LD="${LD-ld} -m elf32_sparc"
4096 ;;
4097 esac
4098 ;;
4099 *64-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_x86_64"
4103 ;;
4104 ppc*-*linux*|powerpc*-*linux*)
4105 LD="${LD-ld} -m elf64ppc"
4106 ;;
4107 s390*-*linux*)
4108 LD="${LD-ld} -m elf64_s390"
4109 ;;
4110 sparc*-*linux*)
4111 LD="${LD-ld} -m elf64_sparc"
4112 ;;
4113 esac
4114 ;;
4115 esac
4116 fi
4117 rm -rf conftest*
4118 ;;
4119
4120*-*-sco3.2v5*)
4121 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4122 SAVE_CFLAGS="$CFLAGS"
4123 CFLAGS="$CFLAGS -belf"
4124 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4125echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4126if test "${lt_cv_cc_needs_belf+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 ac_ext=c
4130ac_cpp='$CPP $CPPFLAGS'
4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135 cat >conftest.$ac_ext <<_ACEOF
4136#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004142
John Criswell47fdd832003-07-14 16:52:07 +00004143int
4144main ()
John Criswell7a73b802003-06-30 21:59:07 +00004145{
John Criswell7a73b802003-06-30 21:59:07 +00004146
John Criswell47fdd832003-07-14 16:52:07 +00004147 ;
4148 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004149}
John Criswell47fdd832003-07-14 16:52:07 +00004150_ACEOF
4151rm -f conftest.$ac_objext conftest$ac_exeext
4152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004153 (eval $ac_link) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004156 (exit $ac_status); } &&
4157 { ac_try='test -s conftest$ac_exeext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004164else
John Criswell47fdd832003-07-14 16:52:07 +00004165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004166sed 's/^/| /' conftest.$ac_ext >&5
4167
John Criswell47fdd832003-07-14 16:52:07 +00004168lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004169fi
John Criswell47fdd832003-07-14 16:52:07 +00004170rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4171 ac_ext=c
4172ac_cpp='$CPP $CPPFLAGS'
4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176
John Criswell7a73b802003-06-30 21:59:07 +00004177fi
John Criswell47fdd832003-07-14 16:52:07 +00004178echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4179echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4180 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4181 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4182 CFLAGS="$SAVE_CFLAGS"
4183 fi
4184 ;;
4185
4186esac
4187
4188need_locks="$enable_libtool_lock"
4189
John Criswell7a73b802003-06-30 21:59:07 +00004190
4191
4192echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4193echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4194if test "${ac_cv_header_stdc+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 cat >conftest.$ac_ext <<_ACEOF
4198#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004204#include <stdlib.h>
4205#include <stdarg.h>
4206#include <string.h>
4207#include <float.h>
4208
John Criswell0c38eaf2003-09-10 15:17:25 +00004209int
4210main ()
4211{
4212
4213 ;
4214 return 0;
4215}
John Criswell7a73b802003-06-30 21:59:07 +00004216_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004217rm -f conftest.$ac_objext
4218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4219 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004220 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004222 (exit $ac_status); } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004229 ac_cv_header_stdc=yes
4230else
4231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004235fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004236rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004237
4238if test $ac_cv_header_stdc = yes; then
4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4240 cat >conftest.$ac_ext <<_ACEOF
4241#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004247#include <string.h>
4248
4249_ACEOF
4250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004251 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004252 :
4253else
4254 ac_cv_header_stdc=no
4255fi
4256rm -f conftest*
4257
4258fi
4259
4260if test $ac_cv_header_stdc = yes; then
4261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4262 cat >conftest.$ac_ext <<_ACEOF
4263#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004269#include <stdlib.h>
4270
4271_ACEOF
4272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004273 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004274 :
4275else
4276 ac_cv_header_stdc=no
4277fi
4278rm -f conftest*
4279
4280fi
4281
4282if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then
4285 :
4286else
4287 cat >conftest.$ac_ext <<_ACEOF
4288#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004294#include <ctype.h>
4295#if ((' ' & 0x0FF) == 0x020)
4296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4298#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004299# define ISLOWER(c) \
4300 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004301 || ('j' <= (c) && (c) <= 'r') \
4302 || ('s' <= (c) && (c) <= 'z'))
4303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4304#endif
4305
4306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307int
4308main ()
4309{
4310 int i;
4311 for (i = 0; i < 256; i++)
4312 if (XOR (islower (i), ISLOWER (i))
4313 || toupper (i) != TOUPPER (i))
4314 exit(2);
4315 exit (0);
4316}
4317_ACEOF
4318rm -f conftest$ac_exeext
4319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 (eval $ac_try) 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4329 :
4330else
4331 echo "$as_me: program exited with status $ac_status" >&5
4332echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004333sed 's/^/| /' conftest.$ac_ext >&5
4334
John Criswell7a73b802003-06-30 21:59:07 +00004335( exit $ac_status )
4336ac_cv_header_stdc=no
4337fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004338rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004339fi
4340fi
4341fi
4342echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343echo "${ECHO_T}$ac_cv_header_stdc" >&6
4344if test $ac_cv_header_stdc = yes; then
4345
4346cat >>confdefs.h <<\_ACEOF
4347#define STDC_HEADERS 1
4348_ACEOF
4349
4350fi
4351
4352# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363 inttypes.h stdint.h unistd.h
4364do
4365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366echo "$as_me:$LINENO: checking for $ac_header" >&5
4367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4368if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371 cat >conftest.$ac_ext <<_ACEOF
4372#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004373/* confdefs.h. */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004378$ac_includes_default
4379
4380#include <$ac_header>
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384 (eval $ac_compile) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -s conftest.$ac_objext'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4394 eval "$as_ac_Header=yes"
4395else
4396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004397sed 's/^/| /' conftest.$ac_ext >&5
4398
John Criswell7a73b802003-06-30 21:59:07 +00004399eval "$as_ac_Header=no"
4400fi
4401rm -f conftest.$ac_objext conftest.$ac_ext
4402fi
4403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405if test `eval echo '${'$as_ac_Header'}'` = yes; then
4406 cat >>confdefs.h <<_ACEOF
4407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408_ACEOF
4409
4410fi
4411
4412done
4413
4414
4415
4416for ac_header in dlfcn.h
4417do
4418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4419if eval "test \"\${$as_ac_Header+set}\" = set"; then
4420 echo "$as_me:$LINENO: checking for $ac_header" >&5
4421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4422if eval "test \"\${$as_ac_Header+set}\" = set"; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424fi
4425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4427else
4428 # Is the header compilable?
4429echo "$as_me:$LINENO: checking $ac_header usability" >&5
4430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4431cat >conftest.$ac_ext <<_ACEOF
4432#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004438$ac_includes_default
4439#include <$ac_header>
4440_ACEOF
4441rm -f conftest.$ac_objext
4442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 ac_header_compiler=yes
4454else
4455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004456sed 's/^/| /' conftest.$ac_ext >&5
4457
John Criswell7a73b802003-06-30 21:59:07 +00004458ac_header_compiler=no
4459fi
4460rm -f conftest.$ac_objext conftest.$ac_ext
4461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4462echo "${ECHO_T}$ac_header_compiler" >&6
4463
4464# Is the header present?
4465echo "$as_me:$LINENO: checking $ac_header presence" >&5
4466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4467cat >conftest.$ac_ext <<_ACEOF
4468#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004469/* confdefs.h. */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004474#include <$ac_header>
4475_ACEOF
4476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4478 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004479 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } >/dev/null; then
4484 if test -s conftest.err; then
4485 ac_cpp_err=$ac_c_preproc_warn_flag
4486 else
4487 ac_cpp_err=
4488 fi
4489else
4490 ac_cpp_err=yes
4491fi
4492if test -z "$ac_cpp_err"; then
4493 ac_header_preproc=yes
4494else
4495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004496sed 's/^/| /' conftest.$ac_ext >&5
4497
John Criswell7a73b802003-06-30 21:59:07 +00004498 ac_header_preproc=no
4499fi
4500rm -f conftest.err conftest.$ac_ext
4501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4502echo "${ECHO_T}$ac_header_preproc" >&6
4503
4504# So? What about this header?
4505case $ac_header_compiler:$ac_header_preproc in
4506 yes:no )
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511 (
4512 cat <<\_ASBOX
4513## ------------------------------------ ##
4514## Report this to bug-autoconf@gnu.org. ##
4515## ------------------------------------ ##
4516_ASBOX
4517 ) |
4518 sed "s/^/$as_me: WARNING: /" >&2
4519 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004520 no:yes )
4521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 +00004536esac
4537echo "$as_me:$LINENO: checking for $ac_header" >&5
4538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539if eval "test \"\${$as_ac_Header+set}\" = set"; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 eval "$as_ac_Header=$ac_header_preproc"
4543fi
4544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4546
4547fi
4548if test `eval echo '${'$as_ac_Header'}'` = yes; then
4549 cat >>confdefs.h <<_ACEOF
4550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4551_ACEOF
4552
4553fi
4554
4555done
4556
John Criswell47fdd832003-07-14 16:52:07 +00004557ac_ext=cc
4558ac_cpp='$CXXCPP $CPPFLAGS'
4559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4563echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4564if test -z "$CXXCPP"; then
4565 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567else
John Criswell47fdd832003-07-14 16:52:07 +00004568 # Double quotes because CXXCPP needs to be expanded
4569 for CXXCPP in "$CXX -E" "/lib/cpp"
4570 do
4571 ac_preproc_ok=false
4572for ac_cxx_preproc_warn_flag in '' yes
4573do
4574 # Use a header file that comes with gcc, so configuring glibc
4575 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4577 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004578 # On the NeXT, cc -E runs the code through the compiler's parser,
4579 # not just through cpp. "Syntax error" is here to catch this case.
4580 cat >conftest.$ac_ext <<_ACEOF
4581#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004582/* confdefs.h. */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */
4587#ifdef __STDC__
4588# include <limits.h>
4589#else
4590# include <assert.h>
4591#endif
John Criswell47fdd832003-07-14 16:52:07 +00004592 Syntax error
4593_ACEOF
4594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4596 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004597 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null; then
4602 if test -s conftest.err; then
4603 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004604 else
John Criswell47fdd832003-07-14 16:52:07 +00004605 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004606 fi
John Criswell47fdd832003-07-14 16:52:07 +00004607else
4608 ac_cpp_err=yes
4609fi
4610if test -z "$ac_cpp_err"; then
4611 :
4612else
4613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004614sed 's/^/| /' conftest.$ac_ext >&5
4615
John Criswell47fdd832003-07-14 16:52:07 +00004616 # Broken: fails on valid input.
4617continue
4618fi
4619rm -f conftest.err conftest.$ac_ext
4620
4621 # OK, works on sane cases. Now check whether non-existent headers
4622 # can be detected and how.
4623 cat >conftest.$ac_ext <<_ACEOF
4624#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004630#include <ac_nonexistent.h>
4631_ACEOF
4632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4634 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004635 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } >/dev/null; then
4640 if test -s conftest.err; then
4641 ac_cpp_err=$ac_cxx_preproc_warn_flag
4642 else
4643 ac_cpp_err=
4644 fi
4645else
4646 ac_cpp_err=yes
4647fi
4648if test -z "$ac_cpp_err"; then
4649 # Broken: success on invalid input.
4650continue
4651else
4652 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004653sed 's/^/| /' conftest.$ac_ext >&5
4654
John Criswell47fdd832003-07-14 16:52:07 +00004655 # Passes both tests.
4656ac_preproc_ok=:
4657break
4658fi
4659rm -f conftest.err conftest.$ac_ext
4660
4661done
4662# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4663rm -f conftest.err conftest.$ac_ext
4664if $ac_preproc_ok; then
4665 break
John Criswell7a73b802003-06-30 21:59:07 +00004666fi
4667
John Criswell47fdd832003-07-14 16:52:07 +00004668 done
4669 ac_cv_prog_CXXCPP=$CXXCPP
4670
4671fi
4672 CXXCPP=$ac_cv_prog_CXXCPP
4673else
4674 ac_cv_prog_CXXCPP=$CXXCPP
4675fi
4676echo "$as_me:$LINENO: result: $CXXCPP" >&5
4677echo "${ECHO_T}$CXXCPP" >&6
4678ac_preproc_ok=false
4679for ac_cxx_preproc_warn_flag in '' yes
4680do
4681 # Use a header file that comes with gcc, so configuring glibc
4682 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004685 # On the NeXT, cc -E runs the code through the compiler's parser,
4686 # not just through cpp. "Syntax error" is here to catch this case.
4687 cat >conftest.$ac_ext <<_ACEOF
4688#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694#ifdef __STDC__
4695# include <limits.h>
4696#else
4697# include <assert.h>
4698#endif
John Criswell47fdd832003-07-14 16:52:07 +00004699 Syntax error
4700_ACEOF
4701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4703 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004704 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null; then
4709 if test -s conftest.err; then
4710 ac_cpp_err=$ac_cxx_preproc_warn_flag
4711 else
4712 ac_cpp_err=
4713 fi
4714else
4715 ac_cpp_err=yes
4716fi
4717if test -z "$ac_cpp_err"; then
4718 :
4719else
4720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004721sed 's/^/| /' conftest.$ac_ext >&5
4722
John Criswell47fdd832003-07-14 16:52:07 +00004723 # Broken: fails on valid input.
4724continue
4725fi
4726rm -f conftest.err conftest.$ac_ext
4727
4728 # OK, works on sane cases. Now check whether non-existent headers
4729 # can be detected and how.
4730 cat >conftest.$ac_ext <<_ACEOF
4731#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004737#include <ac_nonexistent.h>
4738_ACEOF
4739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4741 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004742 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null; then
4747 if test -s conftest.err; then
4748 ac_cpp_err=$ac_cxx_preproc_warn_flag
4749 else
4750 ac_cpp_err=
4751 fi
4752else
4753 ac_cpp_err=yes
4754fi
4755if test -z "$ac_cpp_err"; then
4756 # Broken: success on invalid input.
4757continue
4758else
4759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004760sed 's/^/| /' conftest.$ac_ext >&5
4761
John Criswell47fdd832003-07-14 16:52:07 +00004762 # Passes both tests.
4763ac_preproc_ok=:
4764break
4765fi
4766rm -f conftest.err conftest.$ac_ext
4767
4768done
4769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4770rm -f conftest.err conftest.$ac_ext
4771if $ac_preproc_ok; then
4772 :
4773else
John Criswell0c38eaf2003-09-10 15:17:25 +00004774 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4775See \`config.log' for more details." >&5
4776echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4777See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004778 { (exit 1); exit 1; }; }
4779fi
4780
4781ac_ext=cc
4782ac_cpp='$CXXCPP $CPPFLAGS'
4783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4786
4787
4788ac_ext=f
4789ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4790ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4792if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00004793 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 +00004794 do
4795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797echo "$as_me:$LINENO: checking for $ac_word" >&5
4798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4799if test "${ac_cv_prog_F77+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801else
4802 if test -n "$F77"; then
4803 ac_cv_prog_F77="$F77" # Let the user override the test.
4804else
4805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816done
4817done
4818
4819fi
4820fi
4821F77=$ac_cv_prog_F77
4822if test -n "$F77"; then
4823 echo "$as_me:$LINENO: result: $F77" >&5
4824echo "${ECHO_T}$F77" >&6
4825else
4826 echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
4828fi
4829
4830 test -n "$F77" && break
4831 done
4832fi
4833if test -z "$F77"; then
4834 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00004835 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 +00004836do
4837 # Extract the first word of "$ac_prog", so it can be a program name with args.
4838set dummy $ac_prog; ac_word=$2
4839echo "$as_me:$LINENO: checking for $ac_word" >&5
4840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4841if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844 if test -n "$ac_ct_F77"; then
4845 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4846else
4847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_prog_ac_ct_F77="$ac_prog"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858done
4859done
4860
4861fi
4862fi
4863ac_ct_F77=$ac_cv_prog_ac_ct_F77
4864if test -n "$ac_ct_F77"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4866echo "${ECHO_T}$ac_ct_F77" >&6
4867else
4868 echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
4870fi
4871
4872 test -n "$ac_ct_F77" && break
4873done
4874
4875 F77=$ac_ct_F77
4876fi
4877
4878
4879# Provide some information about the compiler.
Brian Gaeke26be9c52004-01-13 06:43:16 +00004880echo "$as_me:4880:" \
John Criswell47fdd832003-07-14 16:52:07 +00004881 "checking for Fortran 77 compiler version" >&5
4882ac_compiler=`set X $ac_compile; echo $2`
4883{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4884 (eval $ac_compiler --version </dev/null >&5) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4889 (eval $ac_compiler -v </dev/null >&5) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4894 (eval $ac_compiler -V </dev/null >&5) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898
4899# If we don't use `.F' as extension, the preprocessor is not run on the
4900# input file.
4901ac_save_ext=$ac_ext
4902ac_ext=F
4903echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4904echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4905if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908 cat >conftest.$ac_ext <<_ACEOF
4909 program main
4910#ifndef __GNUC__
4911 choke me
4912#endif
4913
4914 end
4915_ACEOF
4916rm -f conftest.$ac_objext
4917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_compiler_gnu=yes
4929else
4930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004931sed 's/^/| /' conftest.$ac_ext >&5
4932
John Criswell47fdd832003-07-14 16:52:07 +00004933ac_compiler_gnu=no
4934fi
4935rm -f conftest.$ac_objext conftest.$ac_ext
4936ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4937
4938fi
4939echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4940echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4941ac_ext=$ac_save_ext
4942G77=`test $ac_compiler_gnu = yes && echo yes`
4943ac_test_FFLAGS=${FFLAGS+set}
4944ac_save_FFLAGS=$FFLAGS
4945FFLAGS=
4946echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4947echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4948if test "${ac_cv_prog_f77_g+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 FFLAGS=-g
4952cat >conftest.$ac_ext <<_ACEOF
4953 program main
4954
4955 end
4956_ACEOF
4957rm -f conftest.$ac_objext
4958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 ac_cv_prog_f77_g=yes
4970else
4971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004972sed 's/^/| /' conftest.$ac_ext >&5
4973
John Criswell47fdd832003-07-14 16:52:07 +00004974ac_cv_prog_f77_g=no
4975fi
4976rm -f conftest.$ac_objext conftest.$ac_ext
4977
4978fi
4979echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4980echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4981if test "$ac_test_FFLAGS" = set; then
4982 FFLAGS=$ac_save_FFLAGS
4983elif test $ac_cv_prog_f77_g = yes; then
4984 if test "$G77" = yes; then
4985 FFLAGS="-g -O2"
4986 else
4987 FFLAGS="-g"
4988 fi
4989else
4990 if test "$G77" = yes; then
4991 FFLAGS="-O2"
4992 else
4993 FFLAGS=
4994 fi
4995fi
4996ac_ext=c
4997ac_cpp='$CPP $CPPFLAGS'
4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002
5003
5004# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5005
5006# find the maximum length of command line arguments
5007echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5008echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5009if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 i=0
5013 testring="ABCD"
5014
5015 case $build_os in
5016 msdosdjgpp*)
5017 # On DJGPP, this test can blow up pretty badly due to problems in libc
5018 # (any single argument exceeding 2000 bytes causes a buffer overrun
5019 # during glob expansion). Even if it were fixed, the result of this
5020 # check would be larger than it should be.
5021 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5022 ;;
5023
5024 gnu*)
5025 # Under GNU Hurd, this test is not required because there is
5026 # no limit to the length of command line arguments.
5027 # Libtool will interpret -1 as no limit whatsoever
5028 lt_cv_sys_max_cmd_len=-1;
5029 ;;
5030
5031 cygwin* | mingw*)
5032 # On Win9x/ME, this test blows up -- it succeeds, but takes
5033 # about 5 minutes as the teststring grows exponentially.
5034 # Worse, since 9x/ME are not pre-emptively multitasking,
5035 # you end up with a "frozen" computer, even though with patience
5036 # the test eventually succeeds (with a max line length of 256k).
5037 # Instead, let's just punt: use the minimum linelength reported by
5038 # all of the supported platforms: 8192 (on NT/2K/XP).
5039 lt_cv_sys_max_cmd_len=8192;
5040 ;;
5041
5042 *)
5043 # If test is not a shell built-in, we'll probably end up computing a
5044 # maximum length that is only half of the actual maximum length, but
5045 # we can't tell.
5046 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5047 = "XX$testring") >/dev/null 2>&1 &&
5048 new_result=`expr "X$testring" : ".*" 2>&1` &&
5049 lt_cv_sys_max_cmd_len=$new_result &&
5050 test $i != 17 # 1/2 MB should be enough
5051 do
5052 i=`expr $i + 1`
5053 testring=$testring$testring
5054 done
5055 testring=
5056 # Add a significant safety factor because C++ compilers can tack on massive
5057 # amounts of additional arguments before passing them to the linker.
5058 # It appears as though 1/2 is a usable value.
5059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5060 ;;
5061 esac
5062
5063fi
5064
5065if test -n $lt_cv_sys_max_cmd_len ; then
5066 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5067echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5068else
5069 echo "$as_me:$LINENO: result: none" >&5
5070echo "${ECHO_T}none" >&6
5071fi
5072
5073
5074
5075
5076# Check for command to grab the raw symbol name followed by C symbol from nm.
5077echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5078echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5079if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082
5083# These are sane defaults that work on at least a few old systems.
5084# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5085
5086# Character class describing NM global symbol codes.
5087symcode='[BCDEGRST]'
5088
5089# Regexp to match symbols that can be accessed directly from C.
5090sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5091
5092# Transform the above into a raw symbol and a C symbol.
5093symxfrm='\1 \2\3 \3'
5094
5095# Transform an extracted symbol line into a proper C declaration
5096lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5097
5098# Transform an extracted symbol line into symbol name and symbol address
5099lt_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'"
5100
5101# Define system-specific variables.
5102case $host_os in
5103aix*)
5104 symcode='[BCDT]'
5105 ;;
5106cygwin* | mingw* | pw32*)
5107 symcode='[ABCDGISTW]'
5108 ;;
5109hpux*) # Its linker distinguishes data from code symbols
5110 if test "$host_cpu" = ia64; then
5111 symcode='[ABCDEGRST]'
5112 fi
5113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5114 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'"
5115 ;;
5116irix* | nonstopux*)
5117 symcode='[BCDEGRST]'
5118 ;;
5119osf*)
5120 symcode='[BCDEGQRST]'
5121 ;;
5122solaris* | sysv5*)
5123 symcode='[BDT]'
5124 ;;
5125sysv4)
5126 symcode='[DFNSTU]'
5127 ;;
5128esac
5129
5130# Handle CRLF in mingw tool chain
5131opt_cr=
5132case $build_os in
5133mingw*)
5134 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5135 ;;
5136esac
5137
5138# If we're using GNU nm, then use its standard symbol codes.
5139case `$NM -V 2>&1` in
5140*GNU* | *'with BFD'*)
5141 symcode='[ABCDGISTW]' ;;
5142esac
5143
5144# Try without a prefix undercore, then with it.
5145for ac_symprfx in "" "_"; do
5146
5147 # Write the raw and C identifiers.
5148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5149
5150 # Check to see that the pipe works correctly.
5151 pipe_works=no
5152
5153 rm -f conftest*
5154 cat > conftest.$ac_ext <<EOF
5155#ifdef __cplusplus
5156extern "C" {
5157#endif
5158char nm_test_var;
5159void nm_test_func(){}
5160#ifdef __cplusplus
5161}
5162#endif
5163int main(){nm_test_var='a';nm_test_func();return(0);}
5164EOF
5165
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; then
5171 # Now try to grab the symbols.
5172 nlist=conftest.nm
5173 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5174 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && test -s "$nlist"; then
5178 # Try sorting and uniquifying the output.
5179 if sort "$nlist" | uniq > "$nlist"T; then
5180 mv -f "$nlist"T "$nlist"
5181 else
5182 rm -f "$nlist"T
5183 fi
5184
5185 # Make sure that we snagged all the symbols we need.
5186 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5187 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5188 cat <<EOF > conftest.$ac_ext
5189#ifdef __cplusplus
5190extern "C" {
5191#endif
5192
5193EOF
5194 # Now generate the symbol file.
5195 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5196
5197 cat <<EOF >> conftest.$ac_ext
5198#if defined (__STDC__) && __STDC__
5199# define lt_ptr_t void *
5200#else
5201# define lt_ptr_t char *
5202# define const
5203#endif
5204
5205/* The mapping between symbol names and symbols. */
5206const struct {
5207 const char *name;
5208 lt_ptr_t address;
5209}
5210lt_preloaded_symbols[] =
5211{
5212EOF
5213 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5214 cat <<\EOF >> conftest.$ac_ext
5215 {0, (lt_ptr_t) 0}
5216};
5217
5218#ifdef __cplusplus
5219}
5220#endif
5221EOF
5222 # Now try linking the two files.
5223 mv conftest.$ac_objext conftstm.$ac_objext
5224 lt_save_LIBS="$LIBS"
5225 lt_save_CFLAGS="$CFLAGS"
5226 LIBS="conftstm.$ac_objext"
5227 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5233 pipe_works=yes
5234 fi
5235 LIBS="$lt_save_LIBS"
5236 CFLAGS="$lt_save_CFLAGS"
5237 else
5238 echo "cannot find nm_test_func in $nlist" >&5
5239 fi
5240 else
5241 echo "cannot find nm_test_var in $nlist" >&5
5242 fi
5243 else
5244 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5245 fi
5246 else
5247 echo "$progname: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5249 fi
5250 rm -f conftest* conftst*
5251
5252 # Do not use the global_symbol_pipe unless it works.
5253 if test "$pipe_works" = yes; then
5254 break
5255 else
5256 lt_cv_sys_global_symbol_pipe=
5257 fi
5258done
5259
5260fi
5261
5262if test -z "$lt_cv_sys_global_symbol_pipe"; then
5263 lt_cv_sys_global_symbol_to_cdecl=
5264fi
5265if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5266 echo "$as_me:$LINENO: result: failed" >&5
5267echo "${ECHO_T}failed" >&6
5268else
5269 echo "$as_me:$LINENO: result: ok" >&5
5270echo "${ECHO_T}ok" >&6
5271fi
5272
5273echo "$as_me:$LINENO: checking for objdir" >&5
5274echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5275if test "${lt_cv_objdir+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278 rm -f .libs 2>/dev/null
5279mkdir .libs 2>/dev/null
5280if test -d .libs; then
5281 lt_cv_objdir=.libs
5282else
5283 # MS-DOS does not allow filenames that begin with a dot.
5284 lt_cv_objdir=_libs
5285fi
5286rmdir .libs 2>/dev/null
5287fi
5288echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5289echo "${ECHO_T}$lt_cv_objdir" >&6
5290objdir=$lt_cv_objdir
5291
5292
5293
5294
5295
5296case $host_os in
5297aix3*)
5298 # AIX sometimes has problems with the GCC collect2 program. For some
5299 # reason, if we set the COLLECT_NAMES environment variable, the problems
5300 # vanish in a puff of smoke.
5301 if test "X${COLLECT_NAMES+set}" != Xset; then
5302 COLLECT_NAMES=
5303 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005304 fi
5305 ;;
5306esac
5307
John Criswell47fdd832003-07-14 16:52:07 +00005308# Sed substitution that helps us do robust quoting. It backslashifies
5309# metacharacters that are still active within double-quoted strings.
5310Xsed='sed -e s/^X//'
5311sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5312
5313# Same as above, but do not quote variable references.
5314double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5315
5316# Sed substitution to delay expansion of an escaped shell variable in a
5317# double_quote_subst'ed string.
5318delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5319
5320# Sed substitution to avoid accidental globbing in evaled expressions
5321no_glob_subst='s/\*/\\\*/g'
5322
5323# Constants:
5324rm="rm -f"
5325
5326# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005327default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005328can_build_shared=yes
5329
5330# All known linkers require a `.a' archive for static linking (except M$VC,
5331# which needs '.lib').
5332libext=a
5333ltmain="$ac_aux_dir/ltmain.sh"
5334ofile="$default_ofile"
5335with_gnu_ld="$lt_cv_prog_gnu_ld"
5336
5337if test -n "$ac_tool_prefix"; then
5338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5339set dummy ${ac_tool_prefix}ar; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_prog_AR+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 if test -n "$AR"; then
5346 ac_cv_prog_AR="$AR" # Let the user override the test.
5347else
5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_AR="${ac_tool_prefix}ar"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359done
5360done
5361
5362fi
5363fi
5364AR=$ac_cv_prog_AR
5365if test -n "$AR"; then
5366 echo "$as_me:$LINENO: result: $AR" >&5
5367echo "${ECHO_T}$AR" >&6
5368else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371fi
5372
5373fi
5374if test -z "$ac_cv_prog_AR"; then
5375 ac_ct_AR=$AR
5376 # Extract the first word of "ar", so it can be a program name with args.
5377set dummy ar; ac_word=$2
5378echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 if test -n "$ac_ct_AR"; then
5384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_ac_ct_AR="ar"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399
5400 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5401fi
5402fi
5403ac_ct_AR=$ac_cv_prog_ac_ct_AR
5404if test -n "$ac_ct_AR"; then
5405 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5406echo "${ECHO_T}$ac_ct_AR" >&6
5407else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410fi
5411
5412 AR=$ac_ct_AR
5413else
5414 AR="$ac_cv_prog_AR"
5415fi
5416
John Criswell7a73b802003-06-30 21:59:07 +00005417if test -n "$ac_tool_prefix"; then
5418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5419set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_prog_RANLIB+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 if test -n "$RANLIB"; then
5426 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439done
5440done
5441
5442fi
5443fi
5444RANLIB=$ac_cv_prog_RANLIB
5445if test -n "$RANLIB"; then
5446 echo "$as_me:$LINENO: result: $RANLIB" >&5
5447echo "${ECHO_T}$RANLIB" >&6
5448else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451fi
5452
5453fi
5454if test -z "$ac_cv_prog_RANLIB"; then
5455 ac_ct_RANLIB=$RANLIB
5456 # Extract the first word of "ranlib", so it can be a program name with args.
5457set dummy ranlib; ac_word=$2
5458echo "$as_me:$LINENO: checking for $ac_word" >&5
5459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5460if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463 if test -n "$ac_ct_RANLIB"; then
5464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_prog_ac_ct_RANLIB="ranlib"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478done
5479
5480 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5481fi
5482fi
5483ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5484if test -n "$ac_ct_RANLIB"; then
5485 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5486echo "${ECHO_T}$ac_ct_RANLIB" >&6
5487else
5488 echo "$as_me:$LINENO: result: no" >&5
5489echo "${ECHO_T}no" >&6
5490fi
5491
5492 RANLIB=$ac_ct_RANLIB
5493else
5494 RANLIB="$ac_cv_prog_RANLIB"
5495fi
5496
5497if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5499set dummy ${ac_tool_prefix}strip; ac_word=$2
5500echo "$as_me:$LINENO: checking for $ac_word" >&5
5501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5502if test "${ac_cv_prog_STRIP+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505 if test -n "$STRIP"; then
5506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519done
5520done
5521
5522fi
5523fi
5524STRIP=$ac_cv_prog_STRIP
5525if test -n "$STRIP"; then
5526 echo "$as_me:$LINENO: result: $STRIP" >&5
5527echo "${ECHO_T}$STRIP" >&6
5528else
5529 echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531fi
5532
5533fi
5534if test -z "$ac_cv_prog_STRIP"; then
5535 ac_ct_STRIP=$STRIP
5536 # Extract the first word of "strip", so it can be a program name with args.
5537set dummy strip; ac_word=$2
5538echo "$as_me:$LINENO: checking for $ac_word" >&5
5539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5540if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543 if test -n "$ac_ct_STRIP"; then
5544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_ac_ct_STRIP="strip"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557done
5558done
5559
5560 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5561fi
5562fi
5563ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5564if test -n "$ac_ct_STRIP"; then
5565 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5566echo "${ECHO_T}$ac_ct_STRIP" >&6
5567else
5568 echo "$as_me:$LINENO: result: no" >&5
5569echo "${ECHO_T}no" >&6
5570fi
5571
5572 STRIP=$ac_ct_STRIP
5573else
5574 STRIP="$ac_cv_prog_STRIP"
5575fi
5576
5577
John Criswell7a73b802003-06-30 21:59:07 +00005578old_CC="$CC"
5579old_CFLAGS="$CFLAGS"
5580
5581# Set sane defaults for various variables
5582test -z "$AR" && AR=ar
5583test -z "$AR_FLAGS" && AR_FLAGS=cru
5584test -z "$AS" && AS=as
5585test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005586test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005587test -z "$DLLTOOL" && DLLTOOL=dlltool
5588test -z "$LD" && LD=ld
5589test -z "$LN_S" && LN_S="ln -s"
5590test -z "$MAGIC_CMD" && MAGIC_CMD=file
5591test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005592test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005593test -z "$OBJDUMP" && OBJDUMP=objdump
5594test -z "$RANLIB" && RANLIB=:
5595test -z "$STRIP" && STRIP=:
5596test -z "$ac_objext" && ac_objext=o
5597
John Criswell7a73b802003-06-30 21:59:07 +00005598# Determine commands to create old-style static archives.
5599old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5600old_postinstall_cmds='chmod 644 $oldlib'
5601old_postuninstall_cmds=
5602
5603if test -n "$RANLIB"; then
5604 case $host_os in
5605 openbsd*)
5606 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5607 ;;
5608 *)
5609 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5610 ;;
5611 esac
5612 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5613fi
5614
John Criswell47fdd832003-07-14 16:52:07 +00005615# Only perform the check for file, if the check method requires it
5616case $deplibs_check_method in
5617file_magic*)
5618 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5619 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5620echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5621if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005623else
John Criswell47fdd832003-07-14 16:52:07 +00005624 case $MAGIC_CMD in
5625[\\/*] | ?:[\\/]*)
5626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5627 ;;
5628*)
5629 lt_save_MAGIC_CMD="$MAGIC_CMD"
5630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5632 for ac_dir in $ac_dummy; do
5633 IFS="$lt_save_ifs"
5634 test -z "$ac_dir" && ac_dir=.
5635 if test -f $ac_dir/${ac_tool_prefix}file; then
5636 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5637 if test -n "$file_magic_test_file"; then
5638 case $deplibs_check_method in
5639 "file_magic "*)
5640 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5643 $EGREP "$file_magic_regex" > /dev/null; then
5644 :
5645 else
5646 cat <<EOF 1>&2
5647
5648*** Warning: the command libtool uses to detect shared libraries,
5649*** $file_magic_cmd, produces output that libtool cannot recognize.
5650*** The result is that libtool may fail to recognize shared libraries
5651*** as such. This will affect the creation of libtool libraries that
5652*** depend on shared libraries, but programs linked with such libtool
5653*** libraries will work regardless of this problem. Nevertheless, you
5654*** may want to report the problem to your system manager and/or to
5655*** bug-libtool@gnu.org
5656
5657EOF
5658 fi ;;
5659 esac
5660 fi
5661 break
5662 fi
5663 done
5664 IFS="$lt_save_ifs"
5665 MAGIC_CMD="$lt_save_MAGIC_CMD"
5666 ;;
5667esac
John Criswell7a73b802003-06-30 21:59:07 +00005668fi
John Criswell7a73b802003-06-30 21:59:07 +00005669
John Criswell47fdd832003-07-14 16:52:07 +00005670MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5671if test -n "$MAGIC_CMD"; then
5672 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5673echo "${ECHO_T}$MAGIC_CMD" >&6
5674else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677fi
John Criswell7a73b802003-06-30 21:59:07 +00005678
John Criswell47fdd832003-07-14 16:52:07 +00005679if test -z "$lt_cv_path_MAGIC_CMD"; then
5680 if test -n "$ac_tool_prefix"; then
5681 echo "$as_me:$LINENO: checking for file" >&5
5682echo $ECHO_N "checking for file... $ECHO_C" >&6
5683if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 case $MAGIC_CMD in
5687[\\/*] | ?:[\\/]*)
5688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5689 ;;
5690*)
5691 lt_save_MAGIC_CMD="$MAGIC_CMD"
5692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5694 for ac_dir in $ac_dummy; do
5695 IFS="$lt_save_ifs"
5696 test -z "$ac_dir" && ac_dir=.
5697 if test -f $ac_dir/file; then
5698 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5699 if test -n "$file_magic_test_file"; then
5700 case $deplibs_check_method in
5701 "file_magic "*)
5702 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5705 $EGREP "$file_magic_regex" > /dev/null; then
5706 :
5707 else
5708 cat <<EOF 1>&2
5709
5710*** Warning: the command libtool uses to detect shared libraries,
5711*** $file_magic_cmd, produces output that libtool cannot recognize.
5712*** The result is that libtool may fail to recognize shared libraries
5713*** as such. This will affect the creation of libtool libraries that
5714*** depend on shared libraries, but programs linked with such libtool
5715*** libraries will work regardless of this problem. Nevertheless, you
5716*** may want to report the problem to your system manager and/or to
5717*** bug-libtool@gnu.org
5718
5719EOF
5720 fi ;;
5721 esac
5722 fi
5723 break
5724 fi
5725 done
5726 IFS="$lt_save_ifs"
5727 MAGIC_CMD="$lt_save_MAGIC_CMD"
5728 ;;
5729esac
5730fi
5731
5732MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5733if test -n "$MAGIC_CMD"; then
5734 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5735echo "${ECHO_T}$MAGIC_CMD" >&6
5736else
5737 echo "$as_me:$LINENO: result: no" >&5
5738echo "${ECHO_T}no" >&6
5739fi
5740
5741 else
5742 MAGIC_CMD=:
5743 fi
5744fi
5745
5746 fi
5747 ;;
5748esac
5749
5750enable_dlopen=no
5751enable_win32_dll=no
5752
5753# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5754if test "${enable_libtool_lock+set}" = set; then
5755 enableval="$enable_libtool_lock"
5756
5757fi;
5758test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5759
John Criswell7a73b802003-06-30 21:59:07 +00005760
5761# Check whether --with-pic or --without-pic was given.
5762if test "${with_pic+set}" = set; then
5763 withval="$with_pic"
5764 pic_mode="$withval"
5765else
5766 pic_mode=default
5767fi;
5768test -z "$pic_mode" && pic_mode=default
5769
John Criswell47fdd832003-07-14 16:52:07 +00005770# Use C for the default configuration in the libtool script
5771tagname=
5772lt_save_CC="$CC"
5773ac_ext=c
5774ac_cpp='$CPP $CPPFLAGS'
5775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778
5779
5780# Source file extension for C test sources.
5781ac_ext=c
5782
5783# Object file extension for compiled C test sources.
5784objext=o
5785objext=$objext
5786
5787# Code to be used in simple compile tests
5788lt_simple_compile_test_code="int some_variable = 0;\n"
5789
5790# Code to be used in simple link tests
5791lt_simple_link_test_code='int main(){return(0);}\n'
5792
5793
5794# If no C compiler was specified, use CC.
5795LTCC=${LTCC-"$CC"}
5796
5797# Allow CC to be a program name with arguments.
5798compiler=$CC
5799
5800
5801#
5802# Check for any special shared library compilation flags.
5803#
5804lt_prog_cc_shlib=
5805if test "$GCC" = no; then
5806 case $host_os in
5807 sco3.2v5*)
5808 lt_prog_cc_shlib='-belf'
5809 ;;
5810 esac
5811fi
5812if test -n "$lt_prog_cc_shlib"; then
5813 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5814echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5815 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5816 else
5817 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5818echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5819 lt_cv_prog_cc_can_build_shared=no
5820 fi
5821fi
5822
5823
5824#
5825# Check to make sure the static flag actually works.
5826#
5827echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5828echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5829if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
John Criswell47fdd832003-07-14 16:52:07 +00005832 lt_prog_compiler_static_works=no
5833 save_LDFLAGS="$LDFLAGS"
5834 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5835 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5837 # The compiler can only warn and ignore the option if not recognized
5838 # So say no if there are warnings
5839 if test -s conftest.err; then
5840 # Append any errors to the config.log.
5841 cat conftest.err 1>&5
5842 else
5843 lt_prog_compiler_static_works=yes
5844 fi
5845 fi
5846 $rm conftest*
5847 LDFLAGS="$save_LDFLAGS"
5848
5849fi
5850echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5851echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5852
5853if test x"$lt_prog_compiler_static_works" = xyes; then
5854 :
5855else
5856 lt_prog_compiler_static=
5857fi
5858
5859
5860
John Criswell47fdd832003-07-14 16:52:07 +00005861
5862lt_prog_compiler_no_builtin_flag=
5863
5864if test "$GCC" = yes; then
5865 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5866
5867 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5868echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5869if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else
5872 lt_cv_prog_compiler_rtti_exceptions=no
5873 ac_outfile=conftest.$ac_objext
5874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5875 lt_compiler_flag="-fno-rtti -fno-exceptions"
5876 # Insert the option either (1) after the last *FLAGS variable, or
5877 # (2) before a word containing "conftest.", or (3) at the end.
5878 # Note that $ac_compile itself does not contain backslashes and begins
5879 # with a dollar sign (not a hyphen), so the echo should work correctly.
5880 # The option is referenced via a variable to avoid confusing sed.
5881 lt_compile=`echo "$ac_compile" | $SED \
5882 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5884 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +00005885 (eval echo "\"\$as_me:5885: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005886 (eval "$lt_compile" 2>conftest.err)
5887 ac_status=$?
5888 cat conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +00005889 echo "$as_me:5889: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005890 if (exit $ac_status) && test -s "$ac_outfile"; then
5891 # The compiler can only warn and ignore the option if not recognized
5892 # So say no if there are warnings
5893 if test ! -s conftest.err; then
5894 lt_cv_prog_compiler_rtti_exceptions=yes
5895 fi
5896 fi
5897 $rm conftest*
5898
5899fi
5900echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5901echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5902
5903if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5904 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5905else
5906 :
5907fi
5908
5909fi
5910
5911lt_prog_compiler_wl=
5912lt_prog_compiler_pic=
5913lt_prog_compiler_static=
5914
5915echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5916echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005917
5918 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005919 lt_prog_compiler_wl='-Wl,'
5920 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005921
5922 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005923 aix*)
5924 # All AIX code is PIC.
5925 if test "$host_cpu" = ia64; then
5926 # AIX 5 now supports IA64 processor
5927 lt_prog_compiler_static='-Bstatic'
5928 fi
John Criswell7a73b802003-06-30 21:59:07 +00005929 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005930
John Criswell7a73b802003-06-30 21:59:07 +00005931 amigaos*)
5932 # FIXME: we need at least 68020 code to build shared libraries, but
5933 # adding the `-m68020' flag to GCC prevents building anything better,
5934 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005936 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005937
5938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005939 # PIC is the default for these OSes.
5940 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005941
5942 mingw* | pw32* | os2*)
5943 # This hack is so that the source file can tell whether it is being
5944 # built for inclusion in a dll (and should export symbols for example).
5945 lt_prog_compiler_pic='-DDLL_EXPORT'
5946 ;;
5947
John Criswell7a73b802003-06-30 21:59:07 +00005948 darwin* | rhapsody*)
5949 # PIC is the default on this platform
5950 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005951 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005952 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005953
5954 msdosdjgpp*)
5955 # Just because we use GCC doesn't mean we suddenly get shared libraries
5956 # on systems that don't support them.
5957 lt_prog_compiler_can_build_shared=no
5958 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005959 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005960
John Criswell7a73b802003-06-30 21:59:07 +00005961 sysv4*MP*)
5962 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005963 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005964 fi
5965 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005966
5967 hpux*)
5968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5969 # not for PA HP-UX.
5970 case "$host_cpu" in
5971 hppa*64*|ia64*)
5972 # +Z the default
5973 ;;
5974 *)
5975 lt_prog_compiler_pic='-fPIC'
5976 ;;
5977 esac
5978 ;;
5979
John Criswell7a73b802003-06-30 21:59:07 +00005980 *)
John Criswell47fdd832003-07-14 16:52:07 +00005981 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005982 ;;
5983 esac
5984 else
John Criswell47fdd832003-07-14 16:52:07 +00005985 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005986 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005987 aix*)
5988 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005989 if test "$host_cpu" = ia64; then
5990 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005991 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005992 else
John Criswell47fdd832003-07-14 16:52:07 +00005993 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005994 fi
5995 ;;
5996
John Criswell47fdd832003-07-14 16:52:07 +00005997 mingw* | pw32* | os2*)
5998 # This hack is so that the source file can tell whether it is being
5999 # built for inclusion in a dll (and should export symbols for example).
6000 lt_prog_compiler_pic='-DDLL_EXPORT'
6001 ;;
6002
John Criswell7a73b802003-06-30 21:59:07 +00006003 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006004 lt_prog_compiler_wl='-Wl,'
6005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6006 # not for PA HP-UX.
6007 case "$host_cpu" in
6008 hppa*64*|ia64*)
6009 # +Z the default
6010 ;;
6011 *)
6012 lt_prog_compiler_pic='+Z'
6013 ;;
6014 esac
6015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6016 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006017 ;;
6018
John Criswell47fdd832003-07-14 16:52:07 +00006019 irix5* | irix6* | nonstopux*)
6020 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006021 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006022 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006023 ;;
6024
6025 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006026 lt_prog_compiler_pic='-KPIC'
6027 lt_prog_compiler_static='-Bstatic'
6028 ;;
6029
6030 linux*)
6031 case $CC in
6032 icc|ecc)
6033 lt_prog_compiler_wl='-Wl,'
6034 lt_prog_compiler_pic='-KPIC'
6035 lt_prog_compiler_static='-static'
6036 ;;
6037 ccc)
6038 lt_prog_compiler_wl='-Wl,'
6039 # All Alpha code is PIC.
6040 lt_prog_compiler_static='-non_shared'
6041 ;;
6042 esac
John Criswell7a73b802003-06-30 21:59:07 +00006043 ;;
6044
6045 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006046 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006047 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006048 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006049 ;;
6050
6051 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006052 lt_prog_compiler_pic='-Kpic'
6053 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006054 ;;
6055
6056 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006057 lt_prog_compiler_wl='-Wl,'
6058 lt_prog_compiler_pic='-KPIC'
6059 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006060 ;;
6061
6062 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006063 lt_prog_compiler_wl='-Qoption ld '
6064 lt_prog_compiler_pic='-PIC'
6065 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006066 ;;
6067
6068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006069 lt_prog_compiler_wl='-Wl,'
6070 lt_prog_compiler_pic='-KPIC'
6071 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006072 ;;
6073
6074 sysv4*MP*)
6075 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006076 lt_prog_compiler_pic='-Kconform_pic'
6077 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006078 fi
6079 ;;
6080
John Criswell47fdd832003-07-14 16:52:07 +00006081 uts4*)
6082 lt_prog_compiler_pic='-pic'
6083 lt_prog_compiler_static='-Bstatic'
6084 ;;
6085
John Criswell7a73b802003-06-30 21:59:07 +00006086 *)
John Criswell47fdd832003-07-14 16:52:07 +00006087 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006088 ;;
6089 esac
6090 fi
6091
John Criswell47fdd832003-07-14 16:52:07 +00006092echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6093echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006094
John Criswell47fdd832003-07-14 16:52:07 +00006095#
6096# Check to make sure the PIC flag actually works.
6097#
6098if test -n "$lt_prog_compiler_pic"; then
6099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6100echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6101if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
John Criswell47fdd832003-07-14 16:52:07 +00006104 lt_prog_compiler_pic_works=no
6105 ac_outfile=conftest.$ac_objext
6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6108 # Insert the option either (1) after the last *FLAGS variable, or
6109 # (2) before a word containing "conftest.", or (3) at the end.
6110 # Note that $ac_compile itself does not contain backslashes and begins
6111 # with a dollar sign (not a hyphen), so the echo should work correctly.
6112 # The option is referenced via a variable to avoid confusing sed.
6113 lt_compile=`echo "$ac_compile" | $SED \
6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +00006117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006118 (eval "$lt_compile" 2>conftest.err)
6119 ac_status=$?
6120 cat conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +00006121 echo "$as_me:6121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006122 if (exit $ac_status) && test -s "$ac_outfile"; then
6123 # The compiler can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test ! -s conftest.err; then
6126 lt_prog_compiler_pic_works=yes
6127 fi
6128 fi
6129 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006130
John Criswell47fdd832003-07-14 16:52:07 +00006131fi
6132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6133echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006134
John Criswell47fdd832003-07-14 16:52:07 +00006135if test x"$lt_prog_compiler_pic_works" = xyes; then
6136 case $lt_prog_compiler_pic in
6137 "" | " "*) ;;
6138 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6139 esac
John Criswell7a73b802003-06-30 21:59:07 +00006140else
John Criswell47fdd832003-07-14 16:52:07 +00006141 lt_prog_compiler_pic=
6142 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006143fi
6144
John Criswell7a73b802003-06-30 21:59:07 +00006145fi
John Criswell47fdd832003-07-14 16:52:07 +00006146case "$host_os" in
6147 # For platforms which do not support PIC, -DPIC is meaningless:
6148 *djgpp*)
6149 lt_prog_compiler_pic=
6150 ;;
6151 *)
6152 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6153 ;;
6154esac
John Criswell7a73b802003-06-30 21:59:07 +00006155
John Criswell7a73b802003-06-30 21:59:07 +00006156echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6157echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006158if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
John Criswell47fdd832003-07-14 16:52:07 +00006161 lt_cv_prog_compiler_c_o=no
6162 $rm -r conftest 2>/dev/null
6163 mkdir conftest
6164 cd conftest
6165 mkdir out
6166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006167
John Criswell47fdd832003-07-14 16:52:07 +00006168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6169 # that will create temporary files in the current directory regardless of
6170 # the output directory. Thus, making CWD read-only will cause this test
6171 # to fail, enabling locking or at least warning the user not to do parallel
6172 # builds.
6173 chmod -w .
6174
6175 lt_compiler_flag="-o out/conftest2.$ac_objext"
6176 # Insert the option either (1) after the last *FLAGS variable, or
6177 # (2) before a word containing "conftest.", or (3) at the end.
6178 # Note that $ac_compile itself does not contain backslashes and begins
6179 # with a dollar sign (not a hyphen), so the echo should work correctly.
6180 lt_compile=`echo "$ac_compile" | $SED \
6181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6183 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +00006184 (eval echo "\"\$as_me:6184: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006185 (eval "$lt_compile" 2>out/conftest.err)
6186 ac_status=$?
6187 cat out/conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +00006188 echo "$as_me:6188: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6190 then
6191 # The compiler can only warn and ignore the option if not recognized
6192 # So say no if there are warnings
6193 if test ! -s out/conftest.err; then
6194 lt_cv_prog_compiler_c_o=yes
6195 fi
6196 fi
6197 chmod u+w .
6198 $rm conftest* out/*
6199 rmdir out
6200 cd ..
6201 rmdir conftest
6202 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006203
6204fi
John Criswell47fdd832003-07-14 16:52:07 +00006205echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6206echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006207
John Criswell7a73b802003-06-30 21:59:07 +00006208
John Criswell7a73b802003-06-30 21:59:07 +00006209hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006210if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006211 # do not overwrite the value of need_locks provided by the user
6212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6213echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6214 hard_links=yes
6215 $rm conftest*
6216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6217 touch conftest.a
6218 ln conftest.a conftest.b 2>&5 || hard_links=no
6219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6220 echo "$as_me:$LINENO: result: $hard_links" >&5
6221echo "${ECHO_T}$hard_links" >&6
6222 if test "$hard_links" = no; then
6223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6224echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6225 need_locks=warn
6226 fi
6227else
6228 need_locks=no
6229fi
John Criswell7a73b802003-06-30 21:59:07 +00006230
John Criswell47fdd832003-07-14 16:52:07 +00006231echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6232echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6233
6234 runpath_var=
6235 allow_undefined_flag=
6236 enable_shared_with_static_runtimes=no
6237 archive_cmds=
6238 archive_expsym_cmds=
6239 old_archive_From_new_cmds=
6240 old_archive_from_expsyms_cmds=
6241 export_dynamic_flag_spec=
6242 whole_archive_flag_spec=
6243 thread_safe_flag_spec=
6244 hardcode_libdir_flag_spec=
6245 hardcode_libdir_flag_spec_ld=
6246 hardcode_libdir_separator=
6247 hardcode_direct=no
6248 hardcode_minus_L=no
6249 hardcode_shlibpath_var=unsupported
6250 link_all_deplibs=unknown
6251 hardcode_automatic=no
6252 module_cmds=
6253 module_expsym_cmds=
6254 always_export_symbols=no
6255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6256 # include_expsyms should be a list of space-separated symbols to be *always*
6257 # included in the symbol list
6258 include_expsyms=
6259 # exclude_expsyms can be an extended regexp of symbols to exclude
6260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6262 # as well as any symbol that contains `d'.
6263 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6265 # platforms (ab)use it in PIC code, but their linkers get confused if
6266 # the symbol is explicitly referenced. Since portable code cannot
6267 # rely on this symbol name, it's probably fine to never include it in
6268 # preloaded symbol tables.
6269 extract_expsyms_cmds=
6270
6271 case $host_os in
6272 cygwin* | mingw* | pw32*)
6273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6274 # When not using gcc, we currently assume that we are using
6275 # Microsoft Visual C++.
6276 if test "$GCC" != yes; then
6277 with_gnu_ld=no
6278 fi
6279 ;;
6280 openbsd*)
6281 with_gnu_ld=no
6282 ;;
6283 esac
6284
6285 ld_shlibs=yes
6286 if test "$with_gnu_ld" = yes; then
6287 # If archive_cmds runs LD, not CC, wlarc should be empty
6288 wlarc='${wl}'
6289
6290 # See if GNU ld supports shared libraries.
6291 case $host_os in
6292 aix3* | aix4* | aix5*)
6293 # On AIX/PPC, the GNU linker is very broken
6294 if test "$host_cpu" != ia64; then
6295 ld_shlibs=no
6296 cat <<EOF 1>&2
6297
6298*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6299*** to be unable to reliably create shared libraries on AIX.
6300*** Therefore, libtool is disabling shared libraries support. If you
6301*** really care for shared libraries, you may want to modify your PATH
6302*** so that a non-GNU linker is found, and then restart.
6303
6304EOF
6305 fi
6306 ;;
6307
6308 amigaos*)
6309 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)'
6310 hardcode_libdir_flag_spec='-L$libdir'
6311 hardcode_minus_L=yes
6312
6313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6314 # that the semantics of dynamic libraries on AmigaOS, at least up
6315 # to version 4, is to share data among multiple programs linked
6316 # with the same dynamic library. Since this doesn't match the
6317 # behavior of shared libraries on other platforms, we can't use
6318 # them.
6319 ld_shlibs=no
6320 ;;
6321
6322 beos*)
6323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6324 allow_undefined_flag=unsupported
6325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6326 # support --undefined. This deserves some investigation. FIXME
6327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6328 else
6329 ld_shlibs=no
6330 fi
6331 ;;
6332
6333 cygwin* | mingw* | pw32*)
6334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6335 # as there is no search path for DLLs.
6336 hardcode_libdir_flag_spec='-L$libdir'
6337 allow_undefined_flag=unsupported
6338 always_export_symbols=no
6339 enable_shared_with_static_runtimes=yes
6340 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6341
6342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6344 # If the export-symbols file already is a .def file (1st line
6345 # is EXPORTS), use it as is; otherwise, prepend...
6346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6347 cp $export_symbols $output_objdir/$soname.def;
6348 else
6349 echo EXPORTS > $output_objdir/$soname.def;
6350 cat $export_symbols >> $output_objdir/$soname.def;
6351 fi~
6352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6353 else
6354 ld_shlibs=no
6355 fi
6356 ;;
6357
6358 netbsd*)
6359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6361 wlarc=
6362 else
6363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6365 fi
6366 ;;
6367
6368 solaris* | sysv5*)
6369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6370 ld_shlibs=no
6371 cat <<EOF 1>&2
6372
6373*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6374*** create shared libraries on Solaris systems. Therefore, libtool
6375*** is disabling shared libraries support. We urge you to upgrade GNU
6376*** binutils to release 2.9.1 or newer. Another option is to modify
6377*** your PATH or compiler configuration so that the native linker is
6378*** used, and then restart.
6379
6380EOF
6381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6384 else
6385 ld_shlibs=no
6386 fi
6387 ;;
6388
6389 sunos4*)
6390 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6391 wlarc=
6392 hardcode_direct=yes
6393 hardcode_shlibpath_var=no
6394 ;;
6395
6396 *)
6397 if $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 esac
6405
6406 if test "$ld_shlibs" = yes; then
6407 runpath_var=LD_RUN_PATH
6408 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6409 export_dynamic_flag_spec='${wl}--export-dynamic'
6410 # ancient GNU ld didn't support --whole-archive et. al.
6411 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6412 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6413 else
6414 whole_archive_flag_spec=
6415 fi
6416 fi
6417 else
6418 # PORTME fill in a description of your system's linker (not GNU ld)
6419 case $host_os in
6420 aix3*)
6421 allow_undefined_flag=unsupported
6422 always_export_symbols=yes
6423 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'
6424 # Note: this linker hardcodes the directories in LIBPATH if there
6425 # are no directories specified by -L.
6426 hardcode_minus_L=yes
6427 if test "$GCC" = yes && test -z "$link_static_flag"; then
6428 # Neither direct hardcoding nor static linking is supported with a
6429 # broken collect2.
6430 hardcode_direct=unsupported
6431 fi
6432 ;;
6433
6434 aix4* | aix5*)
6435 if test "$host_cpu" = ia64; then
6436 # On IA64, the linker does run time linking by default, so we don't
6437 # have to do anything special.
6438 aix_use_runtimelinking=no
6439 exp_sym_flag='-Bexport'
6440 no_entry_flag=""
6441 else
6442 # If we're using GNU nm, then we don't want the "-C" option.
6443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6445 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'
6446 else
6447 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'
6448 fi
6449 aix_use_runtimelinking=no
6450
6451 # Test if we are trying to use run time linking or normal
6452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6453 # need to do runtime linking.
6454 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6455 for ld_flag in $LDFLAGS; do
6456 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6457 aix_use_runtimelinking=yes
6458 break
6459 fi
6460 done
6461 esac
6462
6463 exp_sym_flag='-bexport'
6464 no_entry_flag='-bnoentry'
6465 fi
6466
6467 # When large executables or shared objects are built, AIX ld can
6468 # have problems creating the table of contents. If linking a library
6469 # or program results in "error TOC overflow" add -mminimal-toc to
6470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6472
6473 archive_cmds=''
6474 hardcode_direct=yes
6475 hardcode_libdir_separator=':'
6476 link_all_deplibs=yes
6477
6478 if test "$GCC" = yes; then
6479 case $host_os in aix4.012|aix4.012.*)
6480 # We only want to do this on AIX 4.2 and lower, the check
6481 # below for broken collect2 doesn't work under 4.3+
6482 collect2name=`${CC} -print-prog-name=collect2`
6483 if test -f "$collect2name" && \
6484 strings "$collect2name" | grep resolve_lib_name >/dev/null
6485 then
6486 # We have reworked collect2
6487 hardcode_direct=yes
6488 else
6489 # We have old collect2
6490 hardcode_direct=unsupported
6491 # It fails to find uninstalled libraries when the uninstalled
6492 # path is not listed in the libpath. Setting hardcode_minus_L
6493 # to unsupported forces relinking
6494 hardcode_minus_L=yes
6495 hardcode_libdir_flag_spec='-L$libdir'
6496 hardcode_libdir_separator=
6497 fi
6498 esac
6499 shared_flag='-shared'
6500 else
6501 # not using gcc
6502 if test "$host_cpu" = ia64; then
6503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6504 # chokes on -Wl,-G. The following line is correct:
6505 shared_flag='-G'
6506 else
6507 if test "$aix_use_runtimelinking" = yes; then
6508 shared_flag='${wl}-G'
6509 else
6510 shared_flag='${wl}-bM:SRE'
6511 fi
6512 fi
6513 fi
6514
6515 # It seems that -bexpall does not export symbols beginning with
6516 # underscore (_), so it is better to generate a list of symbols to export.
6517 always_export_symbols=yes
6518 if test "$aix_use_runtimelinking" = yes; then
6519 # Warning - without using the other runtime loading flags (-brtl),
6520 # -berok will link without error, but may produce a broken library.
6521 allow_undefined_flag='-berok'
6522 # Determine the default libpath from the value encoded in an empty executable.
6523 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006524#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006525/* confdefs.h. */
6526_ACEOF
6527cat confdefs.h >>conftest.$ac_ext
6528cat >>conftest.$ac_ext <<_ACEOF
6529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006530
John Criswell7a73b802003-06-30 21:59:07 +00006531int
6532main ()
6533{
John Criswell47fdd832003-07-14 16:52:07 +00006534
John Criswell7a73b802003-06-30 21:59:07 +00006535 ;
6536 return 0;
6537}
6538_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006539rm -f conftest.$ac_objext conftest$ac_exeext
6540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006545 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006551
John Criswell47fdd832003-07-14 16:52:07 +00006552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6553}'`
6554# Check for a 64-bit object if we didn't find anything.
6555if 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; }
6556}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006557else
6558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006559sed 's/^/| /' conftest.$ac_ext >&5
6560
John Criswell7a73b802003-06-30 21:59:07 +00006561fi
John Criswell47fdd832003-07-14 16:52:07 +00006562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006564
John Criswell47fdd832003-07-14 16:52:07 +00006565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6566 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"
6567 else
6568 if test "$host_cpu" = ia64; then
6569 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6570 allow_undefined_flag="-z nodefs"
6571 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"
6572 else
6573 # Determine the default libpath from the value encoded in an empty executable.
6574 cat >conftest.$ac_ext <<_ACEOF
6575#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006581
John Criswell47fdd832003-07-14 16:52:07 +00006582int
6583main ()
6584{
John Criswell7a73b802003-06-30 21:59:07 +00006585
John Criswell47fdd832003-07-14 16:52:07 +00006586 ;
6587 return 0;
6588}
6589_ACEOF
6590rm -f conftest.$ac_objext conftest$ac_exeext
6591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -s conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006602
John Criswell47fdd832003-07-14 16:52:07 +00006603aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6604}'`
6605# Check for a 64-bit object if we didn't find anything.
6606if 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; }
6607}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006608else
John Criswell47fdd832003-07-14 16:52:07 +00006609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006610sed 's/^/| /' conftest.$ac_ext >&5
6611
John Criswell47fdd832003-07-14 16:52:07 +00006612fi
6613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006615
John Criswell47fdd832003-07-14 16:52:07 +00006616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6617 # Warning - without using the other run time loading flags,
6618 # -berok will link without error, but may produce a broken library.
6619 no_undefined_flag=' ${wl}-bernotok'
6620 allow_undefined_flag=' ${wl}-berok'
6621 # -bexpall does not export symbols beginning with underscore (_)
6622 always_export_symbols=yes
6623 # Exported symbols can be pulled into shared objects from archives
6624 whole_archive_flag_spec=' '
6625 archive_cmds_need_lc=yes
6626 # This is similar to how AIX traditionally builds it's shared libraries.
6627 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 +00006628 fi
6629 fi
John Criswell7a73b802003-06-30 21:59:07 +00006630 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006631
6632 amigaos*)
6633 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)'
6634 hardcode_libdir_flag_spec='-L$libdir'
6635 hardcode_minus_L=yes
6636 # see comment about different semantics on the GNU ld section
6637 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006638 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006639
John Criswell47fdd832003-07-14 16:52:07 +00006640 bsdi4*)
6641 export_dynamic_flag_spec=-rdynamic
6642 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006643
John Criswell47fdd832003-07-14 16:52:07 +00006644 cygwin* | mingw* | pw32*)
6645 # When not using gcc, we currently assume that we are using
6646 # Microsoft Visual C++.
6647 # hardcode_libdir_flag_spec is actually meaningless, as there is
6648 # no search path for DLLs.
6649 hardcode_libdir_flag_spec=' '
6650 allow_undefined_flag=unsupported
6651 # Tell ltmain to make .lib files, not .a files.
6652 libext=lib
6653 # Tell ltmain to make .dll files, not .so files.
6654 shrext=".dll"
6655 # FIXME: Setting linknames here is a bad hack.
6656 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6657 # The linker will automatically build a .lib file if we build a DLL.
6658 old_archive_From_new_cmds='true'
6659 # FIXME: Should let the user specify the lib program.
6660 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6661 fix_srcfile_path='`cygpath -w "$srcfile"`'
6662 enable_shared_with_static_runtimes=yes
6663 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006664
John Criswell47fdd832003-07-14 16:52:07 +00006665 darwin* | rhapsody*)
6666 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6667 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006668 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006669 rhapsody* | darwin1.[012])
6670 allow_undefined_flag='-undefined suppress'
6671 ;;
6672 *) # Darwin 1.3 on
6673 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006674 ;;
6675 esac
John Criswell47fdd832003-07-14 16:52:07 +00006676 # FIXME: Relying on posixy $() will cause problems for
6677 # cross-compilation, but unfortunately the echo tests do not
6678 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6679 # `"' quotes if we put them in here... so don't!
6680 lt_int_apple_cc_single_mod=no
6681 output_verbose_link_cmd='echo'
6682 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6683 lt_int_apple_cc_single_mod=yes
6684 fi
6685 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6686 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6687 else
6688 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'
6689 fi
6690 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6692 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6693 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}'
6694 else
6695 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}'
6696 fi
6697 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}'
6698 hardcode_direct=no
6699 hardcode_automatic=yes
6700 hardcode_shlibpath_var=unsupported
6701 whole_archive_flag_spec='-all_load $convenience'
6702 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006703 fi
John Criswell47fdd832003-07-14 16:52:07 +00006704 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006705
John Criswell47fdd832003-07-14 16:52:07 +00006706 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006708 hardcode_libdir_flag_spec='-L$libdir'
6709 hardcode_shlibpath_var=no
6710 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006711
John Criswell47fdd832003-07-14 16:52:07 +00006712 freebsd1*)
6713 ld_shlibs=no
6714 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006715
John Criswell47fdd832003-07-14 16:52:07 +00006716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6717 # support. Future versions do this automatically, but an explicit c++rt0.o
6718 # does not break anything, and helps significantly (at the cost of a little
6719 # extra space).
6720 freebsd2.2*)
6721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6722 hardcode_libdir_flag_spec='-R$libdir'
6723 hardcode_direct=yes
6724 hardcode_shlibpath_var=no
6725 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006726
John Criswell47fdd832003-07-14 16:52:07 +00006727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6728 freebsd2*)
6729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6730 hardcode_direct=yes
6731 hardcode_minus_L=yes
6732 hardcode_shlibpath_var=no
6733 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006734
John Criswell47fdd832003-07-14 16:52:07 +00006735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6736 freebsd*)
6737 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
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 hpux9*)
6744 if test "$GCC" = yes; then
6745 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'
6746 else
6747 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'
6748 fi
6749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6750 hardcode_libdir_separator=:
6751 hardcode_direct=yes
6752
6753 # hardcode_minus_L: Not really in the search PATH,
6754 # but as the default location of the library.
6755 hardcode_minus_L=yes
6756 export_dynamic_flag_spec='${wl}-E'
6757 ;;
6758
6759 hpux10* | hpux11*)
6760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6761 case "$host_cpu" in
6762 hppa*64*|ia64*)
6763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6764 ;;
6765 *)
6766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6767 ;;
6768 esac
6769 else
6770 case "$host_cpu" in
6771 hppa*64*|ia64*)
6772 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6773 ;;
6774 *)
6775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6776 ;;
6777 esac
6778 fi
6779 if test "$with_gnu_ld" = no; then
6780 case "$host_cpu" in
6781 hppa*64*)
6782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6783 hardcode_libdir_flag_spec_ld='+b $libdir'
6784 hardcode_libdir_separator=:
6785 hardcode_direct=no
6786 hardcode_shlibpath_var=no
6787 ;;
6788 ia64*)
6789 hardcode_libdir_flag_spec='-L$libdir'
6790 hardcode_direct=no
6791 hardcode_shlibpath_var=no
6792
6793 # hardcode_minus_L: Not really in the search PATH,
6794 # but as the default location of the library.
6795 hardcode_minus_L=yes
6796 ;;
6797 *)
6798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6799 hardcode_libdir_separator=:
6800 hardcode_direct=yes
6801 export_dynamic_flag_spec='${wl}-E'
6802
6803 # hardcode_minus_L: Not really in the search PATH,
6804 # but as the default location of the library.
6805 hardcode_minus_L=yes
6806 ;;
6807 esac
6808 fi
6809 ;;
6810
6811 irix5* | irix6* | nonstopux*)
6812 if test "$GCC" = yes; then
6813 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'
6814 else
6815 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'
6816 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6817 fi
6818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6819 hardcode_libdir_separator=:
6820 link_all_deplibs=yes
6821 ;;
6822
6823 netbsd*)
6824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6826 else
6827 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6828 fi
6829 hardcode_libdir_flag_spec='-R$libdir'
6830 hardcode_direct=yes
6831 hardcode_shlibpath_var=no
6832 ;;
6833
6834 newsos6)
6835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6836 hardcode_direct=yes
6837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6838 hardcode_libdir_separator=:
6839 hardcode_shlibpath_var=no
6840 ;;
6841
6842 openbsd*)
6843 hardcode_direct=yes
6844 hardcode_shlibpath_var=no
6845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6846 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6848 export_dynamic_flag_spec='${wl}-E'
6849 else
6850 case $host_os in
6851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6853 hardcode_libdir_flag_spec='-R$libdir'
6854 ;;
6855 *)
6856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6858 ;;
6859 esac
6860 fi
6861 ;;
6862
6863 os2*)
6864 hardcode_libdir_flag_spec='-L$libdir'
6865 hardcode_minus_L=yes
6866 allow_undefined_flag=unsupported
6867 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'
6868 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6869 ;;
6870
6871 osf3*)
6872 if test "$GCC" = yes; then
6873 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874 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'
6875 else
6876 allow_undefined_flag=' -expect_unresolved \*'
6877 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'
6878 fi
6879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6880 hardcode_libdir_separator=:
6881 ;;
6882
6883 osf4* | osf5*) # as osf3* with the addition of -msym flag
6884 if test "$GCC" = yes; then
6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886 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'
6887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6888 else
6889 allow_undefined_flag=' -expect_unresolved \*'
6890 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'
6891 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6892 $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'
6893
6894 # Both c and cxx compiler support -rpath directly
6895 hardcode_libdir_flag_spec='-rpath $libdir'
6896 fi
6897 hardcode_libdir_separator=:
6898 ;;
6899
6900 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6902 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006903 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006904 runpath_var=LD_RUN_PATH
6905 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006906 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006907
John Criswell47fdd832003-07-14 16:52:07 +00006908 solaris*)
6909 no_undefined_flag=' -z text'
6910 if test "$GCC" = yes; then
6911 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6913 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6914 else
6915 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6918 fi
6919 hardcode_libdir_flag_spec='-R$libdir'
6920 hardcode_shlibpath_var=no
6921 case $host_os in
6922 solaris2.[0-5] | solaris2.[0-5].*) ;;
6923 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6924 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6925 esac
6926 link_all_deplibs=yes
6927 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006928
John Criswell47fdd832003-07-14 16:52:07 +00006929 sunos4*)
6930 if test "x$host_vendor" = xsequent; then
6931 # Use $CC to link under sequent, because it throws in some extra .o
6932 # files that make .init and .fini sections work.
6933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6934 else
6935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6936 fi
6937 hardcode_libdir_flag_spec='-L$libdir'
6938 hardcode_direct=yes
6939 hardcode_minus_L=yes
6940 hardcode_shlibpath_var=no
6941 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006942
John Criswell47fdd832003-07-14 16:52:07 +00006943 sysv4)
6944 case $host_vendor in
6945 sni)
6946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947 hardcode_direct=yes # is this really true???
6948 ;;
6949 siemens)
6950 ## LD is ld it makes a PLAMLIB
6951 ## CC just makes a GrossModule.
6952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6953 reload_cmds='$CC -r -o $output$reload_objs'
6954 hardcode_direct=no
6955 ;;
6956 motorola)
6957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6959 ;;
6960 esac
6961 runpath_var='LD_RUN_PATH'
6962 hardcode_shlibpath_var=no
6963 ;;
6964
6965 sysv4.3*)
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_shlibpath_var=no
6968 export_dynamic_flag_spec='-Bexport'
6969 ;;
6970
6971 sysv4*MP*)
6972 if test -d /usr/nec; then
6973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974 hardcode_shlibpath_var=no
6975 runpath_var=LD_RUN_PATH
6976 hardcode_runpath_var=yes
6977 ld_shlibs=yes
6978 fi
6979 ;;
6980
6981 sysv4.2uw2*)
6982 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6983 hardcode_direct=yes
6984 hardcode_minus_L=no
6985 hardcode_shlibpath_var=no
6986 hardcode_runpath_var=yes
6987 runpath_var=LD_RUN_PATH
6988 ;;
6989
6990 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6991 no_undefined_flag='${wl}-z ${wl}text'
6992 if test "$GCC" = yes; then
6993 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994 else
6995 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6996 fi
6997 runpath_var='LD_RUN_PATH'
6998 hardcode_shlibpath_var=no
6999 ;;
7000
7001 sysv5*)
7002 no_undefined_flag=' -z text'
7003 # $CC -shared without GNU ld will not create a library from C++
7004 # object files and a static libstdc++, better avoid it by now
7005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7008 hardcode_libdir_flag_spec=
7009 hardcode_shlibpath_var=no
7010 runpath_var='LD_RUN_PATH'
7011 ;;
7012
7013 uts4*)
7014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015 hardcode_libdir_flag_spec='-L$libdir'
7016 hardcode_shlibpath_var=no
7017 ;;
7018
7019 *)
7020 ld_shlibs=no
7021 ;;
7022 esac
7023 fi
7024
John Criswell7a73b802003-06-30 21:59:07 +00007025echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7026echo "${ECHO_T}$ld_shlibs" >&6
7027test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007028
John Criswell47fdd832003-07-14 16:52:07 +00007029variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7030if test "$GCC" = yes; then
7031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7032fi
7033
7034#
7035# Do we need to explicitly link libc?
7036#
7037case "x$archive_cmds_need_lc" in
7038x|xyes)
7039 # Assume -lc should be added
7040 archive_cmds_need_lc=yes
7041
7042 if test "$enable_shared" = yes && test "$GCC" = yes; then
7043 case $archive_cmds in
7044 *'~'*)
7045 # FIXME: we may have to deal with multi-command sequences.
7046 ;;
7047 '$CC '*)
7048 # Test whether the compiler implicitly links with -lc since on some
7049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7050 # to ld, don't add -lc before -lgcc.
7051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7052echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7053 $rm conftest*
7054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7055
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } 2>conftest.err; then
7061 soname=conftest
7062 lib=conftest
7063 libobjs=conftest.$ac_objext
7064 deplibs=
7065 wl=$lt_prog_compiler_wl
7066 compiler_flags=-v
7067 linker_flags=-v
7068 verstring=
7069 output_objdir=.
7070 libname=conftest
7071 lt_save_allow_undefined_flag=$allow_undefined_flag
7072 allow_undefined_flag=
7073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7074 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }
7078 then
7079 archive_cmds_need_lc=no
7080 else
7081 archive_cmds_need_lc=yes
7082 fi
7083 allow_undefined_flag=$lt_save_allow_undefined_flag
7084 else
7085 cat conftest.err 1>&5
7086 fi
7087 $rm conftest*
7088 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7089echo "${ECHO_T}$archive_cmds_need_lc" >&6
7090 ;;
7091 esac
7092 fi
7093 ;;
7094esac
7095
John Criswell7a73b802003-06-30 21:59:07 +00007096echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7097echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7098hardcode_action=
7099if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007100 test -n "$runpath_var " || \
7101 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007102
7103 # We can hardcode non-existant directories.
7104 if test "$hardcode_direct" != no &&
7105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7106 # have to relink, otherwise we might link with an installed library
7107 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007109 test "$hardcode_minus_L" != no; then
7110 # Linking always hardcodes the temporary library directory.
7111 hardcode_action=relink
7112 else
7113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7114 hardcode_action=immediate
7115 fi
7116else
7117 # We cannot hardcode anything, or else we can only hardcode existing
7118 # directories.
7119 hardcode_action=unsupported
7120fi
7121echo "$as_me:$LINENO: result: $hardcode_action" >&5
7122echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007123
John Criswell47fdd832003-07-14 16:52:07 +00007124if test "$hardcode_action" = relink; then
7125 # Fast installation is not supported
7126 enable_fast_install=no
7127elif test "$shlibpath_overrides_runpath" = yes ||
7128 test "$enable_shared" = no; then
7129 # Fast installation is not necessary
7130 enable_fast_install=needless
7131fi
7132
John Criswell7a73b802003-06-30 21:59:07 +00007133striplib=
7134old_striplib=
7135echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7136echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7137if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142else
John Criswell47fdd832003-07-14 16:52:07 +00007143# FIXME - insert some real tests, host_os isn't really good enough
7144 case $host_os in
7145 darwin*)
7146 if test -n "$STRIP" ; then
7147 striplib="$STRIP -x"
7148 echo "$as_me:$LINENO: result: yes" >&5
7149echo "${ECHO_T}yes" >&6
7150 else
John Criswell7a73b802003-06-30 21:59:07 +00007151 echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6
7153fi
John Criswell47fdd832003-07-14 16:52:07 +00007154 ;;
7155 *)
7156 echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6
7158 ;;
7159 esac
7160fi
John Criswell7a73b802003-06-30 21:59:07 +00007161
John Criswell7a73b802003-06-30 21:59:07 +00007162echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7163echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7164library_names_spec=
7165libname_spec='lib$name'
7166soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007167shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007168postinstall_cmds=
7169postuninstall_cmds=
7170finish_cmds=
7171finish_eval=
7172shlibpath_var=
7173shlibpath_overrides_runpath=unknown
7174version_type=none
7175dynamic_linker="$host_os ld.so"
7176sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007177if test "$GCC" = yes; then
7178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7179 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7180 # if the path contains ";" then we assume it to be the separator
7181 # otherwise default to the standard path separator (i.e. ":") - it is
7182 # assumed that no part of a normal pathname contains ";" but that should
7183 # okay in the real world where ";" in dirpaths is itself problematic.
7184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7185 else
7186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7187 fi
7188else
7189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7190fi
7191need_lib_prefix=unknown
7192hardcode_into_libs=no
7193
7194# when you set need_version to no, make sure it does not cause -set_version
7195# flags to be left without arguments
7196need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007197
7198case $host_os in
7199aix3*)
7200 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007202 shlibpath_var=LIBPATH
7203
John Criswell47fdd832003-07-14 16:52:07 +00007204 # AIX 3 has no versioning support, so we append a major version to the name.
7205 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007206 ;;
7207
7208aix4* | aix5*)
7209 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007210 need_lib_prefix=no
7211 need_version=no
7212 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007213 if test "$host_cpu" = ia64; then
7214 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007216 shlibpath_var=LD_LIBRARY_PATH
7217 else
7218 # With GCC up to 2.95.x, collect2 would create an import file
7219 # for dependence libraries. The import file would start with
7220 # the line `#! .'. This would cause the generated library to
7221 # depend on `.', always an invalid library. This was fixed in
7222 # development snapshots of GCC prior to 3.0.
7223 case $host_os in
7224 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7226 echo ' yes '
7227 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7228 :
7229 else
7230 can_build_shared=no
7231 fi
7232 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007233 esac
John Criswell47fdd832003-07-14 16:52:07 +00007234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7235 # soname into executable. Probably we can add versioning support to
7236 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007237 if test "$aix_use_runtimelinking" = yes; then
7238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7239 # instead of lib<name>.a to let people know that these are not
7240 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007242 else
7243 # We preserve .a as extension for shared libraries through AIX4.2
7244 # and later when we are not doing run time linking.
7245 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007246 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007247 fi
7248 shlibpath_var=LIBPATH
7249 fi
7250 ;;
7251
7252amigaos*)
7253 library_names_spec='$libname.ixlibrary $libname.a'
7254 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7255 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'
7256 ;;
7257
7258beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007259 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007260 dynamic_linker="$host_os ld.so"
7261 shlibpath_var=LIBRARY_PATH
7262 ;;
7263
7264bsdi4*)
7265 version_type=linux
7266 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7268 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7270 shlibpath_var=LD_LIBRARY_PATH
7271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007273 # the default ld.so.conf also contains /usr/contrib/lib and
7274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7275 # libtool to hard-code these into programs
7276 ;;
7277
7278cygwin* | mingw* | pw32*)
7279 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007280 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007281 need_version=no
7282 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007283
John Criswell7a73b802003-06-30 21:59:07 +00007284 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007285 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007286 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7288 postinstall_cmds='base_file=`basename \${file}`~
7289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007290 dldir=$destdir/`dirname \$dlpath`~
7291 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007292 $install_prog $dir/$dlname \$dldir/$dlname'
7293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007294 dlpath=$dir/\$dldll~
7295 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007296 shlibpath_overrides_runpath=yes
7297
7298 case $host_os in
7299 cygwin*)
7300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7302 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7303 ;;
7304 mingw*)
7305 # MinGW DLLs use traditional 'lib' prefix
7306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7309 # It is most probably a Windows format PATH printed by
7310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7311 # path with ; separators, and with drive letters. We can handle the
7312 # drive letters (cygwin fileutils understands them), so leave them,
7313 # especially as we might pass files found there to a mingw objdump,
7314 # which wouldn't understand a cygwinified path. Ahh.
7315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7316 else
7317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7318 fi
7319 ;;
7320 pw32*)
7321 # pw32 DLLs use 'pw' prefix rather than 'lib'
7322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7323 ;;
7324 esac
John Criswell7a73b802003-06-30 21:59:07 +00007325 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007326
John Criswell7a73b802003-06-30 21:59:07 +00007327 *)
John Criswell47fdd832003-07-14 16:52:07 +00007328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007329 ;;
7330 esac
7331 dynamic_linker='Win32 ld.exe'
7332 # FIXME: first we should search . and the directory the executable is in
7333 shlibpath_var=PATH
7334 ;;
7335
7336darwin* | rhapsody*)
7337 dynamic_linker="$host_os dyld"
7338 version_type=darwin
7339 need_lib_prefix=no
7340 need_version=no
7341 # FIXME: Relying on posixy $() will cause problems for
7342 # cross-compilation, but unfortunately the echo tests do not
7343 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7345 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007346 shlibpath_overrides_runpath=yes
7347 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007348 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7350 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7351 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"`
7352 fi
7353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7354 ;;
7355
7356dgux*)
7357 version_type=linux
7358 need_lib_prefix=no
7359 need_version=no
7360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7361 soname_spec='${libname}${release}${shared_ext}$major'
7362 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007363 ;;
7364
7365freebsd1*)
7366 dynamic_linker=no
7367 ;;
7368
7369freebsd*)
7370 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7371 version_type=freebsd-$objformat
7372 case $version_type in
7373 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007375 need_version=no
7376 need_lib_prefix=no
7377 ;;
7378 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007380 need_version=yes
7381 ;;
7382 esac
7383 shlibpath_var=LD_LIBRARY_PATH
7384 case $host_os in
7385 freebsd2*)
7386 shlibpath_overrides_runpath=yes
7387 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007388 freebsd3.01* | freebsdelf3.01*)
7389 shlibpath_overrides_runpath=yes
7390 hardcode_into_libs=yes
7391 ;;
7392 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007393 shlibpath_overrides_runpath=no
7394 hardcode_into_libs=yes
7395 ;;
7396 esac
7397 ;;
7398
7399gnu*)
7400 version_type=linux
7401 need_lib_prefix=no
7402 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7404 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007405 shlibpath_var=LD_LIBRARY_PATH
7406 hardcode_into_libs=yes
7407 ;;
7408
7409hpux9* | hpux10* | hpux11*)
7410 # Give a soname corresponding to the major version so that dld.sl refuses to
7411 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007412 version_type=sunos
7413 need_lib_prefix=no
7414 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007415 case "$host_cpu" in
7416 ia64*)
7417 shrext='.so'
7418 hardcode_into_libs=yes
7419 dynamic_linker="$host_os dld.so"
7420 shlibpath_var=LD_LIBRARY_PATH
7421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7423 soname_spec='${libname}${release}${shared_ext}$major'
7424 if test "X$HPUX_IA64_MODE" = X32; then
7425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7426 else
7427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7428 fi
7429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7430 ;;
7431 hppa*64*)
7432 shrext='.sl'
7433 hardcode_into_libs=yes
7434 dynamic_linker="$host_os dld.sl"
7435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7438 soname_spec='${libname}${release}${shared_ext}$major'
7439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7441 ;;
7442 *)
7443 shrext='.sl'
7444 dynamic_linker="$host_os dld.sl"
7445 shlibpath_var=SHLIB_PATH
7446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7448 soname_spec='${libname}${release}${shared_ext}$major'
7449 ;;
7450 esac
John Criswell7a73b802003-06-30 21:59:07 +00007451 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7452 postinstall_cmds='chmod 555 $lib'
7453 ;;
7454
John Criswell47fdd832003-07-14 16:52:07 +00007455irix5* | irix6* | nonstopux*)
7456 case $host_os in
7457 nonstopux*) version_type=nonstopux ;;
7458 *)
7459 if test "$lt_cv_prog_gnu_ld" = yes; then
7460 version_type=linux
7461 else
7462 version_type=irix
7463 fi ;;
7464 esac
John Criswell7a73b802003-06-30 21:59:07 +00007465 need_lib_prefix=no
7466 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007467 soname_spec='${libname}${release}${shared_ext}$major'
7468 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 +00007469 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007470 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007471 libsuff= shlibsuff=
7472 ;;
7473 *)
7474 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7476 libsuff= shlibsuff= libmagic=32-bit;;
7477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7478 libsuff=32 shlibsuff=N32 libmagic=N32;;
7479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007481 *) libsuff= shlibsuff= libmagic=never-match;;
7482 esac
7483 ;;
7484 esac
7485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7486 shlibpath_overrides_runpath=no
7487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007489 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007490 ;;
7491
7492# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007493linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007494 dynamic_linker=no
7495 ;;
7496
7497# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007498linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007499 version_type=linux
7500 need_lib_prefix=no
7501 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7505 shlibpath_var=LD_LIBRARY_PATH
7506 shlibpath_overrides_runpath=no
7507 # This implies no fast_install, which is unacceptable.
7508 # Some rework will be needed to allow for fast_install
7509 # before this can be enabled.
7510 hardcode_into_libs=yes
7511
7512 # We used to test for /lib/ld.so.1 and disable shared libraries on
7513 # powerpc, because MkLinux only supported shared libraries with the
7514 # GNU dynamic linker. Since this was broken with cross compilers,
7515 # most powerpc-linux boxes support dynamic linking these days and
7516 # people can always --disable-shared, the test was removed, and we
7517 # assume the GNU/Linux dynamic linker is in use.
7518 dynamic_linker='GNU/Linux ld.so'
7519 ;;
7520
7521netbsd*)
7522 version_type=sunos
7523 need_lib_prefix=no
7524 need_version=no
7525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7528 dynamic_linker='NetBSD (a.out) ld.so'
7529 else
John Criswell47fdd832003-07-14 16:52:07 +00007530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7531 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007532 dynamic_linker='NetBSD ld.elf_so'
7533 fi
7534 shlibpath_var=LD_LIBRARY_PATH
7535 shlibpath_overrides_runpath=yes
7536 hardcode_into_libs=yes
7537 ;;
7538
7539newsos6)
7540 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7542 shlibpath_var=LD_LIBRARY_PATH
7543 shlibpath_overrides_runpath=yes
7544 ;;
7545
7546nto-qnx)
7547 version_type=linux
7548 need_lib_prefix=no
7549 need_version=no
7550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7551 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007552 shlibpath_var=LD_LIBRARY_PATH
7553 shlibpath_overrides_runpath=yes
7554 ;;
7555
7556openbsd*)
7557 version_type=sunos
7558 need_lib_prefix=no
7559 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7562 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007563 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 +00007564 case $host_os in
7565 openbsd2.[89] | openbsd2.[89].*)
7566 shlibpath_overrides_runpath=no
7567 ;;
7568 *)
7569 shlibpath_overrides_runpath=yes
7570 ;;
7571 esac
John Criswell7a73b802003-06-30 21:59:07 +00007572 else
7573 shlibpath_overrides_runpath=yes
7574 fi
John Criswell7a73b802003-06-30 21:59:07 +00007575 ;;
7576
7577os2*)
7578 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007579 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007580 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007581 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007582 dynamic_linker='OS/2 ld.exe'
7583 shlibpath_var=LIBPATH
7584 ;;
7585
7586osf3* | osf4* | osf5*)
7587 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007588 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007589 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007590 soname_spec='${libname}${release}${shared_ext}$major'
7591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007592 shlibpath_var=LD_LIBRARY_PATH
7593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7595 ;;
7596
7597sco3.2v5*)
7598 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007599 soname_spec='${libname}${release}${shared_ext}$major'
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007601 shlibpath_var=LD_LIBRARY_PATH
7602 ;;
7603
7604solaris*)
7605 version_type=linux
7606 need_lib_prefix=no
7607 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007610 shlibpath_var=LD_LIBRARY_PATH
7611 shlibpath_overrides_runpath=yes
7612 hardcode_into_libs=yes
7613 # ldd complains unless libraries are executable
7614 postinstall_cmds='chmod +x $lib'
7615 ;;
7616
7617sunos4*)
7618 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7621 shlibpath_var=LD_LIBRARY_PATH
7622 shlibpath_overrides_runpath=yes
7623 if test "$with_gnu_ld" = yes; then
7624 need_lib_prefix=no
7625 fi
7626 need_version=yes
7627 ;;
7628
7629sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7630 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7632 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007633 shlibpath_var=LD_LIBRARY_PATH
7634 case $host_vendor in
7635 sni)
7636 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007637 need_lib_prefix=no
7638 export_dynamic_flag_spec='${wl}-Blargedynsym'
7639 runpath_var=LD_RUN_PATH
7640 ;;
7641 siemens)
7642 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007643 ;;
7644 motorola)
7645 need_lib_prefix=no
7646 need_version=no
7647 shlibpath_overrides_runpath=no
7648 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7649 ;;
7650 esac
7651 ;;
7652
John Criswell7a73b802003-06-30 21:59:07 +00007653sysv4*MP*)
7654 if test -d /usr/nec ;then
7655 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007656 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7657 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007658 shlibpath_var=LD_LIBRARY_PATH
7659 fi
7660 ;;
7661
John Criswell47fdd832003-07-14 16:52:07 +00007662uts4*)
7663 version_type=linux
7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665 soname_spec='${libname}${release}${shared_ext}$major'
7666 shlibpath_var=LD_LIBRARY_PATH
7667 ;;
7668
John Criswell7a73b802003-06-30 21:59:07 +00007669*)
7670 dynamic_linker=no
7671 ;;
7672esac
7673echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7674echo "${ECHO_T}$dynamic_linker" >&6
7675test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007676
7677if test "x$enable_dlopen" != xyes; then
7678 enable_dlopen=unknown
7679 enable_dlopen_self=unknown
7680 enable_dlopen_self_static=unknown
7681else
7682 lt_cv_dlopen=no
7683 lt_cv_dlopen_libs=
7684
7685 case $host_os in
7686 beos*)
7687 lt_cv_dlopen="load_add_on"
7688 lt_cv_dlopen_libs=
7689 lt_cv_dlopen_self=yes
7690 ;;
7691
John Criswell47fdd832003-07-14 16:52:07 +00007692 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007693 lt_cv_dlopen="LoadLibrary"
7694 lt_cv_dlopen_libs=
7695 ;;
7696
John Criswell47fdd832003-07-14 16:52:07 +00007697 cygwin*)
7698 lt_cv_dlopen="dlopen"
7699 lt_cv_dlopen_libs=
7700 ;;
7701
7702 darwin*)
7703 # if libdl is installed we need to link against it
7704 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7705echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7706if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else
7709 ac_check_lib_save_LIBS=$LIBS
7710LIBS="-ldl $LIBS"
7711cat >conftest.$ac_ext <<_ACEOF
7712#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007713/* confdefs.h. */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007718
7719/* Override any gcc2 internal prototype to avoid an error. */
7720#ifdef __cplusplus
7721extern "C"
7722#endif
7723/* We use char because int might match the return type of a gcc2
7724 builtin and then its argument prototype would still apply. */
7725char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007726int
7727main ()
7728{
7729dlopen ();
7730 ;
7731 return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext conftest$ac_exeext
7735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736 (eval $ac_link) 2>&5
7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest$ac_exeext'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_lib_dl_dlopen=yes
7747else
7748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007749sed 's/^/| /' conftest.$ac_ext >&5
7750
John Criswell47fdd832003-07-14 16:52:07 +00007751ac_cv_lib_dl_dlopen=no
7752fi
7753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754LIBS=$ac_check_lib_save_LIBS
7755fi
7756echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7758if test $ac_cv_lib_dl_dlopen = yes; then
7759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7760else
7761
7762 lt_cv_dlopen="dyld"
7763 lt_cv_dlopen_libs=
7764 lt_cv_dlopen_self=yes
7765
7766fi
7767
7768 ;;
7769
John Criswell7a73b802003-06-30 21:59:07 +00007770 *)
7771 echo "$as_me:$LINENO: checking for shl_load" >&5
7772echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7773if test "${ac_cv_func_shl_load+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 cat >conftest.$ac_ext <<_ACEOF
7777#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007778/* confdefs.h. */
7779_ACEOF
7780cat confdefs.h >>conftest.$ac_ext
7781cat >>conftest.$ac_ext <<_ACEOF
7782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007783/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007784 which can conflict with char shl_load (); below.
7785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 <limits.h> exists even on freestanding compilers. */
7787#ifdef __STDC__
7788# include <limits.h>
7789#else
7790# include <assert.h>
7791#endif
John Criswell7a73b802003-06-30 21:59:07 +00007792/* Override any gcc2 internal prototype to avoid an error. */
7793#ifdef __cplusplus
7794extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007795{
John Criswell7a73b802003-06-30 21:59:07 +00007796#endif
7797/* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007800/* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803#if defined (__stub_shl_load) || defined (__stub___shl_load)
7804choke me
7805#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007806char (*f) () = shl_load;
7807#endif
7808#ifdef __cplusplus
7809}
John Criswell7a73b802003-06-30 21:59:07 +00007810#endif
7811
John Criswell0c38eaf2003-09-10 15:17:25 +00007812int
7813main ()
7814{
7815return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext conftest$ac_exeext
7821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_func_shl_load=yes
7833else
7834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007835sed 's/^/| /' conftest.$ac_ext >&5
7836
John Criswell7a73b802003-06-30 21:59:07 +00007837ac_cv_func_shl_load=no
7838fi
7839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7840fi
7841echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7842echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7843if test $ac_cv_func_shl_load = yes; then
7844 lt_cv_dlopen="shl_load"
7845else
7846 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7847echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7848if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851 ac_check_lib_save_LIBS=$LIBS
7852LIBS="-ldld $LIBS"
7853cat >conftest.$ac_ext <<_ACEOF
7854#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007860
7861/* Override any gcc2 internal prototype to avoid an error. */
7862#ifdef __cplusplus
7863extern "C"
7864#endif
7865/* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7867char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007868int
7869main ()
7870{
7871shl_load ();
7872 ;
7873 return 0;
7874}
7875_ACEOF
7876rm -f conftest.$ac_objext conftest$ac_exeext
7877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7878 (eval $ac_link) 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 (eval $ac_try) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; }; then
7888 ac_cv_lib_dld_shl_load=yes
7889else
7890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007891sed 's/^/| /' conftest.$ac_ext >&5
7892
John Criswell7a73b802003-06-30 21:59:07 +00007893ac_cv_lib_dld_shl_load=no
7894fi
7895rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7896LIBS=$ac_check_lib_save_LIBS
7897fi
7898echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7899echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7900if test $ac_cv_lib_dld_shl_load = yes; then
7901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7902else
7903 echo "$as_me:$LINENO: checking for dlopen" >&5
7904echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7905if test "${ac_cv_func_dlopen+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907else
7908 cat >conftest.$ac_ext <<_ACEOF
7909#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007915/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007916 which can conflict with char dlopen (); below.
7917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918 <limits.h> exists even on freestanding compilers. */
7919#ifdef __STDC__
7920# include <limits.h>
7921#else
7922# include <assert.h>
7923#endif
John Criswell7a73b802003-06-30 21:59:07 +00007924/* Override any gcc2 internal prototype to avoid an error. */
7925#ifdef __cplusplus
7926extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007927{
John Criswell7a73b802003-06-30 21:59:07 +00007928#endif
7929/* We use char because int might match the return type of a gcc2
7930 builtin and then its argument prototype would still apply. */
7931char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007932/* The GNU C library defines this for functions which it implements
7933 to always fail with ENOSYS. Some functions are actually named
7934 something starting with __ and the normal name is an alias. */
7935#if defined (__stub_dlopen) || defined (__stub___dlopen)
7936choke me
7937#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007938char (*f) () = dlopen;
7939#endif
7940#ifdef __cplusplus
7941}
John Criswell7a73b802003-06-30 21:59:07 +00007942#endif
7943
John Criswell0c38eaf2003-09-10 15:17:25 +00007944int
7945main ()
7946{
7947return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007948 ;
7949 return 0;
7950}
7951_ACEOF
7952rm -f conftest.$ac_objext conftest$ac_exeext
7953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7954 (eval $ac_link) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -s conftest$ac_exeext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_dlopen=yes
7965else
7966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007967sed 's/^/| /' conftest.$ac_ext >&5
7968
John Criswell7a73b802003-06-30 21:59:07 +00007969ac_cv_func_dlopen=no
7970fi
7971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7972fi
7973echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7974echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7975if test $ac_cv_func_dlopen = yes; then
7976 lt_cv_dlopen="dlopen"
7977else
7978 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7979echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7980if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 ac_check_lib_save_LIBS=$LIBS
7984LIBS="-ldl $LIBS"
7985cat >conftest.$ac_ext <<_ACEOF
7986#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007992
7993/* Override any gcc2 internal prototype to avoid an error. */
7994#ifdef __cplusplus
7995extern "C"
7996#endif
7997/* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008000int
8001main ()
8002{
8003dlopen ();
8004 ;
8005 return 0;
8006}
8007_ACEOF
8008rm -f conftest.$ac_objext conftest$ac_exeext
8009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_lib_dl_dlopen=yes
8021else
8022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008023sed 's/^/| /' conftest.$ac_ext >&5
8024
John Criswell7a73b802003-06-30 21:59:07 +00008025ac_cv_lib_dl_dlopen=no
8026fi
8027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028LIBS=$ac_check_lib_save_LIBS
8029fi
8030echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8031echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8032if test $ac_cv_lib_dl_dlopen = yes; then
8033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8034else
8035 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8036echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8037if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039else
8040 ac_check_lib_save_LIBS=$LIBS
8041LIBS="-lsvld $LIBS"
8042cat >conftest.$ac_ext <<_ACEOF
8043#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008049
8050/* Override any gcc2 internal prototype to avoid an error. */
8051#ifdef __cplusplus
8052extern "C"
8053#endif
8054/* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8056char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008057int
8058main ()
8059{
8060dlopen ();
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065rm -f conftest.$ac_objext conftest$ac_exeext
8066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } &&
8071 { ac_try='test -s conftest$ac_exeext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_cv_lib_svld_dlopen=yes
8078else
8079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008080sed 's/^/| /' conftest.$ac_ext >&5
8081
John Criswell7a73b802003-06-30 21:59:07 +00008082ac_cv_lib_svld_dlopen=no
8083fi
8084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8085LIBS=$ac_check_lib_save_LIBS
8086fi
8087echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8088echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8089if test $ac_cv_lib_svld_dlopen = yes; then
8090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8091else
8092 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8093echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8094if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 ac_check_lib_save_LIBS=$LIBS
8098LIBS="-ldld $LIBS"
8099cat >conftest.$ac_ext <<_ACEOF
8100#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008106
8107/* Override any gcc2 internal prototype to avoid an error. */
8108#ifdef __cplusplus
8109extern "C"
8110#endif
8111/* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8113char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008114int
8115main ()
8116{
8117dld_link ();
8118 ;
8119 return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_lib_dld_dld_link=yes
8135else
8136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008137sed 's/^/| /' conftest.$ac_ext >&5
8138
John Criswell7a73b802003-06-30 21:59:07 +00008139ac_cv_lib_dld_dld_link=no
8140fi
8141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142LIBS=$ac_check_lib_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8145echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8146if test $ac_cv_lib_dld_dld_link = yes; then
8147 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8148fi
8149
8150
8151fi
8152
8153
8154fi
8155
8156
8157fi
8158
8159
8160fi
8161
8162
8163fi
8164
8165 ;;
8166 esac
8167
8168 if test "x$lt_cv_dlopen" != xno; then
8169 enable_dlopen=yes
8170 else
8171 enable_dlopen=no
8172 fi
8173
8174 case $lt_cv_dlopen in
8175 dlopen)
8176 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008177 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008178
8179 save_LDFLAGS="$LDFLAGS"
8180 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8181
8182 save_LIBS="$LIBS"
8183 LIBS="$lt_cv_dlopen_libs $LIBS"
8184
8185 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8186echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8187if test "${lt_cv_dlopen_self+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 if test "$cross_compiling" = yes; then :
8191 lt_cv_dlopen_self=cross
8192else
John Criswell47fdd832003-07-14 16:52:07 +00008193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008194 lt_status=$lt_dlunknown
8195 cat > conftest.$ac_ext <<EOF
Brian Gaeke26be9c52004-01-13 06:43:16 +00008196#line 8196 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008197#include "confdefs.h"
8198
8199#if HAVE_DLFCN_H
8200#include <dlfcn.h>
8201#endif
8202
8203#include <stdio.h>
8204
8205#ifdef RTLD_GLOBAL
8206# define LT_DLGLOBAL RTLD_GLOBAL
8207#else
8208# ifdef DL_GLOBAL
8209# define LT_DLGLOBAL DL_GLOBAL
8210# else
8211# define LT_DLGLOBAL 0
8212# endif
8213#endif
8214
8215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8216 find out it does not work in some platform. */
8217#ifndef LT_DLLAZY_OR_NOW
8218# ifdef RTLD_LAZY
8219# define LT_DLLAZY_OR_NOW RTLD_LAZY
8220# else
8221# ifdef DL_LAZY
8222# define LT_DLLAZY_OR_NOW DL_LAZY
8223# else
8224# ifdef RTLD_NOW
8225# define LT_DLLAZY_OR_NOW RTLD_NOW
8226# else
8227# ifdef DL_NOW
8228# define LT_DLLAZY_OR_NOW DL_NOW
8229# else
8230# define LT_DLLAZY_OR_NOW 0
8231# endif
8232# endif
8233# endif
8234# endif
8235#endif
8236
8237#ifdef __cplusplus
8238extern "C" void exit (int);
8239#endif
8240
8241void fnord() { int i=42;}
8242int main ()
8243{
8244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8245 int status = $lt_dlunknown;
8246
8247 if (self)
8248 {
8249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8251 /* dlclose (self); */
8252 }
8253
8254 exit (status);
8255}
8256EOF
8257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8258 (eval $ac_link) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8262 (./conftest; exit; ) 2>/dev/null
8263 lt_status=$?
8264 case x$lt_status in
8265 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8266 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8267 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8268 esac
8269 else :
8270 # compilation failed
8271 lt_cv_dlopen_self=no
8272 fi
8273fi
8274rm -fr conftest*
8275
8276
8277fi
8278echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8279echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8280
8281 if test "x$lt_cv_dlopen_self" = xyes; then
8282 LDFLAGS="$LDFLAGS $link_static_flag"
8283 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8284echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8285if test "${lt_cv_dlopen_self_static+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288 if test "$cross_compiling" = yes; then :
8289 lt_cv_dlopen_self_static=cross
8290else
John Criswell47fdd832003-07-14 16:52:07 +00008291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008292 lt_status=$lt_dlunknown
8293 cat > conftest.$ac_ext <<EOF
Brian Gaeke26be9c52004-01-13 06:43:16 +00008294#line 8294 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008295#include "confdefs.h"
8296
8297#if HAVE_DLFCN_H
8298#include <dlfcn.h>
8299#endif
8300
8301#include <stdio.h>
8302
8303#ifdef RTLD_GLOBAL
8304# define LT_DLGLOBAL RTLD_GLOBAL
8305#else
8306# ifdef DL_GLOBAL
8307# define LT_DLGLOBAL DL_GLOBAL
8308# else
8309# define LT_DLGLOBAL 0
8310# endif
8311#endif
8312
8313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8314 find out it does not work in some platform. */
8315#ifndef LT_DLLAZY_OR_NOW
8316# ifdef RTLD_LAZY
8317# define LT_DLLAZY_OR_NOW RTLD_LAZY
8318# else
8319# ifdef DL_LAZY
8320# define LT_DLLAZY_OR_NOW DL_LAZY
8321# else
8322# ifdef RTLD_NOW
8323# define LT_DLLAZY_OR_NOW RTLD_NOW
8324# else
8325# ifdef DL_NOW
8326# define LT_DLLAZY_OR_NOW DL_NOW
8327# else
8328# define LT_DLLAZY_OR_NOW 0
8329# endif
8330# endif
8331# endif
8332# endif
8333#endif
8334
8335#ifdef __cplusplus
8336extern "C" void exit (int);
8337#endif
8338
8339void fnord() { int i=42;}
8340int main ()
8341{
8342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8343 int status = $lt_dlunknown;
8344
8345 if (self)
8346 {
8347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8348 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8349 /* dlclose (self); */
8350 }
8351
8352 exit (status);
8353}
8354EOF
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8360 (./conftest; exit; ) 2>/dev/null
8361 lt_status=$?
8362 case x$lt_status in
8363 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8364 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8365 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8366 esac
8367 else :
8368 # compilation failed
8369 lt_cv_dlopen_self_static=no
8370 fi
8371fi
8372rm -fr conftest*
8373
8374
8375fi
8376echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8377echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8378 fi
8379
8380 CPPFLAGS="$save_CPPFLAGS"
8381 LDFLAGS="$save_LDFLAGS"
8382 LIBS="$save_LIBS"
8383 ;;
8384 esac
8385
8386 case $lt_cv_dlopen_self in
8387 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8388 *) enable_dlopen_self=unknown ;;
8389 esac
8390
8391 case $lt_cv_dlopen_self_static in
8392 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8393 *) enable_dlopen_self_static=unknown ;;
8394 esac
8395fi
8396
8397
John Criswell47fdd832003-07-14 16:52:07 +00008398# Report which librarie types wil actually be built
8399echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8400echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8401echo "$as_me:$LINENO: result: $can_build_shared" >&5
8402echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008403
John Criswell47fdd832003-07-14 16:52:07 +00008404echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8405echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8406test "$can_build_shared" = "no" && enable_shared=no
8407
8408# On AIX, shared libraries and static libraries use the same namespace, and
8409# are all built from PIC.
8410case "$host_os" in
8411aix3*)
8412 test "$enable_shared" = yes && enable_static=no
8413 if test -n "$RANLIB"; then
8414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8415 postinstall_cmds='$RANLIB $lib'
8416 fi
8417 ;;
8418
8419aix4*)
8420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8421 test "$enable_shared" = yes && enable_static=no
8422 fi
8423 ;;
8424 darwin* | rhapsody*)
8425 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8426 archive_cmds_need_lc=no
8427 case "$host_os" in
8428 rhapsody* | darwin1.[012])
8429 allow_undefined_flag='-undefined suppress'
8430 ;;
8431 *) # Darwin 1.3 on
8432 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8433 ;;
8434 esac
8435 # FIXME: Relying on posixy $() will cause problems for
8436 # cross-compilation, but unfortunately the echo tests do not
8437 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8438 # `"' quotes if we put them in here... so don't!
8439 output_verbose_link_cmd='echo'
8440 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8441 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8443 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}'
8444 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}'
8445 hardcode_direct=no
8446 hardcode_automatic=yes
8447 hardcode_shlibpath_var=unsupported
8448 whole_archive_flag_spec='-all_load $convenience'
8449 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008450 fi
John Criswell7a73b802003-06-30 21:59:07 +00008451 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008452esac
8453echo "$as_me:$LINENO: result: $enable_shared" >&5
8454echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008455
John Criswell47fdd832003-07-14 16:52:07 +00008456echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8457echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8458# Make sure either enable_shared or enable_static is yes.
8459test "$enable_shared" = yes || enable_static=yes
8460echo "$as_me:$LINENO: result: $enable_static" >&5
8461echo "${ECHO_T}$enable_static" >&6
8462
8463# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008464# libtool distribution, otherwise you forgot to ship ltmain.sh
8465# with your package, and you will get complaints that there are
8466# no rules to generate ltmain.sh.
8467if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008468 # See if we are running on zsh, and set the options which allow our commands through
8469 # without removal of \ escapes.
8470 if test -n "${ZSH_VERSION+set}" ; then
8471 setopt NO_GLOB_SUBST
8472 fi
John Criswell7a73b802003-06-30 21:59:07 +00008473 # Now quote all the things that may contain metacharacters while being
8474 # careful not to overquote the AC_SUBSTed values. We take copies of the
8475 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8477 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8478 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8479 deplibs_check_method reload_flag reload_cmds need_locks \
8480 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8481 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008482 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008483 old_postinstall_cmds old_postuninstall_cmds \
8484 compiler \
8485 CC \
8486 LD \
8487 lt_prog_compiler_wl \
8488 lt_prog_compiler_pic \
8489 lt_prog_compiler_static \
8490 lt_prog_compiler_no_builtin_flag \
8491 export_dynamic_flag_spec \
8492 thread_safe_flag_spec \
8493 whole_archive_flag_spec \
8494 enable_shared_with_static_runtimes \
8495 old_archive_cmds \
8496 old_archive_from_new_cmds \
8497 predep_objects \
8498 postdep_objects \
8499 predeps \
8500 postdeps \
8501 compiler_lib_search_path \
8502 archive_cmds \
8503 archive_expsym_cmds \
8504 postinstall_cmds \
8505 postuninstall_cmds \
8506 old_archive_from_expsyms_cmds \
8507 allow_undefined_flag \
8508 no_undefined_flag \
8509 export_symbols_cmds \
8510 hardcode_libdir_flag_spec \
8511 hardcode_libdir_flag_spec_ld \
8512 hardcode_libdir_separator \
8513 hardcode_automatic \
8514 module_cmds \
8515 module_expsym_cmds \
8516 lt_cv_prog_compiler_c_o \
8517 exclude_expsyms \
8518 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008519
8520 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008521 old_archive_cmds | \
8522 old_archive_from_new_cmds | \
8523 archive_cmds | \
8524 archive_expsym_cmds | \
8525 module_cmds | \
8526 module_expsym_cmds | \
8527 old_archive_from_expsyms_cmds | \
8528 export_symbols_cmds | \
8529 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008530 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008531 old_postinstall_cmds | old_postuninstall_cmds | \
8532 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008533 # Double-quote double-evaled strings.
8534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8535 ;;
8536 *)
8537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8538 ;;
8539 esac
8540 done
8541
John Criswell47fdd832003-07-14 16:52:07 +00008542 case $lt_echo in
8543 *'\$0 --fallback-echo"')
8544 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8545 ;;
8546 esac
8547
8548cfgfile="${ofile}T"
8549 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8550 $rm -f "$cfgfile"
8551 { echo "$as_me:$LINENO: creating $ofile" >&5
8552echo "$as_me: creating $ofile" >&6;}
8553
8554 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008555#! $SHELL
8556
John Criswell47fdd832003-07-14 16:52:07 +00008557# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008558# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8559# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8560#
John Criswell47fdd832003-07-14 16:52:07 +00008561# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8562# Free Software Foundation, Inc.
8563#
8564# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008565# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8566#
8567# This program is free software; you can redistribute it and/or modify
8568# it under the terms of the GNU General Public License as published by
8569# the Free Software Foundation; either version 2 of the License, or
8570# (at your option) any later version.
8571#
8572# This program is distributed in the hope that it will be useful, but
8573# WITHOUT ANY WARRANTY; without even the implied warranty of
8574# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8575# General Public License for more details.
8576#
8577# You should have received a copy of the GNU General Public License
8578# along with this program; if not, write to the Free Software
8579# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8580#
8581# As a special exception to the GNU General Public License, if you
8582# distribute this file as part of a program that contains a
8583# configuration script generated by Autoconf, you may include it under
8584# the same distribution terms that you use for the rest of that program.
8585
John Criswell47fdd832003-07-14 16:52:07 +00008586# A sed program that does not truncate output.
8587SED=$lt_SED
8588
John Criswell7a73b802003-06-30 21:59:07 +00008589# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008590Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008591
8592# The HP-UX ksh and POSIX shell print the target directory to stdout
8593# if CDPATH is set.
8594if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8595
John Criswell47fdd832003-07-14 16:52:07 +00008596# The names of the tagged configurations supported by this script.
8597available_tags=
8598
John Criswell7a73b802003-06-30 21:59:07 +00008599# ### BEGIN LIBTOOL CONFIG
8600
8601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8602
8603# Shell to use when invoking shell scripts.
8604SHELL=$lt_SHELL
8605
8606# Whether or not to build shared libraries.
8607build_libtool_libs=$enable_shared
8608
8609# Whether or not to build static libraries.
8610build_old_libs=$enable_static
8611
8612# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008613build_libtool_need_lc=$archive_cmds_need_lc
8614
8615# Whether or not to disallow shared libs when runtime libs are static
8616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008617
8618# Whether or not to optimize for fast installation.
8619fast_install=$enable_fast_install
8620
8621# The host system.
8622host_alias=$host_alias
8623host=$host
8624
8625# An echo program that does not interpret backslashes.
8626echo=$lt_echo
8627
8628# The archiver.
8629AR=$lt_AR
8630AR_FLAGS=$lt_AR_FLAGS
8631
John Criswell47fdd832003-07-14 16:52:07 +00008632# A C compiler.
8633LTCC=$lt_LTCC
8634
8635# A language-specific compiler.
8636CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008637
8638# Is the compiler the GNU C compiler?
8639with_gcc=$GCC
8640
John Criswell47fdd832003-07-14 16:52:07 +00008641# An ERE matcher.
8642EGREP=$lt_EGREP
8643
John Criswell7a73b802003-06-30 21:59:07 +00008644# The linker used to build libraries.
8645LD=$lt_LD
8646
8647# Whether we need hard or soft links.
8648LN_S=$lt_LN_S
8649
8650# A BSD-compatible nm program.
8651NM=$lt_NM
8652
8653# A symbol stripping program
8654STRIP=$STRIP
8655
8656# Used to examine libraries when file_magic_cmd begins "file"
8657MAGIC_CMD=$MAGIC_CMD
8658
8659# Used on cygwin: DLL creation program.
8660DLLTOOL="$DLLTOOL"
8661
8662# Used on cygwin: object dumper.
8663OBJDUMP="$OBJDUMP"
8664
8665# Used on cygwin: assembler.
8666AS="$AS"
8667
8668# The name of the directory that contains temporary libtool files.
8669objdir=$objdir
8670
8671# How to create reloadable object files.
8672reload_flag=$lt_reload_flag
8673reload_cmds=$lt_reload_cmds
8674
8675# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008676wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008677
8678# Object file suffix (normally "o").
8679objext="$ac_objext"
8680
8681# Old archive suffix (normally "a").
8682libext="$libext"
8683
John Criswell47fdd832003-07-14 16:52:07 +00008684# Shared library suffix (normally ".so").
8685shrext='$shrext'
8686
John Criswell7a73b802003-06-30 21:59:07 +00008687# Executable file suffix (normally "").
8688exeext="$exeext"
8689
8690# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008691pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008692pic_mode=$pic_mode
8693
John Criswell47fdd832003-07-14 16:52:07 +00008694# What is the maximum length of a command?
8695max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008696
John Criswell47fdd832003-07-14 16:52:07 +00008697# Does compiler simultaneously support -c and -o options?
8698compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008699
8700# Must we lock files when doing compilation ?
8701need_locks=$lt_need_locks
8702
8703# Do we need the lib prefix for modules?
8704need_lib_prefix=$need_lib_prefix
8705
8706# Do we need a version for libraries?
8707need_version=$need_version
8708
8709# Whether dlopen is supported.
8710dlopen_support=$enable_dlopen
8711
8712# Whether dlopen of programs is supported.
8713dlopen_self=$enable_dlopen_self
8714
8715# Whether dlopen of statically linked programs is supported.
8716dlopen_self_static=$enable_dlopen_self_static
8717
8718# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008719link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008720
8721# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008723
8724# Compiler flag to allow reflexive dlopens.
8725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8726
8727# Compiler flag to generate shared objects directly from archives.
8728whole_archive_flag_spec=$lt_whole_archive_flag_spec
8729
8730# Compiler flag to generate thread-safe objects.
8731thread_safe_flag_spec=$lt_thread_safe_flag_spec
8732
8733# Library versioning type.
8734version_type=$version_type
8735
8736# Format of library name prefix.
8737libname_spec=$lt_libname_spec
8738
8739# List of archive names. First name is the real one, the rest are links.
8740# The last name is the one that the linker finds with -lNAME.
8741library_names_spec=$lt_library_names_spec
8742
8743# The coded name of the library, if different from the real name.
8744soname_spec=$lt_soname_spec
8745
8746# Commands used to build and install an old-style archive.
8747RANLIB=$lt_RANLIB
8748old_archive_cmds=$lt_old_archive_cmds
8749old_postinstall_cmds=$lt_old_postinstall_cmds
8750old_postuninstall_cmds=$lt_old_postuninstall_cmds
8751
8752# Create an old-style archive from a shared archive.
8753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8754
8755# Create a temporary old-style archive to link instead of a shared archive.
8756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8757
8758# Commands used to build and install a shared archive.
8759archive_cmds=$lt_archive_cmds
8760archive_expsym_cmds=$lt_archive_expsym_cmds
8761postinstall_cmds=$lt_postinstall_cmds
8762postuninstall_cmds=$lt_postuninstall_cmds
8763
John Criswell47fdd832003-07-14 16:52:07 +00008764# Commands used to build a loadable module (assumed same as above if empty)
8765module_cmds=$lt_module_cmds
8766module_expsym_cmds=$lt_module_expsym_cmds
8767
John Criswell7a73b802003-06-30 21:59:07 +00008768# Commands to strip libraries.
8769old_striplib=$lt_old_striplib
8770striplib=$lt_striplib
8771
John Criswell47fdd832003-07-14 16:52:07 +00008772# Dependencies to place before the objects being linked to create a
8773# shared library.
8774predep_objects=$lt_predep_objects
8775
8776# Dependencies to place after the objects being linked to create a
8777# shared library.
8778postdep_objects=$lt_postdep_objects
8779
8780# Dependencies to place before the objects being linked to create a
8781# shared library.
8782predeps=$lt_predeps
8783
8784# Dependencies to place after the objects being linked to create a
8785# shared library.
8786postdeps=$lt_postdeps
8787
8788# The library search path used internally by the compiler when linking
8789# a shared library.
8790compiler_lib_search_path=$lt_compiler_lib_search_path
8791
John Criswell7a73b802003-06-30 21:59:07 +00008792# Method to check whether dependent libraries are shared objects.
8793deplibs_check_method=$lt_deplibs_check_method
8794
8795# Command to use when deplibs_check_method == file_magic.
8796file_magic_cmd=$lt_file_magic_cmd
8797
8798# Flag that allows shared libraries with undefined symbols to be built.
8799allow_undefined_flag=$lt_allow_undefined_flag
8800
8801# Flag that forces no undefined symbols.
8802no_undefined_flag=$lt_no_undefined_flag
8803
8804# Commands used to finish a libtool library installation in a directory.
8805finish_cmds=$lt_finish_cmds
8806
8807# Same as above, but a single script fragment to be evaled but not shown.
8808finish_eval=$lt_finish_eval
8809
8810# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008811global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008812
8813# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008814global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008815
8816# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008817global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008818
8819# This is the shared library runtime path variable.
8820runpath_var=$runpath_var
8821
8822# This is the shared library path variable.
8823shlibpath_var=$shlibpath_var
8824
8825# Is shlibpath searched before the hard-coded library search path?
8826shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8827
8828# How to hardcode a shared library path into an executable.
8829hardcode_action=$hardcode_action
8830
8831# Whether we should hardcode library paths into libraries.
8832hardcode_into_libs=$hardcode_into_libs
8833
8834# Flag to hardcode \$libdir into a binary during linking.
8835# This must work even if \$libdir does not exist.
8836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8837
John Criswell47fdd832003-07-14 16:52:07 +00008838# If ld is used when linking, flag to hardcode \$libdir into
8839# a binary during linking. This must work even if \$libdir does
8840# not exist.
8841hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8842
John Criswell7a73b802003-06-30 21:59:07 +00008843# Whether we need a single -rpath flag with a separated argument.
8844hardcode_libdir_separator=$lt_hardcode_libdir_separator
8845
John Criswell47fdd832003-07-14 16:52:07 +00008846# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008847# resulting binary.
8848hardcode_direct=$hardcode_direct
8849
8850# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8851# resulting binary.
8852hardcode_minus_L=$hardcode_minus_L
8853
8854# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8855# the resulting binary.
8856hardcode_shlibpath_var=$hardcode_shlibpath_var
8857
John Criswell47fdd832003-07-14 16:52:07 +00008858# Set to yes if building a shared library automatically hardcodes DIR into the library
8859# and all subsequent libraries and executables linked against it.
8860hardcode_automatic=$hardcode_automatic
8861
John Criswell7a73b802003-06-30 21:59:07 +00008862# Variables whose values should be saved in libtool wrapper scripts and
8863# restored at relink time.
8864variables_saved_for_relink="$variables_saved_for_relink"
8865
8866# Whether libtool must link a program against all its dependency libraries.
8867link_all_deplibs=$link_all_deplibs
8868
8869# Compile-time system search path for libraries
8870sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8871
8872# Run-time system search path for libraries
8873sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8874
8875# Fix the shell variable \$srcfile for the compiler.
8876fix_srcfile_path="$fix_srcfile_path"
8877
8878# Set to yes if exported symbols are required.
8879always_export_symbols=$always_export_symbols
8880
8881# The commands to list exported symbols.
8882export_symbols_cmds=$lt_export_symbols_cmds
8883
8884# The commands to extract the exported symbol list from a shared archive.
8885extract_expsyms_cmds=$lt_extract_expsyms_cmds
8886
8887# Symbols that should not be listed in the preloaded symbols.
8888exclude_expsyms=$lt_exclude_expsyms
8889
8890# Symbols that must always be exported.
8891include_expsyms=$lt_include_expsyms
8892
8893# ### END LIBTOOL CONFIG
8894
8895__EOF__
8896
John Criswell47fdd832003-07-14 16:52:07 +00008897
John Criswell7a73b802003-06-30 21:59:07 +00008898 case $host_os in
8899 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008900 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008901
8902# AIX sometimes has problems with the GCC collect2 program. For some
8903# reason, if we set the COLLECT_NAMES environment variable, the problems
8904# vanish in a puff of smoke.
8905if test "X${COLLECT_NAMES+set}" != Xset; then
8906 COLLECT_NAMES=
8907 export COLLECT_NAMES
8908fi
8909EOF
8910 ;;
8911 esac
8912
John Criswell7a73b802003-06-30 21:59:07 +00008913 # We use sed instead of cat because bash on DJGPP gets confused if
8914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8915 # text mode, it properly converts lines to CR/LF. This bash problem
8916 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008917 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008918
John Criswell47fdd832003-07-14 16:52:07 +00008919 mv -f "$cfgfile" "$ofile" || \
8920 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008921 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008922
8923else
8924 # If there is no Makefile yet, we rely on a make rule to execute
8925 # `config.status --recheck' to rerun these tests and create the
8926 # libtool script then.
8927 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008928fi
John Criswell7a73b802003-06-30 21:59:07 +00008929
8930
John Criswell47fdd832003-07-14 16:52:07 +00008931ac_ext=c
8932ac_cpp='$CPP $CPPFLAGS'
8933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8935ac_compiler_gnu=$ac_cv_c_compiler_gnu
8936
8937CC="$lt_save_CC"
8938
8939
8940# Check whether --with-tags or --without-tags was given.
8941if test "${with_tags+set}" = set; then
8942 withval="$with_tags"
8943 tagnames="$withval"
8944fi;
8945
8946if test -f "$ltmain" && test -n "$tagnames"; then
8947 if test ! -f "${ofile}"; then
8948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8949echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8950 fi
8951
8952 if test -z "$LTCC"; then
8953 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8954 if test -z "$LTCC"; then
8955 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8956echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8957 else
8958 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8959echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8960 fi
8961 fi
8962
8963 # Extract list of available tagged configurations in $ofile.
8964 # Note that this assumes the entire list is on one line.
8965 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8966
8967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968 for tagname in $tagnames; do
8969 IFS="$lt_save_ifs"
8970 # Check whether tagname contains only valid characters
8971 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8972 "") ;;
8973 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8974echo "$as_me: error: invalid tag name: $tagname" >&2;}
8975 { (exit 1); exit 1; }; }
8976 ;;
8977 esac
8978
8979 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8980 then
8981 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8982echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8983 { (exit 1); exit 1; }; }
8984 fi
8985
8986 # Update the list of available tags.
8987 if test -n "$tagname"; then
8988 echo appending configuration tag \"$tagname\" to $ofile
8989
8990 case $tagname in
8991 CXX)
8992 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8993 ac_ext=cc
8994ac_cpp='$CXXCPP $CPPFLAGS'
8995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8998
8999
9000
9001
9002archive_cmds_need_lc_CXX=no
9003allow_undefined_flag_CXX=
9004always_export_symbols_CXX=no
9005archive_expsym_cmds_CXX=
9006export_dynamic_flag_spec_CXX=
9007hardcode_direct_CXX=no
9008hardcode_libdir_flag_spec_CXX=
9009hardcode_libdir_flag_spec_ld_CXX=
9010hardcode_libdir_separator_CXX=
9011hardcode_minus_L_CXX=no
9012hardcode_automatic_CXX=no
9013module_cmds_CXX=
9014module_expsym_cmds_CXX=
9015link_all_deplibs_CXX=unknown
9016old_archive_cmds_CXX=$old_archive_cmds
9017no_undefined_flag_CXX=
9018whole_archive_flag_spec_CXX=
9019enable_shared_with_static_runtimes_CXX=no
9020
9021# Dependencies to place before and after the object being linked:
9022predep_objects_CXX=
9023postdep_objects_CXX=
9024predeps_CXX=
9025postdeps_CXX=
9026compiler_lib_search_path_CXX=
9027
9028# Source file extension for C++ test sources.
9029ac_ext=cc
9030
9031# Object file extension for compiled C++ test sources.
9032objext=o
9033objext_CXX=$objext
9034
9035# Code to be used in simple compile tests
9036lt_simple_compile_test_code="int some_variable = 0;\n"
9037
9038# Code to be used in simple link tests
9039lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9040
9041# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9042
9043# If no C compiler was specified, use CC.
9044LTCC=${LTCC-"$CC"}
9045
9046# Allow CC to be a program name with arguments.
9047compiler=$CC
9048
9049
9050# Allow CC to be a program name with arguments.
9051lt_save_CC=$CC
9052lt_save_LD=$LD
9053lt_save_GCC=$GCC
9054GCC=$GXX
9055lt_save_with_gnu_ld=$with_gnu_ld
9056lt_save_path_LD=$lt_cv_path_LD
9057if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9058 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9059else
9060 unset lt_cv_prog_gnu_ld
9061fi
9062if test -n "${lt_cv_path_LDCXX+set}"; then
9063 lt_cv_path_LD=$lt_cv_path_LDCXX
9064else
9065 unset lt_cv_path_LD
9066fi
9067test -z "${LDCXX+set}" || LD=$LDCXX
9068CC=${CXX-"c++"}
9069compiler=$CC
9070compiler_CXX=$CC
9071cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9072
9073# We don't want -fno-exception wen compiling C++ code, so set the
9074# no_builtin_flag separately
9075if test "$GXX" = yes; then
9076 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9077else
9078 lt_prog_compiler_no_builtin_flag_CXX=
9079fi
9080
9081if test "$GXX" = yes; then
9082 # Set up default GNU C++ configuration
9083
9084
9085# Check whether --with-gnu-ld or --without-gnu-ld was given.
9086if test "${with_gnu_ld+set}" = set; then
9087 withval="$with_gnu_ld"
9088 test "$withval" = no || with_gnu_ld=yes
9089else
9090 with_gnu_ld=no
9091fi;
9092ac_prog=ld
9093if test "$GCC" = yes; then
9094 # Check if gcc -print-prog-name=ld gives a path.
9095 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9096echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9097 case $host in
9098 *-*-mingw*)
9099 # gcc leaves a trailing carriage return which upsets mingw
9100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9101 *)
9102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9103 esac
9104 case $ac_prog in
9105 # Accept absolute paths.
9106 [\\/]* | ?:[\\/]*)
9107 re_direlt='/[^/][^/]*/\.\./'
9108 # Canonicalize the path of ld
9109 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9111 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9112 done
9113 test -z "$LD" && LD="$ac_prog"
9114 ;;
9115 "")
9116 # If it fails, then pretend we aren't using GCC.
9117 ac_prog=ld
9118 ;;
9119 *)
9120 # If it is relative, then search for the first ld in PATH.
9121 with_gnu_ld=unknown
9122 ;;
9123 esac
9124elif test "$with_gnu_ld" = yes; then
9125 echo "$as_me:$LINENO: checking for GNU ld" >&5
9126echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9127else
9128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9129echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9130fi
9131if test "${lt_cv_path_LD+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9133else
9134 if test -z "$LD"; then
9135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9136 for ac_dir in $PATH; do
9137 IFS="$lt_save_ifs"
9138 test -z "$ac_dir" && ac_dir=.
9139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9140 lt_cv_path_LD="$ac_dir/$ac_prog"
9141 # Check to see if the program is GNU ld. I'd rather use --version,
9142 # but apparently some GNU ld's only accept -v.
9143 # Break only if it was the GNU/non-GNU ld that we prefer.
9144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9145 *GNU* | *'with BFD'*)
9146 test "$with_gnu_ld" != no && break
9147 ;;
9148 *)
9149 test "$with_gnu_ld" != yes && break
9150 ;;
9151 esac
9152 fi
9153 done
9154 IFS="$lt_save_ifs"
9155else
9156 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9157fi
9158fi
9159
9160LD="$lt_cv_path_LD"
9161if test -n "$LD"; then
9162 echo "$as_me:$LINENO: result: $LD" >&5
9163echo "${ECHO_T}$LD" >&6
9164else
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
9167fi
9168test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9169echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9170 { (exit 1); exit 1; }; }
9171echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9172echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9173if test "${lt_cv_prog_gnu_ld+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175else
9176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9177case `"$LD" -v 2>&1 </dev/null` in
9178*GNU* | *'with BFD'*)
9179 lt_cv_prog_gnu_ld=yes
9180 ;;
9181*)
9182 lt_cv_prog_gnu_ld=no
9183 ;;
9184esac
9185fi
9186echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9187echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9188with_gnu_ld=$lt_cv_prog_gnu_ld
9189
9190
9191
9192 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9193 # archiving commands below assume that GNU ld is being used.
9194 if test "$with_gnu_ld" = yes; then
9195 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196 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'
9197
9198 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9200
9201 # If archive_cmds runs LD, not CC, wlarc should be empty
9202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9203 # investigate it a little bit more. (MM)
9204 wlarc='${wl}'
9205
9206 # ancient GNU ld didn't support --whole-archive et. al.
9207 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9208 grep 'no-whole-archive' > /dev/null; then
9209 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9210 else
9211 whole_archive_flag_spec_CXX=
9212 fi
9213 else
9214 with_gnu_ld=no
9215 wlarc=
9216
9217 # A generic and very simple default shared library creation
9218 # command for GNU C++ for the case where it uses the native
9219 # linker, instead of GNU ld. If possible, this setting should
9220 # overridden to take advantage of the native linker features on
9221 # the platform it is being used on.
9222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9223 fi
9224
9225 # Commands to make compiler produce verbose output that lists
9226 # what "hidden" libraries, object files and flags are used when
9227 # linking a shared library.
9228 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9229
9230else
9231 GXX=no
9232 with_gnu_ld=no
9233 wlarc=
9234fi
9235
9236# PORTME: fill in a description of your system's C++ link characteristics
9237echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9239ld_shlibs_CXX=yes
9240case $host_os in
9241 aix3*)
9242 # FIXME: insert proper C++ library support
9243 ld_shlibs_CXX=no
9244 ;;
9245 aix4* | aix5*)
9246 if test "$host_cpu" = ia64; then
9247 # On IA64, the linker does run time linking by default, so we don't
9248 # have to do anything special.
9249 aix_use_runtimelinking=no
9250 exp_sym_flag='-Bexport'
9251 no_entry_flag=""
9252 else
9253 aix_use_runtimelinking=no
9254
9255 # Test if we are trying to use run time linking or normal
9256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9257 # need to do runtime linking.
9258 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9259 for ld_flag in $LDFLAGS; do
9260 case $ld_flag in
9261 *-brtl*)
9262 aix_use_runtimelinking=yes
9263 break
9264 ;;
9265 esac
9266 done
9267 esac
9268
9269 exp_sym_flag='-bexport'
9270 no_entry_flag='-bnoentry'
9271 fi
9272
9273 # When large executables or shared objects are built, AIX ld can
9274 # have problems creating the table of contents. If linking a library
9275 # or program results in "error TOC overflow" add -mminimal-toc to
9276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9278
9279 archive_cmds_CXX=''
9280 hardcode_direct_CXX=yes
9281 hardcode_libdir_separator_CXX=':'
9282 link_all_deplibs_CXX=yes
9283
9284 if test "$GXX" = yes; then
9285 case $host_os in aix4.012|aix4.012.*)
9286 # We only want to do this on AIX 4.2 and lower, the check
9287 # below for broken collect2 doesn't work under 4.3+
9288 collect2name=`${CC} -print-prog-name=collect2`
9289 if test -f "$collect2name" && \
9290 strings "$collect2name" | grep resolve_lib_name >/dev/null
9291 then
9292 # We have reworked collect2
9293 hardcode_direct_CXX=yes
9294 else
9295 # We have old collect2
9296 hardcode_direct_CXX=unsupported
9297 # It fails to find uninstalled libraries when the uninstalled
9298 # path is not listed in the libpath. Setting hardcode_minus_L
9299 # to unsupported forces relinking
9300 hardcode_minus_L_CXX=yes
9301 hardcode_libdir_flag_spec_CXX='-L$libdir'
9302 hardcode_libdir_separator_CXX=
9303 fi
9304 esac
9305 shared_flag='-shared'
9306 else
9307 # not using gcc
9308 if test "$host_cpu" = ia64; then
9309 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9310 # chokes on -Wl,-G. The following line is correct:
9311 shared_flag='-G'
9312 else
9313 if test "$aix_use_runtimelinking" = yes; then
9314 shared_flag='${wl}-G'
9315 else
9316 shared_flag='${wl}-bM:SRE'
9317 fi
9318 fi
9319 fi
9320
9321 # It seems that -bexpall does not export symbols beginning with
9322 # underscore (_), so it is better to generate a list of symbols to export.
9323 always_export_symbols_CXX=yes
9324 if test "$aix_use_runtimelinking" = yes; then
9325 # Warning - without using the other runtime loading flags (-brtl),
9326 # -berok will link without error, but may produce a broken library.
9327 allow_undefined_flag_CXX='-berok'
9328 # Determine the default libpath from the value encoded in an empty executable.
9329 cat >conftest.$ac_ext <<_ACEOF
9330#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009331/* confdefs.h. */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009336
John Criswell47fdd832003-07-14 16:52:07 +00009337int
9338main ()
9339{
9340
9341 ;
9342 return 0;
9343}
9344_ACEOF
9345rm -f conftest.$ac_objext conftest$ac_exeext
9346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -s conftest$ac_exeext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357
9358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9359}'`
9360# Check for a 64-bit object if we didn't find anything.
9361if 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; }
9362}'`; fi
9363else
9364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009365sed 's/^/| /' conftest.$ac_ext >&5
9366
John Criswell47fdd832003-07-14 16:52:07 +00009367fi
9368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9370
9371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9372
9373 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"
9374 else
9375 if test "$host_cpu" = ia64; then
9376 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9377 allow_undefined_flag_CXX="-z nodefs"
9378 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"
9379 else
9380 # Determine the default libpath from the value encoded in an empty executable.
9381 cat >conftest.$ac_ext <<_ACEOF
9382#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009383/* confdefs.h. */
9384_ACEOF
9385cat confdefs.h >>conftest.$ac_ext
9386cat >>conftest.$ac_ext <<_ACEOF
9387/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009388
John Criswell47fdd832003-07-14 16:52:07 +00009389int
9390main ()
9391{
9392
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext conftest$ac_exeext
9398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409
9410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9411}'`
9412# Check for a 64-bit object if we didn't find anything.
9413if 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; }
9414}'`; fi
9415else
9416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009417sed 's/^/| /' conftest.$ac_ext >&5
9418
John Criswell47fdd832003-07-14 16:52:07 +00009419fi
9420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9422
9423 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9424 # Warning - without using the other run time loading flags,
9425 # -berok will link without error, but may produce a broken library.
9426 no_undefined_flag_CXX=' ${wl}-bernotok'
9427 allow_undefined_flag_CXX=' ${wl}-berok'
9428 # -bexpall does not export symbols beginning with underscore (_)
9429 always_export_symbols_CXX=yes
9430 # Exported symbols can be pulled into shared objects from archives
9431 whole_archive_flag_spec_CXX=' '
9432 archive_cmds_need_lc_CXX=yes
9433 # This is similar to how AIX traditionally builds it's shared libraries.
9434 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'
9435 fi
9436 fi
9437 ;;
9438 chorus*)
9439 case $cc_basename in
9440 *)
9441 # FIXME: insert proper C++ library support
9442 ld_shlibs_CXX=no
9443 ;;
9444 esac
9445 ;;
9446
9447 cygwin* | mingw* | pw32*)
9448 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9449 # as there is no search path for DLLs.
9450 hardcode_libdir_flag_spec_CXX='-L$libdir'
9451 allow_undefined_flag_CXX=unsupported
9452 always_export_symbols_CXX=no
9453 enable_shared_with_static_runtimes_CXX=yes
9454
9455 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9456 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'
9457 # If the export-symbols file already is a .def file (1st line
9458 # is EXPORTS), use it as is; otherwise, prepend...
9459 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9460 cp $export_symbols $output_objdir/$soname.def;
9461 else
9462 echo EXPORTS > $output_objdir/$soname.def;
9463 cat $export_symbols >> $output_objdir/$soname.def;
9464 fi~
9465 $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'
9466 else
9467 ld_shlibs_CXX=no
9468 fi
9469 ;;
9470
9471 darwin* | rhapsody*)
9472 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9473 archive_cmds_need_lc_CXX=no
9474 case "$host_os" in
9475 rhapsody* | darwin1.[012])
9476 allow_undefined_flag_CXX='-undefined suppress'
9477 ;;
9478 *) # Darwin 1.3 on
9479 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9480 ;;
9481 esac
9482 lt_int_apple_cc_single_mod=no
9483 output_verbose_link_cmd='echo'
9484 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9485 lt_int_apple_cc_single_mod=yes
9486 fi
9487 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9488 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9489 else
9490 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'
9491 fi
9492 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9493
9494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496 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}'
9497 else
9498 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}'
9499 fi
9500 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}'
9501 hardcode_direct_CXX=no
9502 hardcode_automatic_CXX=yes
9503 hardcode_shlibpath_var_CXX=unsupported
9504 whole_archive_flag_spec_CXX='-all_load $convenience'
9505 link_all_deplibs_CXX=yes
9506 fi
9507 ;;
9508
9509 dgux*)
9510 case $cc_basename in
9511 ec++)
9512 # FIXME: insert proper C++ library support
9513 ld_shlibs_CXX=no
9514 ;;
9515 ghcx)
9516 # Green Hills C++ Compiler
9517 # FIXME: insert proper C++ library support
9518 ld_shlibs_CXX=no
9519 ;;
9520 *)
9521 # FIXME: insert proper C++ library support
9522 ld_shlibs_CXX=no
9523 ;;
9524 esac
9525 ;;
9526 freebsd12*)
9527 # C++ shared libraries reported to be fairly broken before switch to ELF
9528 ld_shlibs_CXX=no
9529 ;;
9530 freebsd-elf*)
9531 archive_cmds_need_lc_CXX=no
9532 ;;
9533 freebsd*)
9534 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9535 # conventions
9536 ld_shlibs_CXX=yes
9537 ;;
9538 gnu*)
9539 ;;
9540 hpux9*)
9541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9542 hardcode_libdir_separator_CXX=:
9543 export_dynamic_flag_spec_CXX='${wl}-E'
9544 hardcode_direct_CXX=yes
9545 hardcode_minus_L_CXX=yes # Not in the search PATH,
9546 # but as the default
9547 # location of the library.
9548
9549 case $cc_basename in
9550 CC)
9551 # FIXME: insert proper C++ library support
9552 ld_shlibs_CXX=no
9553 ;;
9554 aCC)
9555 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'
9556 # Commands to make compiler produce verbose output that lists
9557 # what "hidden" libraries, object files and flags are used when
9558 # linking a shared library.
9559 #
9560 # There doesn't appear to be a way to prevent this compiler from
9561 # explicitly linking system object files so we need to strip them
9562 # from the output so that they don't get included in the library
9563 # dependencies.
9564 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'
9565 ;;
9566 *)
9567 if test "$GXX" = yes; then
9568 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'
9569 else
9570 # FIXME: insert proper C++ library support
9571 ld_shlibs_CXX=no
9572 fi
9573 ;;
9574 esac
9575 ;;
9576 hpux10*|hpux11*)
9577 if test $with_gnu_ld = no; then
9578 case "$host_cpu" in
9579 hppa*64*)
9580 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9582 hardcode_libdir_separator_CXX=:
9583 ;;
9584 ia64*)
9585 hardcode_libdir_flag_spec_CXX='-L$libdir'
9586 ;;
9587 *)
9588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589 hardcode_libdir_separator_CXX=:
9590 export_dynamic_flag_spec_CXX='${wl}-E'
9591 ;;
9592 esac
9593 fi
9594 case "$host_cpu" in
9595 hppa*64*)
9596 hardcode_direct_CXX=no
9597 hardcode_shlibpath_var_CXX=no
9598 ;;
9599 ia64*)
9600 hardcode_direct_CXX=no
9601 hardcode_shlibpath_var_CXX=no
9602 hardcode_minus_L_CXX=yes # Not in the search PATH,
9603 # but as the default
9604 # location of the library.
9605 ;;
9606 *)
9607 hardcode_direct_CXX=yes
9608 hardcode_minus_L_CXX=yes # Not in the search PATH,
9609 # but as the default
9610 # location of the library.
9611 ;;
9612 esac
9613
9614 case $cc_basename in
9615 CC)
9616 # FIXME: insert proper C++ library support
9617 ld_shlibs_CXX=no
9618 ;;
9619 aCC)
9620 case "$host_cpu" in
9621 hppa*64*|ia64*)
9622 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9623 ;;
9624 *)
9625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9626 ;;
9627 esac
9628 # Commands to make compiler produce verbose output that lists
9629 # what "hidden" libraries, object files and flags are used when
9630 # linking a shared library.
9631 #
9632 # There doesn't appear to be a way to prevent this compiler from
9633 # explicitly linking system object files so we need to strip them
9634 # from the output so that they don't get included in the library
9635 # dependencies.
9636 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'
9637 ;;
9638 *)
9639 if test "$GXX" = yes; then
9640 if test $with_gnu_ld = no; then
9641 case "$host_cpu" in
9642 ia64*|hppa*64*)
9643 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9644 ;;
9645 *)
9646 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'
9647 ;;
9648 esac
9649 fi
9650 else
9651 # FIXME: insert proper C++ library support
9652 ld_shlibs_CXX=no
9653 fi
9654 ;;
9655 esac
9656 ;;
9657 irix5* | irix6*)
9658 case $cc_basename in
9659 CC)
9660 # SGI C++
9661 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'
9662
9663 # Archives containing C++ object files must be created using
9664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9665 # necessary to make sure instantiated templates are included
9666 # in the archive.
9667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9668 ;;
9669 *)
9670 if test "$GXX" = yes; then
9671 if test "$with_gnu_ld" = no; then
9672 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'
9673 else
9674 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'
9675 fi
9676 fi
9677 link_all_deplibs_CXX=yes
9678 ;;
9679 esac
9680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9681 hardcode_libdir_separator_CXX=:
9682 ;;
9683 linux*)
9684 case $cc_basename in
9685 KCC)
9686 # Kuck and Associates, Inc. (KAI) C++ Compiler
9687
9688 # KCC will only create a shared library if the output file
9689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9690 # to its proper name (with version) after linking.
9691 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'
9692 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'
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9696 #
9697 # There doesn't appear to be a way to prevent this compiler from
9698 # explicitly linking system object files so we need to strip them
9699 # from the output so that they don't get included in the library
9700 # dependencies.
9701 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'
9702
9703 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9705
9706 # Archives containing C++ object files must be created using
9707 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9708 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9709 ;;
9710 icpc)
9711 # Intel C++
9712 with_gnu_ld=yes
9713 archive_cmds_need_lc_CXX=no
9714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715 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'
9716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9719 ;;
9720 cxx)
9721 # Compaq C++
9722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 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'
9724
9725 runpath_var=LD_RUN_PATH
9726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9727 hardcode_libdir_separator_CXX=:
9728
9729 # Commands to make compiler produce verbose output that lists
9730 # what "hidden" libraries, object files and flags are used when
9731 # linking a shared library.
9732 #
9733 # There doesn't appear to be a way to prevent this compiler from
9734 # explicitly linking system object files so we need to strip them
9735 # from the output so that they don't get included in the library
9736 # dependencies.
9737 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'
9738 ;;
9739 esac
9740 ;;
9741 lynxos*)
9742 # FIXME: insert proper C++ library support
9743 ld_shlibs_CXX=no
9744 ;;
9745 m88k*)
9746 # FIXME: insert proper C++ library support
9747 ld_shlibs_CXX=no
9748 ;;
9749 mvs*)
9750 case $cc_basename in
9751 cxx)
9752 # FIXME: insert proper C++ library support
9753 ld_shlibs_CXX=no
9754 ;;
9755 *)
9756 # FIXME: insert proper C++ library support
9757 ld_shlibs_CXX=no
9758 ;;
9759 esac
9760 ;;
9761 netbsd*)
9762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9764 wlarc=
9765 hardcode_libdir_flag_spec_CXX='-R$libdir'
9766 hardcode_direct_CXX=yes
9767 hardcode_shlibpath_var_CXX=no
9768 fi
9769 # Workaround some broken pre-1.5 toolchains
9770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9771 ;;
9772 osf3*)
9773 case $cc_basename in
9774 KCC)
9775 # Kuck and Associates, Inc. (KAI) C++ Compiler
9776
9777 # KCC will only create a shared library if the output file
9778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9779 # to its proper name (with version) after linking.
9780 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'
9781
9782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9783 hardcode_libdir_separator_CXX=:
9784
9785 # Archives containing C++ object files must be created using
9786 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9787 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9788
9789 ;;
9790 RCC)
9791 # Rational C++ 2.4.1
9792 # FIXME: insert proper C++ library support
9793 ld_shlibs_CXX=no
9794 ;;
9795 cxx)
9796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9797 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'
9798
9799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9800 hardcode_libdir_separator_CXX=:
9801
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9805 #
9806 # There doesn't appear to be a way to prevent this compiler from
9807 # explicitly linking system object files so we need to strip them
9808 # from the output so that they don't get included in the library
9809 # dependencies.
9810 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'
9811 ;;
9812 *)
9813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9815 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'
9816
9817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator_CXX=:
9819
9820 # Commands to make compiler produce verbose output that lists
9821 # what "hidden" libraries, object files and flags are used when
9822 # linking a shared library.
9823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9824
9825 else
9826 # FIXME: insert proper C++ library support
9827 ld_shlibs_CXX=no
9828 fi
9829 ;;
9830 esac
9831 ;;
9832 osf4* | osf5*)
9833 case $cc_basename in
9834 KCC)
9835 # Kuck and Associates, Inc. (KAI) C++ Compiler
9836
9837 # KCC will only create a shared library if the output file
9838 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9839 # to its proper name (with version) after linking.
9840 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'
9841
9842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9843 hardcode_libdir_separator_CXX=:
9844
9845 # Archives containing C++ object files must be created using
9846 # the KAI C++ compiler.
9847 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9848 ;;
9849 RCC)
9850 # Rational C++ 2.4.1
9851 # FIXME: insert proper C++ library support
9852 ld_shlibs_CXX=no
9853 ;;
9854 cxx)
9855 allow_undefined_flag_CXX=' -expect_unresolved \*'
9856 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'
9857 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9858 echo "-hidden">> $lib.exp~
9859 $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~
9860 $rm $lib.exp'
9861
9862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9863 hardcode_libdir_separator_CXX=:
9864
9865 # Commands to make compiler produce verbose output that lists
9866 # what "hidden" libraries, object files and flags are used when
9867 # linking a shared library.
9868 #
9869 # There doesn't appear to be a way to prevent this compiler from
9870 # explicitly linking system object files so we need to strip them
9871 # from the output so that they don't get included in the library
9872 # dependencies.
9873 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'
9874 ;;
9875 *)
9876 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9878 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'
9879
9880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9881 hardcode_libdir_separator_CXX=:
9882
9883 # Commands to make compiler produce verbose output that lists
9884 # what "hidden" libraries, object files and flags are used when
9885 # linking a shared library.
9886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9887
9888 else
9889 # FIXME: insert proper C++ library support
9890 ld_shlibs_CXX=no
9891 fi
9892 ;;
9893 esac
9894 ;;
9895 psos*)
9896 # FIXME: insert proper C++ library support
9897 ld_shlibs_CXX=no
9898 ;;
9899 sco*)
9900 archive_cmds_need_lc_CXX=no
9901 case $cc_basename in
9902 CC)
9903 # FIXME: insert proper C++ library support
9904 ld_shlibs_CXX=no
9905 ;;
9906 *)
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910 esac
9911 ;;
9912 sunos4*)
9913 case $cc_basename in
9914 CC)
9915 # Sun C++ 4.x
9916 # FIXME: insert proper C++ library support
9917 ld_shlibs_CXX=no
9918 ;;
9919 lcc)
9920 # Lucid
9921 # FIXME: insert proper C++ library support
9922 ld_shlibs_CXX=no
9923 ;;
9924 *)
9925 # FIXME: insert proper C++ library support
9926 ld_shlibs_CXX=no
9927 ;;
9928 esac
9929 ;;
9930 solaris*)
9931 case $cc_basename in
9932 CC)
9933 # Sun C++ 4.2, 5.x and Centerline C++
9934 no_undefined_flag_CXX=' -zdefs'
9935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9937 $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'
9938
9939 hardcode_libdir_flag_spec_CXX='-R$libdir'
9940 hardcode_shlibpath_var_CXX=no
9941 case $host_os in
9942 solaris2.0-5 | solaris2.0-5.*) ;;
9943 *)
9944 # The C++ compiler is used as linker so we must use $wl
9945 # flag to pass the commands to the underlying system
9946 # linker.
9947 # Supported since Solaris 2.6 (maybe 2.5.1?)
9948 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9949 ;;
9950 esac
9951 link_all_deplibs_CXX=yes
9952
9953 # Commands to make compiler produce verbose output that lists
9954 # what "hidden" libraries, object files and flags are used when
9955 # linking a shared library.
9956 #
9957 # There doesn't appear to be a way to prevent this compiler from
9958 # explicitly linking system object files so we need to strip them
9959 # from the output so that they don't get included in the library
9960 # dependencies.
9961 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'
9962
9963 # Archives containing C++ object files must be created using
9964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9965 # necessary to make sure instantiated templates are included
9966 # in the archive.
9967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9968 ;;
9969 gcx)
9970 # Green Hills C++ Compiler
9971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9972
9973 # The C++ compiler must be used to create the archive.
9974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9975 ;;
9976 *)
9977 # GNU C++ compiler with Solaris linker
9978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9980 if $CC --version | grep -v '^2\.7' > /dev/null; then
9981 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9983 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9984
9985 # Commands to make compiler produce verbose output that lists
9986 # what "hidden" libraries, object files and flags are used when
9987 # linking a shared library.
9988 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9989 else
9990 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9991 # platform.
9992 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9994 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9995
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
9999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10000 fi
10001
10002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10003 fi
10004 ;;
10005 esac
10006 ;;
10007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10008 archive_cmds_need_lc_CXX=no
10009 ;;
10010 tandem*)
10011 case $cc_basename in
10012 NCC)
10013 # NonStop-UX NCC 3.20
10014 # FIXME: insert proper C++ library support
10015 ld_shlibs_CXX=no
10016 ;;
10017 *)
10018 # FIXME: insert proper C++ library support
10019 ld_shlibs_CXX=no
10020 ;;
10021 esac
10022 ;;
10023 vxworks*)
10024 # FIXME: insert proper C++ library support
10025 ld_shlibs_CXX=no
10026 ;;
10027 *)
10028 # FIXME: insert proper C++ library support
10029 ld_shlibs_CXX=no
10030 ;;
10031esac
10032echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10033echo "${ECHO_T}$ld_shlibs_CXX" >&6
10034test "$ld_shlibs_CXX" = no && can_build_shared=no
10035
10036GCC_CXX="$GXX"
10037LD_CXX="$LD"
10038
John Criswell47fdd832003-07-14 16:52:07 +000010039
10040cat > conftest.$ac_ext <<EOF
10041class Foo
10042{
10043public:
10044 Foo (void) { a = 0; }
10045private:
10046 int a;
10047};
10048EOF
10049
10050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; then
10055 # Parse the compiler output and extract the necessary
10056 # objects, libraries and library flags.
10057
10058 # Sentinel used to keep track of whether or not we are before
10059 # the conftest object file.
10060 pre_test_object_deps_done=no
10061
10062 # The `*' in the case matches for architectures that use `case' in
10063 # $output_verbose_cmd can trigger glob expansion during the loop
10064 # eval without this substitution.
10065 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10066
10067 for p in `eval $output_verbose_link_cmd`; do
10068 case $p in
10069
10070 -L* | -R* | -l*)
10071 # Some compilers place space between "-{L,R}" and the path.
10072 # Remove the space.
10073 if test $p = "-L" \
10074 || test $p = "-R"; then
10075 prev=$p
10076 continue
10077 else
10078 prev=
10079 fi
10080
10081 if test "$pre_test_object_deps_done" = no; then
10082 case $p in
10083 -L* | -R*)
10084 # Internal compiler library paths should come after those
10085 # provided the user. The postdeps already come after the
10086 # user supplied libs so there is no need to process them.
10087 if test -z "$compiler_lib_search_path_CXX"; then
10088 compiler_lib_search_path_CXX="${prev}${p}"
10089 else
10090 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10091 fi
10092 ;;
10093 # The "-l" case would never come before the object being
10094 # linked, so don't bother handling this case.
10095 esac
10096 else
10097 if test -z "$postdeps_CXX"; then
10098 postdeps_CXX="${prev}${p}"
10099 else
10100 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10101 fi
10102 fi
10103 ;;
10104
10105 *.$objext)
10106 # This assumes that the test object file only shows up
10107 # once in the compiler output.
10108 if test "$p" = "conftest.$objext"; then
10109 pre_test_object_deps_done=yes
10110 continue
10111 fi
10112
10113 if test "$pre_test_object_deps_done" = no; then
10114 if test -z "$predep_objects_CXX"; then
10115 predep_objects_CXX="$p"
10116 else
10117 predep_objects_CXX="$predep_objects_CXX $p"
10118 fi
10119 else
10120 if test -z "$postdep_objects_CXX"; then
10121 postdep_objects_CXX="$p"
10122 else
10123 postdep_objects_CXX="$postdep_objects_CXX $p"
10124 fi
10125 fi
10126 ;;
10127
10128 *) ;; # Ignore the rest.
10129
10130 esac
10131 done
10132
10133 # Clean up.
10134 rm -f a.out a.exe
10135else
10136 echo "libtool.m4: error: problem compiling CXX test program"
10137fi
10138
10139$rm -f confest.$objext
10140
10141case " $postdeps_CXX " in
10142*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10143esac
10144
10145lt_prog_compiler_wl_CXX=
10146lt_prog_compiler_pic_CXX=
10147lt_prog_compiler_static_CXX=
10148
10149echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10150echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10151
10152 # C++ specific cases for pic, static, wl, etc.
10153 if test "$GXX" = yes; then
10154 lt_prog_compiler_wl_CXX='-Wl,'
10155 lt_prog_compiler_static_CXX='-static'
10156
10157 case $host_os in
10158 aix*)
10159 # All AIX code is PIC.
10160 if test "$host_cpu" = ia64; then
10161 # AIX 5 now supports IA64 processor
10162 lt_prog_compiler_static_CXX='-Bstatic'
10163 fi
10164 ;;
10165 amigaos*)
10166 # FIXME: we need at least 68020 code to build shared libraries, but
10167 # adding the `-m68020' flag to GCC prevents building anything better,
10168 # like `-m68040'.
10169 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10170 ;;
10171 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10172 # PIC is the default for these OSes.
10173 ;;
10174 mingw* | os2* | pw32*)
10175 # This hack is so that the source file can tell whether it is being
10176 # built for inclusion in a dll (and should export symbols for example).
10177 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10178 ;;
10179 darwin* | rhapsody*)
10180 # PIC is the default on this platform
10181 # Common symbols not allowed in MH_DYLIB files
10182 lt_prog_compiler_pic_CXX='-fno-common'
10183 ;;
10184 *djgpp*)
10185 # DJGPP does not support shared libraries at all
10186 lt_prog_compiler_pic_CXX=
10187 ;;
10188 sysv4*MP*)
10189 if test -d /usr/nec; then
10190 lt_prog_compiler_pic_CXX=-Kconform_pic
10191 fi
10192 ;;
10193 hpux*)
10194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10195 # not for PA HP-UX.
10196 case "$host_cpu" in
10197 hppa*64*|ia64*)
10198 ;;
10199 *)
10200 lt_prog_compiler_pic_CXX='-fPIC'
10201 ;;
10202 esac
10203 ;;
10204 *)
10205 lt_prog_compiler_pic_CXX='-fPIC'
10206 ;;
10207 esac
10208 else
10209 case $host_os in
10210 aix4* | aix5*)
10211 # All AIX code is PIC.
10212 if test "$host_cpu" = ia64; then
10213 # AIX 5 now supports IA64 processor
10214 lt_prog_compiler_static_CXX='-Bstatic'
10215 else
10216 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10217 fi
10218 ;;
10219 chorus*)
10220 case $cc_basename in
10221 cxch68)
10222 # Green Hills C++ Compiler
10223 # _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"
10224 ;;
10225 esac
10226 ;;
10227 dgux*)
10228 case $cc_basename in
10229 ec++)
10230 lt_prog_compiler_pic_CXX='-KPIC'
10231 ;;
10232 ghcx)
10233 # Green Hills C++ Compiler
10234 lt_prog_compiler_pic_CXX='-pic'
10235 ;;
10236 *)
10237 ;;
10238 esac
10239 ;;
10240 freebsd*)
10241 # FreeBSD uses GNU C++
10242 ;;
10243 hpux9* | hpux10* | hpux11*)
10244 case $cc_basename in
10245 CC)
10246 lt_prog_compiler_wl_CXX='-Wl,'
10247 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10248 if test "$host_cpu" != ia64; then
10249 lt_prog_compiler_pic_CXX='+Z'
10250 fi
10251 ;;
10252 aCC)
10253 lt_prog_compiler_wl_CXX='-Wl,'
10254 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10255 case "$host_cpu" in
10256 hppa*64*|ia64*)
10257 # +Z the default
10258 ;;
10259 *)
10260 lt_prog_compiler_pic_CXX='+Z'
10261 ;;
10262 esac
10263 ;;
10264 *)
10265 ;;
10266 esac
10267 ;;
10268 irix5* | irix6* | nonstopux*)
10269 case $cc_basename in
10270 CC)
10271 lt_prog_compiler_wl_CXX='-Wl,'
10272 lt_prog_compiler_static_CXX='-non_shared'
10273 # CC pic flag -KPIC is the default.
10274 ;;
10275 *)
10276 ;;
10277 esac
10278 ;;
10279 linux*)
10280 case $cc_basename in
10281 KCC)
10282 # KAI C++ Compiler
10283 lt_prog_compiler_wl_CXX='--backend -Wl,'
10284 lt_prog_compiler_pic_CXX='-fPIC'
10285 ;;
10286 icpc)
10287 # Intel C++
10288 lt_prog_compiler_wl_CXX='-Wl,'
10289 lt_prog_compiler_pic_CXX='-KPIC'
10290 lt_prog_compiler_static_CXX='-static'
10291 ;;
10292 cxx)
10293 # Compaq C++
10294 # Make sure the PIC flag is empty. It appears that all Alpha
10295 # Linux and Compaq Tru64 Unix objects are PIC.
10296 lt_prog_compiler_pic_CXX=
10297 lt_prog_compiler_static_CXX='-non_shared'
10298 ;;
10299 *)
10300 ;;
10301 esac
10302 ;;
10303 lynxos*)
10304 ;;
10305 m88k*)
10306 ;;
10307 mvs*)
10308 case $cc_basename in
10309 cxx)
10310 lt_prog_compiler_pic_CXX='-W c,exportall'
10311 ;;
10312 *)
10313 ;;
10314 esac
10315 ;;
10316 netbsd*)
10317 ;;
10318 osf3* | osf4* | osf5*)
10319 case $cc_basename in
10320 KCC)
10321 lt_prog_compiler_wl_CXX='--backend -Wl,'
10322 ;;
10323 RCC)
10324 # Rational C++ 2.4.1
10325 lt_prog_compiler_pic_CXX='-pic'
10326 ;;
10327 cxx)
10328 # Digital/Compaq C++
10329 lt_prog_compiler_wl_CXX='-Wl,'
10330 # Make sure the PIC flag is empty. It appears that all Alpha
10331 # Linux and Compaq Tru64 Unix objects are PIC.
10332 lt_prog_compiler_pic_CXX=
10333 lt_prog_compiler_static_CXX='-non_shared'
10334 ;;
10335 *)
10336 ;;
10337 esac
10338 ;;
10339 psos*)
10340 ;;
10341 sco*)
10342 case $cc_basename in
10343 CC)
10344 lt_prog_compiler_pic_CXX='-fPIC'
10345 ;;
10346 *)
10347 ;;
10348 esac
10349 ;;
10350 solaris*)
10351 case $cc_basename in
10352 CC)
10353 # Sun C++ 4.2, 5.x and Centerline C++
10354 lt_prog_compiler_pic_CXX='-KPIC'
10355 lt_prog_compiler_static_CXX='-Bstatic'
10356 lt_prog_compiler_wl_CXX='-Qoption ld '
10357 ;;
10358 gcx)
10359 # Green Hills C++ Compiler
10360 lt_prog_compiler_pic_CXX='-PIC'
10361 ;;
10362 *)
10363 ;;
10364 esac
10365 ;;
10366 sunos4*)
10367 case $cc_basename in
10368 CC)
10369 # Sun C++ 4.x
10370 lt_prog_compiler_pic_CXX='-pic'
10371 lt_prog_compiler_static_CXX='-Bstatic'
10372 ;;
10373 lcc)
10374 # Lucid
10375 lt_prog_compiler_pic_CXX='-pic'
10376 ;;
10377 *)
10378 ;;
10379 esac
10380 ;;
10381 tandem*)
10382 case $cc_basename in
10383 NCC)
10384 # NonStop-UX NCC 3.20
10385 lt_prog_compiler_pic_CXX='-KPIC'
10386 ;;
10387 *)
10388 ;;
10389 esac
10390 ;;
10391 unixware*)
10392 ;;
10393 vxworks*)
10394 ;;
10395 *)
10396 lt_prog_compiler_can_build_shared_CXX=no
10397 ;;
10398 esac
10399 fi
10400
10401echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10402echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10403
10404#
10405# Check to make sure the PIC flag actually works.
10406#
10407if test -n "$lt_prog_compiler_pic_CXX"; then
10408 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10410if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413 lt_prog_compiler_pic_works_CXX=no
10414 ac_outfile=conftest.$ac_objext
10415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10416 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10417 # Insert the option either (1) after the last *FLAGS variable, or
10418 # (2) before a word containing "conftest.", or (3) at the end.
10419 # Note that $ac_compile itself does not contain backslashes and begins
10420 # with a dollar sign (not a hyphen), so the echo should work correctly.
10421 # The option is referenced via a variable to avoid confusing sed.
10422 lt_compile=`echo "$ac_compile" | $SED \
10423 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10425 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000010426 (eval echo "\"\$as_me:10426: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010427 (eval "$lt_compile" 2>conftest.err)
10428 ac_status=$?
10429 cat conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000010430 echo "$as_me:10430: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010431 if (exit $ac_status) && test -s "$ac_outfile"; then
10432 # The compiler can only warn and ignore the option if not recognized
10433 # So say no if there are warnings
10434 if test ! -s conftest.err; then
10435 lt_prog_compiler_pic_works_CXX=yes
10436 fi
10437 fi
10438 $rm conftest*
10439
10440fi
10441echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10442echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10443
10444if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10445 case $lt_prog_compiler_pic_CXX in
10446 "" | " "*) ;;
10447 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10448 esac
10449else
10450 lt_prog_compiler_pic_CXX=
10451 lt_prog_compiler_can_build_shared_CXX=no
10452fi
10453
10454fi
10455case "$host_os" in
10456 # For platforms which do not support PIC, -DPIC is meaningless:
10457 *djgpp*)
10458 lt_prog_compiler_pic_CXX=
10459 ;;
10460 *)
10461 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10462 ;;
10463esac
10464
10465echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10466echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10467if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469else
10470 lt_cv_prog_compiler_c_o_CXX=no
10471 $rm -r conftest 2>/dev/null
10472 mkdir conftest
10473 cd conftest
10474 mkdir out
10475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10476
10477 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10478 # that will create temporary files in the current directory regardless of
10479 # the output directory. Thus, making CWD read-only will cause this test
10480 # to fail, enabling locking or at least warning the user not to do parallel
10481 # builds.
10482 chmod -w .
10483
10484 lt_compiler_flag="-o out/conftest2.$ac_objext"
10485 # Insert the option either (1) after the last *FLAGS variable, or
10486 # (2) before a word containing "conftest.", or (3) at the end.
10487 # Note that $ac_compile itself does not contain backslashes and begins
10488 # with a dollar sign (not a hyphen), so the echo should work correctly.
10489 lt_compile=`echo "$ac_compile" | $SED \
10490 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10492 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000010493 (eval echo "\"\$as_me:10493: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010494 (eval "$lt_compile" 2>out/conftest.err)
10495 ac_status=$?
10496 cat out/conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000010497 echo "$as_me:10497: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10499 then
10500 # The compiler can only warn and ignore the option if not recognized
10501 # So say no if there are warnings
10502 if test ! -s out/conftest.err; then
10503 lt_cv_prog_compiler_c_o_CXX=yes
10504 fi
10505 fi
10506 chmod u+w .
10507 $rm conftest* out/*
10508 rmdir out
10509 cd ..
10510 rmdir conftest
10511 $rm conftest*
10512
10513fi
10514echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10515echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10516
10517
10518hard_links="nottested"
10519if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10520 # do not overwrite the value of need_locks provided by the user
10521 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10522echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10523 hard_links=yes
10524 $rm conftest*
10525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10526 touch conftest.a
10527 ln conftest.a conftest.b 2>&5 || hard_links=no
10528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10529 echo "$as_me:$LINENO: result: $hard_links" >&5
10530echo "${ECHO_T}$hard_links" >&6
10531 if test "$hard_links" = no; then
10532 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10533echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10534 need_locks=warn
10535 fi
10536else
10537 need_locks=no
10538fi
10539
10540echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10541echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10542
10543 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10544 case $host_os in
10545 aix4* | aix5*)
10546 # If we're using GNU nm, then we don't want the "-C" option.
10547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10548 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10549 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'
10550 else
10551 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'
10552 fi
10553 ;;
10554 pw32*)
10555 export_symbols_cmds_CXX="$ltdll_cmds"
10556 ;;
10557 cygwin* | mingw*)
10558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10559 ;;
10560 *)
10561 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10562 ;;
10563 esac
10564
10565echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10566echo "${ECHO_T}$ld_shlibs_CXX" >&6
10567test "$ld_shlibs_CXX" = no && can_build_shared=no
10568
10569variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10570if test "$GCC" = yes; then
10571 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10572fi
10573
10574#
10575# Do we need to explicitly link libc?
10576#
10577case "x$archive_cmds_need_lc_CXX" in
10578x|xyes)
10579 # Assume -lc should be added
10580 archive_cmds_need_lc_CXX=yes
10581
10582 if test "$enable_shared" = yes && test "$GCC" = yes; then
10583 case $archive_cmds_CXX in
10584 *'~'*)
10585 # FIXME: we may have to deal with multi-command sequences.
10586 ;;
10587 '$CC '*)
10588 # Test whether the compiler implicitly links with -lc since on some
10589 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10590 # to ld, don't add -lc before -lgcc.
10591 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10592echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10593 $rm conftest*
10594 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10595
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597 (eval $ac_compile) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } 2>conftest.err; then
10601 soname=conftest
10602 lib=conftest
10603 libobjs=conftest.$ac_objext
10604 deplibs=
10605 wl=$lt_prog_compiler_wl_CXX
10606 compiler_flags=-v
10607 linker_flags=-v
10608 verstring=
10609 output_objdir=.
10610 libname=conftest
10611 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10612 allow_undefined_flag_CXX=
10613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10614 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }
10618 then
10619 archive_cmds_need_lc_CXX=no
10620 else
10621 archive_cmds_need_lc_CXX=yes
10622 fi
10623 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10624 else
10625 cat conftest.err 1>&5
10626 fi
10627 $rm conftest*
10628 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10629echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10630 ;;
10631 esac
10632 fi
10633 ;;
10634esac
10635
10636echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10637echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10638hardcode_action_CXX=
10639if test -n "$hardcode_libdir_flag_spec_CXX" || \
10640 test -n "$runpath_var CXX" || \
10641 test "X$hardcode_automatic_CXX"="Xyes" ; then
10642
10643 # We can hardcode non-existant directories.
10644 if test "$hardcode_direct_CXX" != no &&
10645 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10646 # have to relink, otherwise we might link with an installed library
10647 # when we should be linking with a yet-to-be-installed one
10648 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10649 test "$hardcode_minus_L_CXX" != no; then
10650 # Linking always hardcodes the temporary library directory.
10651 hardcode_action_CXX=relink
10652 else
10653 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10654 hardcode_action_CXX=immediate
10655 fi
10656else
10657 # We cannot hardcode anything, or else we can only hardcode existing
10658 # directories.
10659 hardcode_action_CXX=unsupported
10660fi
10661echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10662echo "${ECHO_T}$hardcode_action_CXX" >&6
10663
10664if test "$hardcode_action_CXX" = relink; then
10665 # Fast installation is not supported
10666 enable_fast_install=no
10667elif test "$shlibpath_overrides_runpath" = yes ||
10668 test "$enable_shared" = no; then
10669 # Fast installation is not necessary
10670 enable_fast_install=needless
10671fi
10672
10673striplib=
10674old_striplib=
10675echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10676echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10677if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10680 echo "$as_me:$LINENO: result: yes" >&5
10681echo "${ECHO_T}yes" >&6
10682else
10683# FIXME - insert some real tests, host_os isn't really good enough
10684 case $host_os in
10685 darwin*)
10686 if test -n "$STRIP" ; then
10687 striplib="$STRIP -x"
10688 echo "$as_me:$LINENO: result: yes" >&5
10689echo "${ECHO_T}yes" >&6
10690 else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693fi
10694 ;;
10695 *)
10696 echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6
10698 ;;
10699 esac
10700fi
10701
10702echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10703echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10704library_names_spec=
10705libname_spec='lib$name'
10706soname_spec=
10707shrext=".so"
10708postinstall_cmds=
10709postuninstall_cmds=
10710finish_cmds=
10711finish_eval=
10712shlibpath_var=
10713shlibpath_overrides_runpath=unknown
10714version_type=none
10715dynamic_linker="$host_os ld.so"
10716sys_lib_dlsearch_path_spec="/lib /usr/lib"
10717if test "$GCC" = yes; then
10718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10719 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10720 # if the path contains ";" then we assume it to be the separator
10721 # otherwise default to the standard path separator (i.e. ":") - it is
10722 # assumed that no part of a normal pathname contains ";" but that should
10723 # okay in the real world where ";" in dirpaths is itself problematic.
10724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10725 else
10726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10727 fi
10728else
10729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10730fi
10731need_lib_prefix=unknown
10732hardcode_into_libs=no
10733
10734# when you set need_version to no, make sure it does not cause -set_version
10735# flags to be left without arguments
10736need_version=unknown
10737
10738case $host_os in
10739aix3*)
10740 version_type=linux
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10742 shlibpath_var=LIBPATH
10743
10744 # AIX 3 has no versioning support, so we append a major version to the name.
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 ;;
10747
10748aix4* | aix5*)
10749 version_type=linux
10750 need_lib_prefix=no
10751 need_version=no
10752 hardcode_into_libs=yes
10753 if test "$host_cpu" = ia64; then
10754 # AIX 5 supports IA64
10755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 else
10758 # With GCC up to 2.95.x, collect2 would create an import file
10759 # for dependence libraries. The import file would start with
10760 # the line `#! .'. This would cause the generated library to
10761 # depend on `.', always an invalid library. This was fixed in
10762 # development snapshots of GCC prior to 3.0.
10763 case $host_os in
10764 aix4 | aix4.[01] | aix4.[01].*)
10765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10766 echo ' yes '
10767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10768 :
10769 else
10770 can_build_shared=no
10771 fi
10772 ;;
10773 esac
10774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10775 # soname into executable. Probably we can add versioning support to
10776 # collect2, so additional links can be useful in future.
10777 if test "$aix_use_runtimelinking" = yes; then
10778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10779 # instead of lib<name>.a to let people know that these are not
10780 # typical AIX shared libraries.
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 else
10783 # We preserve .a as extension for shared libraries through AIX4.2
10784 # and later when we are not doing run time linking.
10785 library_names_spec='${libname}${release}.a $libname.a'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 fi
10788 shlibpath_var=LIBPATH
10789 fi
10790 ;;
10791
10792amigaos*)
10793 library_names_spec='$libname.ixlibrary $libname.a'
10794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10795 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'
10796 ;;
10797
10798beos*)
10799 library_names_spec='${libname}${shared_ext}'
10800 dynamic_linker="$host_os ld.so"
10801 shlibpath_var=LIBRARY_PATH
10802 ;;
10803
10804bsdi4*)
10805 version_type=linux
10806 need_version=no
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10813 # the default ld.so.conf also contains /usr/contrib/lib and
10814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10815 # libtool to hard-code these into programs
10816 ;;
10817
10818cygwin* | mingw* | pw32*)
10819 version_type=windows
10820 shrext=".dll"
10821 need_version=no
10822 need_lib_prefix=no
10823
10824 case $GCC,$host_os in
10825 yes,cygwin* | yes,mingw* | yes,pw32*)
10826 library_names_spec='$libname.dll.a'
10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828 postinstall_cmds='base_file=`basename \${file}`~
10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10830 dldir=$destdir/`dirname \$dlpath`~
10831 test -d \$dldir || mkdir -p \$dldir~
10832 $install_prog $dir/$dlname \$dldir/$dlname'
10833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834 dlpath=$dir/\$dldll~
10835 $rm \$dlpath'
10836 shlibpath_overrides_runpath=yes
10837
10838 case $host_os in
10839 cygwin*)
10840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10841 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10843 ;;
10844 mingw*)
10845 # MinGW DLLs use traditional 'lib' prefix
10846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10848 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10849 # It is most probably a Windows format PATH printed by
10850 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10851 # path with ; separators, and with drive letters. We can handle the
10852 # drive letters (cygwin fileutils understands them), so leave them,
10853 # especially as we might pass files found there to a mingw objdump,
10854 # which wouldn't understand a cygwinified path. Ahh.
10855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10856 else
10857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10858 fi
10859 ;;
10860 pw32*)
10861 # pw32 DLLs use 'pw' prefix rather than 'lib'
10862 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10863 ;;
10864 esac
10865 ;;
10866
10867 *)
10868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10869 ;;
10870 esac
10871 dynamic_linker='Win32 ld.exe'
10872 # FIXME: first we should search . and the directory the executable is in
10873 shlibpath_var=PATH
10874 ;;
10875
10876darwin* | rhapsody*)
10877 dynamic_linker="$host_os dyld"
10878 version_type=darwin
10879 need_lib_prefix=no
10880 need_version=no
10881 # FIXME: Relying on posixy $() will cause problems for
10882 # cross-compilation, but unfortunately the echo tests do not
10883 # yet detect zsh echo's removal of \ escapes.
10884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10885 soname_spec='${libname}${release}${major}$shared_ext'
10886 shlibpath_overrides_runpath=yes
10887 shlibpath_var=DYLD_LIBRARY_PATH
10888 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10889 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10890 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10891 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"`
10892 fi
10893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10894 ;;
10895
10896dgux*)
10897 version_type=linux
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 ;;
10904
10905freebsd1*)
10906 dynamic_linker=no
10907 ;;
10908
10909freebsd*)
10910 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10911 version_type=freebsd-$objformat
10912 case $version_type in
10913 freebsd-elf*)
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10915 need_version=no
10916 need_lib_prefix=no
10917 ;;
10918 freebsd-*)
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10920 need_version=yes
10921 ;;
10922 esac
10923 shlibpath_var=LD_LIBRARY_PATH
10924 case $host_os in
10925 freebsd2*)
10926 shlibpath_overrides_runpath=yes
10927 ;;
10928 freebsd3.01* | freebsdelf3.01*)
10929 shlibpath_overrides_runpath=yes
10930 hardcode_into_libs=yes
10931 ;;
10932 *) # from 3.2 on
10933 shlibpath_overrides_runpath=no
10934 hardcode_into_libs=yes
10935 ;;
10936 esac
10937 ;;
10938
10939gnu*)
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 hardcode_into_libs=yes
10947 ;;
10948
10949hpux9* | hpux10* | hpux11*)
10950 # Give a soname corresponding to the major version so that dld.sl refuses to
10951 # link against other versions.
10952 version_type=sunos
10953 need_lib_prefix=no
10954 need_version=no
10955 case "$host_cpu" in
10956 ia64*)
10957 shrext='.so'
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.so"
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 if test "X$HPUX_IA64_MODE" = X32; then
10965 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10966 else
10967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10968 fi
10969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10970 ;;
10971 hppa*64*)
10972 shrext='.sl'
10973 hardcode_into_libs=yes
10974 dynamic_linker="$host_os dld.sl"
10975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 soname_spec='${libname}${release}${shared_ext}$major'
10979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10981 ;;
10982 *)
10983 shrext='.sl'
10984 dynamic_linker="$host_os dld.sl"
10985 shlibpath_var=SHLIB_PATH
10986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 ;;
10990 esac
10991 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10992 postinstall_cmds='chmod 555 $lib'
10993 ;;
10994
10995irix5* | irix6* | nonstopux*)
10996 case $host_os in
10997 nonstopux*) version_type=nonstopux ;;
10998 *)
10999 if test "$lt_cv_prog_gnu_ld" = yes; then
11000 version_type=linux
11001 else
11002 version_type=irix
11003 fi ;;
11004 esac
11005 need_lib_prefix=no
11006 need_version=no
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11009 case $host_os in
11010 irix5* | nonstopux*)
11011 libsuff= shlibsuff=
11012 ;;
11013 *)
11014 case $LD in # libtool.m4 will add one of these switches to LD
11015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11016 libsuff= shlibsuff= libmagic=32-bit;;
11017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11018 libsuff=32 shlibsuff=N32 libmagic=N32;;
11019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11021 *) libsuff= shlibsuff= libmagic=never-match;;
11022 esac
11023 ;;
11024 esac
11025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11026 shlibpath_overrides_runpath=no
11027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11029 hardcode_into_libs=yes
11030 ;;
11031
11032# No shared lib support for Linux oldld, aout, or coff.
11033linux*oldld* | linux*aout* | linux*coff*)
11034 dynamic_linker=no
11035 ;;
11036
11037# This must be Linux ELF.
11038linux*)
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 # This implies no fast_install, which is unacceptable.
11048 # Some rework will be needed to allow for fast_install
11049 # before this can be enabled.
11050 hardcode_into_libs=yes
11051
11052 # We used to test for /lib/ld.so.1 and disable shared libraries on
11053 # powerpc, because MkLinux only supported shared libraries with the
11054 # GNU dynamic linker. Since this was broken with cross compilers,
11055 # most powerpc-linux boxes support dynamic linking these days and
11056 # people can always --disable-shared, the test was removed, and we
11057 # assume the GNU/Linux dynamic linker is in use.
11058 dynamic_linker='GNU/Linux ld.so'
11059 ;;
11060
11061netbsd*)
11062 version_type=sunos
11063 need_lib_prefix=no
11064 need_version=no
11065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068 dynamic_linker='NetBSD (a.out) ld.so'
11069 else
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 dynamic_linker='NetBSD ld.elf_so'
11073 fi
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=yes
11076 hardcode_into_libs=yes
11077 ;;
11078
11079newsos6)
11080 version_type=linux
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 ;;
11085
11086nto-qnx)
11087 version_type=linux
11088 need_lib_prefix=no
11089 need_version=no
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=yes
11094 ;;
11095
11096openbsd*)
11097 version_type=sunos
11098 need_lib_prefix=no
11099 need_version=no
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11104 case $host_os in
11105 openbsd2.[89] | openbsd2.[89].*)
11106 shlibpath_overrides_runpath=no
11107 ;;
11108 *)
11109 shlibpath_overrides_runpath=yes
11110 ;;
11111 esac
11112 else
11113 shlibpath_overrides_runpath=yes
11114 fi
11115 ;;
11116
11117os2*)
11118 libname_spec='$name'
11119 shrext=".dll"
11120 need_lib_prefix=no
11121 library_names_spec='$libname${shared_ext} $libname.a'
11122 dynamic_linker='OS/2 ld.exe'
11123 shlibpath_var=LIBPATH
11124 ;;
11125
11126osf3* | osf4* | osf5*)
11127 version_type=osf
11128 need_lib_prefix=no
11129 need_version=no
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11135 ;;
11136
11137sco3.2v5*)
11138 version_type=osf
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 ;;
11143
11144solaris*)
11145 version_type=linux
11146 need_lib_prefix=no
11147 need_version=no
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 hardcode_into_libs=yes
11153 # ldd complains unless libraries are executable
11154 postinstall_cmds='chmod +x $lib'
11155 ;;
11156
11157sunos4*)
11158 version_type=sunos
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes
11163 if test "$with_gnu_ld" = yes; then
11164 need_lib_prefix=no
11165 fi
11166 need_version=yes
11167 ;;
11168
11169sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11170 version_type=linux
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 case $host_vendor in
11175 sni)
11176 shlibpath_overrides_runpath=no
11177 need_lib_prefix=no
11178 export_dynamic_flag_spec='${wl}-Blargedynsym'
11179 runpath_var=LD_RUN_PATH
11180 ;;
11181 siemens)
11182 need_lib_prefix=no
11183 ;;
11184 motorola)
11185 need_lib_prefix=no
11186 need_version=no
11187 shlibpath_overrides_runpath=no
11188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11189 ;;
11190 esac
11191 ;;
11192
11193sysv4*MP*)
11194 if test -d /usr/nec ;then
11195 version_type=linux
11196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11197 soname_spec='$libname${shared_ext}.$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 fi
11200 ;;
11201
11202uts4*)
11203 version_type=linux
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 ;;
11208
11209*)
11210 dynamic_linker=no
11211 ;;
11212esac
11213echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11214echo "${ECHO_T}$dynamic_linker" >&6
11215test "$dynamic_linker" = no && can_build_shared=no
11216
11217if test "x$enable_dlopen" != xyes; then
11218 enable_dlopen=unknown
11219 enable_dlopen_self=unknown
11220 enable_dlopen_self_static=unknown
11221else
11222 lt_cv_dlopen=no
11223 lt_cv_dlopen_libs=
11224
11225 case $host_os in
11226 beos*)
11227 lt_cv_dlopen="load_add_on"
11228 lt_cv_dlopen_libs=
11229 lt_cv_dlopen_self=yes
11230 ;;
11231
11232 mingw* | pw32*)
11233 lt_cv_dlopen="LoadLibrary"
11234 lt_cv_dlopen_libs=
11235 ;;
11236
11237 cygwin*)
11238 lt_cv_dlopen="dlopen"
11239 lt_cv_dlopen_libs=
11240 ;;
11241
11242 darwin*)
11243 # if libdl is installed we need to link against it
11244 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11245echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11246if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248else
11249 ac_check_lib_save_LIBS=$LIBS
11250LIBS="-ldl $LIBS"
11251cat >conftest.$ac_ext <<_ACEOF
11252#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011253/* confdefs.h. */
11254_ACEOF
11255cat confdefs.h >>conftest.$ac_ext
11256cat >>conftest.$ac_ext <<_ACEOF
11257/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011258
11259/* Override any gcc2 internal prototype to avoid an error. */
11260#ifdef __cplusplus
11261extern "C"
11262#endif
11263/* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11265char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011266int
11267main ()
11268{
11269dlopen ();
11270 ;
11271 return 0;
11272}
11273_ACEOF
11274rm -f conftest.$ac_objext conftest$ac_exeext
11275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11276 (eval $ac_link) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -s conftest$ac_exeext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_lib_dl_dlopen=yes
11287else
11288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011289sed 's/^/| /' conftest.$ac_ext >&5
11290
John Criswell47fdd832003-07-14 16:52:07 +000011291ac_cv_lib_dl_dlopen=no
11292fi
11293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11294LIBS=$ac_check_lib_save_LIBS
11295fi
11296echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11297echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11298if test $ac_cv_lib_dl_dlopen = yes; then
11299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11300else
11301
11302 lt_cv_dlopen="dyld"
11303 lt_cv_dlopen_libs=
11304 lt_cv_dlopen_self=yes
11305
11306fi
11307
11308 ;;
11309
11310 *)
11311 echo "$as_me:$LINENO: checking for shl_load" >&5
11312echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11313if test "${ac_cv_func_shl_load+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 cat >conftest.$ac_ext <<_ACEOF
11317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011323/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011324 which can conflict with char shl_load (); below.
11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 <limits.h> exists even on freestanding compilers. */
11327#ifdef __STDC__
11328# include <limits.h>
11329#else
11330# include <assert.h>
11331#endif
John Criswell47fdd832003-07-14 16:52:07 +000011332/* Override any gcc2 internal prototype to avoid an error. */
11333#ifdef __cplusplus
11334extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011335{
John Criswell47fdd832003-07-14 16:52:07 +000011336#endif
11337/* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11339char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011340/* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343#if defined (__stub_shl_load) || defined (__stub___shl_load)
11344choke me
11345#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011346char (*f) () = shl_load;
11347#endif
11348#ifdef __cplusplus
11349}
John Criswell47fdd832003-07-14 16:52:07 +000011350#endif
11351
John Criswell0c38eaf2003-09-10 15:17:25 +000011352int
11353main ()
11354{
11355return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext conftest$ac_exeext
11361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; }; then
11372 ac_cv_func_shl_load=yes
11373else
11374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011375sed 's/^/| /' conftest.$ac_ext >&5
11376
John Criswell47fdd832003-07-14 16:52:07 +000011377ac_cv_func_shl_load=no
11378fi
11379rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11380fi
11381echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11382echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11383if test $ac_cv_func_shl_load = yes; then
11384 lt_cv_dlopen="shl_load"
11385else
11386 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11387echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11388if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391 ac_check_lib_save_LIBS=$LIBS
11392LIBS="-ldld $LIBS"
11393cat >conftest.$ac_ext <<_ACEOF
11394#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011400
11401/* Override any gcc2 internal prototype to avoid an error. */
11402#ifdef __cplusplus
11403extern "C"
11404#endif
11405/* We use char because int might match the return type of a gcc2
11406 builtin and then its argument prototype would still apply. */
11407char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011408int
11409main ()
11410{
11411shl_load ();
11412 ;
11413 return 0;
11414}
11415_ACEOF
11416rm -f conftest.$ac_objext conftest$ac_exeext
11417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418 (eval $ac_link) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -s conftest$ac_exeext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_lib_dld_shl_load=yes
11429else
11430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011431sed 's/^/| /' conftest.$ac_ext >&5
11432
John Criswell47fdd832003-07-14 16:52:07 +000011433ac_cv_lib_dld_shl_load=no
11434fi
11435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11436LIBS=$ac_check_lib_save_LIBS
11437fi
11438echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11439echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11440if test $ac_cv_lib_dld_shl_load = yes; then
11441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11442else
11443 echo "$as_me:$LINENO: checking for dlopen" >&5
11444echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11445if test "${ac_cv_func_dlopen+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447else
11448 cat >conftest.$ac_ext <<_ACEOF
11449#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011455/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011456 which can conflict with char dlopen (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11459#ifdef __STDC__
11460# include <limits.h>
11461#else
11462# include <assert.h>
11463#endif
John Criswell47fdd832003-07-14 16:52:07 +000011464/* Override any gcc2 internal prototype to avoid an error. */
11465#ifdef __cplusplus
11466extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011467{
John Criswell47fdd832003-07-14 16:52:07 +000011468#endif
11469/* We use char because int might match the return type of a gcc2
11470 builtin and then its argument prototype would still apply. */
11471char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011472/* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
11475#if defined (__stub_dlopen) || defined (__stub___dlopen)
11476choke me
11477#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011478char (*f) () = dlopen;
11479#endif
11480#ifdef __cplusplus
11481}
John Criswell47fdd832003-07-14 16:52:07 +000011482#endif
11483
John Criswell0c38eaf2003-09-10 15:17:25 +000011484int
11485main ()
11486{
11487return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011488 ;
11489 return 0;
11490}
11491_ACEOF
11492rm -f conftest.$ac_objext conftest$ac_exeext
11493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11494 (eval $ac_link) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_func_dlopen=yes
11505else
11506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011507sed 's/^/| /' conftest.$ac_ext >&5
11508
John Criswell47fdd832003-07-14 16:52:07 +000011509ac_cv_func_dlopen=no
11510fi
11511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11512fi
11513echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11514echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11515if test $ac_cv_func_dlopen = yes; then
11516 lt_cv_dlopen="dlopen"
11517else
11518 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11519echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11520if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522else
11523 ac_check_lib_save_LIBS=$LIBS
11524LIBS="-ldl $LIBS"
11525cat >conftest.$ac_ext <<_ACEOF
11526#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011527/* confdefs.h. */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011532
11533/* Override any gcc2 internal prototype to avoid an error. */
11534#ifdef __cplusplus
11535extern "C"
11536#endif
11537/* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11539char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011540int
11541main ()
11542{
11543dlopen ();
11544 ;
11545 return 0;
11546}
11547_ACEOF
11548rm -f conftest.$ac_objext conftest$ac_exeext
11549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -s conftest$ac_exeext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_lib_dl_dlopen=yes
11561else
11562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011563sed 's/^/| /' conftest.$ac_ext >&5
11564
John Criswell47fdd832003-07-14 16:52:07 +000011565ac_cv_lib_dl_dlopen=no
11566fi
11567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568LIBS=$ac_check_lib_save_LIBS
11569fi
11570echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11571echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11572if test $ac_cv_lib_dl_dlopen = yes; then
11573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11574else
11575 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11576echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11577if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11579else
11580 ac_check_lib_save_LIBS=$LIBS
11581LIBS="-lsvld $LIBS"
11582cat >conftest.$ac_ext <<_ACEOF
11583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011584/* confdefs.h. */
11585_ACEOF
11586cat confdefs.h >>conftest.$ac_ext
11587cat >>conftest.$ac_ext <<_ACEOF
11588/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011589
11590/* Override any gcc2 internal prototype to avoid an error. */
11591#ifdef __cplusplus
11592extern "C"
11593#endif
11594/* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11596char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011597int
11598main ()
11599{
11600dlopen ();
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605rm -f conftest.$ac_objext conftest$ac_exeext
11606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_lib_svld_dlopen=yes
11618else
11619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011620sed 's/^/| /' conftest.$ac_ext >&5
11621
John Criswell47fdd832003-07-14 16:52:07 +000011622ac_cv_lib_svld_dlopen=no
11623fi
11624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11628echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11629if test $ac_cv_lib_svld_dlopen = yes; then
11630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11631else
11632 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11633echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11634if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 ac_check_lib_save_LIBS=$LIBS
11638LIBS="-ldld $LIBS"
11639cat >conftest.$ac_ext <<_ACEOF
11640#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011646
11647/* Override any gcc2 internal prototype to avoid an error. */
11648#ifdef __cplusplus
11649extern "C"
11650#endif
11651/* We use char because int might match the return type of a gcc2
11652 builtin and then its argument prototype would still apply. */
11653char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011654int
11655main ()
11656{
11657dld_link ();
11658 ;
11659 return 0;
11660}
11661_ACEOF
11662rm -f conftest.$ac_objext conftest$ac_exeext
11663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }; then
11674 ac_cv_lib_dld_dld_link=yes
11675else
11676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011677sed 's/^/| /' conftest.$ac_ext >&5
11678
John Criswell47fdd832003-07-14 16:52:07 +000011679ac_cv_lib_dld_dld_link=no
11680fi
11681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11682LIBS=$ac_check_lib_save_LIBS
11683fi
11684echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11685echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11686if test $ac_cv_lib_dld_dld_link = yes; then
11687 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11688fi
11689
11690
11691fi
11692
11693
11694fi
11695
11696
11697fi
11698
11699
11700fi
11701
11702
11703fi
11704
11705 ;;
11706 esac
11707
11708 if test "x$lt_cv_dlopen" != xno; then
11709 enable_dlopen=yes
11710 else
11711 enable_dlopen=no
11712 fi
11713
11714 case $lt_cv_dlopen in
11715 dlopen)
11716 save_CPPFLAGS="$CPPFLAGS"
11717 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11718
11719 save_LDFLAGS="$LDFLAGS"
11720 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11721
11722 save_LIBS="$LIBS"
11723 LIBS="$lt_cv_dlopen_libs $LIBS"
11724
11725 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11726echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11727if test "${lt_cv_dlopen_self+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729else
11730 if test "$cross_compiling" = yes; then :
11731 lt_cv_dlopen_self=cross
11732else
11733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11734 lt_status=$lt_dlunknown
11735 cat > conftest.$ac_ext <<EOF
Brian Gaeke26be9c52004-01-13 06:43:16 +000011736#line 11736 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011737#include "confdefs.h"
11738
11739#if HAVE_DLFCN_H
11740#include <dlfcn.h>
11741#endif
11742
11743#include <stdio.h>
11744
11745#ifdef RTLD_GLOBAL
11746# define LT_DLGLOBAL RTLD_GLOBAL
11747#else
11748# ifdef DL_GLOBAL
11749# define LT_DLGLOBAL DL_GLOBAL
11750# else
11751# define LT_DLGLOBAL 0
11752# endif
11753#endif
11754
11755/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11756 find out it does not work in some platform. */
11757#ifndef LT_DLLAZY_OR_NOW
11758# ifdef RTLD_LAZY
11759# define LT_DLLAZY_OR_NOW RTLD_LAZY
11760# else
11761# ifdef DL_LAZY
11762# define LT_DLLAZY_OR_NOW DL_LAZY
11763# else
11764# ifdef RTLD_NOW
11765# define LT_DLLAZY_OR_NOW RTLD_NOW
11766# else
11767# ifdef DL_NOW
11768# define LT_DLLAZY_OR_NOW DL_NOW
11769# else
11770# define LT_DLLAZY_OR_NOW 0
11771# endif
11772# endif
11773# endif
11774# endif
11775#endif
11776
11777#ifdef __cplusplus
11778extern "C" void exit (int);
11779#endif
11780
11781void fnord() { int i=42;}
11782int main ()
11783{
11784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11785 int status = $lt_dlunknown;
11786
11787 if (self)
11788 {
11789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11791 /* dlclose (self); */
11792 }
11793
11794 exit (status);
11795}
11796EOF
11797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) 2>/dev/null
11803 lt_status=$?
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11808 esac
11809 else :
11810 # compilation failed
11811 lt_cv_dlopen_self=no
11812 fi
11813fi
11814rm -fr conftest*
11815
11816
11817fi
11818echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11819echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11820
11821 if test "x$lt_cv_dlopen_self" = xyes; then
11822 LDFLAGS="$LDFLAGS $link_static_flag"
11823 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11824echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11825if test "${lt_cv_dlopen_self_static+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827else
11828 if test "$cross_compiling" = yes; then :
11829 lt_cv_dlopen_self_static=cross
11830else
11831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832 lt_status=$lt_dlunknown
11833 cat > conftest.$ac_ext <<EOF
Brian Gaeke26be9c52004-01-13 06:43:16 +000011834#line 11834 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011835#include "confdefs.h"
11836
11837#if HAVE_DLFCN_H
11838#include <dlfcn.h>
11839#endif
11840
11841#include <stdio.h>
11842
11843#ifdef RTLD_GLOBAL
11844# define LT_DLGLOBAL RTLD_GLOBAL
11845#else
11846# ifdef DL_GLOBAL
11847# define LT_DLGLOBAL DL_GLOBAL
11848# else
11849# define LT_DLGLOBAL 0
11850# endif
11851#endif
11852
11853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854 find out it does not work in some platform. */
11855#ifndef LT_DLLAZY_OR_NOW
11856# ifdef RTLD_LAZY
11857# define LT_DLLAZY_OR_NOW RTLD_LAZY
11858# else
11859# ifdef DL_LAZY
11860# define LT_DLLAZY_OR_NOW DL_LAZY
11861# else
11862# ifdef RTLD_NOW
11863# define LT_DLLAZY_OR_NOW RTLD_NOW
11864# else
11865# ifdef DL_NOW
11866# define LT_DLLAZY_OR_NOW DL_NOW
11867# else
11868# define LT_DLLAZY_OR_NOW 0
11869# endif
11870# endif
11871# endif
11872# endif
11873#endif
11874
11875#ifdef __cplusplus
11876extern "C" void exit (int);
11877#endif
11878
11879void fnord() { int i=42;}
11880int main ()
11881{
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11884
11885 if (self)
11886 {
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11889 /* dlclose (self); */
11890 }
11891
11892 exit (status);
11893}
11894EOF
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11900 (./conftest; exit; ) 2>/dev/null
11901 lt_status=$?
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11906 esac
11907 else :
11908 # compilation failed
11909 lt_cv_dlopen_self_static=no
11910 fi
11911fi
11912rm -fr conftest*
11913
11914
11915fi
11916echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11917echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11918 fi
11919
11920 CPPFLAGS="$save_CPPFLAGS"
11921 LDFLAGS="$save_LDFLAGS"
11922 LIBS="$save_LIBS"
11923 ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self in
11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928 *) enable_dlopen_self=unknown ;;
11929 esac
11930
11931 case $lt_cv_dlopen_self_static in
11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933 *) enable_dlopen_self_static=unknown ;;
11934 esac
11935fi
11936
11937
11938# The else clause should only fire when bootstrapping the
11939# libtool distribution, otherwise you forgot to ship ltmain.sh
11940# with your package, and you will get complaints that there are
11941# no rules to generate ltmain.sh.
11942if test -f "$ltmain"; then
11943 # See if we are running on zsh, and set the options which allow our commands through
11944 # without removal of \ escapes.
11945 if test -n "${ZSH_VERSION+set}" ; then
11946 setopt NO_GLOB_SUBST
11947 fi
11948 # Now quote all the things that may contain metacharacters while being
11949 # careful not to overquote the AC_SUBSTed values. We take copies of the
11950 # variables and quote the copies for generation of the libtool script.
11951 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11952 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11953 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11954 deplibs_check_method reload_flag reload_cmds need_locks \
11955 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11956 lt_cv_sys_global_symbol_to_c_name_address \
11957 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11958 old_postinstall_cmds old_postuninstall_cmds \
11959 compiler_CXX \
11960 CC_CXX \
11961 LD_CXX \
11962 lt_prog_compiler_wl_CXX \
11963 lt_prog_compiler_pic_CXX \
11964 lt_prog_compiler_static_CXX \
11965 lt_prog_compiler_no_builtin_flag_CXX \
11966 export_dynamic_flag_spec_CXX \
11967 thread_safe_flag_spec_CXX \
11968 whole_archive_flag_spec_CXX \
11969 enable_shared_with_static_runtimes_CXX \
11970 old_archive_cmds_CXX \
11971 old_archive_from_new_cmds_CXX \
11972 predep_objects_CXX \
11973 postdep_objects_CXX \
11974 predeps_CXX \
11975 postdeps_CXX \
11976 compiler_lib_search_path_CXX \
11977 archive_cmds_CXX \
11978 archive_expsym_cmds_CXX \
11979 postinstall_cmds_CXX \
11980 postuninstall_cmds_CXX \
11981 old_archive_from_expsyms_cmds_CXX \
11982 allow_undefined_flag_CXX \
11983 no_undefined_flag_CXX \
11984 export_symbols_cmds_CXX \
11985 hardcode_libdir_flag_spec_CXX \
11986 hardcode_libdir_flag_spec_ld_CXX \
11987 hardcode_libdir_separator_CXX \
11988 hardcode_automatic_CXX \
11989 module_cmds_CXX \
11990 module_expsym_cmds_CXX \
11991 lt_cv_prog_compiler_c_o_CXX \
11992 exclude_expsyms_CXX \
11993 include_expsyms_CXX; do
11994
11995 case $var in
11996 old_archive_cmds_CXX | \
11997 old_archive_from_new_cmds_CXX | \
11998 archive_cmds_CXX | \
11999 archive_expsym_cmds_CXX | \
12000 module_cmds_CXX | \
12001 module_expsym_cmds_CXX | \
12002 old_archive_from_expsyms_cmds_CXX | \
12003 export_symbols_cmds_CXX | \
12004 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12005 postinstall_cmds | postuninstall_cmds | \
12006 old_postinstall_cmds | old_postuninstall_cmds | \
12007 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12008 # Double-quote double-evaled strings.
12009 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12010 ;;
12011 *)
12012 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12013 ;;
12014 esac
12015 done
12016
12017 case $lt_echo in
12018 *'\$0 --fallback-echo"')
12019 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12020 ;;
12021 esac
12022
12023cfgfile="$ofile"
12024
12025 cat <<__EOF__ >> "$cfgfile"
12026# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12027
12028# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12029
12030# Shell to use when invoking shell scripts.
12031SHELL=$lt_SHELL
12032
12033# Whether or not to build shared libraries.
12034build_libtool_libs=$enable_shared
12035
12036# Whether or not to build static libraries.
12037build_old_libs=$enable_static
12038
12039# Whether or not to add -lc for building shared libraries.
12040build_libtool_need_lc=$archive_cmds_need_lc_CXX
12041
12042# Whether or not to disallow shared libs when runtime libs are static
12043allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12044
12045# Whether or not to optimize for fast installation.
12046fast_install=$enable_fast_install
12047
12048# The host system.
12049host_alias=$host_alias
12050host=$host
12051
12052# An echo program that does not interpret backslashes.
12053echo=$lt_echo
12054
12055# The archiver.
12056AR=$lt_AR
12057AR_FLAGS=$lt_AR_FLAGS
12058
12059# A C compiler.
12060LTCC=$lt_LTCC
12061
12062# A language-specific compiler.
12063CC=$lt_compiler_CXX
12064
12065# Is the compiler the GNU C compiler?
12066with_gcc=$GCC_CXX
12067
12068# An ERE matcher.
12069EGREP=$lt_EGREP
12070
12071# The linker used to build libraries.
12072LD=$lt_LD_CXX
12073
12074# Whether we need hard or soft links.
12075LN_S=$lt_LN_S
12076
12077# A BSD-compatible nm program.
12078NM=$lt_NM
12079
12080# A symbol stripping program
12081STRIP=$STRIP
12082
12083# Used to examine libraries when file_magic_cmd begins "file"
12084MAGIC_CMD=$MAGIC_CMD
12085
12086# Used on cygwin: DLL creation program.
12087DLLTOOL="$DLLTOOL"
12088
12089# Used on cygwin: object dumper.
12090OBJDUMP="$OBJDUMP"
12091
12092# Used on cygwin: assembler.
12093AS="$AS"
12094
12095# The name of the directory that contains temporary libtool files.
12096objdir=$objdir
12097
12098# How to create reloadable object files.
12099reload_flag=$lt_reload_flag
12100reload_cmds=$lt_reload_cmds
12101
12102# How to pass a linker flag through the compiler.
12103wl=$lt_lt_prog_compiler_wl_CXX
12104
12105# Object file suffix (normally "o").
12106objext="$ac_objext"
12107
12108# Old archive suffix (normally "a").
12109libext="$libext"
12110
12111# Shared library suffix (normally ".so").
12112shrext='$shrext'
12113
12114# Executable file suffix (normally "").
12115exeext="$exeext"
12116
12117# Additional compiler flags for building library objects.
12118pic_flag=$lt_lt_prog_compiler_pic_CXX
12119pic_mode=$pic_mode
12120
12121# What is the maximum length of a command?
12122max_cmd_len=$lt_cv_sys_max_cmd_len
12123
12124# Does compiler simultaneously support -c and -o options?
12125compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12126
12127# Must we lock files when doing compilation ?
12128need_locks=$lt_need_locks
12129
12130# Do we need the lib prefix for modules?
12131need_lib_prefix=$need_lib_prefix
12132
12133# Do we need a version for libraries?
12134need_version=$need_version
12135
12136# Whether dlopen is supported.
12137dlopen_support=$enable_dlopen
12138
12139# Whether dlopen of programs is supported.
12140dlopen_self=$enable_dlopen_self
12141
12142# Whether dlopen of statically linked programs is supported.
12143dlopen_self_static=$enable_dlopen_self_static
12144
12145# Compiler flag to prevent dynamic linking.
12146link_static_flag=$lt_lt_prog_compiler_static_CXX
12147
12148# Compiler flag to turn off builtin functions.
12149no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12150
12151# Compiler flag to allow reflexive dlopens.
12152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12153
12154# Compiler flag to generate shared objects directly from archives.
12155whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12156
12157# Compiler flag to generate thread-safe objects.
12158thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12159
12160# Library versioning type.
12161version_type=$version_type
12162
12163# Format of library name prefix.
12164libname_spec=$lt_libname_spec
12165
12166# List of archive names. First name is the real one, the rest are links.
12167# The last name is the one that the linker finds with -lNAME.
12168library_names_spec=$lt_library_names_spec
12169
12170# The coded name of the library, if different from the real name.
12171soname_spec=$lt_soname_spec
12172
12173# Commands used to build and install an old-style archive.
12174RANLIB=$lt_RANLIB
12175old_archive_cmds=$lt_old_archive_cmds_CXX
12176old_postinstall_cmds=$lt_old_postinstall_cmds
12177old_postuninstall_cmds=$lt_old_postuninstall_cmds
12178
12179# Create an old-style archive from a shared archive.
12180old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12181
12182# Create a temporary old-style archive to link instead of a shared archive.
12183old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12184
12185# Commands used to build and install a shared archive.
12186archive_cmds=$lt_archive_cmds_CXX
12187archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12188postinstall_cmds=$lt_postinstall_cmds
12189postuninstall_cmds=$lt_postuninstall_cmds
12190
12191# Commands used to build a loadable module (assumed same as above if empty)
12192module_cmds=$lt_module_cmds_CXX
12193module_expsym_cmds=$lt_module_expsym_cmds_CXX
12194
12195# Commands to strip libraries.
12196old_striplib=$lt_old_striplib
12197striplib=$lt_striplib
12198
12199# Dependencies to place before the objects being linked to create a
12200# shared library.
12201predep_objects=$lt_predep_objects_CXX
12202
12203# Dependencies to place after the objects being linked to create a
12204# shared library.
12205postdep_objects=$lt_postdep_objects_CXX
12206
12207# Dependencies to place before the objects being linked to create a
12208# shared library.
12209predeps=$lt_predeps_CXX
12210
12211# Dependencies to place after the objects being linked to create a
12212# shared library.
12213postdeps=$lt_postdeps_CXX
12214
12215# The library search path used internally by the compiler when linking
12216# a shared library.
12217compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12218
12219# Method to check whether dependent libraries are shared objects.
12220deplibs_check_method=$lt_deplibs_check_method
12221
12222# Command to use when deplibs_check_method == file_magic.
12223file_magic_cmd=$lt_file_magic_cmd
12224
12225# Flag that allows shared libraries with undefined symbols to be built.
12226allow_undefined_flag=$lt_allow_undefined_flag_CXX
12227
12228# Flag that forces no undefined symbols.
12229no_undefined_flag=$lt_no_undefined_flag_CXX
12230
12231# Commands used to finish a libtool library installation in a directory.
12232finish_cmds=$lt_finish_cmds
12233
12234# Same as above, but a single script fragment to be evaled but not shown.
12235finish_eval=$lt_finish_eval
12236
12237# Take the output of nm and produce a listing of raw symbols and C names.
12238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12239
12240# Transform the output of nm in a proper C declaration
12241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12242
12243# Transform the output of nm in a C name address pair
12244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12245
12246# This is the shared library runtime path variable.
12247runpath_var=$runpath_var
12248
12249# This is the shared library path variable.
12250shlibpath_var=$shlibpath_var
12251
12252# Is shlibpath searched before the hard-coded library search path?
12253shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12254
12255# How to hardcode a shared library path into an executable.
12256hardcode_action=$hardcode_action_CXX
12257
12258# Whether we should hardcode library paths into libraries.
12259hardcode_into_libs=$hardcode_into_libs
12260
12261# Flag to hardcode \$libdir into a binary during linking.
12262# This must work even if \$libdir does not exist.
12263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12264
12265# If ld is used when linking, flag to hardcode \$libdir into
12266# a binary during linking. This must work even if \$libdir does
12267# not exist.
12268hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12269
12270# Whether we need a single -rpath flag with a separated argument.
12271hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12272
12273# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12274# resulting binary.
12275hardcode_direct=$hardcode_direct_CXX
12276
12277# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12278# resulting binary.
12279hardcode_minus_L=$hardcode_minus_L_CXX
12280
12281# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12282# the resulting binary.
12283hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12284
12285# Set to yes if building a shared library automatically hardcodes DIR into the library
12286# and all subsequent libraries and executables linked against it.
12287hardcode_automatic=$hardcode_automatic_CXX
12288
12289# Variables whose values should be saved in libtool wrapper scripts and
12290# restored at relink time.
12291variables_saved_for_relink="$variables_saved_for_relink"
12292
12293# Whether libtool must link a program against all its dependency libraries.
12294link_all_deplibs=$link_all_deplibs_CXX
12295
12296# Compile-time system search path for libraries
12297sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12298
12299# Run-time system search path for libraries
12300sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12301
12302# Fix the shell variable \$srcfile for the compiler.
12303fix_srcfile_path="$fix_srcfile_path_CXX"
12304
12305# Set to yes if exported symbols are required.
12306always_export_symbols=$always_export_symbols_CXX
12307
12308# The commands to list exported symbols.
12309export_symbols_cmds=$lt_export_symbols_cmds_CXX
12310
12311# The commands to extract the exported symbol list from a shared archive.
12312extract_expsyms_cmds=$lt_extract_expsyms_cmds
12313
12314# Symbols that should not be listed in the preloaded symbols.
12315exclude_expsyms=$lt_exclude_expsyms_CXX
12316
12317# Symbols that must always be exported.
12318include_expsyms=$lt_include_expsyms_CXX
12319
12320# ### END LIBTOOL TAG CONFIG: $tagname
12321
12322__EOF__
12323
12324
12325else
12326 # If there is no Makefile yet, we rely on a make rule to execute
12327 # `config.status --recheck' to rerun these tests and create the
12328 # libtool script then.
12329 test -f Makefile && make "$ltmain"
12330fi
12331
12332
12333ac_ext=c
12334ac_cpp='$CPP $CPPFLAGS'
12335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339CC=$lt_save_CC
12340LDCXX=$LD
12341LD=$lt_save_LD
12342GCC=$lt_save_GCC
12343with_gnu_ldcxx=$with_gnu_ld
12344with_gnu_ld=$lt_save_with_gnu_ld
12345lt_cv_path_LDCXX=$lt_cv_path_LD
12346lt_cv_path_LD=$lt_save_path_LD
12347lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12348lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12349
12350 else
12351 tagname=""
12352 fi
12353 ;;
12354
12355 F77)
12356 if test -n "$F77" && test "X$F77" != "Xno"; then
12357
12358ac_ext=f
12359ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12360ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12362
12363
12364archive_cmds_need_lc_F77=no
12365allow_undefined_flag_F77=
12366always_export_symbols_F77=no
12367archive_expsym_cmds_F77=
12368export_dynamic_flag_spec_F77=
12369hardcode_direct_F77=no
12370hardcode_libdir_flag_spec_F77=
12371hardcode_libdir_flag_spec_ld_F77=
12372hardcode_libdir_separator_F77=
12373hardcode_minus_L_F77=no
12374hardcode_automatic_F77=no
12375module_cmds_F77=
12376module_expsym_cmds_F77=
12377link_all_deplibs_F77=unknown
12378old_archive_cmds_F77=$old_archive_cmds
12379no_undefined_flag_F77=
12380whole_archive_flag_spec_F77=
12381enable_shared_with_static_runtimes_F77=no
12382
12383# Source file extension for f77 test sources.
12384ac_ext=f
12385
12386# Object file extension for compiled f77 test sources.
12387objext=o
12388objext_F77=$objext
12389
12390# Code to be used in simple compile tests
12391lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12392
12393# Code to be used in simple link tests
12394lt_simple_link_test_code=" program t\n end\n"
12395
12396# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12397
12398# If no C compiler was specified, use CC.
12399LTCC=${LTCC-"$CC"}
12400
12401# Allow CC to be a program name with arguments.
12402compiler=$CC
12403
12404
12405# Allow CC to be a program name with arguments.
12406lt_save_CC="$CC"
12407CC=${F77-"f77"}
12408compiler=$CC
12409compiler_F77=$CC
12410cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12411
12412echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12413echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12414echo "$as_me:$LINENO: result: $can_build_shared" >&5
12415echo "${ECHO_T}$can_build_shared" >&6
12416
12417echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12418echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12419test "$can_build_shared" = "no" && enable_shared=no
12420
12421# On AIX, shared libraries and static libraries use the same namespace, and
12422# are all built from PIC.
12423case "$host_os" in
12424aix3*)
12425 test "$enable_shared" = yes && enable_static=no
12426 if test -n "$RANLIB"; then
12427 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428 postinstall_cmds='$RANLIB $lib'
12429 fi
12430 ;;
12431aix4*)
12432 test "$enable_shared" = yes && enable_static=no
12433 ;;
12434esac
12435echo "$as_me:$LINENO: result: $enable_shared" >&5
12436echo "${ECHO_T}$enable_shared" >&6
12437
12438echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12439echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12440# Make sure either enable_shared or enable_static is yes.
12441test "$enable_shared" = yes || enable_static=yes
12442echo "$as_me:$LINENO: result: $enable_static" >&5
12443echo "${ECHO_T}$enable_static" >&6
12444
12445test "$ld_shlibs_F77" = no && can_build_shared=no
12446
12447GCC_F77="$G77"
12448LD_F77="$LD"
12449
12450lt_prog_compiler_wl_F77=
12451lt_prog_compiler_pic_F77=
12452lt_prog_compiler_static_F77=
12453
12454echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12455echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12456
12457 if test "$GCC" = yes; then
12458 lt_prog_compiler_wl_F77='-Wl,'
12459 lt_prog_compiler_static_F77='-static'
12460
12461 case $host_os in
12462 aix*)
12463 # All AIX code is PIC.
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_F77='-Bstatic'
12467 fi
12468 ;;
12469
12470 amigaos*)
12471 # FIXME: we need at least 68020 code to build shared libraries, but
12472 # adding the `-m68020' flag to GCC prevents building anything better,
12473 # like `-m68040'.
12474 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12475 ;;
12476
12477 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12478 # PIC is the default for these OSes.
12479 ;;
12480
12481 mingw* | pw32* | os2*)
12482 # This hack is so that the source file can tell whether it is being
12483 # built for inclusion in a dll (and should export symbols for example).
12484 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12485 ;;
12486
12487 darwin* | rhapsody*)
12488 # PIC is the default on this platform
12489 # Common symbols not allowed in MH_DYLIB files
12490 lt_prog_compiler_pic_F77='-fno-common'
12491 ;;
12492
12493 msdosdjgpp*)
12494 # Just because we use GCC doesn't mean we suddenly get shared libraries
12495 # on systems that don't support them.
12496 lt_prog_compiler_can_build_shared_F77=no
12497 enable_shared=no
12498 ;;
12499
12500 sysv4*MP*)
12501 if test -d /usr/nec; then
12502 lt_prog_compiler_pic_F77=-Kconform_pic
12503 fi
12504 ;;
12505
12506 hpux*)
12507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12508 # not for PA HP-UX.
12509 case "$host_cpu" in
12510 hppa*64*|ia64*)
12511 # +Z the default
12512 ;;
12513 *)
12514 lt_prog_compiler_pic_F77='-fPIC'
12515 ;;
12516 esac
12517 ;;
12518
12519 *)
12520 lt_prog_compiler_pic_F77='-fPIC'
12521 ;;
12522 esac
12523 else
12524 # PORTME Check for flag to pass linker flags through the system compiler.
12525 case $host_os in
12526 aix*)
12527 lt_prog_compiler_wl_F77='-Wl,'
12528 if test "$host_cpu" = ia64; then
12529 # AIX 5 now supports IA64 processor
12530 lt_prog_compiler_static_F77='-Bstatic'
12531 else
12532 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12533 fi
12534 ;;
12535
12536 mingw* | pw32* | os2*)
12537 # This hack is so that the source file can tell whether it is being
12538 # built for inclusion in a dll (and should export symbols for example).
12539 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12540 ;;
12541
12542 hpux9* | hpux10* | hpux11*)
12543 lt_prog_compiler_wl_F77='-Wl,'
12544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12545 # not for PA HP-UX.
12546 case "$host_cpu" in
12547 hppa*64*|ia64*)
12548 # +Z the default
12549 ;;
12550 *)
12551 lt_prog_compiler_pic_F77='+Z'
12552 ;;
12553 esac
12554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12555 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12556 ;;
12557
12558 irix5* | irix6* | nonstopux*)
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 # PIC (with -KPIC) is the default.
12561 lt_prog_compiler_static_F77='-non_shared'
12562 ;;
12563
12564 newsos6)
12565 lt_prog_compiler_pic_F77='-KPIC'
12566 lt_prog_compiler_static_F77='-Bstatic'
12567 ;;
12568
12569 linux*)
12570 case $CC in
12571 icc|ecc)
12572 lt_prog_compiler_wl_F77='-Wl,'
12573 lt_prog_compiler_pic_F77='-KPIC'
12574 lt_prog_compiler_static_F77='-static'
12575 ;;
12576 ccc)
12577 lt_prog_compiler_wl_F77='-Wl,'
12578 # All Alpha code is PIC.
12579 lt_prog_compiler_static_F77='-non_shared'
12580 ;;
12581 esac
12582 ;;
12583
12584 osf3* | osf4* | osf5*)
12585 lt_prog_compiler_wl_F77='-Wl,'
12586 # All OSF/1 code is PIC.
12587 lt_prog_compiler_static_F77='-non_shared'
12588 ;;
12589
12590 sco3.2v5*)
12591 lt_prog_compiler_pic_F77='-Kpic'
12592 lt_prog_compiler_static_F77='-dn'
12593 ;;
12594
12595 solaris*)
12596 lt_prog_compiler_wl_F77='-Wl,'
12597 lt_prog_compiler_pic_F77='-KPIC'
12598 lt_prog_compiler_static_F77='-Bstatic'
12599 ;;
12600
12601 sunos4*)
12602 lt_prog_compiler_wl_F77='-Qoption ld '
12603 lt_prog_compiler_pic_F77='-PIC'
12604 lt_prog_compiler_static_F77='-Bstatic'
12605 ;;
12606
12607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12608 lt_prog_compiler_wl_F77='-Wl,'
12609 lt_prog_compiler_pic_F77='-KPIC'
12610 lt_prog_compiler_static_F77='-Bstatic'
12611 ;;
12612
12613 sysv4*MP*)
12614 if test -d /usr/nec ;then
12615 lt_prog_compiler_pic_F77='-Kconform_pic'
12616 lt_prog_compiler_static_F77='-Bstatic'
12617 fi
12618 ;;
12619
12620 uts4*)
12621 lt_prog_compiler_pic_F77='-pic'
12622 lt_prog_compiler_static_F77='-Bstatic'
12623 ;;
12624
12625 *)
12626 lt_prog_compiler_can_build_shared_F77=no
12627 ;;
12628 esac
12629 fi
12630
12631echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12632echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12633
12634#
12635# Check to make sure the PIC flag actually works.
12636#
12637if test -n "$lt_prog_compiler_pic_F77"; then
12638 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12640if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 lt_prog_compiler_pic_works_F77=no
12644 ac_outfile=conftest.$ac_objext
12645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12646 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12647 # Insert the option either (1) after the last *FLAGS variable, or
12648 # (2) before a word containing "conftest.", or (3) at the end.
12649 # Note that $ac_compile itself does not contain backslashes and begins
12650 # with a dollar sign (not a hyphen), so the echo should work correctly.
12651 # The option is referenced via a variable to avoid confusing sed.
12652 lt_compile=`echo "$ac_compile" | $SED \
12653 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12655 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000012656 (eval echo "\"\$as_me:12656: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012657 (eval "$lt_compile" 2>conftest.err)
12658 ac_status=$?
12659 cat conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000012660 echo "$as_me:12660: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012661 if (exit $ac_status) && test -s "$ac_outfile"; then
12662 # The compiler can only warn and ignore the option if not recognized
12663 # So say no if there are warnings
12664 if test ! -s conftest.err; then
12665 lt_prog_compiler_pic_works_F77=yes
12666 fi
12667 fi
12668 $rm conftest*
12669
12670fi
12671echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12672echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12673
12674if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12675 case $lt_prog_compiler_pic_F77 in
12676 "" | " "*) ;;
12677 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12678 esac
12679else
12680 lt_prog_compiler_pic_F77=
12681 lt_prog_compiler_can_build_shared_F77=no
12682fi
12683
12684fi
12685case "$host_os" in
12686 # For platforms which do not support PIC, -DPIC is meaningless:
12687 *djgpp*)
12688 lt_prog_compiler_pic_F77=
12689 ;;
12690 *)
12691 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12692 ;;
12693esac
12694
12695echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12696echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12697if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700 lt_cv_prog_compiler_c_o_F77=no
12701 $rm -r conftest 2>/dev/null
12702 mkdir conftest
12703 cd conftest
12704 mkdir out
12705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12706
12707 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12708 # that will create temporary files in the current directory regardless of
12709 # the output directory. Thus, making CWD read-only will cause this test
12710 # to fail, enabling locking or at least warning the user not to do parallel
12711 # builds.
12712 chmod -w .
12713
12714 lt_compiler_flag="-o out/conftest2.$ac_objext"
12715 # Insert the option either (1) after the last *FLAGS variable, or
12716 # (2) before a word containing "conftest.", or (3) at the end.
12717 # Note that $ac_compile itself does not contain backslashes and begins
12718 # with a dollar sign (not a hyphen), so the echo should work correctly.
12719 lt_compile=`echo "$ac_compile" | $SED \
12720 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000012723 (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012724 (eval "$lt_compile" 2>out/conftest.err)
12725 ac_status=$?
12726 cat out/conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000012727 echo "$as_me:12727: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729 then
12730 # The compiler can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 if test ! -s out/conftest.err; then
12733 lt_cv_prog_compiler_c_o_F77=yes
12734 fi
12735 fi
12736 chmod u+w .
12737 $rm conftest* out/*
12738 rmdir out
12739 cd ..
12740 rmdir conftest
12741 $rm conftest*
12742
12743fi
12744echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12745echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12746
12747
12748hard_links="nottested"
12749if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12750 # do not overwrite the value of need_locks provided by the user
12751 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12752echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12753 hard_links=yes
12754 $rm conftest*
12755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12756 touch conftest.a
12757 ln conftest.a conftest.b 2>&5 || hard_links=no
12758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12759 echo "$as_me:$LINENO: result: $hard_links" >&5
12760echo "${ECHO_T}$hard_links" >&6
12761 if test "$hard_links" = no; then
12762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12763echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12764 need_locks=warn
12765 fi
12766else
12767 need_locks=no
12768fi
12769
12770echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12771echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12772
12773 runpath_var=
12774 allow_undefined_flag_F77=
12775 enable_shared_with_static_runtimes_F77=no
12776 archive_cmds_F77=
12777 archive_expsym_cmds_F77=
12778 old_archive_From_new_cmds_F77=
12779 old_archive_from_expsyms_cmds_F77=
12780 export_dynamic_flag_spec_F77=
12781 whole_archive_flag_spec_F77=
12782 thread_safe_flag_spec_F77=
12783 hardcode_libdir_flag_spec_F77=
12784 hardcode_libdir_flag_spec_ld_F77=
12785 hardcode_libdir_separator_F77=
12786 hardcode_direct_F77=no
12787 hardcode_minus_L_F77=no
12788 hardcode_shlibpath_var_F77=unsupported
12789 link_all_deplibs_F77=unknown
12790 hardcode_automatic_F77=no
12791 module_cmds_F77=
12792 module_expsym_cmds_F77=
12793 always_export_symbols_F77=no
12794 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12795 # include_expsyms should be a list of space-separated symbols to be *always*
12796 # included in the symbol list
12797 include_expsyms_F77=
12798 # exclude_expsyms can be an extended regexp of symbols to exclude
12799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12801 # as well as any symbol that contains `d'.
12802 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12804 # platforms (ab)use it in PIC code, but their linkers get confused if
12805 # the symbol is explicitly referenced. Since portable code cannot
12806 # rely on this symbol name, it's probably fine to never include it in
12807 # preloaded symbol tables.
12808 extract_expsyms_cmds=
12809
12810 case $host_os in
12811 cygwin* | mingw* | pw32*)
12812 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12813 # When not using gcc, we currently assume that we are using
12814 # Microsoft Visual C++.
12815 if test "$GCC" != yes; then
12816 with_gnu_ld=no
12817 fi
12818 ;;
12819 openbsd*)
12820 with_gnu_ld=no
12821 ;;
12822 esac
12823
12824 ld_shlibs_F77=yes
12825 if test "$with_gnu_ld" = yes; then
12826 # If archive_cmds runs LD, not CC, wlarc should be empty
12827 wlarc='${wl}'
12828
12829 # See if GNU ld supports shared libraries.
12830 case $host_os in
12831 aix3* | aix4* | aix5*)
12832 # On AIX/PPC, the GNU linker is very broken
12833 if test "$host_cpu" != ia64; then
12834 ld_shlibs_F77=no
12835 cat <<EOF 1>&2
12836
12837*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12838*** to be unable to reliably create shared libraries on AIX.
12839*** Therefore, libtool is disabling shared libraries support. If you
12840*** really care for shared libraries, you may want to modify your PATH
12841*** so that a non-GNU linker is found, and then restart.
12842
12843EOF
12844 fi
12845 ;;
12846
12847 amigaos*)
12848 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)'
12849 hardcode_libdir_flag_spec_F77='-L$libdir'
12850 hardcode_minus_L_F77=yes
12851
12852 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12853 # that the semantics of dynamic libraries on AmigaOS, at least up
12854 # to version 4, is to share data among multiple programs linked
12855 # with the same dynamic library. Since this doesn't match the
12856 # behavior of shared libraries on other platforms, we can't use
12857 # them.
12858 ld_shlibs_F77=no
12859 ;;
12860
12861 beos*)
12862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12863 allow_undefined_flag_F77=unsupported
12864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12865 # support --undefined. This deserves some investigation. FIXME
12866 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12867 else
12868 ld_shlibs_F77=no
12869 fi
12870 ;;
12871
12872 cygwin* | mingw* | pw32*)
12873 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12874 # as there is no search path for DLLs.
12875 hardcode_libdir_flag_spec_F77='-L$libdir'
12876 allow_undefined_flag_F77=unsupported
12877 always_export_symbols_F77=no
12878 enable_shared_with_static_runtimes_F77=yes
12879 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12880
12881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12883 # If the export-symbols file already is a .def file (1st line
12884 # is EXPORTS), use it as is; otherwise, prepend...
12885 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12886 cp $export_symbols $output_objdir/$soname.def;
12887 else
12888 echo EXPORTS > $output_objdir/$soname.def;
12889 cat $export_symbols >> $output_objdir/$soname.def;
12890 fi~
12891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12892 else
12893 ld_shlibs=no
12894 fi
12895 ;;
12896
12897 netbsd*)
12898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12899 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12900 wlarc=
12901 else
12902 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12903 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12904 fi
12905 ;;
12906
12907 solaris* | sysv5*)
12908 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12909 ld_shlibs_F77=no
12910 cat <<EOF 1>&2
12911
12912*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12913*** create shared libraries on Solaris systems. Therefore, libtool
12914*** is disabling shared libraries support. We urge you to upgrade GNU
12915*** binutils to release 2.9.1 or newer. Another option is to modify
12916*** your PATH or compiler configuration so that the native linker is
12917*** used, and then restart.
12918
12919EOF
12920 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12923 else
12924 ld_shlibs_F77=no
12925 fi
12926 ;;
12927
12928 sunos4*)
12929 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12930 wlarc=
12931 hardcode_direct_F77=yes
12932 hardcode_shlibpath_var_F77=no
12933 ;;
12934
12935 *)
12936 if $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 esac
12944
12945 if test "$ld_shlibs_F77" = yes; then
12946 runpath_var=LD_RUN_PATH
12947 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12948 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12949 # ancient GNU ld didn't support --whole-archive et. al.
12950 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12951 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12952 else
12953 whole_archive_flag_spec_F77=
12954 fi
12955 fi
12956 else
12957 # PORTME fill in a description of your system's linker (not GNU ld)
12958 case $host_os in
12959 aix3*)
12960 allow_undefined_flag_F77=unsupported
12961 always_export_symbols_F77=yes
12962 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'
12963 # Note: this linker hardcodes the directories in LIBPATH if there
12964 # are no directories specified by -L.
12965 hardcode_minus_L_F77=yes
12966 if test "$GCC" = yes && test -z "$link_static_flag"; then
12967 # Neither direct hardcoding nor static linking is supported with a
12968 # broken collect2.
12969 hardcode_direct_F77=unsupported
12970 fi
12971 ;;
12972
12973 aix4* | aix5*)
12974 if test "$host_cpu" = ia64; then
12975 # On IA64, the linker does run time linking by default, so we don't
12976 # have to do anything special.
12977 aix_use_runtimelinking=no
12978 exp_sym_flag='-Bexport'
12979 no_entry_flag=""
12980 else
12981 # If we're using GNU nm, then we don't want the "-C" option.
12982 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12983 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12984 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'
12985 else
12986 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'
12987 fi
12988 aix_use_runtimelinking=no
12989
12990 # Test if we are trying to use run time linking or normal
12991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992 # need to do runtime linking.
12993 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12994 for ld_flag in $LDFLAGS; do
12995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12996 aix_use_runtimelinking=yes
12997 break
12998 fi
12999 done
13000 esac
13001
13002 exp_sym_flag='-bexport'
13003 no_entry_flag='-bnoentry'
13004 fi
13005
13006 # When large executables or shared objects are built, AIX ld can
13007 # have problems creating the table of contents. If linking a library
13008 # or program results in "error TOC overflow" add -mminimal-toc to
13009 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13010 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13011
13012 archive_cmds_F77=''
13013 hardcode_direct_F77=yes
13014 hardcode_libdir_separator_F77=':'
13015 link_all_deplibs_F77=yes
13016
13017 if test "$GCC" = yes; then
13018 case $host_os in aix4.012|aix4.012.*)
13019 # We only want to do this on AIX 4.2 and lower, the check
13020 # below for broken collect2 doesn't work under 4.3+
13021 collect2name=`${CC} -print-prog-name=collect2`
13022 if test -f "$collect2name" && \
13023 strings "$collect2name" | grep resolve_lib_name >/dev/null
13024 then
13025 # We have reworked collect2
13026 hardcode_direct_F77=yes
13027 else
13028 # We have old collect2
13029 hardcode_direct_F77=unsupported
13030 # It fails to find uninstalled libraries when the uninstalled
13031 # path is not listed in the libpath. Setting hardcode_minus_L
13032 # to unsupported forces relinking
13033 hardcode_minus_L_F77=yes
13034 hardcode_libdir_flag_spec_F77='-L$libdir'
13035 hardcode_libdir_separator_F77=
13036 fi
13037 esac
13038 shared_flag='-shared'
13039 else
13040 # not using gcc
13041 if test "$host_cpu" = ia64; then
13042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13043 # chokes on -Wl,-G. The following line is correct:
13044 shared_flag='-G'
13045 else
13046 if test "$aix_use_runtimelinking" = yes; then
13047 shared_flag='${wl}-G'
13048 else
13049 shared_flag='${wl}-bM:SRE'
13050 fi
13051 fi
13052 fi
13053
13054 # It seems that -bexpall does not export symbols beginning with
13055 # underscore (_), so it is better to generate a list of symbols to export.
13056 always_export_symbols_F77=yes
13057 if test "$aix_use_runtimelinking" = yes; then
13058 # Warning - without using the other runtime loading flags (-brtl),
13059 # -berok will link without error, but may produce a broken library.
13060 allow_undefined_flag_F77='-berok'
13061 # Determine the default libpath from the value encoded in an empty executable.
13062 cat >conftest.$ac_ext <<_ACEOF
13063 program main
13064
13065 end
13066_ACEOF
13067rm -f conftest.$ac_objext conftest$ac_exeext
13068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069 (eval $ac_link) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13076 ac_status=$?
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079
13080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13081}'`
13082# Check for a 64-bit object if we didn't find anything.
13083if 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; }
13084}'`; fi
13085else
13086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013087sed 's/^/| /' conftest.$ac_ext >&5
13088
John Criswell47fdd832003-07-14 16:52:07 +000013089fi
13090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13092
13093 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13094 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"
13095 else
13096 if test "$host_cpu" = ia64; then
13097 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13098 allow_undefined_flag_F77="-z nodefs"
13099 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"
13100 else
13101 # Determine the default libpath from the value encoded in an empty executable.
13102 cat >conftest.$ac_ext <<_ACEOF
13103 program main
13104
13105 end
13106_ACEOF
13107rm -f conftest.$ac_objext conftest$ac_exeext
13108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119
13120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13121}'`
13122# Check for a 64-bit object if we didn't find anything.
13123if 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; }
13124}'`; fi
13125else
13126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013127sed 's/^/| /' conftest.$ac_ext >&5
13128
John Criswell47fdd832003-07-14 16:52:07 +000013129fi
13130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13132
13133 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13134 # Warning - without using the other run time loading flags,
13135 # -berok will link without error, but may produce a broken library.
13136 no_undefined_flag_F77=' ${wl}-bernotok'
13137 allow_undefined_flag_F77=' ${wl}-berok'
13138 # -bexpall does not export symbols beginning with underscore (_)
13139 always_export_symbols_F77=yes
13140 # Exported symbols can be pulled into shared objects from archives
13141 whole_archive_flag_spec_F77=' '
13142 archive_cmds_need_lc_F77=yes
13143 # This is similar to how AIX traditionally builds it's shared libraries.
13144 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'
13145 fi
13146 fi
13147 ;;
13148
13149 amigaos*)
13150 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)'
13151 hardcode_libdir_flag_spec_F77='-L$libdir'
13152 hardcode_minus_L_F77=yes
13153 # see comment about different semantics on the GNU ld section
13154 ld_shlibs_F77=no
13155 ;;
13156
13157 bsdi4*)
13158 export_dynamic_flag_spec_F77=-rdynamic
13159 ;;
13160
13161 cygwin* | mingw* | pw32*)
13162 # When not using gcc, we currently assume that we are using
13163 # Microsoft Visual C++.
13164 # hardcode_libdir_flag_spec is actually meaningless, as there is
13165 # no search path for DLLs.
13166 hardcode_libdir_flag_spec_F77=' '
13167 allow_undefined_flag_F77=unsupported
13168 # Tell ltmain to make .lib files, not .a files.
13169 libext=lib
13170 # Tell ltmain to make .dll files, not .so files.
13171 shrext=".dll"
13172 # FIXME: Setting linknames here is a bad hack.
13173 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13174 # The linker will automatically build a .lib file if we build a DLL.
13175 old_archive_From_new_cmds_F77='true'
13176 # FIXME: Should let the user specify the lib program.
13177 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13178 fix_srcfile_path='`cygpath -w "$srcfile"`'
13179 enable_shared_with_static_runtimes_F77=yes
13180 ;;
13181
13182 darwin* | rhapsody*)
13183 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13184 archive_cmds_need_lc_F77=no
13185 case "$host_os" in
13186 rhapsody* | darwin1.[012])
13187 allow_undefined_flag_F77='-undefined suppress'
13188 ;;
13189 *) # Darwin 1.3 on
13190 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13191 ;;
13192 esac
13193 # FIXME: Relying on posixy $() will cause problems for
13194 # cross-compilation, but unfortunately the echo tests do not
13195 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13196 # `"' quotes if we put them in here... so don't!
13197 lt_int_apple_cc_single_mod=no
13198 output_verbose_link_cmd='echo'
13199 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13200 lt_int_apple_cc_single_mod=yes
13201 fi
13202 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13203 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13204 else
13205 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'
13206 fi
13207 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13210 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}'
13211 else
13212 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}'
13213 fi
13214 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}'
13215 hardcode_direct_F77=no
13216 hardcode_automatic_F77=yes
13217 hardcode_shlibpath_var_F77=unsupported
13218 whole_archive_flag_spec_F77='-all_load $convenience'
13219 link_all_deplibs_F77=yes
13220 fi
13221 ;;
13222
13223 dgux*)
13224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13225 hardcode_libdir_flag_spec_F77='-L$libdir'
13226 hardcode_shlibpath_var_F77=no
13227 ;;
13228
13229 freebsd1*)
13230 ld_shlibs_F77=no
13231 ;;
13232
13233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13234 # support. Future versions do this automatically, but an explicit c++rt0.o
13235 # does not break anything, and helps significantly (at the cost of a little
13236 # extra space).
13237 freebsd2.2*)
13238 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13239 hardcode_libdir_flag_spec_F77='-R$libdir'
13240 hardcode_direct_F77=yes
13241 hardcode_shlibpath_var_F77=no
13242 ;;
13243
13244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13245 freebsd2*)
13246 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13247 hardcode_direct_F77=yes
13248 hardcode_minus_L_F77=yes
13249 hardcode_shlibpath_var_F77=no
13250 ;;
13251
13252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13253 freebsd*)
13254 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13255 hardcode_libdir_flag_spec_F77='-R$libdir'
13256 hardcode_direct_F77=yes
13257 hardcode_shlibpath_var_F77=no
13258 ;;
13259
13260 hpux9*)
13261 if test "$GCC" = yes; then
13262 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'
13263 else
13264 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'
13265 fi
13266 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13267 hardcode_libdir_separator_F77=:
13268 hardcode_direct_F77=yes
13269
13270 # hardcode_minus_L: Not really in the search PATH,
13271 # but as the default location of the library.
13272 hardcode_minus_L_F77=yes
13273 export_dynamic_flag_spec_F77='${wl}-E'
13274 ;;
13275
13276 hpux10* | hpux11*)
13277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13278 case "$host_cpu" in
13279 hppa*64*|ia64*)
13280 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13281 ;;
13282 *)
13283 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13284 ;;
13285 esac
13286 else
13287 case "$host_cpu" in
13288 hppa*64*|ia64*)
13289 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13290 ;;
13291 *)
13292 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13293 ;;
13294 esac
13295 fi
13296 if test "$with_gnu_ld" = no; then
13297 case "$host_cpu" in
13298 hppa*64*)
13299 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13300 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13301 hardcode_libdir_separator_F77=:
13302 hardcode_direct_F77=no
13303 hardcode_shlibpath_var_F77=no
13304 ;;
13305 ia64*)
13306 hardcode_libdir_flag_spec_F77='-L$libdir'
13307 hardcode_direct_F77=no
13308 hardcode_shlibpath_var_F77=no
13309
13310 # hardcode_minus_L: Not really in the search PATH,
13311 # but as the default location of the library.
13312 hardcode_minus_L_F77=yes
13313 ;;
13314 *)
13315 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13316 hardcode_libdir_separator_F77=:
13317 hardcode_direct_F77=yes
13318 export_dynamic_flag_spec_F77='${wl}-E'
13319
13320 # hardcode_minus_L: Not really in the search PATH,
13321 # but as the default location of the library.
13322 hardcode_minus_L_F77=yes
13323 ;;
13324 esac
13325 fi
13326 ;;
13327
13328 irix5* | irix6* | nonstopux*)
13329 if test "$GCC" = yes; then
13330 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'
13331 else
13332 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'
13333 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13334 fi
13335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_F77=:
13337 link_all_deplibs_F77=yes
13338 ;;
13339
13340 netbsd*)
13341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13343 else
13344 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13345 fi
13346 hardcode_libdir_flag_spec_F77='-R$libdir'
13347 hardcode_direct_F77=yes
13348 hardcode_shlibpath_var_F77=no
13349 ;;
13350
13351 newsos6)
13352 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13353 hardcode_direct_F77=yes
13354 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13355 hardcode_libdir_separator_F77=:
13356 hardcode_shlibpath_var_F77=no
13357 ;;
13358
13359 openbsd*)
13360 hardcode_direct_F77=yes
13361 hardcode_shlibpath_var_F77=no
13362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13363 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13364 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13365 export_dynamic_flag_spec_F77='${wl}-E'
13366 else
13367 case $host_os in
13368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_libdir_flag_spec_F77='-R$libdir'
13371 ;;
13372 *)
13373 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13374 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13375 ;;
13376 esac
13377 fi
13378 ;;
13379
13380 os2*)
13381 hardcode_libdir_flag_spec_F77='-L$libdir'
13382 hardcode_minus_L_F77=yes
13383 allow_undefined_flag_F77=unsupported
13384 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'
13385 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13386 ;;
13387
13388 osf3*)
13389 if test "$GCC" = yes; then
13390 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13391 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'
13392 else
13393 allow_undefined_flag_F77=' -expect_unresolved \*'
13394 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'
13395 fi
13396 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13397 hardcode_libdir_separator_F77=:
13398 ;;
13399
13400 osf4* | osf5*) # as osf3* with the addition of -msym flag
13401 if test "$GCC" = yes; then
13402 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13403 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'
13404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13405 else
13406 allow_undefined_flag_F77=' -expect_unresolved \*'
13407 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'
13408 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~
13409 $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'
13410
13411 # Both c and cxx compiler support -rpath directly
13412 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13413 fi
13414 hardcode_libdir_separator_F77=:
13415 ;;
13416
13417 sco3.2v5*)
13418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13419 hardcode_shlibpath_var_F77=no
13420 export_dynamic_flag_spec_F77='${wl}-Bexport'
13421 runpath_var=LD_RUN_PATH
13422 hardcode_runpath_var=yes
13423 ;;
13424
13425 solaris*)
13426 no_undefined_flag_F77=' -z text'
13427 if test "$GCC" = yes; then
13428 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13429 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13431 else
13432 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13433 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13435 fi
13436 hardcode_libdir_flag_spec_F77='-R$libdir'
13437 hardcode_shlibpath_var_F77=no
13438 case $host_os in
13439 solaris2.[0-5] | solaris2.[0-5].*) ;;
13440 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13441 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13442 esac
13443 link_all_deplibs_F77=yes
13444 ;;
13445
13446 sunos4*)
13447 if test "x$host_vendor" = xsequent; then
13448 # Use $CC to link under sequent, because it throws in some extra .o
13449 # files that make .init and .fini sections work.
13450 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13451 else
13452 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13453 fi
13454 hardcode_libdir_flag_spec_F77='-L$libdir'
13455 hardcode_direct_F77=yes
13456 hardcode_minus_L_F77=yes
13457 hardcode_shlibpath_var_F77=no
13458 ;;
13459
13460 sysv4)
13461 case $host_vendor in
13462 sni)
13463 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 hardcode_direct_F77=yes # is this really true???
13465 ;;
13466 siemens)
13467 ## LD is ld it makes a PLAMLIB
13468 ## CC just makes a GrossModule.
13469 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13470 reload_cmds_F77='$CC -r -o $output$reload_objs'
13471 hardcode_direct_F77=no
13472 ;;
13473 motorola)
13474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13476 ;;
13477 esac
13478 runpath_var='LD_RUN_PATH'
13479 hardcode_shlibpath_var_F77=no
13480 ;;
13481
13482 sysv4.3*)
13483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 hardcode_shlibpath_var_F77=no
13485 export_dynamic_flag_spec_F77='-Bexport'
13486 ;;
13487
13488 sysv4*MP*)
13489 if test -d /usr/nec; then
13490 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_shlibpath_var_F77=no
13492 runpath_var=LD_RUN_PATH
13493 hardcode_runpath_var=yes
13494 ld_shlibs_F77=yes
13495 fi
13496 ;;
13497
13498 sysv4.2uw2*)
13499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13500 hardcode_direct_F77=yes
13501 hardcode_minus_L_F77=no
13502 hardcode_shlibpath_var_F77=no
13503 hardcode_runpath_var=yes
13504 runpath_var=LD_RUN_PATH
13505 ;;
13506
13507 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13508 no_undefined_flag_F77='${wl}-z ${wl}text'
13509 if test "$GCC" = yes; then
13510 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13511 else
13512 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13513 fi
13514 runpath_var='LD_RUN_PATH'
13515 hardcode_shlibpath_var_F77=no
13516 ;;
13517
13518 sysv5*)
13519 no_undefined_flag_F77=' -z text'
13520 # $CC -shared without GNU ld will not create a library from C++
13521 # object files and a static libstdc++, better avoid it by now
13522 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13524 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13525 hardcode_libdir_flag_spec_F77=
13526 hardcode_shlibpath_var_F77=no
13527 runpath_var='LD_RUN_PATH'
13528 ;;
13529
13530 uts4*)
13531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_libdir_flag_spec_F77='-L$libdir'
13533 hardcode_shlibpath_var_F77=no
13534 ;;
13535
13536 *)
13537 ld_shlibs_F77=no
13538 ;;
13539 esac
13540 fi
13541
13542echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13543echo "${ECHO_T}$ld_shlibs_F77" >&6
13544test "$ld_shlibs_F77" = no && can_build_shared=no
13545
13546variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13547if test "$GCC" = yes; then
13548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13549fi
13550
13551#
13552# Do we need to explicitly link libc?
13553#
13554case "x$archive_cmds_need_lc_F77" in
13555x|xyes)
13556 # Assume -lc should be added
13557 archive_cmds_need_lc_F77=yes
13558
13559 if test "$enable_shared" = yes && test "$GCC" = yes; then
13560 case $archive_cmds_F77 in
13561 *'~'*)
13562 # FIXME: we may have to deal with multi-command sequences.
13563 ;;
13564 '$CC '*)
13565 # Test whether the compiler implicitly links with -lc since on some
13566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13567 # to ld, don't add -lc before -lgcc.
13568 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13570 $rm conftest*
13571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13572
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } 2>conftest.err; then
13578 soname=conftest
13579 lib=conftest
13580 libobjs=conftest.$ac_objext
13581 deplibs=
13582 wl=$lt_prog_compiler_wl_F77
13583 compiler_flags=-v
13584 linker_flags=-v
13585 verstring=
13586 output_objdir=.
13587 libname=conftest
13588 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13589 allow_undefined_flag_F77=
13590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13591 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }
13595 then
13596 archive_cmds_need_lc_F77=no
13597 else
13598 archive_cmds_need_lc_F77=yes
13599 fi
13600 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13601 else
13602 cat conftest.err 1>&5
13603 fi
13604 $rm conftest*
13605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13606echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13607 ;;
13608 esac
13609 fi
13610 ;;
13611esac
13612
13613echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13614echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13615hardcode_action_F77=
13616if test -n "$hardcode_libdir_flag_spec_F77" || \
13617 test -n "$runpath_var F77" || \
13618 test "X$hardcode_automatic_F77"="Xyes" ; then
13619
13620 # We can hardcode non-existant directories.
13621 if test "$hardcode_direct_F77" != no &&
13622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13623 # have to relink, otherwise we might link with an installed library
13624 # when we should be linking with a yet-to-be-installed one
13625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13626 test "$hardcode_minus_L_F77" != no; then
13627 # Linking always hardcodes the temporary library directory.
13628 hardcode_action_F77=relink
13629 else
13630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13631 hardcode_action_F77=immediate
13632 fi
13633else
13634 # We cannot hardcode anything, or else we can only hardcode existing
13635 # directories.
13636 hardcode_action_F77=unsupported
13637fi
13638echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13639echo "${ECHO_T}$hardcode_action_F77" >&6
13640
13641if test "$hardcode_action_F77" = relink; then
13642 # Fast installation is not supported
13643 enable_fast_install=no
13644elif test "$shlibpath_overrides_runpath" = yes ||
13645 test "$enable_shared" = no; then
13646 # Fast installation is not necessary
13647 enable_fast_install=needless
13648fi
13649
13650striplib=
13651old_striplib=
13652echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13653echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13654if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13657 echo "$as_me:$LINENO: result: yes" >&5
13658echo "${ECHO_T}yes" >&6
13659else
13660# FIXME - insert some real tests, host_os isn't really good enough
13661 case $host_os in
13662 darwin*)
13663 if test -n "$STRIP" ; then
13664 striplib="$STRIP -x"
13665 echo "$as_me:$LINENO: result: yes" >&5
13666echo "${ECHO_T}yes" >&6
13667 else
13668 echo "$as_me:$LINENO: result: no" >&5
13669echo "${ECHO_T}no" >&6
13670fi
13671 ;;
13672 *)
13673 echo "$as_me:$LINENO: result: no" >&5
13674echo "${ECHO_T}no" >&6
13675 ;;
13676 esac
13677fi
13678
13679echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13680echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13681library_names_spec=
13682libname_spec='lib$name'
13683soname_spec=
13684shrext=".so"
13685postinstall_cmds=
13686postuninstall_cmds=
13687finish_cmds=
13688finish_eval=
13689shlibpath_var=
13690shlibpath_overrides_runpath=unknown
13691version_type=none
13692dynamic_linker="$host_os ld.so"
13693sys_lib_dlsearch_path_spec="/lib /usr/lib"
13694if test "$GCC" = yes; then
13695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13697 # if the path contains ";" then we assume it to be the separator
13698 # otherwise default to the standard path separator (i.e. ":") - it is
13699 # assumed that no part of a normal pathname contains ";" but that should
13700 # okay in the real world where ";" in dirpaths is itself problematic.
13701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13702 else
13703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13704 fi
13705else
13706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13707fi
13708need_lib_prefix=unknown
13709hardcode_into_libs=no
13710
13711# when you set need_version to no, make sure it does not cause -set_version
13712# flags to be left without arguments
13713need_version=unknown
13714
13715case $host_os in
13716aix3*)
13717 version_type=linux
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13719 shlibpath_var=LIBPATH
13720
13721 # AIX 3 has no versioning support, so we append a major version to the name.
13722 soname_spec='${libname}${release}${shared_ext}$major'
13723 ;;
13724
13725aix4* | aix5*)
13726 version_type=linux
13727 need_lib_prefix=no
13728 need_version=no
13729 hardcode_into_libs=yes
13730 if test "$host_cpu" = ia64; then
13731 # AIX 5 supports IA64
13732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13733 shlibpath_var=LD_LIBRARY_PATH
13734 else
13735 # With GCC up to 2.95.x, collect2 would create an import file
13736 # for dependence libraries. The import file would start with
13737 # the line `#! .'. This would cause the generated library to
13738 # depend on `.', always an invalid library. This was fixed in
13739 # development snapshots of GCC prior to 3.0.
13740 case $host_os in
13741 aix4 | aix4.[01] | aix4.[01].*)
13742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13743 echo ' yes '
13744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13745 :
13746 else
13747 can_build_shared=no
13748 fi
13749 ;;
13750 esac
13751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13752 # soname into executable. Probably we can add versioning support to
13753 # collect2, so additional links can be useful in future.
13754 if test "$aix_use_runtimelinking" = yes; then
13755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13756 # instead of lib<name>.a to let people know that these are not
13757 # typical AIX shared libraries.
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759 else
13760 # We preserve .a as extension for shared libraries through AIX4.2
13761 # and later when we are not doing run time linking.
13762 library_names_spec='${libname}${release}.a $libname.a'
13763 soname_spec='${libname}${release}${shared_ext}$major'
13764 fi
13765 shlibpath_var=LIBPATH
13766 fi
13767 ;;
13768
13769amigaos*)
13770 library_names_spec='$libname.ixlibrary $libname.a'
13771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13772 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'
13773 ;;
13774
13775beos*)
13776 library_names_spec='${libname}${shared_ext}'
13777 dynamic_linker="$host_os ld.so"
13778 shlibpath_var=LIBRARY_PATH
13779 ;;
13780
13781bsdi4*)
13782 version_type=linux
13783 need_version=no
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13787 shlibpath_var=LD_LIBRARY_PATH
13788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13790 # the default ld.so.conf also contains /usr/contrib/lib and
13791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13792 # libtool to hard-code these into programs
13793 ;;
13794
13795cygwin* | mingw* | pw32*)
13796 version_type=windows
13797 shrext=".dll"
13798 need_version=no
13799 need_lib_prefix=no
13800
13801 case $GCC,$host_os in
13802 yes,cygwin* | yes,mingw* | yes,pw32*)
13803 library_names_spec='$libname.dll.a'
13804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13805 postinstall_cmds='base_file=`basename \${file}`~
13806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13807 dldir=$destdir/`dirname \$dlpath`~
13808 test -d \$dldir || mkdir -p \$dldir~
13809 $install_prog $dir/$dlname \$dldir/$dlname'
13810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13811 dlpath=$dir/\$dldll~
13812 $rm \$dlpath'
13813 shlibpath_overrides_runpath=yes
13814
13815 case $host_os in
13816 cygwin*)
13817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13819 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13820 ;;
13821 mingw*)
13822 # MinGW DLLs use traditional 'lib' prefix
13823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13826 # It is most probably a Windows format PATH printed by
13827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13828 # path with ; separators, and with drive letters. We can handle the
13829 # drive letters (cygwin fileutils understands them), so leave them,
13830 # especially as we might pass files found there to a mingw objdump,
13831 # which wouldn't understand a cygwinified path. Ahh.
13832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13833 else
13834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13835 fi
13836 ;;
13837 pw32*)
13838 # pw32 DLLs use 'pw' prefix rather than 'lib'
13839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13840 ;;
13841 esac
13842 ;;
13843
13844 *)
13845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13846 ;;
13847 esac
13848 dynamic_linker='Win32 ld.exe'
13849 # FIXME: first we should search . and the directory the executable is in
13850 shlibpath_var=PATH
13851 ;;
13852
13853darwin* | rhapsody*)
13854 dynamic_linker="$host_os dyld"
13855 version_type=darwin
13856 need_lib_prefix=no
13857 need_version=no
13858 # FIXME: Relying on posixy $() will cause problems for
13859 # cross-compilation, but unfortunately the echo tests do not
13860 # yet detect zsh echo's removal of \ escapes.
13861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13862 soname_spec='${libname}${release}${major}$shared_ext'
13863 shlibpath_overrides_runpath=yes
13864 shlibpath_var=DYLD_LIBRARY_PATH
13865 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13867 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13868 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"`
13869 fi
13870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13871 ;;
13872
13873dgux*)
13874 version_type=linux
13875 need_lib_prefix=no
13876 need_version=no
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13878 soname_spec='${libname}${release}${shared_ext}$major'
13879 shlibpath_var=LD_LIBRARY_PATH
13880 ;;
13881
13882freebsd1*)
13883 dynamic_linker=no
13884 ;;
13885
13886freebsd*)
13887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13888 version_type=freebsd-$objformat
13889 case $version_type in
13890 freebsd-elf*)
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13892 need_version=no
13893 need_lib_prefix=no
13894 ;;
13895 freebsd-*)
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13897 need_version=yes
13898 ;;
13899 esac
13900 shlibpath_var=LD_LIBRARY_PATH
13901 case $host_os in
13902 freebsd2*)
13903 shlibpath_overrides_runpath=yes
13904 ;;
13905 freebsd3.01* | freebsdelf3.01*)
13906 shlibpath_overrides_runpath=yes
13907 hardcode_into_libs=yes
13908 ;;
13909 *) # from 3.2 on
13910 shlibpath_overrides_runpath=no
13911 hardcode_into_libs=yes
13912 ;;
13913 esac
13914 ;;
13915
13916gnu*)
13917 version_type=linux
13918 need_lib_prefix=no
13919 need_version=no
13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13921 soname_spec='${libname}${release}${shared_ext}$major'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 hardcode_into_libs=yes
13924 ;;
13925
13926hpux9* | hpux10* | hpux11*)
13927 # Give a soname corresponding to the major version so that dld.sl refuses to
13928 # link against other versions.
13929 version_type=sunos
13930 need_lib_prefix=no
13931 need_version=no
13932 case "$host_cpu" in
13933 ia64*)
13934 shrext='.so'
13935 hardcode_into_libs=yes
13936 dynamic_linker="$host_os dld.so"
13937 shlibpath_var=LD_LIBRARY_PATH
13938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13940 soname_spec='${libname}${release}${shared_ext}$major'
13941 if test "X$HPUX_IA64_MODE" = X32; then
13942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13943 else
13944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13945 fi
13946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13947 ;;
13948 hppa*64*)
13949 shrext='.sl'
13950 hardcode_into_libs=yes
13951 dynamic_linker="$host_os dld.sl"
13952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13955 soname_spec='${libname}${release}${shared_ext}$major'
13956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13958 ;;
13959 *)
13960 shrext='.sl'
13961 dynamic_linker="$host_os dld.sl"
13962 shlibpath_var=SHLIB_PATH
13963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13965 soname_spec='${libname}${release}${shared_ext}$major'
13966 ;;
13967 esac
13968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13969 postinstall_cmds='chmod 555 $lib'
13970 ;;
13971
13972irix5* | irix6* | nonstopux*)
13973 case $host_os in
13974 nonstopux*) version_type=nonstopux ;;
13975 *)
13976 if test "$lt_cv_prog_gnu_ld" = yes; then
13977 version_type=linux
13978 else
13979 version_type=irix
13980 fi ;;
13981 esac
13982 need_lib_prefix=no
13983 need_version=no
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13986 case $host_os in
13987 irix5* | nonstopux*)
13988 libsuff= shlibsuff=
13989 ;;
13990 *)
13991 case $LD in # libtool.m4 will add one of these switches to LD
13992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13993 libsuff= shlibsuff= libmagic=32-bit;;
13994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13995 libsuff=32 shlibsuff=N32 libmagic=N32;;
13996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13998 *) libsuff= shlibsuff= libmagic=never-match;;
13999 esac
14000 ;;
14001 esac
14002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14003 shlibpath_overrides_runpath=no
14004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14006 hardcode_into_libs=yes
14007 ;;
14008
14009# No shared lib support for Linux oldld, aout, or coff.
14010linux*oldld* | linux*aout* | linux*coff*)
14011 dynamic_linker=no
14012 ;;
14013
14014# This must be Linux ELF.
14015linux*)
14016 version_type=linux
14017 need_lib_prefix=no
14018 need_version=no
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14020 soname_spec='${libname}${release}${shared_ext}$major'
14021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14022 shlibpath_var=LD_LIBRARY_PATH
14023 shlibpath_overrides_runpath=no
14024 # This implies no fast_install, which is unacceptable.
14025 # Some rework will be needed to allow for fast_install
14026 # before this can be enabled.
14027 hardcode_into_libs=yes
14028
14029 # We used to test for /lib/ld.so.1 and disable shared libraries on
14030 # powerpc, because MkLinux only supported shared libraries with the
14031 # GNU dynamic linker. Since this was broken with cross compilers,
14032 # most powerpc-linux boxes support dynamic linking these days and
14033 # people can always --disable-shared, the test was removed, and we
14034 # assume the GNU/Linux dynamic linker is in use.
14035 dynamic_linker='GNU/Linux ld.so'
14036 ;;
14037
14038netbsd*)
14039 version_type=sunos
14040 need_lib_prefix=no
14041 need_version=no
14042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14045 dynamic_linker='NetBSD (a.out) ld.so'
14046 else
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14049 dynamic_linker='NetBSD ld.elf_so'
14050 fi
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=yes
14053 hardcode_into_libs=yes
14054 ;;
14055
14056newsos6)
14057 version_type=linux
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 shlibpath_overrides_runpath=yes
14061 ;;
14062
14063nto-qnx)
14064 version_type=linux
14065 need_lib_prefix=no
14066 need_version=no
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 shlibpath_overrides_runpath=yes
14071 ;;
14072
14073openbsd*)
14074 version_type=sunos
14075 need_lib_prefix=no
14076 need_version=no
14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14079 shlibpath_var=LD_LIBRARY_PATH
14080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14081 case $host_os in
14082 openbsd2.[89] | openbsd2.[89].*)
14083 shlibpath_overrides_runpath=no
14084 ;;
14085 *)
14086 shlibpath_overrides_runpath=yes
14087 ;;
14088 esac
14089 else
14090 shlibpath_overrides_runpath=yes
14091 fi
14092 ;;
14093
14094os2*)
14095 libname_spec='$name'
14096 shrext=".dll"
14097 need_lib_prefix=no
14098 library_names_spec='$libname${shared_ext} $libname.a'
14099 dynamic_linker='OS/2 ld.exe'
14100 shlibpath_var=LIBPATH
14101 ;;
14102
14103osf3* | osf4* | osf5*)
14104 version_type=osf
14105 need_lib_prefix=no
14106 need_version=no
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14112 ;;
14113
14114sco3.2v5*)
14115 version_type=osf
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 ;;
14120
14121solaris*)
14122 version_type=linux
14123 need_lib_prefix=no
14124 need_version=no
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 shlibpath_overrides_runpath=yes
14129 hardcode_into_libs=yes
14130 # ldd complains unless libraries are executable
14131 postinstall_cmds='chmod +x $lib'
14132 ;;
14133
14134sunos4*)
14135 version_type=sunos
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 shlibpath_overrides_runpath=yes
14140 if test "$with_gnu_ld" = yes; then
14141 need_lib_prefix=no
14142 fi
14143 need_version=yes
14144 ;;
14145
14146sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14147 version_type=linux
14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14149 soname_spec='${libname}${release}${shared_ext}$major'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 case $host_vendor in
14152 sni)
14153 shlibpath_overrides_runpath=no
14154 need_lib_prefix=no
14155 export_dynamic_flag_spec='${wl}-Blargedynsym'
14156 runpath_var=LD_RUN_PATH
14157 ;;
14158 siemens)
14159 need_lib_prefix=no
14160 ;;
14161 motorola)
14162 need_lib_prefix=no
14163 need_version=no
14164 shlibpath_overrides_runpath=no
14165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14166 ;;
14167 esac
14168 ;;
14169
14170sysv4*MP*)
14171 if test -d /usr/nec ;then
14172 version_type=linux
14173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14174 soname_spec='$libname${shared_ext}.$major'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 fi
14177 ;;
14178
14179uts4*)
14180 version_type=linux
14181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14182 soname_spec='${libname}${release}${shared_ext}$major'
14183 shlibpath_var=LD_LIBRARY_PATH
14184 ;;
14185
14186*)
14187 dynamic_linker=no
14188 ;;
14189esac
14190echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14191echo "${ECHO_T}$dynamic_linker" >&6
14192test "$dynamic_linker" = no && can_build_shared=no
14193
14194
14195# The else clause should only fire when bootstrapping the
14196# libtool distribution, otherwise you forgot to ship ltmain.sh
14197# with your package, and you will get complaints that there are
14198# no rules to generate ltmain.sh.
14199if test -f "$ltmain"; then
14200 # See if we are running on zsh, and set the options which allow our commands through
14201 # without removal of \ escapes.
14202 if test -n "${ZSH_VERSION+set}" ; then
14203 setopt NO_GLOB_SUBST
14204 fi
14205 # Now quote all the things that may contain metacharacters while being
14206 # careful not to overquote the AC_SUBSTed values. We take copies of the
14207 # variables and quote the copies for generation of the libtool script.
14208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14209 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14210 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14211 deplibs_check_method reload_flag reload_cmds need_locks \
14212 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14213 lt_cv_sys_global_symbol_to_c_name_address \
14214 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14215 old_postinstall_cmds old_postuninstall_cmds \
14216 compiler_F77 \
14217 CC_F77 \
14218 LD_F77 \
14219 lt_prog_compiler_wl_F77 \
14220 lt_prog_compiler_pic_F77 \
14221 lt_prog_compiler_static_F77 \
14222 lt_prog_compiler_no_builtin_flag_F77 \
14223 export_dynamic_flag_spec_F77 \
14224 thread_safe_flag_spec_F77 \
14225 whole_archive_flag_spec_F77 \
14226 enable_shared_with_static_runtimes_F77 \
14227 old_archive_cmds_F77 \
14228 old_archive_from_new_cmds_F77 \
14229 predep_objects_F77 \
14230 postdep_objects_F77 \
14231 predeps_F77 \
14232 postdeps_F77 \
14233 compiler_lib_search_path_F77 \
14234 archive_cmds_F77 \
14235 archive_expsym_cmds_F77 \
14236 postinstall_cmds_F77 \
14237 postuninstall_cmds_F77 \
14238 old_archive_from_expsyms_cmds_F77 \
14239 allow_undefined_flag_F77 \
14240 no_undefined_flag_F77 \
14241 export_symbols_cmds_F77 \
14242 hardcode_libdir_flag_spec_F77 \
14243 hardcode_libdir_flag_spec_ld_F77 \
14244 hardcode_libdir_separator_F77 \
14245 hardcode_automatic_F77 \
14246 module_cmds_F77 \
14247 module_expsym_cmds_F77 \
14248 lt_cv_prog_compiler_c_o_F77 \
14249 exclude_expsyms_F77 \
14250 include_expsyms_F77; do
14251
14252 case $var in
14253 old_archive_cmds_F77 | \
14254 old_archive_from_new_cmds_F77 | \
14255 archive_cmds_F77 | \
14256 archive_expsym_cmds_F77 | \
14257 module_cmds_F77 | \
14258 module_expsym_cmds_F77 | \
14259 old_archive_from_expsyms_cmds_F77 | \
14260 export_symbols_cmds_F77 | \
14261 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14262 postinstall_cmds | postuninstall_cmds | \
14263 old_postinstall_cmds | old_postuninstall_cmds | \
14264 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14265 # Double-quote double-evaled strings.
14266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14267 ;;
14268 *)
14269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14270 ;;
14271 esac
14272 done
14273
14274 case $lt_echo in
14275 *'\$0 --fallback-echo"')
14276 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14277 ;;
14278 esac
14279
14280cfgfile="$ofile"
14281
14282 cat <<__EOF__ >> "$cfgfile"
14283# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14284
14285# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14286
14287# Shell to use when invoking shell scripts.
14288SHELL=$lt_SHELL
14289
14290# Whether or not to build shared libraries.
14291build_libtool_libs=$enable_shared
14292
14293# Whether or not to build static libraries.
14294build_old_libs=$enable_static
14295
14296# Whether or not to add -lc for building shared libraries.
14297build_libtool_need_lc=$archive_cmds_need_lc_F77
14298
14299# Whether or not to disallow shared libs when runtime libs are static
14300allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14301
14302# Whether or not to optimize for fast installation.
14303fast_install=$enable_fast_install
14304
14305# The host system.
14306host_alias=$host_alias
14307host=$host
14308
14309# An echo program that does not interpret backslashes.
14310echo=$lt_echo
14311
14312# The archiver.
14313AR=$lt_AR
14314AR_FLAGS=$lt_AR_FLAGS
14315
14316# A C compiler.
14317LTCC=$lt_LTCC
14318
14319# A language-specific compiler.
14320CC=$lt_compiler_F77
14321
14322# Is the compiler the GNU C compiler?
14323with_gcc=$GCC_F77
14324
14325# An ERE matcher.
14326EGREP=$lt_EGREP
14327
14328# The linker used to build libraries.
14329LD=$lt_LD_F77
14330
14331# Whether we need hard or soft links.
14332LN_S=$lt_LN_S
14333
14334# A BSD-compatible nm program.
14335NM=$lt_NM
14336
14337# A symbol stripping program
14338STRIP=$STRIP
14339
14340# Used to examine libraries when file_magic_cmd begins "file"
14341MAGIC_CMD=$MAGIC_CMD
14342
14343# Used on cygwin: DLL creation program.
14344DLLTOOL="$DLLTOOL"
14345
14346# Used on cygwin: object dumper.
14347OBJDUMP="$OBJDUMP"
14348
14349# Used on cygwin: assembler.
14350AS="$AS"
14351
14352# The name of the directory that contains temporary libtool files.
14353objdir=$objdir
14354
14355# How to create reloadable object files.
14356reload_flag=$lt_reload_flag
14357reload_cmds=$lt_reload_cmds
14358
14359# How to pass a linker flag through the compiler.
14360wl=$lt_lt_prog_compiler_wl_F77
14361
14362# Object file suffix (normally "o").
14363objext="$ac_objext"
14364
14365# Old archive suffix (normally "a").
14366libext="$libext"
14367
14368# Shared library suffix (normally ".so").
14369shrext='$shrext'
14370
14371# Executable file suffix (normally "").
14372exeext="$exeext"
14373
14374# Additional compiler flags for building library objects.
14375pic_flag=$lt_lt_prog_compiler_pic_F77
14376pic_mode=$pic_mode
14377
14378# What is the maximum length of a command?
14379max_cmd_len=$lt_cv_sys_max_cmd_len
14380
14381# Does compiler simultaneously support -c and -o options?
14382compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14383
14384# Must we lock files when doing compilation ?
14385need_locks=$lt_need_locks
14386
14387# Do we need the lib prefix for modules?
14388need_lib_prefix=$need_lib_prefix
14389
14390# Do we need a version for libraries?
14391need_version=$need_version
14392
14393# Whether dlopen is supported.
14394dlopen_support=$enable_dlopen
14395
14396# Whether dlopen of programs is supported.
14397dlopen_self=$enable_dlopen_self
14398
14399# Whether dlopen of statically linked programs is supported.
14400dlopen_self_static=$enable_dlopen_self_static
14401
14402# Compiler flag to prevent dynamic linking.
14403link_static_flag=$lt_lt_prog_compiler_static_F77
14404
14405# Compiler flag to turn off builtin functions.
14406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14407
14408# Compiler flag to allow reflexive dlopens.
14409export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14410
14411# Compiler flag to generate shared objects directly from archives.
14412whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14413
14414# Compiler flag to generate thread-safe objects.
14415thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14416
14417# Library versioning type.
14418version_type=$version_type
14419
14420# Format of library name prefix.
14421libname_spec=$lt_libname_spec
14422
14423# List of archive names. First name is the real one, the rest are links.
14424# The last name is the one that the linker finds with -lNAME.
14425library_names_spec=$lt_library_names_spec
14426
14427# The coded name of the library, if different from the real name.
14428soname_spec=$lt_soname_spec
14429
14430# Commands used to build and install an old-style archive.
14431RANLIB=$lt_RANLIB
14432old_archive_cmds=$lt_old_archive_cmds_F77
14433old_postinstall_cmds=$lt_old_postinstall_cmds
14434old_postuninstall_cmds=$lt_old_postuninstall_cmds
14435
14436# Create an old-style archive from a shared archive.
14437old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14438
14439# Create a temporary old-style archive to link instead of a shared archive.
14440old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14441
14442# Commands used to build and install a shared archive.
14443archive_cmds=$lt_archive_cmds_F77
14444archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14445postinstall_cmds=$lt_postinstall_cmds
14446postuninstall_cmds=$lt_postuninstall_cmds
14447
14448# Commands used to build a loadable module (assumed same as above if empty)
14449module_cmds=$lt_module_cmds_F77
14450module_expsym_cmds=$lt_module_expsym_cmds_F77
14451
14452# Commands to strip libraries.
14453old_striplib=$lt_old_striplib
14454striplib=$lt_striplib
14455
14456# Dependencies to place before the objects being linked to create a
14457# shared library.
14458predep_objects=$lt_predep_objects_F77
14459
14460# Dependencies to place after the objects being linked to create a
14461# shared library.
14462postdep_objects=$lt_postdep_objects_F77
14463
14464# Dependencies to place before the objects being linked to create a
14465# shared library.
14466predeps=$lt_predeps_F77
14467
14468# Dependencies to place after the objects being linked to create a
14469# shared library.
14470postdeps=$lt_postdeps_F77
14471
14472# The library search path used internally by the compiler when linking
14473# a shared library.
14474compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14475
14476# Method to check whether dependent libraries are shared objects.
14477deplibs_check_method=$lt_deplibs_check_method
14478
14479# Command to use when deplibs_check_method == file_magic.
14480file_magic_cmd=$lt_file_magic_cmd
14481
14482# Flag that allows shared libraries with undefined symbols to be built.
14483allow_undefined_flag=$lt_allow_undefined_flag_F77
14484
14485# Flag that forces no undefined symbols.
14486no_undefined_flag=$lt_no_undefined_flag_F77
14487
14488# Commands used to finish a libtool library installation in a directory.
14489finish_cmds=$lt_finish_cmds
14490
14491# Same as above, but a single script fragment to be evaled but not shown.
14492finish_eval=$lt_finish_eval
14493
14494# Take the output of nm and produce a listing of raw symbols and C names.
14495global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14496
14497# Transform the output of nm in a proper C declaration
14498global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14499
14500# Transform the output of nm in a C name address pair
14501global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14502
14503# This is the shared library runtime path variable.
14504runpath_var=$runpath_var
14505
14506# This is the shared library path variable.
14507shlibpath_var=$shlibpath_var
14508
14509# Is shlibpath searched before the hard-coded library search path?
14510shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14511
14512# How to hardcode a shared library path into an executable.
14513hardcode_action=$hardcode_action_F77
14514
14515# Whether we should hardcode library paths into libraries.
14516hardcode_into_libs=$hardcode_into_libs
14517
14518# Flag to hardcode \$libdir into a binary during linking.
14519# This must work even if \$libdir does not exist.
14520hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14521
14522# If ld is used when linking, flag to hardcode \$libdir into
14523# a binary during linking. This must work even if \$libdir does
14524# not exist.
14525hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14526
14527# Whether we need a single -rpath flag with a separated argument.
14528hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14529
14530# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14531# resulting binary.
14532hardcode_direct=$hardcode_direct_F77
14533
14534# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14535# resulting binary.
14536hardcode_minus_L=$hardcode_minus_L_F77
14537
14538# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14539# the resulting binary.
14540hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14541
14542# Set to yes if building a shared library automatically hardcodes DIR into the library
14543# and all subsequent libraries and executables linked against it.
14544hardcode_automatic=$hardcode_automatic_F77
14545
14546# Variables whose values should be saved in libtool wrapper scripts and
14547# restored at relink time.
14548variables_saved_for_relink="$variables_saved_for_relink"
14549
14550# Whether libtool must link a program against all its dependency libraries.
14551link_all_deplibs=$link_all_deplibs_F77
14552
14553# Compile-time system search path for libraries
14554sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14555
14556# Run-time system search path for libraries
14557sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14558
14559# Fix the shell variable \$srcfile for the compiler.
14560fix_srcfile_path="$fix_srcfile_path_F77"
14561
14562# Set to yes if exported symbols are required.
14563always_export_symbols=$always_export_symbols_F77
14564
14565# The commands to list exported symbols.
14566export_symbols_cmds=$lt_export_symbols_cmds_F77
14567
14568# The commands to extract the exported symbol list from a shared archive.
14569extract_expsyms_cmds=$lt_extract_expsyms_cmds
14570
14571# Symbols that should not be listed in the preloaded symbols.
14572exclude_expsyms=$lt_exclude_expsyms_F77
14573
14574# Symbols that must always be exported.
14575include_expsyms=$lt_include_expsyms_F77
14576
14577# ### END LIBTOOL TAG CONFIG: $tagname
14578
14579__EOF__
14580
14581
14582else
14583 # If there is no Makefile yet, we rely on a make rule to execute
14584 # `config.status --recheck' to rerun these tests and create the
14585 # libtool script then.
14586 test -f Makefile && make "$ltmain"
14587fi
14588
14589
14590ac_ext=c
14591ac_cpp='$CPP $CPPFLAGS'
14592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14594ac_compiler_gnu=$ac_cv_c_compiler_gnu
14595
14596CC="$lt_save_CC"
14597
14598 else
14599 tagname=""
14600 fi
14601 ;;
14602
14603 GCJ)
14604 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14605
14606
14607
14608# Source file extension for Java test sources.
14609ac_ext=java
14610
14611# Object file extension for compiled Java test sources.
14612objext=o
14613objext_GCJ=$objext
14614
14615# Code to be used in simple compile tests
14616lt_simple_compile_test_code="class foo {}\n"
14617
14618# Code to be used in simple link tests
14619lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14620
14621# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14622
14623# If no C compiler was specified, use CC.
14624LTCC=${LTCC-"$CC"}
14625
14626# Allow CC to be a program name with arguments.
14627compiler=$CC
14628
14629
14630# Allow CC to be a program name with arguments.
14631lt_save_CC="$CC"
14632CC=${GCJ-"gcj"}
14633compiler=$CC
14634compiler_GCJ=$CC
14635
14636# GCJ did not exist at the time GCC didn't implicitly link libc in.
14637archive_cmds_need_lc_GCJ=no
14638
John Criswell47fdd832003-07-14 16:52:07 +000014639
14640lt_prog_compiler_no_builtin_flag_GCJ=
14641
14642if test "$GCC" = yes; then
14643 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14644
14645 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14646echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14647if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14649else
14650 lt_cv_prog_compiler_rtti_exceptions=no
14651 ac_outfile=conftest.$ac_objext
14652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14653 lt_compiler_flag="-fno-rtti -fno-exceptions"
14654 # Insert the option either (1) after the last *FLAGS variable, or
14655 # (2) before a word containing "conftest.", or (3) at the end.
14656 # Note that $ac_compile itself does not contain backslashes and begins
14657 # with a dollar sign (not a hyphen), so the echo should work correctly.
14658 # The option is referenced via a variable to avoid confusing sed.
14659 lt_compile=`echo "$ac_compile" | $SED \
14660 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14662 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000014663 (eval echo "\"\$as_me:14663: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014664 (eval "$lt_compile" 2>conftest.err)
14665 ac_status=$?
14666 cat conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000014667 echo "$as_me:14667: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014668 if (exit $ac_status) && test -s "$ac_outfile"; then
14669 # The compiler can only warn and ignore the option if not recognized
14670 # So say no if there are warnings
14671 if test ! -s conftest.err; then
14672 lt_cv_prog_compiler_rtti_exceptions=yes
14673 fi
14674 fi
14675 $rm conftest*
14676
14677fi
14678echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14679echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14680
14681if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14682 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14683else
14684 :
14685fi
14686
14687fi
14688
14689lt_prog_compiler_wl_GCJ=
14690lt_prog_compiler_pic_GCJ=
14691lt_prog_compiler_static_GCJ=
14692
14693echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14694echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14695
14696 if test "$GCC" = yes; then
14697 lt_prog_compiler_wl_GCJ='-Wl,'
14698 lt_prog_compiler_static_GCJ='-static'
14699
14700 case $host_os in
14701 aix*)
14702 # All AIX code is PIC.
14703 if test "$host_cpu" = ia64; then
14704 # AIX 5 now supports IA64 processor
14705 lt_prog_compiler_static_GCJ='-Bstatic'
14706 fi
14707 ;;
14708
14709 amigaos*)
14710 # FIXME: we need at least 68020 code to build shared libraries, but
14711 # adding the `-m68020' flag to GCC prevents building anything better,
14712 # like `-m68040'.
14713 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14714 ;;
14715
14716 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14717 # PIC is the default for these OSes.
14718 ;;
14719
14720 mingw* | pw32* | os2*)
14721 # This hack is so that the source file can tell whether it is being
14722 # built for inclusion in a dll (and should export symbols for example).
14723 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14724 ;;
14725
14726 darwin* | rhapsody*)
14727 # PIC is the default on this platform
14728 # Common symbols not allowed in MH_DYLIB files
14729 lt_prog_compiler_pic_GCJ='-fno-common'
14730 ;;
14731
14732 msdosdjgpp*)
14733 # Just because we use GCC doesn't mean we suddenly get shared libraries
14734 # on systems that don't support them.
14735 lt_prog_compiler_can_build_shared_GCJ=no
14736 enable_shared=no
14737 ;;
14738
14739 sysv4*MP*)
14740 if test -d /usr/nec; then
14741 lt_prog_compiler_pic_GCJ=-Kconform_pic
14742 fi
14743 ;;
14744
14745 hpux*)
14746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14747 # not for PA HP-UX.
14748 case "$host_cpu" in
14749 hppa*64*|ia64*)
14750 # +Z the default
14751 ;;
14752 *)
14753 lt_prog_compiler_pic_GCJ='-fPIC'
14754 ;;
14755 esac
14756 ;;
14757
14758 *)
14759 lt_prog_compiler_pic_GCJ='-fPIC'
14760 ;;
14761 esac
14762 else
14763 # PORTME Check for flag to pass linker flags through the system compiler.
14764 case $host_os in
14765 aix*)
14766 lt_prog_compiler_wl_GCJ='-Wl,'
14767 if test "$host_cpu" = ia64; then
14768 # AIX 5 now supports IA64 processor
14769 lt_prog_compiler_static_GCJ='-Bstatic'
14770 else
14771 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14772 fi
14773 ;;
14774
14775 mingw* | pw32* | os2*)
14776 # This hack is so that the source file can tell whether it is being
14777 # built for inclusion in a dll (and should export symbols for example).
14778 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14779 ;;
14780
14781 hpux9* | hpux10* | hpux11*)
14782 lt_prog_compiler_wl_GCJ='-Wl,'
14783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784 # not for PA HP-UX.
14785 case "$host_cpu" in
14786 hppa*64*|ia64*)
14787 # +Z the default
14788 ;;
14789 *)
14790 lt_prog_compiler_pic_GCJ='+Z'
14791 ;;
14792 esac
14793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14794 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14795 ;;
14796
14797 irix5* | irix6* | nonstopux*)
14798 lt_prog_compiler_wl_GCJ='-Wl,'
14799 # PIC (with -KPIC) is the default.
14800 lt_prog_compiler_static_GCJ='-non_shared'
14801 ;;
14802
14803 newsos6)
14804 lt_prog_compiler_pic_GCJ='-KPIC'
14805 lt_prog_compiler_static_GCJ='-Bstatic'
14806 ;;
14807
14808 linux*)
14809 case $CC in
14810 icc|ecc)
14811 lt_prog_compiler_wl_GCJ='-Wl,'
14812 lt_prog_compiler_pic_GCJ='-KPIC'
14813 lt_prog_compiler_static_GCJ='-static'
14814 ;;
14815 ccc)
14816 lt_prog_compiler_wl_GCJ='-Wl,'
14817 # All Alpha code is PIC.
14818 lt_prog_compiler_static_GCJ='-non_shared'
14819 ;;
14820 esac
14821 ;;
14822
14823 osf3* | osf4* | osf5*)
14824 lt_prog_compiler_wl_GCJ='-Wl,'
14825 # All OSF/1 code is PIC.
14826 lt_prog_compiler_static_GCJ='-non_shared'
14827 ;;
14828
14829 sco3.2v5*)
14830 lt_prog_compiler_pic_GCJ='-Kpic'
14831 lt_prog_compiler_static_GCJ='-dn'
14832 ;;
14833
14834 solaris*)
14835 lt_prog_compiler_wl_GCJ='-Wl,'
14836 lt_prog_compiler_pic_GCJ='-KPIC'
14837 lt_prog_compiler_static_GCJ='-Bstatic'
14838 ;;
14839
14840 sunos4*)
14841 lt_prog_compiler_wl_GCJ='-Qoption ld '
14842 lt_prog_compiler_pic_GCJ='-PIC'
14843 lt_prog_compiler_static_GCJ='-Bstatic'
14844 ;;
14845
14846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14847 lt_prog_compiler_wl_GCJ='-Wl,'
14848 lt_prog_compiler_pic_GCJ='-KPIC'
14849 lt_prog_compiler_static_GCJ='-Bstatic'
14850 ;;
14851
14852 sysv4*MP*)
14853 if test -d /usr/nec ;then
14854 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14855 lt_prog_compiler_static_GCJ='-Bstatic'
14856 fi
14857 ;;
14858
14859 uts4*)
14860 lt_prog_compiler_pic_GCJ='-pic'
14861 lt_prog_compiler_static_GCJ='-Bstatic'
14862 ;;
14863
14864 *)
14865 lt_prog_compiler_can_build_shared_GCJ=no
14866 ;;
14867 esac
14868 fi
14869
14870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14871echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14872
14873#
14874# Check to make sure the PIC flag actually works.
14875#
14876if test -n "$lt_prog_compiler_pic_GCJ"; then
14877 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14878echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14879if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14881else
14882 lt_prog_compiler_pic_works_GCJ=no
14883 ac_outfile=conftest.$ac_objext
14884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14885 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14886 # Insert the option either (1) after the last *FLAGS variable, or
14887 # (2) before a word containing "conftest.", or (3) at the end.
14888 # Note that $ac_compile itself does not contain backslashes and begins
14889 # with a dollar sign (not a hyphen), so the echo should work correctly.
14890 # The option is referenced via a variable to avoid confusing sed.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000014895 (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014896 (eval "$lt_compile" 2>conftest.err)
14897 ac_status=$?
14898 cat conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000014899 echo "$as_me:14899: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014900 if (exit $ac_status) && test -s "$ac_outfile"; then
14901 # The compiler can only warn and ignore the option if not recognized
14902 # So say no if there are warnings
14903 if test ! -s conftest.err; then
14904 lt_prog_compiler_pic_works_GCJ=yes
14905 fi
14906 fi
14907 $rm conftest*
14908
14909fi
14910echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14911echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14912
14913if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14914 case $lt_prog_compiler_pic_GCJ in
14915 "" | " "*) ;;
14916 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14917 esac
14918else
14919 lt_prog_compiler_pic_GCJ=
14920 lt_prog_compiler_can_build_shared_GCJ=no
14921fi
14922
14923fi
14924case "$host_os" in
14925 # For platforms which do not support PIC, -DPIC is meaningless:
14926 *djgpp*)
14927 lt_prog_compiler_pic_GCJ=
14928 ;;
14929 *)
14930 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14931 ;;
14932esac
14933
14934echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14935echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14936if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938else
14939 lt_cv_prog_compiler_c_o_GCJ=no
14940 $rm -r conftest 2>/dev/null
14941 mkdir conftest
14942 cd conftest
14943 mkdir out
14944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14945
14946 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14947 # that will create temporary files in the current directory regardless of
14948 # the output directory. Thus, making CWD read-only will cause this test
14949 # to fail, enabling locking or at least warning the user not to do parallel
14950 # builds.
14951 chmod -w .
14952
14953 lt_compiler_flag="-o out/conftest2.$ac_objext"
14954 # Insert the option either (1) after the last *FLAGS variable, or
14955 # (2) before a word containing "conftest.", or (3) at the end.
14956 # Note that $ac_compile itself does not contain backslashes and begins
14957 # with a dollar sign (not a hyphen), so the echo should work correctly.
14958 lt_compile=`echo "$ac_compile" | $SED \
14959 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14961 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke26be9c52004-01-13 06:43:16 +000014962 (eval echo "\"\$as_me:14962: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014963 (eval "$lt_compile" 2>out/conftest.err)
14964 ac_status=$?
14965 cat out/conftest.err >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000014966 echo "$as_me:14966: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014967 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14968 then
14969 # The compiler can only warn and ignore the option if not recognized
14970 # So say no if there are warnings
14971 if test ! -s out/conftest.err; then
14972 lt_cv_prog_compiler_c_o_GCJ=yes
14973 fi
14974 fi
14975 chmod u+w .
14976 $rm conftest* out/*
14977 rmdir out
14978 cd ..
14979 rmdir conftest
14980 $rm conftest*
14981
14982fi
14983echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14984echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14985
14986
14987hard_links="nottested"
14988if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14989 # do not overwrite the value of need_locks provided by the user
14990 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14991echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14992 hard_links=yes
14993 $rm conftest*
14994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14995 touch conftest.a
14996 ln conftest.a conftest.b 2>&5 || hard_links=no
14997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14998 echo "$as_me:$LINENO: result: $hard_links" >&5
14999echo "${ECHO_T}$hard_links" >&6
15000 if test "$hard_links" = no; then
15001 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15002echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15003 need_locks=warn
15004 fi
15005else
15006 need_locks=no
15007fi
15008
15009echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15011
15012 runpath_var=
15013 allow_undefined_flag_GCJ=
15014 enable_shared_with_static_runtimes_GCJ=no
15015 archive_cmds_GCJ=
15016 archive_expsym_cmds_GCJ=
15017 old_archive_From_new_cmds_GCJ=
15018 old_archive_from_expsyms_cmds_GCJ=
15019 export_dynamic_flag_spec_GCJ=
15020 whole_archive_flag_spec_GCJ=
15021 thread_safe_flag_spec_GCJ=
15022 hardcode_libdir_flag_spec_GCJ=
15023 hardcode_libdir_flag_spec_ld_GCJ=
15024 hardcode_libdir_separator_GCJ=
15025 hardcode_direct_GCJ=no
15026 hardcode_minus_L_GCJ=no
15027 hardcode_shlibpath_var_GCJ=unsupported
15028 link_all_deplibs_GCJ=unknown
15029 hardcode_automatic_GCJ=no
15030 module_cmds_GCJ=
15031 module_expsym_cmds_GCJ=
15032 always_export_symbols_GCJ=no
15033 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15034 # include_expsyms should be a list of space-separated symbols to be *always*
15035 # included in the symbol list
15036 include_expsyms_GCJ=
15037 # exclude_expsyms can be an extended regexp of symbols to exclude
15038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15040 # as well as any symbol that contains `d'.
15041 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15043 # platforms (ab)use it in PIC code, but their linkers get confused if
15044 # the symbol is explicitly referenced. Since portable code cannot
15045 # rely on this symbol name, it's probably fine to never include it in
15046 # preloaded symbol tables.
15047 extract_expsyms_cmds=
15048
15049 case $host_os in
15050 cygwin* | mingw* | pw32*)
15051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15052 # When not using gcc, we currently assume that we are using
15053 # Microsoft Visual C++.
15054 if test "$GCC" != yes; then
15055 with_gnu_ld=no
15056 fi
15057 ;;
15058 openbsd*)
15059 with_gnu_ld=no
15060 ;;
15061 esac
15062
15063 ld_shlibs_GCJ=yes
15064 if test "$with_gnu_ld" = yes; then
15065 # If archive_cmds runs LD, not CC, wlarc should be empty
15066 wlarc='${wl}'
15067
15068 # See if GNU ld supports shared libraries.
15069 case $host_os in
15070 aix3* | aix4* | aix5*)
15071 # On AIX/PPC, the GNU linker is very broken
15072 if test "$host_cpu" != ia64; then
15073 ld_shlibs_GCJ=no
15074 cat <<EOF 1>&2
15075
15076*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15077*** to be unable to reliably create shared libraries on AIX.
15078*** Therefore, libtool is disabling shared libraries support. If you
15079*** really care for shared libraries, you may want to modify your PATH
15080*** so that a non-GNU linker is found, and then restart.
15081
15082EOF
15083 fi
15084 ;;
15085
15086 amigaos*)
15087 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)'
15088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15089 hardcode_minus_L_GCJ=yes
15090
15091 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15092 # that the semantics of dynamic libraries on AmigaOS, at least up
15093 # to version 4, is to share data among multiple programs linked
15094 # with the same dynamic library. Since this doesn't match the
15095 # behavior of shared libraries on other platforms, we can't use
15096 # them.
15097 ld_shlibs_GCJ=no
15098 ;;
15099
15100 beos*)
15101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15102 allow_undefined_flag_GCJ=unsupported
15103 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15104 # support --undefined. This deserves some investigation. FIXME
15105 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106 else
15107 ld_shlibs_GCJ=no
15108 fi
15109 ;;
15110
15111 cygwin* | mingw* | pw32*)
15112 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15113 # as there is no search path for DLLs.
15114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15115 allow_undefined_flag_GCJ=unsupported
15116 always_export_symbols_GCJ=no
15117 enable_shared_with_static_runtimes_GCJ=yes
15118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15119
15120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15121 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15122 # If the export-symbols file already is a .def file (1st line
15123 # is EXPORTS), use it as is; otherwise, prepend...
15124 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15125 cp $export_symbols $output_objdir/$soname.def;
15126 else
15127 echo EXPORTS > $output_objdir/$soname.def;
15128 cat $export_symbols >> $output_objdir/$soname.def;
15129 fi~
15130 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15131 else
15132 ld_shlibs=no
15133 fi
15134 ;;
15135
15136 netbsd*)
15137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15138 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15139 wlarc=
15140 else
15141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143 fi
15144 ;;
15145
15146 solaris* | sysv5*)
15147 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15148 ld_shlibs_GCJ=no
15149 cat <<EOF 1>&2
15150
15151*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15152*** create shared libraries on Solaris systems. Therefore, libtool
15153*** is disabling shared libraries support. We urge you to upgrade GNU
15154*** binutils to release 2.9.1 or newer. Another option is to modify
15155*** your PATH or compiler configuration so that the native linker is
15156*** used, and then restart.
15157
15158EOF
15159 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15162 else
15163 ld_shlibs_GCJ=no
15164 fi
15165 ;;
15166
15167 sunos4*)
15168 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15169 wlarc=
15170 hardcode_direct_GCJ=yes
15171 hardcode_shlibpath_var_GCJ=no
15172 ;;
15173
15174 *)
15175 if $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 esac
15183
15184 if test "$ld_shlibs_GCJ" = yes; then
15185 runpath_var=LD_RUN_PATH
15186 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15187 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15188 # ancient GNU ld didn't support --whole-archive et. al.
15189 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15190 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15191 else
15192 whole_archive_flag_spec_GCJ=
15193 fi
15194 fi
15195 else
15196 # PORTME fill in a description of your system's linker (not GNU ld)
15197 case $host_os in
15198 aix3*)
15199 allow_undefined_flag_GCJ=unsupported
15200 always_export_symbols_GCJ=yes
15201 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'
15202 # Note: this linker hardcodes the directories in LIBPATH if there
15203 # are no directories specified by -L.
15204 hardcode_minus_L_GCJ=yes
15205 if test "$GCC" = yes && test -z "$link_static_flag"; then
15206 # Neither direct hardcoding nor static linking is supported with a
15207 # broken collect2.
15208 hardcode_direct_GCJ=unsupported
15209 fi
15210 ;;
15211
15212 aix4* | aix5*)
15213 if test "$host_cpu" = ia64; then
15214 # On IA64, the linker does run time linking by default, so we don't
15215 # have to do anything special.
15216 aix_use_runtimelinking=no
15217 exp_sym_flag='-Bexport'
15218 no_entry_flag=""
15219 else
15220 # If we're using GNU nm, then we don't want the "-C" option.
15221 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15222 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15223 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'
15224 else
15225 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'
15226 fi
15227 aix_use_runtimelinking=no
15228
15229 # Test if we are trying to use run time linking or normal
15230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231 # need to do runtime linking.
15232 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15233 for ld_flag in $LDFLAGS; do
15234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235 aix_use_runtimelinking=yes
15236 break
15237 fi
15238 done
15239 esac
15240
15241 exp_sym_flag='-bexport'
15242 no_entry_flag='-bnoentry'
15243 fi
15244
15245 # When large executables or shared objects are built, AIX ld can
15246 # have problems creating the table of contents. If linking a library
15247 # or program results in "error TOC overflow" add -mminimal-toc to
15248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15250
15251 archive_cmds_GCJ=''
15252 hardcode_direct_GCJ=yes
15253 hardcode_libdir_separator_GCJ=':'
15254 link_all_deplibs_GCJ=yes
15255
15256 if test "$GCC" = yes; then
15257 case $host_os in aix4.012|aix4.012.*)
15258 # We only want to do this on AIX 4.2 and lower, the check
15259 # below for broken collect2 doesn't work under 4.3+
15260 collect2name=`${CC} -print-prog-name=collect2`
15261 if test -f "$collect2name" && \
15262 strings "$collect2name" | grep resolve_lib_name >/dev/null
15263 then
15264 # We have reworked collect2
15265 hardcode_direct_GCJ=yes
15266 else
15267 # We have old collect2
15268 hardcode_direct_GCJ=unsupported
15269 # It fails to find uninstalled libraries when the uninstalled
15270 # path is not listed in the libpath. Setting hardcode_minus_L
15271 # to unsupported forces relinking
15272 hardcode_minus_L_GCJ=yes
15273 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15274 hardcode_libdir_separator_GCJ=
15275 fi
15276 esac
15277 shared_flag='-shared'
15278 else
15279 # not using gcc
15280 if test "$host_cpu" = ia64; then
15281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15282 # chokes on -Wl,-G. The following line is correct:
15283 shared_flag='-G'
15284 else
15285 if test "$aix_use_runtimelinking" = yes; then
15286 shared_flag='${wl}-G'
15287 else
15288 shared_flag='${wl}-bM:SRE'
15289 fi
15290 fi
15291 fi
15292
15293 # It seems that -bexpall does not export symbols beginning with
15294 # underscore (_), so it is better to generate a list of symbols to export.
15295 always_export_symbols_GCJ=yes
15296 if test "$aix_use_runtimelinking" = yes; then
15297 # Warning - without using the other runtime loading flags (-brtl),
15298 # -berok will link without error, but may produce a broken library.
15299 allow_undefined_flag_GCJ='-berok'
15300 # Determine the default libpath from the value encoded in an empty executable.
15301 cat >conftest.$ac_ext <<_ACEOF
15302#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015303/* confdefs.h. */
15304_ACEOF
15305cat confdefs.h >>conftest.$ac_ext
15306cat >>conftest.$ac_ext <<_ACEOF
15307/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015308
John Criswell47fdd832003-07-14 16:52:07 +000015309int
15310main ()
15311{
15312
15313 ;
15314 return 0;
15315}
15316_ACEOF
15317rm -f conftest.$ac_objext conftest$ac_exeext
15318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15319 (eval $ac_link) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest$ac_exeext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329
15330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15331}'`
15332# Check for a 64-bit object if we didn't find anything.
15333if 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; }
15334}'`; fi
15335else
15336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015337sed 's/^/| /' conftest.$ac_ext >&5
15338
John Criswell47fdd832003-07-14 16:52:07 +000015339fi
15340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15341if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15342
15343 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15344 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"
15345 else
15346 if test "$host_cpu" = ia64; then
15347 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15348 allow_undefined_flag_GCJ="-z nodefs"
15349 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"
15350 else
15351 # Determine the default libpath from the value encoded in an empty executable.
15352 cat >conftest.$ac_ext <<_ACEOF
15353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015354/* confdefs.h. */
15355_ACEOF
15356cat confdefs.h >>conftest.$ac_ext
15357cat >>conftest.$ac_ext <<_ACEOF
15358/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015359
John Criswell47fdd832003-07-14 16:52:07 +000015360int
15361main ()
15362{
15363
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext conftest$ac_exeext
15369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380
15381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15382}'`
15383# Check for a 64-bit object if we didn't find anything.
15384if 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; }
15385}'`; fi
15386else
15387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015388sed 's/^/| /' conftest.$ac_ext >&5
15389
John Criswell47fdd832003-07-14 16:52:07 +000015390fi
15391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15392if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15393
15394 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15395 # Warning - without using the other run time loading flags,
15396 # -berok will link without error, but may produce a broken library.
15397 no_undefined_flag_GCJ=' ${wl}-bernotok'
15398 allow_undefined_flag_GCJ=' ${wl}-berok'
15399 # -bexpall does not export symbols beginning with underscore (_)
15400 always_export_symbols_GCJ=yes
15401 # Exported symbols can be pulled into shared objects from archives
15402 whole_archive_flag_spec_GCJ=' '
15403 archive_cmds_need_lc_GCJ=yes
15404 # This is similar to how AIX traditionally builds it's shared libraries.
15405 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'
15406 fi
15407 fi
15408 ;;
15409
15410 amigaos*)
15411 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)'
15412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15413 hardcode_minus_L_GCJ=yes
15414 # see comment about different semantics on the GNU ld section
15415 ld_shlibs_GCJ=no
15416 ;;
15417
15418 bsdi4*)
15419 export_dynamic_flag_spec_GCJ=-rdynamic
15420 ;;
15421
15422 cygwin* | mingw* | pw32*)
15423 # When not using gcc, we currently assume that we are using
15424 # Microsoft Visual C++.
15425 # hardcode_libdir_flag_spec is actually meaningless, as there is
15426 # no search path for DLLs.
15427 hardcode_libdir_flag_spec_GCJ=' '
15428 allow_undefined_flag_GCJ=unsupported
15429 # Tell ltmain to make .lib files, not .a files.
15430 libext=lib
15431 # Tell ltmain to make .dll files, not .so files.
15432 shrext=".dll"
15433 # FIXME: Setting linknames here is a bad hack.
15434 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15435 # The linker will automatically build a .lib file if we build a DLL.
15436 old_archive_From_new_cmds_GCJ='true'
15437 # FIXME: Should let the user specify the lib program.
15438 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15439 fix_srcfile_path='`cygpath -w "$srcfile"`'
15440 enable_shared_with_static_runtimes_GCJ=yes
15441 ;;
15442
15443 darwin* | rhapsody*)
15444 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15445 archive_cmds_need_lc_GCJ=no
15446 case "$host_os" in
15447 rhapsody* | darwin1.[012])
15448 allow_undefined_flag_GCJ='-undefined suppress'
15449 ;;
15450 *) # Darwin 1.3 on
15451 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15452 ;;
15453 esac
15454 # FIXME: Relying on posixy $() will cause problems for
15455 # cross-compilation, but unfortunately the echo tests do not
15456 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15457 # `"' quotes if we put them in here... so don't!
15458 lt_int_apple_cc_single_mod=no
15459 output_verbose_link_cmd='echo'
15460 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15461 lt_int_apple_cc_single_mod=yes
15462 fi
15463 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15464 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15465 else
15466 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'
15467 fi
15468 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15470 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15471 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}'
15472 else
15473 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}'
15474 fi
15475 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}'
15476 hardcode_direct_GCJ=no
15477 hardcode_automatic_GCJ=yes
15478 hardcode_shlibpath_var_GCJ=unsupported
15479 whole_archive_flag_spec_GCJ='-all_load $convenience'
15480 link_all_deplibs_GCJ=yes
15481 fi
15482 ;;
15483
15484 dgux*)
15485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487 hardcode_shlibpath_var_GCJ=no
15488 ;;
15489
15490 freebsd1*)
15491 ld_shlibs_GCJ=no
15492 ;;
15493
15494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15495 # support. Future versions do this automatically, but an explicit c++rt0.o
15496 # does not break anything, and helps significantly (at the cost of a little
15497 # extra space).
15498 freebsd2.2*)
15499 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15500 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15501 hardcode_direct_GCJ=yes
15502 hardcode_shlibpath_var_GCJ=no
15503 ;;
15504
15505 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15506 freebsd2*)
15507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15508 hardcode_direct_GCJ=yes
15509 hardcode_minus_L_GCJ=yes
15510 hardcode_shlibpath_var_GCJ=no
15511 ;;
15512
15513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15514 freebsd*)
15515 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15516 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15517 hardcode_direct_GCJ=yes
15518 hardcode_shlibpath_var_GCJ=no
15519 ;;
15520
15521 hpux9*)
15522 if test "$GCC" = yes; then
15523 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'
15524 else
15525 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'
15526 fi
15527 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15528 hardcode_libdir_separator_GCJ=:
15529 hardcode_direct_GCJ=yes
15530
15531 # hardcode_minus_L: Not really in the search PATH,
15532 # but as the default location of the library.
15533 hardcode_minus_L_GCJ=yes
15534 export_dynamic_flag_spec_GCJ='${wl}-E'
15535 ;;
15536
15537 hpux10* | hpux11*)
15538 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15539 case "$host_cpu" in
15540 hppa*64*|ia64*)
15541 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542 ;;
15543 *)
15544 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15545 ;;
15546 esac
15547 else
15548 case "$host_cpu" in
15549 hppa*64*|ia64*)
15550 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15551 ;;
15552 *)
15553 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15554 ;;
15555 esac
15556 fi
15557 if test "$with_gnu_ld" = no; then
15558 case "$host_cpu" in
15559 hppa*64*)
15560 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15561 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15562 hardcode_libdir_separator_GCJ=:
15563 hardcode_direct_GCJ=no
15564 hardcode_shlibpath_var_GCJ=no
15565 ;;
15566 ia64*)
15567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15568 hardcode_direct_GCJ=no
15569 hardcode_shlibpath_var_GCJ=no
15570
15571 # hardcode_minus_L: Not really in the search PATH,
15572 # but as the default location of the library.
15573 hardcode_minus_L_GCJ=yes
15574 ;;
15575 *)
15576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15577 hardcode_libdir_separator_GCJ=:
15578 hardcode_direct_GCJ=yes
15579 export_dynamic_flag_spec_GCJ='${wl}-E'
15580
15581 # hardcode_minus_L: Not really in the search PATH,
15582 # but as the default location of the library.
15583 hardcode_minus_L_GCJ=yes
15584 ;;
15585 esac
15586 fi
15587 ;;
15588
15589 irix5* | irix6* | nonstopux*)
15590 if test "$GCC" = yes; then
15591 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'
15592 else
15593 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'
15594 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15595 fi
15596 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15597 hardcode_libdir_separator_GCJ=:
15598 link_all_deplibs_GCJ=yes
15599 ;;
15600
15601 netbsd*)
15602 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15603 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15604 else
15605 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15606 fi
15607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15608 hardcode_direct_GCJ=yes
15609 hardcode_shlibpath_var_GCJ=no
15610 ;;
15611
15612 newsos6)
15613 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614 hardcode_direct_GCJ=yes
15615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15616 hardcode_libdir_separator_GCJ=:
15617 hardcode_shlibpath_var_GCJ=no
15618 ;;
15619
15620 openbsd*)
15621 hardcode_direct_GCJ=yes
15622 hardcode_shlibpath_var_GCJ=no
15623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15624 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15626 export_dynamic_flag_spec_GCJ='${wl}-E'
15627 else
15628 case $host_os in
15629 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15630 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15631 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15632 ;;
15633 *)
15634 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15635 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15636 ;;
15637 esac
15638 fi
15639 ;;
15640
15641 os2*)
15642 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15643 hardcode_minus_L_GCJ=yes
15644 allow_undefined_flag_GCJ=unsupported
15645 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'
15646 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15647 ;;
15648
15649 osf3*)
15650 if test "$GCC" = yes; then
15651 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15652 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'
15653 else
15654 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15655 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'
15656 fi
15657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15658 hardcode_libdir_separator_GCJ=:
15659 ;;
15660
15661 osf4* | osf5*) # as osf3* with the addition of -msym flag
15662 if test "$GCC" = yes; then
15663 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15664 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'
15665 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15666 else
15667 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15668 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'
15669 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~
15670 $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'
15671
15672 # Both c and cxx compiler support -rpath directly
15673 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15674 fi
15675 hardcode_libdir_separator_GCJ=:
15676 ;;
15677
15678 sco3.2v5*)
15679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680 hardcode_shlibpath_var_GCJ=no
15681 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15682 runpath_var=LD_RUN_PATH
15683 hardcode_runpath_var=yes
15684 ;;
15685
15686 solaris*)
15687 no_undefined_flag_GCJ=' -z text'
15688 if test "$GCC" = yes; then
15689 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15692 else
15693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15696 fi
15697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15698 hardcode_shlibpath_var_GCJ=no
15699 case $host_os in
15700 solaris2.[0-5] | solaris2.[0-5].*) ;;
15701 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15702 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15703 esac
15704 link_all_deplibs_GCJ=yes
15705 ;;
15706
15707 sunos4*)
15708 if test "x$host_vendor" = xsequent; then
15709 # Use $CC to link under sequent, because it throws in some extra .o
15710 # files that make .init and .fini sections work.
15711 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15712 else
15713 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15714 fi
15715 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15716 hardcode_direct_GCJ=yes
15717 hardcode_minus_L_GCJ=yes
15718 hardcode_shlibpath_var_GCJ=no
15719 ;;
15720
15721 sysv4)
15722 case $host_vendor in
15723 sni)
15724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 hardcode_direct_GCJ=yes # is this really true???
15726 ;;
15727 siemens)
15728 ## LD is ld it makes a PLAMLIB
15729 ## CC just makes a GrossModule.
15730 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15731 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15732 hardcode_direct_GCJ=no
15733 ;;
15734 motorola)
15735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15737 ;;
15738 esac
15739 runpath_var='LD_RUN_PATH'
15740 hardcode_shlibpath_var_GCJ=no
15741 ;;
15742
15743 sysv4.3*)
15744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745 hardcode_shlibpath_var_GCJ=no
15746 export_dynamic_flag_spec_GCJ='-Bexport'
15747 ;;
15748
15749 sysv4*MP*)
15750 if test -d /usr/nec; then
15751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_shlibpath_var_GCJ=no
15753 runpath_var=LD_RUN_PATH
15754 hardcode_runpath_var=yes
15755 ld_shlibs_GCJ=yes
15756 fi
15757 ;;
15758
15759 sysv4.2uw2*)
15760 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_direct_GCJ=yes
15762 hardcode_minus_L_GCJ=no
15763 hardcode_shlibpath_var_GCJ=no
15764 hardcode_runpath_var=yes
15765 runpath_var=LD_RUN_PATH
15766 ;;
15767
15768 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15769 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15770 if test "$GCC" = yes; then
15771 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772 else
15773 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 fi
15775 runpath_var='LD_RUN_PATH'
15776 hardcode_shlibpath_var_GCJ=no
15777 ;;
15778
15779 sysv5*)
15780 no_undefined_flag_GCJ=' -z text'
15781 # $CC -shared without GNU ld will not create a library from C++
15782 # object files and a static libstdc++, better avoid it by now
15783 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15784 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15786 hardcode_libdir_flag_spec_GCJ=
15787 hardcode_shlibpath_var_GCJ=no
15788 runpath_var='LD_RUN_PATH'
15789 ;;
15790
15791 uts4*)
15792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15794 hardcode_shlibpath_var_GCJ=no
15795 ;;
15796
15797 *)
15798 ld_shlibs_GCJ=no
15799 ;;
15800 esac
15801 fi
15802
15803echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15804echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15805test "$ld_shlibs_GCJ" = no && can_build_shared=no
15806
15807variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15808if test "$GCC" = yes; then
15809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15810fi
15811
15812#
15813# Do we need to explicitly link libc?
15814#
15815case "x$archive_cmds_need_lc_GCJ" in
15816x|xyes)
15817 # Assume -lc should be added
15818 archive_cmds_need_lc_GCJ=yes
15819
15820 if test "$enable_shared" = yes && test "$GCC" = yes; then
15821 case $archive_cmds_GCJ in
15822 *'~'*)
15823 # FIXME: we may have to deal with multi-command sequences.
15824 ;;
15825 '$CC '*)
15826 # Test whether the compiler implicitly links with -lc since on some
15827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15828 # to ld, don't add -lc before -lgcc.
15829 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15830echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15831 $rm conftest*
15832 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15833
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } 2>conftest.err; then
15839 soname=conftest
15840 lib=conftest
15841 libobjs=conftest.$ac_objext
15842 deplibs=
15843 wl=$lt_prog_compiler_wl_GCJ
15844 compiler_flags=-v
15845 linker_flags=-v
15846 verstring=
15847 output_objdir=.
15848 libname=conftest
15849 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15850 allow_undefined_flag_GCJ=
15851 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15852 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }
15856 then
15857 archive_cmds_need_lc_GCJ=no
15858 else
15859 archive_cmds_need_lc_GCJ=yes
15860 fi
15861 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15862 else
15863 cat conftest.err 1>&5
15864 fi
15865 $rm conftest*
15866 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15867echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15868 ;;
15869 esac
15870 fi
15871 ;;
15872esac
15873
15874echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15875echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15876hardcode_action_GCJ=
15877if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15878 test -n "$runpath_var GCJ" || \
15879 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15880
15881 # We can hardcode non-existant directories.
15882 if test "$hardcode_direct_GCJ" != no &&
15883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15884 # have to relink, otherwise we might link with an installed library
15885 # when we should be linking with a yet-to-be-installed one
15886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15887 test "$hardcode_minus_L_GCJ" != no; then
15888 # Linking always hardcodes the temporary library directory.
15889 hardcode_action_GCJ=relink
15890 else
15891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15892 hardcode_action_GCJ=immediate
15893 fi
15894else
15895 # We cannot hardcode anything, or else we can only hardcode existing
15896 # directories.
15897 hardcode_action_GCJ=unsupported
15898fi
15899echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15900echo "${ECHO_T}$hardcode_action_GCJ" >&6
15901
15902if test "$hardcode_action_GCJ" = relink; then
15903 # Fast installation is not supported
15904 enable_fast_install=no
15905elif test "$shlibpath_overrides_runpath" = yes ||
15906 test "$enable_shared" = no; then
15907 # Fast installation is not necessary
15908 enable_fast_install=needless
15909fi
15910
15911striplib=
15912old_striplib=
15913echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15914echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15915if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15916 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15917 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15918 echo "$as_me:$LINENO: result: yes" >&5
15919echo "${ECHO_T}yes" >&6
15920else
15921# FIXME - insert some real tests, host_os isn't really good enough
15922 case $host_os in
15923 darwin*)
15924 if test -n "$STRIP" ; then
15925 striplib="$STRIP -x"
15926 echo "$as_me:$LINENO: result: yes" >&5
15927echo "${ECHO_T}yes" >&6
15928 else
15929 echo "$as_me:$LINENO: result: no" >&5
15930echo "${ECHO_T}no" >&6
15931fi
15932 ;;
15933 *)
15934 echo "$as_me:$LINENO: result: no" >&5
15935echo "${ECHO_T}no" >&6
15936 ;;
15937 esac
15938fi
15939
15940echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15941echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15942library_names_spec=
15943libname_spec='lib$name'
15944soname_spec=
15945shrext=".so"
15946postinstall_cmds=
15947postuninstall_cmds=
15948finish_cmds=
15949finish_eval=
15950shlibpath_var=
15951shlibpath_overrides_runpath=unknown
15952version_type=none
15953dynamic_linker="$host_os ld.so"
15954sys_lib_dlsearch_path_spec="/lib /usr/lib"
15955if test "$GCC" = yes; then
15956 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15957 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15958 # if the path contains ";" then we assume it to be the separator
15959 # otherwise default to the standard path separator (i.e. ":") - it is
15960 # assumed that no part of a normal pathname contains ";" but that should
15961 # okay in the real world where ";" in dirpaths is itself problematic.
15962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15963 else
15964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15965 fi
15966else
15967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15968fi
15969need_lib_prefix=unknown
15970hardcode_into_libs=no
15971
15972# when you set need_version to no, make sure it does not cause -set_version
15973# flags to be left without arguments
15974need_version=unknown
15975
15976case $host_os in
15977aix3*)
15978 version_type=linux
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15980 shlibpath_var=LIBPATH
15981
15982 # AIX 3 has no versioning support, so we append a major version to the name.
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 ;;
15985
15986aix4* | aix5*)
15987 version_type=linux
15988 need_lib_prefix=no
15989 need_version=no
15990 hardcode_into_libs=yes
15991 if test "$host_cpu" = ia64; then
15992 # AIX 5 supports IA64
15993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 else
15996 # With GCC up to 2.95.x, collect2 would create an import file
15997 # for dependence libraries. The import file would start with
15998 # the line `#! .'. This would cause the generated library to
15999 # depend on `.', always an invalid library. This was fixed in
16000 # development snapshots of GCC prior to 3.0.
16001 case $host_os in
16002 aix4 | aix4.[01] | aix4.[01].*)
16003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16004 echo ' yes '
16005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16006 :
16007 else
16008 can_build_shared=no
16009 fi
16010 ;;
16011 esac
16012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16013 # soname into executable. Probably we can add versioning support to
16014 # collect2, so additional links can be useful in future.
16015 if test "$aix_use_runtimelinking" = yes; then
16016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16017 # instead of lib<name>.a to let people know that these are not
16018 # typical AIX shared libraries.
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 else
16021 # We preserve .a as extension for shared libraries through AIX4.2
16022 # and later when we are not doing run time linking.
16023 library_names_spec='${libname}${release}.a $libname.a'
16024 soname_spec='${libname}${release}${shared_ext}$major'
16025 fi
16026 shlibpath_var=LIBPATH
16027 fi
16028 ;;
16029
16030amigaos*)
16031 library_names_spec='$libname.ixlibrary $libname.a'
16032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16033 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'
16034 ;;
16035
16036beos*)
16037 library_names_spec='${libname}${shared_ext}'
16038 dynamic_linker="$host_os ld.so"
16039 shlibpath_var=LIBRARY_PATH
16040 ;;
16041
16042bsdi4*)
16043 version_type=linux
16044 need_version=no
16045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16051 # the default ld.so.conf also contains /usr/contrib/lib and
16052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16053 # libtool to hard-code these into programs
16054 ;;
16055
16056cygwin* | mingw* | pw32*)
16057 version_type=windows
16058 shrext=".dll"
16059 need_version=no
16060 need_lib_prefix=no
16061
16062 case $GCC,$host_os in
16063 yes,cygwin* | yes,mingw* | yes,pw32*)
16064 library_names_spec='$libname.dll.a'
16065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16066 postinstall_cmds='base_file=`basename \${file}`~
16067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16068 dldir=$destdir/`dirname \$dlpath`~
16069 test -d \$dldir || mkdir -p \$dldir~
16070 $install_prog $dir/$dlname \$dldir/$dlname'
16071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16072 dlpath=$dir/\$dldll~
16073 $rm \$dlpath'
16074 shlibpath_overrides_runpath=yes
16075
16076 case $host_os in
16077 cygwin*)
16078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16079 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16080 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16081 ;;
16082 mingw*)
16083 # MinGW DLLs use traditional 'lib' prefix
16084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16086 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16087 # It is most probably a Windows format PATH printed by
16088 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16089 # path with ; separators, and with drive letters. We can handle the
16090 # drive letters (cygwin fileutils understands them), so leave them,
16091 # especially as we might pass files found there to a mingw objdump,
16092 # which wouldn't understand a cygwinified path. Ahh.
16093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16094 else
16095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16096 fi
16097 ;;
16098 pw32*)
16099 # pw32 DLLs use 'pw' prefix rather than 'lib'
16100 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16101 ;;
16102 esac
16103 ;;
16104
16105 *)
16106 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16107 ;;
16108 esac
16109 dynamic_linker='Win32 ld.exe'
16110 # FIXME: first we should search . and the directory the executable is in
16111 shlibpath_var=PATH
16112 ;;
16113
16114darwin* | rhapsody*)
16115 dynamic_linker="$host_os dyld"
16116 version_type=darwin
16117 need_lib_prefix=no
16118 need_version=no
16119 # FIXME: Relying on posixy $() will cause problems for
16120 # cross-compilation, but unfortunately the echo tests do not
16121 # yet detect zsh echo's removal of \ escapes.
16122 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16123 soname_spec='${libname}${release}${major}$shared_ext'
16124 shlibpath_overrides_runpath=yes
16125 shlibpath_var=DYLD_LIBRARY_PATH
16126 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16127 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16128 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16129 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"`
16130 fi
16131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16132 ;;
16133
16134dgux*)
16135 version_type=linux
16136 need_lib_prefix=no
16137 need_version=no
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16139 soname_spec='${libname}${release}${shared_ext}$major'
16140 shlibpath_var=LD_LIBRARY_PATH
16141 ;;
16142
16143freebsd1*)
16144 dynamic_linker=no
16145 ;;
16146
16147freebsd*)
16148 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16149 version_type=freebsd-$objformat
16150 case $version_type in
16151 freebsd-elf*)
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16153 need_version=no
16154 need_lib_prefix=no
16155 ;;
16156 freebsd-*)
16157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16158 need_version=yes
16159 ;;
16160 esac
16161 shlibpath_var=LD_LIBRARY_PATH
16162 case $host_os in
16163 freebsd2*)
16164 shlibpath_overrides_runpath=yes
16165 ;;
16166 freebsd3.01* | freebsdelf3.01*)
16167 shlibpath_overrides_runpath=yes
16168 hardcode_into_libs=yes
16169 ;;
16170 *) # from 3.2 on
16171 shlibpath_overrides_runpath=no
16172 hardcode_into_libs=yes
16173 ;;
16174 esac
16175 ;;
16176
16177gnu*)
16178 version_type=linux
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 hardcode_into_libs=yes
16185 ;;
16186
16187hpux9* | hpux10* | hpux11*)
16188 # Give a soname corresponding to the major version so that dld.sl refuses to
16189 # link against other versions.
16190 version_type=sunos
16191 need_lib_prefix=no
16192 need_version=no
16193 case "$host_cpu" in
16194 ia64*)
16195 shrext='.so'
16196 hardcode_into_libs=yes
16197 dynamic_linker="$host_os dld.so"
16198 shlibpath_var=LD_LIBRARY_PATH
16199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 if test "X$HPUX_IA64_MODE" = X32; then
16203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16204 else
16205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16206 fi
16207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16208 ;;
16209 hppa*64*)
16210 shrext='.sl'
16211 hardcode_into_libs=yes
16212 dynamic_linker="$host_os dld.sl"
16213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16219 ;;
16220 *)
16221 shrext='.sl'
16222 dynamic_linker="$host_os dld.sl"
16223 shlibpath_var=SHLIB_PATH
16224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 ;;
16228 esac
16229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16230 postinstall_cmds='chmod 555 $lib'
16231 ;;
16232
16233irix5* | irix6* | nonstopux*)
16234 case $host_os in
16235 nonstopux*) version_type=nonstopux ;;
16236 *)
16237 if test "$lt_cv_prog_gnu_ld" = yes; then
16238 version_type=linux
16239 else
16240 version_type=irix
16241 fi ;;
16242 esac
16243 need_lib_prefix=no
16244 need_version=no
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16247 case $host_os in
16248 irix5* | nonstopux*)
16249 libsuff= shlibsuff=
16250 ;;
16251 *)
16252 case $LD in # libtool.m4 will add one of these switches to LD
16253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254 libsuff= shlibsuff= libmagic=32-bit;;
16255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256 libsuff=32 shlibsuff=N32 libmagic=N32;;
16257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16259 *) libsuff= shlibsuff= libmagic=never-match;;
16260 esac
16261 ;;
16262 esac
16263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264 shlibpath_overrides_runpath=no
16265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16267 hardcode_into_libs=yes
16268 ;;
16269
16270# No shared lib support for Linux oldld, aout, or coff.
16271linux*oldld* | linux*aout* | linux*coff*)
16272 dynamic_linker=no
16273 ;;
16274
16275# This must be Linux ELF.
16276linux*)
16277 version_type=linux
16278 need_lib_prefix=no
16279 need_version=no
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=no
16285 # This implies no fast_install, which is unacceptable.
16286 # Some rework will be needed to allow for fast_install
16287 # before this can be enabled.
16288 hardcode_into_libs=yes
16289
16290 # We used to test for /lib/ld.so.1 and disable shared libraries on
16291 # powerpc, because MkLinux only supported shared libraries with the
16292 # GNU dynamic linker. Since this was broken with cross compilers,
16293 # most powerpc-linux boxes support dynamic linking these days and
16294 # people can always --disable-shared, the test was removed, and we
16295 # assume the GNU/Linux dynamic linker is in use.
16296 dynamic_linker='GNU/Linux ld.so'
16297 ;;
16298
16299netbsd*)
16300 version_type=sunos
16301 need_lib_prefix=no
16302 need_version=no
16303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16306 dynamic_linker='NetBSD (a.out) ld.so'
16307 else
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 dynamic_linker='NetBSD ld.elf_so'
16311 fi
16312 shlibpath_var=LD_LIBRARY_PATH
16313 shlibpath_overrides_runpath=yes
16314 hardcode_into_libs=yes
16315 ;;
16316
16317newsos6)
16318 version_type=linux
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16322 ;;
16323
16324nto-qnx)
16325 version_type=linux
16326 need_lib_prefix=no
16327 need_version=no
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=yes
16332 ;;
16333
16334openbsd*)
16335 version_type=sunos
16336 need_lib_prefix=no
16337 need_version=no
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16340 shlibpath_var=LD_LIBRARY_PATH
16341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16342 case $host_os in
16343 openbsd2.[89] | openbsd2.[89].*)
16344 shlibpath_overrides_runpath=no
16345 ;;
16346 *)
16347 shlibpath_overrides_runpath=yes
16348 ;;
16349 esac
16350 else
16351 shlibpath_overrides_runpath=yes
16352 fi
16353 ;;
16354
16355os2*)
16356 libname_spec='$name'
16357 shrext=".dll"
16358 need_lib_prefix=no
16359 library_names_spec='$libname${shared_ext} $libname.a'
16360 dynamic_linker='OS/2 ld.exe'
16361 shlibpath_var=LIBPATH
16362 ;;
16363
16364osf3* | osf4* | osf5*)
16365 version_type=osf
16366 need_lib_prefix=no
16367 need_version=no
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16373 ;;
16374
16375sco3.2v5*)
16376 version_type=osf
16377 soname_spec='${libname}${release}${shared_ext}$major'
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 ;;
16381
16382solaris*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16391 # ldd complains unless libraries are executable
16392 postinstall_cmds='chmod +x $lib'
16393 ;;
16394
16395sunos4*)
16396 version_type=sunos
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes
16401 if test "$with_gnu_ld" = yes; then
16402 need_lib_prefix=no
16403 fi
16404 need_version=yes
16405 ;;
16406
16407sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16408 version_type=linux
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 case $host_vendor in
16413 sni)
16414 shlibpath_overrides_runpath=no
16415 need_lib_prefix=no
16416 export_dynamic_flag_spec='${wl}-Blargedynsym'
16417 runpath_var=LD_RUN_PATH
16418 ;;
16419 siemens)
16420 need_lib_prefix=no
16421 ;;
16422 motorola)
16423 need_lib_prefix=no
16424 need_version=no
16425 shlibpath_overrides_runpath=no
16426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16427 ;;
16428 esac
16429 ;;
16430
16431sysv4*MP*)
16432 if test -d /usr/nec ;then
16433 version_type=linux
16434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16435 soname_spec='$libname${shared_ext}.$major'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 fi
16438 ;;
16439
16440uts4*)
16441 version_type=linux
16442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16443 soname_spec='${libname}${release}${shared_ext}$major'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 ;;
16446
16447*)
16448 dynamic_linker=no
16449 ;;
16450esac
16451echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16452echo "${ECHO_T}$dynamic_linker" >&6
16453test "$dynamic_linker" = no && can_build_shared=no
16454
16455if test "x$enable_dlopen" != xyes; then
16456 enable_dlopen=unknown
16457 enable_dlopen_self=unknown
16458 enable_dlopen_self_static=unknown
16459else
16460 lt_cv_dlopen=no
16461 lt_cv_dlopen_libs=
16462
16463 case $host_os in
16464 beos*)
16465 lt_cv_dlopen="load_add_on"
16466 lt_cv_dlopen_libs=
16467 lt_cv_dlopen_self=yes
16468 ;;
16469
16470 mingw* | pw32*)
16471 lt_cv_dlopen="LoadLibrary"
16472 lt_cv_dlopen_libs=
16473 ;;
16474
16475 cygwin*)
16476 lt_cv_dlopen="dlopen"
16477 lt_cv_dlopen_libs=
16478 ;;
16479
16480 darwin*)
16481 # if libdl is installed we need to link against it
16482 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16483echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16484if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486else
16487 ac_check_lib_save_LIBS=$LIBS
16488LIBS="-ldl $LIBS"
16489cat >conftest.$ac_ext <<_ACEOF
16490#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016491/* confdefs.h. */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016496
16497/* Override any gcc2 internal prototype to avoid an error. */
16498#ifdef __cplusplus
16499extern "C"
16500#endif
16501/* We use char because int might match the return type of a gcc2
16502 builtin and then its argument prototype would still apply. */
16503char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016504int
16505main ()
16506{
16507dlopen ();
16508 ;
16509 return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext conftest$ac_exeext
16513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514 (eval $ac_link) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -s conftest$ac_exeext'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_lib_dl_dlopen=yes
16525else
16526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016527sed 's/^/| /' conftest.$ac_ext >&5
16528
John Criswell47fdd832003-07-14 16:52:07 +000016529ac_cv_lib_dl_dlopen=no
16530fi
16531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16532LIBS=$ac_check_lib_save_LIBS
16533fi
16534echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16535echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16536if test $ac_cv_lib_dl_dlopen = yes; then
16537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16538else
16539
16540 lt_cv_dlopen="dyld"
16541 lt_cv_dlopen_libs=
16542 lt_cv_dlopen_self=yes
16543
16544fi
16545
16546 ;;
16547
16548 *)
16549 echo "$as_me:$LINENO: checking for shl_load" >&5
16550echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16551if test "${ac_cv_func_shl_load+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554 cat >conftest.$ac_ext <<_ACEOF
16555#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016561/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016562 which can conflict with char shl_load (); below.
16563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564 <limits.h> exists even on freestanding compilers. */
16565#ifdef __STDC__
16566# include <limits.h>
16567#else
16568# include <assert.h>
16569#endif
John Criswell47fdd832003-07-14 16:52:07 +000016570/* Override any gcc2 internal prototype to avoid an error. */
16571#ifdef __cplusplus
16572extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016573{
John Criswell47fdd832003-07-14 16:52:07 +000016574#endif
16575/* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16577char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016578/* The GNU C library defines this for functions which it implements
16579 to always fail with ENOSYS. Some functions are actually named
16580 something starting with __ and the normal name is an alias. */
16581#if defined (__stub_shl_load) || defined (__stub___shl_load)
16582choke me
16583#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016584char (*f) () = shl_load;
16585#endif
16586#ifdef __cplusplus
16587}
John Criswell47fdd832003-07-14 16:52:07 +000016588#endif
16589
John Criswell0c38eaf2003-09-10 15:17:25 +000016590int
16591main ()
16592{
16593return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016594 ;
16595 return 0;
16596}
16597_ACEOF
16598rm -f conftest.$ac_objext conftest$ac_exeext
16599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_func_shl_load=yes
16611else
16612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016613sed 's/^/| /' conftest.$ac_ext >&5
16614
John Criswell47fdd832003-07-14 16:52:07 +000016615ac_cv_func_shl_load=no
16616fi
16617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16618fi
16619echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16620echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16621if test $ac_cv_func_shl_load = yes; then
16622 lt_cv_dlopen="shl_load"
16623else
16624 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16625echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16626if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16628else
16629 ac_check_lib_save_LIBS=$LIBS
16630LIBS="-ldld $LIBS"
16631cat >conftest.$ac_ext <<_ACEOF
16632#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016638
16639/* Override any gcc2 internal prototype to avoid an error. */
16640#ifdef __cplusplus
16641extern "C"
16642#endif
16643/* We use char because int might match the return type of a gcc2
16644 builtin and then its argument prototype would still apply. */
16645char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016646int
16647main ()
16648{
16649shl_load ();
16650 ;
16651 return 0;
16652}
16653_ACEOF
16654rm -f conftest.$ac_objext conftest$ac_exeext
16655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16656 (eval $ac_link) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_cv_lib_dld_shl_load=yes
16667else
16668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016669sed 's/^/| /' conftest.$ac_ext >&5
16670
John Criswell47fdd832003-07-14 16:52:07 +000016671ac_cv_lib_dld_shl_load=no
16672fi
16673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674LIBS=$ac_check_lib_save_LIBS
16675fi
16676echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16677echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16678if test $ac_cv_lib_dld_shl_load = yes; then
16679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16680else
16681 echo "$as_me:$LINENO: checking for dlopen" >&5
16682echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16683if test "${ac_cv_func_dlopen+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685else
16686 cat >conftest.$ac_ext <<_ACEOF
16687#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016688/* confdefs.h. */
16689_ACEOF
16690cat confdefs.h >>conftest.$ac_ext
16691cat >>conftest.$ac_ext <<_ACEOF
16692/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016693/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016694 which can conflict with char dlopen (); below.
16695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16696 <limits.h> exists even on freestanding compilers. */
16697#ifdef __STDC__
16698# include <limits.h>
16699#else
16700# include <assert.h>
16701#endif
John Criswell47fdd832003-07-14 16:52:07 +000016702/* Override any gcc2 internal prototype to avoid an error. */
16703#ifdef __cplusplus
16704extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016705{
John Criswell47fdd832003-07-14 16:52:07 +000016706#endif
16707/* We use char because int might match the return type of a gcc2
16708 builtin and then its argument prototype would still apply. */
16709char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016710/* The GNU C library defines this for functions which it implements
16711 to always fail with ENOSYS. Some functions are actually named
16712 something starting with __ and the normal name is an alias. */
16713#if defined (__stub_dlopen) || defined (__stub___dlopen)
16714choke me
16715#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016716char (*f) () = dlopen;
16717#endif
16718#ifdef __cplusplus
16719}
John Criswell47fdd832003-07-14 16:52:07 +000016720#endif
16721
John Criswell0c38eaf2003-09-10 15:17:25 +000016722int
16723main ()
16724{
16725return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016726 ;
16727 return 0;
16728}
16729_ACEOF
16730rm -f conftest.$ac_objext conftest$ac_exeext
16731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732 (eval $ac_link) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -s conftest$ac_exeext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_func_dlopen=yes
16743else
16744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016745sed 's/^/| /' conftest.$ac_ext >&5
16746
John Criswell47fdd832003-07-14 16:52:07 +000016747ac_cv_func_dlopen=no
16748fi
16749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16750fi
16751echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16752echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16753if test $ac_cv_func_dlopen = yes; then
16754 lt_cv_dlopen="dlopen"
16755else
16756 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16757echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16758if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761 ac_check_lib_save_LIBS=$LIBS
16762LIBS="-ldl $LIBS"
16763cat >conftest.$ac_ext <<_ACEOF
16764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016770
16771/* Override any gcc2 internal prototype to avoid an error. */
16772#ifdef __cplusplus
16773extern "C"
16774#endif
16775/* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016778int
16779main ()
16780{
16781dlopen ();
16782 ;
16783 return 0;
16784}
16785_ACEOF
16786rm -f conftest.$ac_objext conftest$ac_exeext
16787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16795 ac_status=$?
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_dl_dlopen=yes
16799else
16800 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016801sed 's/^/| /' conftest.$ac_ext >&5
16802
John Criswell47fdd832003-07-14 16:52:07 +000016803ac_cv_lib_dl_dlopen=no
16804fi
16805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806LIBS=$ac_check_lib_save_LIBS
16807fi
16808echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16809echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16810if test $ac_cv_lib_dl_dlopen = yes; then
16811 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16812else
16813 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16814echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16815if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16817else
16818 ac_check_lib_save_LIBS=$LIBS
16819LIBS="-lsvld $LIBS"
16820cat >conftest.$ac_ext <<_ACEOF
16821#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016827
16828/* Override any gcc2 internal prototype to avoid an error. */
16829#ifdef __cplusplus
16830extern "C"
16831#endif
16832/* We use char because int might match the return type of a gcc2
16833 builtin and then its argument prototype would still apply. */
16834char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016835int
16836main ()
16837{
16838dlopen ();
16839 ;
16840 return 0;
16841}
16842_ACEOF
16843rm -f conftest.$ac_objext conftest$ac_exeext
16844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_lib_svld_dlopen=yes
16856else
16857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016858sed 's/^/| /' conftest.$ac_ext >&5
16859
John Criswell47fdd832003-07-14 16:52:07 +000016860ac_cv_lib_svld_dlopen=no
16861fi
16862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16863LIBS=$ac_check_lib_save_LIBS
16864fi
16865echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16866echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16867if test $ac_cv_lib_svld_dlopen = yes; then
16868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16869else
16870 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16871echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16872if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874else
16875 ac_check_lib_save_LIBS=$LIBS
16876LIBS="-ldld $LIBS"
16877cat >conftest.$ac_ext <<_ACEOF
16878#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016879/* confdefs.h. */
16880_ACEOF
16881cat confdefs.h >>conftest.$ac_ext
16882cat >>conftest.$ac_ext <<_ACEOF
16883/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016884
16885/* Override any gcc2 internal prototype to avoid an error. */
16886#ifdef __cplusplus
16887extern "C"
16888#endif
16889/* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16891char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016892int
16893main ()
16894{
16895dld_link ();
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900rm -f conftest.$ac_objext conftest$ac_exeext
16901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902 (eval $ac_link) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -s conftest$ac_exeext'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_lib_dld_dld_link=yes
16913else
16914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016915sed 's/^/| /' conftest.$ac_ext >&5
16916
John Criswell47fdd832003-07-14 16:52:07 +000016917ac_cv_lib_dld_dld_link=no
16918fi
16919rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16920LIBS=$ac_check_lib_save_LIBS
16921fi
16922echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16923echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16924if test $ac_cv_lib_dld_dld_link = yes; then
16925 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16926fi
16927
16928
16929fi
16930
16931
16932fi
16933
16934
16935fi
16936
16937
16938fi
16939
16940
16941fi
16942
16943 ;;
16944 esac
16945
16946 if test "x$lt_cv_dlopen" != xno; then
16947 enable_dlopen=yes
16948 else
16949 enable_dlopen=no
16950 fi
16951
16952 case $lt_cv_dlopen in
16953 dlopen)
16954 save_CPPFLAGS="$CPPFLAGS"
16955 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16956
16957 save_LDFLAGS="$LDFLAGS"
16958 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16959
16960 save_LIBS="$LIBS"
16961 LIBS="$lt_cv_dlopen_libs $LIBS"
16962
16963 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16964echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16965if test "${lt_cv_dlopen_self+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16967else
16968 if test "$cross_compiling" = yes; then :
16969 lt_cv_dlopen_self=cross
16970else
16971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16972 lt_status=$lt_dlunknown
16973 cat > conftest.$ac_ext <<EOF
Brian Gaeke26be9c52004-01-13 06:43:16 +000016974#line 16974 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016975#include "confdefs.h"
16976
16977#if HAVE_DLFCN_H
16978#include <dlfcn.h>
16979#endif
16980
16981#include <stdio.h>
16982
16983#ifdef RTLD_GLOBAL
16984# define LT_DLGLOBAL RTLD_GLOBAL
16985#else
16986# ifdef DL_GLOBAL
16987# define LT_DLGLOBAL DL_GLOBAL
16988# else
16989# define LT_DLGLOBAL 0
16990# endif
16991#endif
16992
16993/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16994 find out it does not work in some platform. */
16995#ifndef LT_DLLAZY_OR_NOW
16996# ifdef RTLD_LAZY
16997# define LT_DLLAZY_OR_NOW RTLD_LAZY
16998# else
16999# ifdef DL_LAZY
17000# define LT_DLLAZY_OR_NOW DL_LAZY
17001# else
17002# ifdef RTLD_NOW
17003# define LT_DLLAZY_OR_NOW RTLD_NOW
17004# else
17005# ifdef DL_NOW
17006# define LT_DLLAZY_OR_NOW DL_NOW
17007# else
17008# define LT_DLLAZY_OR_NOW 0
17009# endif
17010# endif
17011# endif
17012# endif
17013#endif
17014
17015#ifdef __cplusplus
17016extern "C" void exit (int);
17017#endif
17018
17019void fnord() { int i=42;}
17020int main ()
17021{
17022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17023 int status = $lt_dlunknown;
17024
17025 if (self)
17026 {
17027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17028 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17029 /* dlclose (self); */
17030 }
17031
17032 exit (status);
17033}
17034EOF
17035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036 (eval $ac_link) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17040 (./conftest; exit; ) 2>/dev/null
17041 lt_status=$?
17042 case x$lt_status in
17043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17045 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17046 esac
17047 else :
17048 # compilation failed
17049 lt_cv_dlopen_self=no
17050 fi
17051fi
17052rm -fr conftest*
17053
17054
17055fi
17056echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17057echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17058
17059 if test "x$lt_cv_dlopen_self" = xyes; then
17060 LDFLAGS="$LDFLAGS $link_static_flag"
17061 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17062echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17063if test "${lt_cv_dlopen_self_static+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 if test "$cross_compiling" = yes; then :
17067 lt_cv_dlopen_self_static=cross
17068else
17069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17070 lt_status=$lt_dlunknown
17071 cat > conftest.$ac_ext <<EOF
Brian Gaeke26be9c52004-01-13 06:43:16 +000017072#line 17072 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017073#include "confdefs.h"
17074
17075#if HAVE_DLFCN_H
17076#include <dlfcn.h>
17077#endif
17078
17079#include <stdio.h>
17080
17081#ifdef RTLD_GLOBAL
17082# define LT_DLGLOBAL RTLD_GLOBAL
17083#else
17084# ifdef DL_GLOBAL
17085# define LT_DLGLOBAL DL_GLOBAL
17086# else
17087# define LT_DLGLOBAL 0
17088# endif
17089#endif
17090
17091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17092 find out it does not work in some platform. */
17093#ifndef LT_DLLAZY_OR_NOW
17094# ifdef RTLD_LAZY
17095# define LT_DLLAZY_OR_NOW RTLD_LAZY
17096# else
17097# ifdef DL_LAZY
17098# define LT_DLLAZY_OR_NOW DL_LAZY
17099# else
17100# ifdef RTLD_NOW
17101# define LT_DLLAZY_OR_NOW RTLD_NOW
17102# else
17103# ifdef DL_NOW
17104# define LT_DLLAZY_OR_NOW DL_NOW
17105# else
17106# define LT_DLLAZY_OR_NOW 0
17107# endif
17108# endif
17109# endif
17110# endif
17111#endif
17112
17113#ifdef __cplusplus
17114extern "C" void exit (int);
17115#endif
17116
17117void fnord() { int i=42;}
17118int main ()
17119{
17120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17121 int status = $lt_dlunknown;
17122
17123 if (self)
17124 {
17125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17127 /* dlclose (self); */
17128 }
17129
17130 exit (status);
17131}
17132EOF
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17138 (./conftest; exit; ) 2>/dev/null
17139 lt_status=$?
17140 case x$lt_status in
17141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17143 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17144 esac
17145 else :
17146 # compilation failed
17147 lt_cv_dlopen_self_static=no
17148 fi
17149fi
17150rm -fr conftest*
17151
17152
17153fi
17154echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17155echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17156 fi
17157
17158 CPPFLAGS="$save_CPPFLAGS"
17159 LDFLAGS="$save_LDFLAGS"
17160 LIBS="$save_LIBS"
17161 ;;
17162 esac
17163
17164 case $lt_cv_dlopen_self in
17165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17166 *) enable_dlopen_self=unknown ;;
17167 esac
17168
17169 case $lt_cv_dlopen_self_static in
17170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17171 *) enable_dlopen_self_static=unknown ;;
17172 esac
17173fi
17174
17175
17176# The else clause should only fire when bootstrapping the
17177# libtool distribution, otherwise you forgot to ship ltmain.sh
17178# with your package, and you will get complaints that there are
17179# no rules to generate ltmain.sh.
17180if test -f "$ltmain"; then
17181 # See if we are running on zsh, and set the options which allow our commands through
17182 # without removal of \ escapes.
17183 if test -n "${ZSH_VERSION+set}" ; then
17184 setopt NO_GLOB_SUBST
17185 fi
17186 # Now quote all the things that may contain metacharacters while being
17187 # careful not to overquote the AC_SUBSTed values. We take copies of the
17188 # variables and quote the copies for generation of the libtool script.
17189 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17192 deplibs_check_method reload_flag reload_cmds need_locks \
17193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17194 lt_cv_sys_global_symbol_to_c_name_address \
17195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17196 old_postinstall_cmds old_postuninstall_cmds \
17197 compiler_GCJ \
17198 CC_GCJ \
17199 LD_GCJ \
17200 lt_prog_compiler_wl_GCJ \
17201 lt_prog_compiler_pic_GCJ \
17202 lt_prog_compiler_static_GCJ \
17203 lt_prog_compiler_no_builtin_flag_GCJ \
17204 export_dynamic_flag_spec_GCJ \
17205 thread_safe_flag_spec_GCJ \
17206 whole_archive_flag_spec_GCJ \
17207 enable_shared_with_static_runtimes_GCJ \
17208 old_archive_cmds_GCJ \
17209 old_archive_from_new_cmds_GCJ \
17210 predep_objects_GCJ \
17211 postdep_objects_GCJ \
17212 predeps_GCJ \
17213 postdeps_GCJ \
17214 compiler_lib_search_path_GCJ \
17215 archive_cmds_GCJ \
17216 archive_expsym_cmds_GCJ \
17217 postinstall_cmds_GCJ \
17218 postuninstall_cmds_GCJ \
17219 old_archive_from_expsyms_cmds_GCJ \
17220 allow_undefined_flag_GCJ \
17221 no_undefined_flag_GCJ \
17222 export_symbols_cmds_GCJ \
17223 hardcode_libdir_flag_spec_GCJ \
17224 hardcode_libdir_flag_spec_ld_GCJ \
17225 hardcode_libdir_separator_GCJ \
17226 hardcode_automatic_GCJ \
17227 module_cmds_GCJ \
17228 module_expsym_cmds_GCJ \
17229 lt_cv_prog_compiler_c_o_GCJ \
17230 exclude_expsyms_GCJ \
17231 include_expsyms_GCJ; do
17232
17233 case $var in
17234 old_archive_cmds_GCJ | \
17235 old_archive_from_new_cmds_GCJ | \
17236 archive_cmds_GCJ | \
17237 archive_expsym_cmds_GCJ | \
17238 module_cmds_GCJ | \
17239 module_expsym_cmds_GCJ | \
17240 old_archive_from_expsyms_cmds_GCJ | \
17241 export_symbols_cmds_GCJ | \
17242 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17243 postinstall_cmds | postuninstall_cmds | \
17244 old_postinstall_cmds | old_postuninstall_cmds | \
17245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17246 # Double-quote double-evaled strings.
17247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17248 ;;
17249 *)
17250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17251 ;;
17252 esac
17253 done
17254
17255 case $lt_echo in
17256 *'\$0 --fallback-echo"')
17257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17258 ;;
17259 esac
17260
17261cfgfile="$ofile"
17262
17263 cat <<__EOF__ >> "$cfgfile"
17264# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17265
17266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17267
17268# Shell to use when invoking shell scripts.
17269SHELL=$lt_SHELL
17270
17271# Whether or not to build shared libraries.
17272build_libtool_libs=$enable_shared
17273
17274# Whether or not to build static libraries.
17275build_old_libs=$enable_static
17276
17277# Whether or not to add -lc for building shared libraries.
17278build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17279
17280# Whether or not to disallow shared libs when runtime libs are static
17281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17282
17283# Whether or not to optimize for fast installation.
17284fast_install=$enable_fast_install
17285
17286# The host system.
17287host_alias=$host_alias
17288host=$host
17289
17290# An echo program that does not interpret backslashes.
17291echo=$lt_echo
17292
17293# The archiver.
17294AR=$lt_AR
17295AR_FLAGS=$lt_AR_FLAGS
17296
17297# A C compiler.
17298LTCC=$lt_LTCC
17299
17300# A language-specific compiler.
17301CC=$lt_compiler_GCJ
17302
17303# Is the compiler the GNU C compiler?
17304with_gcc=$GCC_GCJ
17305
17306# An ERE matcher.
17307EGREP=$lt_EGREP
17308
17309# The linker used to build libraries.
17310LD=$lt_LD_GCJ
17311
17312# Whether we need hard or soft links.
17313LN_S=$lt_LN_S
17314
17315# A BSD-compatible nm program.
17316NM=$lt_NM
17317
17318# A symbol stripping program
17319STRIP=$STRIP
17320
17321# Used to examine libraries when file_magic_cmd begins "file"
17322MAGIC_CMD=$MAGIC_CMD
17323
17324# Used on cygwin: DLL creation program.
17325DLLTOOL="$DLLTOOL"
17326
17327# Used on cygwin: object dumper.
17328OBJDUMP="$OBJDUMP"
17329
17330# Used on cygwin: assembler.
17331AS="$AS"
17332
17333# The name of the directory that contains temporary libtool files.
17334objdir=$objdir
17335
17336# How to create reloadable object files.
17337reload_flag=$lt_reload_flag
17338reload_cmds=$lt_reload_cmds
17339
17340# How to pass a linker flag through the compiler.
17341wl=$lt_lt_prog_compiler_wl_GCJ
17342
17343# Object file suffix (normally "o").
17344objext="$ac_objext"
17345
17346# Old archive suffix (normally "a").
17347libext="$libext"
17348
17349# Shared library suffix (normally ".so").
17350shrext='$shrext'
17351
17352# Executable file suffix (normally "").
17353exeext="$exeext"
17354
17355# Additional compiler flags for building library objects.
17356pic_flag=$lt_lt_prog_compiler_pic_GCJ
17357pic_mode=$pic_mode
17358
17359# What is the maximum length of a command?
17360max_cmd_len=$lt_cv_sys_max_cmd_len
17361
17362# Does compiler simultaneously support -c and -o options?
17363compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17364
17365# Must we lock files when doing compilation ?
17366need_locks=$lt_need_locks
17367
17368# Do we need the lib prefix for modules?
17369need_lib_prefix=$need_lib_prefix
17370
17371# Do we need a version for libraries?
17372need_version=$need_version
17373
17374# Whether dlopen is supported.
17375dlopen_support=$enable_dlopen
17376
17377# Whether dlopen of programs is supported.
17378dlopen_self=$enable_dlopen_self
17379
17380# Whether dlopen of statically linked programs is supported.
17381dlopen_self_static=$enable_dlopen_self_static
17382
17383# Compiler flag to prevent dynamic linking.
17384link_static_flag=$lt_lt_prog_compiler_static_GCJ
17385
17386# Compiler flag to turn off builtin functions.
17387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17388
17389# Compiler flag to allow reflexive dlopens.
17390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17391
17392# Compiler flag to generate shared objects directly from archives.
17393whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17394
17395# Compiler flag to generate thread-safe objects.
17396thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17397
17398# Library versioning type.
17399version_type=$version_type
17400
17401# Format of library name prefix.
17402libname_spec=$lt_libname_spec
17403
17404# List of archive names. First name is the real one, the rest are links.
17405# The last name is the one that the linker finds with -lNAME.
17406library_names_spec=$lt_library_names_spec
17407
17408# The coded name of the library, if different from the real name.
17409soname_spec=$lt_soname_spec
17410
17411# Commands used to build and install an old-style archive.
17412RANLIB=$lt_RANLIB
17413old_archive_cmds=$lt_old_archive_cmds_GCJ
17414old_postinstall_cmds=$lt_old_postinstall_cmds
17415old_postuninstall_cmds=$lt_old_postuninstall_cmds
17416
17417# Create an old-style archive from a shared archive.
17418old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17419
17420# Create a temporary old-style archive to link instead of a shared archive.
17421old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17422
17423# Commands used to build and install a shared archive.
17424archive_cmds=$lt_archive_cmds_GCJ
17425archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17426postinstall_cmds=$lt_postinstall_cmds
17427postuninstall_cmds=$lt_postuninstall_cmds
17428
17429# Commands used to build a loadable module (assumed same as above if empty)
17430module_cmds=$lt_module_cmds_GCJ
17431module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17432
17433# Commands to strip libraries.
17434old_striplib=$lt_old_striplib
17435striplib=$lt_striplib
17436
17437# Dependencies to place before the objects being linked to create a
17438# shared library.
17439predep_objects=$lt_predep_objects_GCJ
17440
17441# Dependencies to place after the objects being linked to create a
17442# shared library.
17443postdep_objects=$lt_postdep_objects_GCJ
17444
17445# Dependencies to place before the objects being linked to create a
17446# shared library.
17447predeps=$lt_predeps_GCJ
17448
17449# Dependencies to place after the objects being linked to create a
17450# shared library.
17451postdeps=$lt_postdeps_GCJ
17452
17453# The library search path used internally by the compiler when linking
17454# a shared library.
17455compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17456
17457# Method to check whether dependent libraries are shared objects.
17458deplibs_check_method=$lt_deplibs_check_method
17459
17460# Command to use when deplibs_check_method == file_magic.
17461file_magic_cmd=$lt_file_magic_cmd
17462
17463# Flag that allows shared libraries with undefined symbols to be built.
17464allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17465
17466# Flag that forces no undefined symbols.
17467no_undefined_flag=$lt_no_undefined_flag_GCJ
17468
17469# Commands used to finish a libtool library installation in a directory.
17470finish_cmds=$lt_finish_cmds
17471
17472# Same as above, but a single script fragment to be evaled but not shown.
17473finish_eval=$lt_finish_eval
17474
17475# Take the output of nm and produce a listing of raw symbols and C names.
17476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17477
17478# Transform the output of nm in a proper C declaration
17479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17480
17481# Transform the output of nm in a C name address pair
17482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17483
17484# This is the shared library runtime path variable.
17485runpath_var=$runpath_var
17486
17487# This is the shared library path variable.
17488shlibpath_var=$shlibpath_var
17489
17490# Is shlibpath searched before the hard-coded library search path?
17491shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17492
17493# How to hardcode a shared library path into an executable.
17494hardcode_action=$hardcode_action_GCJ
17495
17496# Whether we should hardcode library paths into libraries.
17497hardcode_into_libs=$hardcode_into_libs
17498
17499# Flag to hardcode \$libdir into a binary during linking.
17500# This must work even if \$libdir does not exist.
17501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17502
17503# If ld is used when linking, flag to hardcode \$libdir into
17504# a binary during linking. This must work even if \$libdir does
17505# not exist.
17506hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17507
17508# Whether we need a single -rpath flag with a separated argument.
17509hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17510
17511# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17512# resulting binary.
17513hardcode_direct=$hardcode_direct_GCJ
17514
17515# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17516# resulting binary.
17517hardcode_minus_L=$hardcode_minus_L_GCJ
17518
17519# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17520# the resulting binary.
17521hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17522
17523# Set to yes if building a shared library automatically hardcodes DIR into the library
17524# and all subsequent libraries and executables linked against it.
17525hardcode_automatic=$hardcode_automatic_GCJ
17526
17527# Variables whose values should be saved in libtool wrapper scripts and
17528# restored at relink time.
17529variables_saved_for_relink="$variables_saved_for_relink"
17530
17531# Whether libtool must link a program against all its dependency libraries.
17532link_all_deplibs=$link_all_deplibs_GCJ
17533
17534# Compile-time system search path for libraries
17535sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17536
17537# Run-time system search path for libraries
17538sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17539
17540# Fix the shell variable \$srcfile for the compiler.
17541fix_srcfile_path="$fix_srcfile_path_GCJ"
17542
17543# Set to yes if exported symbols are required.
17544always_export_symbols=$always_export_symbols_GCJ
17545
17546# The commands to list exported symbols.
17547export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17548
17549# The commands to extract the exported symbol list from a shared archive.
17550extract_expsyms_cmds=$lt_extract_expsyms_cmds
17551
17552# Symbols that should not be listed in the preloaded symbols.
17553exclude_expsyms=$lt_exclude_expsyms_GCJ
17554
17555# Symbols that must always be exported.
17556include_expsyms=$lt_include_expsyms_GCJ
17557
17558# ### END LIBTOOL TAG CONFIG: $tagname
17559
17560__EOF__
17561
17562
17563else
17564 # If there is no Makefile yet, we rely on a make rule to execute
17565 # `config.status --recheck' to rerun these tests and create the
17566 # libtool script then.
17567 test -f Makefile && make "$ltmain"
17568fi
17569
17570
17571ac_ext=c
17572ac_cpp='$CPP $CPPFLAGS'
17573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575ac_compiler_gnu=$ac_cv_c_compiler_gnu
17576
17577CC="$lt_save_CC"
17578
17579 else
17580 tagname=""
17581 fi
17582 ;;
17583
17584 RC)
17585
17586
17587
17588# Source file extension for RC test sources.
17589ac_ext=rc
17590
17591# Object file extension for compiled RC test sources.
17592objext=o
17593objext_RC=$objext
17594
17595# Code to be used in simple compile tests
17596lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17597
17598# Code to be used in simple link tests
17599lt_simple_link_test_code="$lt_simple_compile_test_code"
17600
17601# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17602
17603# If no C compiler was specified, use CC.
17604LTCC=${LTCC-"$CC"}
17605
17606# Allow CC to be a program name with arguments.
17607compiler=$CC
17608
17609
17610# Allow CC to be a program name with arguments.
17611lt_save_CC="$CC"
17612CC=${RC-"windres"}
17613compiler=$CC
17614compiler_RC=$CC
17615lt_cv_prog_compiler_c_o_RC=yes
17616
17617# The else clause should only fire when bootstrapping the
17618# libtool distribution, otherwise you forgot to ship ltmain.sh
17619# with your package, and you will get complaints that there are
17620# no rules to generate ltmain.sh.
17621if test -f "$ltmain"; then
17622 # See if we are running on zsh, and set the options which allow our commands through
17623 # without removal of \ escapes.
17624 if test -n "${ZSH_VERSION+set}" ; then
17625 setopt NO_GLOB_SUBST
17626 fi
17627 # Now quote all the things that may contain metacharacters while being
17628 # careful not to overquote the AC_SUBSTed values. We take copies of the
17629 # variables and quote the copies for generation of the libtool script.
17630 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17631 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633 deplibs_check_method reload_flag reload_cmds need_locks \
17634 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635 lt_cv_sys_global_symbol_to_c_name_address \
17636 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637 old_postinstall_cmds old_postuninstall_cmds \
17638 compiler_RC \
17639 CC_RC \
17640 LD_RC \
17641 lt_prog_compiler_wl_RC \
17642 lt_prog_compiler_pic_RC \
17643 lt_prog_compiler_static_RC \
17644 lt_prog_compiler_no_builtin_flag_RC \
17645 export_dynamic_flag_spec_RC \
17646 thread_safe_flag_spec_RC \
17647 whole_archive_flag_spec_RC \
17648 enable_shared_with_static_runtimes_RC \
17649 old_archive_cmds_RC \
17650 old_archive_from_new_cmds_RC \
17651 predep_objects_RC \
17652 postdep_objects_RC \
17653 predeps_RC \
17654 postdeps_RC \
17655 compiler_lib_search_path_RC \
17656 archive_cmds_RC \
17657 archive_expsym_cmds_RC \
17658 postinstall_cmds_RC \
17659 postuninstall_cmds_RC \
17660 old_archive_from_expsyms_cmds_RC \
17661 allow_undefined_flag_RC \
17662 no_undefined_flag_RC \
17663 export_symbols_cmds_RC \
17664 hardcode_libdir_flag_spec_RC \
17665 hardcode_libdir_flag_spec_ld_RC \
17666 hardcode_libdir_separator_RC \
17667 hardcode_automatic_RC \
17668 module_cmds_RC \
17669 module_expsym_cmds_RC \
17670 lt_cv_prog_compiler_c_o_RC \
17671 exclude_expsyms_RC \
17672 include_expsyms_RC; do
17673
17674 case $var in
17675 old_archive_cmds_RC | \
17676 old_archive_from_new_cmds_RC | \
17677 archive_cmds_RC | \
17678 archive_expsym_cmds_RC | \
17679 module_cmds_RC | \
17680 module_expsym_cmds_RC | \
17681 old_archive_from_expsyms_cmds_RC | \
17682 export_symbols_cmds_RC | \
17683 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684 postinstall_cmds | postuninstall_cmds | \
17685 old_postinstall_cmds | old_postuninstall_cmds | \
17686 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687 # Double-quote double-evaled strings.
17688 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17689 ;;
17690 *)
17691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17692 ;;
17693 esac
17694 done
17695
17696 case $lt_echo in
17697 *'\$0 --fallback-echo"')
17698 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17699 ;;
17700 esac
17701
17702cfgfile="$ofile"
17703
17704 cat <<__EOF__ >> "$cfgfile"
17705# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17706
17707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17708
17709# Shell to use when invoking shell scripts.
17710SHELL=$lt_SHELL
17711
17712# Whether or not to build shared libraries.
17713build_libtool_libs=$enable_shared
17714
17715# Whether or not to build static libraries.
17716build_old_libs=$enable_static
17717
17718# Whether or not to add -lc for building shared libraries.
17719build_libtool_need_lc=$archive_cmds_need_lc_RC
17720
17721# Whether or not to disallow shared libs when runtime libs are static
17722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17723
17724# Whether or not to optimize for fast installation.
17725fast_install=$enable_fast_install
17726
17727# The host system.
17728host_alias=$host_alias
17729host=$host
17730
17731# An echo program that does not interpret backslashes.
17732echo=$lt_echo
17733
17734# The archiver.
17735AR=$lt_AR
17736AR_FLAGS=$lt_AR_FLAGS
17737
17738# A C compiler.
17739LTCC=$lt_LTCC
17740
17741# A language-specific compiler.
17742CC=$lt_compiler_RC
17743
17744# Is the compiler the GNU C compiler?
17745with_gcc=$GCC_RC
17746
17747# An ERE matcher.
17748EGREP=$lt_EGREP
17749
17750# The linker used to build libraries.
17751LD=$lt_LD_RC
17752
17753# Whether we need hard or soft links.
17754LN_S=$lt_LN_S
17755
17756# A BSD-compatible nm program.
17757NM=$lt_NM
17758
17759# A symbol stripping program
17760STRIP=$STRIP
17761
17762# Used to examine libraries when file_magic_cmd begins "file"
17763MAGIC_CMD=$MAGIC_CMD
17764
17765# Used on cygwin: DLL creation program.
17766DLLTOOL="$DLLTOOL"
17767
17768# Used on cygwin: object dumper.
17769OBJDUMP="$OBJDUMP"
17770
17771# Used on cygwin: assembler.
17772AS="$AS"
17773
17774# The name of the directory that contains temporary libtool files.
17775objdir=$objdir
17776
17777# How to create reloadable object files.
17778reload_flag=$lt_reload_flag
17779reload_cmds=$lt_reload_cmds
17780
17781# How to pass a linker flag through the compiler.
17782wl=$lt_lt_prog_compiler_wl_RC
17783
17784# Object file suffix (normally "o").
17785objext="$ac_objext"
17786
17787# Old archive suffix (normally "a").
17788libext="$libext"
17789
17790# Shared library suffix (normally ".so").
17791shrext='$shrext'
17792
17793# Executable file suffix (normally "").
17794exeext="$exeext"
17795
17796# Additional compiler flags for building library objects.
17797pic_flag=$lt_lt_prog_compiler_pic_RC
17798pic_mode=$pic_mode
17799
17800# What is the maximum length of a command?
17801max_cmd_len=$lt_cv_sys_max_cmd_len
17802
17803# Does compiler simultaneously support -c and -o options?
17804compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17805
17806# Must we lock files when doing compilation ?
17807need_locks=$lt_need_locks
17808
17809# Do we need the lib prefix for modules?
17810need_lib_prefix=$need_lib_prefix
17811
17812# Do we need a version for libraries?
17813need_version=$need_version
17814
17815# Whether dlopen is supported.
17816dlopen_support=$enable_dlopen
17817
17818# Whether dlopen of programs is supported.
17819dlopen_self=$enable_dlopen_self
17820
17821# Whether dlopen of statically linked programs is supported.
17822dlopen_self_static=$enable_dlopen_self_static
17823
17824# Compiler flag to prevent dynamic linking.
17825link_static_flag=$lt_lt_prog_compiler_static_RC
17826
17827# Compiler flag to turn off builtin functions.
17828no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17829
17830# Compiler flag to allow reflexive dlopens.
17831export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17832
17833# Compiler flag to generate shared objects directly from archives.
17834whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17835
17836# Compiler flag to generate thread-safe objects.
17837thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17838
17839# Library versioning type.
17840version_type=$version_type
17841
17842# Format of library name prefix.
17843libname_spec=$lt_libname_spec
17844
17845# List of archive names. First name is the real one, the rest are links.
17846# The last name is the one that the linker finds with -lNAME.
17847library_names_spec=$lt_library_names_spec
17848
17849# The coded name of the library, if different from the real name.
17850soname_spec=$lt_soname_spec
17851
17852# Commands used to build and install an old-style archive.
17853RANLIB=$lt_RANLIB
17854old_archive_cmds=$lt_old_archive_cmds_RC
17855old_postinstall_cmds=$lt_old_postinstall_cmds
17856old_postuninstall_cmds=$lt_old_postuninstall_cmds
17857
17858# Create an old-style archive from a shared archive.
17859old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17860
17861# Create a temporary old-style archive to link instead of a shared archive.
17862old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17863
17864# Commands used to build and install a shared archive.
17865archive_cmds=$lt_archive_cmds_RC
17866archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17867postinstall_cmds=$lt_postinstall_cmds
17868postuninstall_cmds=$lt_postuninstall_cmds
17869
17870# Commands used to build a loadable module (assumed same as above if empty)
17871module_cmds=$lt_module_cmds_RC
17872module_expsym_cmds=$lt_module_expsym_cmds_RC
17873
17874# Commands to strip libraries.
17875old_striplib=$lt_old_striplib
17876striplib=$lt_striplib
17877
17878# Dependencies to place before the objects being linked to create a
17879# shared library.
17880predep_objects=$lt_predep_objects_RC
17881
17882# Dependencies to place after the objects being linked to create a
17883# shared library.
17884postdep_objects=$lt_postdep_objects_RC
17885
17886# Dependencies to place before the objects being linked to create a
17887# shared library.
17888predeps=$lt_predeps_RC
17889
17890# Dependencies to place after the objects being linked to create a
17891# shared library.
17892postdeps=$lt_postdeps_RC
17893
17894# The library search path used internally by the compiler when linking
17895# a shared library.
17896compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17897
17898# Method to check whether dependent libraries are shared objects.
17899deplibs_check_method=$lt_deplibs_check_method
17900
17901# Command to use when deplibs_check_method == file_magic.
17902file_magic_cmd=$lt_file_magic_cmd
17903
17904# Flag that allows shared libraries with undefined symbols to be built.
17905allow_undefined_flag=$lt_allow_undefined_flag_RC
17906
17907# Flag that forces no undefined symbols.
17908no_undefined_flag=$lt_no_undefined_flag_RC
17909
17910# Commands used to finish a libtool library installation in a directory.
17911finish_cmds=$lt_finish_cmds
17912
17913# Same as above, but a single script fragment to be evaled but not shown.
17914finish_eval=$lt_finish_eval
17915
17916# Take the output of nm and produce a listing of raw symbols and C names.
17917global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17918
17919# Transform the output of nm in a proper C declaration
17920global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17921
17922# Transform the output of nm in a C name address pair
17923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17924
17925# This is the shared library runtime path variable.
17926runpath_var=$runpath_var
17927
17928# This is the shared library path variable.
17929shlibpath_var=$shlibpath_var
17930
17931# Is shlibpath searched before the hard-coded library search path?
17932shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17933
17934# How to hardcode a shared library path into an executable.
17935hardcode_action=$hardcode_action_RC
17936
17937# Whether we should hardcode library paths into libraries.
17938hardcode_into_libs=$hardcode_into_libs
17939
17940# Flag to hardcode \$libdir into a binary during linking.
17941# This must work even if \$libdir does not exist.
17942hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17943
17944# If ld is used when linking, flag to hardcode \$libdir into
17945# a binary during linking. This must work even if \$libdir does
17946# not exist.
17947hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17948
17949# Whether we need a single -rpath flag with a separated argument.
17950hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17951
17952# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17953# resulting binary.
17954hardcode_direct=$hardcode_direct_RC
17955
17956# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17957# resulting binary.
17958hardcode_minus_L=$hardcode_minus_L_RC
17959
17960# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17961# the resulting binary.
17962hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17963
17964# Set to yes if building a shared library automatically hardcodes DIR into the library
17965# and all subsequent libraries and executables linked against it.
17966hardcode_automatic=$hardcode_automatic_RC
17967
17968# Variables whose values should be saved in libtool wrapper scripts and
17969# restored at relink time.
17970variables_saved_for_relink="$variables_saved_for_relink"
17971
17972# Whether libtool must link a program against all its dependency libraries.
17973link_all_deplibs=$link_all_deplibs_RC
17974
17975# Compile-time system search path for libraries
17976sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17977
17978# Run-time system search path for libraries
17979sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17980
17981# Fix the shell variable \$srcfile for the compiler.
17982fix_srcfile_path="$fix_srcfile_path_RC"
17983
17984# Set to yes if exported symbols are required.
17985always_export_symbols=$always_export_symbols_RC
17986
17987# The commands to list exported symbols.
17988export_symbols_cmds=$lt_export_symbols_cmds_RC
17989
17990# The commands to extract the exported symbol list from a shared archive.
17991extract_expsyms_cmds=$lt_extract_expsyms_cmds
17992
17993# Symbols that should not be listed in the preloaded symbols.
17994exclude_expsyms=$lt_exclude_expsyms_RC
17995
17996# Symbols that must always be exported.
17997include_expsyms=$lt_include_expsyms_RC
17998
17999# ### END LIBTOOL TAG CONFIG: $tagname
18000
18001__EOF__
18002
18003
18004else
18005 # If there is no Makefile yet, we rely on a make rule to execute
18006 # `config.status --recheck' to rerun these tests and create the
18007 # libtool script then.
18008 test -f Makefile && make "$ltmain"
18009fi
18010
18011
18012ac_ext=c
18013ac_cpp='$CPP $CPPFLAGS'
18014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016ac_compiler_gnu=$ac_cv_c_compiler_gnu
18017
18018CC="$lt_save_CC"
18019
18020 ;;
18021
18022 *)
18023 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18024echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18025 { (exit 1); exit 1; }; }
18026 ;;
18027 esac
18028
18029 # Append the new tag name to the list of available tags.
18030 if test -n "$tagname" ; then
18031 available_tags="$available_tags $tagname"
18032 fi
18033 fi
18034 done
18035 IFS="$lt_save_ifs"
18036
18037 # Now substitute the updated list of available tags.
18038 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18039 mv "${ofile}T" "$ofile"
18040 chmod +x "$ofile"
18041 else
18042 rm -f "${ofile}T"
18043 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18044echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18045 { (exit 1); exit 1; }; }
18046 fi
18047fi
John Criswell7a73b802003-06-30 21:59:07 +000018048
18049
18050
18051# This can be used to rebuild libtool when needed
18052LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18053
18054# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018055LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018056
18057# Prevent multiple expansion
18058
18059
18060
John Criswell47fdd832003-07-14 16:52:07 +000018061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
John Criswell7a73b802003-06-30 21:59:07 +000018079# Extract the first word of "dot", so it can be a program name with args.
18080set dummy dot; ac_word=$2
18081echo "$as_me:$LINENO: checking for $ac_word" >&5
18082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18083if test "${ac_cv_path_DOT+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085else
18086 case $DOT in
18087 [\\/]* | ?:[\\/]*)
18088 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18089 ;;
18090 *)
18091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18092for as_dir in $PATH
18093do
18094 IFS=$as_save_IFS
18095 test -z "$as_dir" && as_dir=.
18096 for ac_exec_ext in '' $ac_executable_extensions; do
18097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18098 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18100 break 2
18101 fi
18102done
18103done
18104
Brian Gaeke26be9c52004-01-13 06:43:16 +000018105 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018106 ;;
18107esac
18108fi
18109DOT=$ac_cv_path_DOT
18110
18111if test -n "$DOT"; then
18112 echo "$as_me:$LINENO: result: $DOT" >&5
18113echo "${ECHO_T}$DOT" >&6
18114else
18115 echo "$as_me:$LINENO: result: no" >&5
18116echo "${ECHO_T}no" >&6
18117fi
18118
18119# Extract the first word of "etags", so it can be a program name with args.
18120set dummy etags; ac_word=$2
18121echo "$as_me:$LINENO: checking for $ac_word" >&5
18122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18123if test "${ac_cv_path_ETAGS+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18125else
18126 case $ETAGS in
18127 [\\/]* | ?:[\\/]*)
18128 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18129 ;;
18130 *)
18131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18132for as_dir in $PATH
18133do
18134 IFS=$as_save_IFS
18135 test -z "$as_dir" && as_dir=.
18136 for ac_exec_ext in '' $ac_executable_extensions; do
18137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18138 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18140 break 2
18141 fi
18142done
18143done
18144
Brian Gaeke26be9c52004-01-13 06:43:16 +000018145 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018146 ;;
18147esac
18148fi
18149ETAGS=$ac_cv_path_ETAGS
18150
18151if test -n "$ETAGS"; then
18152 echo "$as_me:$LINENO: result: $ETAGS" >&5
18153echo "${ECHO_T}$ETAGS" >&6
18154else
18155 echo "$as_me:$LINENO: result: no" >&5
18156echo "${ECHO_T}no" >&6
18157fi
18158
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018159etags_version=`$ETAGS --version 2>&1`
18160case "$etags_version" in
18161 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18162 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18163 *) ETAGSFLAGS="" ;;
18164esac
18165ETAGSFLAGS=$ETAGSFLAGS
18166
John Criswellde00db22003-08-25 16:49:54 +000018167# Extract the first word of "python", so it can be a program name with args.
18168set dummy python; ac_word=$2
18169echo "$as_me:$LINENO: checking for $ac_word" >&5
18170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18171if test "${ac_cv_path_PYTHON+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173else
18174 case $PYTHON in
18175 [\\/]* | ?:[\\/]*)
18176 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18177 ;;
18178 *)
18179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18180for as_dir in $PATH
18181do
18182 IFS=$as_save_IFS
18183 test -z "$as_dir" && as_dir=.
18184 for ac_exec_ext in '' $ac_executable_extensions; do
18185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18186 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18188 break 2
18189 fi
18190done
18191done
18192
Brian Gaeke26be9c52004-01-13 06:43:16 +000018193 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018194 ;;
18195esac
18196fi
18197PYTHON=$ac_cv_path_PYTHON
18198
18199if test -n "$PYTHON"; then
18200 echo "$as_me:$LINENO: result: $PYTHON" >&5
18201echo "${ECHO_T}$PYTHON" >&6
18202else
18203 echo "$as_me:$LINENO: result: no" >&5
18204echo "${ECHO_T}no" >&6
18205fi
18206
Brian Gaeke26be9c52004-01-13 06:43:16 +000018207if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018208then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018209 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18210echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018211fi
John Criswellde00db22003-08-25 16:49:54 +000018212# Extract the first word of "qmtest", so it can be a program name with args.
18213set dummy qmtest; ac_word=$2
18214echo "$as_me:$LINENO: checking for $ac_word" >&5
18215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18216if test "${ac_cv_path_QMTEST+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18218else
18219 case $QMTEST in
18220 [\\/]* | ?:[\\/]*)
18221 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18222 ;;
18223 *)
18224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18225for as_dir in $PATH
18226do
18227 IFS=$as_save_IFS
18228 test -z "$as_dir" && as_dir=.
18229 for ac_exec_ext in '' $ac_executable_extensions; do
18230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18231 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18233 break 2
18234 fi
18235done
18236done
18237
Brian Gaeke26be9c52004-01-13 06:43:16 +000018238 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018239 ;;
18240esac
18241fi
18242QMTEST=$ac_cv_path_QMTEST
18243
18244if test -n "$QMTEST"; then
18245 echo "$as_me:$LINENO: result: $QMTEST" >&5
18246echo "${ECHO_T}$QMTEST" >&6
18247else
18248 echo "$as_me:$LINENO: result: no" >&5
18249echo "${ECHO_T}no" >&6
18250fi
18251
Brian Gaeke26be9c52004-01-13 06:43:16 +000018252if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018253then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018254 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18255echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018256fi
John Criswellde00db22003-08-25 16:49:54 +000018257
18258pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18259pymajor=`echo $pyversion | cut -d. -f1`
18260pyminor=`echo $pyversion | cut -d. -f2`
18261
18262if test "$pymajor" -ge "2"
18263then
18264 if test "$pymajor" -eq "2"
18265 then
18266 if test "$pyminor" -lt "2"
18267 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018268 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18269echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018270 fi
18271 fi
18272else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018273 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18274echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018275fi
John Criswell7a73b802003-06-30 21:59:07 +000018276
18277
18278
18279
John Criswell7a73b802003-06-30 21:59:07 +000018280echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18281echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18282if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18284else
18285 ac_check_lib_save_LIBS=$LIBS
18286LIBS="-lelf $LIBS"
18287cat >conftest.$ac_ext <<_ACEOF
18288#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018294
18295/* Override any gcc2 internal prototype to avoid an error. */
18296#ifdef __cplusplus
18297extern "C"
18298#endif
18299/* We use char because int might match the return type of a gcc2
18300 builtin and then its argument prototype would still apply. */
18301char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018302int
18303main ()
18304{
18305elf_begin ();
18306 ;
18307 return 0;
18308}
18309_ACEOF
18310rm -f conftest.$ac_objext conftest$ac_exeext
18311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18312 (eval $ac_link) 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; }; then
18322 ac_cv_lib_elf_elf_begin=yes
18323else
18324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018325sed 's/^/| /' conftest.$ac_ext >&5
18326
John Criswell7a73b802003-06-30 21:59:07 +000018327ac_cv_lib_elf_elf_begin=no
18328fi
18329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18330LIBS=$ac_check_lib_save_LIBS
18331fi
18332echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18333echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18334if test $ac_cv_lib_elf_elf_begin = yes; then
18335 cat >>confdefs.h <<_ACEOF
18336#define HAVE_LIBELF 1
18337_ACEOF
18338
18339 LIBS="-lelf $LIBS"
18340
18341fi
18342
18343
18344echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18345echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18346if test "${ac_cv_search_dlopen+set}" = set; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18348else
18349 ac_func_search_save_LIBS=$LIBS
18350ac_cv_search_dlopen=no
18351cat >conftest.$ac_ext <<_ACEOF
18352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018353/* confdefs.h. */
18354_ACEOF
18355cat confdefs.h >>conftest.$ac_ext
18356cat >>conftest.$ac_ext <<_ACEOF
18357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018358
18359/* Override any gcc2 internal prototype to avoid an error. */
18360#ifdef __cplusplus
18361extern "C"
18362#endif
18363/* We use char because int might match the return type of a gcc2
18364 builtin and then its argument prototype would still apply. */
18365char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018366int
18367main ()
18368{
18369dlopen ();
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext conftest$ac_exeext
18375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18376 (eval $ac_link) 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
18380 { ac_try='test -s conftest$ac_exeext'
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_search_dlopen="none required"
18387else
18388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018389sed 's/^/| /' conftest.$ac_ext >&5
18390
John Criswell7a73b802003-06-30 21:59:07 +000018391fi
18392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18393if test "$ac_cv_search_dlopen" = no; then
18394 for ac_lib in dl; do
18395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18396 cat >conftest.$ac_ext <<_ACEOF
18397#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018403
18404/* Override any gcc2 internal prototype to avoid an error. */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408/* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018411int
18412main ()
18413{
18414dlopen ();
18415 ;
18416 return 0;
18417}
18418_ACEOF
18419rm -f conftest.$ac_objext conftest$ac_exeext
18420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_search_dlopen="-l$ac_lib"
18432break
18433else
18434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018435sed 's/^/| /' conftest.$ac_ext >&5
18436
John Criswell7a73b802003-06-30 21:59:07 +000018437fi
18438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18439 done
18440fi
18441LIBS=$ac_func_search_save_LIBS
18442fi
18443echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18444echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18445if test "$ac_cv_search_dlopen" != no; then
18446 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018447
18448cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018449#define HAVE_DLOPEN 1
18450_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018451
18452else
Brian Gaekec45be042003-10-07 06:01:34 +000018453 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18454echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018455fi
18456
18457
18458echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18459echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18460if test "${ac_cv_search_mallinfo+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462else
18463 ac_func_search_save_LIBS=$LIBS
18464ac_cv_search_mallinfo=no
18465cat >conftest.$ac_ext <<_ACEOF
18466#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018472
18473/* Override any gcc2 internal prototype to avoid an error. */
18474#ifdef __cplusplus
18475extern "C"
18476#endif
18477/* We use char because int might match the return type of a gcc2
18478 builtin and then its argument prototype would still apply. */
18479char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018480int
18481main ()
18482{
18483mallinfo ();
18484 ;
18485 return 0;
18486}
18487_ACEOF
18488rm -f conftest.$ac_objext conftest$ac_exeext
18489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18490 (eval $ac_link) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
18494 { ac_try='test -s conftest$ac_exeext'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; }; then
18500 ac_cv_search_mallinfo="none required"
18501else
18502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018503sed 's/^/| /' conftest.$ac_ext >&5
18504
John Criswell7a73b802003-06-30 21:59:07 +000018505fi
18506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18507if test "$ac_cv_search_mallinfo" = no; then
18508 for ac_lib in malloc; do
18509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18510 cat >conftest.$ac_ext <<_ACEOF
18511#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018517
18518/* Override any gcc2 internal prototype to avoid an error. */
18519#ifdef __cplusplus
18520extern "C"
18521#endif
18522/* We use char because int might match the return type of a gcc2
18523 builtin and then its argument prototype would still apply. */
18524char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018525int
18526main ()
18527{
18528mallinfo ();
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext conftest$ac_exeext
18534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -s conftest$ac_exeext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 ac_cv_search_mallinfo="-l$ac_lib"
18546break
18547else
18548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018549sed 's/^/| /' conftest.$ac_ext >&5
18550
John Criswell7a73b802003-06-30 21:59:07 +000018551fi
18552rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18553 done
18554fi
18555LIBS=$ac_func_search_save_LIBS
18556fi
18557echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18558echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18559if test "$ac_cv_search_mallinfo" != no; then
18560 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018561
18562cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018563#define HAVE_MALLINFO 1
18564_ACEOF
18565
18566fi
18567
18568
Brian Gaeke5f268f72003-12-05 19:29:01 +000018569echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18570echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18571if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573else
18574 ac_func_search_save_LIBS=$LIBS
18575ac_cv_search_pthread_mutex_lock=no
18576cat >conftest.$ac_ext <<_ACEOF
18577#line $LINENO "configure"
18578/* confdefs.h. */
18579_ACEOF
18580cat confdefs.h >>conftest.$ac_ext
18581cat >>conftest.$ac_ext <<_ACEOF
18582/* end confdefs.h. */
18583
18584/* Override any gcc2 internal prototype to avoid an error. */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588/* We use char because int might match the return type of a gcc2
18589 builtin and then its argument prototype would still apply. */
18590char pthread_mutex_lock ();
18591int
18592main ()
18593{
18594pthread_mutex_lock ();
18595 ;
18596 return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext conftest$ac_exeext
18600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601 (eval $ac_link) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -s conftest$ac_exeext'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_search_pthread_mutex_lock="none required"
18612else
18613 echo "$as_me: failed program was:" >&5
18614sed 's/^/| /' conftest.$ac_ext >&5
18615
18616fi
18617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18618if test "$ac_cv_search_pthread_mutex_lock" = no; then
18619 for ac_lib in pthread; do
18620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18622#line $LINENO "configure"
18623/* confdefs.h. */
18624_ACEOF
18625cat confdefs.h >>conftest.$ac_ext
18626cat >>conftest.$ac_ext <<_ACEOF
18627/* end confdefs.h. */
18628
18629/* Override any gcc2 internal prototype to avoid an error. */
18630#ifdef __cplusplus
18631extern "C"
18632#endif
18633/* We use char because int might match the return type of a gcc2
18634 builtin and then its argument prototype would still apply. */
18635char pthread_mutex_lock ();
18636int
18637main ()
18638{
18639pthread_mutex_lock ();
18640 ;
18641 return 0;
18642}
18643_ACEOF
18644rm -f conftest.$ac_objext conftest$ac_exeext
18645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18646 (eval $ac_link) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -s conftest$ac_exeext'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18657break
18658else
18659 echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662fi
18663rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18664 done
18665fi
18666LIBS=$ac_func_search_save_LIBS
18667fi
18668echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18669echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18670if test "$ac_cv_search_pthread_mutex_lock" != no; then
18671 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18672
18673cat >>confdefs.h <<\_ACEOF
18674#define HAVE_PTHREAD_MUTEX_LOCK 1
18675_ACEOF
18676
18677fi
18678
18679
John Criswell7a73b802003-06-30 21:59:07 +000018680echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18681echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18682if test "${ac_cv_header_stdc+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18684else
18685 cat >conftest.$ac_ext <<_ACEOF
18686#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018692#include <stdlib.h>
18693#include <stdarg.h>
18694#include <string.h>
18695#include <float.h>
18696
John Criswell0c38eaf2003-09-10 15:17:25 +000018697int
18698main ()
18699{
18700
18701 ;
18702 return 0;
18703}
John Criswell7a73b802003-06-30 21:59:07 +000018704_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018705rm -f conftest.$ac_objext
18706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18707 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018708 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018710 (exit $ac_status); } &&
18711 { ac_try='test -s conftest.$ac_objext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018717 ac_cv_header_stdc=yes
18718else
18719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018720sed 's/^/| /' conftest.$ac_ext >&5
18721
18722ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018723fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018724rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018725
18726if test $ac_cv_header_stdc = yes; then
18727 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18728 cat >conftest.$ac_ext <<_ACEOF
18729#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018730/* confdefs.h. */
18731_ACEOF
18732cat confdefs.h >>conftest.$ac_ext
18733cat >>conftest.$ac_ext <<_ACEOF
18734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018735#include <string.h>
18736
18737_ACEOF
18738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018739 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018740 :
18741else
18742 ac_cv_header_stdc=no
18743fi
18744rm -f conftest*
18745
18746fi
18747
18748if test $ac_cv_header_stdc = yes; then
18749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18750 cat >conftest.$ac_ext <<_ACEOF
18751#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018757#include <stdlib.h>
18758
18759_ACEOF
18760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018761 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018762 :
18763else
18764 ac_cv_header_stdc=no
18765fi
18766rm -f conftest*
18767
18768fi
18769
18770if test $ac_cv_header_stdc = yes; then
18771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18772 if test "$cross_compiling" = yes; then
18773 :
18774else
18775 cat >conftest.$ac_ext <<_ACEOF
18776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018777/* confdefs.h. */
18778_ACEOF
18779cat confdefs.h >>conftest.$ac_ext
18780cat >>conftest.$ac_ext <<_ACEOF
18781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018782#include <ctype.h>
18783#if ((' ' & 0x0FF) == 0x020)
18784# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18785# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18786#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018787# define ISLOWER(c) \
18788 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018789 || ('j' <= (c) && (c) <= 'r') \
18790 || ('s' <= (c) && (c) <= 'z'))
18791# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18792#endif
18793
18794#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18795int
18796main ()
18797{
18798 int i;
18799 for (i = 0; i < 256; i++)
18800 if (XOR (islower (i), ISLOWER (i))
18801 || toupper (i) != TOUPPER (i))
18802 exit(2);
18803 exit (0);
18804}
18805_ACEOF
18806rm -f conftest$ac_exeext
18807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18808 (eval $ac_link) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 :
18818else
18819 echo "$as_me: program exited with status $ac_status" >&5
18820echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018821sed 's/^/| /' conftest.$ac_ext >&5
18822
John Criswell7a73b802003-06-30 21:59:07 +000018823( exit $ac_status )
18824ac_cv_header_stdc=no
18825fi
John Criswell0c38eaf2003-09-10 15:17:25 +000018826rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018827fi
18828fi
18829fi
18830echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18831echo "${ECHO_T}$ac_cv_header_stdc" >&6
18832if test $ac_cv_header_stdc = yes; then
18833
18834cat >>confdefs.h <<\_ACEOF
18835#define STDC_HEADERS 1
18836_ACEOF
18837
18838fi
18839
18840echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18841echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18842if test "${ac_cv_header_sys_wait_h+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
18845 cat >conftest.$ac_ext <<_ACEOF
18846#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018847/* confdefs.h. */
18848_ACEOF
18849cat confdefs.h >>conftest.$ac_ext
18850cat >>conftest.$ac_ext <<_ACEOF
18851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018852#include <sys/types.h>
18853#include <sys/wait.h>
18854#ifndef WEXITSTATUS
18855# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18856#endif
18857#ifndef WIFEXITED
18858# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18859#endif
18860
John Criswell7a73b802003-06-30 21:59:07 +000018861int
18862main ()
18863{
18864 int s;
18865 wait (&s);
18866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873 (eval $ac_compile) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } &&
18877 { ac_try='test -s conftest.$ac_objext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_cv_header_sys_wait_h=yes
18884else
18885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018886sed 's/^/| /' conftest.$ac_ext >&5
18887
John Criswell7a73b802003-06-30 21:59:07 +000018888ac_cv_header_sys_wait_h=no
18889fi
18890rm -f conftest.$ac_objext conftest.$ac_ext
18891fi
18892echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18893echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18894if test $ac_cv_header_sys_wait_h = yes; then
18895
18896cat >>confdefs.h <<\_ACEOF
18897#define HAVE_SYS_WAIT_H 1
18898_ACEOF
18899
18900fi
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
Brian Gaeke26be9c52004-01-13 06:43:16 +000018911
18912for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h
John Criswell7a73b802003-06-30 21:59:07 +000018913do
18914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18915if eval "test \"\${$as_ac_Header+set}\" = set"; then
18916 echo "$as_me:$LINENO: checking for $ac_header" >&5
18917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18918if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920fi
18921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18923else
18924 # Is the header compilable?
18925echo "$as_me:$LINENO: checking $ac_header usability" >&5
18926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18927cat >conftest.$ac_ext <<_ACEOF
18928#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018934$ac_includes_default
18935#include <$ac_header>
18936_ACEOF
18937rm -f conftest.$ac_objext
18938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18939 (eval $ac_compile) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -s conftest.$ac_objext'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 ac_header_compiler=yes
18950else
18951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018952sed 's/^/| /' conftest.$ac_ext >&5
18953
John Criswell7a73b802003-06-30 21:59:07 +000018954ac_header_compiler=no
18955fi
18956rm -f conftest.$ac_objext conftest.$ac_ext
18957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18958echo "${ECHO_T}$ac_header_compiler" >&6
18959
18960# Is the header present?
18961echo "$as_me:$LINENO: checking $ac_header presence" >&5
18962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18963cat >conftest.$ac_ext <<_ACEOF
18964#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018970#include <$ac_header>
18971_ACEOF
18972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18974 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000018975 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000018976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } >/dev/null; then
18980 if test -s conftest.err; then
18981 ac_cpp_err=$ac_c_preproc_warn_flag
18982 else
18983 ac_cpp_err=
18984 fi
18985else
18986 ac_cpp_err=yes
18987fi
18988if test -z "$ac_cpp_err"; then
18989 ac_header_preproc=yes
18990else
18991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018992sed 's/^/| /' conftest.$ac_ext >&5
18993
John Criswell7a73b802003-06-30 21:59:07 +000018994 ac_header_preproc=no
18995fi
18996rm -f conftest.err conftest.$ac_ext
18997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18998echo "${ECHO_T}$ac_header_preproc" >&6
18999
19000# So? What about this header?
19001case $ac_header_compiler:$ac_header_preproc in
19002 yes:no )
19003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019006echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19007 (
19008 cat <<\_ASBOX
19009## ------------------------------------ ##
19010## Report this to bug-autoconf@gnu.org. ##
19011## ------------------------------------ ##
19012_ASBOX
19013 ) |
19014 sed "s/^/$as_me: WARNING: /" >&2
19015 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019016 no:yes )
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19018echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19020echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19023 (
19024 cat <<\_ASBOX
19025## ------------------------------------ ##
19026## Report this to bug-autoconf@gnu.org. ##
19027## ------------------------------------ ##
19028_ASBOX
19029 ) |
19030 sed "s/^/$as_me: WARNING: /" >&2
19031 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019032esac
19033echo "$as_me:$LINENO: checking for $ac_header" >&5
19034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19035if eval "test \"\${$as_ac_Header+set}\" = set"; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037else
19038 eval "$as_ac_Header=$ac_header_preproc"
19039fi
19040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19042
19043fi
19044if test `eval echo '${'$as_ac_Header'}'` = yes; then
19045 cat >>confdefs.h <<_ACEOF
19046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19047_ACEOF
19048
19049fi
19050
19051done
19052
19053
John Criswell7a73b802003-06-30 21:59:07 +000019054echo "$as_me:$LINENO: checking for pid_t" >&5
19055echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19056if test "${ac_cv_type_pid_t+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19058else
19059 cat >conftest.$ac_ext <<_ACEOF
19060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019066$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019067int
19068main ()
19069{
19070if ((pid_t *) 0)
19071 return 0;
19072if (sizeof (pid_t))
19073 return 0;
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext
19079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -s conftest.$ac_objext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_type_pid_t=yes
19091else
19092 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019093sed 's/^/| /' conftest.$ac_ext >&5
19094
John Criswell7a73b802003-06-30 21:59:07 +000019095ac_cv_type_pid_t=no
19096fi
19097rm -f conftest.$ac_objext conftest.$ac_ext
19098fi
19099echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19100echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19101if test $ac_cv_type_pid_t = yes; then
19102 :
19103else
19104
19105cat >>confdefs.h <<_ACEOF
19106#define pid_t int
19107_ACEOF
19108
19109fi
19110
19111echo "$as_me:$LINENO: checking for size_t" >&5
19112echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19113if test "${ac_cv_type_size_t+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115else
19116 cat >conftest.$ac_ext <<_ACEOF
19117#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019118/* confdefs.h. */
19119_ACEOF
19120cat confdefs.h >>conftest.$ac_ext
19121cat >>conftest.$ac_ext <<_ACEOF
19122/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019123$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019124int
19125main ()
19126{
19127if ((size_t *) 0)
19128 return 0;
19129if (sizeof (size_t))
19130 return 0;
19131 ;
19132 return 0;
19133}
19134_ACEOF
19135rm -f conftest.$ac_objext
19136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19137 (eval $ac_compile) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -s conftest.$ac_objext'
19142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143 (eval $ac_try) 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19147 ac_cv_type_size_t=yes
19148else
19149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019150sed 's/^/| /' conftest.$ac_ext >&5
19151
John Criswell7a73b802003-06-30 21:59:07 +000019152ac_cv_type_size_t=no
19153fi
19154rm -f conftest.$ac_objext conftest.$ac_ext
19155fi
19156echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19157echo "${ECHO_T}$ac_cv_type_size_t" >&6
19158if test $ac_cv_type_size_t = yes; then
19159 :
19160else
19161
19162cat >>confdefs.h <<_ACEOF
19163#define size_t unsigned
19164_ACEOF
19165
19166fi
19167
19168echo "$as_me:$LINENO: checking for int64_t" >&5
19169echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19170if test "${ac_cv_type_int64_t+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172else
19173 cat >conftest.$ac_ext <<_ACEOF
19174#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019180$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019181int
19182main ()
19183{
19184if ((int64_t *) 0)
19185 return 0;
19186if (sizeof (int64_t))
19187 return 0;
19188 ;
19189 return 0;
19190}
19191_ACEOF
19192rm -f conftest.$ac_objext
19193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19194 (eval $ac_compile) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -s conftest.$ac_objext'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; }; then
19204 ac_cv_type_int64_t=yes
19205else
19206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019207sed 's/^/| /' conftest.$ac_ext >&5
19208
John Criswell7a73b802003-06-30 21:59:07 +000019209ac_cv_type_int64_t=no
19210fi
19211rm -f conftest.$ac_objext conftest.$ac_ext
19212fi
19213echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19214echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19215if test $ac_cv_type_int64_t = yes; then
19216
19217cat >>confdefs.h <<_ACEOF
19218#define HAVE_INT64_T 1
19219_ACEOF
19220
19221
19222else
19223 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19224echo "$as_me: error: Type int64_t required but not found" >&2;}
19225 { (exit 1); exit 1; }; }
19226fi
19227
19228echo "$as_me:$LINENO: checking for uint64_t" >&5
19229echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19230if test "${ac_cv_type_uint64_t+set}" = set; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19232else
19233 cat >conftest.$ac_ext <<_ACEOF
19234#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019235/* confdefs.h. */
19236_ACEOF
19237cat confdefs.h >>conftest.$ac_ext
19238cat >>conftest.$ac_ext <<_ACEOF
19239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019240$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019241int
19242main ()
19243{
19244if ((uint64_t *) 0)
19245 return 0;
19246if (sizeof (uint64_t))
19247 return 0;
19248 ;
19249 return 0;
19250}
19251_ACEOF
19252rm -f conftest.$ac_objext
19253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19254 (eval $ac_compile) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_type_uint64_t=yes
19265else
19266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019267sed 's/^/| /' conftest.$ac_ext >&5
19268
John Criswell7a73b802003-06-30 21:59:07 +000019269ac_cv_type_uint64_t=no
19270fi
19271rm -f conftest.$ac_objext conftest.$ac_ext
19272fi
19273echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19274echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19275if test $ac_cv_type_uint64_t = yes; then
19276
19277cat >>confdefs.h <<_ACEOF
19278#define HAVE_UINT64_T 1
19279_ACEOF
19280
19281
19282else
19283 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19284echo "$as_me: error: Type uint64_t required but not found" >&2;}
19285 { (exit 1); exit 1; }; }
19286fi
19287
19288echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19289echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19290if test "${ac_cv_header_time+set}" = set; then
19291 echo $ECHO_N "(cached) $ECHO_C" >&6
19292else
19293 cat >conftest.$ac_ext <<_ACEOF
19294#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019300#include <sys/types.h>
19301#include <sys/time.h>
19302#include <time.h>
19303
John Criswell7a73b802003-06-30 21:59:07 +000019304int
19305main ()
19306{
19307if ((struct tm *) 0)
19308return 0;
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19315 (eval $ac_compile) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_header_time=yes
19326else
19327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019328sed 's/^/| /' conftest.$ac_ext >&5
19329
John Criswell7a73b802003-06-30 21:59:07 +000019330ac_cv_header_time=no
19331fi
19332rm -f conftest.$ac_objext conftest.$ac_ext
19333fi
19334echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19335echo "${ECHO_T}$ac_cv_header_time" >&6
19336if test $ac_cv_header_time = yes; then
19337
19338cat >>confdefs.h <<\_ACEOF
19339#define TIME_WITH_SYS_TIME 1
19340_ACEOF
19341
19342fi
19343
19344echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19345echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19346if test "${ac_cv_struct_tm+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348else
19349 cat >conftest.$ac_ext <<_ACEOF
19350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019351/* confdefs.h. */
19352_ACEOF
19353cat confdefs.h >>conftest.$ac_ext
19354cat >>conftest.$ac_ext <<_ACEOF
19355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019356#include <sys/types.h>
19357#include <time.h>
19358
John Criswell7a73b802003-06-30 21:59:07 +000019359int
19360main ()
19361{
19362struct tm *tp; tp->tm_sec;
19363 ;
19364 return 0;
19365}
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_cv_struct_tm=time.h
19380else
19381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019382sed 's/^/| /' conftest.$ac_ext >&5
19383
John Criswell7a73b802003-06-30 21:59:07 +000019384ac_cv_struct_tm=sys/time.h
19385fi
19386rm -f conftest.$ac_objext conftest.$ac_ext
19387fi
19388echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19389echo "${ECHO_T}$ac_cv_struct_tm" >&6
19390if test $ac_cv_struct_tm = sys/time.h; then
19391
19392cat >>confdefs.h <<\_ACEOF
19393#define TM_IN_SYS_TIME 1
19394_ACEOF
19395
19396fi
19397
19398
John Criswella0137d32003-10-13 16:22:01 +000019399
19400
19401
19402 ac_ext=c
19403ac_cpp='$CPP $CPPFLAGS'
19404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19406ac_compiler_gnu=$ac_cv_c_compiler_gnu
19407
19408 if test "$cross_compiling" = yes; then
19409 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19410See \`config.log' for more details." >&5
19411echo "$as_me: error: cannot run test program while cross compiling
19412See \`config.log' for more details." >&2;}
19413 { (exit 1); exit 1; }; }
19414else
19415 cat >conftest.$ac_ext <<_ACEOF
19416#line $LINENO "configure"
19417/* confdefs.h. */
19418_ACEOF
19419cat confdefs.h >>conftest.$ac_ext
19420cat >>conftest.$ac_ext <<_ACEOF
19421/* end confdefs.h. */
19422#include <stdio.h>
19423 #include <stdlib.h>
19424int
19425main ()
19426{
19427
19428 volatile double A, B;
19429 char Buffer[100];
19430 A = 1;
19431 A /= 10.0;
19432 sprintf(Buffer, "%a", A);
19433 B = atof(Buffer);
19434 if (A != B)
19435 return (1);
19436 if (A != 0x1.999999999999ap-4)
19437 return (1);
19438 return (0);
19439 ;
19440 return 0;
19441}
19442_ACEOF
19443rm -f conftest$ac_exeext
19444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445 (eval $ac_link) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_c_printf_a=yes
19455else
19456 echo "$as_me: program exited with status $ac_status" >&5
19457echo "$as_me: failed program was:" >&5
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
19460( exit $ac_status )
19461ac_c_printf_a=no
19462fi
19463rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19464fi
19465 ac_ext=c
19466ac_cpp='$CPP $CPPFLAGS'
19467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469ac_compiler_gnu=$ac_cv_c_compiler_gnu
19470
19471 if test "$ac_c_printf_a" = "yes"; then
19472
19473cat >>confdefs.h <<\_ACEOF
19474#define HAVE_PRINTF_A 1
19475_ACEOF
19476
19477 fi
19478
19479
John Criswell7a73b802003-06-30 21:59:07 +000019480echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19481echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19482if test "${ac_cv_cxx_namespaces+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19484else
19485
19486
19487 ac_ext=cc
19488ac_cpp='$CXXCPP $CPPFLAGS'
19489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19492
19493 cat >conftest.$ac_ext <<_ACEOF
19494#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019500namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000019501int
19502main ()
19503{
19504using namespace Outer::Inner; return i;
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_cxx_namespaces=yes
19522else
19523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019524sed 's/^/| /' conftest.$ac_ext >&5
19525
John Criswell7a73b802003-06-30 21:59:07 +000019526ac_cv_cxx_namespaces=no
19527fi
19528rm -f conftest.$ac_objext conftest.$ac_ext
19529 ac_ext=c
19530ac_cpp='$CPP $CPPFLAGS'
19531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535
19536fi
19537echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19538echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19539if test "$ac_cv_cxx_namespaces" = yes; then
19540
19541cat >>confdefs.h <<\_ACEOF
19542#define HAVE_NAMESPACES
19543_ACEOF
19544
19545fi
19546
Brian Gaeke90583492003-11-10 03:06:28 +000019547echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
19548echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
19549if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000019550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551else
19552
19553
19554
19555 ac_ext=cc
19556ac_cpp='$CXXCPP $CPPFLAGS'
19557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19560
19561 cat >conftest.$ac_ext <<_ACEOF
19562#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019563/* confdefs.h. */
19564_ACEOF
19565cat confdefs.h >>conftest.$ac_ext
19566cat >>conftest.$ac_ext <<_ACEOF
19567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019568#include <ext/hash_map>
19569#ifdef HAVE_NAMESPACES
19570using namespace std;
19571#endif
John Criswell7a73b802003-06-30 21:59:07 +000019572int
19573main ()
19574{
Brian Gaeke90583492003-11-10 03:06:28 +000019575hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000019576 ;
19577 return 0;
19578}
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000019592 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000019593else
19594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019595sed 's/^/| /' conftest.$ac_ext >&5
19596
Brian Gaeke90583492003-11-10 03:06:28 +000019597ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000019598fi
19599rm -f conftest.$ac_objext conftest.$ac_ext
19600 ac_ext=c
19601ac_cpp='$CPP $CPPFLAGS'
19602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604ac_compiler_gnu=$ac_cv_c_compiler_gnu
19605
John Criswell7a73b802003-06-30 21:59:07 +000019606fi
Brian Gaeke90583492003-11-10 03:06:28 +000019607echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
19608echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
19609 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019610
19611cat >>confdefs.h <<\_ACEOF
19612#define HAVE_STD_EXT_HASH_MAP
19613_ACEOF
19614
Brian Gaeke90583492003-11-10 03:06:28 +000019615 fi
19616 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
19617echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
19618if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620else
19621
19622
19623
19624 ac_ext=cc
19625ac_cpp='$CXXCPP $CPPFLAGS'
19626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19629
19630 cat >conftest.$ac_ext <<_ACEOF
19631#line $LINENO "configure"
19632/* confdefs.h. */
19633_ACEOF
19634cat confdefs.h >>conftest.$ac_ext
19635cat >>conftest.$ac_ext <<_ACEOF
19636/* end confdefs.h. */
19637#include <ext/hash_map>
19638#ifdef HAVE_NAMESPACES
19639using namespace __gnu_cxx;
19640#endif
19641int
19642main ()
19643{
19644hash_map<int,int> t;
19645 ;
19646 return 0;
19647}
19648_ACEOF
19649rm -f conftest.$ac_objext
19650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19651 (eval $ac_compile) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 ac_cv_cxx_have_gnu_ext_hash_map=yes
19662else
19663 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
19666ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000019667fi
Brian Gaeke90583492003-11-10 03:06:28 +000019668rm -f conftest.$ac_objext conftest.$ac_ext
19669 ac_ext=c
19670ac_cpp='$CPP $CPPFLAGS'
19671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673ac_compiler_gnu=$ac_cv_c_compiler_gnu
19674
19675fi
19676echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
19677echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
19678 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019679
19680cat >>confdefs.h <<\_ACEOF
19681#define HAVE_GNU_EXT_HASH_MAP
19682_ACEOF
19683
Brian Gaeke90583492003-11-10 03:06:28 +000019684 fi
19685 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
19686echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
19687if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
John Criswell7a73b802003-06-30 21:59:07 +000019690
Brian Gaeke90583492003-11-10 03:06:28 +000019691
19692
19693 ac_ext=cc
19694ac_cpp='$CXXCPP $CPPFLAGS'
19695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19698
19699 cat >conftest.$ac_ext <<_ACEOF
19700#line $LINENO "configure"
19701/* confdefs.h. */
19702_ACEOF
19703cat confdefs.h >>conftest.$ac_ext
19704cat >>conftest.$ac_ext <<_ACEOF
19705/* end confdefs.h. */
19706#include <hash_map>
19707int
19708main ()
19709{
19710hash_map<int,int> t;
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715rm -f conftest.$ac_objext
19716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_cxx_have_global_hash_map=yes
19728else
19729 echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732ac_cv_cxx_have_global_hash_map=no
19733fi
19734rm -f conftest.$ac_objext conftest.$ac_ext
19735 ac_ext=c
19736ac_cpp='$CPP $CPPFLAGS'
19737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739ac_compiler_gnu=$ac_cv_c_compiler_gnu
19740
19741fi
19742echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
19743echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
19744 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
19745
19746cat >>confdefs.h <<\_ACEOF
19747#define HAVE_GLOBAL_HASH_MAP
19748_ACEOF
19749
19750 fi
19751echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
19752echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
19753if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000019754 echo $ECHO_N "(cached) $ECHO_C" >&6
19755else
19756
19757
19758
19759 ac_ext=cc
19760ac_cpp='$CXXCPP $CPPFLAGS'
19761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19764
19765 cat >conftest.$ac_ext <<_ACEOF
19766#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019767/* confdefs.h. */
19768_ACEOF
19769cat confdefs.h >>conftest.$ac_ext
19770cat >>conftest.$ac_ext <<_ACEOF
19771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019772#include <ext/hash_set>
19773#ifdef HAVE_NAMESPACES
19774using namespace std;
19775#endif
John Criswell7a73b802003-06-30 21:59:07 +000019776int
19777main ()
19778{
Brian Gaeke90583492003-11-10 03:06:28 +000019779hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000019780 ;
19781 return 0;
19782}
19783_ACEOF
19784rm -f conftest.$ac_objext
19785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19786 (eval $ac_compile) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -s conftest.$ac_objext'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000019796 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000019797else
19798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019799sed 's/^/| /' conftest.$ac_ext >&5
19800
Brian Gaeke90583492003-11-10 03:06:28 +000019801ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000019802fi
19803rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000019804 ac_ext=c
19805ac_cpp='$CPP $CPPFLAGS'
19806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808ac_compiler_gnu=$ac_cv_c_compiler_gnu
19809
19810fi
19811echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
19812echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
19813 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
19814
19815cat >>confdefs.h <<\_ACEOF
19816#define HAVE_STD_EXT_HASH_SET
19817_ACEOF
19818
19819 fi
19820 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
19821echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
19822if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824else
19825
19826
19827
19828 ac_ext=cc
19829ac_cpp='$CXXCPP $CPPFLAGS'
19830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19833
John Criswell7a73b802003-06-30 21:59:07 +000019834 cat >conftest.$ac_ext <<_ACEOF
19835#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019841#include <ext/hash_set>
19842#ifdef HAVE_NAMESPACES
19843using namespace __gnu_cxx;
19844#endif
John Criswell7a73b802003-06-30 21:59:07 +000019845int
19846main ()
19847{
Brian Gaeke90583492003-11-10 03:06:28 +000019848hash_set<int> t;
19849 ;
19850 return 0;
19851}
19852_ACEOF
19853rm -f conftest.$ac_objext
19854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19855 (eval $ac_compile) 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -s conftest.$ac_objext'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19865 ac_cv_cxx_have_gnu_ext_hash_set=yes
19866else
19867 echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870ac_cv_cxx_have_gnu_ext_hash_set=no
19871fi
19872rm -f conftest.$ac_objext conftest.$ac_ext
19873 ac_ext=c
19874ac_cpp='$CPP $CPPFLAGS'
19875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19877ac_compiler_gnu=$ac_cv_c_compiler_gnu
19878
19879fi
19880echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
19881echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
19882 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
19883
19884cat >>confdefs.h <<\_ACEOF
19885#define HAVE_GNU_EXT_HASH_SET
19886_ACEOF
19887
19888 fi
19889 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
19890echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
19891if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19893else
19894
19895
19896
19897 ac_ext=cc
19898ac_cpp='$CXXCPP $CPPFLAGS'
19899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19902
19903 cat >conftest.$ac_ext <<_ACEOF
19904#line $LINENO "configure"
19905/* confdefs.h. */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
19909/* end confdefs.h. */
19910#include <hash_set>
19911int
19912main ()
19913{
John Criswell7a73b802003-06-30 21:59:07 +000019914hash_set<int> t; return 0;
19915 ;
19916 return 0;
19917}
19918_ACEOF
19919rm -f conftest.$ac_objext
19920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921 (eval $ac_compile) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try='test -s conftest.$ac_objext'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000019931 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000019932else
19933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019934sed 's/^/| /' conftest.$ac_ext >&5
19935
Brian Gaeke90583492003-11-10 03:06:28 +000019936ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000019937fi
19938rm -f conftest.$ac_objext conftest.$ac_ext
19939 ac_ext=c
19940ac_cpp='$CPP $CPPFLAGS'
19941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944
John Criswell7a73b802003-06-30 21:59:07 +000019945fi
Brian Gaeke90583492003-11-10 03:06:28 +000019946echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
19947echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
19948 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019949
19950cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000019951#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000019952_ACEOF
19953
Brian Gaeke90583492003-11-10 03:06:28 +000019954 fi
John Criswell7a73b802003-06-30 21:59:07 +000019955echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
19956echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
19957if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959else
19960
19961
19962
19963 ac_ext=cc
19964ac_cpp='$CXXCPP $CPPFLAGS'
19965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19968
19969 cat >conftest.$ac_ext <<_ACEOF
19970#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019971/* confdefs.h. */
19972_ACEOF
19973cat confdefs.h >>conftest.$ac_ext
19974cat >>conftest.$ac_ext <<_ACEOF
19975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019976#include <ext/slist>
19977#ifdef HAVE_NAMESPACES
19978using namespace std;
19979#endif
John Criswell7a73b802003-06-30 21:59:07 +000019980int
19981main ()
19982{
19983slist<int> s; return 0;
19984 ;
19985 return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext
19989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19990 (eval $ac_compile) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_cxx_have_ext_slist=std
20001else
20002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020003sed 's/^/| /' conftest.$ac_ext >&5
20004
John Criswell7a73b802003-06-30 21:59:07 +000020005ac_cv_cxx_have_ext_slist=no
20006fi
20007rm -f conftest.$ac_objext conftest.$ac_ext
20008 cat >conftest.$ac_ext <<_ACEOF
20009#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020010/* confdefs.h. */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020015#include <ext/slist>
20016#ifdef HAVE_NAMESPACES
20017using namespace __gnu_cxx;
20018#endif
John Criswell7a73b802003-06-30 21:59:07 +000020019int
20020main ()
20021{
20022slist<int> s; return 0;
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029 (eval $ac_compile) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_cxx_have_ext_slist=gnu
20040else
20041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020042sed 's/^/| /' conftest.$ac_ext >&5
20043
John Criswell7a73b802003-06-30 21:59:07 +000020044ac_cv_cxx_have_ext_slist=no
20045fi
20046rm -f conftest.$ac_objext conftest.$ac_ext
20047
20048 ac_ext=c
20049ac_cpp='$CPP $CPPFLAGS'
20050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053
20054
20055fi
20056echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20057echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20058if test "$ac_cv_cxx_have_ext_slist" = std; then
20059
20060cat >>confdefs.h <<\_ACEOF
20061#define HAVE_EXT_SLIST std
20062_ACEOF
20063
20064fi
20065if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20066
20067cat >>confdefs.h <<\_ACEOF
20068#define HAVE_EXT_SLIST gnu
20069_ACEOF
20070
20071fi
20072
20073echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20074echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20075if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077else
20078
20079
20080
20081 ac_ext=cc
20082ac_cpp='$CXXCPP $CPPFLAGS'
20083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20086
20087 cat >conftest.$ac_ext <<_ACEOF
20088#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020094#include <iterator>
20095#ifdef HAVE_NAMESPACES
20096using namespace std;
20097#endif
John Criswell7a73b802003-06-30 21:59:07 +000020098int
20099main ()
20100{
20101iterator<int,int,int> t; return 0;
20102 ;
20103 return 0;
20104}
20105_ACEOF
20106rm -f conftest.$ac_objext
20107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_cxx_have_std_iterator=yes
20119else
20120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020121sed 's/^/| /' conftest.$ac_ext >&5
20122
John Criswell7a73b802003-06-30 21:59:07 +000020123ac_cv_cxx_have_std_iterator=no
20124fi
20125rm -f conftest.$ac_objext conftest.$ac_ext
20126 ac_ext=c
20127ac_cpp='$CPP $CPPFLAGS'
20128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20130ac_compiler_gnu=$ac_cv_c_compiler_gnu
20131
20132
20133fi
20134echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20135echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20136if test "$ac_cv_cxx_have_std_iterator" = yes; then
20137
20138cat >>confdefs.h <<\_ACEOF
20139#define HAVE_STD_ITERATOR
20140_ACEOF
20141
20142fi
20143
20144echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20145echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20146if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20148else
20149
20150
20151
20152 ac_ext=cc
20153ac_cpp='$CXXCPP $CPPFLAGS'
20154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20157
20158 cat >conftest.$ac_ext <<_ACEOF
20159#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020160/* confdefs.h. */
20161_ACEOF
20162cat confdefs.h >>conftest.$ac_ext
20163cat >>conftest.$ac_ext <<_ACEOF
20164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020165#include <iterator>
20166#ifdef HAVE_NAMESPACES
20167using namespace std;
20168#endif
John Criswell7a73b802003-06-30 21:59:07 +000020169int
20170main ()
20171{
John Criswellc78022e2003-07-29 19:11:58 +000020172bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020173 ;
20174 return 0;
20175}
20176_ACEOF
20177rm -f conftest.$ac_objext
20178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20179 (eval $ac_compile) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
20189 ac_cv_cxx_have_bi_iterator=yes
20190else
20191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020192sed 's/^/| /' conftest.$ac_ext >&5
20193
John Criswell7a73b802003-06-30 21:59:07 +000020194ac_cv_cxx_have_bi_iterator=no
20195fi
20196rm -f conftest.$ac_objext conftest.$ac_ext
20197 ac_ext=c
20198ac_cpp='$CPP $CPPFLAGS'
20199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201ac_compiler_gnu=$ac_cv_c_compiler_gnu
20202
20203
20204fi
20205echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20206echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20207if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20208
20209cat >>confdefs.h <<\_ACEOF
20210#define HAVE_BI_ITERATOR
20211_ACEOF
20212
20213fi
20214
20215echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20216echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20217if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219else
20220
20221
20222
20223 ac_ext=cc
20224ac_cpp='$CXXCPP $CPPFLAGS'
20225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20228
20229 cat >conftest.$ac_ext <<_ACEOF
20230#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020236#include <iterator>
20237#ifdef HAVE_NAMESPACES
20238using namespace std;
20239#endif
John Criswell7a73b802003-06-30 21:59:07 +000020240int
20241main ()
20242{
John Criswellc78022e2003-07-29 19:11:58 +000020243forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020244 ;
20245 return 0;
20246}
20247_ACEOF
20248rm -f conftest.$ac_objext
20249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250 (eval $ac_compile) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256 (eval $ac_try) 2>&5
20257 ac_status=$?
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); }; }; then
20260 ac_cv_cxx_have_fwd_iterator=yes
20261else
20262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020263sed 's/^/| /' conftest.$ac_ext >&5
20264
John Criswell7a73b802003-06-30 21:59:07 +000020265ac_cv_cxx_have_fwd_iterator=no
20266fi
20267rm -f conftest.$ac_objext conftest.$ac_ext
20268 ac_ext=c
20269ac_cpp='$CPP $CPPFLAGS'
20270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20272ac_compiler_gnu=$ac_cv_c_compiler_gnu
20273
20274
20275fi
20276echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20277echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20278if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20279
20280cat >>confdefs.h <<\_ACEOF
20281#define HAVE_FWD_ITERATOR
20282_ACEOF
20283
20284fi
20285
20286
20287# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20288# for constant arguments. Useless!
20289echo "$as_me:$LINENO: checking for working alloca.h" >&5
20290echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20291if test "${ac_cv_working_alloca_h+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20293else
20294 cat >conftest.$ac_ext <<_ACEOF
20295#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020301#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000020302int
20303main ()
20304{
20305char *p = (char *) alloca (2 * sizeof (int));
20306 ;
20307 return 0;
20308}
20309_ACEOF
20310rm -f conftest.$ac_objext conftest$ac_exeext
20311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20312 (eval $ac_link) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -s conftest$ac_exeext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20319 ac_status=$?
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_cv_working_alloca_h=yes
20323else
20324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020325sed 's/^/| /' conftest.$ac_ext >&5
20326
John Criswell7a73b802003-06-30 21:59:07 +000020327ac_cv_working_alloca_h=no
20328fi
20329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20330fi
20331echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20332echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20333if test $ac_cv_working_alloca_h = yes; then
20334
20335cat >>confdefs.h <<\_ACEOF
20336#define HAVE_ALLOCA_H 1
20337_ACEOF
20338
20339fi
20340
20341echo "$as_me:$LINENO: checking for alloca" >&5
20342echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20343if test "${ac_cv_func_alloca_works+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345else
20346 cat >conftest.$ac_ext <<_ACEOF
20347#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020348/* confdefs.h. */
20349_ACEOF
20350cat confdefs.h >>conftest.$ac_ext
20351cat >>conftest.$ac_ext <<_ACEOF
20352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020353#ifdef __GNUC__
20354# define alloca __builtin_alloca
20355#else
20356# ifdef _MSC_VER
20357# include <malloc.h>
20358# define alloca _alloca
20359# else
20360# if HAVE_ALLOCA_H
20361# include <alloca.h>
20362# else
20363# ifdef _AIX
20364 #pragma alloca
20365# else
20366# ifndef alloca /* predefined by HP cc +Olibcalls */
20367char *alloca ();
20368# endif
20369# endif
20370# endif
20371# endif
20372#endif
20373
John Criswell7a73b802003-06-30 21:59:07 +000020374int
20375main ()
20376{
20377char *p = (char *) alloca (1);
20378 ;
20379 return 0;
20380}
20381_ACEOF
20382rm -f conftest.$ac_objext conftest$ac_exeext
20383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384 (eval $ac_link) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -s conftest$ac_exeext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 ac_cv_func_alloca_works=yes
20395else
20396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020397sed 's/^/| /' conftest.$ac_ext >&5
20398
John Criswell7a73b802003-06-30 21:59:07 +000020399ac_cv_func_alloca_works=no
20400fi
20401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20402fi
20403echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20404echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20405
20406if test $ac_cv_func_alloca_works = yes; then
20407
20408cat >>confdefs.h <<\_ACEOF
20409#define HAVE_ALLOCA 1
20410_ACEOF
20411
20412else
20413 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20414# that cause trouble. Some versions do not even contain alloca or
20415# contain a buggy version. If you still want to use their alloca,
20416# use ar to extract alloca.o from them instead of compiling alloca.c.
20417
20418ALLOCA=alloca.$ac_objext
20419
20420cat >>confdefs.h <<\_ACEOF
20421#define C_ALLOCA 1
20422_ACEOF
20423
20424
20425echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20426echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20427if test "${ac_cv_os_cray+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 cat >conftest.$ac_ext <<_ACEOF
20431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020432/* confdefs.h. */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020437#if defined(CRAY) && ! defined(CRAY2)
20438webecray
20439#else
20440wenotbecray
20441#endif
20442
20443_ACEOF
20444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020445 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020446 ac_cv_os_cray=yes
20447else
20448 ac_cv_os_cray=no
20449fi
20450rm -f conftest*
20451
20452fi
20453echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20454echo "${ECHO_T}$ac_cv_os_cray" >&6
20455if test $ac_cv_os_cray = yes; then
20456 for ac_func in _getb67 GETB67 getb67; do
20457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20458echo "$as_me:$LINENO: checking for $ac_func" >&5
20459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20460if eval "test \"\${$as_ac_var+set}\" = set"; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20462else
20463 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/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020471 which can conflict with char $ac_func (); below.
20472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20473 <limits.h> exists even on freestanding compilers. */
20474#ifdef __STDC__
20475# include <limits.h>
20476#else
20477# include <assert.h>
20478#endif
John Criswell7a73b802003-06-30 21:59:07 +000020479/* Override any gcc2 internal prototype to avoid an error. */
20480#ifdef __cplusplus
20481extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020482{
John Criswell7a73b802003-06-30 21:59:07 +000020483#endif
20484/* We use char because int might match the return type of a gcc2
20485 builtin and then its argument prototype would still apply. */
20486char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020487/* The GNU C library defines this for functions which it implements
20488 to always fail with ENOSYS. Some functions are actually named
20489 something starting with __ and the normal name is an alias. */
20490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20491choke me
20492#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020493char (*f) () = $ac_func;
20494#endif
20495#ifdef __cplusplus
20496}
John Criswell7a73b802003-06-30 21:59:07 +000020497#endif
20498
John Criswell0c38eaf2003-09-10 15:17:25 +000020499int
20500main ()
20501{
20502return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020503 ;
20504 return 0;
20505}
20506_ACEOF
20507rm -f conftest.$ac_objext conftest$ac_exeext
20508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20509 (eval $ac_link) 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } &&
20513 { ac_try='test -s conftest$ac_exeext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 eval "$as_ac_var=yes"
20520else
20521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020522sed 's/^/| /' conftest.$ac_ext >&5
20523
John Criswell7a73b802003-06-30 21:59:07 +000020524eval "$as_ac_var=no"
20525fi
20526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20527fi
20528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20530if test `eval echo '${'$as_ac_var'}'` = yes; then
20531
20532cat >>confdefs.h <<_ACEOF
20533#define CRAY_STACKSEG_END $ac_func
20534_ACEOF
20535
20536 break
20537fi
20538
20539 done
20540fi
20541
20542echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20543echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20544if test "${ac_cv_c_stack_direction+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546else
20547 if test "$cross_compiling" = yes; then
20548 ac_cv_c_stack_direction=0
20549else
20550 cat >conftest.$ac_ext <<_ACEOF
20551#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020552/* confdefs.h. */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020557int
20558find_stack_direction ()
20559{
20560 static char *addr = 0;
20561 auto char dummy;
20562 if (addr == 0)
20563 {
20564 addr = &dummy;
20565 return find_stack_direction ();
20566 }
20567 else
20568 return (&dummy > addr) ? 1 : -1;
20569}
20570
20571int
20572main ()
20573{
20574 exit (find_stack_direction () < 0);
20575}
20576_ACEOF
20577rm -f conftest$ac_exeext
20578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_c_stack_direction=1
20589else
20590 echo "$as_me: program exited with status $ac_status" >&5
20591echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020592sed 's/^/| /' conftest.$ac_ext >&5
20593
John Criswell7a73b802003-06-30 21:59:07 +000020594( exit $ac_status )
20595ac_cv_c_stack_direction=-1
20596fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020597rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020598fi
20599fi
20600echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20601echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20602
20603cat >>confdefs.h <<_ACEOF
20604#define STACK_DIRECTION $ac_cv_c_stack_direction
20605_ACEOF
20606
20607
20608fi
20609
John Criswell7a73b802003-06-30 21:59:07 +000020610
20611
20612for ac_header in stdlib.h unistd.h
20613do
20614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20615if eval "test \"\${$as_ac_Header+set}\" = set"; then
20616 echo "$as_me:$LINENO: checking for $ac_header" >&5
20617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20618if eval "test \"\${$as_ac_Header+set}\" = set"; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620fi
20621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20623else
20624 # Is the header compilable?
20625echo "$as_me:$LINENO: checking $ac_header usability" >&5
20626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20627cat >conftest.$ac_ext <<_ACEOF
20628#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020629/* confdefs.h. */
20630_ACEOF
20631cat confdefs.h >>conftest.$ac_ext
20632cat >>conftest.$ac_ext <<_ACEOF
20633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020634$ac_includes_default
20635#include <$ac_header>
20636_ACEOF
20637rm -f conftest.$ac_objext
20638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_header_compiler=yes
20650else
20651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020652sed 's/^/| /' conftest.$ac_ext >&5
20653
John Criswell7a73b802003-06-30 21:59:07 +000020654ac_header_compiler=no
20655fi
20656rm -f conftest.$ac_objext conftest.$ac_ext
20657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20658echo "${ECHO_T}$ac_header_compiler" >&6
20659
20660# Is the header present?
20661echo "$as_me:$LINENO: checking $ac_header presence" >&5
20662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20663cat >conftest.$ac_ext <<_ACEOF
20664#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020665/* confdefs.h. */
20666_ACEOF
20667cat confdefs.h >>conftest.$ac_ext
20668cat >>conftest.$ac_ext <<_ACEOF
20669/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020670#include <$ac_header>
20671_ACEOF
20672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20674 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020675 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020676 rm -f conftest.er1
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } >/dev/null; then
20680 if test -s conftest.err; then
20681 ac_cpp_err=$ac_c_preproc_warn_flag
20682 else
20683 ac_cpp_err=
20684 fi
20685else
20686 ac_cpp_err=yes
20687fi
20688if test -z "$ac_cpp_err"; then
20689 ac_header_preproc=yes
20690else
20691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020692sed 's/^/| /' conftest.$ac_ext >&5
20693
John Criswell7a73b802003-06-30 21:59:07 +000020694 ac_header_preproc=no
20695fi
20696rm -f conftest.err conftest.$ac_ext
20697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698echo "${ECHO_T}$ac_header_preproc" >&6
20699
20700# So? What about this header?
20701case $ac_header_compiler:$ac_header_preproc in
20702 yes:no )
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707 (
20708 cat <<\_ASBOX
20709## ------------------------------------ ##
20710## Report this to bug-autoconf@gnu.org. ##
20711## ------------------------------------ ##
20712_ASBOX
20713 ) |
20714 sed "s/^/$as_me: WARNING: /" >&2
20715 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020716 no:yes )
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20720echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20723 (
20724 cat <<\_ASBOX
20725## ------------------------------------ ##
20726## Report this to bug-autoconf@gnu.org. ##
20727## ------------------------------------ ##
20728_ASBOX
20729 ) |
20730 sed "s/^/$as_me: WARNING: /" >&2
20731 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020732esac
20733echo "$as_me:$LINENO: checking for $ac_header" >&5
20734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20735if eval "test \"\${$as_ac_Header+set}\" = set"; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737else
20738 eval "$as_ac_Header=$ac_header_preproc"
20739fi
20740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20742
20743fi
20744if test `eval echo '${'$as_ac_Header'}'` = yes; then
20745 cat >>confdefs.h <<_ACEOF
20746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20747_ACEOF
20748
20749fi
20750
20751done
20752
20753
20754for ac_func in getpagesize
20755do
20756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20757echo "$as_me:$LINENO: checking for $ac_func" >&5
20758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20759if eval "test \"\${$as_ac_var+set}\" = set"; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761else
20762 cat >conftest.$ac_ext <<_ACEOF
20763#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020769/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000020770 which can conflict with char $ac_func (); below.
20771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20772 <limits.h> exists even on freestanding compilers. */
20773#ifdef __STDC__
20774# include <limits.h>
20775#else
20776# include <assert.h>
20777#endif
John Criswell7a73b802003-06-30 21:59:07 +000020778/* Override any gcc2 internal prototype to avoid an error. */
20779#ifdef __cplusplus
20780extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000020781{
John Criswell7a73b802003-06-30 21:59:07 +000020782#endif
20783/* We use char because int might match the return type of a gcc2
20784 builtin and then its argument prototype would still apply. */
20785char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000020786/* The GNU C library defines this for functions which it implements
20787 to always fail with ENOSYS. Some functions are actually named
20788 something starting with __ and the normal name is an alias. */
20789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20790choke me
20791#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020792char (*f) () = $ac_func;
20793#endif
20794#ifdef __cplusplus
20795}
John Criswell7a73b802003-06-30 21:59:07 +000020796#endif
20797
John Criswell0c38eaf2003-09-10 15:17:25 +000020798int
20799main ()
20800{
20801return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000020802 ;
20803 return 0;
20804}
20805_ACEOF
20806rm -f conftest.$ac_objext conftest$ac_exeext
20807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20808 (eval $ac_link) 2>&5
20809 ac_status=$?
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -s conftest$ac_exeext'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20818 eval "$as_ac_var=yes"
20819else
20820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020821sed 's/^/| /' conftest.$ac_ext >&5
20822
John Criswell7a73b802003-06-30 21:59:07 +000020823eval "$as_ac_var=no"
20824fi
20825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20826fi
20827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20828echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20829if test `eval echo '${'$as_ac_var'}'` = yes; then
20830 cat >>confdefs.h <<_ACEOF
20831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20832_ACEOF
20833
20834fi
20835done
20836
20837echo "$as_me:$LINENO: checking for working mmap" >&5
20838echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20839if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20841else
20842 if test "$cross_compiling" = yes; then
20843 ac_cv_func_mmap_fixed_mapped=no
20844else
20845 cat >conftest.$ac_ext <<_ACEOF
20846#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020852$ac_includes_default
20853/* malloc might have been renamed as rpl_malloc. */
20854#undef malloc
20855
20856/* Thanks to Mike Haertel and Jim Avera for this test.
20857 Here is a matrix of mmap possibilities:
20858 mmap private not fixed
20859 mmap private fixed at somewhere currently unmapped
20860 mmap private fixed at somewhere already mapped
20861 mmap shared not fixed
20862 mmap shared fixed at somewhere currently unmapped
20863 mmap shared fixed at somewhere already mapped
20864 For private mappings, we should verify that changes cannot be read()
20865 back from the file, nor mmap's back from the file at a different
20866 address. (There have been systems where private was not correctly
20867 implemented like the infamous i386 svr4.0, and systems where the
20868 VM page cache was not coherent with the file system buffer cache
20869 like early versions of FreeBSD and possibly contemporary NetBSD.)
20870 For shared mappings, we should conversely verify that changes get
20871 propagated back to all the places they're supposed to be.
20872
20873 Grep wants private fixed already mapped.
20874 The main things grep needs to know about mmap are:
20875 * does it exist and is it safe to write into the mmap'd area
20876 * how to use it (BSD variants) */
20877
20878#include <fcntl.h>
20879#include <sys/mman.h>
20880
20881#if !STDC_HEADERS && !HAVE_STDLIB_H
20882char *malloc ();
20883#endif
20884
20885/* This mess was copied from the GNU getpagesize.h. */
20886#if !HAVE_GETPAGESIZE
20887/* Assume that all systems that can run configure have sys/param.h. */
20888# if !HAVE_SYS_PARAM_H
20889# define HAVE_SYS_PARAM_H 1
20890# endif
20891
20892# ifdef _SC_PAGESIZE
20893# define getpagesize() sysconf(_SC_PAGESIZE)
20894# else /* no _SC_PAGESIZE */
20895# if HAVE_SYS_PARAM_H
20896# include <sys/param.h>
20897# ifdef EXEC_PAGESIZE
20898# define getpagesize() EXEC_PAGESIZE
20899# else /* no EXEC_PAGESIZE */
20900# ifdef NBPG
20901# define getpagesize() NBPG * CLSIZE
20902# ifndef CLSIZE
20903# define CLSIZE 1
20904# endif /* no CLSIZE */
20905# else /* no NBPG */
20906# ifdef NBPC
20907# define getpagesize() NBPC
20908# else /* no NBPC */
20909# ifdef PAGESIZE
20910# define getpagesize() PAGESIZE
20911# endif /* PAGESIZE */
20912# endif /* no NBPC */
20913# endif /* no NBPG */
20914# endif /* no EXEC_PAGESIZE */
20915# else /* no HAVE_SYS_PARAM_H */
20916# define getpagesize() 8192 /* punt totally */
20917# endif /* no HAVE_SYS_PARAM_H */
20918# endif /* no _SC_PAGESIZE */
20919
20920#endif /* no HAVE_GETPAGESIZE */
20921
20922int
20923main ()
20924{
20925 char *data, *data2, *data3;
20926 int i, pagesize;
20927 int fd;
20928
20929 pagesize = getpagesize ();
20930
20931 /* First, make a file with some known garbage in it. */
20932 data = (char *) malloc (pagesize);
20933 if (!data)
20934 exit (1);
20935 for (i = 0; i < pagesize; ++i)
20936 *(data + i) = rand ();
20937 umask (0);
20938 fd = creat ("conftest.mmap", 0600);
20939 if (fd < 0)
20940 exit (1);
20941 if (write (fd, data, pagesize) != pagesize)
20942 exit (1);
20943 close (fd);
20944
20945 /* Next, try to mmap the file at a fixed address which already has
20946 something else allocated at it. If we can, also make sure that
20947 we see the same garbage. */
20948 fd = open ("conftest.mmap", O_RDWR);
20949 if (fd < 0)
20950 exit (1);
20951 data2 = (char *) malloc (2 * pagesize);
20952 if (!data2)
20953 exit (1);
20954 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
20955 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20956 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20957 exit (1);
20958 for (i = 0; i < pagesize; ++i)
20959 if (*(data + i) != *(data2 + i))
20960 exit (1);
20961
20962 /* Finally, make sure that changes to the mapped area do not
20963 percolate back to the file as seen by read(). (This is a bug on
20964 some variants of i386 svr4.0.) */
20965 for (i = 0; i < pagesize; ++i)
20966 *(data2 + i) = *(data2 + i) + 1;
20967 data3 = (char *) malloc (pagesize);
20968 if (!data3)
20969 exit (1);
20970 if (read (fd, data3, pagesize) != pagesize)
20971 exit (1);
20972 for (i = 0; i < pagesize; ++i)
20973 if (*(data + i) != *(data3 + i))
20974 exit (1);
20975 close (fd);
20976 exit (0);
20977}
20978_ACEOF
20979rm -f conftest$ac_exeext
20980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20981 (eval $ac_link) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_func_mmap_fixed_mapped=yes
20991else
20992 echo "$as_me: program exited with status $ac_status" >&5
20993echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020994sed 's/^/| /' conftest.$ac_ext >&5
20995
John Criswell7a73b802003-06-30 21:59:07 +000020996( exit $ac_status )
20997ac_cv_func_mmap_fixed_mapped=no
20998fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020999rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021000fi
21001fi
21002echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21003echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21004if test $ac_cv_func_mmap_fixed_mapped = yes; then
21005
21006cat >>confdefs.h <<\_ACEOF
21007#define HAVE_MMAP 1
21008_ACEOF
21009
21010fi
21011rm -f conftest.mmap
21012
Brian Gaeke26be9c52004-01-13 06:43:16 +000021013if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21014then
21015 { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
21016echo "$as_me: error: mmap() required but not found" >&2;}
21017 { (exit 1); exit 1; }; }
21018fi
John Criswell7a73b802003-06-30 21:59:07 +000021019echo "$as_me:$LINENO: checking for mmap of files" >&5
21020echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21021if test "${ac_cv_func_mmap_file+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21023else
21024
21025
21026 ac_ext=c
21027ac_cpp='$CPP $CPPFLAGS'
21028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21030ac_compiler_gnu=$ac_cv_c_compiler_gnu
21031
21032 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021033 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21034See \`config.log' for more details." >&5
21035echo "$as_me: error: cannot run test program while cross compiling
21036See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021037 { (exit 1); exit 1; }; }
21038else
21039 cat >conftest.$ac_ext <<_ACEOF
21040#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021041/* confdefs.h. */
21042_ACEOF
21043cat confdefs.h >>conftest.$ac_ext
21044cat >>conftest.$ac_ext <<_ACEOF
21045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021046
John Criswell7a73b802003-06-30 21:59:07 +000021047#ifdef HAVE_SYS_TYPES_H
21048#include <sys/types.h>
21049#endif
21050
John Criswell5ab73462003-10-09 15:44:28 +000021051#ifdef HAVE_SYS_MMAN_H
21052#include <sys/mman.h>
21053#endif
21054
John Criswell7a73b802003-06-30 21:59:07 +000021055#ifdef HAVE_FCNTL_H
21056#include <fcntl.h>
21057#endif
21058
21059 int fd;
21060 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000021061 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 +000021062_ACEOF
21063rm -f conftest$ac_exeext
21064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21065 (eval $ac_link) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_func_mmap_file=yes
21075else
21076 echo "$as_me: program exited with status $ac_status" >&5
21077echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021078sed 's/^/| /' conftest.$ac_ext >&5
21079
John Criswell7a73b802003-06-30 21:59:07 +000021080( exit $ac_status )
21081ac_cv_func_mmap_file=no
21082fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021083rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021084fi
21085 ac_ext=c
21086ac_cpp='$CPP $CPPFLAGS'
21087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089ac_compiler_gnu=$ac_cv_c_compiler_gnu
21090
21091
21092fi
21093echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21094echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21095if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021096
21097cat >>confdefs.h <<\_ACEOF
21098#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000021099_ACEOF
21100
21101 MMAP_FILE=yes
21102
21103fi
21104
Brian Gaeke26be9c52004-01-13 06:43:16 +000021105if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000021106then
21107 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21108echo "$as_me: error: mmap() of files required but not found" >&2;}
21109 { (exit 1); exit 1; }; }
21110fi
21111echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21112echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21113if test "${ac_cv_header_mmap_anon+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116
21117
21118 ac_ext=c
21119ac_cpp='$CPP $CPPFLAGS'
21120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21122ac_compiler_gnu=$ac_cv_c_compiler_gnu
21123
21124 cat >conftest.$ac_ext <<_ACEOF
21125#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021126/* confdefs.h. */
21127_ACEOF
21128cat confdefs.h >>conftest.$ac_ext
21129cat >>conftest.$ac_ext <<_ACEOF
21130/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021131#include <sys/mman.h>
21132 #include <unistd.h>
21133 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000021134int
21135main ()
21136{
21137mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21138 ;
21139 return 0;
21140}
21141_ACEOF
21142rm -f conftest.$ac_objext
21143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21144 (eval $ac_compile) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
21148 { ac_try='test -s conftest.$ac_objext'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_header_mmap_anon=yes
21155else
21156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021157sed 's/^/| /' conftest.$ac_ext >&5
21158
John Criswell7a73b802003-06-30 21:59:07 +000021159ac_cv_header_mmap_anon=no
21160fi
21161rm -f conftest.$ac_objext conftest.$ac_ext
21162 ac_ext=c
21163ac_cpp='$CPP $CPPFLAGS'
21164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166ac_compiler_gnu=$ac_cv_c_compiler_gnu
21167
21168
21169fi
21170echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21171echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21172if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000021173
21174cat >>confdefs.h <<\_ACEOF
21175#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000021176_ACEOF
21177
21178fi
21179
21180echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21181echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21182if test "${ac_cv_type_signal+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21184else
21185 cat >conftest.$ac_ext <<_ACEOF
21186#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021187/* confdefs.h. */
21188_ACEOF
21189cat confdefs.h >>conftest.$ac_ext
21190cat >>conftest.$ac_ext <<_ACEOF
21191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021192#include <sys/types.h>
21193#include <signal.h>
21194#ifdef signal
21195# undef signal
21196#endif
21197#ifdef __cplusplus
21198extern "C" void (*signal (int, void (*)(int)))(int);
21199#else
21200void (*signal ()) ();
21201#endif
21202
John Criswell7a73b802003-06-30 21:59:07 +000021203int
21204main ()
21205{
21206int i;
21207 ;
21208 return 0;
21209}
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_type_signal=void
21224else
21225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021226sed 's/^/| /' conftest.$ac_ext >&5
21227
John Criswell7a73b802003-06-30 21:59:07 +000021228ac_cv_type_signal=int
21229fi
21230rm -f conftest.$ac_objext conftest.$ac_ext
21231fi
21232echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21233echo "${ECHO_T}$ac_cv_type_signal" >&6
21234
21235cat >>confdefs.h <<_ACEOF
21236#define RETSIGTYPE $ac_cv_type_signal
21237_ACEOF
21238
21239
21240
21241
21242
21243
21244
Brian Gaeke26be9c52004-01-13 06:43:16 +000021245for ac_func in getcwd gettimeofday strdup strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000021246do
21247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21248echo "$as_me:$LINENO: checking for $ac_func" >&5
21249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21250if eval "test \"\${$as_ac_var+set}\" = set"; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252else
21253 cat >conftest.$ac_ext <<_ACEOF
21254#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021255/* confdefs.h. */
21256_ACEOF
21257cat confdefs.h >>conftest.$ac_ext
21258cat >>conftest.$ac_ext <<_ACEOF
21259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021260/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021261 which can conflict with char $ac_func (); below.
21262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21263 <limits.h> exists even on freestanding compilers. */
21264#ifdef __STDC__
21265# include <limits.h>
21266#else
21267# include <assert.h>
21268#endif
John Criswell7a73b802003-06-30 21:59:07 +000021269/* Override any gcc2 internal prototype to avoid an error. */
21270#ifdef __cplusplus
21271extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021272{
John Criswell7a73b802003-06-30 21:59:07 +000021273#endif
21274/* We use char because int might match the return type of a gcc2
21275 builtin and then its argument prototype would still apply. */
21276char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021277/* The GNU C library defines this for functions which it implements
21278 to always fail with ENOSYS. Some functions are actually named
21279 something starting with __ and the normal name is an alias. */
21280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21281choke me
21282#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021283char (*f) () = $ac_func;
21284#endif
21285#ifdef __cplusplus
21286}
John Criswell7a73b802003-06-30 21:59:07 +000021287#endif
21288
John Criswell0c38eaf2003-09-10 15:17:25 +000021289int
21290main ()
21291{
21292return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021293 ;
21294 return 0;
21295}
21296_ACEOF
21297rm -f conftest.$ac_objext conftest$ac_exeext
21298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299 (eval $ac_link) 2>&5
21300 ac_status=$?
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -s conftest$ac_exeext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 eval "$as_ac_var=yes"
21310else
21311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021312sed 's/^/| /' conftest.$ac_ext >&5
21313
John Criswell7a73b802003-06-30 21:59:07 +000021314eval "$as_ac_var=no"
21315fi
21316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21317fi
21318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21320if test `eval echo '${'$as_ac_var'}'` = yes; then
21321 cat >>confdefs.h <<_ACEOF
21322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21323_ACEOF
21324
21325fi
21326done
21327
John Criswell7a73b802003-06-30 21:59:07 +000021328echo "$as_me:$LINENO: checking for mprotect" >&5
21329echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21330if test "${ac_cv_func_mprotect+set}" = set; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332else
21333 cat >conftest.$ac_ext <<_ACEOF
21334#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021340/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021341 which can conflict with char mprotect (); below.
21342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21343 <limits.h> exists even on freestanding compilers. */
21344#ifdef __STDC__
21345# include <limits.h>
21346#else
21347# include <assert.h>
21348#endif
John Criswell7a73b802003-06-30 21:59:07 +000021349/* Override any gcc2 internal prototype to avoid an error. */
21350#ifdef __cplusplus
21351extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021352{
John Criswell7a73b802003-06-30 21:59:07 +000021353#endif
21354/* We use char because int might match the return type of a gcc2
21355 builtin and then its argument prototype would still apply. */
21356char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000021357/* The GNU C library defines this for functions which it implements
21358 to always fail with ENOSYS. Some functions are actually named
21359 something starting with __ and the normal name is an alias. */
21360#if defined (__stub_mprotect) || defined (__stub___mprotect)
21361choke me
21362#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021363char (*f) () = mprotect;
21364#endif
21365#ifdef __cplusplus
21366}
John Criswell7a73b802003-06-30 21:59:07 +000021367#endif
21368
John Criswell0c38eaf2003-09-10 15:17:25 +000021369int
21370main ()
21371{
21372return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000021373 ;
21374 return 0;
21375}
21376_ACEOF
21377rm -f conftest.$ac_objext conftest$ac_exeext
21378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 (eval $ac_link) 2>&5
21380 ac_status=$?
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -s conftest$ac_exeext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 ac_cv_func_mprotect=yes
21390else
21391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021392sed 's/^/| /' conftest.$ac_ext >&5
21393
John Criswell7a73b802003-06-30 21:59:07 +000021394ac_cv_func_mprotect=no
21395fi
21396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21397fi
21398echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21399echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21400if test $ac_cv_func_mprotect = yes; then
21401 :
21402else
21403 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21404echo "$as_me: error: Function mprotect() required but not found" >&2;}
21405 { (exit 1); exit 1; }; }
21406fi
21407
21408
John Criswellb13092b2003-07-22 21:00:24 +000021409
John Criswellcb7a1eb2003-11-17 19:46:02 +000021410
21411
21412 ac_ext=c
21413ac_cpp='$CPP $CPPFLAGS'
21414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416ac_compiler_gnu=$ac_cv_c_compiler_gnu
21417
Brian Gaekef91a15c2003-11-18 06:20:41 +000021418 oldcflags="$CFLAGS"
21419 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000021420 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000021421int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000021422_ACEOF
21423rm -f conftest.$ac_objext conftest$ac_exeext
21424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425 (eval $ac_link) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } &&
21429 { ac_try='test -s conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 ac_cv_link_use_r=yes
21436else
21437 echo "$as_me: failed program was:" >&5
21438sed 's/^/| /' conftest.$ac_ext >&5
21439
Brian Gaekef91a15c2003-11-18 06:20:41 +000021440ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000021441fi
21442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000021443 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000021444 ac_ext=c
21445ac_cpp='$CPP $CPPFLAGS'
21446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21448ac_compiler_gnu=$ac_cv_c_compiler_gnu
21449
Brian Gaekef91a15c2003-11-18 06:20:41 +000021450 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000021451 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000021452
21453cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000021454#define HAVE_LINK_R 1
21455_ACEOF
21456
21457 fi
21458
21459
John Criswell7a73b802003-06-30 21:59:07 +000021460# Check whether --enable-optimized or --disable-optimized was given.
21461if test "${enable_optimized+set}" = set; then
21462 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000021463
21464else
John Criswellb13092b2003-07-22 21:00:24 +000021465 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021466fi;
John Criswellb13092b2003-07-22 21:00:24 +000021467if test ${enableval} = "no"
21468then
21469 ENABLE_OPTIMIZED=
21470
21471else
21472 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21473
21474fi
21475
John Criswell55126592003-10-07 21:57:39 +000021476# Check whether --enable-spec2000 or --disable-spec2000 was given.
21477if test "${enable_spec2000+set}" = set; then
21478 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000021479
21480else
John Criswellb13092b2003-07-22 21:00:24 +000021481 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021482fi;
John Criswellb13092b2003-07-22 21:00:24 +000021483if test ${enableval} = "no"
21484then
John Criswell55126592003-10-07 21:57:39 +000021485 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
21486 then
21487 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000021488
John Criswell55126592003-10-07 21:57:39 +000021489 USE_SPEC=USE_SPEC=1
21490
21491 else
21492 USE_SPEC=
21493
21494
21495 fi
John Criswellb13092b2003-07-22 21:00:24 +000021496else
John Criswell55126592003-10-07 21:57:39 +000021497 if test ${enableval} = ""
21498 then
21499 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21500
21501 else
21502 SPEC_ROOT=${enableval}
21503
21504 fi
John Criswellb13092b2003-07-22 21:00:24 +000021505 USE_SPEC=USE_SPEC=1
21506
21507fi
21508
John Criswell7a73b802003-06-30 21:59:07 +000021509# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21510if test "${enable_precompiled_bytecode+set}" = set; then
21511 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000021512
21513else
John Criswellb13092b2003-07-22 21:00:24 +000021514 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000021515fi;
John Criswellb13092b2003-07-22 21:00:24 +000021516if test ${enableval} = "no"
21517then
21518 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000021519
John Criswellb13092b2003-07-22 21:00:24 +000021520else
21521 UPB=USE_PRECOMPILED_BYTECODE=1
21522
21523fi
John Criswellf02dbf02003-07-22 20:07:49 +000021524
John Criswellf02dbf02003-07-22 20:07:49 +000021525# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
21526if test "${enable_llc_diffs+set}" = set; then
21527 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000021528
21529else
John Criswellb13092b2003-07-22 21:00:24 +000021530 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000021531fi;
John Criswellb13092b2003-07-22 21:00:24 +000021532if test ${enableval} = "no"
21533then
21534 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000021535
John Criswellb13092b2003-07-22 21:00:24 +000021536else
21537 DISABLE_LLC_DIFFS=
21538
21539fi
21540
21541# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000021542if test "${enable_jit+set}" = set; then
21543 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000021544
21545else
John Criswellc78022e2003-07-29 19:11:58 +000021546 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000021547fi;
John Criswellb13092b2003-07-22 21:00:24 +000021548if test ${enableval} = "no"
21549then
21550 JIT=
21551
21552else
John Criswellc78022e2003-07-29 19:11:58 +000021553 case $target in
21554 *i*86*)
21555 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000021556
John Criswellc78022e2003-07-29 19:11:58 +000021557 ;;
21558 *sparc*)
21559 JIT=TARGET_HAS_JIT=1
21560
21561 ;;
21562 *)
21563 JIT=
21564
21565 ;;
21566 esac
John Criswellb13092b2003-07-22 21:00:24 +000021567fi
John Criswell7a73b802003-06-30 21:59:07 +000021568
21569
John Criswell7a73b802003-06-30 21:59:07 +000021570# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21571if test "${with_llvmgccdir+set}" = set; then
21572 withval="$with_llvmgccdir"
21573 LLVMGCCDIR=$withval
21574
21575fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000021576echo "$as_me:$LINENO: checking for llvm-gcc" >&5
21577echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
21578LLVM_GCC_CHECK=no
21579if test -d "$LLVMGCCDIR"
21580then
21581 if test -x "$LLVMGCCDIR/bin/gcc"
21582 then
21583 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
21584 fi
21585fi
21586llvmgccwarn=no
21587echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
21588echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
21589if test "$LLVM_GCC_CHECK" = "no"
21590then
21591 llvmgccwarn=yes
21592fi
Brian Gaekef3b24102003-11-16 18:38:14 +000021593echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
21594echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
21595LLVM_GCC_SANE=no
21596if test -x "$LLVM_GCC_CHECK"
21597then
21598 cp /dev/null conftest.c
21599 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
21600 if test $? -eq 0
21601 then
21602 LLVM_GCC_SANE=yes
21603 fi
21604 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000021605 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000021606 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000021607
21608 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000021609 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000021610
Brian Gaekef3b24102003-11-16 18:38:14 +000021611fi
21612echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
21613echo "${ECHO_T}$LLVM_GCC_SANE" >&6
21614if test "$LLVM_GCC_SANE" = "no"
21615then
21616 llvmgccwarn=yes
21617fi
21618
John Criswellc78022e2003-07-29 19:11:58 +000021619
John Criswell7a73b802003-06-30 21:59:07 +000021620# Check whether --with-bcrepos or --without-bcrepos was given.
21621if test "${with_bcrepos+set}" = set; then
21622 withval="$with_bcrepos"
21623 BCR=$withval
21624
21625else
21626 BCR=/home/vadve/lattner/LLVMPrograms
21627
21628fi;
21629
John Criswellc78022e2003-07-29 19:11:58 +000021630
John Criswell7a73b802003-06-30 21:59:07 +000021631# Check whether --with-papi or --without-papi was given.
21632if test "${with_papi+set}" = set; then
21633 withval="$with_papi"
21634 PAPIDIR=$withval
21635
21636else
John Criswellde00db22003-08-25 16:49:54 +000021637 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000021638
21639fi;
21640
Brian Gaeke554831c2004-01-21 19:39:29 +000021641echo "$as_me:$LINENO: checking for shared library suffix" >&5
21642echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
21643eval "SHLIBEXT=$shrext"
21644echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
21645echo "${ECHO_T}$SHLIBEXT" >&6
21646SHLIBEXT=$SHLIBEXT
21647
21648
21649cat >>confdefs.h <<_ACEOF
21650#define SHLIBEXT "$SHLIBEXT"
21651_ACEOF
21652
21653
John Criswell0c38eaf2003-09-10 15:17:25 +000021654 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000021655cat >confcache <<\_ACEOF
21656# This file is a shell script that caches the results of configure
21657# tests run on this system so they can be shared between configure
21658# scripts and configure runs, see configure's option --config-cache.
21659# It is not useful on other systems. If it contains results you don't
21660# want to keep, you may remove or edit it.
21661#
21662# config.status only pays attention to the cache file if you give it
21663# the --recheck option to rerun configure.
21664#
John Criswell0c38eaf2003-09-10 15:17:25 +000021665# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000021666# loading this file, other *unset* `ac_cv_foo' will be assigned the
21667# following values.
21668
21669_ACEOF
21670
21671# The following way of writing the cache mishandles newlines in values,
21672# but we know of no workaround that is simple, portable, and efficient.
21673# So, don't put newlines in cache variables' values.
21674# Ultrix sh set writes to stderr and can't be redirected directly,
21675# and sets the high bit in the cache file unless we assign to the vars.
21676{
21677 (set) 2>&1 |
21678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21679 *ac_space=\ *)
21680 # `set' does not quote correctly, so add quotes (double-quote
21681 # substitution turns \\\\ into \\, and sed turns \\ into \).
21682 sed -n \
21683 "s/'/'\\\\''/g;
21684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21685 ;;
21686 *)
21687 # `set' quotes correctly as required by POSIX, so do not add quotes.
21688 sed -n \
21689 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21690 ;;
21691 esac;
21692} |
21693 sed '
21694 t clear
21695 : clear
21696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21697 t end
21698 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21699 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000021700if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000021701 if test -w $cache_file; then
21702 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21703 cat confcache >$cache_file
21704 else
21705 echo "not updating unwritable cache $cache_file"
21706 fi
21707fi
21708rm -f confcache
21709
21710test "x$prefix" = xNONE && prefix=$ac_default_prefix
21711# Let make expand exec_prefix.
21712test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21713
21714# VPATH may cause trouble with some makes, so we remove $(srcdir),
21715# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21716# trailing colons and then remove the whole line if VPATH becomes empty
21717# (actually we leave an empty line to preserve line numbers).
21718if test "x$srcdir" = x.; then
21719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21720s/:*\$(srcdir):*/:/;
21721s/:*\${srcdir}:*/:/;
21722s/:*@srcdir@:*/:/;
21723s/^\([^=]*=[ ]*\):*/\1/;
21724s/:*$//;
21725s/^[^=]*=[ ]*$//;
21726}'
21727fi
21728
21729DEFS=-DHAVE_CONFIG_H
21730
John Criswell0c38eaf2003-09-10 15:17:25 +000021731ac_libobjs=
21732ac_ltlibobjs=
21733for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21734 # 1. Remove the extension, and $U if already installed.
21735 ac_i=`echo "$ac_i" |
21736 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21737 # 2. Add them.
21738 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21739 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21740done
21741LIBOBJS=$ac_libobjs
21742
21743LTLIBOBJS=$ac_ltlibobjs
21744
21745
John Criswell7a73b802003-06-30 21:59:07 +000021746
21747: ${CONFIG_STATUS=./config.status}
21748ac_clean_files_save=$ac_clean_files
21749ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21750{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21751echo "$as_me: creating $CONFIG_STATUS" >&6;}
21752cat >$CONFIG_STATUS <<_ACEOF
21753#! $SHELL
21754# Generated by $as_me.
21755# Run this file to recreate the current configuration.
21756# Compiler output produced by configure, useful for debugging
21757# configure, is in config.log if it exists.
21758
21759debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021760ac_cs_recheck=false
21761ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021762SHELL=\${CONFIG_SHELL-$SHELL}
21763_ACEOF
21764
21765cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021766## --------------------- ##
21767## M4sh Initialization. ##
21768## --------------------- ##
21769
21770# Be Bourne compatible
21771if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21772 emulate sh
21773 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021774 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21775 # is contrary to our usage. Disable this feature.
21776 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000021777elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21778 set -o posix
21779fi
21780
John Criswell7a73b802003-06-30 21:59:07 +000021781# Support unset when possible.
21782if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21783 as_unset=unset
21784else
21785 as_unset=false
21786fi
21787
John Criswell0c38eaf2003-09-10 15:17:25 +000021788
21789# Work around bugs in pre-3.0 UWIN ksh.
21790$as_unset ENV MAIL MAILPATH
21791PS1='$ '
21792PS2='> '
21793PS4='+ '
21794
21795# NLS nuisances.
21796for as_var in \
21797 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21798 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21799 LC_TELEPHONE LC_TIME
21800do
21801 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
21802 eval $as_var=C; export $as_var
21803 else
21804 $as_unset $as_var
21805 fi
21806done
21807
21808# Required to use basename.
21809if expr a : '\(a\)' >/dev/null 2>&1; then
21810 as_expr=expr
21811else
21812 as_expr=false
21813fi
21814
21815if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21816 as_basename=basename
21817else
21818 as_basename=false
21819fi
John Criswell7a73b802003-06-30 21:59:07 +000021820
21821
21822# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000021823as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000021824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21825 X"$0" : 'X\(//\)$' \| \
21826 X"$0" : 'X\(/\)$' \| \
21827 . : '\(.\)' 2>/dev/null ||
21828echo X/"$0" |
21829 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21830 /^X\/\(\/\/\)$/{ s//\1/; q; }
21831 /^X\/\(\/\).*/{ s//\1/; q; }
21832 s/.*/./; q'`
21833
John Criswell0c38eaf2003-09-10 15:17:25 +000021834
John Criswell7a73b802003-06-30 21:59:07 +000021835# PATH needs CR, and LINENO needs CR and PATH.
21836# Avoid depending upon Character Ranges.
21837as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21838as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21839as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21840as_cr_digits='0123456789'
21841as_cr_alnum=$as_cr_Letters$as_cr_digits
21842
21843# The user is always right.
21844if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021845 echo "#! /bin/sh" >conf$$.sh
21846 echo "exit 0" >>conf$$.sh
21847 chmod +x conf$$.sh
21848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021849 PATH_SEPARATOR=';'
21850 else
21851 PATH_SEPARATOR=:
21852 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021853 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000021854fi
21855
21856
21857 as_lineno_1=$LINENO
21858 as_lineno_2=$LINENO
21859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21860 test "x$as_lineno_1" != "x$as_lineno_2" &&
21861 test "x$as_lineno_3" = "x$as_lineno_2" || {
21862 # Find who we are. Look in the path if we contain no path at all
21863 # relative or not.
21864 case $0 in
21865 *[\\/]* ) as_myself=$0 ;;
21866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867for as_dir in $PATH
21868do
21869 IFS=$as_save_IFS
21870 test -z "$as_dir" && as_dir=.
21871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21872done
21873
21874 ;;
21875 esac
21876 # We did not find ourselves, most probably we were run as `sh COMMAND'
21877 # in which case we are not to be found in the path.
21878 if test "x$as_myself" = x; then
21879 as_myself=$0
21880 fi
21881 if test ! -f "$as_myself"; then
21882 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21883echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21884 { (exit 1); exit 1; }; }
21885 fi
21886 case $CONFIG_SHELL in
21887 '')
21888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21889for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21890do
21891 IFS=$as_save_IFS
21892 test -z "$as_dir" && as_dir=.
21893 for as_base in sh bash ksh sh5; do
21894 case $as_dir in
21895 /*)
21896 if ("$as_dir/$as_base" -c '
21897 as_lineno_1=$LINENO
21898 as_lineno_2=$LINENO
21899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21900 test "x$as_lineno_1" != "x$as_lineno_2" &&
21901 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000021902 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21903 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000021904 CONFIG_SHELL=$as_dir/$as_base
21905 export CONFIG_SHELL
21906 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21907 fi;;
21908 esac
21909 done
21910done
21911;;
21912 esac
21913
21914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21915 # uniformly replaced by the line number. The first 'sed' inserts a
21916 # line-number line before each line; the second 'sed' does the real
21917 # work. The second script uses 'N' to pair each line-number line
21918 # with the numbered line, and appends trailing '-' during
21919 # substitution so that $LINENO is not a special case at line end.
21920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21921 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21922 sed '=' <$as_myself |
21923 sed '
21924 N
21925 s,$,-,
21926 : loop
21927 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21928 t loop
21929 s,-$,,
21930 s,^['$as_cr_digits']*\n,,
21931 ' >$as_me.lineno &&
21932 chmod +x $as_me.lineno ||
21933 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21934echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21935 { (exit 1); exit 1; }; }
21936
21937 # Don't try to exec as it changes $[0], causing all sort of problems
21938 # (the dirname of $[0] is not the place where we might find the
21939 # original and so on. Autoconf is especially sensible to this).
21940 . ./$as_me.lineno
21941 # Exit status is that of the last command.
21942 exit
21943}
21944
21945
21946case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21947 *c*,-n*) ECHO_N= ECHO_C='
21948' ECHO_T=' ' ;;
21949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21951esac
21952
21953if expr a : '\(a\)' >/dev/null 2>&1; then
21954 as_expr=expr
21955else
21956 as_expr=false
21957fi
21958
21959rm -f conf$$ conf$$.exe conf$$.file
21960echo >conf$$.file
21961if ln -s conf$$.file conf$$ 2>/dev/null; then
21962 # We could just check for DJGPP; but this test a) works b) is more generic
21963 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21964 if test -f conf$$.exe; then
21965 # Don't use ln at all; we don't have any links
21966 as_ln_s='cp -p'
21967 else
21968 as_ln_s='ln -s'
21969 fi
21970elif ln conf$$.file conf$$ 2>/dev/null; then
21971 as_ln_s=ln
21972else
21973 as_ln_s='cp -p'
21974fi
21975rm -f conf$$ conf$$.exe conf$$.file
21976
John Criswell0c38eaf2003-09-10 15:17:25 +000021977if mkdir -p . 2>/dev/null; then
21978 as_mkdir_p=:
21979else
21980 as_mkdir_p=false
21981fi
21982
John Criswell7a73b802003-06-30 21:59:07 +000021983as_executable_p="test -f"
21984
21985# Sed expression to map a string onto a valid CPP name.
21986as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21987
21988# Sed expression to map a string onto a valid variable name.
21989as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21990
21991
21992# IFS
21993# We need space, tab and new line, in precisely that order.
21994as_nl='
21995'
21996IFS=" $as_nl"
21997
21998# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000021999$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000022000
22001exec 6>&1
22002
22003# Open the log real soon, to keep \$[0] and so on meaningful, and to
22004# report actual input values of CONFIG_FILES etc. instead of their
22005# values after options handling. Logging --version etc. is OK.
22006exec 5>>config.log
22007{
22008 echo
22009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22010## Running $as_me. ##
22011_ASBOX
22012} >&5
22013cat >&5 <<_CSEOF
22014
John Criswelld000e1d2003-12-18 16:43:17 +000022015This file was extended by [LLVM] $as_me [1.1], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000022016generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022017
22018 CONFIG_FILES = $CONFIG_FILES
22019 CONFIG_HEADERS = $CONFIG_HEADERS
22020 CONFIG_LINKS = $CONFIG_LINKS
22021 CONFIG_COMMANDS = $CONFIG_COMMANDS
22022 $ $0 $@
22023
22024_CSEOF
22025echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22026echo >&5
22027_ACEOF
22028
22029# Files that config.status was made for.
22030if test -n "$ac_config_files"; then
22031 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22032fi
22033
22034if test -n "$ac_config_headers"; then
22035 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22036fi
22037
22038if test -n "$ac_config_links"; then
22039 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22040fi
22041
22042if test -n "$ac_config_commands"; then
22043 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22044fi
22045
22046cat >>$CONFIG_STATUS <<\_ACEOF
22047
22048ac_cs_usage="\
22049\`$as_me' instantiates files from templates according to the
22050current configuration.
22051
22052Usage: $0 [OPTIONS] [FILE]...
22053
22054 -h, --help print this help, then exit
22055 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000022056 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000022057 -d, --debug don't remove temporary files
22058 --recheck update $as_me by reconfiguring in the same conditions
22059 --file=FILE[:TEMPLATE]
22060 instantiate the configuration file FILE
22061 --header=FILE[:TEMPLATE]
22062 instantiate the configuration header FILE
22063
22064Configuration files:
22065$config_files
22066
22067Configuration headers:
22068$config_headers
22069
John Criswellc764fbc2003-09-06 15:17:13 +000022070Configuration commands:
22071$config_commands
22072
John Criswell7a73b802003-06-30 21:59:07 +000022073Report bugs to <bug-autoconf@gnu.org>."
22074_ACEOF
22075
22076cat >>$CONFIG_STATUS <<_ACEOF
22077ac_cs_version="\\
John Criswelld000e1d2003-12-18 16:43:17 +000022078[LLVM] config.status [1.1]
John Criswell0c38eaf2003-09-10 15:17:25 +000022079configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000022080 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22081
22082Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22083Free Software Foundation, Inc.
22084This config.status script is free software; the Free Software Foundation
22085gives unlimited permission to copy, distribute and modify it."
22086srcdir=$srcdir
22087INSTALL="$INSTALL"
22088_ACEOF
22089
22090cat >>$CONFIG_STATUS <<\_ACEOF
22091# If no file are specified by the user, then we need to provide default
22092# value. By we need to know if files were specified by the user.
22093ac_need_defaults=:
22094while test $# != 0
22095do
22096 case $1 in
22097 --*=*)
22098 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22099 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022100 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000022101 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022102 -*)
22103 ac_option=$1
22104 ac_optarg=$2
22105 ac_shift=shift
22106 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022107 *) # This is not an option, so the user has probably given explicit
22108 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000022109 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000022110 ac_need_defaults=false;;
22111 esac
22112
John Criswell0c38eaf2003-09-10 15:17:25 +000022113 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000022114 # Handling of the options.
22115_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022116cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22118 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022119 --version | --vers* | -V )
22120 echo "$ac_cs_version"; exit 0 ;;
22121 --he | --h)
22122 # Conflict between --help and --header
22123 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22124Try \`$0 --help' for more information." >&5
22125echo "$as_me: error: ambiguous option: $1
22126Try \`$0 --help' for more information." >&2;}
22127 { (exit 1); exit 1; }; };;
22128 --help | --hel | -h )
22129 echo "$ac_cs_usage"; exit 0 ;;
22130 --debug | --d* | -d )
22131 debug=: ;;
22132 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000022133 $ac_shift
22134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022135 ac_need_defaults=false;;
22136 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000022137 $ac_shift
22138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000022139 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000022140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22142 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000022143
22144 # This is an error.
22145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22146Try \`$0 --help' for more information." >&5
22147echo "$as_me: error: unrecognized option: $1
22148Try \`$0 --help' for more information." >&2;}
22149 { (exit 1); exit 1; }; } ;;
22150
22151 *) ac_config_targets="$ac_config_targets $1" ;;
22152
22153 esac
22154 shift
22155done
22156
John Criswell0c38eaf2003-09-10 15:17:25 +000022157ac_configure_extra_args=
22158
22159if $ac_cs_silent; then
22160 exec 6>/dev/null
22161 ac_configure_extra_args="$ac_configure_extra_args --silent"
22162fi
22163
22164_ACEOF
22165cat >>$CONFIG_STATUS <<_ACEOF
22166if \$ac_cs_recheck; then
22167 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22168 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22169fi
22170
John Criswell7a73b802003-06-30 21:59:07 +000022171_ACEOF
22172
John Criswellc764fbc2003-09-06 15:17:13 +000022173cat >>$CONFIG_STATUS <<_ACEOF
22174#
22175# INIT-COMMANDS section.
22176#
John Criswell7a73b802003-06-30 21:59:07 +000022177
John Criswellc764fbc2003-09-06 15:17:13 +000022178${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22179${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
John Criswellc764fbc2003-09-06 15:17:13 +000022180${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022181${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022182${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22183${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000022184${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
22185${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000022186${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22187${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22188${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22189${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22190${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22191${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22192${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22193${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22194${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22195${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22196${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22197${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22198${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22199${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22200${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22201${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22202${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22203${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000022204${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000022205${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22206${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000022207${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
22208${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
22209${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
22210${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
22211${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
22212${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
22213${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
22214${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
22215${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
22216${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
22217${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
22218${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
22219${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000022220${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22221${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellc764fbc2003-09-06 15:17:13 +000022222${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000022223${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022224${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022225
22226_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022227
22228
22229
22230cat >>$CONFIG_STATUS <<\_ACEOF
22231for ac_config_target in $ac_config_targets
22232do
22233 case "$ac_config_target" in
22234 # Handling of arguments.
22235 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022236 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22237 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022238 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022239 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022240 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22241 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000022242 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
22243 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022244 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22245 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22246 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22247 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22248 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22249 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22250 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22251 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22252 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22253 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22254 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22255 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22256 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22257 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22258 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
22259 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
22260 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
22261 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000022262 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022263 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
22264 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000022265 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
22266 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
22267 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
22268 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
22269 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
22270 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
22271 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
22272 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
22273 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
22274 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
22275 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
22276 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
22277 "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 +000022278 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
22279 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022280 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022281 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022282 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000022283 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22285echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22286 { (exit 1); exit 1; }; };;
22287 esac
22288done
22289
22290# If the user did not use the arguments to specify the items to instantiate,
22291# then the envvar interface is used. Set only those that are not.
22292# We use the long form for the default assignment because of an extremely
22293# bizarre bug on SunOS 4.1.3.
22294if $ac_need_defaults; then
22295 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22296 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000022297 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000022298fi
22299
John Criswell0c38eaf2003-09-10 15:17:25 +000022300# Have a temporary directory for convenience. Make it in the build tree
22301# simply because there is no reason to put it here, and in addition,
22302# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000022303# Create a temporary directory, and hook for its removal unless debugging.
22304$debug ||
22305{
22306 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22307 trap '{ (exit 1); exit 1; }' 1 2 13 15
22308}
22309
22310# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000022311
John Criswell7a73b802003-06-30 21:59:07 +000022312{
John Criswell0c38eaf2003-09-10 15:17:25 +000022313 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000022314 test -n "$tmp" && test -d "$tmp"
22315} ||
22316{
John Criswell0c38eaf2003-09-10 15:17:25 +000022317 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000022318 (umask 077 && mkdir $tmp)
22319} ||
22320{
John Criswell0c38eaf2003-09-10 15:17:25 +000022321 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000022322 { (exit 1); exit 1; }
22323}
22324
22325_ACEOF
22326
22327cat >>$CONFIG_STATUS <<_ACEOF
22328
22329#
22330# CONFIG_FILES section.
22331#
22332
22333# No need to generate the scripts if there are no CONFIG_FILES.
22334# This happens for instance when ./config.status config.h
22335if test -n "\$CONFIG_FILES"; then
22336 # Protect against being on the right side of a sed subst in config.status.
22337 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22338 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22339s,@SHELL@,$SHELL,;t t
22340s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22341s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22342s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22343s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22344s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22345s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22346s,@exec_prefix@,$exec_prefix,;t t
22347s,@prefix@,$prefix,;t t
22348s,@program_transform_name@,$program_transform_name,;t t
22349s,@bindir@,$bindir,;t t
22350s,@sbindir@,$sbindir,;t t
22351s,@libexecdir@,$libexecdir,;t t
22352s,@datadir@,$datadir,;t t
22353s,@sysconfdir@,$sysconfdir,;t t
22354s,@sharedstatedir@,$sharedstatedir,;t t
22355s,@localstatedir@,$localstatedir,;t t
22356s,@libdir@,$libdir,;t t
22357s,@includedir@,$includedir,;t t
22358s,@oldincludedir@,$oldincludedir,;t t
22359s,@infodir@,$infodir,;t t
22360s,@mandir@,$mandir,;t t
22361s,@build_alias@,$build_alias,;t t
22362s,@host_alias@,$host_alias,;t t
22363s,@target_alias@,$target_alias,;t t
22364s,@DEFS@,$DEFS,;t t
22365s,@ECHO_C@,$ECHO_C,;t t
22366s,@ECHO_N@,$ECHO_N,;t t
22367s,@ECHO_T@,$ECHO_T,;t t
22368s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000022369s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022370s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22371s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22372s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22373s,@build@,$build,;t t
22374s,@build_cpu@,$build_cpu,;t t
22375s,@build_vendor@,$build_vendor,;t t
22376s,@build_os@,$build_os,;t t
22377s,@host@,$host,;t t
22378s,@host_cpu@,$host_cpu,;t t
22379s,@host_vendor@,$host_vendor,;t t
22380s,@host_os@,$host_os,;t t
22381s,@target@,$target,;t t
22382s,@target_cpu@,$target_cpu,;t t
22383s,@target_vendor@,$target_vendor,;t t
22384s,@target_os@,$target_os,;t t
22385s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022386s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022387s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022388s,@CXX@,$CXX,;t t
22389s,@CXXFLAGS@,$CXXFLAGS,;t t
22390s,@LDFLAGS@,$LDFLAGS,;t t
22391s,@CPPFLAGS@,$CPPFLAGS,;t t
22392s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22393s,@EXEEXT@,$EXEEXT,;t t
22394s,@OBJEXT@,$OBJEXT,;t t
22395s,@CC@,$CC,;t t
22396s,@CFLAGS@,$CFLAGS,;t t
22397s,@ac_ct_CC@,$ac_ct_CC,;t t
22398s,@CPP@,$CPP,;t t
22399s,@ifGNUmake@,$ifGNUmake,;t t
22400s,@LEX@,$LEX,;t t
22401s,@LEXLIB@,$LEXLIB,;t t
22402s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22403s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000022404s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022405s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022406s,@LN_S@,$LN_S,;t t
22407s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022408s,@AR@,$AR,;t t
22409s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022410s,@RANLIB@,$RANLIB,;t t
22411s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22412s,@STRIP@,$STRIP,;t t
22413s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022414s,@CXXCPP@,$CXXCPP,;t t
22415s,@F77@,$F77,;t t
22416s,@FFLAGS@,$FFLAGS,;t t
22417s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022418s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022419s,@DOT@,$DOT,;t t
22420s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000022421s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000022422s,@PYTHON@,$PYTHON,;t t
22423s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022424s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022425s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022426s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000022427s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022428s,@USE_SPEC@,$USE_SPEC,;t t
22429s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000022430s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022431s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000022432s,@LLVMCC1@,$LLVMCC1,;t t
22433s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022434s,@BCR@,$BCR,;t t
22435s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000022436s,@SHLIBEXT@,$SHLIBEXT,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000022437s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000022438s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022439CEOF
22440
22441_ACEOF
22442
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444 # Split the substitutions into bite-sized pieces for seds with
22445 # small command number limits, like on Digital OSF/1 and HP-UX.
22446 ac_max_sed_lines=48
22447 ac_sed_frag=1 # Number of current file.
22448 ac_beg=1 # First line for current file.
22449 ac_end=$ac_max_sed_lines # Line after last line for current file.
22450 ac_more_lines=:
22451 ac_sed_cmds=
22452 while $ac_more_lines; do
22453 if test $ac_beg -gt 1; then
22454 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22455 else
22456 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22457 fi
22458 if test ! -s $tmp/subs.frag; then
22459 ac_more_lines=false
22460 else
22461 # The purpose of the label and of the branching condition is to
22462 # speed up the sed processing (if there are no `@' at all, there
22463 # is no need to browse any of the substitutions).
22464 # These are the two extra sed commands mentioned above.
22465 (echo ':t
22466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22467 if test -z "$ac_sed_cmds"; then
22468 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22469 else
22470 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22471 fi
22472 ac_sed_frag=`expr $ac_sed_frag + 1`
22473 ac_beg=$ac_end
22474 ac_end=`expr $ac_end + $ac_max_sed_lines`
22475 fi
22476 done
22477 if test -z "$ac_sed_cmds"; then
22478 ac_sed_cmds=cat
22479 fi
22480fi # test -n "$CONFIG_FILES"
22481
22482_ACEOF
22483cat >>$CONFIG_STATUS <<\_ACEOF
22484for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22486 case $ac_file in
22487 - | *:- | *:-:* ) # input from stdin
22488 cat >$tmp/stdin
22489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22493 * ) ac_file_in=$ac_file.in ;;
22494 esac
22495
22496 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22497 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22498$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22499 X"$ac_file" : 'X\(//\)[^/]' \| \
22500 X"$ac_file" : 'X\(//\)$' \| \
22501 X"$ac_file" : 'X\(/\)' \| \
22502 . : '\(.\)' 2>/dev/null ||
22503echo X"$ac_file" |
22504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22506 /^X\(\/\/\)$/{ s//\1/; q; }
22507 /^X\(\/\).*/{ s//\1/; q; }
22508 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022509 { if $as_mkdir_p; then
22510 mkdir -p "$ac_dir"
22511 else
22512 as_dir="$ac_dir"
22513 as_dirs=
22514 while test ! -d "$as_dir"; do
22515 as_dirs="$as_dir $as_dirs"
22516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22517$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22518 X"$as_dir" : 'X\(//\)[^/]' \| \
22519 X"$as_dir" : 'X\(//\)$' \| \
22520 X"$as_dir" : 'X\(/\)' \| \
22521 . : '\(.\)' 2>/dev/null ||
22522echo X"$as_dir" |
22523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22525 /^X\(\/\/\)$/{ s//\1/; q; }
22526 /^X\(\/\).*/{ s//\1/; q; }
22527 s/.*/./; q'`
22528 done
22529 test ! -n "$as_dirs" || mkdir $as_dirs
22530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22531echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22532 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022533
22534 ac_builddir=.
22535
22536if test "$ac_dir" != .; then
22537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22538 # A "../" for each directory in $ac_dir_suffix.
22539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22540else
22541 ac_dir_suffix= ac_top_builddir=
22542fi
22543
22544case $srcdir in
22545 .) # No --srcdir option. We are building in place.
22546 ac_srcdir=.
22547 if test -z "$ac_top_builddir"; then
22548 ac_top_srcdir=.
22549 else
22550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22551 fi ;;
22552 [\\/]* | ?:[\\/]* ) # Absolute path.
22553 ac_srcdir=$srcdir$ac_dir_suffix;
22554 ac_top_srcdir=$srcdir ;;
22555 *) # Relative path.
22556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22558esac
22559# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22560# absolute.
22561ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000022562ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000022563ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22564ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22565
22566
22567 case $INSTALL in
22568 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22569 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22570 esac
22571
22572 if test x"$ac_file" != x-; then
22573 { echo "$as_me:$LINENO: creating $ac_file" >&5
22574echo "$as_me: creating $ac_file" >&6;}
22575 rm -f "$ac_file"
22576 fi
22577 # Let's still pretend it is `configure' which instantiates (i.e., don't
22578 # use $as_me), people would be surprised to read:
22579 # /* config.h. Generated by config.status. */
22580 if test x"$ac_file" = x-; then
22581 configure_input=
22582 else
22583 configure_input="$ac_file. "
22584 fi
22585 configure_input=$configure_input"Generated from `echo $ac_file_in |
22586 sed 's,.*/,,'` by configure."
22587
22588 # First look for the input files in the build tree, otherwise in the
22589 # src tree.
22590 ac_file_inputs=`IFS=:
22591 for f in $ac_file_in; do
22592 case $f in
22593 -) echo $tmp/stdin ;;
22594 [\\/$]*)
22595 # Absolute (can't be DOS-style, as IFS=:)
22596 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22597echo "$as_me: error: cannot find input file: $f" >&2;}
22598 { (exit 1); exit 1; }; }
22599 echo $f;;
22600 *) # Relative
22601 if test -f "$f"; then
22602 # Build tree
22603 echo $f
22604 elif test -f "$srcdir/$f"; then
22605 # Source tree
22606 echo $srcdir/$f
22607 else
22608 # /dev/null tree
22609 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22610echo "$as_me: error: cannot find input file: $f" >&2;}
22611 { (exit 1); exit 1; }; }
22612 fi;;
22613 esac
22614 done` || { (exit 1); exit 1; }
22615_ACEOF
22616cat >>$CONFIG_STATUS <<_ACEOF
22617 sed "$ac_vpsub
22618$extrasub
22619_ACEOF
22620cat >>$CONFIG_STATUS <<\_ACEOF
22621:t
22622/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22623s,@configure_input@,$configure_input,;t t
22624s,@srcdir@,$ac_srcdir,;t t
22625s,@abs_srcdir@,$ac_abs_srcdir,;t t
22626s,@top_srcdir@,$ac_top_srcdir,;t t
22627s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22628s,@builddir@,$ac_builddir,;t t
22629s,@abs_builddir@,$ac_abs_builddir,;t t
22630s,@top_builddir@,$ac_top_builddir,;t t
22631s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22632s,@INSTALL@,$ac_INSTALL,;t t
22633" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22634 rm -f $tmp/stdin
22635 if test x"$ac_file" != x-; then
22636 mv $tmp/out $ac_file
22637 else
22638 cat $tmp/out
22639 rm -f $tmp/out
22640 fi
22641
22642done
22643_ACEOF
22644cat >>$CONFIG_STATUS <<\_ACEOF
22645
22646#
22647# CONFIG_HEADER section.
22648#
22649
22650# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22651# NAME is the cpp macro being defined and VALUE is the value it is being given.
22652#
22653# ac_d sets the value in "#define NAME VALUE" lines.
22654ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22655ac_dB='[ ].*$,\1#\2'
22656ac_dC=' '
22657ac_dD=',;t'
22658# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22659ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22660ac_uB='$,\1#\2define\3'
22661ac_uC=' '
22662ac_uD=',;t'
22663
22664for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22666 case $ac_file in
22667 - | *:- | *:-:* ) # input from stdin
22668 cat >$tmp/stdin
22669 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22671 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22672 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22673 * ) ac_file_in=$ac_file.in ;;
22674 esac
22675
22676 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22677echo "$as_me: creating $ac_file" >&6;}
22678
22679 # First look for the input files in the build tree, otherwise in the
22680 # src tree.
22681 ac_file_inputs=`IFS=:
22682 for f in $ac_file_in; do
22683 case $f in
22684 -) echo $tmp/stdin ;;
22685 [\\/$]*)
22686 # Absolute (can't be DOS-style, as IFS=:)
22687 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22688echo "$as_me: error: cannot find input file: $f" >&2;}
22689 { (exit 1); exit 1; }; }
22690 echo $f;;
22691 *) # Relative
22692 if test -f "$f"; then
22693 # Build tree
22694 echo $f
22695 elif test -f "$srcdir/$f"; then
22696 # Source tree
22697 echo $srcdir/$f
22698 else
22699 # /dev/null tree
22700 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22701echo "$as_me: error: cannot find input file: $f" >&2;}
22702 { (exit 1); exit 1; }; }
22703 fi;;
22704 esac
22705 done` || { (exit 1); exit 1; }
22706 # Remove the trailing spaces.
22707 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22708
22709_ACEOF
22710
22711# Transform confdefs.h into two sed scripts, `conftest.defines' and
22712# `conftest.undefs', that substitutes the proper values into
22713# config.h.in to produce config.h. The first handles `#define'
22714# templates, and the second `#undef' templates.
22715# And first: Protect against being on the right side of a sed subst in
22716# config.status. Protect against being in an unquoted here document
22717# in config.status.
22718rm -f conftest.defines conftest.undefs
22719# Using a here document instead of a string reduces the quoting nightmare.
22720# Putting comments in sed scripts is not portable.
22721#
22722# `end' is used to avoid that the second main sed command (meant for
22723# 0-ary CPP macros) applies to n-ary macro definitions.
22724# See the Autoconf documentation for `clear'.
22725cat >confdef2sed.sed <<\_ACEOF
22726s/[\\&,]/\\&/g
22727s,[\\$`],\\&,g
22728t clear
22729: clear
22730s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22731t end
22732s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22733: end
22734_ACEOF
22735# If some macros were called several times there might be several times
22736# the same #defines, which is useless. Nevertheless, we may not want to
22737# sort them, since we want the *last* AC-DEFINE to be honored.
22738uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22739sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22740rm -f confdef2sed.sed
22741
22742# This sed command replaces #undef with comments. This is necessary, for
22743# example, in the case of _POSIX_SOURCE, which is predefined and required
22744# on some systems where configure will not decide to define it.
22745cat >>conftest.undefs <<\_ACEOF
22746s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22747_ACEOF
22748
22749# Break up conftest.defines because some shells have a limit on the size
22750# of here documents, and old seds have small limits too (100 cmds).
22751echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000022752echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022753echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22754echo ' :' >>$CONFIG_STATUS
22755rm -f conftest.tail
22756while grep . conftest.defines >/dev/null
22757do
22758 # Write a limited-size here document to $tmp/defines.sed.
22759 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22760 # Speed up: don't consider the non `#define' lines.
22761 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22762 # Work around the forget-to-reset-the-flag bug.
22763 echo 't clr' >>$CONFIG_STATUS
22764 echo ': clr' >>$CONFIG_STATUS
22765 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22766 echo 'CEOF
22767 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22768 rm -f $tmp/in
22769 mv $tmp/out $tmp/in
22770' >>$CONFIG_STATUS
22771 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22772 rm -f conftest.defines
22773 mv conftest.tail conftest.defines
22774done
22775rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000022776echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022777echo >>$CONFIG_STATUS
22778
22779# Break up conftest.undefs because some shells have a limit on the size
22780# of here documents, and old seds have small limits too (100 cmds).
22781echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22782rm -f conftest.tail
22783while grep . conftest.undefs >/dev/null
22784do
22785 # Write a limited-size here document to $tmp/undefs.sed.
22786 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22787 # Speed up: don't consider the non `#undef'
22788 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22789 # Work around the forget-to-reset-the-flag bug.
22790 echo 't clr' >>$CONFIG_STATUS
22791 echo ': clr' >>$CONFIG_STATUS
22792 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22793 echo 'CEOF
22794 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22795 rm -f $tmp/in
22796 mv $tmp/out $tmp/in
22797' >>$CONFIG_STATUS
22798 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22799 rm -f conftest.undefs
22800 mv conftest.tail conftest.undefs
22801done
22802rm -f conftest.undefs
22803
22804cat >>$CONFIG_STATUS <<\_ACEOF
22805 # Let's still pretend it is `configure' which instantiates (i.e., don't
22806 # use $as_me), people would be surprised to read:
22807 # /* config.h. Generated by config.status. */
22808 if test x"$ac_file" = x-; then
22809 echo "/* Generated by configure. */" >$tmp/config.h
22810 else
22811 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22812 fi
22813 cat $tmp/in >>$tmp/config.h
22814 rm -f $tmp/in
22815 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022816 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022817 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22818echo "$as_me: $ac_file is unchanged" >&6;}
22819 else
22820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22821$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22822 X"$ac_file" : 'X\(//\)[^/]' \| \
22823 X"$ac_file" : 'X\(//\)$' \| \
22824 X"$ac_file" : 'X\(/\)' \| \
22825 . : '\(.\)' 2>/dev/null ||
22826echo X"$ac_file" |
22827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22829 /^X\(\/\/\)$/{ s//\1/; q; }
22830 /^X\(\/\).*/{ s//\1/; q; }
22831 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022832 { if $as_mkdir_p; then
22833 mkdir -p "$ac_dir"
22834 else
22835 as_dir="$ac_dir"
22836 as_dirs=
22837 while test ! -d "$as_dir"; do
22838 as_dirs="$as_dir $as_dirs"
22839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22841 X"$as_dir" : 'X\(//\)[^/]' \| \
22842 X"$as_dir" : 'X\(//\)$' \| \
22843 X"$as_dir" : 'X\(/\)' \| \
22844 . : '\(.\)' 2>/dev/null ||
22845echo X"$as_dir" |
22846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22848 /^X\(\/\/\)$/{ s//\1/; q; }
22849 /^X\(\/\).*/{ s//\1/; q; }
22850 s/.*/./; q'`
22851 done
22852 test ! -n "$as_dirs" || mkdir $as_dirs
22853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22854echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22855 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022856
22857 rm -f $ac_file
22858 mv $tmp/config.h $ac_file
22859 fi
22860 else
22861 cat $tmp/config.h
22862 rm -f $tmp/config.h
22863 fi
22864done
22865_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000022866cat >>$CONFIG_STATUS <<\_ACEOF
22867
22868#
22869# CONFIG_COMMANDS section.
22870#
22871for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22872 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22873 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22874 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22875$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22876 X"$ac_dest" : 'X\(//\)[^/]' \| \
22877 X"$ac_dest" : 'X\(//\)$' \| \
22878 X"$ac_dest" : 'X\(/\)' \| \
22879 . : '\(.\)' 2>/dev/null ||
22880echo X"$ac_dest" |
22881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22883 /^X\(\/\/\)$/{ s//\1/; q; }
22884 /^X\(\/\).*/{ s//\1/; q; }
22885 s/.*/./; q'`
22886 ac_builddir=.
22887
22888if test "$ac_dir" != .; then
22889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22890 # A "../" for each directory in $ac_dir_suffix.
22891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22892else
22893 ac_dir_suffix= ac_top_builddir=
22894fi
22895
22896case $srcdir in
22897 .) # No --srcdir option. We are building in place.
22898 ac_srcdir=.
22899 if test -z "$ac_top_builddir"; then
22900 ac_top_srcdir=.
22901 else
22902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22903 fi ;;
22904 [\\/]* | ?:[\\/]* ) # Absolute path.
22905 ac_srcdir=$srcdir$ac_dir_suffix;
22906 ac_top_srcdir=$srcdir ;;
22907 *) # Relative path.
22908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22910esac
22911# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22912# absolute.
22913ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000022914ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000022915ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22916ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22917
22918
22919 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22920echo "$as_me: executing $ac_dest commands" >&6;}
22921 case $ac_dest in
22922 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
22923 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022924 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022925 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022926 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
22927 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000022928 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
22929 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 +000022930 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
22931 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
22932 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
22933 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
22934 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
22935 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
22936 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
22937 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
22938 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
22939 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
22940 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
22941 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
22942 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
22943 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
22944 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
22945 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
22946 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
22947 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 +000022948 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 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022949 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
22950 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 +000022951 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 ;;
22952 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 ;;
22953 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 ;;
22954 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 ;;
22955 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 ;;
22956 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 ;;
22957 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 ;;
22958 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 ;;
22959 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 ;;
22960 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 ;;
22961 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 ;;
22962 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 ;;
22963 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 +000022964 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
22965 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022966 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000022967 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022968 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022969 esac
22970done
22971_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022972
22973cat >>$CONFIG_STATUS <<\_ACEOF
22974
22975{ (exit 0); exit 0; }
22976_ACEOF
22977chmod +x $CONFIG_STATUS
22978ac_clean_files=$ac_clean_files_save
22979
22980
22981# configure is writing to config.log, and then calls config.status.
22982# config.status does its own redirection, appending to config.log.
22983# Unfortunately, on DOS this fails, as config.log is still kept open
22984# by configure, so config.status won't be able to write to it; its
22985# output is simply discarded. So we exec the FD to /dev/null,
22986# effectively closing config.log, so it can be properly (re)opened and
22987# appended to by config.status. When coming back to configure, we
22988# need to make the FD available again.
22989if test "$no_create" != yes; then
22990 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022991 ac_config_status_args=
22992 test "$silent" = yes &&
22993 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022994 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022995 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022996 exec 5>>config.log
22997 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22998 # would make configure fail if this is the last instruction.
22999 $ac_cs_success || { (exit 1); exit 1; }
23000fi
23001
John Criswell12399a12003-09-30 15:55:44 +000023002#
23003# CONFIG_SUBDIRS section.
23004#
23005if test "$no_recursion" != yes; then
23006
23007 # Remove --cache-file and --srcdir arguments so they do not pile up.
23008 ac_sub_configure_args=
23009 ac_prev=
23010 for ac_arg in $ac_configure_args; do
23011 if test -n "$ac_prev"; then
23012 ac_prev=
23013 continue
23014 fi
23015 case $ac_arg in
23016 -cache-file | --cache-file | --cache-fil | --cache-fi \
23017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23018 ac_prev=cache_file ;;
23019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23021 | --c=*)
23022 ;;
23023 --config-cache | -C)
23024 ;;
23025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23026 ac_prev=srcdir ;;
23027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23028 ;;
23029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23030 ac_prev=prefix ;;
23031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23032 ;;
23033 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23034 esac
23035 done
23036
23037 # Always prepend --prefix to ensure using the same prefix
23038 # in subdir configurations.
23039 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23040
23041 ac_popdir=`pwd`
23042 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23043
23044 # Do not complain, so a configure script can configure whichever
23045 # parts of a large source tree are present.
23046 test -d $srcdir/$ac_dir || continue
23047
23048 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23049echo "$as_me: configuring in $ac_dir" >&6;}
23050 { if $as_mkdir_p; then
23051 mkdir -p "$ac_dir"
23052 else
23053 as_dir="$ac_dir"
23054 as_dirs=
23055 while test ! -d "$as_dir"; do
23056 as_dirs="$as_dir $as_dirs"
23057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23059 X"$as_dir" : 'X\(//\)[^/]' \| \
23060 X"$as_dir" : 'X\(//\)$' \| \
23061 X"$as_dir" : 'X\(/\)' \| \
23062 . : '\(.\)' 2>/dev/null ||
23063echo X"$as_dir" |
23064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23066 /^X\(\/\/\)$/{ s//\1/; q; }
23067 /^X\(\/\).*/{ s//\1/; q; }
23068 s/.*/./; q'`
23069 done
23070 test ! -n "$as_dirs" || mkdir $as_dirs
23071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23072echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23073 { (exit 1); exit 1; }; }; }
23074
23075 ac_builddir=.
23076
23077if test "$ac_dir" != .; then
23078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23079 # A "../" for each directory in $ac_dir_suffix.
23080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23081else
23082 ac_dir_suffix= ac_top_builddir=
23083fi
23084
23085case $srcdir in
23086 .) # No --srcdir option. We are building in place.
23087 ac_srcdir=.
23088 if test -z "$ac_top_builddir"; then
23089 ac_top_srcdir=.
23090 else
23091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23092 fi ;;
23093 [\\/]* | ?:[\\/]* ) # Absolute path.
23094 ac_srcdir=$srcdir$ac_dir_suffix;
23095 ac_top_srcdir=$srcdir ;;
23096 *) # Relative path.
23097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23099esac
23100# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23101# absolute.
23102ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23103ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23104ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23105ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23106
23107
23108 cd $ac_dir
23109
23110 # Check for guested configure; otherwise get Cygnus style configure.
23111 if test -f $ac_srcdir/configure.gnu; then
23112 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23113 elif test -f $ac_srcdir/configure; then
23114 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23115 elif test -f $ac_srcdir/configure.in; then
23116 ac_sub_configure=$ac_configure
23117 else
23118 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23119echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23120 ac_sub_configure=
23121 fi
23122
23123 # The recursion is here.
23124 if test -n "$ac_sub_configure"; then
23125 # Make the cache file name correct relative to the subdirectory.
23126 case $cache_file in
23127 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23128 *) # Relative path.
23129 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23130 esac
23131
23132 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23133echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23134 # The eval makes quoting arguments work.
23135 eval $ac_sub_configure $ac_sub_configure_args \
23136 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23137 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23138echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23139 { (exit 1); exit 1; }; }
23140 fi
23141
23142 cd $ac_popdir
23143 done
23144fi
23145
Brian Gaekef3b24102003-11-16 18:38:14 +000023146
23147if test $llvmgccwarn = yes
23148then
23149 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
23150echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
23151 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
23152echo "$as_me: WARNING: ***** appear to be working." >&2;}
23153 { echo "$as_me:$LINENO: WARNING: ***** " >&5
23154echo "$as_me: WARNING: ***** " >&2;}
23155 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
23156echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
23157 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
23158echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
23159 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
23160echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
23161fi
Brian Gaeke554831c2004-01-21 19:39:29 +000023162