blob: 6cdbe1907005061c80b6bf768f6bbb15a20cca77 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
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--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswell0c38eaf2003-09-10 15:17:25 +0000467ac_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 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --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-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell0c38eaf2003-09-10 15:17:25 +00001512 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell0c38eaf2003-09-10 15:17:25 +00001514 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001518
1519
John Criswell0c38eaf2003-09-10 15:17:25 +00001520 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001521
1522
John Criswell0c38eaf2003-09-10 15:17:25 +00001523 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001524
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001527
1528
John Criswell0c38eaf2003-09-10 15:17:25 +00001529 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001530
1531
John Criswell0c38eaf2003-09-10 15:17:25 +00001532 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001533
1534
John Criswell0c38eaf2003-09-10 15:17:25 +00001535 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001536
1537
John Criswell0c38eaf2003-09-10 15:17:25 +00001538 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell613758d2003-09-11 18:03:50 +00001628 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libexception/Makefile"
1632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell613758d2003-09-11 18:03:50 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell613758d2003-09-11 18:03:50 +00001652 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell0c38eaf2003-09-10 15:17:25 +00001679 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell613758d2003-09-11 18:03:50 +00001724 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell48e3cb92003-09-12 16:31:43 +00001781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell48e3cb92003-09-12 16:31:43 +00001784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell39e83892003-09-12 16:36:17 +00001787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1788
1789
1790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1791
1792
John Criswell48e3cb92003-09-12 16:31:43 +00001793 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell48e3cb92003-09-12 16:31:43 +00001796 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell48e3cb92003-09-12 16:31:43 +00001799 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell48e3cb92003-09-12 16:31:43 +00001802 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell48e3cb92003-09-12 16:31:43 +00001805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell48e3cb92003-09-12 16:31:43 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell48e3cb92003-09-12 16:31:43 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell48e3cb92003-09-12 16:31:43 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell48e3cb92003-09-12 16:31:43 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell48e3cb92003-09-12 16:31:43 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell48e3cb92003-09-12 16:31:43 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell48e3cb92003-09-12 16:31:43 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell48e3cb92003-09-12 16:31:43 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell48e3cb92003-09-12 16:31:43 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell39e83892003-09-12 16:36:17 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell48e3cb92003-09-12 16:31:43 +00001889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell0c38eaf2003-09-10 15:17:25 +00001892 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell0c38eaf2003-09-10 15:17:25 +00001895 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell0c38eaf2003-09-10 15:17:25 +00001898 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell0c38eaf2003-09-10 15:17:25 +00001901 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell0c38eaf2003-09-10 15:17:25 +00001904 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell0c38eaf2003-09-10 15:17:25 +00001907 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell0c38eaf2003-09-10 15:17:25 +00001910 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell0c38eaf2003-09-10 15:17:25 +00001913 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswellffaaf3b2003-09-10 18:38:44 +00001916 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1917
1918
1919 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1920
1921
1922 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1923
1924
1925 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1926
1927
1928 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1929
1930
1931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell0c38eaf2003-09-10 15:17:25 +00001937 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0afe8252003-09-11 20:53:48 +00001940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell0c38eaf2003-09-10 15:17:25 +00001946 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell0c38eaf2003-09-10 15:17:25 +00001949 ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0c38eaf2003-09-10 15:17:25 +00001955 ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001956
1957
John Criswell0c38eaf2003-09-10 15:17:25 +00001958 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell0c38eaf2003-09-10 15:17:25 +00001961 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
Chris Lattnerebd70302003-09-13 03:29:53 +00001985 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswell0c38eaf2003-09-10 15:17:25 +00002009 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswell0c38eaf2003-09-10 15:17:25 +00002021 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002022
2023
John Criswell0c38eaf2003-09-10 15:17:25 +00002024 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002025
2026
John Criswell0c38eaf2003-09-10 15:17:25 +00002027 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002028
2029
John Criswell0c38eaf2003-09-10 15:17:25 +00002030 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell392aaa32003-07-22 19:18:09 +00002042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044# Find a good install program. We prefer a C program (faster),
2045# so one script is as good as another. But avoid the broken or
2046# incompatible versions:
2047# SysV /etc/install, /usr/sbin/install
2048# SunOS /usr/etc/install
2049# IRIX /sbin/install
2050# AIX /bin/install
2051# AmigaOS /C/install, which installs bootblocks on floppy discs
2052# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2053# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2054# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2055# ./install, which can be erroneously created by make from ./install.sh.
2056echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2057echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2058if test -z "$INSTALL"; then
2059if test "${ac_cv_path_install+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 # Account for people who put trailing slashes in PATH elements.
2068case $as_dir/ in
2069 ./ | .// | /cC/* | \
2070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2071 /usr/ucb/* ) ;;
2072 *)
2073 # OSF1 and SCO ODT 3.0 have their own names for install.
2074 # Don't use installbsd from OSF since it installs stuff as root
2075 # by default.
2076 for ac_prog in ginstall scoinst install; do
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2079 if test $ac_prog = install &&
2080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081 # AIX install. It has an incompatible calling convention.
2082 :
2083 elif test $ac_prog = install &&
2084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085 # program-specific install script used by HP pwplus--don't use.
2086 :
2087 else
2088 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2089 break 3
2090 fi
2091 fi
2092 done
2093 done
2094 ;;
2095esac
2096done
2097
2098
2099fi
2100 if test "${ac_cv_path_install+set}" = set; then
2101 INSTALL=$ac_cv_path_install
2102 else
2103 # As a last resort, use the slow shell script. We don't cache a
2104 # path for INSTALL within a source directory, because that will
2105 # break other packages using the cache if that directory is
2106 # removed, or if the path is relative.
2107 INSTALL=$ac_install_sh
2108 fi
2109fi
2110echo "$as_me:$LINENO: result: $INSTALL" >&5
2111echo "${ECHO_T}$INSTALL" >&6
2112
2113# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2114# It thinks the first close brace ends the variable substitution.
2115test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2116
2117test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2118
2119test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2120
2121
2122# Make sure we can run config.sub.
2123$ac_config_sub sun4 >/dev/null 2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2125echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128echo "$as_me:$LINENO: checking build system type" >&5
2129echo $ECHO_N "checking build system type... $ECHO_C" >&6
2130if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133 ac_cv_build_alias=$build_alias
2134test -z "$ac_cv_build_alias" &&
2135 ac_cv_build_alias=`$ac_config_guess`
2136test -z "$ac_cv_build_alias" &&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2142echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2144
2145fi
2146echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147echo "${ECHO_T}$ac_cv_build" >&6
2148build=$ac_cv_build
2149build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2150build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2151build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2152
2153
2154echo "$as_me:$LINENO: checking host system type" >&5
2155echo $ECHO_N "checking host system type... $ECHO_C" >&6
2156if test "${ac_cv_host+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 ac_cv_host_alias=$host_alias
2160test -z "$ac_cv_host_alias" &&
2161 ac_cv_host_alias=$ac_cv_build_alias
2162ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2163 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2164echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2166
2167fi
2168echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169echo "${ECHO_T}$ac_cv_host" >&6
2170host=$ac_cv_host
2171host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2172host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2173host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2174
2175
2176echo "$as_me:$LINENO: checking target system type" >&5
2177echo $ECHO_N "checking target system type... $ECHO_C" >&6
2178if test "${ac_cv_target+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181 ac_cv_target_alias=$target_alias
2182test "x$ac_cv_target_alias" = "x" &&
2183 ac_cv_target_alias=$ac_cv_host_alias
2184ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2185 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2186echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2187 { (exit 1); exit 1; }; }
2188
2189fi
2190echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191echo "${ECHO_T}$ac_cv_target" >&6
2192target=$ac_cv_target
2193target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2194target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2195target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2196
2197
2198# The aliases save the names the user supplied, while $host etc.
2199# will get canonicalized.
2200test -n "$target_alias" &&
2201 test "$program_prefix$program_suffix$program_transform_name" = \
2202 NONENONEs,x,x, &&
2203 program_prefix=${target_alias}-
2204
2205case $build in
2206 *i*86*) OS=Linux
2207
John Criswellf02dbf02003-07-22 20:07:49 +00002208 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002209
2210 ;;
2211
2212 *sparc*) OS=SunOS
2213
2214 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2215
2216 ;;
2217
2218 *) OS=Unknown
2219
2220 ;;
2221esac
2222
2223case $target in
2224 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2225
2226 ;;
2227esac
2228
John Criswell76595452003-07-01 22:07:39 +00002229case $target in
2230 *i*86*) ARCH=x86
2231
2232 ;;
2233 *sparc*solaris*) ARCH=Sparc
2234
2235 ;;
2236esac
2237
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239ac_ext=cc
2240ac_cpp='$CXXCPP $CPPFLAGS'
2241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2244if test -n "$ac_tool_prefix"; then
2245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2246 do
2247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249echo "$as_me:$LINENO: checking for $ac_word" >&5
2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251if test "${ac_cv_prog_CXX+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 if test -n "$CXX"; then
2255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268done
2269done
2270
2271fi
2272fi
2273CXX=$ac_cv_prog_CXX
2274if test -n "$CXX"; then
2275 echo "$as_me:$LINENO: result: $CXX" >&5
2276echo "${ECHO_T}$CXX" >&6
2277else
2278 echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282 test -n "$CXX" && break
2283 done
2284fi
2285if test -z "$CXX"; then
2286 ac_ct_CXX=$CXX
2287 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2288do
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290set dummy $ac_prog; ac_word=$2
2291echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296 if test -n "$ac_ct_CXX"; then
2297 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306 ac_cv_prog_ac_ct_CXX="$ac_prog"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2309 fi
2310done
2311done
2312
2313fi
2314fi
2315ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2316if test -n "$ac_ct_CXX"; then
2317 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2318echo "${ECHO_T}$ac_ct_CXX" >&6
2319else
2320 echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6
2322fi
2323
2324 test -n "$ac_ct_CXX" && break
2325done
2326test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2327
2328 CXX=$ac_ct_CXX
2329fi
2330
2331
2332# Provide some information about the compiler.
2333echo "$as_me:$LINENO:" \
2334 "checking for C++ compiler version" >&5
2335ac_compiler=`set X $ac_compile; echo $2`
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2337 (eval $ac_compiler --version </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2342 (eval $ac_compiler -v </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2347 (eval $ac_compiler -V </dev/null >&5) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351
2352cat >conftest.$ac_ext <<_ACEOF
2353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002354/* confdefs.h. */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002359
John Criswell7a73b802003-06-30 21:59:07 +00002360int
2361main ()
2362{
2363
2364 ;
2365 return 0;
2366}
2367_ACEOF
2368ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002369ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002370# Try to create an executable without -o first, disregard a.out.
2371# It will help us diagnose broken compilers, and finding out an intuition
2372# of exeext.
2373echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2374echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2375ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2376if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2377 (eval $ac_link_default) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 # Find the output, starting from the most likely. This scheme is
2382# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2383# resort.
2384
2385# Be careful to initialize this variable, since it used to be cached.
2386# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2387ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002388# b.out is created by i960 compilers.
2389for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2390do
2391 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002392 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2394 ;;
2395 conftest.$ac_ext )
2396 # This is the source file.
2397 ;;
2398 [ab].out )
2399 # We found the default executable, but exeext='' is most
2400 # certainly right.
2401 break;;
2402 *.* )
2403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2404 # FIXME: I believe we export ac_cv_exeext for Libtool,
2405 # but it would be cool to find out if it's true. Does anybody
2406 # maintain Libtool? --akim.
2407 export ac_cv_exeext
2408 break;;
2409 * )
2410 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002411 esac
2412done
2413else
2414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2418See \`config.log' for more details." >&5
2419echo "$as_me: error: C++ compiler cannot create executables
2420See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002421 { (exit 77); exit 77; }; }
2422fi
2423
2424ac_exeext=$ac_cv_exeext
2425echo "$as_me:$LINENO: result: $ac_file" >&5
2426echo "${ECHO_T}$ac_file" >&6
2427
2428# Check the compiler produces executables we can run. If not, either
2429# the compiler is broken, or we cross compile.
2430echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2431echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2432# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2433# If not cross compiling, check that we can run a simple program.
2434if test "$cross_compiling" != yes; then
2435 if { ac_try='./$ac_file'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 cross_compiling=no
2442 else
2443 if test "$cross_compiling" = maybe; then
2444 cross_compiling=yes
2445 else
2446 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002447If you meant to cross compile, use \`--host'.
2448See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002449echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002450If you meant to cross compile, use \`--host'.
2451See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002452 { (exit 1); exit 1; }; }
2453 fi
2454 fi
2455fi
2456echo "$as_me:$LINENO: result: yes" >&5
2457echo "${ECHO_T}yes" >&6
2458
John Criswell0c38eaf2003-09-10 15:17:25 +00002459rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002460ac_clean_files=$ac_clean_files_save
2461# Check the compiler produces executables we can run. If not, either
2462# the compiler is broken, or we cross compile.
2463echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2464echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2465echo "$as_me:$LINENO: result: $cross_compiling" >&5
2466echo "${ECHO_T}$cross_compiling" >&6
2467
2468echo "$as_me:$LINENO: checking for suffix of executables" >&5
2469echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471 (eval $ac_link) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; then
2475 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2476# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2477# work properly (i.e., refer to `conftest.exe'), while it won't with
2478# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002479for ac_file in conftest.exe conftest conftest.*; do
2480 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002481 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2484 export ac_cv_exeext
2485 break;;
2486 * ) break;;
2487 esac
2488done
2489else
John Criswell0c38eaf2003-09-10 15:17:25 +00002490 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2491See \`config.log' for more details." >&5
2492echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2493See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002494 { (exit 1); exit 1; }; }
2495fi
2496
2497rm -f conftest$ac_cv_exeext
2498echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2499echo "${ECHO_T}$ac_cv_exeext" >&6
2500
2501rm -f conftest.$ac_ext
2502EXEEXT=$ac_cv_exeext
2503ac_exeext=$EXEEXT
2504echo "$as_me:$LINENO: checking for suffix of object files" >&5
2505echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2506if test "${ac_cv_objext+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 cat >conftest.$ac_ext <<_ACEOF
2510#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002511/* confdefs.h. */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002516
John Criswell7a73b802003-06-30 21:59:07 +00002517int
2518main ()
2519{
2520
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.o conftest.obj
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2532 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2535 break;;
2536 esac
2537done
2538else
2539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2543See \`config.log' for more details." >&5
2544echo "$as_me: error: cannot compute suffix of object files: cannot compile
2545See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002546 { (exit 1); exit 1; }; }
2547fi
2548
2549rm -f conftest.$ac_cv_objext conftest.$ac_ext
2550fi
2551echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2552echo "${ECHO_T}$ac_cv_objext" >&6
2553OBJEXT=$ac_cv_objext
2554ac_objext=$OBJEXT
2555echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2556echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2557if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
2560 cat >conftest.$ac_ext <<_ACEOF
2561#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002567
John Criswell7a73b802003-06-30 21:59:07 +00002568int
2569main ()
2570{
2571#ifndef __GNUC__
2572 choke me
2573#endif
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592else
2593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002594sed 's/^/| /' conftest.$ac_ext >&5
2595
John Criswell7a73b802003-06-30 21:59:07 +00002596ac_compiler_gnu=no
2597fi
2598rm -f conftest.$ac_objext conftest.$ac_ext
2599ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601fi
2602echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604GXX=`test $ac_compiler_gnu = yes && echo yes`
2605ac_test_CXXFLAGS=${CXXFLAGS+set}
2606ac_save_CXXFLAGS=$CXXFLAGS
2607CXXFLAGS="-g"
2608echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 cat >conftest.$ac_ext <<_ACEOF
2614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002620
John Criswell7a73b802003-06-30 21:59:07 +00002621int
2622main ()
2623{
2624
2625 ;
2626 return 0;
2627}
2628_ACEOF
2629rm -f conftest.$ac_objext
2630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631 (eval $ac_compile) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_cv_prog_cxx_g=yes
2642else
2643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002644sed 's/^/| /' conftest.$ac_ext >&5
2645
John Criswell7a73b802003-06-30 21:59:07 +00002646ac_cv_prog_cxx_g=no
2647fi
2648rm -f conftest.$ac_objext conftest.$ac_ext
2649fi
2650echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2651echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2652if test "$ac_test_CXXFLAGS" = set; then
2653 CXXFLAGS=$ac_save_CXXFLAGS
2654elif test $ac_cv_prog_cxx_g = yes; then
2655 if test "$GXX" = yes; then
2656 CXXFLAGS="-g -O2"
2657 else
2658 CXXFLAGS="-g"
2659 fi
2660else
2661 if test "$GXX" = yes; then
2662 CXXFLAGS="-O2"
2663 else
2664 CXXFLAGS=
2665 fi
2666fi
2667for ac_declaration in \
2668 ''\
2669 '#include <stdlib.h>' \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2674 'void exit (int);'
2675do
2676 cat >conftest.$ac_ext <<_ACEOF
2677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002683#include <stdlib.h>
2684$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002685int
2686main ()
2687{
2688exit (42);
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
2694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -s conftest.$ac_objext'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 :
2706else
2707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002708sed 's/^/| /' conftest.$ac_ext >&5
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710continue
2711fi
2712rm -f conftest.$ac_objext conftest.$ac_ext
2713 cat >conftest.$ac_ext <<_ACEOF
2714#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002720$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002721int
2722main ()
2723{
2724exit (42);
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 break
2742else
2743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002744sed 's/^/| /' conftest.$ac_ext >&5
2745
John Criswell7a73b802003-06-30 21:59:07 +00002746fi
2747rm -f conftest.$ac_objext conftest.$ac_ext
2748done
2749rm -f conftest*
2750if test -n "$ac_declaration"; then
2751 echo '#ifdef __cplusplus' >>confdefs.h
2752 echo $ac_declaration >>confdefs.h
2753 echo '#endif' >>confdefs.h
2754fi
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767if test -n "$ac_tool_prefix"; then
2768 for ac_prog in gcc
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
2793
2794fi
2795fi
2796CC=$ac_cv_prog_CC
2797if test -n "$CC"; then
2798 echo "$as_me:$LINENO: result: $CC" >&5
2799echo "${ECHO_T}$CC" >&6
2800else
2801 echo "$as_me:$LINENO: result: no" >&5
2802echo "${ECHO_T}no" >&6
2803fi
2804
2805 test -n "$CC" && break
2806 done
2807fi
2808if test -z "$CC"; then
2809 ac_ct_CC=$CC
2810 for ac_prog in gcc
2811do
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813set dummy $ac_prog; ac_word=$2
2814echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836fi
2837fi
2838ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841echo "${ECHO_T}$ac_ct_CC" >&6
2842else
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
2845fi
2846
2847 test -n "$ac_ct_CC" && break
2848done
2849
2850 CC=$ac_ct_CC
2851fi
2852
2853
John Criswell0c38eaf2003-09-10 15:17:25 +00002854test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: no acceptable C compiler found in \$PATH
2857See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002858 { (exit 1); exit 1; }; }
2859
2860# Provide some information about the compiler.
2861echo "$as_me:$LINENO:" \
2862 "checking for C compiler version" >&5
2863ac_compiler=`set X $ac_compile; echo $2`
2864{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865 (eval $ac_compiler --version </dev/null >&5) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870 (eval $ac_compiler -v </dev/null >&5) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875 (eval $ac_compiler -V </dev/null >&5) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2879
2880echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2881echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2882if test "${ac_cv_c_compiler_gnu+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 cat >conftest.$ac_ext <<_ACEOF
2886#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002892
John Criswell7a73b802003-06-30 21:59:07 +00002893int
2894main ()
2895{
2896#ifndef __GNUC__
2897 choke me
2898#endif
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 ac_compiler_gnu=yes
2917else
2918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002919sed 's/^/| /' conftest.$ac_ext >&5
2920
John Criswell7a73b802003-06-30 21:59:07 +00002921ac_compiler_gnu=no
2922fi
2923rm -f conftest.$ac_objext conftest.$ac_ext
2924ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925
2926fi
2927echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2928echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2929GCC=`test $ac_compiler_gnu = yes && echo yes`
2930ac_test_CFLAGS=${CFLAGS+set}
2931ac_save_CFLAGS=$CFLAGS
2932CFLAGS="-g"
2933echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2935if test "${ac_cv_prog_cc_g+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 cat >conftest.$ac_ext <<_ACEOF
2939#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002940/* confdefs.h. */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002945
John Criswell7a73b802003-06-30 21:59:07 +00002946int
2947main ()
2948{
2949
2950 ;
2951 return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext
2955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 (eval $ac_try) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; }; then
2966 ac_cv_prog_cc_g=yes
2967else
2968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002969sed 's/^/| /' conftest.$ac_ext >&5
2970
John Criswell7a73b802003-06-30 21:59:07 +00002971ac_cv_prog_cc_g=no
2972fi
2973rm -f conftest.$ac_objext conftest.$ac_ext
2974fi
2975echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2976echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2977if test "$ac_test_CFLAGS" = set; then
2978 CFLAGS=$ac_save_CFLAGS
2979elif test $ac_cv_prog_cc_g = yes; then
2980 if test "$GCC" = yes; then
2981 CFLAGS="-g -O2"
2982 else
2983 CFLAGS="-g"
2984 fi
2985else
2986 if test "$GCC" = yes; then
2987 CFLAGS="-O2"
2988 else
2989 CFLAGS=
2990 fi
2991fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002992echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2993echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2994if test "${ac_cv_prog_cc_stdc+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 ac_cv_prog_cc_stdc=no
2998ac_save_CC=$CC
2999cat >conftest.$ac_ext <<_ACEOF
3000#line $LINENO "configure"
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006#include <stdarg.h>
3007#include <stdio.h>
3008#include <sys/types.h>
3009#include <sys/stat.h>
3010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011struct buf { int x; };
3012FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013static char *e (p, i)
3014 char **p;
3015 int i;
3016{
3017 return p[i];
3018}
3019static char *f (char * (*g) (char **, int), char **p, ...)
3020{
3021 char *s;
3022 va_list v;
3023 va_start (v,p);
3024 s = g (p, va_arg (v,int));
3025 va_end (v);
3026 return s;
3027}
3028int test (int i, double x);
3029struct s1 {int (*f) (int a);};
3030struct s2 {int (*f) (double a);};
3031int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032int argc;
3033char **argv;
3034int
3035main ()
3036{
3037return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042# Don't try gcc -ansi; that turns off useful extensions and
3043# breaks some systems' header files.
3044# AIX -qlanglvl=ansi
3045# Ultrix and OSF/1 -std1
3046# HP-UX 10.20 and later -Ae
3047# HP-UX older versions -Aa -D_HPUX_SOURCE
3048# SVR4 -Xc -D__EXTENSIONS__
3049for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050do
3051 CC="$ac_save_CC $ac_arg"
3052 rm -f conftest.$ac_objext
3053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_prog_cc_stdc=$ac_arg
3065break
3066else
3067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070fi
3071rm -f conftest.$ac_objext
3072done
3073rm -f conftest.$ac_ext conftest.$ac_objext
3074CC=$ac_save_CC
3075
3076fi
3077
3078case "x$ac_cv_prog_cc_stdc" in
3079 x|xno)
3080 echo "$as_me:$LINENO: result: none needed" >&5
3081echo "${ECHO_T}none needed" >&6 ;;
3082 *)
3083 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3084echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3085 CC="$CC $ac_cv_prog_cc_stdc" ;;
3086esac
3087
John Criswell7a73b802003-06-30 21:59:07 +00003088# Some people use a C++ compiler to compile C. Since we use `exit',
3089# in C++ we need to declare it. In case someone uses the same compiler
3090# for both compiling C and C++ we need to have the C++ compiler decide
3091# the declaration of exit, since it's the most demanding environment.
3092cat >conftest.$ac_ext <<_ACEOF
3093#ifndef __cplusplus
3094 choke me
3095#endif
3096_ACEOF
3097rm -f conftest.$ac_objext
3098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 for ac_declaration in \
3110 ''\
3111 '#include <stdlib.h>' \
3112 'extern "C" void std::exit (int) throw (); using std::exit;' \
3113 'extern "C" void std::exit (int); using std::exit;' \
3114 'extern "C" void exit (int) throw ();' \
3115 'extern "C" void exit (int);' \
3116 'void exit (int);'
3117do
3118 cat >conftest.$ac_ext <<_ACEOF
3119#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003125#include <stdlib.h>
3126$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003127int
3128main ()
3129{
3130exit (42);
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -s conftest.$ac_objext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 (eval $ac_try) 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003150sed 's/^/| /' conftest.$ac_ext >&5
3151
John Criswell7a73b802003-06-30 21:59:07 +00003152continue
3153fi
3154rm -f conftest.$ac_objext conftest.$ac_ext
3155 cat >conftest.$ac_ext <<_ACEOF
3156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003162$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003163int
3164main ()
3165{
3166exit (42);
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 break
3184else
3185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003186sed 's/^/| /' conftest.$ac_ext >&5
3187
John Criswell7a73b802003-06-30 21:59:07 +00003188fi
3189rm -f conftest.$ac_objext conftest.$ac_ext
3190done
3191rm -f conftest*
3192if test -n "$ac_declaration"; then
3193 echo '#ifdef __cplusplus' >>confdefs.h
3194 echo $ac_declaration >>confdefs.h
3195 echo '#endif' >>confdefs.h
3196fi
3197
3198else
3199 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003200sed 's/^/| /' conftest.$ac_ext >&5
3201
John Criswell7a73b802003-06-30 21:59:07 +00003202fi
3203rm -f conftest.$ac_objext conftest.$ac_ext
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3238#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#ifdef __STDC__
3245# include <limits.h>
3246#else
3247# include <assert.h>
3248#endif
John Criswell7a73b802003-06-30 21:59:07 +00003249 Syntax error
3250_ACEOF
3251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003254 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_c_preproc_warn_flag
3261 else
3262 ac_cpp_err=
3263 fi
3264else
3265 ac_cpp_err=yes
3266fi
3267if test -z "$ac_cpp_err"; then
3268 :
3269else
3270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003271sed 's/^/| /' conftest.$ac_ext >&5
3272
John Criswell7a73b802003-06-30 21:59:07 +00003273 # Broken: fails on valid input.
3274continue
3275fi
3276rm -f conftest.err conftest.$ac_ext
3277
3278 # OK, works on sane cases. Now check whether non-existent headers
3279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003287#include <ac_nonexistent.h>
3288_ACEOF
3289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003292 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 else
3300 ac_cpp_err=
3301 fi
3302else
3303 ac_cpp_err=yes
3304fi
3305if test -z "$ac_cpp_err"; then
3306 # Broken: success on invalid input.
3307continue
3308else
3309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003310sed 's/^/| /' conftest.$ac_ext >&5
3311
John Criswell7a73b802003-06-30 21:59:07 +00003312 # Passes both tests.
3313ac_preproc_ok=:
3314break
3315fi
3316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
3321if $ac_preproc_ok; then
3322 break
3323fi
3324
3325 done
3326 ac_cv_prog_CPP=$CPP
3327
3328fi
3329 CPP=$ac_cv_prog_CPP
3330else
3331 ac_cv_prog_CPP=$CPP
3332fi
3333echo "$as_me:$LINENO: result: $CPP" >&5
3334echo "${ECHO_T}$CPP" >&6
3335ac_preproc_ok=false
3336for ac_c_preproc_warn_flag in '' yes
3337do
3338 # Use a header file that comes with gcc, so configuring glibc
3339 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351#ifdef __STDC__
3352# include <limits.h>
3353#else
3354# include <assert.h>
3355#endif
John Criswell7a73b802003-06-30 21:59:07 +00003356 Syntax error
3357_ACEOF
3358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003361 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 else
3369 ac_cpp_err=
3370 fi
3371else
3372 ac_cpp_err=yes
3373fi
3374if test -z "$ac_cpp_err"; then
3375 :
3376else
3377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003378sed 's/^/| /' conftest.$ac_ext >&5
3379
John Criswell7a73b802003-06-30 21:59:07 +00003380 # Broken: fails on valid input.
3381continue
3382fi
3383rm -f conftest.err conftest.$ac_ext
3384
3385 # OK, works on sane cases. Now check whether non-existent headers
3386 # can be detected and how.
3387 cat >conftest.$ac_ext <<_ACEOF
3388#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003394#include <ac_nonexistent.h>
3395_ACEOF
3396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003399 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 else
3407 ac_cpp_err=
3408 fi
3409else
3410 ac_cpp_err=yes
3411fi
3412if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3414continue
3415else
3416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003417sed 's/^/| /' conftest.$ac_ext >&5
3418
John Criswell7a73b802003-06-30 21:59:07 +00003419 # Passes both tests.
3420ac_preproc_ok=:
3421break
3422fi
3423rm -f conftest.err conftest.$ac_ext
3424
3425done
3426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427rm -f conftest.err conftest.$ac_ext
3428if $ac_preproc_ok; then
3429 :
3430else
John Criswell0c38eaf2003-09-10 15:17:25 +00003431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432See \`config.log' for more details." >&5
3433echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003435 { (exit 1); exit 1; }; }
3436fi
3437
3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443
3444
3445if test "$GCC" != "yes"
3446then
3447 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3448echo "$as_me: error: gcc required but not found" >&2;}
3449 { (exit 1); exit 1; }; }
3450fi
3451
3452if test "$GXX" != "yes"
3453then
3454 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3455echo "$as_me: error: g++ required but not found" >&2;}
3456 { (exit 1); exit 1; }; }
3457fi
3458
John Criswellde00db22003-08-25 16:49:54 +00003459gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3460if test "$gccmajor" -lt "3"
3461then
3462 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3463echo "$as_me: error: gcc 3.x required" >&2;}
3464 { (exit 1); exit 1; }; }
3465fi
3466
John Criswell3b195522003-09-15 14:25:08 +00003467cat >>confdefs.h <<\_ACEOF
3468#define CC "$CC"
3469_ACEOF
3470
3471
John Criswell7a73b802003-06-30 21:59:07 +00003472 echo "$as_me:$LINENO: checking for GNU make" >&5
3473echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3474if test "${_cv_gnu_make_command+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 _cv_gnu_make_command='' ;
3478 for a in "$MAKE" make gmake gnumake ; do
3479 if test -z "$a" ; then continue ; fi ;
3480 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3481 _cv_gnu_make_command=$a ;
3482 break;
3483 fi
3484 done ;
3485
3486fi
3487echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3488echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3489 if test "x$_cv_gnu_make_command" != "x" ; then
3490 ifGNUmake='' ;
3491 else
3492 ifGNUmake='#' ;
3493 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3494echo "${ECHO_T}\"Not found\"" >&6;
3495 fi
3496
3497
3498if test -z "$_cv_gnu_make_command"
3499then
3500 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3501echo "$as_me: error: GNU Make required but not found" >&2;}
3502 { (exit 1); exit 1; }; }
3503fi
3504
3505
3506echo "$as_me:$LINENO: checking " >&5
3507echo $ECHO_N "checking ... $ECHO_C" >&6
3508if test "${ac_cv_has_flex+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 for ac_prog in flex lex
3512do
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514set dummy $ac_prog; ac_word=$2
3515echo "$as_me:$LINENO: checking for $ac_word" >&5
3516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3517if test "${ac_cv_prog_LEX+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520 if test -n "$LEX"; then
3521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3522else
3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_LEX="$ac_prog"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534done
3535done
3536
3537fi
3538fi
3539LEX=$ac_cv_prog_LEX
3540if test -n "$LEX"; then
3541 echo "$as_me:$LINENO: result: $LEX" >&5
3542echo "${ECHO_T}$LEX" >&6
3543else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546fi
3547
3548 test -n "$LEX" && break
3549done
3550test -n "$LEX" || LEX=":"
3551
3552if test -z "$LEXLIB"
3553then
3554 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3555echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3556if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559 ac_check_lib_save_LIBS=$LIBS
3560LIBS="-lfl $LIBS"
3561cat >conftest.$ac_ext <<_ACEOF
3562#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003563/* confdefs.h. */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003568
3569/* Override any gcc2 internal prototype to avoid an error. */
3570#ifdef __cplusplus
3571extern "C"
3572#endif
3573/* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003576int
3577main ()
3578{
3579yywrap ();
3580 ;
3581 return 0;
3582}
3583_ACEOF
3584rm -f conftest.$ac_objext conftest$ac_exeext
3585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586 (eval $ac_link) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -s conftest$ac_exeext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_lib_fl_yywrap=yes
3597else
3598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003599sed 's/^/| /' conftest.$ac_ext >&5
3600
John Criswell7a73b802003-06-30 21:59:07 +00003601ac_cv_lib_fl_yywrap=no
3602fi
3603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3604LIBS=$ac_check_lib_save_LIBS
3605fi
3606echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3607echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3608if test $ac_cv_lib_fl_yywrap = yes; then
3609 LEXLIB="-lfl"
3610else
3611 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3612echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3613if test "${ac_cv_lib_l_yywrap+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 ac_check_lib_save_LIBS=$LIBS
3617LIBS="-ll $LIBS"
3618cat >conftest.$ac_ext <<_ACEOF
3619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003620/* confdefs.h. */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003625
3626/* Override any gcc2 internal prototype to avoid an error. */
3627#ifdef __cplusplus
3628extern "C"
3629#endif
3630/* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3632char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003633int
3634main ()
3635{
3636yywrap ();
3637 ;
3638 return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext conftest$ac_exeext
3642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643 (eval $ac_link) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -s conftest$ac_exeext'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3653 ac_cv_lib_l_yywrap=yes
3654else
3655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003656sed 's/^/| /' conftest.$ac_ext >&5
3657
John Criswell7a73b802003-06-30 21:59:07 +00003658ac_cv_lib_l_yywrap=no
3659fi
3660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3661LIBS=$ac_check_lib_save_LIBS
3662fi
3663echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3664echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3665if test $ac_cv_lib_l_yywrap = yes; then
3666 LEXLIB="-ll"
3667fi
3668
3669fi
3670
3671fi
3672
3673if test "x$LEX" != "x:"; then
3674 echo "$as_me:$LINENO: checking lex output file root" >&5
3675echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3676if test "${ac_cv_prog_lex_root+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 # The minimal lex program is just a single line: %%. But some broken lexes
3680# (Solaris, I think it was) want two %% lines, so accommodate them.
3681cat >conftest.l <<_ACEOF
3682%%
3683%%
3684_ACEOF
3685{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3686 (eval $LEX conftest.l) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }
3690if test -f lex.yy.c; then
3691 ac_cv_prog_lex_root=lex.yy
3692elif test -f lexyy.c; then
3693 ac_cv_prog_lex_root=lexyy
3694else
3695 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3696echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3697 { (exit 1); exit 1; }; }
3698fi
3699fi
3700echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3701echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3702rm -f conftest.l
3703LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3704
3705echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3706echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3707if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710 # POSIX says lex can declare yytext either as a pointer or an array; the
3711# default is implementation-dependent. Figure out which it is, since
3712# not all implementations provide the %pointer and %array declarations.
3713ac_cv_prog_lex_yytext_pointer=no
3714echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3715ac_save_LIBS=$LIBS
3716LIBS="$LIBS $LEXLIB"
3717cat >conftest.$ac_ext <<_ACEOF
3718`cat $LEX_OUTPUT_ROOT.c`
3719_ACEOF
3720rm -f conftest.$ac_objext conftest$ac_exeext
3721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3722 (eval $ac_link) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -s conftest$ac_exeext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_prog_lex_yytext_pointer=yes
3733else
3734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003735sed 's/^/| /' conftest.$ac_ext >&5
3736
John Criswell7a73b802003-06-30 21:59:07 +00003737fi
3738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3739LIBS=$ac_save_LIBS
3740rm -f "${LEX_OUTPUT_ROOT}.c"
3741
3742fi
3743echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3744echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3745if test $ac_cv_prog_lex_yytext_pointer = yes; then
3746
3747cat >>confdefs.h <<\_ACEOF
3748#define YYTEXT_POINTER 1
3749_ACEOF
3750
3751fi
3752
3753fi
3754
3755fi
3756echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3757echo "${ECHO_T}$ac_cv_has_flex" >&6
3758if test "$LEX" != "flex"; then
3759 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3760echo "$as_me: error: flex not found but required" >&2;}
3761 { (exit 1); exit 1; }; }
3762fi
3763
3764echo "$as_me:$LINENO: checking " >&5
3765echo $ECHO_N "checking ... $ECHO_C" >&6
3766if test "${ac_cv_has_bison+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 for ac_prog in 'bison -y' byacc
3770do
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772set dummy $ac_prog; ac_word=$2
3773echo "$as_me:$LINENO: checking for $ac_word" >&5
3774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3775if test "${ac_cv_prog_YACC+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777else
3778 if test -n "$YACC"; then
3779 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3780else
3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_YACC="$ac_prog"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792done
3793done
3794
3795fi
3796fi
3797YACC=$ac_cv_prog_YACC
3798if test -n "$YACC"; then
3799 echo "$as_me:$LINENO: result: $YACC" >&5
3800echo "${ECHO_T}$YACC" >&6
3801else
3802 echo "$as_me:$LINENO: result: no" >&5
3803echo "${ECHO_T}no" >&6
3804fi
3805
3806 test -n "$YACC" && break
3807done
3808test -n "$YACC" || YACC="yacc"
3809
3810
3811fi
3812echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3813echo "${ECHO_T}$ac_cv_has_bison" >&6
3814if test "$YACC" != "bison -y"; then
3815 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3816echo "$as_me: error: bison not found but required" >&2;}
3817 { (exit 1); exit 1; }; }
3818else
3819 YACC=bison
3820
3821fi
3822
3823
3824# Check whether --enable-shared or --disable-shared was given.
3825if test "${enable_shared+set}" = set; then
3826 enableval="$enable_shared"
3827 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003828 case $enableval in
3829 yes) enable_shared=yes ;;
3830 no) enable_shared=no ;;
3831 *)
3832 enable_shared=no
3833 # Look at the argument we got. We use all the common list separators.
3834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3835 for pkg in $enableval; do
3836 IFS="$lt_save_ifs"
3837 if test "X$pkg" = "X$p"; then
3838 enable_shared=yes
3839 fi
3840 done
3841 IFS="$lt_save_ifs"
3842 ;;
3843 esac
John Criswell7a73b802003-06-30 21:59:07 +00003844else
3845 enable_shared=yes
3846fi;
John Criswell47fdd832003-07-14 16:52:07 +00003847
John Criswell7a73b802003-06-30 21:59:07 +00003848# Check whether --enable-static or --disable-static was given.
3849if test "${enable_static+set}" = set; then
3850 enableval="$enable_static"
3851 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003852 case $enableval in
3853 yes) enable_static=yes ;;
3854 no) enable_static=no ;;
3855 *)
3856 enable_static=no
3857 # Look at the argument we got. We use all the common list separators.
3858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3859 for pkg in $enableval; do
3860 IFS="$lt_save_ifs"
3861 if test "X$pkg" = "X$p"; then
3862 enable_static=yes
3863 fi
3864 done
3865 IFS="$lt_save_ifs"
3866 ;;
3867 esac
John Criswell7a73b802003-06-30 21:59:07 +00003868else
3869 enable_static=yes
3870fi;
John Criswell47fdd832003-07-14 16:52:07 +00003871
John Criswell7a73b802003-06-30 21:59:07 +00003872# Check whether --enable-fast-install or --disable-fast-install was given.
3873if test "${enable_fast_install+set}" = set; then
3874 enableval="$enable_fast_install"
3875 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003876 case $enableval in
3877 yes) enable_fast_install=yes ;;
3878 no) enable_fast_install=no ;;
3879 *)
3880 enable_fast_install=no
3881 # Look at the argument we got. We use all the common list separators.
3882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3883 for pkg in $enableval; do
3884 IFS="$lt_save_ifs"
3885 if test "X$pkg" = "X$p"; then
3886 enable_fast_install=yes
3887 fi
3888 done
3889 IFS="$lt_save_ifs"
3890 ;;
3891 esac
John Criswell7a73b802003-06-30 21:59:07 +00003892else
3893 enable_fast_install=yes
3894fi;
John Criswell47fdd832003-07-14 16:52:07 +00003895
3896echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3897echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3898if test "${lt_cv_path_SED+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901 # Loop through the user's path and test for sed and gsed.
3902# Then use that list of sed's as ones to test for truncation.
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for lt_ac_prog in sed gsed; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3911 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3912 fi
3913 done
3914 done
3915done
3916lt_ac_max=0
3917lt_ac_count=0
3918# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3919# along with /bin/sed that truncates output.
3920for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3921 test ! -f $lt_ac_sed && break
3922 cat /dev/null > conftest.in
3923 lt_ac_count=0
3924 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3925 # Check for GNU sed and select it if it is found.
3926 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3927 lt_cv_path_SED=$lt_ac_sed
3928 break
3929 fi
3930 while true; do
3931 cat conftest.in conftest.in >conftest.tmp
3932 mv conftest.tmp conftest.in
3933 cp conftest.in conftest.nl
3934 echo >>conftest.nl
3935 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3936 cmp -s conftest.out conftest.nl || break
3937 # 10000 chars as input seems more than enough
3938 test $lt_ac_count -gt 10 && break
3939 lt_ac_count=`expr $lt_ac_count + 1`
3940 if test $lt_ac_count -gt $lt_ac_max; then
3941 lt_ac_max=$lt_ac_count
3942 lt_cv_path_SED=$lt_ac_sed
3943 fi
3944 done
3945done
3946SED=$lt_cv_path_SED
3947
John Criswell7a73b802003-06-30 21:59:07 +00003948fi
3949
John Criswell47fdd832003-07-14 16:52:07 +00003950echo "$as_me:$LINENO: result: $SED" >&5
3951echo "${ECHO_T}$SED" >&6
3952
3953echo "$as_me:$LINENO: checking for egrep" >&5
3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3955if test "${ac_cv_prog_egrep+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3959 then ac_cv_prog_egrep='grep -E'
3960 else ac_cv_prog_egrep='egrep'
3961 fi
3962fi
3963echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3964echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3965 EGREP=$ac_cv_prog_egrep
3966
3967
John Criswell7a73b802003-06-30 21:59:07 +00003968
3969# Check whether --with-gnu-ld or --without-gnu-ld was given.
3970if test "${with_gnu_ld+set}" = set; then
3971 withval="$with_gnu_ld"
3972 test "$withval" = no || with_gnu_ld=yes
3973else
3974 with_gnu_ld=no
3975fi;
3976ac_prog=ld
3977if test "$GCC" = yes; then
3978 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003979 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3980echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003981 case $host in
3982 *-*-mingw*)
3983 # gcc leaves a trailing carriage return which upsets mingw
3984 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3985 *)
3986 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3987 esac
3988 case $ac_prog in
3989 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003990 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003991 re_direlt='/[^/][^/]*/\.\./'
3992 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003993 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003994 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003995 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003996 done
3997 test -z "$LD" && LD="$ac_prog"
3998 ;;
3999 "")
4000 # If it fails, then pretend we aren't using GCC.
4001 ac_prog=ld
4002 ;;
4003 *)
4004 # If it is relative, then search for the first ld in PATH.
4005 with_gnu_ld=unknown
4006 ;;
4007 esac
4008elif test "$with_gnu_ld" = yes; then
4009 echo "$as_me:$LINENO: checking for GNU ld" >&5
4010echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4011else
4012 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4013echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4014fi
4015if test "${lt_cv_path_LD+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004020 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004021 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004022 test -z "$ac_dir" && ac_dir=.
4023 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4024 lt_cv_path_LD="$ac_dir/$ac_prog"
4025 # Check to see if the program is GNU ld. I'd rather use --version,
4026 # but apparently some GNU ld's only accept -v.
4027 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004028 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4029 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004030 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004031 ;;
4032 *)
John Criswell7a73b802003-06-30 21:59:07 +00004033 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004034 ;;
4035 esac
John Criswell7a73b802003-06-30 21:59:07 +00004036 fi
4037 done
John Criswell47fdd832003-07-14 16:52:07 +00004038 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004039else
4040 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4041fi
4042fi
4043
4044LD="$lt_cv_path_LD"
4045if test -n "$LD"; then
4046 echo "$as_me:$LINENO: result: $LD" >&5
4047echo "${ECHO_T}$LD" >&6
4048else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051fi
4052test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4053echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4054 { (exit 1); exit 1; }; }
4055echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4056echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4057if test "${lt_cv_prog_gnu_ld+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004061case `"$LD" -v 2>&1 </dev/null` in
4062*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004063 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004064 ;;
4065*)
John Criswell7a73b802003-06-30 21:59:07 +00004066 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004067 ;;
4068esac
John Criswell7a73b802003-06-30 21:59:07 +00004069fi
4070echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4071echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4072with_gnu_ld=$lt_cv_prog_gnu_ld
4073
4074
4075echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4077if test "${lt_cv_ld_reload_flag+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080 lt_cv_ld_reload_flag='-r'
4081fi
4082echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4084reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004085case $reload_flag in
4086"" | " "*) ;;
4087*) reload_flag=" $reload_flag" ;;
4088esac
4089reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004090
4091echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4092echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4093if test "${lt_cv_path_NM+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 if test -n "$NM"; then
4097 # Let the user override the test.
4098 lt_cv_path_NM="$NM"
4099else
John Criswell47fdd832003-07-14 16:52:07 +00004100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004101 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004102 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004103 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004104 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4105 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004106 # Check to see if the nm accepts a BSD-compat flag.
4107 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4108 # nm: unknown option "B" ignored
4109 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004110 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4111 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004112 lt_cv_path_NM="$tmp_nm -B"
4113 break
John Criswell47fdd832003-07-14 16:52:07 +00004114 ;;
4115 *)
4116 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4117 */dev/null*)
4118 lt_cv_path_NM="$tmp_nm -p"
4119 break
4120 ;;
4121 *)
4122 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4123 continue # so that we can try to find one that supports BSD flags
4124 ;;
4125 esac
4126 esac
John Criswell7a73b802003-06-30 21:59:07 +00004127 fi
4128 done
John Criswell47fdd832003-07-14 16:52:07 +00004129 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004130 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4131fi
4132fi
John Criswell47fdd832003-07-14 16:52:07 +00004133echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4134echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004135NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004136
4137echo "$as_me:$LINENO: checking whether ln -s works" >&5
4138echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4139LN_S=$as_ln_s
4140if test "$LN_S" = "ln -s"; then
4141 echo "$as_me:$LINENO: result: yes" >&5
4142echo "${ECHO_T}yes" >&6
4143else
4144 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4145echo "${ECHO_T}no, using $LN_S" >&6
4146fi
4147
John Criswell47fdd832003-07-14 16:52:07 +00004148echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4149echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004150if test "${lt_cv_deplibs_check_method+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153 lt_cv_file_magic_cmd='$MAGIC_CMD'
4154lt_cv_file_magic_test_file=
4155lt_cv_deplibs_check_method='unknown'
4156# Need to set the preceding variable on all platforms that support
4157# interlibrary dependencies.
4158# 'none' -- dependencies not supported.
4159# `unknown' -- same as none, but documents that we really don't know.
4160# 'pass_all' -- all dependencies passed with no checks.
4161# 'test_compile' -- check by making test program.
4162# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004163# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004164# If you have `file' or equivalent on your system and you're not sure
4165# whether `pass_all' will *always* work, you probably want this one.
4166
4167case $host_os in
4168aix4* | aix5*)
4169 lt_cv_deplibs_check_method=pass_all
4170 ;;
4171
4172beos*)
4173 lt_cv_deplibs_check_method=pass_all
4174 ;;
4175
4176bsdi4*)
4177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4178 lt_cv_file_magic_cmd='/usr/bin/file -L'
4179 lt_cv_file_magic_test_file=/shlib/libc.so
4180 ;;
4181
4182cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004183 # win32_libid is a shell function defined in ltmain.sh
4184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4185 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004186 ;;
4187
4188darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004189 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004190 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4191 lt_cv_file_magic_cmd='/usr/bin/file -L'
4192 case "$host_os" in
4193 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004194 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004195 ;;
4196 *) # Darwin 1.3 on
4197 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4198 ;;
4199 esac
John Criswell47fdd832003-07-14 16:52:07 +00004200 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004201 ;;
4202
4203freebsd*)
4204 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4205 case $host_cpu in
4206 i*86 )
4207 # Not sure whether the presence of OpenBSD here was a mistake.
4208 # Let's accept both of them until this is cleared up.
4209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4210 lt_cv_file_magic_cmd=/usr/bin/file
4211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4212 ;;
4213 esac
4214 else
4215 lt_cv_deplibs_check_method=pass_all
4216 fi
4217 ;;
4218
4219gnu*)
4220 lt_cv_deplibs_check_method=pass_all
4221 ;;
4222
John Criswell47fdd832003-07-14 16:52:07 +00004223hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004224 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004225 case "$host_cpu" in
4226 ia64*)
4227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4229 ;;
4230 hppa*64*)
4231 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]'
4232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4233 ;;
4234 *)
4235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4237 ;;
4238 esac
John Criswell7a73b802003-06-30 21:59:07 +00004239 ;;
4240
John Criswell47fdd832003-07-14 16:52:07 +00004241irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004242 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004243 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004244 # this will be overridden with pass_all, but let us keep it just in case
4245 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4246 ;;
4247 *)
4248 case $LD in
4249 *-32|*"-32 ") libmagic=32-bit;;
4250 *-n32|*"-n32 ") libmagic=N32;;
4251 *-64|*"-64 ") libmagic=64-bit;;
4252 *) libmagic=never-match;;
4253 esac
4254 # this will be overridden with pass_all, but let us keep it just in case
4255 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4256 ;;
4257 esac
4258 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4259 lt_cv_deplibs_check_method=pass_all
4260 ;;
4261
4262# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004263linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004264 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004265 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004266 lt_cv_deplibs_check_method=pass_all ;;
4267 *)
4268 # glibc up to 2.1.1 does not perform some relocations on ARM
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4270 esac
4271 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4272 ;;
4273
4274netbsd*)
4275 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004277 else
John Criswell47fdd832003-07-14 16:52:07 +00004278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004279 fi
4280 ;;
4281
4282newos6*)
4283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4286 ;;
4287
John Criswell47fdd832003-07-14 16:52:07 +00004288nto-qnx)
4289 lt_cv_deplibs_check_method=unknown
4290 ;;
4291
John Criswell7a73b802003-06-30 21:59:07 +00004292openbsd*)
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4297 else
4298 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4299 fi
4300 ;;
4301
4302osf3* | osf4* | osf5*)
4303 # this will be overridden with pass_all, but let us keep it just in case
4304 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4305 lt_cv_file_magic_test_file=/shlib/libc.so
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309sco3.2v5*)
4310 lt_cv_deplibs_check_method=pass_all
4311 ;;
4312
4313solaris*)
4314 lt_cv_deplibs_check_method=pass_all
4315 lt_cv_file_magic_test_file=/lib/libc.so
4316 ;;
4317
John Criswell7a73b802003-06-30 21:59:07 +00004318sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4319 case $host_vendor in
4320 motorola)
4321 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]'
4322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4323 ;;
4324 ncr)
4325 lt_cv_deplibs_check_method=pass_all
4326 ;;
4327 sequent)
4328 lt_cv_file_magic_cmd='/bin/file'
4329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4330 ;;
4331 sni)
4332 lt_cv_file_magic_cmd='/bin/file'
4333 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4334 lt_cv_file_magic_test_file=/lib/libc.so
4335 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004336 siemens)
4337 lt_cv_deplibs_check_method=pass_all
4338 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004339 esac
4340 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004341
4342sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4343 lt_cv_deplibs_check_method=pass_all
4344 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004345esac
4346
4347fi
4348echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4349echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4350file_magic_cmd=$lt_cv_file_magic_cmd
4351deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004352test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004353
4354
4355
4356
John Criswell47fdd832003-07-14 16:52:07 +00004357# If no C compiler was specified, use CC.
4358LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004359
John Criswell47fdd832003-07-14 16:52:07 +00004360# Allow CC to be a program name with arguments.
4361compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004362
John Criswell47fdd832003-07-14 16:52:07 +00004363# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4364if test "${enable_libtool_lock+set}" = set; then
4365 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004366
John Criswell47fdd832003-07-14 16:52:07 +00004367fi;
4368test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004369
John Criswell47fdd832003-07-14 16:52:07 +00004370# Some flags need to be propagated to the compiler or linker for good
4371# libtool support.
4372case $host in
4373ia64-*-hpux*)
4374 # Find out which ABI we are using.
4375 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004381 case `/usr/bin/file conftest.$ac_objext` in
4382 *ELF-32*)
4383 HPUX_IA64_MODE="32"
4384 ;;
4385 *ELF-64*)
4386 HPUX_IA64_MODE="64"
4387 ;;
4388 esac
4389 fi
4390 rm -rf conftest*
4391 ;;
4392*-*-irix6*)
4393 # Find out which ABI we are using.
John Criswell3b195522003-09-15 14:25:08 +00004394 echo '#line 4394 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004399 (exit $ac_status); }; then
4400 if test "$lt_cv_prog_gnu_ld" = yes; then
4401 case `/usr/bin/file conftest.$ac_objext` in
4402 *32-bit*)
4403 LD="${LD-ld} -melf32bsmip"
4404 ;;
4405 *N32*)
4406 LD="${LD-ld} -melf32bmipn32"
4407 ;;
4408 *64-bit*)
4409 LD="${LD-ld} -melf64bmip"
4410 ;;
4411 esac
4412 else
4413 case `/usr/bin/file conftest.$ac_objext` in
4414 *32-bit*)
4415 LD="${LD-ld} -32"
4416 ;;
4417 *N32*)
4418 LD="${LD-ld} -n32"
4419 ;;
4420 *64-bit*)
4421 LD="${LD-ld} -64"
4422 ;;
4423 esac
4424 fi
4425 fi
4426 rm -rf conftest*
4427 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004428
John Criswell47fdd832003-07-14 16:52:07 +00004429x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4430 # Find out which ABI we are using.
4431 echo 'int i;' > conftest.$ac_ext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; then
4437 case "`/usr/bin/file conftest.o`" in
4438 *32-bit*)
4439 case $host in
4440 x86_64-*linux*)
4441 LD="${LD-ld} -m elf_i386"
4442 ;;
4443 ppc64-*linux*)
4444 LD="${LD-ld} -m elf32ppclinux"
4445 ;;
4446 s390x-*linux*)
4447 LD="${LD-ld} -m elf_s390"
4448 ;;
4449 sparc64-*linux*)
4450 LD="${LD-ld} -m elf32_sparc"
4451 ;;
4452 esac
4453 ;;
4454 *64-bit*)
4455 case $host in
4456 x86_64-*linux*)
4457 LD="${LD-ld} -m elf_x86_64"
4458 ;;
4459 ppc*-*linux*|powerpc*-*linux*)
4460 LD="${LD-ld} -m elf64ppc"
4461 ;;
4462 s390*-*linux*)
4463 LD="${LD-ld} -m elf64_s390"
4464 ;;
4465 sparc*-*linux*)
4466 LD="${LD-ld} -m elf64_sparc"
4467 ;;
4468 esac
4469 ;;
4470 esac
4471 fi
4472 rm -rf conftest*
4473 ;;
4474
4475*-*-sco3.2v5*)
4476 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4477 SAVE_CFLAGS="$CFLAGS"
4478 CFLAGS="$CFLAGS -belf"
4479 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4480echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4481if test "${lt_cv_cc_needs_belf+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 ac_ext=c
4485ac_cpp='$CPP $CPPFLAGS'
4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490 cat >conftest.$ac_ext <<_ACEOF
4491#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004492/* confdefs.h. */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4496/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004497
John Criswell47fdd832003-07-14 16:52:07 +00004498int
4499main ()
John Criswell7a73b802003-06-30 21:59:07 +00004500{
John Criswell7a73b802003-06-30 21:59:07 +00004501
John Criswell47fdd832003-07-14 16:52:07 +00004502 ;
4503 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004504}
John Criswell47fdd832003-07-14 16:52:07 +00004505_ACEOF
4506rm -f conftest.$ac_objext conftest$ac_exeext
4507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004508 (eval $ac_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004519else
John Criswell47fdd832003-07-14 16:52:07 +00004520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004521sed 's/^/| /' conftest.$ac_ext >&5
4522
John Criswell47fdd832003-07-14 16:52:07 +00004523lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004524fi
John Criswell47fdd832003-07-14 16:52:07 +00004525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4526 ac_ext=c
4527ac_cpp='$CPP $CPPFLAGS'
4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
John Criswell7a73b802003-06-30 21:59:07 +00004532fi
John Criswell47fdd832003-07-14 16:52:07 +00004533echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4534echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4535 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4536 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4537 CFLAGS="$SAVE_CFLAGS"
4538 fi
4539 ;;
4540
4541esac
4542
4543need_locks="$enable_libtool_lock"
4544
John Criswell7a73b802003-06-30 21:59:07 +00004545
4546
4547echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4548echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4549if test "${ac_cv_header_stdc+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 cat >conftest.$ac_ext <<_ACEOF
4553#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
4558/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004559#include <stdlib.h>
4560#include <stdarg.h>
4561#include <string.h>
4562#include <float.h>
4563
John Criswell0c38eaf2003-09-10 15:17:25 +00004564int
4565main ()
4566{
4567
4568 ;
4569 return 0;
4570}
John Criswell7a73b802003-06-30 21:59:07 +00004571_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004572rm -f conftest.$ac_objext
4573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004575 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004577 (exit $ac_status); } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004584 ac_cv_header_stdc=yes
4585else
4586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004590fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004591rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004597/* confdefs.h. */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004602#include <string.h>
4603
4604_ACEOF
4605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004606 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004607 :
4608else
4609 ac_cv_header_stdc=no
4610fi
4611rm -f conftest*
4612
4613fi
4614
4615if test $ac_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat >conftest.$ac_ext <<_ACEOF
4618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004624#include <stdlib.h>
4625
4626_ACEOF
4627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004628 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004629 :
4630else
4631 ac_cv_header_stdc=no
4632fi
4633rm -f conftest*
4634
4635fi
4636
4637if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then
4640 :
4641else
4642 cat >conftest.$ac_ext <<_ACEOF
4643#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004649#include <ctype.h>
4650#if ((' ' & 0x0FF) == 0x020)
4651# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004654# define ISLOWER(c) \
4655 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004656 || ('j' <= (c) && (c) <= 'r') \
4657 || ('s' <= (c) && (c) <= 'z'))
4658# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659#endif
4660
4661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662int
4663main ()
4664{
4665 int i;
4666 for (i = 0; i < 256; i++)
4667 if (XOR (islower (i), ISLOWER (i))
4668 || toupper (i) != TOUPPER (i))
4669 exit(2);
4670 exit (0);
4671}
4672_ACEOF
4673rm -f conftest$ac_exeext
4674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4675 (eval $ac_link) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 :
4685else
4686 echo "$as_me: program exited with status $ac_status" >&5
4687echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004688sed 's/^/| /' conftest.$ac_ext >&5
4689
John Criswell7a73b802003-06-30 21:59:07 +00004690( exit $ac_status )
4691ac_cv_header_stdc=no
4692fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004693rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004694fi
4695fi
4696fi
4697echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4698echo "${ECHO_T}$ac_cv_header_stdc" >&6
4699if test $ac_cv_header_stdc = yes; then
4700
4701cat >>confdefs.h <<\_ACEOF
4702#define STDC_HEADERS 1
4703_ACEOF
4704
4705fi
4706
4707# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4718 inttypes.h stdint.h unistd.h
4719do
4720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4721echo "$as_me:$LINENO: checking for $ac_header" >&5
4722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4723if eval "test \"\${$as_ac_Header+set}\" = set"; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726 cat >conftest.$ac_ext <<_ACEOF
4727#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004728/* confdefs.h. */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004733$ac_includes_default
4734
4735#include <$ac_header>
4736_ACEOF
4737rm -f conftest.$ac_objext
4738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 eval "$as_ac_Header=yes"
4750else
4751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004752sed 's/^/| /' conftest.$ac_ext >&5
4753
John Criswell7a73b802003-06-30 21:59:07 +00004754eval "$as_ac_Header=no"
4755fi
4756rm -f conftest.$ac_objext conftest.$ac_ext
4757fi
4758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760if test `eval echo '${'$as_ac_Header'}'` = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4763_ACEOF
4764
4765fi
4766
4767done
4768
4769
4770
4771for ac_header in dlfcn.h
4772do
4773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779fi
4780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4782else
4783 # Is the header compilable?
4784echo "$as_me:$LINENO: checking $ac_header usability" >&5
4785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4786cat >conftest.$ac_ext <<_ACEOF
4787#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004788/* confdefs.h. */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004793$ac_includes_default
4794#include <$ac_header>
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_header_compiler=yes
4809else
4810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004811sed 's/^/| /' conftest.$ac_ext >&5
4812
John Criswell7a73b802003-06-30 21:59:07 +00004813ac_header_compiler=no
4814fi
4815rm -f conftest.$ac_objext conftest.$ac_ext
4816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4817echo "${ECHO_T}$ac_header_compiler" >&6
4818
4819# Is the header present?
4820echo "$as_me:$LINENO: checking $ac_header presence" >&5
4821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4822cat >conftest.$ac_ext <<_ACEOF
4823#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004829#include <$ac_header>
4830_ACEOF
4831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4833 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004834 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } >/dev/null; then
4839 if test -s conftest.err; then
4840 ac_cpp_err=$ac_c_preproc_warn_flag
4841 else
4842 ac_cpp_err=
4843 fi
4844else
4845 ac_cpp_err=yes
4846fi
4847if test -z "$ac_cpp_err"; then
4848 ac_header_preproc=yes
4849else
4850 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004851sed 's/^/| /' conftest.$ac_ext >&5
4852
John Criswell7a73b802003-06-30 21:59:07 +00004853 ac_header_preproc=no
4854fi
4855rm -f conftest.err conftest.$ac_ext
4856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4857echo "${ECHO_T}$ac_header_preproc" >&6
4858
4859# So? What about this header?
4860case $ac_header_compiler:$ac_header_preproc in
4861 yes:no )
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4866 (
4867 cat <<\_ASBOX
4868## ------------------------------------ ##
4869## Report this to bug-autoconf@gnu.org. ##
4870## ------------------------------------ ##
4871_ASBOX
4872 ) |
4873 sed "s/^/$as_me: WARNING: /" >&2
4874 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004875 no:yes )
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882 (
4883 cat <<\_ASBOX
4884## ------------------------------------ ##
4885## Report this to bug-autoconf@gnu.org. ##
4886## ------------------------------------ ##
4887_ASBOX
4888 ) |
4889 sed "s/^/$as_me: WARNING: /" >&2
4890 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004891esac
4892echo "$as_me:$LINENO: checking for $ac_header" >&5
4893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4894if eval "test \"\${$as_ac_Header+set}\" = set"; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897 eval "$as_ac_Header=$ac_header_preproc"
4898fi
4899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4901
4902fi
4903if test `eval echo '${'$as_ac_Header'}'` = yes; then
4904 cat >>confdefs.h <<_ACEOF
4905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4906_ACEOF
4907
4908fi
4909
4910done
4911
John Criswell47fdd832003-07-14 16:52:07 +00004912ac_ext=cc
4913ac_cpp='$CXXCPP $CPPFLAGS'
4914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4917echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4918echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4919if test -z "$CXXCPP"; then
4920 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
John Criswell47fdd832003-07-14 16:52:07 +00004923 # Double quotes because CXXCPP needs to be expanded
4924 for CXXCPP in "$CXX -E" "/lib/cpp"
4925 do
4926 ac_preproc_ok=false
4927for ac_cxx_preproc_warn_flag in '' yes
4928do
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4936#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
John Criswell47fdd832003-07-14 16:52:07 +00004947 Syntax error
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004952 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004959 else
John Criswell47fdd832003-07-14 16:52:07 +00004960 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004961 fi
John Criswell47fdd832003-07-14 16:52:07 +00004962else
4963 ac_cpp_err=yes
4964fi
4965if test -z "$ac_cpp_err"; then
4966 :
4967else
4968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004969sed 's/^/| /' conftest.$ac_ext >&5
4970
John Criswell47fdd832003-07-14 16:52:07 +00004971 # Broken: fails on valid input.
4972continue
4973fi
4974rm -f conftest.err conftest.$ac_ext
4975
4976 # OK, works on sane cases. Now check whether non-existent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4979#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004985#include <ac_nonexistent.h>
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004990 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_cxx_preproc_warn_flag
4997 else
4998 ac_cpp_err=
4999 fi
5000else
5001 ac_cpp_err=yes
5002fi
5003if test -z "$ac_cpp_err"; then
5004 # Broken: success on invalid input.
5005continue
5006else
5007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005008sed 's/^/| /' conftest.$ac_ext >&5
5009
John Criswell47fdd832003-07-14 16:52:07 +00005010 # Passes both tests.
5011ac_preproc_ok=:
5012break
5013fi
5014rm -f conftest.err conftest.$ac_ext
5015
5016done
5017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018rm -f conftest.err conftest.$ac_ext
5019if $ac_preproc_ok; then
5020 break
John Criswell7a73b802003-06-30 21:59:07 +00005021fi
5022
John Criswell47fdd832003-07-14 16:52:07 +00005023 done
5024 ac_cv_prog_CXXCPP=$CXXCPP
5025
5026fi
5027 CXXCPP=$ac_cv_prog_CXXCPP
5028else
5029 ac_cv_prog_CXXCPP=$CXXCPP
5030fi
5031echo "$as_me:$LINENO: result: $CXXCPP" >&5
5032echo "${ECHO_T}$CXXCPP" >&6
5033ac_preproc_ok=false
5034for ac_cxx_preproc_warn_flag in '' yes
5035do
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5043#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049#ifdef __STDC__
5050# include <limits.h>
5051#else
5052# include <assert.h>
5053#endif
John Criswell47fdd832003-07-14 16:52:07 +00005054 Syntax error
5055_ACEOF
5056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5058 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005059 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_cxx_preproc_warn_flag
5066 else
5067 ac_cpp_err=
5068 fi
5069else
5070 ac_cpp_err=yes
5071fi
5072if test -z "$ac_cpp_err"; then
5073 :
5074else
5075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005076sed 's/^/| /' conftest.$ac_ext >&5
5077
John Criswell47fdd832003-07-14 16:52:07 +00005078 # Broken: fails on valid input.
5079continue
5080fi
5081rm -f conftest.err conftest.$ac_ext
5082
5083 # OK, works on sane cases. Now check whether non-existent headers
5084 # can be detected and how.
5085 cat >conftest.$ac_ext <<_ACEOF
5086#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005087/* confdefs.h. */
5088_ACEOF
5089cat confdefs.h >>conftest.$ac_ext
5090cat >>conftest.$ac_ext <<_ACEOF
5091/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005092#include <ac_nonexistent.h>
5093_ACEOF
5094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005097 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_cxx_preproc_warn_flag
5104 else
5105 ac_cpp_err=
5106 fi
5107else
5108 ac_cpp_err=yes
5109fi
5110if test -z "$ac_cpp_err"; then
5111 # Broken: success on invalid input.
5112continue
5113else
5114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005115sed 's/^/| /' conftest.$ac_ext >&5
5116
John Criswell47fdd832003-07-14 16:52:07 +00005117 # Passes both tests.
5118ac_preproc_ok=:
5119break
5120fi
5121rm -f conftest.err conftest.$ac_ext
5122
5123done
5124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125rm -f conftest.err conftest.$ac_ext
5126if $ac_preproc_ok; then
5127 :
5128else
John Criswell0c38eaf2003-09-10 15:17:25 +00005129 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5130See \`config.log' for more details." >&5
5131echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005133 { (exit 1); exit 1; }; }
5134fi
5135
5136ac_ext=cc
5137ac_cpp='$CXXCPP $CPPFLAGS'
5138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5141
5142
5143ac_ext=f
5144ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5145ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5147if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005148 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 +00005149 do
5150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5152echo "$as_me:$LINENO: checking for $ac_word" >&5
5153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154if test "${ac_cv_prog_F77+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157 if test -n "$F77"; then
5158 ac_cv_prog_F77="$F77" # Let the user override the test.
5159else
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
5172done
5173
5174fi
5175fi
5176F77=$ac_cv_prog_F77
5177if test -n "$F77"; then
5178 echo "$as_me:$LINENO: result: $F77" >&5
5179echo "${ECHO_T}$F77" >&6
5180else
5181 echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183fi
5184
5185 test -n "$F77" && break
5186 done
5187fi
5188if test -z "$F77"; then
5189 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005190 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 +00005191do
5192 # Extract the first word of "$ac_prog", so it can be a program name with args.
5193set dummy $ac_prog; ac_word=$2
5194echo "$as_me:$LINENO: checking for $ac_word" >&5
5195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5196if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 if test -n "$ac_ct_F77"; then
5200 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_F77="$ac_prog"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213done
5214done
5215
5216fi
5217fi
5218ac_ct_F77=$ac_cv_prog_ac_ct_F77
5219if test -n "$ac_ct_F77"; then
5220 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5221echo "${ECHO_T}$ac_ct_F77" >&6
5222else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225fi
5226
5227 test -n "$ac_ct_F77" && break
5228done
5229
5230 F77=$ac_ct_F77
5231fi
5232
5233
5234# Provide some information about the compiler.
John Criswell3b195522003-09-15 14:25:08 +00005235echo "$as_me:5235:" \
John Criswell47fdd832003-07-14 16:52:07 +00005236 "checking for Fortran 77 compiler version" >&5
5237ac_compiler=`set X $ac_compile; echo $2`
5238{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5239 (eval $ac_compiler --version </dev/null >&5) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }
5243{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5244 (eval $ac_compiler -v </dev/null >&5) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }
5248{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5249 (eval $ac_compiler -V </dev/null >&5) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }
5253
5254# If we don't use `.F' as extension, the preprocessor is not run on the
5255# input file.
5256ac_save_ext=$ac_ext
5257ac_ext=F
5258echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5259echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5260if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 cat >conftest.$ac_ext <<_ACEOF
5264 program main
5265#ifndef __GNUC__
5266 choke me
5267#endif
5268
5269 end
5270_ACEOF
5271rm -f conftest.$ac_objext
5272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_compiler_gnu=yes
5284else
5285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005286sed 's/^/| /' conftest.$ac_ext >&5
5287
John Criswell47fdd832003-07-14 16:52:07 +00005288ac_compiler_gnu=no
5289fi
5290rm -f conftest.$ac_objext conftest.$ac_ext
5291ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5292
5293fi
5294echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5295echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5296ac_ext=$ac_save_ext
5297G77=`test $ac_compiler_gnu = yes && echo yes`
5298ac_test_FFLAGS=${FFLAGS+set}
5299ac_save_FFLAGS=$FFLAGS
5300FFLAGS=
5301echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5302echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5303if test "${ac_cv_prog_f77_g+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306 FFLAGS=-g
5307cat >conftest.$ac_ext <<_ACEOF
5308 program main
5309
5310 end
5311_ACEOF
5312rm -f conftest.$ac_objext
5313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_cv_prog_f77_g=yes
5325else
5326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005327sed 's/^/| /' conftest.$ac_ext >&5
5328
John Criswell47fdd832003-07-14 16:52:07 +00005329ac_cv_prog_f77_g=no
5330fi
5331rm -f conftest.$ac_objext conftest.$ac_ext
5332
5333fi
5334echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5335echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5336if test "$ac_test_FFLAGS" = set; then
5337 FFLAGS=$ac_save_FFLAGS
5338elif test $ac_cv_prog_f77_g = yes; then
5339 if test "$G77" = yes; then
5340 FFLAGS="-g -O2"
5341 else
5342 FFLAGS="-g"
5343 fi
5344else
5345 if test "$G77" = yes; then
5346 FFLAGS="-O2"
5347 else
5348 FFLAGS=
5349 fi
5350fi
5351ac_ext=c
5352ac_cpp='$CPP $CPPFLAGS'
5353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5355ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356
5357
5358
5359# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5360
5361# find the maximum length of command line arguments
5362echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5363echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5364if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 i=0
5368 testring="ABCD"
5369
5370 case $build_os in
5371 msdosdjgpp*)
5372 # On DJGPP, this test can blow up pretty badly due to problems in libc
5373 # (any single argument exceeding 2000 bytes causes a buffer overrun
5374 # during glob expansion). Even if it were fixed, the result of this
5375 # check would be larger than it should be.
5376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5377 ;;
5378
5379 gnu*)
5380 # Under GNU Hurd, this test is not required because there is
5381 # no limit to the length of command line arguments.
5382 # Libtool will interpret -1 as no limit whatsoever
5383 lt_cv_sys_max_cmd_len=-1;
5384 ;;
5385
5386 cygwin* | mingw*)
5387 # On Win9x/ME, this test blows up -- it succeeds, but takes
5388 # about 5 minutes as the teststring grows exponentially.
5389 # Worse, since 9x/ME are not pre-emptively multitasking,
5390 # you end up with a "frozen" computer, even though with patience
5391 # the test eventually succeeds (with a max line length of 256k).
5392 # Instead, let's just punt: use the minimum linelength reported by
5393 # all of the supported platforms: 8192 (on NT/2K/XP).
5394 lt_cv_sys_max_cmd_len=8192;
5395 ;;
5396
5397 *)
5398 # If test is not a shell built-in, we'll probably end up computing a
5399 # maximum length that is only half of the actual maximum length, but
5400 # we can't tell.
5401 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5402 = "XX$testring") >/dev/null 2>&1 &&
5403 new_result=`expr "X$testring" : ".*" 2>&1` &&
5404 lt_cv_sys_max_cmd_len=$new_result &&
5405 test $i != 17 # 1/2 MB should be enough
5406 do
5407 i=`expr $i + 1`
5408 testring=$testring$testring
5409 done
5410 testring=
5411 # Add a significant safety factor because C++ compilers can tack on massive
5412 # amounts of additional arguments before passing them to the linker.
5413 # It appears as though 1/2 is a usable value.
5414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5415 ;;
5416 esac
5417
5418fi
5419
5420if test -n $lt_cv_sys_max_cmd_len ; then
5421 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5422echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5423else
5424 echo "$as_me:$LINENO: result: none" >&5
5425echo "${ECHO_T}none" >&6
5426fi
5427
5428
5429
5430
5431# Check for command to grab the raw symbol name followed by C symbol from nm.
5432echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5433echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5434if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437
5438# These are sane defaults that work on at least a few old systems.
5439# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5440
5441# Character class describing NM global symbol codes.
5442symcode='[BCDEGRST]'
5443
5444# Regexp to match symbols that can be accessed directly from C.
5445sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5446
5447# Transform the above into a raw symbol and a C symbol.
5448symxfrm='\1 \2\3 \3'
5449
5450# Transform an extracted symbol line into a proper C declaration
5451lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5452
5453# Transform an extracted symbol line into symbol name and symbol address
5454lt_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'"
5455
5456# Define system-specific variables.
5457case $host_os in
5458aix*)
5459 symcode='[BCDT]'
5460 ;;
5461cygwin* | mingw* | pw32*)
5462 symcode='[ABCDGISTW]'
5463 ;;
5464hpux*) # Its linker distinguishes data from code symbols
5465 if test "$host_cpu" = ia64; then
5466 symcode='[ABCDEGRST]'
5467 fi
5468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5469 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'"
5470 ;;
5471irix* | nonstopux*)
5472 symcode='[BCDEGRST]'
5473 ;;
5474osf*)
5475 symcode='[BCDEGQRST]'
5476 ;;
5477solaris* | sysv5*)
5478 symcode='[BDT]'
5479 ;;
5480sysv4)
5481 symcode='[DFNSTU]'
5482 ;;
5483esac
5484
5485# Handle CRLF in mingw tool chain
5486opt_cr=
5487case $build_os in
5488mingw*)
5489 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5490 ;;
5491esac
5492
5493# If we're using GNU nm, then use its standard symbol codes.
5494case `$NM -V 2>&1` in
5495*GNU* | *'with BFD'*)
5496 symcode='[ABCDGISTW]' ;;
5497esac
5498
5499# Try without a prefix undercore, then with it.
5500for ac_symprfx in "" "_"; do
5501
5502 # Write the raw and C identifiers.
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5504
5505 # Check to see that the pipe works correctly.
5506 pipe_works=no
5507
5508 rm -f conftest*
5509 cat > conftest.$ac_ext <<EOF
5510#ifdef __cplusplus
5511extern "C" {
5512#endif
5513char nm_test_var;
5514void nm_test_func(){}
5515#ifdef __cplusplus
5516}
5517#endif
5518int main(){nm_test_var='a';nm_test_func();return(0);}
5519EOF
5520
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>&5
5523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; then
5526 # Now try to grab the symbols.
5527 nlist=conftest.nm
5528 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && test -s "$nlist"; then
5533 # Try sorting and uniquifying the output.
5534 if sort "$nlist" | uniq > "$nlist"T; then
5535 mv -f "$nlist"T "$nlist"
5536 else
5537 rm -f "$nlist"T
5538 fi
5539
5540 # Make sure that we snagged all the symbols we need.
5541 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5542 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5543 cat <<EOF > conftest.$ac_ext
5544#ifdef __cplusplus
5545extern "C" {
5546#endif
5547
5548EOF
5549 # Now generate the symbol file.
5550 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5551
5552 cat <<EOF >> conftest.$ac_ext
5553#if defined (__STDC__) && __STDC__
5554# define lt_ptr_t void *
5555#else
5556# define lt_ptr_t char *
5557# define const
5558#endif
5559
5560/* The mapping between symbol names and symbols. */
5561const struct {
5562 const char *name;
5563 lt_ptr_t address;
5564}
5565lt_preloaded_symbols[] =
5566{
5567EOF
5568 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5569 cat <<\EOF >> conftest.$ac_ext
5570 {0, (lt_ptr_t) 0}
5571};
5572
5573#ifdef __cplusplus
5574}
5575#endif
5576EOF
5577 # Now try linking the two files.
5578 mv conftest.$ac_objext conftstm.$ac_objext
5579 lt_save_LIBS="$LIBS"
5580 lt_save_CFLAGS="$CFLAGS"
5581 LIBS="conftstm.$ac_objext"
5582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5588 pipe_works=yes
5589 fi
5590 LIBS="$lt_save_LIBS"
5591 CFLAGS="$lt_save_CFLAGS"
5592 else
5593 echo "cannot find nm_test_func in $nlist" >&5
5594 fi
5595 else
5596 echo "cannot find nm_test_var in $nlist" >&5
5597 fi
5598 else
5599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5600 fi
5601 else
5602 echo "$progname: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5604 fi
5605 rm -f conftest* conftst*
5606
5607 # Do not use the global_symbol_pipe unless it works.
5608 if test "$pipe_works" = yes; then
5609 break
5610 else
5611 lt_cv_sys_global_symbol_pipe=
5612 fi
5613done
5614
5615fi
5616
5617if test -z "$lt_cv_sys_global_symbol_pipe"; then
5618 lt_cv_sys_global_symbol_to_cdecl=
5619fi
5620if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5621 echo "$as_me:$LINENO: result: failed" >&5
5622echo "${ECHO_T}failed" >&6
5623else
5624 echo "$as_me:$LINENO: result: ok" >&5
5625echo "${ECHO_T}ok" >&6
5626fi
5627
5628echo "$as_me:$LINENO: checking for objdir" >&5
5629echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5630if test "${lt_cv_objdir+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633 rm -f .libs 2>/dev/null
5634mkdir .libs 2>/dev/null
5635if test -d .libs; then
5636 lt_cv_objdir=.libs
5637else
5638 # MS-DOS does not allow filenames that begin with a dot.
5639 lt_cv_objdir=_libs
5640fi
5641rmdir .libs 2>/dev/null
5642fi
5643echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5644echo "${ECHO_T}$lt_cv_objdir" >&6
5645objdir=$lt_cv_objdir
5646
5647
5648
5649
5650
5651case $host_os in
5652aix3*)
5653 # AIX sometimes has problems with the GCC collect2 program. For some
5654 # reason, if we set the COLLECT_NAMES environment variable, the problems
5655 # vanish in a puff of smoke.
5656 if test "X${COLLECT_NAMES+set}" != Xset; then
5657 COLLECT_NAMES=
5658 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005659 fi
5660 ;;
5661esac
5662
John Criswell47fdd832003-07-14 16:52:07 +00005663# Sed substitution that helps us do robust quoting. It backslashifies
5664# metacharacters that are still active within double-quoted strings.
5665Xsed='sed -e s/^X//'
5666sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5667
5668# Same as above, but do not quote variable references.
5669double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5670
5671# Sed substitution to delay expansion of an escaped shell variable in a
5672# double_quote_subst'ed string.
5673delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5674
5675# Sed substitution to avoid accidental globbing in evaled expressions
5676no_glob_subst='s/\*/\\\*/g'
5677
5678# Constants:
5679rm="rm -f"
5680
5681# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005682default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005683can_build_shared=yes
5684
5685# All known linkers require a `.a' archive for static linking (except M$VC,
5686# which needs '.lib').
5687libext=a
5688ltmain="$ac_aux_dir/ltmain.sh"
5689ofile="$default_ofile"
5690with_gnu_ld="$lt_cv_prog_gnu_ld"
5691
5692if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5694set dummy ${ac_tool_prefix}ar; ac_word=$2
5695echo "$as_me:$LINENO: checking for $ac_word" >&5
5696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697if test "${ac_cv_prog_AR+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 if test -n "$AR"; then
5701 ac_cv_prog_AR="$AR" # Let the user override the test.
5702else
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_AR="${ac_tool_prefix}ar"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714done
5715done
5716
5717fi
5718fi
5719AR=$ac_cv_prog_AR
5720if test -n "$AR"; then
5721 echo "$as_me:$LINENO: result: $AR" >&5
5722echo "${ECHO_T}$AR" >&6
5723else
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726fi
5727
5728fi
5729if test -z "$ac_cv_prog_AR"; then
5730 ac_ct_AR=$AR
5731 # Extract the first word of "ar", so it can be a program name with args.
5732set dummy ar; ac_word=$2
5733echo "$as_me:$LINENO: checking for $ac_word" >&5
5734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5737else
5738 if test -n "$ac_ct_AR"; then
5739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_ac_ct_AR="ar"
5749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5751 fi
5752done
5753done
5754
5755 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5756fi
5757fi
5758ac_ct_AR=$ac_cv_prog_ac_ct_AR
5759if test -n "$ac_ct_AR"; then
5760 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5761echo "${ECHO_T}$ac_ct_AR" >&6
5762else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765fi
5766
5767 AR=$ac_ct_AR
5768else
5769 AR="$ac_cv_prog_AR"
5770fi
5771
John Criswell7a73b802003-06-30 21:59:07 +00005772if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5774set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5775echo "$as_me:$LINENO: checking for $ac_word" >&5
5776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777if test "${ac_cv_prog_RANLIB+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 if test -n "$RANLIB"; then
5781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794done
5795done
5796
5797fi
5798fi
5799RANLIB=$ac_cv_prog_RANLIB
5800if test -n "$RANLIB"; then
5801 echo "$as_me:$LINENO: result: $RANLIB" >&5
5802echo "${ECHO_T}$RANLIB" >&6
5803else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806fi
5807
5808fi
5809if test -z "$ac_cv_prog_RANLIB"; then
5810 ac_ct_RANLIB=$RANLIB
5811 # Extract the first word of "ranlib", so it can be a program name with args.
5812set dummy ranlib; ac_word=$2
5813echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 if test -n "$ac_ct_RANLIB"; then
5819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_ac_ct_RANLIB="ranlib"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833done
5834
5835 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5836fi
5837fi
5838ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5839if test -n "$ac_ct_RANLIB"; then
5840 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5841echo "${ECHO_T}$ac_ct_RANLIB" >&6
5842else
5843 echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845fi
5846
5847 RANLIB=$ac_ct_RANLIB
5848else
5849 RANLIB="$ac_cv_prog_RANLIB"
5850fi
5851
5852if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5854set dummy ${ac_tool_prefix}strip; ac_word=$2
5855echo "$as_me:$LINENO: checking for $ac_word" >&5
5856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5857if test "${ac_cv_prog_STRIP+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860 if test -n "$STRIP"; then
5861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875done
5876
5877fi
5878fi
5879STRIP=$ac_cv_prog_STRIP
5880if test -n "$STRIP"; then
5881 echo "$as_me:$LINENO: result: $STRIP" >&5
5882echo "${ECHO_T}$STRIP" >&6
5883else
5884 echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6
5886fi
5887
5888fi
5889if test -z "$ac_cv_prog_STRIP"; then
5890 ac_ct_STRIP=$STRIP
5891 # Extract the first word of "strip", so it can be a program name with args.
5892set dummy strip; ac_word=$2
5893echo "$as_me:$LINENO: checking for $ac_word" >&5
5894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898 if test -n "$ac_ct_STRIP"; then
5899 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_ac_ct_STRIP="strip"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913done
5914
5915 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5916fi
5917fi
5918ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5919if test -n "$ac_ct_STRIP"; then
5920 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5921echo "${ECHO_T}$ac_ct_STRIP" >&6
5922else
5923 echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925fi
5926
5927 STRIP=$ac_ct_STRIP
5928else
5929 STRIP="$ac_cv_prog_STRIP"
5930fi
5931
5932
John Criswell7a73b802003-06-30 21:59:07 +00005933old_CC="$CC"
5934old_CFLAGS="$CFLAGS"
5935
5936# Set sane defaults for various variables
5937test -z "$AR" && AR=ar
5938test -z "$AR_FLAGS" && AR_FLAGS=cru
5939test -z "$AS" && AS=as
5940test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005941test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005942test -z "$DLLTOOL" && DLLTOOL=dlltool
5943test -z "$LD" && LD=ld
5944test -z "$LN_S" && LN_S="ln -s"
5945test -z "$MAGIC_CMD" && MAGIC_CMD=file
5946test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005947test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005948test -z "$OBJDUMP" && OBJDUMP=objdump
5949test -z "$RANLIB" && RANLIB=:
5950test -z "$STRIP" && STRIP=:
5951test -z "$ac_objext" && ac_objext=o
5952
John Criswell7a73b802003-06-30 21:59:07 +00005953# Determine commands to create old-style static archives.
5954old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5955old_postinstall_cmds='chmod 644 $oldlib'
5956old_postuninstall_cmds=
5957
5958if test -n "$RANLIB"; then
5959 case $host_os in
5960 openbsd*)
5961 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5962 ;;
5963 *)
5964 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5965 ;;
5966 esac
5967 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5968fi
5969
John Criswell47fdd832003-07-14 16:52:07 +00005970# Only perform the check for file, if the check method requires it
5971case $deplibs_check_method in
5972file_magic*)
5973 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5974 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5975echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5976if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005978else
John Criswell47fdd832003-07-14 16:52:07 +00005979 case $MAGIC_CMD in
5980[\\/*] | ?:[\\/]*)
5981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5982 ;;
5983*)
5984 lt_save_MAGIC_CMD="$MAGIC_CMD"
5985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5987 for ac_dir in $ac_dummy; do
5988 IFS="$lt_save_ifs"
5989 test -z "$ac_dir" && ac_dir=.
5990 if test -f $ac_dir/${ac_tool_prefix}file; then
5991 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5992 if test -n "$file_magic_test_file"; then
5993 case $deplibs_check_method in
5994 "file_magic "*)
5995 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5998 $EGREP "$file_magic_regex" > /dev/null; then
5999 :
6000 else
6001 cat <<EOF 1>&2
6002
6003*** Warning: the command libtool uses to detect shared libraries,
6004*** $file_magic_cmd, produces output that libtool cannot recognize.
6005*** The result is that libtool may fail to recognize shared libraries
6006*** as such. This will affect the creation of libtool libraries that
6007*** depend on shared libraries, but programs linked with such libtool
6008*** libraries will work regardless of this problem. Nevertheless, you
6009*** may want to report the problem to your system manager and/or to
6010*** bug-libtool@gnu.org
6011
6012EOF
6013 fi ;;
6014 esac
6015 fi
6016 break
6017 fi
6018 done
6019 IFS="$lt_save_ifs"
6020 MAGIC_CMD="$lt_save_MAGIC_CMD"
6021 ;;
6022esac
John Criswell7a73b802003-06-30 21:59:07 +00006023fi
John Criswell7a73b802003-06-30 21:59:07 +00006024
John Criswell47fdd832003-07-14 16:52:07 +00006025MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6026if test -n "$MAGIC_CMD"; then
6027 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6028echo "${ECHO_T}$MAGIC_CMD" >&6
6029else
6030 echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
6032fi
John Criswell7a73b802003-06-30 21:59:07 +00006033
John Criswell47fdd832003-07-14 16:52:07 +00006034if test -z "$lt_cv_path_MAGIC_CMD"; then
6035 if test -n "$ac_tool_prefix"; then
6036 echo "$as_me:$LINENO: checking for file" >&5
6037echo $ECHO_N "checking for file... $ECHO_C" >&6
6038if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 case $MAGIC_CMD in
6042[\\/*] | ?:[\\/]*)
6043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6044 ;;
6045*)
6046 lt_save_MAGIC_CMD="$MAGIC_CMD"
6047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6049 for ac_dir in $ac_dummy; do
6050 IFS="$lt_save_ifs"
6051 test -z "$ac_dir" && ac_dir=.
6052 if test -f $ac_dir/file; then
6053 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6054 if test -n "$file_magic_test_file"; then
6055 case $deplibs_check_method in
6056 "file_magic "*)
6057 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6060 $EGREP "$file_magic_regex" > /dev/null; then
6061 :
6062 else
6063 cat <<EOF 1>&2
6064
6065*** Warning: the command libtool uses to detect shared libraries,
6066*** $file_magic_cmd, produces output that libtool cannot recognize.
6067*** The result is that libtool may fail to recognize shared libraries
6068*** as such. This will affect the creation of libtool libraries that
6069*** depend on shared libraries, but programs linked with such libtool
6070*** libraries will work regardless of this problem. Nevertheless, you
6071*** may want to report the problem to your system manager and/or to
6072*** bug-libtool@gnu.org
6073
6074EOF
6075 fi ;;
6076 esac
6077 fi
6078 break
6079 fi
6080 done
6081 IFS="$lt_save_ifs"
6082 MAGIC_CMD="$lt_save_MAGIC_CMD"
6083 ;;
6084esac
6085fi
6086
6087MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6088if test -n "$MAGIC_CMD"; then
6089 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6090echo "${ECHO_T}$MAGIC_CMD" >&6
6091else
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
6094fi
6095
6096 else
6097 MAGIC_CMD=:
6098 fi
6099fi
6100
6101 fi
6102 ;;
6103esac
6104
6105enable_dlopen=no
6106enable_win32_dll=no
6107
6108# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6109if test "${enable_libtool_lock+set}" = set; then
6110 enableval="$enable_libtool_lock"
6111
6112fi;
6113test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6114
John Criswell7a73b802003-06-30 21:59:07 +00006115
6116# Check whether --with-pic or --without-pic was given.
6117if test "${with_pic+set}" = set; then
6118 withval="$with_pic"
6119 pic_mode="$withval"
6120else
6121 pic_mode=default
6122fi;
6123test -z "$pic_mode" && pic_mode=default
6124
John Criswell47fdd832003-07-14 16:52:07 +00006125# Use C for the default configuration in the libtool script
6126tagname=
6127lt_save_CC="$CC"
6128ac_ext=c
6129ac_cpp='$CPP $CPPFLAGS'
6130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6132ac_compiler_gnu=$ac_cv_c_compiler_gnu
6133
6134
6135# Source file extension for C test sources.
6136ac_ext=c
6137
6138# Object file extension for compiled C test sources.
6139objext=o
6140objext=$objext
6141
6142# Code to be used in simple compile tests
6143lt_simple_compile_test_code="int some_variable = 0;\n"
6144
6145# Code to be used in simple link tests
6146lt_simple_link_test_code='int main(){return(0);}\n'
6147
6148
6149# If no C compiler was specified, use CC.
6150LTCC=${LTCC-"$CC"}
6151
6152# Allow CC to be a program name with arguments.
6153compiler=$CC
6154
6155
6156#
6157# Check for any special shared library compilation flags.
6158#
6159lt_prog_cc_shlib=
6160if test "$GCC" = no; then
6161 case $host_os in
6162 sco3.2v5*)
6163 lt_prog_cc_shlib='-belf'
6164 ;;
6165 esac
6166fi
6167if test -n "$lt_prog_cc_shlib"; then
6168 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6169echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6170 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6171 else
6172 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6173echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6174 lt_cv_prog_cc_can_build_shared=no
6175 fi
6176fi
6177
6178
6179#
6180# Check to make sure the static flag actually works.
6181#
6182echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6183echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6184if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
John Criswell47fdd832003-07-14 16:52:07 +00006187 lt_prog_compiler_static_works=no
6188 save_LDFLAGS="$LDFLAGS"
6189 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6190 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6192 # The compiler can only warn and ignore the option if not recognized
6193 # So say no if there are warnings
6194 if test -s conftest.err; then
6195 # Append any errors to the config.log.
6196 cat conftest.err 1>&5
6197 else
6198 lt_prog_compiler_static_works=yes
6199 fi
6200 fi
6201 $rm conftest*
6202 LDFLAGS="$save_LDFLAGS"
6203
6204fi
6205echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6206echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6207
6208if test x"$lt_prog_compiler_static_works" = xyes; then
6209 :
6210else
6211 lt_prog_compiler_static=
6212fi
6213
6214
6215
6216## CAVEAT EMPTOR:
6217## There is no encapsulation within the following macros, do not change
6218## the running order or otherwise move them around unless you know exactly
6219## what you are doing...
6220
6221lt_prog_compiler_no_builtin_flag=
6222
6223if test "$GCC" = yes; then
6224 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6225
6226 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6227echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6228if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231 lt_cv_prog_compiler_rtti_exceptions=no
6232 ac_outfile=conftest.$ac_objext
6233 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6234 lt_compiler_flag="-fno-rtti -fno-exceptions"
6235 # Insert the option either (1) after the last *FLAGS variable, or
6236 # (2) before a word containing "conftest.", or (3) at the end.
6237 # Note that $ac_compile itself does not contain backslashes and begins
6238 # with a dollar sign (not a hyphen), so the echo should work correctly.
6239 # The option is referenced via a variable to avoid confusing sed.
6240 lt_compile=`echo "$ac_compile" | $SED \
6241 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6243 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +00006244 (eval echo "\"\$as_me:6244: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006245 (eval "$lt_compile" 2>conftest.err)
6246 ac_status=$?
6247 cat conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +00006248 echo "$as_me:6248: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006249 if (exit $ac_status) && test -s "$ac_outfile"; then
6250 # The compiler can only warn and ignore the option if not recognized
6251 # So say no if there are warnings
6252 if test ! -s conftest.err; then
6253 lt_cv_prog_compiler_rtti_exceptions=yes
6254 fi
6255 fi
6256 $rm conftest*
6257
6258fi
6259echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6260echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6261
6262if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6263 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6264else
6265 :
6266fi
6267
6268fi
6269
6270lt_prog_compiler_wl=
6271lt_prog_compiler_pic=
6272lt_prog_compiler_static=
6273
6274echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6275echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006276
6277 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006278 lt_prog_compiler_wl='-Wl,'
6279 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006280
6281 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006282 aix*)
6283 # All AIX code is PIC.
6284 if test "$host_cpu" = ia64; then
6285 # AIX 5 now supports IA64 processor
6286 lt_prog_compiler_static='-Bstatic'
6287 fi
John Criswell7a73b802003-06-30 21:59:07 +00006288 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006289
John Criswell7a73b802003-06-30 21:59:07 +00006290 amigaos*)
6291 # FIXME: we need at least 68020 code to build shared libraries, but
6292 # adding the `-m68020' flag to GCC prevents building anything better,
6293 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006295 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006296
6297 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006298 # PIC is the default for these OSes.
6299 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006300
6301 mingw* | pw32* | os2*)
6302 # This hack is so that the source file can tell whether it is being
6303 # built for inclusion in a dll (and should export symbols for example).
6304 lt_prog_compiler_pic='-DDLL_EXPORT'
6305 ;;
6306
John Criswell7a73b802003-06-30 21:59:07 +00006307 darwin* | rhapsody*)
6308 # PIC is the default on this platform
6309 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006310 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006311 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006312
6313 msdosdjgpp*)
6314 # Just because we use GCC doesn't mean we suddenly get shared libraries
6315 # on systems that don't support them.
6316 lt_prog_compiler_can_build_shared=no
6317 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006318 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006319
John Criswell7a73b802003-06-30 21:59:07 +00006320 sysv4*MP*)
6321 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006322 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006323 fi
6324 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006325
6326 hpux*)
6327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6328 # not for PA HP-UX.
6329 case "$host_cpu" in
6330 hppa*64*|ia64*)
6331 # +Z the default
6332 ;;
6333 *)
6334 lt_prog_compiler_pic='-fPIC'
6335 ;;
6336 esac
6337 ;;
6338
John Criswell7a73b802003-06-30 21:59:07 +00006339 *)
John Criswell47fdd832003-07-14 16:52:07 +00006340 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006341 ;;
6342 esac
6343 else
John Criswell47fdd832003-07-14 16:52:07 +00006344 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006345 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006346 aix*)
6347 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006348 if test "$host_cpu" = ia64; then
6349 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006350 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006351 else
John Criswell47fdd832003-07-14 16:52:07 +00006352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006353 fi
6354 ;;
6355
John Criswell47fdd832003-07-14 16:52:07 +00006356 mingw* | pw32* | os2*)
6357 # This hack is so that the source file can tell whether it is being
6358 # built for inclusion in a dll (and should export symbols for example).
6359 lt_prog_compiler_pic='-DDLL_EXPORT'
6360 ;;
6361
John Criswell7a73b802003-06-30 21:59:07 +00006362 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006363 lt_prog_compiler_wl='-Wl,'
6364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6365 # not for PA HP-UX.
6366 case "$host_cpu" in
6367 hppa*64*|ia64*)
6368 # +Z the default
6369 ;;
6370 *)
6371 lt_prog_compiler_pic='+Z'
6372 ;;
6373 esac
6374 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6375 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006376 ;;
6377
John Criswell47fdd832003-07-14 16:52:07 +00006378 irix5* | irix6* | nonstopux*)
6379 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006380 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006382 ;;
6383
6384 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006385 lt_prog_compiler_pic='-KPIC'
6386 lt_prog_compiler_static='-Bstatic'
6387 ;;
6388
6389 linux*)
6390 case $CC in
6391 icc|ecc)
6392 lt_prog_compiler_wl='-Wl,'
6393 lt_prog_compiler_pic='-KPIC'
6394 lt_prog_compiler_static='-static'
6395 ;;
6396 ccc)
6397 lt_prog_compiler_wl='-Wl,'
6398 # All Alpha code is PIC.
6399 lt_prog_compiler_static='-non_shared'
6400 ;;
6401 esac
John Criswell7a73b802003-06-30 21:59:07 +00006402 ;;
6403
6404 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006405 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006406 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006407 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006408 ;;
6409
6410 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_prog_compiler_pic='-Kpic'
6412 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006413 ;;
6414
6415 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006416 lt_prog_compiler_wl='-Wl,'
6417 lt_prog_compiler_pic='-KPIC'
6418 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006419 ;;
6420
6421 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006422 lt_prog_compiler_wl='-Qoption ld '
6423 lt_prog_compiler_pic='-PIC'
6424 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006425 ;;
6426
6427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006428 lt_prog_compiler_wl='-Wl,'
6429 lt_prog_compiler_pic='-KPIC'
6430 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006431 ;;
6432
6433 sysv4*MP*)
6434 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006435 lt_prog_compiler_pic='-Kconform_pic'
6436 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006437 fi
6438 ;;
6439
John Criswell47fdd832003-07-14 16:52:07 +00006440 uts4*)
6441 lt_prog_compiler_pic='-pic'
6442 lt_prog_compiler_static='-Bstatic'
6443 ;;
6444
John Criswell7a73b802003-06-30 21:59:07 +00006445 *)
John Criswell47fdd832003-07-14 16:52:07 +00006446 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006447 ;;
6448 esac
6449 fi
6450
John Criswell47fdd832003-07-14 16:52:07 +00006451echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6452echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006453
John Criswell47fdd832003-07-14 16:52:07 +00006454#
6455# Check to make sure the PIC flag actually works.
6456#
6457if test -n "$lt_prog_compiler_pic"; then
6458 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6459echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6460if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
John Criswell47fdd832003-07-14 16:52:07 +00006463 lt_prog_compiler_pic_works=no
6464 ac_outfile=conftest.$ac_objext
6465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6467 # Insert the option either (1) after the last *FLAGS variable, or
6468 # (2) before a word containing "conftest.", or (3) at the end.
6469 # Note that $ac_compile itself does not contain backslashes and begins
6470 # with a dollar sign (not a hyphen), so the echo should work correctly.
6471 # The option is referenced via a variable to avoid confusing sed.
6472 lt_compile=`echo "$ac_compile" | $SED \
6473 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6475 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +00006476 (eval echo "\"\$as_me:6476: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006477 (eval "$lt_compile" 2>conftest.err)
6478 ac_status=$?
6479 cat conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +00006480 echo "$as_me:6480: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006481 if (exit $ac_status) && test -s "$ac_outfile"; then
6482 # The compiler can only warn and ignore the option if not recognized
6483 # So say no if there are warnings
6484 if test ! -s conftest.err; then
6485 lt_prog_compiler_pic_works=yes
6486 fi
6487 fi
6488 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006489
John Criswell47fdd832003-07-14 16:52:07 +00006490fi
6491echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6492echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006493
John Criswell47fdd832003-07-14 16:52:07 +00006494if test x"$lt_prog_compiler_pic_works" = xyes; then
6495 case $lt_prog_compiler_pic in
6496 "" | " "*) ;;
6497 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6498 esac
John Criswell7a73b802003-06-30 21:59:07 +00006499else
John Criswell47fdd832003-07-14 16:52:07 +00006500 lt_prog_compiler_pic=
6501 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006502fi
6503
John Criswell7a73b802003-06-30 21:59:07 +00006504fi
John Criswell47fdd832003-07-14 16:52:07 +00006505case "$host_os" in
6506 # For platforms which do not support PIC, -DPIC is meaningless:
6507 *djgpp*)
6508 lt_prog_compiler_pic=
6509 ;;
6510 *)
6511 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6512 ;;
6513esac
John Criswell7a73b802003-06-30 21:59:07 +00006514
John Criswell7a73b802003-06-30 21:59:07 +00006515echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006517if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
John Criswell47fdd832003-07-14 16:52:07 +00006520 lt_cv_prog_compiler_c_o=no
6521 $rm -r conftest 2>/dev/null
6522 mkdir conftest
6523 cd conftest
6524 mkdir out
6525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006526
John Criswell47fdd832003-07-14 16:52:07 +00006527 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6528 # that will create temporary files in the current directory regardless of
6529 # the output directory. Thus, making CWD read-only will cause this test
6530 # to fail, enabling locking or at least warning the user not to do parallel
6531 # builds.
6532 chmod -w .
6533
6534 lt_compiler_flag="-o out/conftest2.$ac_objext"
6535 # Insert the option either (1) after the last *FLAGS variable, or
6536 # (2) before a word containing "conftest.", or (3) at the end.
6537 # Note that $ac_compile itself does not contain backslashes and begins
6538 # with a dollar sign (not a hyphen), so the echo should work correctly.
6539 lt_compile=`echo "$ac_compile" | $SED \
6540 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +00006543 (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006544 (eval "$lt_compile" 2>out/conftest.err)
6545 ac_status=$?
6546 cat out/conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +00006547 echo "$as_me:6547: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006548 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6549 then
6550 # The compiler can only warn and ignore the option if not recognized
6551 # So say no if there are warnings
6552 if test ! -s out/conftest.err; then
6553 lt_cv_prog_compiler_c_o=yes
6554 fi
6555 fi
6556 chmod u+w .
6557 $rm conftest* out/*
6558 rmdir out
6559 cd ..
6560 rmdir conftest
6561 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006562
6563fi
John Criswell47fdd832003-07-14 16:52:07 +00006564echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6565echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006566
John Criswell7a73b802003-06-30 21:59:07 +00006567
John Criswell7a73b802003-06-30 21:59:07 +00006568hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006569if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006570 # do not overwrite the value of need_locks provided by the user
6571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6572echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6573 hard_links=yes
6574 $rm conftest*
6575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6576 touch conftest.a
6577 ln conftest.a conftest.b 2>&5 || hard_links=no
6578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6579 echo "$as_me:$LINENO: result: $hard_links" >&5
6580echo "${ECHO_T}$hard_links" >&6
6581 if test "$hard_links" = no; then
6582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6583echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6584 need_locks=warn
6585 fi
6586else
6587 need_locks=no
6588fi
John Criswell7a73b802003-06-30 21:59:07 +00006589
John Criswell47fdd832003-07-14 16:52:07 +00006590echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6591echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6592
6593 runpath_var=
6594 allow_undefined_flag=
6595 enable_shared_with_static_runtimes=no
6596 archive_cmds=
6597 archive_expsym_cmds=
6598 old_archive_From_new_cmds=
6599 old_archive_from_expsyms_cmds=
6600 export_dynamic_flag_spec=
6601 whole_archive_flag_spec=
6602 thread_safe_flag_spec=
6603 hardcode_libdir_flag_spec=
6604 hardcode_libdir_flag_spec_ld=
6605 hardcode_libdir_separator=
6606 hardcode_direct=no
6607 hardcode_minus_L=no
6608 hardcode_shlibpath_var=unsupported
6609 link_all_deplibs=unknown
6610 hardcode_automatic=no
6611 module_cmds=
6612 module_expsym_cmds=
6613 always_export_symbols=no
6614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6615 # include_expsyms should be a list of space-separated symbols to be *always*
6616 # included in the symbol list
6617 include_expsyms=
6618 # exclude_expsyms can be an extended regexp of symbols to exclude
6619 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6620 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6621 # as well as any symbol that contains `d'.
6622 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6623 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6624 # platforms (ab)use it in PIC code, but their linkers get confused if
6625 # the symbol is explicitly referenced. Since portable code cannot
6626 # rely on this symbol name, it's probably fine to never include it in
6627 # preloaded symbol tables.
6628 extract_expsyms_cmds=
6629
6630 case $host_os in
6631 cygwin* | mingw* | pw32*)
6632 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6633 # When not using gcc, we currently assume that we are using
6634 # Microsoft Visual C++.
6635 if test "$GCC" != yes; then
6636 with_gnu_ld=no
6637 fi
6638 ;;
6639 openbsd*)
6640 with_gnu_ld=no
6641 ;;
6642 esac
6643
6644 ld_shlibs=yes
6645 if test "$with_gnu_ld" = yes; then
6646 # If archive_cmds runs LD, not CC, wlarc should be empty
6647 wlarc='${wl}'
6648
6649 # See if GNU ld supports shared libraries.
6650 case $host_os in
6651 aix3* | aix4* | aix5*)
6652 # On AIX/PPC, the GNU linker is very broken
6653 if test "$host_cpu" != ia64; then
6654 ld_shlibs=no
6655 cat <<EOF 1>&2
6656
6657*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6658*** to be unable to reliably create shared libraries on AIX.
6659*** Therefore, libtool is disabling shared libraries support. If you
6660*** really care for shared libraries, you may want to modify your PATH
6661*** so that a non-GNU linker is found, and then restart.
6662
6663EOF
6664 fi
6665 ;;
6666
6667 amigaos*)
6668 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)'
6669 hardcode_libdir_flag_spec='-L$libdir'
6670 hardcode_minus_L=yes
6671
6672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6673 # that the semantics of dynamic libraries on AmigaOS, at least up
6674 # to version 4, is to share data among multiple programs linked
6675 # with the same dynamic library. Since this doesn't match the
6676 # behavior of shared libraries on other platforms, we can't use
6677 # them.
6678 ld_shlibs=no
6679 ;;
6680
6681 beos*)
6682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6683 allow_undefined_flag=unsupported
6684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6685 # support --undefined. This deserves some investigation. FIXME
6686 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6687 else
6688 ld_shlibs=no
6689 fi
6690 ;;
6691
6692 cygwin* | mingw* | pw32*)
6693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6694 # as there is no search path for DLLs.
6695 hardcode_libdir_flag_spec='-L$libdir'
6696 allow_undefined_flag=unsupported
6697 always_export_symbols=no
6698 enable_shared_with_static_runtimes=yes
6699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6700
6701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6703 # If the export-symbols file already is a .def file (1st line
6704 # is EXPORTS), use it as is; otherwise, prepend...
6705 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6706 cp $export_symbols $output_objdir/$soname.def;
6707 else
6708 echo EXPORTS > $output_objdir/$soname.def;
6709 cat $export_symbols >> $output_objdir/$soname.def;
6710 fi~
6711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6712 else
6713 ld_shlibs=no
6714 fi
6715 ;;
6716
6717 netbsd*)
6718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6719 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6720 wlarc=
6721 else
6722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6724 fi
6725 ;;
6726
6727 solaris* | sysv5*)
6728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6729 ld_shlibs=no
6730 cat <<EOF 1>&2
6731
6732*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6733*** create shared libraries on Solaris systems. Therefore, libtool
6734*** is disabling shared libraries support. We urge you to upgrade GNU
6735*** binutils to release 2.9.1 or newer. Another option is to modify
6736*** your PATH or compiler configuration so that the native linker is
6737*** used, and then restart.
6738
6739EOF
6740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6743 else
6744 ld_shlibs=no
6745 fi
6746 ;;
6747
6748 sunos4*)
6749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6750 wlarc=
6751 hardcode_direct=yes
6752 hardcode_shlibpath_var=no
6753 ;;
6754
6755 *)
6756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 else
6760 ld_shlibs=no
6761 fi
6762 ;;
6763 esac
6764
6765 if test "$ld_shlibs" = yes; then
6766 runpath_var=LD_RUN_PATH
6767 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6768 export_dynamic_flag_spec='${wl}--export-dynamic'
6769 # ancient GNU ld didn't support --whole-archive et. al.
6770 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6771 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6772 else
6773 whole_archive_flag_spec=
6774 fi
6775 fi
6776 else
6777 # PORTME fill in a description of your system's linker (not GNU ld)
6778 case $host_os in
6779 aix3*)
6780 allow_undefined_flag=unsupported
6781 always_export_symbols=yes
6782 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'
6783 # Note: this linker hardcodes the directories in LIBPATH if there
6784 # are no directories specified by -L.
6785 hardcode_minus_L=yes
6786 if test "$GCC" = yes && test -z "$link_static_flag"; then
6787 # Neither direct hardcoding nor static linking is supported with a
6788 # broken collect2.
6789 hardcode_direct=unsupported
6790 fi
6791 ;;
6792
6793 aix4* | aix5*)
6794 if test "$host_cpu" = ia64; then
6795 # On IA64, the linker does run time linking by default, so we don't
6796 # have to do anything special.
6797 aix_use_runtimelinking=no
6798 exp_sym_flag='-Bexport'
6799 no_entry_flag=""
6800 else
6801 # If we're using GNU nm, then we don't want the "-C" option.
6802 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6803 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6804 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'
6805 else
6806 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'
6807 fi
6808 aix_use_runtimelinking=no
6809
6810 # Test if we are trying to use run time linking or normal
6811 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6812 # need to do runtime linking.
6813 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6814 for ld_flag in $LDFLAGS; do
6815 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6816 aix_use_runtimelinking=yes
6817 break
6818 fi
6819 done
6820 esac
6821
6822 exp_sym_flag='-bexport'
6823 no_entry_flag='-bnoentry'
6824 fi
6825
6826 # When large executables or shared objects are built, AIX ld can
6827 # have problems creating the table of contents. If linking a library
6828 # or program results in "error TOC overflow" add -mminimal-toc to
6829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6831
6832 archive_cmds=''
6833 hardcode_direct=yes
6834 hardcode_libdir_separator=':'
6835 link_all_deplibs=yes
6836
6837 if test "$GCC" = yes; then
6838 case $host_os in aix4.012|aix4.012.*)
6839 # We only want to do this on AIX 4.2 and lower, the check
6840 # below for broken collect2 doesn't work under 4.3+
6841 collect2name=`${CC} -print-prog-name=collect2`
6842 if test -f "$collect2name" && \
6843 strings "$collect2name" | grep resolve_lib_name >/dev/null
6844 then
6845 # We have reworked collect2
6846 hardcode_direct=yes
6847 else
6848 # We have old collect2
6849 hardcode_direct=unsupported
6850 # It fails to find uninstalled libraries when the uninstalled
6851 # path is not listed in the libpath. Setting hardcode_minus_L
6852 # to unsupported forces relinking
6853 hardcode_minus_L=yes
6854 hardcode_libdir_flag_spec='-L$libdir'
6855 hardcode_libdir_separator=
6856 fi
6857 esac
6858 shared_flag='-shared'
6859 else
6860 # not using gcc
6861 if test "$host_cpu" = ia64; then
6862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6863 # chokes on -Wl,-G. The following line is correct:
6864 shared_flag='-G'
6865 else
6866 if test "$aix_use_runtimelinking" = yes; then
6867 shared_flag='${wl}-G'
6868 else
6869 shared_flag='${wl}-bM:SRE'
6870 fi
6871 fi
6872 fi
6873
6874 # It seems that -bexpall does not export symbols beginning with
6875 # underscore (_), so it is better to generate a list of symbols to export.
6876 always_export_symbols=yes
6877 if test "$aix_use_runtimelinking" = yes; then
6878 # Warning - without using the other runtime loading flags (-brtl),
6879 # -berok will link without error, but may produce a broken library.
6880 allow_undefined_flag='-berok'
6881 # Determine the default libpath from the value encoded in an empty executable.
6882 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006883#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006884/* confdefs.h. */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006889
John Criswell7a73b802003-06-30 21:59:07 +00006890int
6891main ()
6892{
John Criswell47fdd832003-07-14 16:52:07 +00006893
John Criswell7a73b802003-06-30 21:59:07 +00006894 ;
6895 return 0;
6896}
6897_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006898rm -f conftest.$ac_objext conftest$ac_exeext
6899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006904 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006910
John Criswell47fdd832003-07-14 16:52:07 +00006911aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6912}'`
6913# Check for a 64-bit object if we didn't find anything.
6914if 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; }
6915}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006916else
6917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006918sed 's/^/| /' conftest.$ac_ext >&5
6919
John Criswell7a73b802003-06-30 21:59:07 +00006920fi
John Criswell47fdd832003-07-14 16:52:07 +00006921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006923
John Criswell47fdd832003-07-14 16:52:07 +00006924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6925 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"
6926 else
6927 if test "$host_cpu" = ia64; then
6928 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6929 allow_undefined_flag="-z nodefs"
6930 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"
6931 else
6932 # Determine the default libpath from the value encoded in an empty executable.
6933 cat >conftest.$ac_ext <<_ACEOF
6934#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006940
John Criswell47fdd832003-07-14 16:52:07 +00006941int
6942main ()
6943{
John Criswell7a73b802003-06-30 21:59:07 +00006944
John Criswell47fdd832003-07-14 16:52:07 +00006945 ;
6946 return 0;
6947}
6948_ACEOF
6949rm -f conftest.$ac_objext conftest$ac_exeext
6950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006961
John Criswell47fdd832003-07-14 16:52:07 +00006962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6963}'`
6964# Check for a 64-bit object if we didn't find anything.
6965if 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; }
6966}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006967else
John Criswell47fdd832003-07-14 16:52:07 +00006968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006969sed 's/^/| /' conftest.$ac_ext >&5
6970
John Criswell47fdd832003-07-14 16:52:07 +00006971fi
6972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006974
John Criswell47fdd832003-07-14 16:52:07 +00006975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6976 # Warning - without using the other run time loading flags,
6977 # -berok will link without error, but may produce a broken library.
6978 no_undefined_flag=' ${wl}-bernotok'
6979 allow_undefined_flag=' ${wl}-berok'
6980 # -bexpall does not export symbols beginning with underscore (_)
6981 always_export_symbols=yes
6982 # Exported symbols can be pulled into shared objects from archives
6983 whole_archive_flag_spec=' '
6984 archive_cmds_need_lc=yes
6985 # This is similar to how AIX traditionally builds it's shared libraries.
6986 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 +00006987 fi
6988 fi
John Criswell7a73b802003-06-30 21:59:07 +00006989 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006990
6991 amigaos*)
6992 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)'
6993 hardcode_libdir_flag_spec='-L$libdir'
6994 hardcode_minus_L=yes
6995 # see comment about different semantics on the GNU ld section
6996 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006997 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006998
John Criswell47fdd832003-07-14 16:52:07 +00006999 bsdi4*)
7000 export_dynamic_flag_spec=-rdynamic
7001 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007002
John Criswell47fdd832003-07-14 16:52:07 +00007003 cygwin* | mingw* | pw32*)
7004 # When not using gcc, we currently assume that we are using
7005 # Microsoft Visual C++.
7006 # hardcode_libdir_flag_spec is actually meaningless, as there is
7007 # no search path for DLLs.
7008 hardcode_libdir_flag_spec=' '
7009 allow_undefined_flag=unsupported
7010 # Tell ltmain to make .lib files, not .a files.
7011 libext=lib
7012 # Tell ltmain to make .dll files, not .so files.
7013 shrext=".dll"
7014 # FIXME: Setting linknames here is a bad hack.
7015 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7016 # The linker will automatically build a .lib file if we build a DLL.
7017 old_archive_From_new_cmds='true'
7018 # FIXME: Should let the user specify the lib program.
7019 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7020 fix_srcfile_path='`cygpath -w "$srcfile"`'
7021 enable_shared_with_static_runtimes=yes
7022 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007023
John Criswell47fdd832003-07-14 16:52:07 +00007024 darwin* | rhapsody*)
7025 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7026 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007027 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007028 rhapsody* | darwin1.[012])
7029 allow_undefined_flag='-undefined suppress'
7030 ;;
7031 *) # Darwin 1.3 on
7032 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007033 ;;
7034 esac
John Criswell47fdd832003-07-14 16:52:07 +00007035 # FIXME: Relying on posixy $() will cause problems for
7036 # cross-compilation, but unfortunately the echo tests do not
7037 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7038 # `"' quotes if we put them in here... so don't!
7039 lt_int_apple_cc_single_mod=no
7040 output_verbose_link_cmd='echo'
7041 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7042 lt_int_apple_cc_single_mod=yes
7043 fi
7044 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7045 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7046 else
7047 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'
7048 fi
7049 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7050 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7051 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7052 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}'
7053 else
7054 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}'
7055 fi
7056 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}'
7057 hardcode_direct=no
7058 hardcode_automatic=yes
7059 hardcode_shlibpath_var=unsupported
7060 whole_archive_flag_spec='-all_load $convenience'
7061 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007062 fi
John Criswell47fdd832003-07-14 16:52:07 +00007063 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007064
John Criswell47fdd832003-07-14 16:52:07 +00007065 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007067 hardcode_libdir_flag_spec='-L$libdir'
7068 hardcode_shlibpath_var=no
7069 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007070
John Criswell47fdd832003-07-14 16:52:07 +00007071 freebsd1*)
7072 ld_shlibs=no
7073 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007074
John Criswell47fdd832003-07-14 16:52:07 +00007075 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7076 # support. Future versions do this automatically, but an explicit c++rt0.o
7077 # does not break anything, and helps significantly (at the cost of a little
7078 # extra space).
7079 freebsd2.2*)
7080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7081 hardcode_libdir_flag_spec='-R$libdir'
7082 hardcode_direct=yes
7083 hardcode_shlibpath_var=no
7084 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007085
John Criswell47fdd832003-07-14 16:52:07 +00007086 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7087 freebsd2*)
7088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7089 hardcode_direct=yes
7090 hardcode_minus_L=yes
7091 hardcode_shlibpath_var=no
7092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7095 freebsd*)
7096 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7097 hardcode_libdir_flag_spec='-R$libdir'
7098 hardcode_direct=yes
7099 hardcode_shlibpath_var=no
7100 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007101
John Criswell47fdd832003-07-14 16:52:07 +00007102 hpux9*)
7103 if test "$GCC" = yes; then
7104 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'
7105 else
7106 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'
7107 fi
7108 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110 hardcode_direct=yes
7111
7112 # hardcode_minus_L: Not really in the search PATH,
7113 # but as the default location of the library.
7114 hardcode_minus_L=yes
7115 export_dynamic_flag_spec='${wl}-E'
7116 ;;
7117
7118 hpux10* | hpux11*)
7119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7120 case "$host_cpu" in
7121 hppa*64*|ia64*)
7122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7123 ;;
7124 *)
7125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7126 ;;
7127 esac
7128 else
7129 case "$host_cpu" in
7130 hppa*64*|ia64*)
7131 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 ;;
7133 *)
7134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7135 ;;
7136 esac
7137 fi
7138 if test "$with_gnu_ld" = no; then
7139 case "$host_cpu" in
7140 hppa*64*)
7141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7142 hardcode_libdir_flag_spec_ld='+b $libdir'
7143 hardcode_libdir_separator=:
7144 hardcode_direct=no
7145 hardcode_shlibpath_var=no
7146 ;;
7147 ia64*)
7148 hardcode_libdir_flag_spec='-L$libdir'
7149 hardcode_direct=no
7150 hardcode_shlibpath_var=no
7151
7152 # hardcode_minus_L: Not really in the search PATH,
7153 # but as the default location of the library.
7154 hardcode_minus_L=yes
7155 ;;
7156 *)
7157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7158 hardcode_libdir_separator=:
7159 hardcode_direct=yes
7160 export_dynamic_flag_spec='${wl}-E'
7161
7162 # hardcode_minus_L: Not really in the search PATH,
7163 # but as the default location of the library.
7164 hardcode_minus_L=yes
7165 ;;
7166 esac
7167 fi
7168 ;;
7169
7170 irix5* | irix6* | nonstopux*)
7171 if test "$GCC" = yes; then
7172 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'
7173 else
7174 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'
7175 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7176 fi
7177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7178 hardcode_libdir_separator=:
7179 link_all_deplibs=yes
7180 ;;
7181
7182 netbsd*)
7183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7185 else
7186 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7187 fi
7188 hardcode_libdir_flag_spec='-R$libdir'
7189 hardcode_direct=yes
7190 hardcode_shlibpath_var=no
7191 ;;
7192
7193 newsos6)
7194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7195 hardcode_direct=yes
7196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7197 hardcode_libdir_separator=:
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 openbsd*)
7202 hardcode_direct=yes
7203 hardcode_shlibpath_var=no
7204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7207 export_dynamic_flag_spec='${wl}-E'
7208 else
7209 case $host_os in
7210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7212 hardcode_libdir_flag_spec='-R$libdir'
7213 ;;
7214 *)
7215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7217 ;;
7218 esac
7219 fi
7220 ;;
7221
7222 os2*)
7223 hardcode_libdir_flag_spec='-L$libdir'
7224 hardcode_minus_L=yes
7225 allow_undefined_flag=unsupported
7226 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'
7227 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7228 ;;
7229
7230 osf3*)
7231 if test "$GCC" = yes; then
7232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7233 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'
7234 else
7235 allow_undefined_flag=' -expect_unresolved \*'
7236 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'
7237 fi
7238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7239 hardcode_libdir_separator=:
7240 ;;
7241
7242 osf4* | osf5*) # as osf3* with the addition of -msym flag
7243 if test "$GCC" = yes; then
7244 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7245 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'
7246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247 else
7248 allow_undefined_flag=' -expect_unresolved \*'
7249 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'
7250 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7251 $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'
7252
7253 # Both c and cxx compiler support -rpath directly
7254 hardcode_libdir_flag_spec='-rpath $libdir'
7255 fi
7256 hardcode_libdir_separator=:
7257 ;;
7258
7259 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007262 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007263 runpath_var=LD_RUN_PATH
7264 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007265 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007266
John Criswell47fdd832003-07-14 16:52:07 +00007267 solaris*)
7268 no_undefined_flag=' -z text'
7269 if test "$GCC" = yes; then
7270 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7273 else
7274 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7277 fi
7278 hardcode_libdir_flag_spec='-R$libdir'
7279 hardcode_shlibpath_var=no
7280 case $host_os in
7281 solaris2.[0-5] | solaris2.[0-5].*) ;;
7282 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7284 esac
7285 link_all_deplibs=yes
7286 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007287
John Criswell47fdd832003-07-14 16:52:07 +00007288 sunos4*)
7289 if test "x$host_vendor" = xsequent; then
7290 # Use $CC to link under sequent, because it throws in some extra .o
7291 # files that make .init and .fini sections work.
7292 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7293 else
7294 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7295 fi
7296 hardcode_libdir_flag_spec='-L$libdir'
7297 hardcode_direct=yes
7298 hardcode_minus_L=yes
7299 hardcode_shlibpath_var=no
7300 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007301
John Criswell47fdd832003-07-14 16:52:07 +00007302 sysv4)
7303 case $host_vendor in
7304 sni)
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_direct=yes # is this really true???
7307 ;;
7308 siemens)
7309 ## LD is ld it makes a PLAMLIB
7310 ## CC just makes a GrossModule.
7311 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7312 reload_cmds='$CC -r -o $output$reload_objs'
7313 hardcode_direct=no
7314 ;;
7315 motorola)
7316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7317 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7318 ;;
7319 esac
7320 runpath_var='LD_RUN_PATH'
7321 hardcode_shlibpath_var=no
7322 ;;
7323
7324 sysv4.3*)
7325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326 hardcode_shlibpath_var=no
7327 export_dynamic_flag_spec='-Bexport'
7328 ;;
7329
7330 sysv4*MP*)
7331 if test -d /usr/nec; then
7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7333 hardcode_shlibpath_var=no
7334 runpath_var=LD_RUN_PATH
7335 hardcode_runpath_var=yes
7336 ld_shlibs=yes
7337 fi
7338 ;;
7339
7340 sysv4.2uw2*)
7341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_direct=yes
7343 hardcode_minus_L=no
7344 hardcode_shlibpath_var=no
7345 hardcode_runpath_var=yes
7346 runpath_var=LD_RUN_PATH
7347 ;;
7348
7349 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7350 no_undefined_flag='${wl}-z ${wl}text'
7351 if test "$GCC" = yes; then
7352 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7353 else
7354 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7355 fi
7356 runpath_var='LD_RUN_PATH'
7357 hardcode_shlibpath_var=no
7358 ;;
7359
7360 sysv5*)
7361 no_undefined_flag=' -z text'
7362 # $CC -shared without GNU ld will not create a library from C++
7363 # object files and a static libstdc++, better avoid it by now
7364 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7367 hardcode_libdir_flag_spec=
7368 hardcode_shlibpath_var=no
7369 runpath_var='LD_RUN_PATH'
7370 ;;
7371
7372 uts4*)
7373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7374 hardcode_libdir_flag_spec='-L$libdir'
7375 hardcode_shlibpath_var=no
7376 ;;
7377
7378 *)
7379 ld_shlibs=no
7380 ;;
7381 esac
7382 fi
7383
John Criswell7a73b802003-06-30 21:59:07 +00007384echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7385echo "${ECHO_T}$ld_shlibs" >&6
7386test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007387
John Criswell47fdd832003-07-14 16:52:07 +00007388variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7389if test "$GCC" = yes; then
7390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7391fi
7392
7393#
7394# Do we need to explicitly link libc?
7395#
7396case "x$archive_cmds_need_lc" in
7397x|xyes)
7398 # Assume -lc should be added
7399 archive_cmds_need_lc=yes
7400
7401 if test "$enable_shared" = yes && test "$GCC" = yes; then
7402 case $archive_cmds in
7403 *'~'*)
7404 # FIXME: we may have to deal with multi-command sequences.
7405 ;;
7406 '$CC '*)
7407 # Test whether the compiler implicitly links with -lc since on some
7408 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7409 # to ld, don't add -lc before -lgcc.
7410 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7411echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7412 $rm conftest*
7413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7414
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } 2>conftest.err; then
7420 soname=conftest
7421 lib=conftest
7422 libobjs=conftest.$ac_objext
7423 deplibs=
7424 wl=$lt_prog_compiler_wl
7425 compiler_flags=-v
7426 linker_flags=-v
7427 verstring=
7428 output_objdir=.
7429 libname=conftest
7430 lt_save_allow_undefined_flag=$allow_undefined_flag
7431 allow_undefined_flag=
7432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7433 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }
7437 then
7438 archive_cmds_need_lc=no
7439 else
7440 archive_cmds_need_lc=yes
7441 fi
7442 allow_undefined_flag=$lt_save_allow_undefined_flag
7443 else
7444 cat conftest.err 1>&5
7445 fi
7446 $rm conftest*
7447 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7448echo "${ECHO_T}$archive_cmds_need_lc" >&6
7449 ;;
7450 esac
7451 fi
7452 ;;
7453esac
7454
John Criswell7a73b802003-06-30 21:59:07 +00007455echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7456echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7457hardcode_action=
7458if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007459 test -n "$runpath_var " || \
7460 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007461
7462 # We can hardcode non-existant directories.
7463 if test "$hardcode_direct" != no &&
7464 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7465 # have to relink, otherwise we might link with an installed library
7466 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007467 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007468 test "$hardcode_minus_L" != no; then
7469 # Linking always hardcodes the temporary library directory.
7470 hardcode_action=relink
7471 else
7472 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7473 hardcode_action=immediate
7474 fi
7475else
7476 # We cannot hardcode anything, or else we can only hardcode existing
7477 # directories.
7478 hardcode_action=unsupported
7479fi
7480echo "$as_me:$LINENO: result: $hardcode_action" >&5
7481echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007482
John Criswell47fdd832003-07-14 16:52:07 +00007483if test "$hardcode_action" = relink; then
7484 # Fast installation is not supported
7485 enable_fast_install=no
7486elif test "$shlibpath_overrides_runpath" = yes ||
7487 test "$enable_shared" = no; then
7488 # Fast installation is not necessary
7489 enable_fast_install=needless
7490fi
7491
John Criswell7a73b802003-06-30 21:59:07 +00007492striplib=
7493old_striplib=
7494echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7495echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7496if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7497 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7498 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7499 echo "$as_me:$LINENO: result: yes" >&5
7500echo "${ECHO_T}yes" >&6
7501else
John Criswell47fdd832003-07-14 16:52:07 +00007502# FIXME - insert some real tests, host_os isn't really good enough
7503 case $host_os in
7504 darwin*)
7505 if test -n "$STRIP" ; then
7506 striplib="$STRIP -x"
7507 echo "$as_me:$LINENO: result: yes" >&5
7508echo "${ECHO_T}yes" >&6
7509 else
John Criswell7a73b802003-06-30 21:59:07 +00007510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512fi
John Criswell47fdd832003-07-14 16:52:07 +00007513 ;;
7514 *)
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
7517 ;;
7518 esac
7519fi
John Criswell7a73b802003-06-30 21:59:07 +00007520
John Criswell7a73b802003-06-30 21:59:07 +00007521echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7522echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7523library_names_spec=
7524libname_spec='lib$name'
7525soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007526shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007527postinstall_cmds=
7528postuninstall_cmds=
7529finish_cmds=
7530finish_eval=
7531shlibpath_var=
7532shlibpath_overrides_runpath=unknown
7533version_type=none
7534dynamic_linker="$host_os ld.so"
7535sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007536if test "$GCC" = yes; then
7537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7539 # if the path contains ";" then we assume it to be the separator
7540 # otherwise default to the standard path separator (i.e. ":") - it is
7541 # assumed that no part of a normal pathname contains ";" but that should
7542 # okay in the real world where ";" in dirpaths is itself problematic.
7543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7544 else
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7546 fi
7547else
7548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7549fi
7550need_lib_prefix=unknown
7551hardcode_into_libs=no
7552
7553# when you set need_version to no, make sure it does not cause -set_version
7554# flags to be left without arguments
7555need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007556
7557case $host_os in
7558aix3*)
7559 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007561 shlibpath_var=LIBPATH
7562
John Criswell47fdd832003-07-14 16:52:07 +00007563 # AIX 3 has no versioning support, so we append a major version to the name.
7564 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007565 ;;
7566
7567aix4* | aix5*)
7568 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007569 need_lib_prefix=no
7570 need_version=no
7571 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007572 if test "$host_cpu" = ia64; then
7573 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007575 shlibpath_var=LD_LIBRARY_PATH
7576 else
7577 # With GCC up to 2.95.x, collect2 would create an import file
7578 # for dependence libraries. The import file would start with
7579 # the line `#! .'. This would cause the generated library to
7580 # depend on `.', always an invalid library. This was fixed in
7581 # development snapshots of GCC prior to 3.0.
7582 case $host_os in
7583 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7585 echo ' yes '
7586 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7587 :
7588 else
7589 can_build_shared=no
7590 fi
7591 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007592 esac
John Criswell47fdd832003-07-14 16:52:07 +00007593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7594 # soname into executable. Probably we can add versioning support to
7595 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007596 if test "$aix_use_runtimelinking" = yes; then
7597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7598 # instead of lib<name>.a to let people know that these are not
7599 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007601 else
7602 # We preserve .a as extension for shared libraries through AIX4.2
7603 # and later when we are not doing run time linking.
7604 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007605 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007606 fi
7607 shlibpath_var=LIBPATH
7608 fi
7609 ;;
7610
7611amigaos*)
7612 library_names_spec='$libname.ixlibrary $libname.a'
7613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7614 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'
7615 ;;
7616
7617beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007618 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007619 dynamic_linker="$host_os ld.so"
7620 shlibpath_var=LIBRARY_PATH
7621 ;;
7622
7623bsdi4*)
7624 version_type=linux
7625 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7627 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7629 shlibpath_var=LD_LIBRARY_PATH
7630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007632 # the default ld.so.conf also contains /usr/contrib/lib and
7633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7634 # libtool to hard-code these into programs
7635 ;;
7636
7637cygwin* | mingw* | pw32*)
7638 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007639 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007640 need_version=no
7641 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007642
John Criswell7a73b802003-06-30 21:59:07 +00007643 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007644 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007645 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7647 postinstall_cmds='base_file=`basename \${file}`~
7648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007649 dldir=$destdir/`dirname \$dlpath`~
7650 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007651 $install_prog $dir/$dlname \$dldir/$dlname'
7652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007653 dlpath=$dir/\$dldll~
7654 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007655 shlibpath_overrides_runpath=yes
7656
7657 case $host_os in
7658 cygwin*)
7659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7661 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7662 ;;
7663 mingw*)
7664 # MinGW DLLs use traditional 'lib' prefix
7665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7668 # It is most probably a Windows format PATH printed by
7669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7670 # path with ; separators, and with drive letters. We can handle the
7671 # drive letters (cygwin fileutils understands them), so leave them,
7672 # especially as we might pass files found there to a mingw objdump,
7673 # which wouldn't understand a cygwinified path. Ahh.
7674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7675 else
7676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7677 fi
7678 ;;
7679 pw32*)
7680 # pw32 DLLs use 'pw' prefix rather than 'lib'
7681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7682 ;;
7683 esac
John Criswell7a73b802003-06-30 21:59:07 +00007684 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007685
John Criswell7a73b802003-06-30 21:59:07 +00007686 *)
John Criswell47fdd832003-07-14 16:52:07 +00007687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007688 ;;
7689 esac
7690 dynamic_linker='Win32 ld.exe'
7691 # FIXME: first we should search . and the directory the executable is in
7692 shlibpath_var=PATH
7693 ;;
7694
7695darwin* | rhapsody*)
7696 dynamic_linker="$host_os dyld"
7697 version_type=darwin
7698 need_lib_prefix=no
7699 need_version=no
7700 # FIXME: Relying on posixy $() will cause problems for
7701 # cross-compilation, but unfortunately the echo tests do not
7702 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007703 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7704 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007705 shlibpath_overrides_runpath=yes
7706 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007707 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7708 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7709 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7710 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"`
7711 fi
7712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7713 ;;
7714
7715dgux*)
7716 version_type=linux
7717 need_lib_prefix=no
7718 need_version=no
7719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7720 soname_spec='${libname}${release}${shared_ext}$major'
7721 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007722 ;;
7723
7724freebsd1*)
7725 dynamic_linker=no
7726 ;;
7727
7728freebsd*)
7729 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7730 version_type=freebsd-$objformat
7731 case $version_type in
7732 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007734 need_version=no
7735 need_lib_prefix=no
7736 ;;
7737 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007739 need_version=yes
7740 ;;
7741 esac
7742 shlibpath_var=LD_LIBRARY_PATH
7743 case $host_os in
7744 freebsd2*)
7745 shlibpath_overrides_runpath=yes
7746 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007747 freebsd3.01* | freebsdelf3.01*)
7748 shlibpath_overrides_runpath=yes
7749 hardcode_into_libs=yes
7750 ;;
7751 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007752 shlibpath_overrides_runpath=no
7753 hardcode_into_libs=yes
7754 ;;
7755 esac
7756 ;;
7757
7758gnu*)
7759 version_type=linux
7760 need_lib_prefix=no
7761 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007764 shlibpath_var=LD_LIBRARY_PATH
7765 hardcode_into_libs=yes
7766 ;;
7767
7768hpux9* | hpux10* | hpux11*)
7769 # Give a soname corresponding to the major version so that dld.sl refuses to
7770 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007771 version_type=sunos
7772 need_lib_prefix=no
7773 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007774 case "$host_cpu" in
7775 ia64*)
7776 shrext='.so'
7777 hardcode_into_libs=yes
7778 dynamic_linker="$host_os dld.so"
7779 shlibpath_var=LD_LIBRARY_PATH
7780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782 soname_spec='${libname}${release}${shared_ext}$major'
7783 if test "X$HPUX_IA64_MODE" = X32; then
7784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7785 else
7786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7787 fi
7788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7789 ;;
7790 hppa*64*)
7791 shrext='.sl'
7792 hardcode_into_libs=yes
7793 dynamic_linker="$host_os dld.sl"
7794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7797 soname_spec='${libname}${release}${shared_ext}$major'
7798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7800 ;;
7801 *)
7802 shrext='.sl'
7803 dynamic_linker="$host_os dld.sl"
7804 shlibpath_var=SHLIB_PATH
7805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
7808 ;;
7809 esac
John Criswell7a73b802003-06-30 21:59:07 +00007810 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7811 postinstall_cmds='chmod 555 $lib'
7812 ;;
7813
John Criswell47fdd832003-07-14 16:52:07 +00007814irix5* | irix6* | nonstopux*)
7815 case $host_os in
7816 nonstopux*) version_type=nonstopux ;;
7817 *)
7818 if test "$lt_cv_prog_gnu_ld" = yes; then
7819 version_type=linux
7820 else
7821 version_type=irix
7822 fi ;;
7823 esac
John Criswell7a73b802003-06-30 21:59:07 +00007824 need_lib_prefix=no
7825 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007826 soname_spec='${libname}${release}${shared_ext}$major'
7827 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 +00007828 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007829 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007830 libsuff= shlibsuff=
7831 ;;
7832 *)
7833 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7835 libsuff= shlibsuff= libmagic=32-bit;;
7836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7837 libsuff=32 shlibsuff=N32 libmagic=N32;;
7838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007840 *) libsuff= shlibsuff= libmagic=never-match;;
7841 esac
7842 ;;
7843 esac
7844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7845 shlibpath_overrides_runpath=no
7846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007848 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007849 ;;
7850
7851# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007852linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007853 dynamic_linker=no
7854 ;;
7855
7856# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007857linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007858 version_type=linux
7859 need_lib_prefix=no
7860 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7864 shlibpath_var=LD_LIBRARY_PATH
7865 shlibpath_overrides_runpath=no
7866 # This implies no fast_install, which is unacceptable.
7867 # Some rework will be needed to allow for fast_install
7868 # before this can be enabled.
7869 hardcode_into_libs=yes
7870
7871 # We used to test for /lib/ld.so.1 and disable shared libraries on
7872 # powerpc, because MkLinux only supported shared libraries with the
7873 # GNU dynamic linker. Since this was broken with cross compilers,
7874 # most powerpc-linux boxes support dynamic linking these days and
7875 # people can always --disable-shared, the test was removed, and we
7876 # assume the GNU/Linux dynamic linker is in use.
7877 dynamic_linker='GNU/Linux ld.so'
7878 ;;
7879
7880netbsd*)
7881 version_type=sunos
7882 need_lib_prefix=no
7883 need_version=no
7884 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7887 dynamic_linker='NetBSD (a.out) ld.so'
7888 else
John Criswell47fdd832003-07-14 16:52:07 +00007889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7890 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007891 dynamic_linker='NetBSD ld.elf_so'
7892 fi
7893 shlibpath_var=LD_LIBRARY_PATH
7894 shlibpath_overrides_runpath=yes
7895 hardcode_into_libs=yes
7896 ;;
7897
7898newsos6)
7899 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=yes
7903 ;;
7904
7905nto-qnx)
7906 version_type=linux
7907 need_lib_prefix=no
7908 need_version=no
7909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007911 shlibpath_var=LD_LIBRARY_PATH
7912 shlibpath_overrides_runpath=yes
7913 ;;
7914
7915openbsd*)
7916 version_type=sunos
7917 need_lib_prefix=no
7918 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7921 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007922 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 +00007923 case $host_os in
7924 openbsd2.[89] | openbsd2.[89].*)
7925 shlibpath_overrides_runpath=no
7926 ;;
7927 *)
7928 shlibpath_overrides_runpath=yes
7929 ;;
7930 esac
John Criswell7a73b802003-06-30 21:59:07 +00007931 else
7932 shlibpath_overrides_runpath=yes
7933 fi
John Criswell7a73b802003-06-30 21:59:07 +00007934 ;;
7935
7936os2*)
7937 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007938 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007939 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007940 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007941 dynamic_linker='OS/2 ld.exe'
7942 shlibpath_var=LIBPATH
7943 ;;
7944
7945osf3* | osf4* | osf5*)
7946 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007947 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007948 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007949 soname_spec='${libname}${release}${shared_ext}$major'
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007951 shlibpath_var=LD_LIBRARY_PATH
7952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7954 ;;
7955
7956sco3.2v5*)
7957 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007958 soname_spec='${libname}${release}${shared_ext}$major'
7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007960 shlibpath_var=LD_LIBRARY_PATH
7961 ;;
7962
7963solaris*)
7964 version_type=linux
7965 need_lib_prefix=no
7966 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7968 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007969 shlibpath_var=LD_LIBRARY_PATH
7970 shlibpath_overrides_runpath=yes
7971 hardcode_into_libs=yes
7972 # ldd complains unless libraries are executable
7973 postinstall_cmds='chmod +x $lib'
7974 ;;
7975
7976sunos4*)
7977 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7980 shlibpath_var=LD_LIBRARY_PATH
7981 shlibpath_overrides_runpath=yes
7982 if test "$with_gnu_ld" = yes; then
7983 need_lib_prefix=no
7984 fi
7985 need_version=yes
7986 ;;
7987
7988sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7989 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7991 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007992 shlibpath_var=LD_LIBRARY_PATH
7993 case $host_vendor in
7994 sni)
7995 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007996 need_lib_prefix=no
7997 export_dynamic_flag_spec='${wl}-Blargedynsym'
7998 runpath_var=LD_RUN_PATH
7999 ;;
8000 siemens)
8001 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008002 ;;
8003 motorola)
8004 need_lib_prefix=no
8005 need_version=no
8006 shlibpath_overrides_runpath=no
8007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8008 ;;
8009 esac
8010 ;;
8011
John Criswell7a73b802003-06-30 21:59:07 +00008012sysv4*MP*)
8013 if test -d /usr/nec ;then
8014 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8016 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008017 shlibpath_var=LD_LIBRARY_PATH
8018 fi
8019 ;;
8020
John Criswell47fdd832003-07-14 16:52:07 +00008021uts4*)
8022 version_type=linux
8023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024 soname_spec='${libname}${release}${shared_ext}$major'
8025 shlibpath_var=LD_LIBRARY_PATH
8026 ;;
8027
John Criswell7a73b802003-06-30 21:59:07 +00008028*)
8029 dynamic_linker=no
8030 ;;
8031esac
8032echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8033echo "${ECHO_T}$dynamic_linker" >&6
8034test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008035
8036if test "x$enable_dlopen" != xyes; then
8037 enable_dlopen=unknown
8038 enable_dlopen_self=unknown
8039 enable_dlopen_self_static=unknown
8040else
8041 lt_cv_dlopen=no
8042 lt_cv_dlopen_libs=
8043
8044 case $host_os in
8045 beos*)
8046 lt_cv_dlopen="load_add_on"
8047 lt_cv_dlopen_libs=
8048 lt_cv_dlopen_self=yes
8049 ;;
8050
John Criswell47fdd832003-07-14 16:52:07 +00008051 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008052 lt_cv_dlopen="LoadLibrary"
8053 lt_cv_dlopen_libs=
8054 ;;
8055
John Criswell47fdd832003-07-14 16:52:07 +00008056 cygwin*)
8057 lt_cv_dlopen="dlopen"
8058 lt_cv_dlopen_libs=
8059 ;;
8060
8061 darwin*)
8062 # if libdl is installed we need to link against it
8063 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8064echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8065if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067else
8068 ac_check_lib_save_LIBS=$LIBS
8069LIBS="-ldl $LIBS"
8070cat >conftest.$ac_ext <<_ACEOF
8071#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008072/* confdefs.h. */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008077
8078/* Override any gcc2 internal prototype to avoid an error. */
8079#ifdef __cplusplus
8080extern "C"
8081#endif
8082/* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8084char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008085int
8086main ()
8087{
8088dlopen ();
8089 ;
8090 return 0;
8091}
8092_ACEOF
8093rm -f conftest.$ac_objext conftest$ac_exeext
8094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
8099 { ac_try='test -s conftest$ac_exeext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_cv_lib_dl_dlopen=yes
8106else
8107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008108sed 's/^/| /' conftest.$ac_ext >&5
8109
John Criswell47fdd832003-07-14 16:52:07 +00008110ac_cv_lib_dl_dlopen=no
8111fi
8112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8113LIBS=$ac_check_lib_save_LIBS
8114fi
8115echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8116echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8117if test $ac_cv_lib_dl_dlopen = yes; then
8118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8119else
8120
8121 lt_cv_dlopen="dyld"
8122 lt_cv_dlopen_libs=
8123 lt_cv_dlopen_self=yes
8124
8125fi
8126
8127 ;;
8128
John Criswell7a73b802003-06-30 21:59:07 +00008129 *)
8130 echo "$as_me:$LINENO: checking for shl_load" >&5
8131echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8132if test "${ac_cv_func_shl_load+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 cat >conftest.$ac_ext <<_ACEOF
8136#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008137/* confdefs.h. */
8138_ACEOF
8139cat confdefs.h >>conftest.$ac_ext
8140cat >>conftest.$ac_ext <<_ACEOF
8141/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008142/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008143 which can conflict with char shl_load (); below.
8144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8145 <limits.h> exists even on freestanding compilers. */
8146#ifdef __STDC__
8147# include <limits.h>
8148#else
8149# include <assert.h>
8150#endif
John Criswell7a73b802003-06-30 21:59:07 +00008151/* Override any gcc2 internal prototype to avoid an error. */
8152#ifdef __cplusplus
8153extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008154{
John Criswell7a73b802003-06-30 21:59:07 +00008155#endif
8156/* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008159/* The GNU C library defines this for functions which it implements
8160 to always fail with ENOSYS. Some functions are actually named
8161 something starting with __ and the normal name is an alias. */
8162#if defined (__stub_shl_load) || defined (__stub___shl_load)
8163choke me
8164#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008165char (*f) () = shl_load;
8166#endif
8167#ifdef __cplusplus
8168}
John Criswell7a73b802003-06-30 21:59:07 +00008169#endif
8170
John Criswell0c38eaf2003-09-10 15:17:25 +00008171int
8172main ()
8173{
8174return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008175 ;
8176 return 0;
8177}
8178_ACEOF
8179rm -f conftest.$ac_objext conftest$ac_exeext
8180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -s conftest$ac_exeext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 ac_cv_func_shl_load=yes
8192else
8193 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008194sed 's/^/| /' conftest.$ac_ext >&5
8195
John Criswell7a73b802003-06-30 21:59:07 +00008196ac_cv_func_shl_load=no
8197fi
8198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8199fi
8200echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8201echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8202if test $ac_cv_func_shl_load = yes; then
8203 lt_cv_dlopen="shl_load"
8204else
8205 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8206echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8207if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209else
8210 ac_check_lib_save_LIBS=$LIBS
8211LIBS="-ldld $LIBS"
8212cat >conftest.$ac_ext <<_ACEOF
8213#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008214/* confdefs.h. */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008219
8220/* Override any gcc2 internal prototype to avoid an error. */
8221#ifdef __cplusplus
8222extern "C"
8223#endif
8224/* We use char because int might match the return type of a gcc2
8225 builtin and then its argument prototype would still apply. */
8226char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008227int
8228main ()
8229{
8230shl_load ();
8231 ;
8232 return 0;
8233}
8234_ACEOF
8235rm -f conftest.$ac_objext conftest$ac_exeext
8236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237 (eval $ac_link) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_lib_dld_shl_load=yes
8248else
8249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008250sed 's/^/| /' conftest.$ac_ext >&5
8251
John Criswell7a73b802003-06-30 21:59:07 +00008252ac_cv_lib_dld_shl_load=no
8253fi
8254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8255LIBS=$ac_check_lib_save_LIBS
8256fi
8257echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8258echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8259if test $ac_cv_lib_dld_shl_load = yes; then
8260 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8261else
8262 echo "$as_me:$LINENO: checking for dlopen" >&5
8263echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8264if test "${ac_cv_func_dlopen+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 cat >conftest.$ac_ext <<_ACEOF
8268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008274/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008275 which can conflict with char dlopen (); below.
8276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8277 <limits.h> exists even on freestanding compilers. */
8278#ifdef __STDC__
8279# include <limits.h>
8280#else
8281# include <assert.h>
8282#endif
John Criswell7a73b802003-06-30 21:59:07 +00008283/* Override any gcc2 internal prototype to avoid an error. */
8284#ifdef __cplusplus
8285extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008286{
John Criswell7a73b802003-06-30 21:59:07 +00008287#endif
8288/* We use char because int might match the return type of a gcc2
8289 builtin and then its argument prototype would still apply. */
8290char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008291/* The GNU C library defines this for functions which it implements
8292 to always fail with ENOSYS. Some functions are actually named
8293 something starting with __ and the normal name is an alias. */
8294#if defined (__stub_dlopen) || defined (__stub___dlopen)
8295choke me
8296#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008297char (*f) () = dlopen;
8298#endif
8299#ifdef __cplusplus
8300}
John Criswell7a73b802003-06-30 21:59:07 +00008301#endif
8302
John Criswell0c38eaf2003-09-10 15:17:25 +00008303int
8304main ()
8305{
8306return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008307 ;
8308 return 0;
8309}
8310_ACEOF
8311rm -f conftest.$ac_objext conftest$ac_exeext
8312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_func_dlopen=yes
8324else
8325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008326sed 's/^/| /' conftest.$ac_ext >&5
8327
John Criswell7a73b802003-06-30 21:59:07 +00008328ac_cv_func_dlopen=no
8329fi
8330rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8331fi
8332echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8333echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8334if test $ac_cv_func_dlopen = yes; then
8335 lt_cv_dlopen="dlopen"
8336else
8337 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8338echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8339if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 ac_check_lib_save_LIBS=$LIBS
8343LIBS="-ldl $LIBS"
8344cat >conftest.$ac_ext <<_ACEOF
8345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008351
8352/* Override any gcc2 internal prototype to avoid an error. */
8353#ifdef __cplusplus
8354extern "C"
8355#endif
8356/* We use char because int might match the return type of a gcc2
8357 builtin and then its argument prototype would still apply. */
8358char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008359int
8360main ()
8361{
8362dlopen ();
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext conftest$ac_exeext
8368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; }; then
8379 ac_cv_lib_dl_dlopen=yes
8380else
8381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008382sed 's/^/| /' conftest.$ac_ext >&5
8383
John Criswell7a73b802003-06-30 21:59:07 +00008384ac_cv_lib_dl_dlopen=no
8385fi
8386rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8387LIBS=$ac_check_lib_save_LIBS
8388fi
8389echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8390echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8391if test $ac_cv_lib_dl_dlopen = yes; then
8392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8393else
8394 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8395echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8396if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399 ac_check_lib_save_LIBS=$LIBS
8400LIBS="-lsvld $LIBS"
8401cat >conftest.$ac_ext <<_ACEOF
8402#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008408
8409/* Override any gcc2 internal prototype to avoid an error. */
8410#ifdef __cplusplus
8411extern "C"
8412#endif
8413/* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8415char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008416int
8417main ()
8418{
8419dlopen ();
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424rm -f conftest.$ac_objext conftest$ac_exeext
8425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426 (eval $ac_link) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_svld_dlopen=yes
8437else
8438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008439sed 's/^/| /' conftest.$ac_ext >&5
8440
John Criswell7a73b802003-06-30 21:59:07 +00008441ac_cv_lib_svld_dlopen=no
8442fi
8443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8444LIBS=$ac_check_lib_save_LIBS
8445fi
8446echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8447echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8448if test $ac_cv_lib_svld_dlopen = yes; then
8449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8450else
8451 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8452echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8453if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456 ac_check_lib_save_LIBS=$LIBS
8457LIBS="-ldld $LIBS"
8458cat >conftest.$ac_ext <<_ACEOF
8459#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008460/* confdefs.h. */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008465
8466/* Override any gcc2 internal prototype to avoid an error. */
8467#ifdef __cplusplus
8468extern "C"
8469#endif
8470/* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008473int
8474main ()
8475{
8476dld_link ();
8477 ;
8478 return 0;
8479}
8480_ACEOF
8481rm -f conftest.$ac_objext conftest$ac_exeext
8482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489 (eval $ac_try) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 ac_cv_lib_dld_dld_link=yes
8494else
8495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008496sed 's/^/| /' conftest.$ac_ext >&5
8497
John Criswell7a73b802003-06-30 21:59:07 +00008498ac_cv_lib_dld_dld_link=no
8499fi
8500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8501LIBS=$ac_check_lib_save_LIBS
8502fi
8503echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8504echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8505if test $ac_cv_lib_dld_dld_link = yes; then
8506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8507fi
8508
8509
8510fi
8511
8512
8513fi
8514
8515
8516fi
8517
8518
8519fi
8520
8521
8522fi
8523
8524 ;;
8525 esac
8526
8527 if test "x$lt_cv_dlopen" != xno; then
8528 enable_dlopen=yes
8529 else
8530 enable_dlopen=no
8531 fi
8532
8533 case $lt_cv_dlopen in
8534 dlopen)
8535 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008536 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008537
8538 save_LDFLAGS="$LDFLAGS"
8539 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8540
8541 save_LIBS="$LIBS"
8542 LIBS="$lt_cv_dlopen_libs $LIBS"
8543
8544 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8545echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8546if test "${lt_cv_dlopen_self+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549 if test "$cross_compiling" = yes; then :
8550 lt_cv_dlopen_self=cross
8551else
John Criswell47fdd832003-07-14 16:52:07 +00008552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008553 lt_status=$lt_dlunknown
8554 cat > conftest.$ac_ext <<EOF
John Criswell3b195522003-09-15 14:25:08 +00008555#line 8555 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008556#include "confdefs.h"
8557
8558#if HAVE_DLFCN_H
8559#include <dlfcn.h>
8560#endif
8561
8562#include <stdio.h>
8563
8564#ifdef RTLD_GLOBAL
8565# define LT_DLGLOBAL RTLD_GLOBAL
8566#else
8567# ifdef DL_GLOBAL
8568# define LT_DLGLOBAL DL_GLOBAL
8569# else
8570# define LT_DLGLOBAL 0
8571# endif
8572#endif
8573
8574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8575 find out it does not work in some platform. */
8576#ifndef LT_DLLAZY_OR_NOW
8577# ifdef RTLD_LAZY
8578# define LT_DLLAZY_OR_NOW RTLD_LAZY
8579# else
8580# ifdef DL_LAZY
8581# define LT_DLLAZY_OR_NOW DL_LAZY
8582# else
8583# ifdef RTLD_NOW
8584# define LT_DLLAZY_OR_NOW RTLD_NOW
8585# else
8586# ifdef DL_NOW
8587# define LT_DLLAZY_OR_NOW DL_NOW
8588# else
8589# define LT_DLLAZY_OR_NOW 0
8590# endif
8591# endif
8592# endif
8593# endif
8594#endif
8595
8596#ifdef __cplusplus
8597extern "C" void exit (int);
8598#endif
8599
8600void fnord() { int i=42;}
8601int main ()
8602{
8603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8604 int status = $lt_dlunknown;
8605
8606 if (self)
8607 {
8608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8609 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8610 /* dlclose (self); */
8611 }
8612
8613 exit (status);
8614}
8615EOF
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617 (eval $ac_link) 2>&5
8618 ac_status=$?
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8621 (./conftest; exit; ) 2>/dev/null
8622 lt_status=$?
8623 case x$lt_status in
8624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8626 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8627 esac
8628 else :
8629 # compilation failed
8630 lt_cv_dlopen_self=no
8631 fi
8632fi
8633rm -fr conftest*
8634
8635
8636fi
8637echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8638echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8639
8640 if test "x$lt_cv_dlopen_self" = xyes; then
8641 LDFLAGS="$LDFLAGS $link_static_flag"
8642 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8643echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8644if test "${lt_cv_dlopen_self_static+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647 if test "$cross_compiling" = yes; then :
8648 lt_cv_dlopen_self_static=cross
8649else
John Criswell47fdd832003-07-14 16:52:07 +00008650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008651 lt_status=$lt_dlunknown
8652 cat > conftest.$ac_ext <<EOF
John Criswell3b195522003-09-15 14:25:08 +00008653#line 8653 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008654#include "confdefs.h"
8655
8656#if HAVE_DLFCN_H
8657#include <dlfcn.h>
8658#endif
8659
8660#include <stdio.h>
8661
8662#ifdef RTLD_GLOBAL
8663# define LT_DLGLOBAL RTLD_GLOBAL
8664#else
8665# ifdef DL_GLOBAL
8666# define LT_DLGLOBAL DL_GLOBAL
8667# else
8668# define LT_DLGLOBAL 0
8669# endif
8670#endif
8671
8672/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8673 find out it does not work in some platform. */
8674#ifndef LT_DLLAZY_OR_NOW
8675# ifdef RTLD_LAZY
8676# define LT_DLLAZY_OR_NOW RTLD_LAZY
8677# else
8678# ifdef DL_LAZY
8679# define LT_DLLAZY_OR_NOW DL_LAZY
8680# else
8681# ifdef RTLD_NOW
8682# define LT_DLLAZY_OR_NOW RTLD_NOW
8683# else
8684# ifdef DL_NOW
8685# define LT_DLLAZY_OR_NOW DL_NOW
8686# else
8687# define LT_DLLAZY_OR_NOW 0
8688# endif
8689# endif
8690# endif
8691# endif
8692#endif
8693
8694#ifdef __cplusplus
8695extern "C" void exit (int);
8696#endif
8697
8698void fnord() { int i=42;}
8699int main ()
8700{
8701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8702 int status = $lt_dlunknown;
8703
8704 if (self)
8705 {
8706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8707 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8708 /* dlclose (self); */
8709 }
8710
8711 exit (status);
8712}
8713EOF
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8719 (./conftest; exit; ) 2>/dev/null
8720 lt_status=$?
8721 case x$lt_status in
8722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8724 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8725 esac
8726 else :
8727 # compilation failed
8728 lt_cv_dlopen_self_static=no
8729 fi
8730fi
8731rm -fr conftest*
8732
8733
8734fi
8735echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8736echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8737 fi
8738
8739 CPPFLAGS="$save_CPPFLAGS"
8740 LDFLAGS="$save_LDFLAGS"
8741 LIBS="$save_LIBS"
8742 ;;
8743 esac
8744
8745 case $lt_cv_dlopen_self in
8746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8747 *) enable_dlopen_self=unknown ;;
8748 esac
8749
8750 case $lt_cv_dlopen_self_static in
8751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8752 *) enable_dlopen_self_static=unknown ;;
8753 esac
8754fi
8755
8756
John Criswell47fdd832003-07-14 16:52:07 +00008757# Report which librarie types wil actually be built
8758echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8759echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8760echo "$as_me:$LINENO: result: $can_build_shared" >&5
8761echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008762
John Criswell47fdd832003-07-14 16:52:07 +00008763echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8764echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8765test "$can_build_shared" = "no" && enable_shared=no
8766
8767# On AIX, shared libraries and static libraries use the same namespace, and
8768# are all built from PIC.
8769case "$host_os" in
8770aix3*)
8771 test "$enable_shared" = yes && enable_static=no
8772 if test -n "$RANLIB"; then
8773 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8774 postinstall_cmds='$RANLIB $lib'
8775 fi
8776 ;;
8777
8778aix4*)
8779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8780 test "$enable_shared" = yes && enable_static=no
8781 fi
8782 ;;
8783 darwin* | rhapsody*)
8784 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8785 archive_cmds_need_lc=no
8786 case "$host_os" in
8787 rhapsody* | darwin1.[012])
8788 allow_undefined_flag='-undefined suppress'
8789 ;;
8790 *) # Darwin 1.3 on
8791 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8792 ;;
8793 esac
8794 # FIXME: Relying on posixy $() will cause problems for
8795 # cross-compilation, but unfortunately the echo tests do not
8796 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8797 # `"' quotes if we put them in here... so don't!
8798 output_verbose_link_cmd='echo'
8799 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8800 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8801 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8802 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}'
8803 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}'
8804 hardcode_direct=no
8805 hardcode_automatic=yes
8806 hardcode_shlibpath_var=unsupported
8807 whole_archive_flag_spec='-all_load $convenience'
8808 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008809 fi
John Criswell7a73b802003-06-30 21:59:07 +00008810 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008811esac
8812echo "$as_me:$LINENO: result: $enable_shared" >&5
8813echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008814
John Criswell47fdd832003-07-14 16:52:07 +00008815echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8816echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8817# Make sure either enable_shared or enable_static is yes.
8818test "$enable_shared" = yes || enable_static=yes
8819echo "$as_me:$LINENO: result: $enable_static" >&5
8820echo "${ECHO_T}$enable_static" >&6
8821
8822# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008823# libtool distribution, otherwise you forgot to ship ltmain.sh
8824# with your package, and you will get complaints that there are
8825# no rules to generate ltmain.sh.
8826if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008827 # See if we are running on zsh, and set the options which allow our commands through
8828 # without removal of \ escapes.
8829 if test -n "${ZSH_VERSION+set}" ; then
8830 setopt NO_GLOB_SUBST
8831 fi
John Criswell7a73b802003-06-30 21:59:07 +00008832 # Now quote all the things that may contain metacharacters while being
8833 # careful not to overquote the AC_SUBSTed values. We take copies of the
8834 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008835 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8836 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8837 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8838 deplibs_check_method reload_flag reload_cmds need_locks \
8839 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8840 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008841 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008842 old_postinstall_cmds old_postuninstall_cmds \
8843 compiler \
8844 CC \
8845 LD \
8846 lt_prog_compiler_wl \
8847 lt_prog_compiler_pic \
8848 lt_prog_compiler_static \
8849 lt_prog_compiler_no_builtin_flag \
8850 export_dynamic_flag_spec \
8851 thread_safe_flag_spec \
8852 whole_archive_flag_spec \
8853 enable_shared_with_static_runtimes \
8854 old_archive_cmds \
8855 old_archive_from_new_cmds \
8856 predep_objects \
8857 postdep_objects \
8858 predeps \
8859 postdeps \
8860 compiler_lib_search_path \
8861 archive_cmds \
8862 archive_expsym_cmds \
8863 postinstall_cmds \
8864 postuninstall_cmds \
8865 old_archive_from_expsyms_cmds \
8866 allow_undefined_flag \
8867 no_undefined_flag \
8868 export_symbols_cmds \
8869 hardcode_libdir_flag_spec \
8870 hardcode_libdir_flag_spec_ld \
8871 hardcode_libdir_separator \
8872 hardcode_automatic \
8873 module_cmds \
8874 module_expsym_cmds \
8875 lt_cv_prog_compiler_c_o \
8876 exclude_expsyms \
8877 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008878
8879 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008880 old_archive_cmds | \
8881 old_archive_from_new_cmds | \
8882 archive_cmds | \
8883 archive_expsym_cmds | \
8884 module_cmds | \
8885 module_expsym_cmds | \
8886 old_archive_from_expsyms_cmds | \
8887 export_symbols_cmds | \
8888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008889 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008890 old_postinstall_cmds | old_postuninstall_cmds | \
8891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008892 # Double-quote double-evaled strings.
8893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8894 ;;
8895 *)
8896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8897 ;;
8898 esac
8899 done
8900
John Criswell47fdd832003-07-14 16:52:07 +00008901 case $lt_echo in
8902 *'\$0 --fallback-echo"')
8903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8904 ;;
8905 esac
8906
8907cfgfile="${ofile}T"
8908 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8909 $rm -f "$cfgfile"
8910 { echo "$as_me:$LINENO: creating $ofile" >&5
8911echo "$as_me: creating $ofile" >&6;}
8912
8913 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008914#! $SHELL
8915
John Criswell47fdd832003-07-14 16:52:07 +00008916# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008917# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8918# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8919#
John Criswell47fdd832003-07-14 16:52:07 +00008920# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8921# Free Software Foundation, Inc.
8922#
8923# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008924# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8925#
8926# This program is free software; you can redistribute it and/or modify
8927# it under the terms of the GNU General Public License as published by
8928# the Free Software Foundation; either version 2 of the License, or
8929# (at your option) any later version.
8930#
8931# This program is distributed in the hope that it will be useful, but
8932# WITHOUT ANY WARRANTY; without even the implied warranty of
8933# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8934# General Public License for more details.
8935#
8936# You should have received a copy of the GNU General Public License
8937# along with this program; if not, write to the Free Software
8938# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8939#
8940# As a special exception to the GNU General Public License, if you
8941# distribute this file as part of a program that contains a
8942# configuration script generated by Autoconf, you may include it under
8943# the same distribution terms that you use for the rest of that program.
8944
John Criswell47fdd832003-07-14 16:52:07 +00008945# A sed program that does not truncate output.
8946SED=$lt_SED
8947
John Criswell7a73b802003-06-30 21:59:07 +00008948# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008949Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008950
8951# The HP-UX ksh and POSIX shell print the target directory to stdout
8952# if CDPATH is set.
8953if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8954
John Criswell47fdd832003-07-14 16:52:07 +00008955# The names of the tagged configurations supported by this script.
8956available_tags=
8957
John Criswell7a73b802003-06-30 21:59:07 +00008958# ### BEGIN LIBTOOL CONFIG
8959
8960# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8961
8962# Shell to use when invoking shell scripts.
8963SHELL=$lt_SHELL
8964
8965# Whether or not to build shared libraries.
8966build_libtool_libs=$enable_shared
8967
8968# Whether or not to build static libraries.
8969build_old_libs=$enable_static
8970
8971# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008972build_libtool_need_lc=$archive_cmds_need_lc
8973
8974# Whether or not to disallow shared libs when runtime libs are static
8975allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008976
8977# Whether or not to optimize for fast installation.
8978fast_install=$enable_fast_install
8979
8980# The host system.
8981host_alias=$host_alias
8982host=$host
8983
8984# An echo program that does not interpret backslashes.
8985echo=$lt_echo
8986
8987# The archiver.
8988AR=$lt_AR
8989AR_FLAGS=$lt_AR_FLAGS
8990
John Criswell47fdd832003-07-14 16:52:07 +00008991# A C compiler.
8992LTCC=$lt_LTCC
8993
8994# A language-specific compiler.
8995CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008996
8997# Is the compiler the GNU C compiler?
8998with_gcc=$GCC
8999
John Criswell47fdd832003-07-14 16:52:07 +00009000# An ERE matcher.
9001EGREP=$lt_EGREP
9002
John Criswell7a73b802003-06-30 21:59:07 +00009003# The linker used to build libraries.
9004LD=$lt_LD
9005
9006# Whether we need hard or soft links.
9007LN_S=$lt_LN_S
9008
9009# A BSD-compatible nm program.
9010NM=$lt_NM
9011
9012# A symbol stripping program
9013STRIP=$STRIP
9014
9015# Used to examine libraries when file_magic_cmd begins "file"
9016MAGIC_CMD=$MAGIC_CMD
9017
9018# Used on cygwin: DLL creation program.
9019DLLTOOL="$DLLTOOL"
9020
9021# Used on cygwin: object dumper.
9022OBJDUMP="$OBJDUMP"
9023
9024# Used on cygwin: assembler.
9025AS="$AS"
9026
9027# The name of the directory that contains temporary libtool files.
9028objdir=$objdir
9029
9030# How to create reloadable object files.
9031reload_flag=$lt_reload_flag
9032reload_cmds=$lt_reload_cmds
9033
9034# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009035wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009036
9037# Object file suffix (normally "o").
9038objext="$ac_objext"
9039
9040# Old archive suffix (normally "a").
9041libext="$libext"
9042
John Criswell47fdd832003-07-14 16:52:07 +00009043# Shared library suffix (normally ".so").
9044shrext='$shrext'
9045
John Criswell7a73b802003-06-30 21:59:07 +00009046# Executable file suffix (normally "").
9047exeext="$exeext"
9048
9049# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009050pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009051pic_mode=$pic_mode
9052
John Criswell47fdd832003-07-14 16:52:07 +00009053# What is the maximum length of a command?
9054max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009055
John Criswell47fdd832003-07-14 16:52:07 +00009056# Does compiler simultaneously support -c and -o options?
9057compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009058
9059# Must we lock files when doing compilation ?
9060need_locks=$lt_need_locks
9061
9062# Do we need the lib prefix for modules?
9063need_lib_prefix=$need_lib_prefix
9064
9065# Do we need a version for libraries?
9066need_version=$need_version
9067
9068# Whether dlopen is supported.
9069dlopen_support=$enable_dlopen
9070
9071# Whether dlopen of programs is supported.
9072dlopen_self=$enable_dlopen_self
9073
9074# Whether dlopen of statically linked programs is supported.
9075dlopen_self_static=$enable_dlopen_self_static
9076
9077# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009078link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009079
9080# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009081no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009082
9083# Compiler flag to allow reflexive dlopens.
9084export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9085
9086# Compiler flag to generate shared objects directly from archives.
9087whole_archive_flag_spec=$lt_whole_archive_flag_spec
9088
9089# Compiler flag to generate thread-safe objects.
9090thread_safe_flag_spec=$lt_thread_safe_flag_spec
9091
9092# Library versioning type.
9093version_type=$version_type
9094
9095# Format of library name prefix.
9096libname_spec=$lt_libname_spec
9097
9098# List of archive names. First name is the real one, the rest are links.
9099# The last name is the one that the linker finds with -lNAME.
9100library_names_spec=$lt_library_names_spec
9101
9102# The coded name of the library, if different from the real name.
9103soname_spec=$lt_soname_spec
9104
9105# Commands used to build and install an old-style archive.
9106RANLIB=$lt_RANLIB
9107old_archive_cmds=$lt_old_archive_cmds
9108old_postinstall_cmds=$lt_old_postinstall_cmds
9109old_postuninstall_cmds=$lt_old_postuninstall_cmds
9110
9111# Create an old-style archive from a shared archive.
9112old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9113
9114# Create a temporary old-style archive to link instead of a shared archive.
9115old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9116
9117# Commands used to build and install a shared archive.
9118archive_cmds=$lt_archive_cmds
9119archive_expsym_cmds=$lt_archive_expsym_cmds
9120postinstall_cmds=$lt_postinstall_cmds
9121postuninstall_cmds=$lt_postuninstall_cmds
9122
John Criswell47fdd832003-07-14 16:52:07 +00009123# Commands used to build a loadable module (assumed same as above if empty)
9124module_cmds=$lt_module_cmds
9125module_expsym_cmds=$lt_module_expsym_cmds
9126
John Criswell7a73b802003-06-30 21:59:07 +00009127# Commands to strip libraries.
9128old_striplib=$lt_old_striplib
9129striplib=$lt_striplib
9130
John Criswell47fdd832003-07-14 16:52:07 +00009131# Dependencies to place before the objects being linked to create a
9132# shared library.
9133predep_objects=$lt_predep_objects
9134
9135# Dependencies to place after the objects being linked to create a
9136# shared library.
9137postdep_objects=$lt_postdep_objects
9138
9139# Dependencies to place before the objects being linked to create a
9140# shared library.
9141predeps=$lt_predeps
9142
9143# Dependencies to place after the objects being linked to create a
9144# shared library.
9145postdeps=$lt_postdeps
9146
9147# The library search path used internally by the compiler when linking
9148# a shared library.
9149compiler_lib_search_path=$lt_compiler_lib_search_path
9150
John Criswell7a73b802003-06-30 21:59:07 +00009151# Method to check whether dependent libraries are shared objects.
9152deplibs_check_method=$lt_deplibs_check_method
9153
9154# Command to use when deplibs_check_method == file_magic.
9155file_magic_cmd=$lt_file_magic_cmd
9156
9157# Flag that allows shared libraries with undefined symbols to be built.
9158allow_undefined_flag=$lt_allow_undefined_flag
9159
9160# Flag that forces no undefined symbols.
9161no_undefined_flag=$lt_no_undefined_flag
9162
9163# Commands used to finish a libtool library installation in a directory.
9164finish_cmds=$lt_finish_cmds
9165
9166# Same as above, but a single script fragment to be evaled but not shown.
9167finish_eval=$lt_finish_eval
9168
9169# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009170global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009171
9172# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009173global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009174
9175# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009176global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009177
9178# This is the shared library runtime path variable.
9179runpath_var=$runpath_var
9180
9181# This is the shared library path variable.
9182shlibpath_var=$shlibpath_var
9183
9184# Is shlibpath searched before the hard-coded library search path?
9185shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9186
9187# How to hardcode a shared library path into an executable.
9188hardcode_action=$hardcode_action
9189
9190# Whether we should hardcode library paths into libraries.
9191hardcode_into_libs=$hardcode_into_libs
9192
9193# Flag to hardcode \$libdir into a binary during linking.
9194# This must work even if \$libdir does not exist.
9195hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9196
John Criswell47fdd832003-07-14 16:52:07 +00009197# If ld is used when linking, flag to hardcode \$libdir into
9198# a binary during linking. This must work even if \$libdir does
9199# not exist.
9200hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9201
John Criswell7a73b802003-06-30 21:59:07 +00009202# Whether we need a single -rpath flag with a separated argument.
9203hardcode_libdir_separator=$lt_hardcode_libdir_separator
9204
John Criswell47fdd832003-07-14 16:52:07 +00009205# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009206# resulting binary.
9207hardcode_direct=$hardcode_direct
9208
9209# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9210# resulting binary.
9211hardcode_minus_L=$hardcode_minus_L
9212
9213# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9214# the resulting binary.
9215hardcode_shlibpath_var=$hardcode_shlibpath_var
9216
John Criswell47fdd832003-07-14 16:52:07 +00009217# Set to yes if building a shared library automatically hardcodes DIR into the library
9218# and all subsequent libraries and executables linked against it.
9219hardcode_automatic=$hardcode_automatic
9220
John Criswell7a73b802003-06-30 21:59:07 +00009221# Variables whose values should be saved in libtool wrapper scripts and
9222# restored at relink time.
9223variables_saved_for_relink="$variables_saved_for_relink"
9224
9225# Whether libtool must link a program against all its dependency libraries.
9226link_all_deplibs=$link_all_deplibs
9227
9228# Compile-time system search path for libraries
9229sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9230
9231# Run-time system search path for libraries
9232sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9233
9234# Fix the shell variable \$srcfile for the compiler.
9235fix_srcfile_path="$fix_srcfile_path"
9236
9237# Set to yes if exported symbols are required.
9238always_export_symbols=$always_export_symbols
9239
9240# The commands to list exported symbols.
9241export_symbols_cmds=$lt_export_symbols_cmds
9242
9243# The commands to extract the exported symbol list from a shared archive.
9244extract_expsyms_cmds=$lt_extract_expsyms_cmds
9245
9246# Symbols that should not be listed in the preloaded symbols.
9247exclude_expsyms=$lt_exclude_expsyms
9248
9249# Symbols that must always be exported.
9250include_expsyms=$lt_include_expsyms
9251
9252# ### END LIBTOOL CONFIG
9253
9254__EOF__
9255
John Criswell47fdd832003-07-14 16:52:07 +00009256
John Criswell7a73b802003-06-30 21:59:07 +00009257 case $host_os in
9258 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009259 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009260
9261# AIX sometimes has problems with the GCC collect2 program. For some
9262# reason, if we set the COLLECT_NAMES environment variable, the problems
9263# vanish in a puff of smoke.
9264if test "X${COLLECT_NAMES+set}" != Xset; then
9265 COLLECT_NAMES=
9266 export COLLECT_NAMES
9267fi
9268EOF
9269 ;;
9270 esac
9271
John Criswell7a73b802003-06-30 21:59:07 +00009272 # We use sed instead of cat because bash on DJGPP gets confused if
9273 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9274 # text mode, it properly converts lines to CR/LF. This bash problem
9275 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009276 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009277
John Criswell47fdd832003-07-14 16:52:07 +00009278 mv -f "$cfgfile" "$ofile" || \
9279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009280 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009281
9282else
9283 # If there is no Makefile yet, we rely on a make rule to execute
9284 # `config.status --recheck' to rerun these tests and create the
9285 # libtool script then.
9286 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009287fi
John Criswell7a73b802003-06-30 21:59:07 +00009288
9289
John Criswell47fdd832003-07-14 16:52:07 +00009290ac_ext=c
9291ac_cpp='$CPP $CPPFLAGS'
9292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294ac_compiler_gnu=$ac_cv_c_compiler_gnu
9295
9296CC="$lt_save_CC"
9297
9298
9299# Check whether --with-tags or --without-tags was given.
9300if test "${with_tags+set}" = set; then
9301 withval="$with_tags"
9302 tagnames="$withval"
9303fi;
9304
9305if test -f "$ltmain" && test -n "$tagnames"; then
9306 if test ! -f "${ofile}"; then
9307 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9308echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9309 fi
9310
9311 if test -z "$LTCC"; then
9312 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9313 if test -z "$LTCC"; then
9314 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9315echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9316 else
9317 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9318echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9319 fi
9320 fi
9321
9322 # Extract list of available tagged configurations in $ofile.
9323 # Note that this assumes the entire list is on one line.
9324 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9325
9326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9327 for tagname in $tagnames; do
9328 IFS="$lt_save_ifs"
9329 # Check whether tagname contains only valid characters
9330 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9331 "") ;;
9332 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9333echo "$as_me: error: invalid tag name: $tagname" >&2;}
9334 { (exit 1); exit 1; }; }
9335 ;;
9336 esac
9337
9338 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9339 then
9340 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9341echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9342 { (exit 1); exit 1; }; }
9343 fi
9344
9345 # Update the list of available tags.
9346 if test -n "$tagname"; then
9347 echo appending configuration tag \"$tagname\" to $ofile
9348
9349 case $tagname in
9350 CXX)
9351 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9352 ac_ext=cc
9353ac_cpp='$CXXCPP $CPPFLAGS'
9354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9357
9358
9359
9360
9361archive_cmds_need_lc_CXX=no
9362allow_undefined_flag_CXX=
9363always_export_symbols_CXX=no
9364archive_expsym_cmds_CXX=
9365export_dynamic_flag_spec_CXX=
9366hardcode_direct_CXX=no
9367hardcode_libdir_flag_spec_CXX=
9368hardcode_libdir_flag_spec_ld_CXX=
9369hardcode_libdir_separator_CXX=
9370hardcode_minus_L_CXX=no
9371hardcode_automatic_CXX=no
9372module_cmds_CXX=
9373module_expsym_cmds_CXX=
9374link_all_deplibs_CXX=unknown
9375old_archive_cmds_CXX=$old_archive_cmds
9376no_undefined_flag_CXX=
9377whole_archive_flag_spec_CXX=
9378enable_shared_with_static_runtimes_CXX=no
9379
9380# Dependencies to place before and after the object being linked:
9381predep_objects_CXX=
9382postdep_objects_CXX=
9383predeps_CXX=
9384postdeps_CXX=
9385compiler_lib_search_path_CXX=
9386
9387# Source file extension for C++ test sources.
9388ac_ext=cc
9389
9390# Object file extension for compiled C++ test sources.
9391objext=o
9392objext_CXX=$objext
9393
9394# Code to be used in simple compile tests
9395lt_simple_compile_test_code="int some_variable = 0;\n"
9396
9397# Code to be used in simple link tests
9398lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9399
9400# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9401
9402# If no C compiler was specified, use CC.
9403LTCC=${LTCC-"$CC"}
9404
9405# Allow CC to be a program name with arguments.
9406compiler=$CC
9407
9408
9409# Allow CC to be a program name with arguments.
9410lt_save_CC=$CC
9411lt_save_LD=$LD
9412lt_save_GCC=$GCC
9413GCC=$GXX
9414lt_save_with_gnu_ld=$with_gnu_ld
9415lt_save_path_LD=$lt_cv_path_LD
9416if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9417 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9418else
9419 unset lt_cv_prog_gnu_ld
9420fi
9421if test -n "${lt_cv_path_LDCXX+set}"; then
9422 lt_cv_path_LD=$lt_cv_path_LDCXX
9423else
9424 unset lt_cv_path_LD
9425fi
9426test -z "${LDCXX+set}" || LD=$LDCXX
9427CC=${CXX-"c++"}
9428compiler=$CC
9429compiler_CXX=$CC
9430cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9431
9432# We don't want -fno-exception wen compiling C++ code, so set the
9433# no_builtin_flag separately
9434if test "$GXX" = yes; then
9435 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9436else
9437 lt_prog_compiler_no_builtin_flag_CXX=
9438fi
9439
9440if test "$GXX" = yes; then
9441 # Set up default GNU C++ configuration
9442
9443
9444# Check whether --with-gnu-ld or --without-gnu-ld was given.
9445if test "${with_gnu_ld+set}" = set; then
9446 withval="$with_gnu_ld"
9447 test "$withval" = no || with_gnu_ld=yes
9448else
9449 with_gnu_ld=no
9450fi;
9451ac_prog=ld
9452if test "$GCC" = yes; then
9453 # Check if gcc -print-prog-name=ld gives a path.
9454 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9455echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9456 case $host in
9457 *-*-mingw*)
9458 # gcc leaves a trailing carriage return which upsets mingw
9459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9460 *)
9461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9462 esac
9463 case $ac_prog in
9464 # Accept absolute paths.
9465 [\\/]* | ?:[\\/]*)
9466 re_direlt='/[^/][^/]*/\.\./'
9467 # Canonicalize the path of ld
9468 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9469 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9470 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9471 done
9472 test -z "$LD" && LD="$ac_prog"
9473 ;;
9474 "")
9475 # If it fails, then pretend we aren't using GCC.
9476 ac_prog=ld
9477 ;;
9478 *)
9479 # If it is relative, then search for the first ld in PATH.
9480 with_gnu_ld=unknown
9481 ;;
9482 esac
9483elif test "$with_gnu_ld" = yes; then
9484 echo "$as_me:$LINENO: checking for GNU ld" >&5
9485echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9486else
9487 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9488echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9489fi
9490if test "${lt_cv_path_LD+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492else
9493 if test -z "$LD"; then
9494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9495 for ac_dir in $PATH; do
9496 IFS="$lt_save_ifs"
9497 test -z "$ac_dir" && ac_dir=.
9498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9499 lt_cv_path_LD="$ac_dir/$ac_prog"
9500 # Check to see if the program is GNU ld. I'd rather use --version,
9501 # but apparently some GNU ld's only accept -v.
9502 # Break only if it was the GNU/non-GNU ld that we prefer.
9503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9504 *GNU* | *'with BFD'*)
9505 test "$with_gnu_ld" != no && break
9506 ;;
9507 *)
9508 test "$with_gnu_ld" != yes && break
9509 ;;
9510 esac
9511 fi
9512 done
9513 IFS="$lt_save_ifs"
9514else
9515 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9516fi
9517fi
9518
9519LD="$lt_cv_path_LD"
9520if test -n "$LD"; then
9521 echo "$as_me:$LINENO: result: $LD" >&5
9522echo "${ECHO_T}$LD" >&6
9523else
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526fi
9527test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9528echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9529 { (exit 1); exit 1; }; }
9530echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9531echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9532if test "${lt_cv_prog_gnu_ld+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534else
9535 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9536case `"$LD" -v 2>&1 </dev/null` in
9537*GNU* | *'with BFD'*)
9538 lt_cv_prog_gnu_ld=yes
9539 ;;
9540*)
9541 lt_cv_prog_gnu_ld=no
9542 ;;
9543esac
9544fi
9545echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9546echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9547with_gnu_ld=$lt_cv_prog_gnu_ld
9548
9549
9550
9551 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9552 # archiving commands below assume that GNU ld is being used.
9553 if test "$with_gnu_ld" = yes; then
9554 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555 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'
9556
9557 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9558 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9559
9560 # If archive_cmds runs LD, not CC, wlarc should be empty
9561 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9562 # investigate it a little bit more. (MM)
9563 wlarc='${wl}'
9564
9565 # ancient GNU ld didn't support --whole-archive et. al.
9566 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9567 grep 'no-whole-archive' > /dev/null; then
9568 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9569 else
9570 whole_archive_flag_spec_CXX=
9571 fi
9572 else
9573 with_gnu_ld=no
9574 wlarc=
9575
9576 # A generic and very simple default shared library creation
9577 # command for GNU C++ for the case where it uses the native
9578 # linker, instead of GNU ld. If possible, this setting should
9579 # overridden to take advantage of the native linker features on
9580 # the platform it is being used on.
9581 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9582 fi
9583
9584 # Commands to make compiler produce verbose output that lists
9585 # what "hidden" libraries, object files and flags are used when
9586 # linking a shared library.
9587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9588
9589else
9590 GXX=no
9591 with_gnu_ld=no
9592 wlarc=
9593fi
9594
9595# PORTME: fill in a description of your system's C++ link characteristics
9596echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9597echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9598ld_shlibs_CXX=yes
9599case $host_os in
9600 aix3*)
9601 # FIXME: insert proper C++ library support
9602 ld_shlibs_CXX=no
9603 ;;
9604 aix4* | aix5*)
9605 if test "$host_cpu" = ia64; then
9606 # On IA64, the linker does run time linking by default, so we don't
9607 # have to do anything special.
9608 aix_use_runtimelinking=no
9609 exp_sym_flag='-Bexport'
9610 no_entry_flag=""
9611 else
9612 aix_use_runtimelinking=no
9613
9614 # Test if we are trying to use run time linking or normal
9615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616 # need to do runtime linking.
9617 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9618 for ld_flag in $LDFLAGS; do
9619 case $ld_flag in
9620 *-brtl*)
9621 aix_use_runtimelinking=yes
9622 break
9623 ;;
9624 esac
9625 done
9626 esac
9627
9628 exp_sym_flag='-bexport'
9629 no_entry_flag='-bnoentry'
9630 fi
9631
9632 # When large executables or shared objects are built, AIX ld can
9633 # have problems creating the table of contents. If linking a library
9634 # or program results in "error TOC overflow" add -mminimal-toc to
9635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9637
9638 archive_cmds_CXX=''
9639 hardcode_direct_CXX=yes
9640 hardcode_libdir_separator_CXX=':'
9641 link_all_deplibs_CXX=yes
9642
9643 if test "$GXX" = yes; then
9644 case $host_os in aix4.012|aix4.012.*)
9645 # We only want to do this on AIX 4.2 and lower, the check
9646 # below for broken collect2 doesn't work under 4.3+
9647 collect2name=`${CC} -print-prog-name=collect2`
9648 if test -f "$collect2name" && \
9649 strings "$collect2name" | grep resolve_lib_name >/dev/null
9650 then
9651 # We have reworked collect2
9652 hardcode_direct_CXX=yes
9653 else
9654 # We have old collect2
9655 hardcode_direct_CXX=unsupported
9656 # It fails to find uninstalled libraries when the uninstalled
9657 # path is not listed in the libpath. Setting hardcode_minus_L
9658 # to unsupported forces relinking
9659 hardcode_minus_L_CXX=yes
9660 hardcode_libdir_flag_spec_CXX='-L$libdir'
9661 hardcode_libdir_separator_CXX=
9662 fi
9663 esac
9664 shared_flag='-shared'
9665 else
9666 # not using gcc
9667 if test "$host_cpu" = ia64; then
9668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9669 # chokes on -Wl,-G. The following line is correct:
9670 shared_flag='-G'
9671 else
9672 if test "$aix_use_runtimelinking" = yes; then
9673 shared_flag='${wl}-G'
9674 else
9675 shared_flag='${wl}-bM:SRE'
9676 fi
9677 fi
9678 fi
9679
9680 # It seems that -bexpall does not export symbols beginning with
9681 # underscore (_), so it is better to generate a list of symbols to export.
9682 always_export_symbols_CXX=yes
9683 if test "$aix_use_runtimelinking" = yes; then
9684 # Warning - without using the other runtime loading flags (-brtl),
9685 # -berok will link without error, but may produce a broken library.
9686 allow_undefined_flag_CXX='-berok'
9687 # Determine the default libpath from the value encoded in an empty executable.
9688 cat >conftest.$ac_ext <<_ACEOF
9689#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009695
John Criswell47fdd832003-07-14 16:52:07 +00009696int
9697main ()
9698{
9699
9700 ;
9701 return 0;
9702}
9703_ACEOF
9704rm -f conftest.$ac_objext conftest$ac_exeext
9705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9706 (eval $ac_link) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -s conftest$ac_exeext'
9711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 (eval $ac_try) 2>&5
9713 ac_status=$?
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; }; then
9716
9717aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9718}'`
9719# Check for a 64-bit object if we didn't find anything.
9720if 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; }
9721}'`; fi
9722else
9723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009724sed 's/^/| /' conftest.$ac_ext >&5
9725
John Criswell47fdd832003-07-14 16:52:07 +00009726fi
9727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9729
9730 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9731
9732 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"
9733 else
9734 if test "$host_cpu" = ia64; then
9735 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9736 allow_undefined_flag_CXX="-z nodefs"
9737 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"
9738 else
9739 # Determine the default libpath from the value encoded in an empty executable.
9740 cat >conftest.$ac_ext <<_ACEOF
9741#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009742/* confdefs.h. */
9743_ACEOF
9744cat confdefs.h >>conftest.$ac_ext
9745cat >>conftest.$ac_ext <<_ACEOF
9746/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009747
John Criswell47fdd832003-07-14 16:52:07 +00009748int
9749main ()
9750{
9751
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764 (eval $ac_try) 2>&5
9765 ac_status=$?
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768
9769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9770}'`
9771# Check for a 64-bit object if we didn't find anything.
9772if 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; }
9773}'`; fi
9774else
9775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009776sed 's/^/| /' conftest.$ac_ext >&5
9777
John Criswell47fdd832003-07-14 16:52:07 +00009778fi
9779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9781
9782 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9783 # Warning - without using the other run time loading flags,
9784 # -berok will link without error, but may produce a broken library.
9785 no_undefined_flag_CXX=' ${wl}-bernotok'
9786 allow_undefined_flag_CXX=' ${wl}-berok'
9787 # -bexpall does not export symbols beginning with underscore (_)
9788 always_export_symbols_CXX=yes
9789 # Exported symbols can be pulled into shared objects from archives
9790 whole_archive_flag_spec_CXX=' '
9791 archive_cmds_need_lc_CXX=yes
9792 # This is similar to how AIX traditionally builds it's shared libraries.
9793 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'
9794 fi
9795 fi
9796 ;;
9797 chorus*)
9798 case $cc_basename in
9799 *)
9800 # FIXME: insert proper C++ library support
9801 ld_shlibs_CXX=no
9802 ;;
9803 esac
9804 ;;
9805
9806 cygwin* | mingw* | pw32*)
9807 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9808 # as there is no search path for DLLs.
9809 hardcode_libdir_flag_spec_CXX='-L$libdir'
9810 allow_undefined_flag_CXX=unsupported
9811 always_export_symbols_CXX=no
9812 enable_shared_with_static_runtimes_CXX=yes
9813
9814 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9815 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'
9816 # If the export-symbols file already is a .def file (1st line
9817 # is EXPORTS), use it as is; otherwise, prepend...
9818 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9819 cp $export_symbols $output_objdir/$soname.def;
9820 else
9821 echo EXPORTS > $output_objdir/$soname.def;
9822 cat $export_symbols >> $output_objdir/$soname.def;
9823 fi~
9824 $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'
9825 else
9826 ld_shlibs_CXX=no
9827 fi
9828 ;;
9829
9830 darwin* | rhapsody*)
9831 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9832 archive_cmds_need_lc_CXX=no
9833 case "$host_os" in
9834 rhapsody* | darwin1.[012])
9835 allow_undefined_flag_CXX='-undefined suppress'
9836 ;;
9837 *) # Darwin 1.3 on
9838 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9839 ;;
9840 esac
9841 lt_int_apple_cc_single_mod=no
9842 output_verbose_link_cmd='echo'
9843 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9844 lt_int_apple_cc_single_mod=yes
9845 fi
9846 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9847 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9848 else
9849 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'
9850 fi
9851 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9852
9853 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9854 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9855 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}'
9856 else
9857 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}'
9858 fi
9859 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}'
9860 hardcode_direct_CXX=no
9861 hardcode_automatic_CXX=yes
9862 hardcode_shlibpath_var_CXX=unsupported
9863 whole_archive_flag_spec_CXX='-all_load $convenience'
9864 link_all_deplibs_CXX=yes
9865 fi
9866 ;;
9867
9868 dgux*)
9869 case $cc_basename in
9870 ec++)
9871 # FIXME: insert proper C++ library support
9872 ld_shlibs_CXX=no
9873 ;;
9874 ghcx)
9875 # Green Hills C++ Compiler
9876 # FIXME: insert proper C++ library support
9877 ld_shlibs_CXX=no
9878 ;;
9879 *)
9880 # FIXME: insert proper C++ library support
9881 ld_shlibs_CXX=no
9882 ;;
9883 esac
9884 ;;
9885 freebsd12*)
9886 # C++ shared libraries reported to be fairly broken before switch to ELF
9887 ld_shlibs_CXX=no
9888 ;;
9889 freebsd-elf*)
9890 archive_cmds_need_lc_CXX=no
9891 ;;
9892 freebsd*)
9893 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9894 # conventions
9895 ld_shlibs_CXX=yes
9896 ;;
9897 gnu*)
9898 ;;
9899 hpux9*)
9900 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9901 hardcode_libdir_separator_CXX=:
9902 export_dynamic_flag_spec_CXX='${wl}-E'
9903 hardcode_direct_CXX=yes
9904 hardcode_minus_L_CXX=yes # Not in the search PATH,
9905 # but as the default
9906 # location of the library.
9907
9908 case $cc_basename in
9909 CC)
9910 # FIXME: insert proper C++ library support
9911 ld_shlibs_CXX=no
9912 ;;
9913 aCC)
9914 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'
9915 # Commands to make compiler produce verbose output that lists
9916 # what "hidden" libraries, object files and flags are used when
9917 # linking a shared library.
9918 #
9919 # There doesn't appear to be a way to prevent this compiler from
9920 # explicitly linking system object files so we need to strip them
9921 # from the output so that they don't get included in the library
9922 # dependencies.
9923 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'
9924 ;;
9925 *)
9926 if test "$GXX" = yes; then
9927 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'
9928 else
9929 # FIXME: insert proper C++ library support
9930 ld_shlibs_CXX=no
9931 fi
9932 ;;
9933 esac
9934 ;;
9935 hpux10*|hpux11*)
9936 if test $with_gnu_ld = no; then
9937 case "$host_cpu" in
9938 hppa*64*)
9939 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9940 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9941 hardcode_libdir_separator_CXX=:
9942 ;;
9943 ia64*)
9944 hardcode_libdir_flag_spec_CXX='-L$libdir'
9945 ;;
9946 *)
9947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9948 hardcode_libdir_separator_CXX=:
9949 export_dynamic_flag_spec_CXX='${wl}-E'
9950 ;;
9951 esac
9952 fi
9953 case "$host_cpu" in
9954 hppa*64*)
9955 hardcode_direct_CXX=no
9956 hardcode_shlibpath_var_CXX=no
9957 ;;
9958 ia64*)
9959 hardcode_direct_CXX=no
9960 hardcode_shlibpath_var_CXX=no
9961 hardcode_minus_L_CXX=yes # Not in the search PATH,
9962 # but as the default
9963 # location of the library.
9964 ;;
9965 *)
9966 hardcode_direct_CXX=yes
9967 hardcode_minus_L_CXX=yes # Not in the search PATH,
9968 # but as the default
9969 # location of the library.
9970 ;;
9971 esac
9972
9973 case $cc_basename in
9974 CC)
9975 # FIXME: insert proper C++ library support
9976 ld_shlibs_CXX=no
9977 ;;
9978 aCC)
9979 case "$host_cpu" in
9980 hppa*64*|ia64*)
9981 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9982 ;;
9983 *)
9984 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9985 ;;
9986 esac
9987 # Commands to make compiler produce verbose output that lists
9988 # what "hidden" libraries, object files and flags are used when
9989 # linking a shared library.
9990 #
9991 # There doesn't appear to be a way to prevent this compiler from
9992 # explicitly linking system object files so we need to strip them
9993 # from the output so that they don't get included in the library
9994 # dependencies.
9995 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'
9996 ;;
9997 *)
9998 if test "$GXX" = yes; then
9999 if test $with_gnu_ld = no; then
10000 case "$host_cpu" in
10001 ia64*|hppa*64*)
10002 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10003 ;;
10004 *)
10005 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'
10006 ;;
10007 esac
10008 fi
10009 else
10010 # FIXME: insert proper C++ library support
10011 ld_shlibs_CXX=no
10012 fi
10013 ;;
10014 esac
10015 ;;
10016 irix5* | irix6*)
10017 case $cc_basename in
10018 CC)
10019 # SGI C++
10020 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'
10021
10022 # Archives containing C++ object files must be created using
10023 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10024 # necessary to make sure instantiated templates are included
10025 # in the archive.
10026 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10027 ;;
10028 *)
10029 if test "$GXX" = yes; then
10030 if test "$with_gnu_ld" = no; then
10031 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'
10032 else
10033 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'
10034 fi
10035 fi
10036 link_all_deplibs_CXX=yes
10037 ;;
10038 esac
10039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10040 hardcode_libdir_separator_CXX=:
10041 ;;
10042 linux*)
10043 case $cc_basename in
10044 KCC)
10045 # Kuck and Associates, Inc. (KAI) C++ Compiler
10046
10047 # KCC will only create a shared library if the output file
10048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10049 # to its proper name (with version) after linking.
10050 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'
10051 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'
10052 # Commands to make compiler produce verbose output that lists
10053 # what "hidden" libraries, object files and flags are used when
10054 # linking a shared library.
10055 #
10056 # There doesn't appear to be a way to prevent this compiler from
10057 # explicitly linking system object files so we need to strip them
10058 # from the output so that they don't get included in the library
10059 # dependencies.
10060 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'
10061
10062 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10064
10065 # Archives containing C++ object files must be created using
10066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10067 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10068 ;;
10069 icpc)
10070 # Intel C++
10071 with_gnu_ld=yes
10072 archive_cmds_need_lc_CXX=no
10073 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10074 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'
10075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10077 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10078 ;;
10079 cxx)
10080 # Compaq C++
10081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082 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'
10083
10084 runpath_var=LD_RUN_PATH
10085 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10086 hardcode_libdir_separator_CXX=:
10087
10088 # Commands to make compiler produce verbose output that lists
10089 # what "hidden" libraries, object files and flags are used when
10090 # linking a shared library.
10091 #
10092 # There doesn't appear to be a way to prevent this compiler from
10093 # explicitly linking system object files so we need to strip them
10094 # from the output so that they don't get included in the library
10095 # dependencies.
10096 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'
10097 ;;
10098 esac
10099 ;;
10100 lynxos*)
10101 # FIXME: insert proper C++ library support
10102 ld_shlibs_CXX=no
10103 ;;
10104 m88k*)
10105 # FIXME: insert proper C++ library support
10106 ld_shlibs_CXX=no
10107 ;;
10108 mvs*)
10109 case $cc_basename in
10110 cxx)
10111 # FIXME: insert proper C++ library support
10112 ld_shlibs_CXX=no
10113 ;;
10114 *)
10115 # FIXME: insert proper C++ library support
10116 ld_shlibs_CXX=no
10117 ;;
10118 esac
10119 ;;
10120 netbsd*)
10121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10122 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10123 wlarc=
10124 hardcode_libdir_flag_spec_CXX='-R$libdir'
10125 hardcode_direct_CXX=yes
10126 hardcode_shlibpath_var_CXX=no
10127 fi
10128 # Workaround some broken pre-1.5 toolchains
10129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10130 ;;
10131 osf3*)
10132 case $cc_basename in
10133 KCC)
10134 # Kuck and Associates, Inc. (KAI) C++ Compiler
10135
10136 # KCC will only create a shared library if the output file
10137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10138 # to its proper name (with version) after linking.
10139 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'
10140
10141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10142 hardcode_libdir_separator_CXX=:
10143
10144 # Archives containing C++ object files must be created using
10145 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10146 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10147
10148 ;;
10149 RCC)
10150 # Rational C++ 2.4.1
10151 # FIXME: insert proper C++ library support
10152 ld_shlibs_CXX=no
10153 ;;
10154 cxx)
10155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10156 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'
10157
10158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10159 hardcode_libdir_separator_CXX=:
10160
10161 # Commands to make compiler produce verbose output that lists
10162 # what "hidden" libraries, object files and flags are used when
10163 # linking a shared library.
10164 #
10165 # There doesn't appear to be a way to prevent this compiler from
10166 # explicitly linking system object files so we need to strip them
10167 # from the output so that they don't get included in the library
10168 # dependencies.
10169 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'
10170 ;;
10171 *)
10172 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10173 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10174 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'
10175
10176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10177 hardcode_libdir_separator_CXX=:
10178
10179 # Commands to make compiler produce verbose output that lists
10180 # what "hidden" libraries, object files and flags are used when
10181 # linking a shared library.
10182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10183
10184 else
10185 # FIXME: insert proper C++ library support
10186 ld_shlibs_CXX=no
10187 fi
10188 ;;
10189 esac
10190 ;;
10191 osf4* | osf5*)
10192 case $cc_basename in
10193 KCC)
10194 # Kuck and Associates, Inc. (KAI) C++ Compiler
10195
10196 # KCC will only create a shared library if the output file
10197 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10198 # to its proper name (with version) after linking.
10199 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'
10200
10201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10202 hardcode_libdir_separator_CXX=:
10203
10204 # Archives containing C++ object files must be created using
10205 # the KAI C++ compiler.
10206 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10207 ;;
10208 RCC)
10209 # Rational C++ 2.4.1
10210 # FIXME: insert proper C++ library support
10211 ld_shlibs_CXX=no
10212 ;;
10213 cxx)
10214 allow_undefined_flag_CXX=' -expect_unresolved \*'
10215 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'
10216 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10217 echo "-hidden">> $lib.exp~
10218 $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~
10219 $rm $lib.exp'
10220
10221 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10222 hardcode_libdir_separator_CXX=:
10223
10224 # Commands to make compiler produce verbose output that lists
10225 # what "hidden" libraries, object files and flags are used when
10226 # linking a shared library.
10227 #
10228 # There doesn't appear to be a way to prevent this compiler from
10229 # explicitly linking system object files so we need to strip them
10230 # from the output so that they don't get included in the library
10231 # dependencies.
10232 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'
10233 ;;
10234 *)
10235 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10236 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10237 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'
10238
10239 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10240 hardcode_libdir_separator_CXX=:
10241
10242 # Commands to make compiler produce verbose output that lists
10243 # what "hidden" libraries, object files and flags are used when
10244 # linking a shared library.
10245 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10246
10247 else
10248 # FIXME: insert proper C++ library support
10249 ld_shlibs_CXX=no
10250 fi
10251 ;;
10252 esac
10253 ;;
10254 psos*)
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 ;;
10258 sco*)
10259 archive_cmds_need_lc_CXX=no
10260 case $cc_basename in
10261 CC)
10262 # FIXME: insert proper C++ library support
10263 ld_shlibs_CXX=no
10264 ;;
10265 *)
10266 # FIXME: insert proper C++ library support
10267 ld_shlibs_CXX=no
10268 ;;
10269 esac
10270 ;;
10271 sunos4*)
10272 case $cc_basename in
10273 CC)
10274 # Sun C++ 4.x
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 ;;
10278 lcc)
10279 # Lucid
10280 # FIXME: insert proper C++ library support
10281 ld_shlibs_CXX=no
10282 ;;
10283 *)
10284 # FIXME: insert proper C++ library support
10285 ld_shlibs_CXX=no
10286 ;;
10287 esac
10288 ;;
10289 solaris*)
10290 case $cc_basename in
10291 CC)
10292 # Sun C++ 4.2, 5.x and Centerline C++
10293 no_undefined_flag_CXX=' -zdefs'
10294 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10295 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10296 $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'
10297
10298 hardcode_libdir_flag_spec_CXX='-R$libdir'
10299 hardcode_shlibpath_var_CXX=no
10300 case $host_os in
10301 solaris2.0-5 | solaris2.0-5.*) ;;
10302 *)
10303 # The C++ compiler is used as linker so we must use $wl
10304 # flag to pass the commands to the underlying system
10305 # linker.
10306 # Supported since Solaris 2.6 (maybe 2.5.1?)
10307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10308 ;;
10309 esac
10310 link_all_deplibs_CXX=yes
10311
10312 # Commands to make compiler produce verbose output that lists
10313 # what "hidden" libraries, object files and flags are used when
10314 # linking a shared library.
10315 #
10316 # There doesn't appear to be a way to prevent this compiler from
10317 # explicitly linking system object files so we need to strip them
10318 # from the output so that they don't get included in the library
10319 # dependencies.
10320 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'
10321
10322 # Archives containing C++ object files must be created using
10323 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10324 # necessary to make sure instantiated templates are included
10325 # in the archive.
10326 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10327 ;;
10328 gcx)
10329 # Green Hills C++ Compiler
10330 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10331
10332 # The C++ compiler must be used to create the archive.
10333 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10334 ;;
10335 *)
10336 # GNU C++ compiler with Solaris linker
10337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10338 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10339 if $CC --version | grep -v '^2\.7' > /dev/null; then
10340 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10341 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10342 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10343
10344 # Commands to make compiler produce verbose output that lists
10345 # what "hidden" libraries, object files and flags are used when
10346 # linking a shared library.
10347 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10348 else
10349 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10350 # platform.
10351 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10352 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10353 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10354
10355 # Commands to make compiler produce verbose output that lists
10356 # what "hidden" libraries, object files and flags are used when
10357 # linking a shared library.
10358 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10359 fi
10360
10361 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10362 fi
10363 ;;
10364 esac
10365 ;;
10366 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10367 archive_cmds_need_lc_CXX=no
10368 ;;
10369 tandem*)
10370 case $cc_basename in
10371 NCC)
10372 # NonStop-UX NCC 3.20
10373 # FIXME: insert proper C++ library support
10374 ld_shlibs_CXX=no
10375 ;;
10376 *)
10377 # FIXME: insert proper C++ library support
10378 ld_shlibs_CXX=no
10379 ;;
10380 esac
10381 ;;
10382 vxworks*)
10383 # FIXME: insert proper C++ library support
10384 ld_shlibs_CXX=no
10385 ;;
10386 *)
10387 # FIXME: insert proper C++ library support
10388 ld_shlibs_CXX=no
10389 ;;
10390esac
10391echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10392echo "${ECHO_T}$ld_shlibs_CXX" >&6
10393test "$ld_shlibs_CXX" = no && can_build_shared=no
10394
10395GCC_CXX="$GXX"
10396LD_CXX="$LD"
10397
10398## CAVEAT EMPTOR:
10399## There is no encapsulation within the following macros, do not change
10400## the running order or otherwise move them around unless you know exactly
10401## what you are doing...
10402
10403cat > conftest.$ac_ext <<EOF
10404class Foo
10405{
10406public:
10407 Foo (void) { a = 0; }
10408private:
10409 int a;
10410};
10411EOF
10412
10413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414 (eval $ac_compile) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; then
10418 # Parse the compiler output and extract the necessary
10419 # objects, libraries and library flags.
10420
10421 # Sentinel used to keep track of whether or not we are before
10422 # the conftest object file.
10423 pre_test_object_deps_done=no
10424
10425 # The `*' in the case matches for architectures that use `case' in
10426 # $output_verbose_cmd can trigger glob expansion during the loop
10427 # eval without this substitution.
10428 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10429
10430 for p in `eval $output_verbose_link_cmd`; do
10431 case $p in
10432
10433 -L* | -R* | -l*)
10434 # Some compilers place space between "-{L,R}" and the path.
10435 # Remove the space.
10436 if test $p = "-L" \
10437 || test $p = "-R"; then
10438 prev=$p
10439 continue
10440 else
10441 prev=
10442 fi
10443
10444 if test "$pre_test_object_deps_done" = no; then
10445 case $p in
10446 -L* | -R*)
10447 # Internal compiler library paths should come after those
10448 # provided the user. The postdeps already come after the
10449 # user supplied libs so there is no need to process them.
10450 if test -z "$compiler_lib_search_path_CXX"; then
10451 compiler_lib_search_path_CXX="${prev}${p}"
10452 else
10453 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10454 fi
10455 ;;
10456 # The "-l" case would never come before the object being
10457 # linked, so don't bother handling this case.
10458 esac
10459 else
10460 if test -z "$postdeps_CXX"; then
10461 postdeps_CXX="${prev}${p}"
10462 else
10463 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10464 fi
10465 fi
10466 ;;
10467
10468 *.$objext)
10469 # This assumes that the test object file only shows up
10470 # once in the compiler output.
10471 if test "$p" = "conftest.$objext"; then
10472 pre_test_object_deps_done=yes
10473 continue
10474 fi
10475
10476 if test "$pre_test_object_deps_done" = no; then
10477 if test -z "$predep_objects_CXX"; then
10478 predep_objects_CXX="$p"
10479 else
10480 predep_objects_CXX="$predep_objects_CXX $p"
10481 fi
10482 else
10483 if test -z "$postdep_objects_CXX"; then
10484 postdep_objects_CXX="$p"
10485 else
10486 postdep_objects_CXX="$postdep_objects_CXX $p"
10487 fi
10488 fi
10489 ;;
10490
10491 *) ;; # Ignore the rest.
10492
10493 esac
10494 done
10495
10496 # Clean up.
10497 rm -f a.out a.exe
10498else
10499 echo "libtool.m4: error: problem compiling CXX test program"
10500fi
10501
10502$rm -f confest.$objext
10503
10504case " $postdeps_CXX " in
10505*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10506esac
10507
10508lt_prog_compiler_wl_CXX=
10509lt_prog_compiler_pic_CXX=
10510lt_prog_compiler_static_CXX=
10511
10512echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10513echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10514
10515 # C++ specific cases for pic, static, wl, etc.
10516 if test "$GXX" = yes; then
10517 lt_prog_compiler_wl_CXX='-Wl,'
10518 lt_prog_compiler_static_CXX='-static'
10519
10520 case $host_os in
10521 aix*)
10522 # All AIX code is PIC.
10523 if test "$host_cpu" = ia64; then
10524 # AIX 5 now supports IA64 processor
10525 lt_prog_compiler_static_CXX='-Bstatic'
10526 fi
10527 ;;
10528 amigaos*)
10529 # FIXME: we need at least 68020 code to build shared libraries, but
10530 # adding the `-m68020' flag to GCC prevents building anything better,
10531 # like `-m68040'.
10532 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10533 ;;
10534 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10535 # PIC is the default for these OSes.
10536 ;;
10537 mingw* | os2* | pw32*)
10538 # This hack is so that the source file can tell whether it is being
10539 # built for inclusion in a dll (and should export symbols for example).
10540 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10541 ;;
10542 darwin* | rhapsody*)
10543 # PIC is the default on this platform
10544 # Common symbols not allowed in MH_DYLIB files
10545 lt_prog_compiler_pic_CXX='-fno-common'
10546 ;;
10547 *djgpp*)
10548 # DJGPP does not support shared libraries at all
10549 lt_prog_compiler_pic_CXX=
10550 ;;
10551 sysv4*MP*)
10552 if test -d /usr/nec; then
10553 lt_prog_compiler_pic_CXX=-Kconform_pic
10554 fi
10555 ;;
10556 hpux*)
10557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10558 # not for PA HP-UX.
10559 case "$host_cpu" in
10560 hppa*64*|ia64*)
10561 ;;
10562 *)
10563 lt_prog_compiler_pic_CXX='-fPIC'
10564 ;;
10565 esac
10566 ;;
10567 *)
10568 lt_prog_compiler_pic_CXX='-fPIC'
10569 ;;
10570 esac
10571 else
10572 case $host_os in
10573 aix4* | aix5*)
10574 # All AIX code is PIC.
10575 if test "$host_cpu" = ia64; then
10576 # AIX 5 now supports IA64 processor
10577 lt_prog_compiler_static_CXX='-Bstatic'
10578 else
10579 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10580 fi
10581 ;;
10582 chorus*)
10583 case $cc_basename in
10584 cxch68)
10585 # Green Hills C++ Compiler
10586 # _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"
10587 ;;
10588 esac
10589 ;;
10590 dgux*)
10591 case $cc_basename in
10592 ec++)
10593 lt_prog_compiler_pic_CXX='-KPIC'
10594 ;;
10595 ghcx)
10596 # Green Hills C++ Compiler
10597 lt_prog_compiler_pic_CXX='-pic'
10598 ;;
10599 *)
10600 ;;
10601 esac
10602 ;;
10603 freebsd*)
10604 # FreeBSD uses GNU C++
10605 ;;
10606 hpux9* | hpux10* | hpux11*)
10607 case $cc_basename in
10608 CC)
10609 lt_prog_compiler_wl_CXX='-Wl,'
10610 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10611 if test "$host_cpu" != ia64; then
10612 lt_prog_compiler_pic_CXX='+Z'
10613 fi
10614 ;;
10615 aCC)
10616 lt_prog_compiler_wl_CXX='-Wl,'
10617 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10618 case "$host_cpu" in
10619 hppa*64*|ia64*)
10620 # +Z the default
10621 ;;
10622 *)
10623 lt_prog_compiler_pic_CXX='+Z'
10624 ;;
10625 esac
10626 ;;
10627 *)
10628 ;;
10629 esac
10630 ;;
10631 irix5* | irix6* | nonstopux*)
10632 case $cc_basename in
10633 CC)
10634 lt_prog_compiler_wl_CXX='-Wl,'
10635 lt_prog_compiler_static_CXX='-non_shared'
10636 # CC pic flag -KPIC is the default.
10637 ;;
10638 *)
10639 ;;
10640 esac
10641 ;;
10642 linux*)
10643 case $cc_basename in
10644 KCC)
10645 # KAI C++ Compiler
10646 lt_prog_compiler_wl_CXX='--backend -Wl,'
10647 lt_prog_compiler_pic_CXX='-fPIC'
10648 ;;
10649 icpc)
10650 # Intel C++
10651 lt_prog_compiler_wl_CXX='-Wl,'
10652 lt_prog_compiler_pic_CXX='-KPIC'
10653 lt_prog_compiler_static_CXX='-static'
10654 ;;
10655 cxx)
10656 # Compaq C++
10657 # Make sure the PIC flag is empty. It appears that all Alpha
10658 # Linux and Compaq Tru64 Unix objects are PIC.
10659 lt_prog_compiler_pic_CXX=
10660 lt_prog_compiler_static_CXX='-non_shared'
10661 ;;
10662 *)
10663 ;;
10664 esac
10665 ;;
10666 lynxos*)
10667 ;;
10668 m88k*)
10669 ;;
10670 mvs*)
10671 case $cc_basename in
10672 cxx)
10673 lt_prog_compiler_pic_CXX='-W c,exportall'
10674 ;;
10675 *)
10676 ;;
10677 esac
10678 ;;
10679 netbsd*)
10680 ;;
10681 osf3* | osf4* | osf5*)
10682 case $cc_basename in
10683 KCC)
10684 lt_prog_compiler_wl_CXX='--backend -Wl,'
10685 ;;
10686 RCC)
10687 # Rational C++ 2.4.1
10688 lt_prog_compiler_pic_CXX='-pic'
10689 ;;
10690 cxx)
10691 # Digital/Compaq C++
10692 lt_prog_compiler_wl_CXX='-Wl,'
10693 # Make sure the PIC flag is empty. It appears that all Alpha
10694 # Linux and Compaq Tru64 Unix objects are PIC.
10695 lt_prog_compiler_pic_CXX=
10696 lt_prog_compiler_static_CXX='-non_shared'
10697 ;;
10698 *)
10699 ;;
10700 esac
10701 ;;
10702 psos*)
10703 ;;
10704 sco*)
10705 case $cc_basename in
10706 CC)
10707 lt_prog_compiler_pic_CXX='-fPIC'
10708 ;;
10709 *)
10710 ;;
10711 esac
10712 ;;
10713 solaris*)
10714 case $cc_basename in
10715 CC)
10716 # Sun C++ 4.2, 5.x and Centerline C++
10717 lt_prog_compiler_pic_CXX='-KPIC'
10718 lt_prog_compiler_static_CXX='-Bstatic'
10719 lt_prog_compiler_wl_CXX='-Qoption ld '
10720 ;;
10721 gcx)
10722 # Green Hills C++ Compiler
10723 lt_prog_compiler_pic_CXX='-PIC'
10724 ;;
10725 *)
10726 ;;
10727 esac
10728 ;;
10729 sunos4*)
10730 case $cc_basename in
10731 CC)
10732 # Sun C++ 4.x
10733 lt_prog_compiler_pic_CXX='-pic'
10734 lt_prog_compiler_static_CXX='-Bstatic'
10735 ;;
10736 lcc)
10737 # Lucid
10738 lt_prog_compiler_pic_CXX='-pic'
10739 ;;
10740 *)
10741 ;;
10742 esac
10743 ;;
10744 tandem*)
10745 case $cc_basename in
10746 NCC)
10747 # NonStop-UX NCC 3.20
10748 lt_prog_compiler_pic_CXX='-KPIC'
10749 ;;
10750 *)
10751 ;;
10752 esac
10753 ;;
10754 unixware*)
10755 ;;
10756 vxworks*)
10757 ;;
10758 *)
10759 lt_prog_compiler_can_build_shared_CXX=no
10760 ;;
10761 esac
10762 fi
10763
10764echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10765echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10766
10767#
10768# Check to make sure the PIC flag actually works.
10769#
10770if test -n "$lt_prog_compiler_pic_CXX"; then
10771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10772echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10773if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775else
10776 lt_prog_compiler_pic_works_CXX=no
10777 ac_outfile=conftest.$ac_objext
10778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10779 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10780 # Insert the option either (1) after the last *FLAGS variable, or
10781 # (2) before a word containing "conftest.", or (3) at the end.
10782 # Note that $ac_compile itself does not contain backslashes and begins
10783 # with a dollar sign (not a hyphen), so the echo should work correctly.
10784 # The option is referenced via a variable to avoid confusing sed.
10785 lt_compile=`echo "$ac_compile" | $SED \
10786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10788 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000010789 (eval echo "\"\$as_me:10789: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010790 (eval "$lt_compile" 2>conftest.err)
10791 ac_status=$?
10792 cat conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000010793 echo "$as_me:10793: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010794 if (exit $ac_status) && test -s "$ac_outfile"; then
10795 # The compiler can only warn and ignore the option if not recognized
10796 # So say no if there are warnings
10797 if test ! -s conftest.err; then
10798 lt_prog_compiler_pic_works_CXX=yes
10799 fi
10800 fi
10801 $rm conftest*
10802
10803fi
10804echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10805echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10806
10807if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10808 case $lt_prog_compiler_pic_CXX in
10809 "" | " "*) ;;
10810 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10811 esac
10812else
10813 lt_prog_compiler_pic_CXX=
10814 lt_prog_compiler_can_build_shared_CXX=no
10815fi
10816
10817fi
10818case "$host_os" in
10819 # For platforms which do not support PIC, -DPIC is meaningless:
10820 *djgpp*)
10821 lt_prog_compiler_pic_CXX=
10822 ;;
10823 *)
10824 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10825 ;;
10826esac
10827
10828echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10830if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833 lt_cv_prog_compiler_c_o_CXX=no
10834 $rm -r conftest 2>/dev/null
10835 mkdir conftest
10836 cd conftest
10837 mkdir out
10838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10839
10840 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10841 # that will create temporary files in the current directory regardless of
10842 # the output directory. Thus, making CWD read-only will cause this test
10843 # to fail, enabling locking or at least warning the user not to do parallel
10844 # builds.
10845 chmod -w .
10846
10847 lt_compiler_flag="-o out/conftest2.$ac_objext"
10848 # Insert the option either (1) after the last *FLAGS variable, or
10849 # (2) before a word containing "conftest.", or (3) at the end.
10850 # Note that $ac_compile itself does not contain backslashes and begins
10851 # with a dollar sign (not a hyphen), so the echo should work correctly.
10852 lt_compile=`echo "$ac_compile" | $SED \
10853 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10855 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000010856 (eval echo "\"\$as_me:10856: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010857 (eval "$lt_compile" 2>out/conftest.err)
10858 ac_status=$?
10859 cat out/conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000010860 echo "$as_me:10860: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10862 then
10863 # The compiler can only warn and ignore the option if not recognized
10864 # So say no if there are warnings
10865 if test ! -s out/conftest.err; then
10866 lt_cv_prog_compiler_c_o_CXX=yes
10867 fi
10868 fi
10869 chmod u+w .
10870 $rm conftest* out/*
10871 rmdir out
10872 cd ..
10873 rmdir conftest
10874 $rm conftest*
10875
10876fi
10877echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10878echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10879
10880
10881hard_links="nottested"
10882if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10883 # do not overwrite the value of need_locks provided by the user
10884 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10885echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10886 hard_links=yes
10887 $rm conftest*
10888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10889 touch conftest.a
10890 ln conftest.a conftest.b 2>&5 || hard_links=no
10891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10892 echo "$as_me:$LINENO: result: $hard_links" >&5
10893echo "${ECHO_T}$hard_links" >&6
10894 if test "$hard_links" = no; then
10895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10896echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10897 need_locks=warn
10898 fi
10899else
10900 need_locks=no
10901fi
10902
10903echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10904echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10905
10906 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10907 case $host_os in
10908 aix4* | aix5*)
10909 # If we're using GNU nm, then we don't want the "-C" option.
10910 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10912 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'
10913 else
10914 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'
10915 fi
10916 ;;
10917 pw32*)
10918 export_symbols_cmds_CXX="$ltdll_cmds"
10919 ;;
10920 cygwin* | mingw*)
10921 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10922 ;;
10923 *)
10924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10925 ;;
10926 esac
10927
10928echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10929echo "${ECHO_T}$ld_shlibs_CXX" >&6
10930test "$ld_shlibs_CXX" = no && can_build_shared=no
10931
10932variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10933if test "$GCC" = yes; then
10934 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10935fi
10936
10937#
10938# Do we need to explicitly link libc?
10939#
10940case "x$archive_cmds_need_lc_CXX" in
10941x|xyes)
10942 # Assume -lc should be added
10943 archive_cmds_need_lc_CXX=yes
10944
10945 if test "$enable_shared" = yes && test "$GCC" = yes; then
10946 case $archive_cmds_CXX in
10947 *'~'*)
10948 # FIXME: we may have to deal with multi-command sequences.
10949 ;;
10950 '$CC '*)
10951 # Test whether the compiler implicitly links with -lc since on some
10952 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10953 # to ld, don't add -lc before -lgcc.
10954 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10955echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10956 $rm conftest*
10957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10958
10959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960 (eval $ac_compile) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } 2>conftest.err; then
10964 soname=conftest
10965 lib=conftest
10966 libobjs=conftest.$ac_objext
10967 deplibs=
10968 wl=$lt_prog_compiler_wl_CXX
10969 compiler_flags=-v
10970 linker_flags=-v
10971 verstring=
10972 output_objdir=.
10973 libname=conftest
10974 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10975 allow_undefined_flag_CXX=
10976 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10977 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }
10981 then
10982 archive_cmds_need_lc_CXX=no
10983 else
10984 archive_cmds_need_lc_CXX=yes
10985 fi
10986 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10987 else
10988 cat conftest.err 1>&5
10989 fi
10990 $rm conftest*
10991 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10992echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10993 ;;
10994 esac
10995 fi
10996 ;;
10997esac
10998
10999echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11000echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11001hardcode_action_CXX=
11002if test -n "$hardcode_libdir_flag_spec_CXX" || \
11003 test -n "$runpath_var CXX" || \
11004 test "X$hardcode_automatic_CXX"="Xyes" ; then
11005
11006 # We can hardcode non-existant directories.
11007 if test "$hardcode_direct_CXX" != no &&
11008 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11009 # have to relink, otherwise we might link with an installed library
11010 # when we should be linking with a yet-to-be-installed one
11011 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11012 test "$hardcode_minus_L_CXX" != no; then
11013 # Linking always hardcodes the temporary library directory.
11014 hardcode_action_CXX=relink
11015 else
11016 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11017 hardcode_action_CXX=immediate
11018 fi
11019else
11020 # We cannot hardcode anything, or else we can only hardcode existing
11021 # directories.
11022 hardcode_action_CXX=unsupported
11023fi
11024echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11025echo "${ECHO_T}$hardcode_action_CXX" >&6
11026
11027if test "$hardcode_action_CXX" = relink; then
11028 # Fast installation is not supported
11029 enable_fast_install=no
11030elif test "$shlibpath_overrides_runpath" = yes ||
11031 test "$enable_shared" = no; then
11032 # Fast installation is not necessary
11033 enable_fast_install=needless
11034fi
11035
11036striplib=
11037old_striplib=
11038echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11039echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11040if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11041 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11042 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11043 echo "$as_me:$LINENO: result: yes" >&5
11044echo "${ECHO_T}yes" >&6
11045else
11046# FIXME - insert some real tests, host_os isn't really good enough
11047 case $host_os in
11048 darwin*)
11049 if test -n "$STRIP" ; then
11050 striplib="$STRIP -x"
11051 echo "$as_me:$LINENO: result: yes" >&5
11052echo "${ECHO_T}yes" >&6
11053 else
11054 echo "$as_me:$LINENO: result: no" >&5
11055echo "${ECHO_T}no" >&6
11056fi
11057 ;;
11058 *)
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061 ;;
11062 esac
11063fi
11064
11065echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11066echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11067library_names_spec=
11068libname_spec='lib$name'
11069soname_spec=
11070shrext=".so"
11071postinstall_cmds=
11072postuninstall_cmds=
11073finish_cmds=
11074finish_eval=
11075shlibpath_var=
11076shlibpath_overrides_runpath=unknown
11077version_type=none
11078dynamic_linker="$host_os ld.so"
11079sys_lib_dlsearch_path_spec="/lib /usr/lib"
11080if test "$GCC" = yes; then
11081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11083 # if the path contains ";" then we assume it to be the separator
11084 # otherwise default to the standard path separator (i.e. ":") - it is
11085 # assumed that no part of a normal pathname contains ";" but that should
11086 # okay in the real world where ";" in dirpaths is itself problematic.
11087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11088 else
11089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11090 fi
11091else
11092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11093fi
11094need_lib_prefix=unknown
11095hardcode_into_libs=no
11096
11097# when you set need_version to no, make sure it does not cause -set_version
11098# flags to be left without arguments
11099need_version=unknown
11100
11101case $host_os in
11102aix3*)
11103 version_type=linux
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11105 shlibpath_var=LIBPATH
11106
11107 # AIX 3 has no versioning support, so we append a major version to the name.
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 ;;
11110
11111aix4* | aix5*)
11112 version_type=linux
11113 need_lib_prefix=no
11114 need_version=no
11115 hardcode_into_libs=yes
11116 if test "$host_cpu" = ia64; then
11117 # AIX 5 supports IA64
11118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 else
11121 # With GCC up to 2.95.x, collect2 would create an import file
11122 # for dependence libraries. The import file would start with
11123 # the line `#! .'. This would cause the generated library to
11124 # depend on `.', always an invalid library. This was fixed in
11125 # development snapshots of GCC prior to 3.0.
11126 case $host_os in
11127 aix4 | aix4.[01] | aix4.[01].*)
11128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11129 echo ' yes '
11130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11131 :
11132 else
11133 can_build_shared=no
11134 fi
11135 ;;
11136 esac
11137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11138 # soname into executable. Probably we can add versioning support to
11139 # collect2, so additional links can be useful in future.
11140 if test "$aix_use_runtimelinking" = yes; then
11141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11142 # instead of lib<name>.a to let people know that these are not
11143 # typical AIX shared libraries.
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 else
11146 # We preserve .a as extension for shared libraries through AIX4.2
11147 # and later when we are not doing run time linking.
11148 library_names_spec='${libname}${release}.a $libname.a'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 fi
11151 shlibpath_var=LIBPATH
11152 fi
11153 ;;
11154
11155amigaos*)
11156 library_names_spec='$libname.ixlibrary $libname.a'
11157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11158 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'
11159 ;;
11160
11161beos*)
11162 library_names_spec='${libname}${shared_ext}'
11163 dynamic_linker="$host_os ld.so"
11164 shlibpath_var=LIBRARY_PATH
11165 ;;
11166
11167bsdi4*)
11168 version_type=linux
11169 need_version=no
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11176 # the default ld.so.conf also contains /usr/contrib/lib and
11177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11178 # libtool to hard-code these into programs
11179 ;;
11180
11181cygwin* | mingw* | pw32*)
11182 version_type=windows
11183 shrext=".dll"
11184 need_version=no
11185 need_lib_prefix=no
11186
11187 case $GCC,$host_os in
11188 yes,cygwin* | yes,mingw* | yes,pw32*)
11189 library_names_spec='$libname.dll.a'
11190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11191 postinstall_cmds='base_file=`basename \${file}`~
11192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11193 dldir=$destdir/`dirname \$dlpath`~
11194 test -d \$dldir || mkdir -p \$dldir~
11195 $install_prog $dir/$dlname \$dldir/$dlname'
11196 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11197 dlpath=$dir/\$dldll~
11198 $rm \$dlpath'
11199 shlibpath_overrides_runpath=yes
11200
11201 case $host_os in
11202 cygwin*)
11203 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11204 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11205 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11206 ;;
11207 mingw*)
11208 # MinGW DLLs use traditional 'lib' prefix
11209 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11210 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11211 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11212 # It is most probably a Windows format PATH printed by
11213 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11214 # path with ; separators, and with drive letters. We can handle the
11215 # drive letters (cygwin fileutils understands them), so leave them,
11216 # especially as we might pass files found there to a mingw objdump,
11217 # which wouldn't understand a cygwinified path. Ahh.
11218 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11219 else
11220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11221 fi
11222 ;;
11223 pw32*)
11224 # pw32 DLLs use 'pw' prefix rather than 'lib'
11225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11226 ;;
11227 esac
11228 ;;
11229
11230 *)
11231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11232 ;;
11233 esac
11234 dynamic_linker='Win32 ld.exe'
11235 # FIXME: first we should search . and the directory the executable is in
11236 shlibpath_var=PATH
11237 ;;
11238
11239darwin* | rhapsody*)
11240 dynamic_linker="$host_os dyld"
11241 version_type=darwin
11242 need_lib_prefix=no
11243 need_version=no
11244 # FIXME: Relying on posixy $() will cause problems for
11245 # cross-compilation, but unfortunately the echo tests do not
11246 # yet detect zsh echo's removal of \ escapes.
11247 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11248 soname_spec='${libname}${release}${major}$shared_ext'
11249 shlibpath_overrides_runpath=yes
11250 shlibpath_var=DYLD_LIBRARY_PATH
11251 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11252 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11253 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11254 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"`
11255 fi
11256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11257 ;;
11258
11259dgux*)
11260 version_type=linux
11261 need_lib_prefix=no
11262 need_version=no
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 ;;
11267
11268freebsd1*)
11269 dynamic_linker=no
11270 ;;
11271
11272freebsd*)
11273 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11274 version_type=freebsd-$objformat
11275 case $version_type in
11276 freebsd-elf*)
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11278 need_version=no
11279 need_lib_prefix=no
11280 ;;
11281 freebsd-*)
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11283 need_version=yes
11284 ;;
11285 esac
11286 shlibpath_var=LD_LIBRARY_PATH
11287 case $host_os in
11288 freebsd2*)
11289 shlibpath_overrides_runpath=yes
11290 ;;
11291 freebsd3.01* | freebsdelf3.01*)
11292 shlibpath_overrides_runpath=yes
11293 hardcode_into_libs=yes
11294 ;;
11295 *) # from 3.2 on
11296 shlibpath_overrides_runpath=no
11297 hardcode_into_libs=yes
11298 ;;
11299 esac
11300 ;;
11301
11302gnu*)
11303 version_type=linux
11304 need_lib_prefix=no
11305 need_version=no
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 hardcode_into_libs=yes
11310 ;;
11311
11312hpux9* | hpux10* | hpux11*)
11313 # Give a soname corresponding to the major version so that dld.sl refuses to
11314 # link against other versions.
11315 version_type=sunos
11316 need_lib_prefix=no
11317 need_version=no
11318 case "$host_cpu" in
11319 ia64*)
11320 shrext='.so'
11321 hardcode_into_libs=yes
11322 dynamic_linker="$host_os dld.so"
11323 shlibpath_var=LD_LIBRARY_PATH
11324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 if test "X$HPUX_IA64_MODE" = X32; then
11328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11329 else
11330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11331 fi
11332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11333 ;;
11334 hppa*64*)
11335 shrext='.sl'
11336 hardcode_into_libs=yes
11337 dynamic_linker="$host_os dld.sl"
11338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11344 ;;
11345 *)
11346 shrext='.sl'
11347 dynamic_linker="$host_os dld.sl"
11348 shlibpath_var=SHLIB_PATH
11349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 ;;
11353 esac
11354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11355 postinstall_cmds='chmod 555 $lib'
11356 ;;
11357
11358irix5* | irix6* | nonstopux*)
11359 case $host_os in
11360 nonstopux*) version_type=nonstopux ;;
11361 *)
11362 if test "$lt_cv_prog_gnu_ld" = yes; then
11363 version_type=linux
11364 else
11365 version_type=irix
11366 fi ;;
11367 esac
11368 need_lib_prefix=no
11369 need_version=no
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11372 case $host_os in
11373 irix5* | nonstopux*)
11374 libsuff= shlibsuff=
11375 ;;
11376 *)
11377 case $LD in # libtool.m4 will add one of these switches to LD
11378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11379 libsuff= shlibsuff= libmagic=32-bit;;
11380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11381 libsuff=32 shlibsuff=N32 libmagic=N32;;
11382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11383 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11384 *) libsuff= shlibsuff= libmagic=never-match;;
11385 esac
11386 ;;
11387 esac
11388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11389 shlibpath_overrides_runpath=no
11390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11392 hardcode_into_libs=yes
11393 ;;
11394
11395# No shared lib support for Linux oldld, aout, or coff.
11396linux*oldld* | linux*aout* | linux*coff*)
11397 dynamic_linker=no
11398 ;;
11399
11400# This must be Linux ELF.
11401linux*)
11402 version_type=linux
11403 need_lib_prefix=no
11404 need_version=no
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath=no
11410 # This implies no fast_install, which is unacceptable.
11411 # Some rework will be needed to allow for fast_install
11412 # before this can be enabled.
11413 hardcode_into_libs=yes
11414
11415 # We used to test for /lib/ld.so.1 and disable shared libraries on
11416 # powerpc, because MkLinux only supported shared libraries with the
11417 # GNU dynamic linker. Since this was broken with cross compilers,
11418 # most powerpc-linux boxes support dynamic linking these days and
11419 # people can always --disable-shared, the test was removed, and we
11420 # assume the GNU/Linux dynamic linker is in use.
11421 dynamic_linker='GNU/Linux ld.so'
11422 ;;
11423
11424netbsd*)
11425 version_type=sunos
11426 need_lib_prefix=no
11427 need_version=no
11428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11431 dynamic_linker='NetBSD (a.out) ld.so'
11432 else
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 dynamic_linker='NetBSD ld.elf_so'
11436 fi
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=yes
11439 hardcode_into_libs=yes
11440 ;;
11441
11442newsos6)
11443 version_type=linux
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 ;;
11448
11449nto-qnx)
11450 version_type=linux
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 ;;
11458
11459openbsd*)
11460 version_type=sunos
11461 need_lib_prefix=no
11462 need_version=no
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11467 case $host_os in
11468 openbsd2.[89] | openbsd2.[89].*)
11469 shlibpath_overrides_runpath=no
11470 ;;
11471 *)
11472 shlibpath_overrides_runpath=yes
11473 ;;
11474 esac
11475 else
11476 shlibpath_overrides_runpath=yes
11477 fi
11478 ;;
11479
11480os2*)
11481 libname_spec='$name'
11482 shrext=".dll"
11483 need_lib_prefix=no
11484 library_names_spec='$libname${shared_ext} $libname.a'
11485 dynamic_linker='OS/2 ld.exe'
11486 shlibpath_var=LIBPATH
11487 ;;
11488
11489osf3* | osf4* | osf5*)
11490 version_type=osf
11491 need_lib_prefix=no
11492 need_version=no
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11498 ;;
11499
11500sco3.2v5*)
11501 version_type=osf
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 ;;
11506
11507solaris*)
11508 version_type=linux
11509 need_lib_prefix=no
11510 need_version=no
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 shlibpath_overrides_runpath=yes
11515 hardcode_into_libs=yes
11516 # ldd complains unless libraries are executable
11517 postinstall_cmds='chmod +x $lib'
11518 ;;
11519
11520sunos4*)
11521 version_type=sunos
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 shlibpath_overrides_runpath=yes
11526 if test "$with_gnu_ld" = yes; then
11527 need_lib_prefix=no
11528 fi
11529 need_version=yes
11530 ;;
11531
11532sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11533 version_type=linux
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 case $host_vendor in
11538 sni)
11539 shlibpath_overrides_runpath=no
11540 need_lib_prefix=no
11541 export_dynamic_flag_spec='${wl}-Blargedynsym'
11542 runpath_var=LD_RUN_PATH
11543 ;;
11544 siemens)
11545 need_lib_prefix=no
11546 ;;
11547 motorola)
11548 need_lib_prefix=no
11549 need_version=no
11550 shlibpath_overrides_runpath=no
11551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11552 ;;
11553 esac
11554 ;;
11555
11556sysv4*MP*)
11557 if test -d /usr/nec ;then
11558 version_type=linux
11559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11560 soname_spec='$libname${shared_ext}.$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 fi
11563 ;;
11564
11565uts4*)
11566 version_type=linux
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 ;;
11571
11572*)
11573 dynamic_linker=no
11574 ;;
11575esac
11576echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11577echo "${ECHO_T}$dynamic_linker" >&6
11578test "$dynamic_linker" = no && can_build_shared=no
11579
11580if test "x$enable_dlopen" != xyes; then
11581 enable_dlopen=unknown
11582 enable_dlopen_self=unknown
11583 enable_dlopen_self_static=unknown
11584else
11585 lt_cv_dlopen=no
11586 lt_cv_dlopen_libs=
11587
11588 case $host_os in
11589 beos*)
11590 lt_cv_dlopen="load_add_on"
11591 lt_cv_dlopen_libs=
11592 lt_cv_dlopen_self=yes
11593 ;;
11594
11595 mingw* | pw32*)
11596 lt_cv_dlopen="LoadLibrary"
11597 lt_cv_dlopen_libs=
11598 ;;
11599
11600 cygwin*)
11601 lt_cv_dlopen="dlopen"
11602 lt_cv_dlopen_libs=
11603 ;;
11604
11605 darwin*)
11606 # if libdl is installed we need to link against it
11607 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11608echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11609if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612 ac_check_lib_save_LIBS=$LIBS
11613LIBS="-ldl $LIBS"
11614cat >conftest.$ac_ext <<_ACEOF
11615#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011616/* confdefs.h. */
11617_ACEOF
11618cat confdefs.h >>conftest.$ac_ext
11619cat >>conftest.$ac_ext <<_ACEOF
11620/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011621
11622/* Override any gcc2 internal prototype to avoid an error. */
11623#ifdef __cplusplus
11624extern "C"
11625#endif
11626/* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11628char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011629int
11630main ()
11631{
11632dlopen ();
11633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_lib_dl_dlopen=yes
11650else
11651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011652sed 's/^/| /' conftest.$ac_ext >&5
11653
John Criswell47fdd832003-07-14 16:52:07 +000011654ac_cv_lib_dl_dlopen=no
11655fi
11656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657LIBS=$ac_check_lib_save_LIBS
11658fi
11659echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11661if test $ac_cv_lib_dl_dlopen = yes; then
11662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11663else
11664
11665 lt_cv_dlopen="dyld"
11666 lt_cv_dlopen_libs=
11667 lt_cv_dlopen_self=yes
11668
11669fi
11670
11671 ;;
11672
11673 *)
11674 echo "$as_me:$LINENO: checking for shl_load" >&5
11675echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11676if test "${ac_cv_func_shl_load+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 cat >conftest.$ac_ext <<_ACEOF
11680#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011686/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011687 which can conflict with char shl_load (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11690#ifdef __STDC__
11691# include <limits.h>
11692#else
11693# include <assert.h>
11694#endif
John Criswell47fdd832003-07-14 16:52:07 +000011695/* Override any gcc2 internal prototype to avoid an error. */
11696#ifdef __cplusplus
11697extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011698{
John Criswell47fdd832003-07-14 16:52:07 +000011699#endif
11700/* We use char because int might match the return type of a gcc2
11701 builtin and then its argument prototype would still apply. */
11702char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011703/* The GNU C library defines this for functions which it implements
11704 to always fail with ENOSYS. Some functions are actually named
11705 something starting with __ and the normal name is an alias. */
11706#if defined (__stub_shl_load) || defined (__stub___shl_load)
11707choke me
11708#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011709char (*f) () = shl_load;
11710#endif
11711#ifdef __cplusplus
11712}
John Criswell47fdd832003-07-14 16:52:07 +000011713#endif
11714
John Criswell0c38eaf2003-09-10 15:17:25 +000011715int
11716main ()
11717{
11718return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext conftest$ac_exeext
11724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_func_shl_load=yes
11736else
11737 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011738sed 's/^/| /' conftest.$ac_ext >&5
11739
John Criswell47fdd832003-07-14 16:52:07 +000011740ac_cv_func_shl_load=no
11741fi
11742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11743fi
11744echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11745echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11746if test $ac_cv_func_shl_load = yes; then
11747 lt_cv_dlopen="shl_load"
11748else
11749 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11750echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11751if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754 ac_check_lib_save_LIBS=$LIBS
11755LIBS="-ldld $LIBS"
11756cat >conftest.$ac_ext <<_ACEOF
11757#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011763
11764/* Override any gcc2 internal prototype to avoid an error. */
11765#ifdef __cplusplus
11766extern "C"
11767#endif
11768/* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11770char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011771int
11772main ()
11773{
11774shl_load ();
11775 ;
11776 return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext conftest$ac_exeext
11780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 ac_cv_lib_dld_shl_load=yes
11792else
11793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011794sed 's/^/| /' conftest.$ac_ext >&5
11795
John Criswell47fdd832003-07-14 16:52:07 +000011796ac_cv_lib_dld_shl_load=no
11797fi
11798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11799LIBS=$ac_check_lib_save_LIBS
11800fi
11801echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11802echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11803if test $ac_cv_lib_dld_shl_load = yes; then
11804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11805else
11806 echo "$as_me:$LINENO: checking for dlopen" >&5
11807echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11808if test "${ac_cv_func_dlopen+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810else
11811 cat >conftest.$ac_ext <<_ACEOF
11812#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011813/* confdefs.h. */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011818/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011819 which can conflict with char dlopen (); below.
11820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11821 <limits.h> exists even on freestanding compilers. */
11822#ifdef __STDC__
11823# include <limits.h>
11824#else
11825# include <assert.h>
11826#endif
John Criswell47fdd832003-07-14 16:52:07 +000011827/* Override any gcc2 internal prototype to avoid an error. */
11828#ifdef __cplusplus
11829extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011830{
John Criswell47fdd832003-07-14 16:52:07 +000011831#endif
11832/* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11834char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011835/* The GNU C library defines this for functions which it implements
11836 to always fail with ENOSYS. Some functions are actually named
11837 something starting with __ and the normal name is an alias. */
11838#if defined (__stub_dlopen) || defined (__stub___dlopen)
11839choke me
11840#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011841char (*f) () = dlopen;
11842#endif
11843#ifdef __cplusplus
11844}
John Criswell47fdd832003-07-14 16:52:07 +000011845#endif
11846
John Criswell0c38eaf2003-09-10 15:17:25 +000011847int
11848main ()
11849{
11850return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011851 ;
11852 return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext conftest$ac_exeext
11856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857 (eval $ac_link) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -s conftest$ac_exeext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_cv_func_dlopen=yes
11868else
11869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011870sed 's/^/| /' conftest.$ac_ext >&5
11871
John Criswell47fdd832003-07-14 16:52:07 +000011872ac_cv_func_dlopen=no
11873fi
11874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11875fi
11876echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11877echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11878if test $ac_cv_func_dlopen = yes; then
11879 lt_cv_dlopen="dlopen"
11880else
11881 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11882echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11883if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11885else
11886 ac_check_lib_save_LIBS=$LIBS
11887LIBS="-ldl $LIBS"
11888cat >conftest.$ac_ext <<_ACEOF
11889#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011890/* confdefs.h. */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011895
11896/* Override any gcc2 internal prototype to avoid an error. */
11897#ifdef __cplusplus
11898extern "C"
11899#endif
11900/* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011903int
11904main ()
11905{
11906dlopen ();
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11913 (eval $ac_link) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 ac_cv_lib_dl_dlopen=yes
11924else
11925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011926sed 's/^/| /' conftest.$ac_ext >&5
11927
John Criswell47fdd832003-07-14 16:52:07 +000011928ac_cv_lib_dl_dlopen=no
11929fi
11930rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11931LIBS=$ac_check_lib_save_LIBS
11932fi
11933echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11934echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11935if test $ac_cv_lib_dl_dlopen = yes; then
11936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11937else
11938 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11939echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11940if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11942else
11943 ac_check_lib_save_LIBS=$LIBS
11944LIBS="-lsvld $LIBS"
11945cat >conftest.$ac_ext <<_ACEOF
11946#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011952
11953/* Override any gcc2 internal prototype to avoid an error. */
11954#ifdef __cplusplus
11955extern "C"
11956#endif
11957/* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011960int
11961main ()
11962{
11963dlopen ();
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968rm -f conftest.$ac_objext conftest$ac_exeext
11969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -s conftest$ac_exeext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_lib_svld_dlopen=yes
11981else
11982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011983sed 's/^/| /' conftest.$ac_ext >&5
11984
John Criswell47fdd832003-07-14 16:52:07 +000011985ac_cv_lib_svld_dlopen=no
11986fi
11987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11988LIBS=$ac_check_lib_save_LIBS
11989fi
11990echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11991echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11992if test $ac_cv_lib_svld_dlopen = yes; then
11993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11994else
11995 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11996echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11997if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000 ac_check_lib_save_LIBS=$LIBS
12001LIBS="-ldld $LIBS"
12002cat >conftest.$ac_ext <<_ACEOF
12003#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012009
12010/* Override any gcc2 internal prototype to avoid an error. */
12011#ifdef __cplusplus
12012extern "C"
12013#endif
12014/* We use char because int might match the return type of a gcc2
12015 builtin and then its argument prototype would still apply. */
12016char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012017int
12018main ()
12019{
12020dld_link ();
12021 ;
12022 return 0;
12023}
12024_ACEOF
12025rm -f conftest.$ac_objext conftest$ac_exeext
12026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027 (eval $ac_link) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -s conftest$ac_exeext'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 ac_cv_lib_dld_dld_link=yes
12038else
12039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012040sed 's/^/| /' conftest.$ac_ext >&5
12041
John Criswell47fdd832003-07-14 16:52:07 +000012042ac_cv_lib_dld_dld_link=no
12043fi
12044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12045LIBS=$ac_check_lib_save_LIBS
12046fi
12047echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12048echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12049if test $ac_cv_lib_dld_dld_link = yes; then
12050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12051fi
12052
12053
12054fi
12055
12056
12057fi
12058
12059
12060fi
12061
12062
12063fi
12064
12065
12066fi
12067
12068 ;;
12069 esac
12070
12071 if test "x$lt_cv_dlopen" != xno; then
12072 enable_dlopen=yes
12073 else
12074 enable_dlopen=no
12075 fi
12076
12077 case $lt_cv_dlopen in
12078 dlopen)
12079 save_CPPFLAGS="$CPPFLAGS"
12080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12081
12082 save_LDFLAGS="$LDFLAGS"
12083 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12084
12085 save_LIBS="$LIBS"
12086 LIBS="$lt_cv_dlopen_libs $LIBS"
12087
12088 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12089echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12090if test "${lt_cv_dlopen_self+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092else
12093 if test "$cross_compiling" = yes; then :
12094 lt_cv_dlopen_self=cross
12095else
12096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12097 lt_status=$lt_dlunknown
12098 cat > conftest.$ac_ext <<EOF
John Criswell3b195522003-09-15 14:25:08 +000012099#line 12099 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012100#include "confdefs.h"
12101
12102#if HAVE_DLFCN_H
12103#include <dlfcn.h>
12104#endif
12105
12106#include <stdio.h>
12107
12108#ifdef RTLD_GLOBAL
12109# define LT_DLGLOBAL RTLD_GLOBAL
12110#else
12111# ifdef DL_GLOBAL
12112# define LT_DLGLOBAL DL_GLOBAL
12113# else
12114# define LT_DLGLOBAL 0
12115# endif
12116#endif
12117
12118/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12119 find out it does not work in some platform. */
12120#ifndef LT_DLLAZY_OR_NOW
12121# ifdef RTLD_LAZY
12122# define LT_DLLAZY_OR_NOW RTLD_LAZY
12123# else
12124# ifdef DL_LAZY
12125# define LT_DLLAZY_OR_NOW DL_LAZY
12126# else
12127# ifdef RTLD_NOW
12128# define LT_DLLAZY_OR_NOW RTLD_NOW
12129# else
12130# ifdef DL_NOW
12131# define LT_DLLAZY_OR_NOW DL_NOW
12132# else
12133# define LT_DLLAZY_OR_NOW 0
12134# endif
12135# endif
12136# endif
12137# endif
12138#endif
12139
12140#ifdef __cplusplus
12141extern "C" void exit (int);
12142#endif
12143
12144void fnord() { int i=42;}
12145int main ()
12146{
12147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12148 int status = $lt_dlunknown;
12149
12150 if (self)
12151 {
12152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12154 /* dlclose (self); */
12155 }
12156
12157 exit (status);
12158}
12159EOF
12160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12161 (eval $ac_link) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12165 (./conftest; exit; ) 2>/dev/null
12166 lt_status=$?
12167 case x$lt_status in
12168 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12169 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12170 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12171 esac
12172 else :
12173 # compilation failed
12174 lt_cv_dlopen_self=no
12175 fi
12176fi
12177rm -fr conftest*
12178
12179
12180fi
12181echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12182echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12183
12184 if test "x$lt_cv_dlopen_self" = xyes; then
12185 LDFLAGS="$LDFLAGS $link_static_flag"
12186 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12187echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12188if test "${lt_cv_dlopen_self_static+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190else
12191 if test "$cross_compiling" = yes; then :
12192 lt_cv_dlopen_self_static=cross
12193else
12194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195 lt_status=$lt_dlunknown
12196 cat > conftest.$ac_ext <<EOF
John Criswell3b195522003-09-15 14:25:08 +000012197#line 12197 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012198#include "confdefs.h"
12199
12200#if HAVE_DLFCN_H
12201#include <dlfcn.h>
12202#endif
12203
12204#include <stdio.h>
12205
12206#ifdef RTLD_GLOBAL
12207# define LT_DLGLOBAL RTLD_GLOBAL
12208#else
12209# ifdef DL_GLOBAL
12210# define LT_DLGLOBAL DL_GLOBAL
12211# else
12212# define LT_DLGLOBAL 0
12213# endif
12214#endif
12215
12216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12217 find out it does not work in some platform. */
12218#ifndef LT_DLLAZY_OR_NOW
12219# ifdef RTLD_LAZY
12220# define LT_DLLAZY_OR_NOW RTLD_LAZY
12221# else
12222# ifdef DL_LAZY
12223# define LT_DLLAZY_OR_NOW DL_LAZY
12224# else
12225# ifdef RTLD_NOW
12226# define LT_DLLAZY_OR_NOW RTLD_NOW
12227# else
12228# ifdef DL_NOW
12229# define LT_DLLAZY_OR_NOW DL_NOW
12230# else
12231# define LT_DLLAZY_OR_NOW 0
12232# endif
12233# endif
12234# endif
12235# endif
12236#endif
12237
12238#ifdef __cplusplus
12239extern "C" void exit (int);
12240#endif
12241
12242void fnord() { int i=42;}
12243int main ()
12244{
12245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12246 int status = $lt_dlunknown;
12247
12248 if (self)
12249 {
12250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252 /* dlclose (self); */
12253 }
12254
12255 exit (status);
12256}
12257EOF
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12263 (./conftest; exit; ) 2>/dev/null
12264 lt_status=$?
12265 case x$lt_status in
12266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12268 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12269 esac
12270 else :
12271 # compilation failed
12272 lt_cv_dlopen_self_static=no
12273 fi
12274fi
12275rm -fr conftest*
12276
12277
12278fi
12279echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12280echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12281 fi
12282
12283 CPPFLAGS="$save_CPPFLAGS"
12284 LDFLAGS="$save_LDFLAGS"
12285 LIBS="$save_LIBS"
12286 ;;
12287 esac
12288
12289 case $lt_cv_dlopen_self in
12290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12291 *) enable_dlopen_self=unknown ;;
12292 esac
12293
12294 case $lt_cv_dlopen_self_static in
12295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12296 *) enable_dlopen_self_static=unknown ;;
12297 esac
12298fi
12299
12300
12301# The else clause should only fire when bootstrapping the
12302# libtool distribution, otherwise you forgot to ship ltmain.sh
12303# with your package, and you will get complaints that there are
12304# no rules to generate ltmain.sh.
12305if test -f "$ltmain"; then
12306 # See if we are running on zsh, and set the options which allow our commands through
12307 # without removal of \ escapes.
12308 if test -n "${ZSH_VERSION+set}" ; then
12309 setopt NO_GLOB_SUBST
12310 fi
12311 # Now quote all the things that may contain metacharacters while being
12312 # careful not to overquote the AC_SUBSTed values. We take copies of the
12313 # variables and quote the copies for generation of the libtool script.
12314 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12315 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12316 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12317 deplibs_check_method reload_flag reload_cmds need_locks \
12318 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12319 lt_cv_sys_global_symbol_to_c_name_address \
12320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12321 old_postinstall_cmds old_postuninstall_cmds \
12322 compiler_CXX \
12323 CC_CXX \
12324 LD_CXX \
12325 lt_prog_compiler_wl_CXX \
12326 lt_prog_compiler_pic_CXX \
12327 lt_prog_compiler_static_CXX \
12328 lt_prog_compiler_no_builtin_flag_CXX \
12329 export_dynamic_flag_spec_CXX \
12330 thread_safe_flag_spec_CXX \
12331 whole_archive_flag_spec_CXX \
12332 enable_shared_with_static_runtimes_CXX \
12333 old_archive_cmds_CXX \
12334 old_archive_from_new_cmds_CXX \
12335 predep_objects_CXX \
12336 postdep_objects_CXX \
12337 predeps_CXX \
12338 postdeps_CXX \
12339 compiler_lib_search_path_CXX \
12340 archive_cmds_CXX \
12341 archive_expsym_cmds_CXX \
12342 postinstall_cmds_CXX \
12343 postuninstall_cmds_CXX \
12344 old_archive_from_expsyms_cmds_CXX \
12345 allow_undefined_flag_CXX \
12346 no_undefined_flag_CXX \
12347 export_symbols_cmds_CXX \
12348 hardcode_libdir_flag_spec_CXX \
12349 hardcode_libdir_flag_spec_ld_CXX \
12350 hardcode_libdir_separator_CXX \
12351 hardcode_automatic_CXX \
12352 module_cmds_CXX \
12353 module_expsym_cmds_CXX \
12354 lt_cv_prog_compiler_c_o_CXX \
12355 exclude_expsyms_CXX \
12356 include_expsyms_CXX; do
12357
12358 case $var in
12359 old_archive_cmds_CXX | \
12360 old_archive_from_new_cmds_CXX | \
12361 archive_cmds_CXX | \
12362 archive_expsym_cmds_CXX | \
12363 module_cmds_CXX | \
12364 module_expsym_cmds_CXX | \
12365 old_archive_from_expsyms_cmds_CXX | \
12366 export_symbols_cmds_CXX | \
12367 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12368 postinstall_cmds | postuninstall_cmds | \
12369 old_postinstall_cmds | old_postuninstall_cmds | \
12370 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12371 # Double-quote double-evaled strings.
12372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12373 ;;
12374 *)
12375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12376 ;;
12377 esac
12378 done
12379
12380 case $lt_echo in
12381 *'\$0 --fallback-echo"')
12382 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12383 ;;
12384 esac
12385
12386cfgfile="$ofile"
12387
12388 cat <<__EOF__ >> "$cfgfile"
12389# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12390
12391# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12392
12393# Shell to use when invoking shell scripts.
12394SHELL=$lt_SHELL
12395
12396# Whether or not to build shared libraries.
12397build_libtool_libs=$enable_shared
12398
12399# Whether or not to build static libraries.
12400build_old_libs=$enable_static
12401
12402# Whether or not to add -lc for building shared libraries.
12403build_libtool_need_lc=$archive_cmds_need_lc_CXX
12404
12405# Whether or not to disallow shared libs when runtime libs are static
12406allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12407
12408# Whether or not to optimize for fast installation.
12409fast_install=$enable_fast_install
12410
12411# The host system.
12412host_alias=$host_alias
12413host=$host
12414
12415# An echo program that does not interpret backslashes.
12416echo=$lt_echo
12417
12418# The archiver.
12419AR=$lt_AR
12420AR_FLAGS=$lt_AR_FLAGS
12421
12422# A C compiler.
12423LTCC=$lt_LTCC
12424
12425# A language-specific compiler.
12426CC=$lt_compiler_CXX
12427
12428# Is the compiler the GNU C compiler?
12429with_gcc=$GCC_CXX
12430
12431# An ERE matcher.
12432EGREP=$lt_EGREP
12433
12434# The linker used to build libraries.
12435LD=$lt_LD_CXX
12436
12437# Whether we need hard or soft links.
12438LN_S=$lt_LN_S
12439
12440# A BSD-compatible nm program.
12441NM=$lt_NM
12442
12443# A symbol stripping program
12444STRIP=$STRIP
12445
12446# Used to examine libraries when file_magic_cmd begins "file"
12447MAGIC_CMD=$MAGIC_CMD
12448
12449# Used on cygwin: DLL creation program.
12450DLLTOOL="$DLLTOOL"
12451
12452# Used on cygwin: object dumper.
12453OBJDUMP="$OBJDUMP"
12454
12455# Used on cygwin: assembler.
12456AS="$AS"
12457
12458# The name of the directory that contains temporary libtool files.
12459objdir=$objdir
12460
12461# How to create reloadable object files.
12462reload_flag=$lt_reload_flag
12463reload_cmds=$lt_reload_cmds
12464
12465# How to pass a linker flag through the compiler.
12466wl=$lt_lt_prog_compiler_wl_CXX
12467
12468# Object file suffix (normally "o").
12469objext="$ac_objext"
12470
12471# Old archive suffix (normally "a").
12472libext="$libext"
12473
12474# Shared library suffix (normally ".so").
12475shrext='$shrext'
12476
12477# Executable file suffix (normally "").
12478exeext="$exeext"
12479
12480# Additional compiler flags for building library objects.
12481pic_flag=$lt_lt_prog_compiler_pic_CXX
12482pic_mode=$pic_mode
12483
12484# What is the maximum length of a command?
12485max_cmd_len=$lt_cv_sys_max_cmd_len
12486
12487# Does compiler simultaneously support -c and -o options?
12488compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12489
12490# Must we lock files when doing compilation ?
12491need_locks=$lt_need_locks
12492
12493# Do we need the lib prefix for modules?
12494need_lib_prefix=$need_lib_prefix
12495
12496# Do we need a version for libraries?
12497need_version=$need_version
12498
12499# Whether dlopen is supported.
12500dlopen_support=$enable_dlopen
12501
12502# Whether dlopen of programs is supported.
12503dlopen_self=$enable_dlopen_self
12504
12505# Whether dlopen of statically linked programs is supported.
12506dlopen_self_static=$enable_dlopen_self_static
12507
12508# Compiler flag to prevent dynamic linking.
12509link_static_flag=$lt_lt_prog_compiler_static_CXX
12510
12511# Compiler flag to turn off builtin functions.
12512no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12513
12514# Compiler flag to allow reflexive dlopens.
12515export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12516
12517# Compiler flag to generate shared objects directly from archives.
12518whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12519
12520# Compiler flag to generate thread-safe objects.
12521thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12522
12523# Library versioning type.
12524version_type=$version_type
12525
12526# Format of library name prefix.
12527libname_spec=$lt_libname_spec
12528
12529# List of archive names. First name is the real one, the rest are links.
12530# The last name is the one that the linker finds with -lNAME.
12531library_names_spec=$lt_library_names_spec
12532
12533# The coded name of the library, if different from the real name.
12534soname_spec=$lt_soname_spec
12535
12536# Commands used to build and install an old-style archive.
12537RANLIB=$lt_RANLIB
12538old_archive_cmds=$lt_old_archive_cmds_CXX
12539old_postinstall_cmds=$lt_old_postinstall_cmds
12540old_postuninstall_cmds=$lt_old_postuninstall_cmds
12541
12542# Create an old-style archive from a shared archive.
12543old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12544
12545# Create a temporary old-style archive to link instead of a shared archive.
12546old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12547
12548# Commands used to build and install a shared archive.
12549archive_cmds=$lt_archive_cmds_CXX
12550archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12551postinstall_cmds=$lt_postinstall_cmds
12552postuninstall_cmds=$lt_postuninstall_cmds
12553
12554# Commands used to build a loadable module (assumed same as above if empty)
12555module_cmds=$lt_module_cmds_CXX
12556module_expsym_cmds=$lt_module_expsym_cmds_CXX
12557
12558# Commands to strip libraries.
12559old_striplib=$lt_old_striplib
12560striplib=$lt_striplib
12561
12562# Dependencies to place before the objects being linked to create a
12563# shared library.
12564predep_objects=$lt_predep_objects_CXX
12565
12566# Dependencies to place after the objects being linked to create a
12567# shared library.
12568postdep_objects=$lt_postdep_objects_CXX
12569
12570# Dependencies to place before the objects being linked to create a
12571# shared library.
12572predeps=$lt_predeps_CXX
12573
12574# Dependencies to place after the objects being linked to create a
12575# shared library.
12576postdeps=$lt_postdeps_CXX
12577
12578# The library search path used internally by the compiler when linking
12579# a shared library.
12580compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12581
12582# Method to check whether dependent libraries are shared objects.
12583deplibs_check_method=$lt_deplibs_check_method
12584
12585# Command to use when deplibs_check_method == file_magic.
12586file_magic_cmd=$lt_file_magic_cmd
12587
12588# Flag that allows shared libraries with undefined symbols to be built.
12589allow_undefined_flag=$lt_allow_undefined_flag_CXX
12590
12591# Flag that forces no undefined symbols.
12592no_undefined_flag=$lt_no_undefined_flag_CXX
12593
12594# Commands used to finish a libtool library installation in a directory.
12595finish_cmds=$lt_finish_cmds
12596
12597# Same as above, but a single script fragment to be evaled but not shown.
12598finish_eval=$lt_finish_eval
12599
12600# Take the output of nm and produce a listing of raw symbols and C names.
12601global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12602
12603# Transform the output of nm in a proper C declaration
12604global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12605
12606# Transform the output of nm in a C name address pair
12607global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12608
12609# This is the shared library runtime path variable.
12610runpath_var=$runpath_var
12611
12612# This is the shared library path variable.
12613shlibpath_var=$shlibpath_var
12614
12615# Is shlibpath searched before the hard-coded library search path?
12616shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12617
12618# How to hardcode a shared library path into an executable.
12619hardcode_action=$hardcode_action_CXX
12620
12621# Whether we should hardcode library paths into libraries.
12622hardcode_into_libs=$hardcode_into_libs
12623
12624# Flag to hardcode \$libdir into a binary during linking.
12625# This must work even if \$libdir does not exist.
12626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12627
12628# If ld is used when linking, flag to hardcode \$libdir into
12629# a binary during linking. This must work even if \$libdir does
12630# not exist.
12631hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12632
12633# Whether we need a single -rpath flag with a separated argument.
12634hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12635
12636# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12637# resulting binary.
12638hardcode_direct=$hardcode_direct_CXX
12639
12640# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12641# resulting binary.
12642hardcode_minus_L=$hardcode_minus_L_CXX
12643
12644# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12645# the resulting binary.
12646hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12647
12648# Set to yes if building a shared library automatically hardcodes DIR into the library
12649# and all subsequent libraries and executables linked against it.
12650hardcode_automatic=$hardcode_automatic_CXX
12651
12652# Variables whose values should be saved in libtool wrapper scripts and
12653# restored at relink time.
12654variables_saved_for_relink="$variables_saved_for_relink"
12655
12656# Whether libtool must link a program against all its dependency libraries.
12657link_all_deplibs=$link_all_deplibs_CXX
12658
12659# Compile-time system search path for libraries
12660sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12661
12662# Run-time system search path for libraries
12663sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12664
12665# Fix the shell variable \$srcfile for the compiler.
12666fix_srcfile_path="$fix_srcfile_path_CXX"
12667
12668# Set to yes if exported symbols are required.
12669always_export_symbols=$always_export_symbols_CXX
12670
12671# The commands to list exported symbols.
12672export_symbols_cmds=$lt_export_symbols_cmds_CXX
12673
12674# The commands to extract the exported symbol list from a shared archive.
12675extract_expsyms_cmds=$lt_extract_expsyms_cmds
12676
12677# Symbols that should not be listed in the preloaded symbols.
12678exclude_expsyms=$lt_exclude_expsyms_CXX
12679
12680# Symbols that must always be exported.
12681include_expsyms=$lt_include_expsyms_CXX
12682
12683# ### END LIBTOOL TAG CONFIG: $tagname
12684
12685__EOF__
12686
12687
12688else
12689 # If there is no Makefile yet, we rely on a make rule to execute
12690 # `config.status --recheck' to rerun these tests and create the
12691 # libtool script then.
12692 test -f Makefile && make "$ltmain"
12693fi
12694
12695
12696ac_ext=c
12697ac_cpp='$CPP $CPPFLAGS'
12698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12700ac_compiler_gnu=$ac_cv_c_compiler_gnu
12701
12702CC=$lt_save_CC
12703LDCXX=$LD
12704LD=$lt_save_LD
12705GCC=$lt_save_GCC
12706with_gnu_ldcxx=$with_gnu_ld
12707with_gnu_ld=$lt_save_with_gnu_ld
12708lt_cv_path_LDCXX=$lt_cv_path_LD
12709lt_cv_path_LD=$lt_save_path_LD
12710lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12711lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12712
12713 else
12714 tagname=""
12715 fi
12716 ;;
12717
12718 F77)
12719 if test -n "$F77" && test "X$F77" != "Xno"; then
12720
12721ac_ext=f
12722ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12723ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12725
12726
12727archive_cmds_need_lc_F77=no
12728allow_undefined_flag_F77=
12729always_export_symbols_F77=no
12730archive_expsym_cmds_F77=
12731export_dynamic_flag_spec_F77=
12732hardcode_direct_F77=no
12733hardcode_libdir_flag_spec_F77=
12734hardcode_libdir_flag_spec_ld_F77=
12735hardcode_libdir_separator_F77=
12736hardcode_minus_L_F77=no
12737hardcode_automatic_F77=no
12738module_cmds_F77=
12739module_expsym_cmds_F77=
12740link_all_deplibs_F77=unknown
12741old_archive_cmds_F77=$old_archive_cmds
12742no_undefined_flag_F77=
12743whole_archive_flag_spec_F77=
12744enable_shared_with_static_runtimes_F77=no
12745
12746# Source file extension for f77 test sources.
12747ac_ext=f
12748
12749# Object file extension for compiled f77 test sources.
12750objext=o
12751objext_F77=$objext
12752
12753# Code to be used in simple compile tests
12754lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12755
12756# Code to be used in simple link tests
12757lt_simple_link_test_code=" program t\n end\n"
12758
12759# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12760
12761# If no C compiler was specified, use CC.
12762LTCC=${LTCC-"$CC"}
12763
12764# Allow CC to be a program name with arguments.
12765compiler=$CC
12766
12767
12768# Allow CC to be a program name with arguments.
12769lt_save_CC="$CC"
12770CC=${F77-"f77"}
12771compiler=$CC
12772compiler_F77=$CC
12773cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12774
12775echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12776echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12777echo "$as_me:$LINENO: result: $can_build_shared" >&5
12778echo "${ECHO_T}$can_build_shared" >&6
12779
12780echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12781echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12782test "$can_build_shared" = "no" && enable_shared=no
12783
12784# On AIX, shared libraries and static libraries use the same namespace, and
12785# are all built from PIC.
12786case "$host_os" in
12787aix3*)
12788 test "$enable_shared" = yes && enable_static=no
12789 if test -n "$RANLIB"; then
12790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12791 postinstall_cmds='$RANLIB $lib'
12792 fi
12793 ;;
12794aix4*)
12795 test "$enable_shared" = yes && enable_static=no
12796 ;;
12797esac
12798echo "$as_me:$LINENO: result: $enable_shared" >&5
12799echo "${ECHO_T}$enable_shared" >&6
12800
12801echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12802echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12803# Make sure either enable_shared or enable_static is yes.
12804test "$enable_shared" = yes || enable_static=yes
12805echo "$as_me:$LINENO: result: $enable_static" >&5
12806echo "${ECHO_T}$enable_static" >&6
12807
12808test "$ld_shlibs_F77" = no && can_build_shared=no
12809
12810GCC_F77="$G77"
12811LD_F77="$LD"
12812
12813lt_prog_compiler_wl_F77=
12814lt_prog_compiler_pic_F77=
12815lt_prog_compiler_static_F77=
12816
12817echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12818echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12819
12820 if test "$GCC" = yes; then
12821 lt_prog_compiler_wl_F77='-Wl,'
12822 lt_prog_compiler_static_F77='-static'
12823
12824 case $host_os in
12825 aix*)
12826 # All AIX code is PIC.
12827 if test "$host_cpu" = ia64; then
12828 # AIX 5 now supports IA64 processor
12829 lt_prog_compiler_static_F77='-Bstatic'
12830 fi
12831 ;;
12832
12833 amigaos*)
12834 # FIXME: we need at least 68020 code to build shared libraries, but
12835 # adding the `-m68020' flag to GCC prevents building anything better,
12836 # like `-m68040'.
12837 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12838 ;;
12839
12840 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12841 # PIC is the default for these OSes.
12842 ;;
12843
12844 mingw* | pw32* | os2*)
12845 # This hack is so that the source file can tell whether it is being
12846 # built for inclusion in a dll (and should export symbols for example).
12847 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12848 ;;
12849
12850 darwin* | rhapsody*)
12851 # PIC is the default on this platform
12852 # Common symbols not allowed in MH_DYLIB files
12853 lt_prog_compiler_pic_F77='-fno-common'
12854 ;;
12855
12856 msdosdjgpp*)
12857 # Just because we use GCC doesn't mean we suddenly get shared libraries
12858 # on systems that don't support them.
12859 lt_prog_compiler_can_build_shared_F77=no
12860 enable_shared=no
12861 ;;
12862
12863 sysv4*MP*)
12864 if test -d /usr/nec; then
12865 lt_prog_compiler_pic_F77=-Kconform_pic
12866 fi
12867 ;;
12868
12869 hpux*)
12870 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12871 # not for PA HP-UX.
12872 case "$host_cpu" in
12873 hppa*64*|ia64*)
12874 # +Z the default
12875 ;;
12876 *)
12877 lt_prog_compiler_pic_F77='-fPIC'
12878 ;;
12879 esac
12880 ;;
12881
12882 *)
12883 lt_prog_compiler_pic_F77='-fPIC'
12884 ;;
12885 esac
12886 else
12887 # PORTME Check for flag to pass linker flags through the system compiler.
12888 case $host_os in
12889 aix*)
12890 lt_prog_compiler_wl_F77='-Wl,'
12891 if test "$host_cpu" = ia64; then
12892 # AIX 5 now supports IA64 processor
12893 lt_prog_compiler_static_F77='-Bstatic'
12894 else
12895 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12896 fi
12897 ;;
12898
12899 mingw* | pw32* | os2*)
12900 # This hack is so that the source file can tell whether it is being
12901 # built for inclusion in a dll (and should export symbols for example).
12902 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12903 ;;
12904
12905 hpux9* | hpux10* | hpux11*)
12906 lt_prog_compiler_wl_F77='-Wl,'
12907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12908 # not for PA HP-UX.
12909 case "$host_cpu" in
12910 hppa*64*|ia64*)
12911 # +Z the default
12912 ;;
12913 *)
12914 lt_prog_compiler_pic_F77='+Z'
12915 ;;
12916 esac
12917 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12918 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12919 ;;
12920
12921 irix5* | irix6* | nonstopux*)
12922 lt_prog_compiler_wl_F77='-Wl,'
12923 # PIC (with -KPIC) is the default.
12924 lt_prog_compiler_static_F77='-non_shared'
12925 ;;
12926
12927 newsos6)
12928 lt_prog_compiler_pic_F77='-KPIC'
12929 lt_prog_compiler_static_F77='-Bstatic'
12930 ;;
12931
12932 linux*)
12933 case $CC in
12934 icc|ecc)
12935 lt_prog_compiler_wl_F77='-Wl,'
12936 lt_prog_compiler_pic_F77='-KPIC'
12937 lt_prog_compiler_static_F77='-static'
12938 ;;
12939 ccc)
12940 lt_prog_compiler_wl_F77='-Wl,'
12941 # All Alpha code is PIC.
12942 lt_prog_compiler_static_F77='-non_shared'
12943 ;;
12944 esac
12945 ;;
12946
12947 osf3* | osf4* | osf5*)
12948 lt_prog_compiler_wl_F77='-Wl,'
12949 # All OSF/1 code is PIC.
12950 lt_prog_compiler_static_F77='-non_shared'
12951 ;;
12952
12953 sco3.2v5*)
12954 lt_prog_compiler_pic_F77='-Kpic'
12955 lt_prog_compiler_static_F77='-dn'
12956 ;;
12957
12958 solaris*)
12959 lt_prog_compiler_wl_F77='-Wl,'
12960 lt_prog_compiler_pic_F77='-KPIC'
12961 lt_prog_compiler_static_F77='-Bstatic'
12962 ;;
12963
12964 sunos4*)
12965 lt_prog_compiler_wl_F77='-Qoption ld '
12966 lt_prog_compiler_pic_F77='-PIC'
12967 lt_prog_compiler_static_F77='-Bstatic'
12968 ;;
12969
12970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12971 lt_prog_compiler_wl_F77='-Wl,'
12972 lt_prog_compiler_pic_F77='-KPIC'
12973 lt_prog_compiler_static_F77='-Bstatic'
12974 ;;
12975
12976 sysv4*MP*)
12977 if test -d /usr/nec ;then
12978 lt_prog_compiler_pic_F77='-Kconform_pic'
12979 lt_prog_compiler_static_F77='-Bstatic'
12980 fi
12981 ;;
12982
12983 uts4*)
12984 lt_prog_compiler_pic_F77='-pic'
12985 lt_prog_compiler_static_F77='-Bstatic'
12986 ;;
12987
12988 *)
12989 lt_prog_compiler_can_build_shared_F77=no
12990 ;;
12991 esac
12992 fi
12993
12994echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12995echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12996
12997#
12998# Check to make sure the PIC flag actually works.
12999#
13000if test -n "$lt_prog_compiler_pic_F77"; then
13001 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13002echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13003if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005else
13006 lt_prog_compiler_pic_works_F77=no
13007 ac_outfile=conftest.$ac_objext
13008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13009 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13010 # Insert the option either (1) after the last *FLAGS variable, or
13011 # (2) before a word containing "conftest.", or (3) at the end.
13012 # Note that $ac_compile itself does not contain backslashes and begins
13013 # with a dollar sign (not a hyphen), so the echo should work correctly.
13014 # The option is referenced via a variable to avoid confusing sed.
13015 lt_compile=`echo "$ac_compile" | $SED \
13016 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13018 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000013019 (eval echo "\"\$as_me:13019: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013020 (eval "$lt_compile" 2>conftest.err)
13021 ac_status=$?
13022 cat conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000013023 echo "$as_me:13023: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013024 if (exit $ac_status) && test -s "$ac_outfile"; then
13025 # The compiler can only warn and ignore the option if not recognized
13026 # So say no if there are warnings
13027 if test ! -s conftest.err; then
13028 lt_prog_compiler_pic_works_F77=yes
13029 fi
13030 fi
13031 $rm conftest*
13032
13033fi
13034echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13035echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13036
13037if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13038 case $lt_prog_compiler_pic_F77 in
13039 "" | " "*) ;;
13040 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13041 esac
13042else
13043 lt_prog_compiler_pic_F77=
13044 lt_prog_compiler_can_build_shared_F77=no
13045fi
13046
13047fi
13048case "$host_os" in
13049 # For platforms which do not support PIC, -DPIC is meaningless:
13050 *djgpp*)
13051 lt_prog_compiler_pic_F77=
13052 ;;
13053 *)
13054 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13055 ;;
13056esac
13057
13058echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13059echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13060if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062else
13063 lt_cv_prog_compiler_c_o_F77=no
13064 $rm -r conftest 2>/dev/null
13065 mkdir conftest
13066 cd conftest
13067 mkdir out
13068 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13069
13070 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13071 # that will create temporary files in the current directory regardless of
13072 # the output directory. Thus, making CWD read-only will cause this test
13073 # to fail, enabling locking or at least warning the user not to do parallel
13074 # builds.
13075 chmod -w .
13076
13077 lt_compiler_flag="-o out/conftest2.$ac_objext"
13078 # Insert the option either (1) after the last *FLAGS variable, or
13079 # (2) before a word containing "conftest.", or (3) at the end.
13080 # Note that $ac_compile itself does not contain backslashes and begins
13081 # with a dollar sign (not a hyphen), so the echo should work correctly.
13082 lt_compile=`echo "$ac_compile" | $SED \
13083 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13085 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000013086 (eval echo "\"\$as_me:13086: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013087 (eval "$lt_compile" 2>out/conftest.err)
13088 ac_status=$?
13089 cat out/conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000013090 echo "$as_me:13090: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13092 then
13093 # The compiler can only warn and ignore the option if not recognized
13094 # So say no if there are warnings
13095 if test ! -s out/conftest.err; then
13096 lt_cv_prog_compiler_c_o_F77=yes
13097 fi
13098 fi
13099 chmod u+w .
13100 $rm conftest* out/*
13101 rmdir out
13102 cd ..
13103 rmdir conftest
13104 $rm conftest*
13105
13106fi
13107echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13108echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13109
13110
13111hard_links="nottested"
13112if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13113 # do not overwrite the value of need_locks provided by the user
13114 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13115echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13116 hard_links=yes
13117 $rm conftest*
13118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13119 touch conftest.a
13120 ln conftest.a conftest.b 2>&5 || hard_links=no
13121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13122 echo "$as_me:$LINENO: result: $hard_links" >&5
13123echo "${ECHO_T}$hard_links" >&6
13124 if test "$hard_links" = no; then
13125 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13126echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13127 need_locks=warn
13128 fi
13129else
13130 need_locks=no
13131fi
13132
13133echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13134echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13135
13136 runpath_var=
13137 allow_undefined_flag_F77=
13138 enable_shared_with_static_runtimes_F77=no
13139 archive_cmds_F77=
13140 archive_expsym_cmds_F77=
13141 old_archive_From_new_cmds_F77=
13142 old_archive_from_expsyms_cmds_F77=
13143 export_dynamic_flag_spec_F77=
13144 whole_archive_flag_spec_F77=
13145 thread_safe_flag_spec_F77=
13146 hardcode_libdir_flag_spec_F77=
13147 hardcode_libdir_flag_spec_ld_F77=
13148 hardcode_libdir_separator_F77=
13149 hardcode_direct_F77=no
13150 hardcode_minus_L_F77=no
13151 hardcode_shlibpath_var_F77=unsupported
13152 link_all_deplibs_F77=unknown
13153 hardcode_automatic_F77=no
13154 module_cmds_F77=
13155 module_expsym_cmds_F77=
13156 always_export_symbols_F77=no
13157 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13158 # include_expsyms should be a list of space-separated symbols to be *always*
13159 # included in the symbol list
13160 include_expsyms_F77=
13161 # exclude_expsyms can be an extended regexp of symbols to exclude
13162 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13163 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13164 # as well as any symbol that contains `d'.
13165 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13166 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13167 # platforms (ab)use it in PIC code, but their linkers get confused if
13168 # the symbol is explicitly referenced. Since portable code cannot
13169 # rely on this symbol name, it's probably fine to never include it in
13170 # preloaded symbol tables.
13171 extract_expsyms_cmds=
13172
13173 case $host_os in
13174 cygwin* | mingw* | pw32*)
13175 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13176 # When not using gcc, we currently assume that we are using
13177 # Microsoft Visual C++.
13178 if test "$GCC" != yes; then
13179 with_gnu_ld=no
13180 fi
13181 ;;
13182 openbsd*)
13183 with_gnu_ld=no
13184 ;;
13185 esac
13186
13187 ld_shlibs_F77=yes
13188 if test "$with_gnu_ld" = yes; then
13189 # If archive_cmds runs LD, not CC, wlarc should be empty
13190 wlarc='${wl}'
13191
13192 # See if GNU ld supports shared libraries.
13193 case $host_os in
13194 aix3* | aix4* | aix5*)
13195 # On AIX/PPC, the GNU linker is very broken
13196 if test "$host_cpu" != ia64; then
13197 ld_shlibs_F77=no
13198 cat <<EOF 1>&2
13199
13200*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13201*** to be unable to reliably create shared libraries on AIX.
13202*** Therefore, libtool is disabling shared libraries support. If you
13203*** really care for shared libraries, you may want to modify your PATH
13204*** so that a non-GNU linker is found, and then restart.
13205
13206EOF
13207 fi
13208 ;;
13209
13210 amigaos*)
13211 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)'
13212 hardcode_libdir_flag_spec_F77='-L$libdir'
13213 hardcode_minus_L_F77=yes
13214
13215 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13216 # that the semantics of dynamic libraries on AmigaOS, at least up
13217 # to version 4, is to share data among multiple programs linked
13218 # with the same dynamic library. Since this doesn't match the
13219 # behavior of shared libraries on other platforms, we can't use
13220 # them.
13221 ld_shlibs_F77=no
13222 ;;
13223
13224 beos*)
13225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13226 allow_undefined_flag_F77=unsupported
13227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13228 # support --undefined. This deserves some investigation. FIXME
13229 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13230 else
13231 ld_shlibs_F77=no
13232 fi
13233 ;;
13234
13235 cygwin* | mingw* | pw32*)
13236 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13237 # as there is no search path for DLLs.
13238 hardcode_libdir_flag_spec_F77='-L$libdir'
13239 allow_undefined_flag_F77=unsupported
13240 always_export_symbols_F77=no
13241 enable_shared_with_static_runtimes_F77=yes
13242 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13243
13244 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13246 # If the export-symbols file already is a .def file (1st line
13247 # is EXPORTS), use it as is; otherwise, prepend...
13248 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13249 cp $export_symbols $output_objdir/$soname.def;
13250 else
13251 echo EXPORTS > $output_objdir/$soname.def;
13252 cat $export_symbols >> $output_objdir/$soname.def;
13253 fi~
13254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13255 else
13256 ld_shlibs=no
13257 fi
13258 ;;
13259
13260 netbsd*)
13261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13262 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13263 wlarc=
13264 else
13265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13267 fi
13268 ;;
13269
13270 solaris* | sysv5*)
13271 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13272 ld_shlibs_F77=no
13273 cat <<EOF 1>&2
13274
13275*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13276*** create shared libraries on Solaris systems. Therefore, libtool
13277*** is disabling shared libraries support. We urge you to upgrade GNU
13278*** binutils to release 2.9.1 or newer. Another option is to modify
13279*** your PATH or compiler configuration so that the native linker is
13280*** used, and then restart.
13281
13282EOF
13283 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13286 else
13287 ld_shlibs_F77=no
13288 fi
13289 ;;
13290
13291 sunos4*)
13292 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13293 wlarc=
13294 hardcode_direct_F77=yes
13295 hardcode_shlibpath_var_F77=no
13296 ;;
13297
13298 *)
13299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302 else
13303 ld_shlibs_F77=no
13304 fi
13305 ;;
13306 esac
13307
13308 if test "$ld_shlibs_F77" = yes; then
13309 runpath_var=LD_RUN_PATH
13310 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13311 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13312 # ancient GNU ld didn't support --whole-archive et. al.
13313 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13314 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13315 else
13316 whole_archive_flag_spec_F77=
13317 fi
13318 fi
13319 else
13320 # PORTME fill in a description of your system's linker (not GNU ld)
13321 case $host_os in
13322 aix3*)
13323 allow_undefined_flag_F77=unsupported
13324 always_export_symbols_F77=yes
13325 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'
13326 # Note: this linker hardcodes the directories in LIBPATH if there
13327 # are no directories specified by -L.
13328 hardcode_minus_L_F77=yes
13329 if test "$GCC" = yes && test -z "$link_static_flag"; then
13330 # Neither direct hardcoding nor static linking is supported with a
13331 # broken collect2.
13332 hardcode_direct_F77=unsupported
13333 fi
13334 ;;
13335
13336 aix4* | aix5*)
13337 if test "$host_cpu" = ia64; then
13338 # On IA64, the linker does run time linking by default, so we don't
13339 # have to do anything special.
13340 aix_use_runtimelinking=no
13341 exp_sym_flag='-Bexport'
13342 no_entry_flag=""
13343 else
13344 # If we're using GNU nm, then we don't want the "-C" option.
13345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13347 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'
13348 else
13349 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'
13350 fi
13351 aix_use_runtimelinking=no
13352
13353 # Test if we are trying to use run time linking or normal
13354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13355 # need to do runtime linking.
13356 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13357 for ld_flag in $LDFLAGS; do
13358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13359 aix_use_runtimelinking=yes
13360 break
13361 fi
13362 done
13363 esac
13364
13365 exp_sym_flag='-bexport'
13366 no_entry_flag='-bnoentry'
13367 fi
13368
13369 # When large executables or shared objects are built, AIX ld can
13370 # have problems creating the table of contents. If linking a library
13371 # or program results in "error TOC overflow" add -mminimal-toc to
13372 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13373 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13374
13375 archive_cmds_F77=''
13376 hardcode_direct_F77=yes
13377 hardcode_libdir_separator_F77=':'
13378 link_all_deplibs_F77=yes
13379
13380 if test "$GCC" = yes; then
13381 case $host_os in aix4.012|aix4.012.*)
13382 # We only want to do this on AIX 4.2 and lower, the check
13383 # below for broken collect2 doesn't work under 4.3+
13384 collect2name=`${CC} -print-prog-name=collect2`
13385 if test -f "$collect2name" && \
13386 strings "$collect2name" | grep resolve_lib_name >/dev/null
13387 then
13388 # We have reworked collect2
13389 hardcode_direct_F77=yes
13390 else
13391 # We have old collect2
13392 hardcode_direct_F77=unsupported
13393 # It fails to find uninstalled libraries when the uninstalled
13394 # path is not listed in the libpath. Setting hardcode_minus_L
13395 # to unsupported forces relinking
13396 hardcode_minus_L_F77=yes
13397 hardcode_libdir_flag_spec_F77='-L$libdir'
13398 hardcode_libdir_separator_F77=
13399 fi
13400 esac
13401 shared_flag='-shared'
13402 else
13403 # not using gcc
13404 if test "$host_cpu" = ia64; then
13405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13406 # chokes on -Wl,-G. The following line is correct:
13407 shared_flag='-G'
13408 else
13409 if test "$aix_use_runtimelinking" = yes; then
13410 shared_flag='${wl}-G'
13411 else
13412 shared_flag='${wl}-bM:SRE'
13413 fi
13414 fi
13415 fi
13416
13417 # It seems that -bexpall does not export symbols beginning with
13418 # underscore (_), so it is better to generate a list of symbols to export.
13419 always_export_symbols_F77=yes
13420 if test "$aix_use_runtimelinking" = yes; then
13421 # Warning - without using the other runtime loading flags (-brtl),
13422 # -berok will link without error, but may produce a broken library.
13423 allow_undefined_flag_F77='-berok'
13424 # Determine the default libpath from the value encoded in an empty executable.
13425 cat >conftest.$ac_ext <<_ACEOF
13426 program main
13427
13428 end
13429_ACEOF
13430rm -f conftest.$ac_objext conftest$ac_exeext
13431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442
13443aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13444}'`
13445# Check for a 64-bit object if we didn't find anything.
13446if 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; }
13447}'`; fi
13448else
13449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013450sed 's/^/| /' conftest.$ac_ext >&5
13451
John Criswell47fdd832003-07-14 16:52:07 +000013452fi
13453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13455
13456 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13457 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"
13458 else
13459 if test "$host_cpu" = ia64; then
13460 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13461 allow_undefined_flag_F77="-z nodefs"
13462 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"
13463 else
13464 # Determine the default libpath from the value encoded in an empty executable.
13465 cat >conftest.$ac_ext <<_ACEOF
13466 program main
13467
13468 end
13469_ACEOF
13470rm -f conftest.$ac_objext conftest$ac_exeext
13471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482
13483aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13484}'`
13485# Check for a 64-bit object if we didn't find anything.
13486if 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; }
13487}'`; fi
13488else
13489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013490sed 's/^/| /' conftest.$ac_ext >&5
13491
John Criswell47fdd832003-07-14 16:52:07 +000013492fi
13493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13495
13496 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13497 # Warning - without using the other run time loading flags,
13498 # -berok will link without error, but may produce a broken library.
13499 no_undefined_flag_F77=' ${wl}-bernotok'
13500 allow_undefined_flag_F77=' ${wl}-berok'
13501 # -bexpall does not export symbols beginning with underscore (_)
13502 always_export_symbols_F77=yes
13503 # Exported symbols can be pulled into shared objects from archives
13504 whole_archive_flag_spec_F77=' '
13505 archive_cmds_need_lc_F77=yes
13506 # This is similar to how AIX traditionally builds it's shared libraries.
13507 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'
13508 fi
13509 fi
13510 ;;
13511
13512 amigaos*)
13513 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)'
13514 hardcode_libdir_flag_spec_F77='-L$libdir'
13515 hardcode_minus_L_F77=yes
13516 # see comment about different semantics on the GNU ld section
13517 ld_shlibs_F77=no
13518 ;;
13519
13520 bsdi4*)
13521 export_dynamic_flag_spec_F77=-rdynamic
13522 ;;
13523
13524 cygwin* | mingw* | pw32*)
13525 # When not using gcc, we currently assume that we are using
13526 # Microsoft Visual C++.
13527 # hardcode_libdir_flag_spec is actually meaningless, as there is
13528 # no search path for DLLs.
13529 hardcode_libdir_flag_spec_F77=' '
13530 allow_undefined_flag_F77=unsupported
13531 # Tell ltmain to make .lib files, not .a files.
13532 libext=lib
13533 # Tell ltmain to make .dll files, not .so files.
13534 shrext=".dll"
13535 # FIXME: Setting linknames here is a bad hack.
13536 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13537 # The linker will automatically build a .lib file if we build a DLL.
13538 old_archive_From_new_cmds_F77='true'
13539 # FIXME: Should let the user specify the lib program.
13540 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13541 fix_srcfile_path='`cygpath -w "$srcfile"`'
13542 enable_shared_with_static_runtimes_F77=yes
13543 ;;
13544
13545 darwin* | rhapsody*)
13546 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13547 archive_cmds_need_lc_F77=no
13548 case "$host_os" in
13549 rhapsody* | darwin1.[012])
13550 allow_undefined_flag_F77='-undefined suppress'
13551 ;;
13552 *) # Darwin 1.3 on
13553 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13554 ;;
13555 esac
13556 # FIXME: Relying on posixy $() will cause problems for
13557 # cross-compilation, but unfortunately the echo tests do not
13558 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13559 # `"' quotes if we put them in here... so don't!
13560 lt_int_apple_cc_single_mod=no
13561 output_verbose_link_cmd='echo'
13562 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13563 lt_int_apple_cc_single_mod=yes
13564 fi
13565 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13566 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13567 else
13568 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'
13569 fi
13570 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13572 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13573 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}'
13574 else
13575 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}'
13576 fi
13577 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}'
13578 hardcode_direct_F77=no
13579 hardcode_automatic_F77=yes
13580 hardcode_shlibpath_var_F77=unsupported
13581 whole_archive_flag_spec_F77='-all_load $convenience'
13582 link_all_deplibs_F77=yes
13583 fi
13584 ;;
13585
13586 dgux*)
13587 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13588 hardcode_libdir_flag_spec_F77='-L$libdir'
13589 hardcode_shlibpath_var_F77=no
13590 ;;
13591
13592 freebsd1*)
13593 ld_shlibs_F77=no
13594 ;;
13595
13596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13597 # support. Future versions do this automatically, but an explicit c++rt0.o
13598 # does not break anything, and helps significantly (at the cost of a little
13599 # extra space).
13600 freebsd2.2*)
13601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13602 hardcode_libdir_flag_spec_F77='-R$libdir'
13603 hardcode_direct_F77=yes
13604 hardcode_shlibpath_var_F77=no
13605 ;;
13606
13607 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13608 freebsd2*)
13609 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13610 hardcode_direct_F77=yes
13611 hardcode_minus_L_F77=yes
13612 hardcode_shlibpath_var_F77=no
13613 ;;
13614
13615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13616 freebsd*)
13617 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13618 hardcode_libdir_flag_spec_F77='-R$libdir'
13619 hardcode_direct_F77=yes
13620 hardcode_shlibpath_var_F77=no
13621 ;;
13622
13623 hpux9*)
13624 if test "$GCC" = yes; then
13625 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'
13626 else
13627 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'
13628 fi
13629 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13630 hardcode_libdir_separator_F77=:
13631 hardcode_direct_F77=yes
13632
13633 # hardcode_minus_L: Not really in the search PATH,
13634 # but as the default location of the library.
13635 hardcode_minus_L_F77=yes
13636 export_dynamic_flag_spec_F77='${wl}-E'
13637 ;;
13638
13639 hpux10* | hpux11*)
13640 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13641 case "$host_cpu" in
13642 hppa*64*|ia64*)
13643 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 ;;
13645 *)
13646 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13647 ;;
13648 esac
13649 else
13650 case "$host_cpu" in
13651 hppa*64*|ia64*)
13652 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13653 ;;
13654 *)
13655 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13656 ;;
13657 esac
13658 fi
13659 if test "$with_gnu_ld" = no; then
13660 case "$host_cpu" in
13661 hppa*64*)
13662 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13663 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13664 hardcode_libdir_separator_F77=:
13665 hardcode_direct_F77=no
13666 hardcode_shlibpath_var_F77=no
13667 ;;
13668 ia64*)
13669 hardcode_libdir_flag_spec_F77='-L$libdir'
13670 hardcode_direct_F77=no
13671 hardcode_shlibpath_var_F77=no
13672
13673 # hardcode_minus_L: Not really in the search PATH,
13674 # but as the default location of the library.
13675 hardcode_minus_L_F77=yes
13676 ;;
13677 *)
13678 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13679 hardcode_libdir_separator_F77=:
13680 hardcode_direct_F77=yes
13681 export_dynamic_flag_spec_F77='${wl}-E'
13682
13683 # hardcode_minus_L: Not really in the search PATH,
13684 # but as the default location of the library.
13685 hardcode_minus_L_F77=yes
13686 ;;
13687 esac
13688 fi
13689 ;;
13690
13691 irix5* | irix6* | nonstopux*)
13692 if test "$GCC" = yes; then
13693 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'
13694 else
13695 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'
13696 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13697 fi
13698 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13699 hardcode_libdir_separator_F77=:
13700 link_all_deplibs_F77=yes
13701 ;;
13702
13703 netbsd*)
13704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13706 else
13707 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13708 fi
13709 hardcode_libdir_flag_spec_F77='-R$libdir'
13710 hardcode_direct_F77=yes
13711 hardcode_shlibpath_var_F77=no
13712 ;;
13713
13714 newsos6)
13715 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13716 hardcode_direct_F77=yes
13717 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13718 hardcode_libdir_separator_F77=:
13719 hardcode_shlibpath_var_F77=no
13720 ;;
13721
13722 openbsd*)
13723 hardcode_direct_F77=yes
13724 hardcode_shlibpath_var_F77=no
13725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13726 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13727 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13728 export_dynamic_flag_spec_F77='${wl}-E'
13729 else
13730 case $host_os in
13731 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13732 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13733 hardcode_libdir_flag_spec_F77='-R$libdir'
13734 ;;
13735 *)
13736 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13737 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13738 ;;
13739 esac
13740 fi
13741 ;;
13742
13743 os2*)
13744 hardcode_libdir_flag_spec_F77='-L$libdir'
13745 hardcode_minus_L_F77=yes
13746 allow_undefined_flag_F77=unsupported
13747 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'
13748 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13749 ;;
13750
13751 osf3*)
13752 if test "$GCC" = yes; then
13753 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13754 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'
13755 else
13756 allow_undefined_flag_F77=' -expect_unresolved \*'
13757 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'
13758 fi
13759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13760 hardcode_libdir_separator_F77=:
13761 ;;
13762
13763 osf4* | osf5*) # as osf3* with the addition of -msym flag
13764 if test "$GCC" = yes; then
13765 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13766 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'
13767 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13768 else
13769 allow_undefined_flag_F77=' -expect_unresolved \*'
13770 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'
13771 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~
13772 $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'
13773
13774 # Both c and cxx compiler support -rpath directly
13775 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13776 fi
13777 hardcode_libdir_separator_F77=:
13778 ;;
13779
13780 sco3.2v5*)
13781 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_shlibpath_var_F77=no
13783 export_dynamic_flag_spec_F77='${wl}-Bexport'
13784 runpath_var=LD_RUN_PATH
13785 hardcode_runpath_var=yes
13786 ;;
13787
13788 solaris*)
13789 no_undefined_flag_F77=' -z text'
13790 if test "$GCC" = yes; then
13791 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13793 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13794 else
13795 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13796 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13798 fi
13799 hardcode_libdir_flag_spec_F77='-R$libdir'
13800 hardcode_shlibpath_var_F77=no
13801 case $host_os in
13802 solaris2.[0-5] | solaris2.[0-5].*) ;;
13803 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13804 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13805 esac
13806 link_all_deplibs_F77=yes
13807 ;;
13808
13809 sunos4*)
13810 if test "x$host_vendor" = xsequent; then
13811 # Use $CC to link under sequent, because it throws in some extra .o
13812 # files that make .init and .fini sections work.
13813 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13814 else
13815 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13816 fi
13817 hardcode_libdir_flag_spec_F77='-L$libdir'
13818 hardcode_direct_F77=yes
13819 hardcode_minus_L_F77=yes
13820 hardcode_shlibpath_var_F77=no
13821 ;;
13822
13823 sysv4)
13824 case $host_vendor in
13825 sni)
13826 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827 hardcode_direct_F77=yes # is this really true???
13828 ;;
13829 siemens)
13830 ## LD is ld it makes a PLAMLIB
13831 ## CC just makes a GrossModule.
13832 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13833 reload_cmds_F77='$CC -r -o $output$reload_objs'
13834 hardcode_direct_F77=no
13835 ;;
13836 motorola)
13837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13838 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13839 ;;
13840 esac
13841 runpath_var='LD_RUN_PATH'
13842 hardcode_shlibpath_var_F77=no
13843 ;;
13844
13845 sysv4.3*)
13846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847 hardcode_shlibpath_var_F77=no
13848 export_dynamic_flag_spec_F77='-Bexport'
13849 ;;
13850
13851 sysv4*MP*)
13852 if test -d /usr/nec; then
13853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13854 hardcode_shlibpath_var_F77=no
13855 runpath_var=LD_RUN_PATH
13856 hardcode_runpath_var=yes
13857 ld_shlibs_F77=yes
13858 fi
13859 ;;
13860
13861 sysv4.2uw2*)
13862 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13863 hardcode_direct_F77=yes
13864 hardcode_minus_L_F77=no
13865 hardcode_shlibpath_var_F77=no
13866 hardcode_runpath_var=yes
13867 runpath_var=LD_RUN_PATH
13868 ;;
13869
13870 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13871 no_undefined_flag_F77='${wl}-z ${wl}text'
13872 if test "$GCC" = yes; then
13873 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13874 else
13875 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13876 fi
13877 runpath_var='LD_RUN_PATH'
13878 hardcode_shlibpath_var_F77=no
13879 ;;
13880
13881 sysv5*)
13882 no_undefined_flag_F77=' -z text'
13883 # $CC -shared without GNU ld will not create a library from C++
13884 # object files and a static libstdc++, better avoid it by now
13885 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13887 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13888 hardcode_libdir_flag_spec_F77=
13889 hardcode_shlibpath_var_F77=no
13890 runpath_var='LD_RUN_PATH'
13891 ;;
13892
13893 uts4*)
13894 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13895 hardcode_libdir_flag_spec_F77='-L$libdir'
13896 hardcode_shlibpath_var_F77=no
13897 ;;
13898
13899 *)
13900 ld_shlibs_F77=no
13901 ;;
13902 esac
13903 fi
13904
13905echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13906echo "${ECHO_T}$ld_shlibs_F77" >&6
13907test "$ld_shlibs_F77" = no && can_build_shared=no
13908
13909variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13910if test "$GCC" = yes; then
13911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13912fi
13913
13914#
13915# Do we need to explicitly link libc?
13916#
13917case "x$archive_cmds_need_lc_F77" in
13918x|xyes)
13919 # Assume -lc should be added
13920 archive_cmds_need_lc_F77=yes
13921
13922 if test "$enable_shared" = yes && test "$GCC" = yes; then
13923 case $archive_cmds_F77 in
13924 *'~'*)
13925 # FIXME: we may have to deal with multi-command sequences.
13926 ;;
13927 '$CC '*)
13928 # Test whether the compiler implicitly links with -lc since on some
13929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13930 # to ld, don't add -lc before -lgcc.
13931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13932echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13933 $rm conftest*
13934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13935
13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937 (eval $ac_compile) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } 2>conftest.err; then
13941 soname=conftest
13942 lib=conftest
13943 libobjs=conftest.$ac_objext
13944 deplibs=
13945 wl=$lt_prog_compiler_wl_F77
13946 compiler_flags=-v
13947 linker_flags=-v
13948 verstring=
13949 output_objdir=.
13950 libname=conftest
13951 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13952 allow_undefined_flag_F77=
13953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13954 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }
13958 then
13959 archive_cmds_need_lc_F77=no
13960 else
13961 archive_cmds_need_lc_F77=yes
13962 fi
13963 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13964 else
13965 cat conftest.err 1>&5
13966 fi
13967 $rm conftest*
13968 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13969echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13970 ;;
13971 esac
13972 fi
13973 ;;
13974esac
13975
13976echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13977echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13978hardcode_action_F77=
13979if test -n "$hardcode_libdir_flag_spec_F77" || \
13980 test -n "$runpath_var F77" || \
13981 test "X$hardcode_automatic_F77"="Xyes" ; then
13982
13983 # We can hardcode non-existant directories.
13984 if test "$hardcode_direct_F77" != no &&
13985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13986 # have to relink, otherwise we might link with an installed library
13987 # when we should be linking with a yet-to-be-installed one
13988 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13989 test "$hardcode_minus_L_F77" != no; then
13990 # Linking always hardcodes the temporary library directory.
13991 hardcode_action_F77=relink
13992 else
13993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13994 hardcode_action_F77=immediate
13995 fi
13996else
13997 # We cannot hardcode anything, or else we can only hardcode existing
13998 # directories.
13999 hardcode_action_F77=unsupported
14000fi
14001echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14002echo "${ECHO_T}$hardcode_action_F77" >&6
14003
14004if test "$hardcode_action_F77" = relink; then
14005 # Fast installation is not supported
14006 enable_fast_install=no
14007elif test "$shlibpath_overrides_runpath" = yes ||
14008 test "$enable_shared" = no; then
14009 # Fast installation is not necessary
14010 enable_fast_install=needless
14011fi
14012
14013striplib=
14014old_striplib=
14015echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14016echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14017if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14020 echo "$as_me:$LINENO: result: yes" >&5
14021echo "${ECHO_T}yes" >&6
14022else
14023# FIXME - insert some real tests, host_os isn't really good enough
14024 case $host_os in
14025 darwin*)
14026 if test -n "$STRIP" ; then
14027 striplib="$STRIP -x"
14028 echo "$as_me:$LINENO: result: yes" >&5
14029echo "${ECHO_T}yes" >&6
14030 else
14031 echo "$as_me:$LINENO: result: no" >&5
14032echo "${ECHO_T}no" >&6
14033fi
14034 ;;
14035 *)
14036 echo "$as_me:$LINENO: result: no" >&5
14037echo "${ECHO_T}no" >&6
14038 ;;
14039 esac
14040fi
14041
14042echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14044library_names_spec=
14045libname_spec='lib$name'
14046soname_spec=
14047shrext=".so"
14048postinstall_cmds=
14049postuninstall_cmds=
14050finish_cmds=
14051finish_eval=
14052shlibpath_var=
14053shlibpath_overrides_runpath=unknown
14054version_type=none
14055dynamic_linker="$host_os ld.so"
14056sys_lib_dlsearch_path_spec="/lib /usr/lib"
14057if test "$GCC" = yes; then
14058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14060 # if the path contains ";" then we assume it to be the separator
14061 # otherwise default to the standard path separator (i.e. ":") - it is
14062 # assumed that no part of a normal pathname contains ";" but that should
14063 # okay in the real world where ";" in dirpaths is itself problematic.
14064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14065 else
14066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14067 fi
14068else
14069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14070fi
14071need_lib_prefix=unknown
14072hardcode_into_libs=no
14073
14074# when you set need_version to no, make sure it does not cause -set_version
14075# flags to be left without arguments
14076need_version=unknown
14077
14078case $host_os in
14079aix3*)
14080 version_type=linux
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14082 shlibpath_var=LIBPATH
14083
14084 # AIX 3 has no versioning support, so we append a major version to the name.
14085 soname_spec='${libname}${release}${shared_ext}$major'
14086 ;;
14087
14088aix4* | aix5*)
14089 version_type=linux
14090 need_lib_prefix=no
14091 need_version=no
14092 hardcode_into_libs=yes
14093 if test "$host_cpu" = ia64; then
14094 # AIX 5 supports IA64
14095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14096 shlibpath_var=LD_LIBRARY_PATH
14097 else
14098 # With GCC up to 2.95.x, collect2 would create an import file
14099 # for dependence libraries. The import file would start with
14100 # the line `#! .'. This would cause the generated library to
14101 # depend on `.', always an invalid library. This was fixed in
14102 # development snapshots of GCC prior to 3.0.
14103 case $host_os in
14104 aix4 | aix4.[01] | aix4.[01].*)
14105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14106 echo ' yes '
14107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14108 :
14109 else
14110 can_build_shared=no
14111 fi
14112 ;;
14113 esac
14114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14115 # soname into executable. Probably we can add versioning support to
14116 # collect2, so additional links can be useful in future.
14117 if test "$aix_use_runtimelinking" = yes; then
14118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14119 # instead of lib<name>.a to let people know that these are not
14120 # typical AIX shared libraries.
14121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14122 else
14123 # We preserve .a as extension for shared libraries through AIX4.2
14124 # and later when we are not doing run time linking.
14125 library_names_spec='${libname}${release}.a $libname.a'
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 fi
14128 shlibpath_var=LIBPATH
14129 fi
14130 ;;
14131
14132amigaos*)
14133 library_names_spec='$libname.ixlibrary $libname.a'
14134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14135 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'
14136 ;;
14137
14138beos*)
14139 library_names_spec='${libname}${shared_ext}'
14140 dynamic_linker="$host_os ld.so"
14141 shlibpath_var=LIBRARY_PATH
14142 ;;
14143
14144bsdi4*)
14145 version_type=linux
14146 need_version=no
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14148 soname_spec='${libname}${release}${shared_ext}$major'
14149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14150 shlibpath_var=LD_LIBRARY_PATH
14151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14153 # the default ld.so.conf also contains /usr/contrib/lib and
14154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14155 # libtool to hard-code these into programs
14156 ;;
14157
14158cygwin* | mingw* | pw32*)
14159 version_type=windows
14160 shrext=".dll"
14161 need_version=no
14162 need_lib_prefix=no
14163
14164 case $GCC,$host_os in
14165 yes,cygwin* | yes,mingw* | yes,pw32*)
14166 library_names_spec='$libname.dll.a'
14167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14168 postinstall_cmds='base_file=`basename \${file}`~
14169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14170 dldir=$destdir/`dirname \$dlpath`~
14171 test -d \$dldir || mkdir -p \$dldir~
14172 $install_prog $dir/$dlname \$dldir/$dlname'
14173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14174 dlpath=$dir/\$dldll~
14175 $rm \$dlpath'
14176 shlibpath_overrides_runpath=yes
14177
14178 case $host_os in
14179 cygwin*)
14180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14182 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14183 ;;
14184 mingw*)
14185 # MinGW DLLs use traditional 'lib' prefix
14186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14189 # It is most probably a Windows format PATH printed by
14190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14191 # path with ; separators, and with drive letters. We can handle the
14192 # drive letters (cygwin fileutils understands them), so leave them,
14193 # especially as we might pass files found there to a mingw objdump,
14194 # which wouldn't understand a cygwinified path. Ahh.
14195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14196 else
14197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14198 fi
14199 ;;
14200 pw32*)
14201 # pw32 DLLs use 'pw' prefix rather than 'lib'
14202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14203 ;;
14204 esac
14205 ;;
14206
14207 *)
14208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14209 ;;
14210 esac
14211 dynamic_linker='Win32 ld.exe'
14212 # FIXME: first we should search . and the directory the executable is in
14213 shlibpath_var=PATH
14214 ;;
14215
14216darwin* | rhapsody*)
14217 dynamic_linker="$host_os dyld"
14218 version_type=darwin
14219 need_lib_prefix=no
14220 need_version=no
14221 # FIXME: Relying on posixy $() will cause problems for
14222 # cross-compilation, but unfortunately the echo tests do not
14223 # yet detect zsh echo's removal of \ escapes.
14224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14225 soname_spec='${libname}${release}${major}$shared_ext'
14226 shlibpath_overrides_runpath=yes
14227 shlibpath_var=DYLD_LIBRARY_PATH
14228 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14230 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14231 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"`
14232 fi
14233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14234 ;;
14235
14236dgux*)
14237 version_type=linux
14238 need_lib_prefix=no
14239 need_version=no
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14241 soname_spec='${libname}${release}${shared_ext}$major'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 ;;
14244
14245freebsd1*)
14246 dynamic_linker=no
14247 ;;
14248
14249freebsd*)
14250 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14251 version_type=freebsd-$objformat
14252 case $version_type in
14253 freebsd-elf*)
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14255 need_version=no
14256 need_lib_prefix=no
14257 ;;
14258 freebsd-*)
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14260 need_version=yes
14261 ;;
14262 esac
14263 shlibpath_var=LD_LIBRARY_PATH
14264 case $host_os in
14265 freebsd2*)
14266 shlibpath_overrides_runpath=yes
14267 ;;
14268 freebsd3.01* | freebsdelf3.01*)
14269 shlibpath_overrides_runpath=yes
14270 hardcode_into_libs=yes
14271 ;;
14272 *) # from 3.2 on
14273 shlibpath_overrides_runpath=no
14274 hardcode_into_libs=yes
14275 ;;
14276 esac
14277 ;;
14278
14279gnu*)
14280 version_type=linux
14281 need_lib_prefix=no
14282 need_version=no
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 hardcode_into_libs=yes
14287 ;;
14288
14289hpux9* | hpux10* | hpux11*)
14290 # Give a soname corresponding to the major version so that dld.sl refuses to
14291 # link against other versions.
14292 version_type=sunos
14293 need_lib_prefix=no
14294 need_version=no
14295 case "$host_cpu" in
14296 ia64*)
14297 shrext='.so'
14298 hardcode_into_libs=yes
14299 dynamic_linker="$host_os dld.so"
14300 shlibpath_var=LD_LIBRARY_PATH
14301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 if test "X$HPUX_IA64_MODE" = X32; then
14305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14306 else
14307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14308 fi
14309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14310 ;;
14311 hppa*64*)
14312 shrext='.sl'
14313 hardcode_into_libs=yes
14314 dynamic_linker="$host_os dld.sl"
14315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14321 ;;
14322 *)
14323 shrext='.sl'
14324 dynamic_linker="$host_os dld.sl"
14325 shlibpath_var=SHLIB_PATH
14326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328 soname_spec='${libname}${release}${shared_ext}$major'
14329 ;;
14330 esac
14331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14332 postinstall_cmds='chmod 555 $lib'
14333 ;;
14334
14335irix5* | irix6* | nonstopux*)
14336 case $host_os in
14337 nonstopux*) version_type=nonstopux ;;
14338 *)
14339 if test "$lt_cv_prog_gnu_ld" = yes; then
14340 version_type=linux
14341 else
14342 version_type=irix
14343 fi ;;
14344 esac
14345 need_lib_prefix=no
14346 need_version=no
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14349 case $host_os in
14350 irix5* | nonstopux*)
14351 libsuff= shlibsuff=
14352 ;;
14353 *)
14354 case $LD in # libtool.m4 will add one of these switches to LD
14355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14356 libsuff= shlibsuff= libmagic=32-bit;;
14357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14358 libsuff=32 shlibsuff=N32 libmagic=N32;;
14359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14361 *) libsuff= shlibsuff= libmagic=never-match;;
14362 esac
14363 ;;
14364 esac
14365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14366 shlibpath_overrides_runpath=no
14367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14369 hardcode_into_libs=yes
14370 ;;
14371
14372# No shared lib support for Linux oldld, aout, or coff.
14373linux*oldld* | linux*aout* | linux*coff*)
14374 dynamic_linker=no
14375 ;;
14376
14377# This must be Linux ELF.
14378linux*)
14379 version_type=linux
14380 need_lib_prefix=no
14381 need_version=no
14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383 soname_spec='${libname}${release}${shared_ext}$major'
14384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14385 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=no
14387 # This implies no fast_install, which is unacceptable.
14388 # Some rework will be needed to allow for fast_install
14389 # before this can be enabled.
14390 hardcode_into_libs=yes
14391
14392 # We used to test for /lib/ld.so.1 and disable shared libraries on
14393 # powerpc, because MkLinux only supported shared libraries with the
14394 # GNU dynamic linker. Since this was broken with cross compilers,
14395 # most powerpc-linux boxes support dynamic linking these days and
14396 # people can always --disable-shared, the test was removed, and we
14397 # assume the GNU/Linux dynamic linker is in use.
14398 dynamic_linker='GNU/Linux ld.so'
14399 ;;
14400
14401netbsd*)
14402 version_type=sunos
14403 need_lib_prefix=no
14404 need_version=no
14405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14408 dynamic_linker='NetBSD (a.out) ld.so'
14409 else
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 dynamic_linker='NetBSD ld.elf_so'
14413 fi
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=yes
14416 hardcode_into_libs=yes
14417 ;;
14418
14419newsos6)
14420 version_type=linux
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 ;;
14425
14426nto-qnx)
14427 version_type=linux
14428 need_lib_prefix=no
14429 need_version=no
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes
14434 ;;
14435
14436openbsd*)
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14444 case $host_os in
14445 openbsd2.[89] | openbsd2.[89].*)
14446 shlibpath_overrides_runpath=no
14447 ;;
14448 *)
14449 shlibpath_overrides_runpath=yes
14450 ;;
14451 esac
14452 else
14453 shlibpath_overrides_runpath=yes
14454 fi
14455 ;;
14456
14457os2*)
14458 libname_spec='$name'
14459 shrext=".dll"
14460 need_lib_prefix=no
14461 library_names_spec='$libname${shared_ext} $libname.a'
14462 dynamic_linker='OS/2 ld.exe'
14463 shlibpath_var=LIBPATH
14464 ;;
14465
14466osf3* | osf4* | osf5*)
14467 version_type=osf
14468 need_lib_prefix=no
14469 need_version=no
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14475 ;;
14476
14477sco3.2v5*)
14478 version_type=osf
14479 soname_spec='${libname}${release}${shared_ext}$major'
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 shlibpath_var=LD_LIBRARY_PATH
14482 ;;
14483
14484solaris*)
14485 version_type=linux
14486 need_lib_prefix=no
14487 need_version=no
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes
14492 hardcode_into_libs=yes
14493 # ldd complains unless libraries are executable
14494 postinstall_cmds='chmod +x $lib'
14495 ;;
14496
14497sunos4*)
14498 version_type=sunos
14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 shlibpath_overrides_runpath=yes
14503 if test "$with_gnu_ld" = yes; then
14504 need_lib_prefix=no
14505 fi
14506 need_version=yes
14507 ;;
14508
14509sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14510 version_type=linux
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 case $host_vendor in
14515 sni)
14516 shlibpath_overrides_runpath=no
14517 need_lib_prefix=no
14518 export_dynamic_flag_spec='${wl}-Blargedynsym'
14519 runpath_var=LD_RUN_PATH
14520 ;;
14521 siemens)
14522 need_lib_prefix=no
14523 ;;
14524 motorola)
14525 need_lib_prefix=no
14526 need_version=no
14527 shlibpath_overrides_runpath=no
14528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14529 ;;
14530 esac
14531 ;;
14532
14533sysv4*MP*)
14534 if test -d /usr/nec ;then
14535 version_type=linux
14536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14537 soname_spec='$libname${shared_ext}.$major'
14538 shlibpath_var=LD_LIBRARY_PATH
14539 fi
14540 ;;
14541
14542uts4*)
14543 version_type=linux
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 ;;
14548
14549*)
14550 dynamic_linker=no
14551 ;;
14552esac
14553echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14554echo "${ECHO_T}$dynamic_linker" >&6
14555test "$dynamic_linker" = no && can_build_shared=no
14556
14557
14558# The else clause should only fire when bootstrapping the
14559# libtool distribution, otherwise you forgot to ship ltmain.sh
14560# with your package, and you will get complaints that there are
14561# no rules to generate ltmain.sh.
14562if test -f "$ltmain"; then
14563 # See if we are running on zsh, and set the options which allow our commands through
14564 # without removal of \ escapes.
14565 if test -n "${ZSH_VERSION+set}" ; then
14566 setopt NO_GLOB_SUBST
14567 fi
14568 # Now quote all the things that may contain metacharacters while being
14569 # careful not to overquote the AC_SUBSTed values. We take copies of the
14570 # variables and quote the copies for generation of the libtool script.
14571 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14574 deplibs_check_method reload_flag reload_cmds need_locks \
14575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14576 lt_cv_sys_global_symbol_to_c_name_address \
14577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14578 old_postinstall_cmds old_postuninstall_cmds \
14579 compiler_F77 \
14580 CC_F77 \
14581 LD_F77 \
14582 lt_prog_compiler_wl_F77 \
14583 lt_prog_compiler_pic_F77 \
14584 lt_prog_compiler_static_F77 \
14585 lt_prog_compiler_no_builtin_flag_F77 \
14586 export_dynamic_flag_spec_F77 \
14587 thread_safe_flag_spec_F77 \
14588 whole_archive_flag_spec_F77 \
14589 enable_shared_with_static_runtimes_F77 \
14590 old_archive_cmds_F77 \
14591 old_archive_from_new_cmds_F77 \
14592 predep_objects_F77 \
14593 postdep_objects_F77 \
14594 predeps_F77 \
14595 postdeps_F77 \
14596 compiler_lib_search_path_F77 \
14597 archive_cmds_F77 \
14598 archive_expsym_cmds_F77 \
14599 postinstall_cmds_F77 \
14600 postuninstall_cmds_F77 \
14601 old_archive_from_expsyms_cmds_F77 \
14602 allow_undefined_flag_F77 \
14603 no_undefined_flag_F77 \
14604 export_symbols_cmds_F77 \
14605 hardcode_libdir_flag_spec_F77 \
14606 hardcode_libdir_flag_spec_ld_F77 \
14607 hardcode_libdir_separator_F77 \
14608 hardcode_automatic_F77 \
14609 module_cmds_F77 \
14610 module_expsym_cmds_F77 \
14611 lt_cv_prog_compiler_c_o_F77 \
14612 exclude_expsyms_F77 \
14613 include_expsyms_F77; do
14614
14615 case $var in
14616 old_archive_cmds_F77 | \
14617 old_archive_from_new_cmds_F77 | \
14618 archive_cmds_F77 | \
14619 archive_expsym_cmds_F77 | \
14620 module_cmds_F77 | \
14621 module_expsym_cmds_F77 | \
14622 old_archive_from_expsyms_cmds_F77 | \
14623 export_symbols_cmds_F77 | \
14624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14625 postinstall_cmds | postuninstall_cmds | \
14626 old_postinstall_cmds | old_postuninstall_cmds | \
14627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14628 # Double-quote double-evaled strings.
14629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14630 ;;
14631 *)
14632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14633 ;;
14634 esac
14635 done
14636
14637 case $lt_echo in
14638 *'\$0 --fallback-echo"')
14639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14640 ;;
14641 esac
14642
14643cfgfile="$ofile"
14644
14645 cat <<__EOF__ >> "$cfgfile"
14646# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14647
14648# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14649
14650# Shell to use when invoking shell scripts.
14651SHELL=$lt_SHELL
14652
14653# Whether or not to build shared libraries.
14654build_libtool_libs=$enable_shared
14655
14656# Whether or not to build static libraries.
14657build_old_libs=$enable_static
14658
14659# Whether or not to add -lc for building shared libraries.
14660build_libtool_need_lc=$archive_cmds_need_lc_F77
14661
14662# Whether or not to disallow shared libs when runtime libs are static
14663allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14664
14665# Whether or not to optimize for fast installation.
14666fast_install=$enable_fast_install
14667
14668# The host system.
14669host_alias=$host_alias
14670host=$host
14671
14672# An echo program that does not interpret backslashes.
14673echo=$lt_echo
14674
14675# The archiver.
14676AR=$lt_AR
14677AR_FLAGS=$lt_AR_FLAGS
14678
14679# A C compiler.
14680LTCC=$lt_LTCC
14681
14682# A language-specific compiler.
14683CC=$lt_compiler_F77
14684
14685# Is the compiler the GNU C compiler?
14686with_gcc=$GCC_F77
14687
14688# An ERE matcher.
14689EGREP=$lt_EGREP
14690
14691# The linker used to build libraries.
14692LD=$lt_LD_F77
14693
14694# Whether we need hard or soft links.
14695LN_S=$lt_LN_S
14696
14697# A BSD-compatible nm program.
14698NM=$lt_NM
14699
14700# A symbol stripping program
14701STRIP=$STRIP
14702
14703# Used to examine libraries when file_magic_cmd begins "file"
14704MAGIC_CMD=$MAGIC_CMD
14705
14706# Used on cygwin: DLL creation program.
14707DLLTOOL="$DLLTOOL"
14708
14709# Used on cygwin: object dumper.
14710OBJDUMP="$OBJDUMP"
14711
14712# Used on cygwin: assembler.
14713AS="$AS"
14714
14715# The name of the directory that contains temporary libtool files.
14716objdir=$objdir
14717
14718# How to create reloadable object files.
14719reload_flag=$lt_reload_flag
14720reload_cmds=$lt_reload_cmds
14721
14722# How to pass a linker flag through the compiler.
14723wl=$lt_lt_prog_compiler_wl_F77
14724
14725# Object file suffix (normally "o").
14726objext="$ac_objext"
14727
14728# Old archive suffix (normally "a").
14729libext="$libext"
14730
14731# Shared library suffix (normally ".so").
14732shrext='$shrext'
14733
14734# Executable file suffix (normally "").
14735exeext="$exeext"
14736
14737# Additional compiler flags for building library objects.
14738pic_flag=$lt_lt_prog_compiler_pic_F77
14739pic_mode=$pic_mode
14740
14741# What is the maximum length of a command?
14742max_cmd_len=$lt_cv_sys_max_cmd_len
14743
14744# Does compiler simultaneously support -c and -o options?
14745compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14746
14747# Must we lock files when doing compilation ?
14748need_locks=$lt_need_locks
14749
14750# Do we need the lib prefix for modules?
14751need_lib_prefix=$need_lib_prefix
14752
14753# Do we need a version for libraries?
14754need_version=$need_version
14755
14756# Whether dlopen is supported.
14757dlopen_support=$enable_dlopen
14758
14759# Whether dlopen of programs is supported.
14760dlopen_self=$enable_dlopen_self
14761
14762# Whether dlopen of statically linked programs is supported.
14763dlopen_self_static=$enable_dlopen_self_static
14764
14765# Compiler flag to prevent dynamic linking.
14766link_static_flag=$lt_lt_prog_compiler_static_F77
14767
14768# Compiler flag to turn off builtin functions.
14769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14770
14771# Compiler flag to allow reflexive dlopens.
14772export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14773
14774# Compiler flag to generate shared objects directly from archives.
14775whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14776
14777# Compiler flag to generate thread-safe objects.
14778thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14779
14780# Library versioning type.
14781version_type=$version_type
14782
14783# Format of library name prefix.
14784libname_spec=$lt_libname_spec
14785
14786# List of archive names. First name is the real one, the rest are links.
14787# The last name is the one that the linker finds with -lNAME.
14788library_names_spec=$lt_library_names_spec
14789
14790# The coded name of the library, if different from the real name.
14791soname_spec=$lt_soname_spec
14792
14793# Commands used to build and install an old-style archive.
14794RANLIB=$lt_RANLIB
14795old_archive_cmds=$lt_old_archive_cmds_F77
14796old_postinstall_cmds=$lt_old_postinstall_cmds
14797old_postuninstall_cmds=$lt_old_postuninstall_cmds
14798
14799# Create an old-style archive from a shared archive.
14800old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14801
14802# Create a temporary old-style archive to link instead of a shared archive.
14803old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14804
14805# Commands used to build and install a shared archive.
14806archive_cmds=$lt_archive_cmds_F77
14807archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14808postinstall_cmds=$lt_postinstall_cmds
14809postuninstall_cmds=$lt_postuninstall_cmds
14810
14811# Commands used to build a loadable module (assumed same as above if empty)
14812module_cmds=$lt_module_cmds_F77
14813module_expsym_cmds=$lt_module_expsym_cmds_F77
14814
14815# Commands to strip libraries.
14816old_striplib=$lt_old_striplib
14817striplib=$lt_striplib
14818
14819# Dependencies to place before the objects being linked to create a
14820# shared library.
14821predep_objects=$lt_predep_objects_F77
14822
14823# Dependencies to place after the objects being linked to create a
14824# shared library.
14825postdep_objects=$lt_postdep_objects_F77
14826
14827# Dependencies to place before the objects being linked to create a
14828# shared library.
14829predeps=$lt_predeps_F77
14830
14831# Dependencies to place after the objects being linked to create a
14832# shared library.
14833postdeps=$lt_postdeps_F77
14834
14835# The library search path used internally by the compiler when linking
14836# a shared library.
14837compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14838
14839# Method to check whether dependent libraries are shared objects.
14840deplibs_check_method=$lt_deplibs_check_method
14841
14842# Command to use when deplibs_check_method == file_magic.
14843file_magic_cmd=$lt_file_magic_cmd
14844
14845# Flag that allows shared libraries with undefined symbols to be built.
14846allow_undefined_flag=$lt_allow_undefined_flag_F77
14847
14848# Flag that forces no undefined symbols.
14849no_undefined_flag=$lt_no_undefined_flag_F77
14850
14851# Commands used to finish a libtool library installation in a directory.
14852finish_cmds=$lt_finish_cmds
14853
14854# Same as above, but a single script fragment to be evaled but not shown.
14855finish_eval=$lt_finish_eval
14856
14857# Take the output of nm and produce a listing of raw symbols and C names.
14858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14859
14860# Transform the output of nm in a proper C declaration
14861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14862
14863# Transform the output of nm in a C name address pair
14864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14865
14866# This is the shared library runtime path variable.
14867runpath_var=$runpath_var
14868
14869# This is the shared library path variable.
14870shlibpath_var=$shlibpath_var
14871
14872# Is shlibpath searched before the hard-coded library search path?
14873shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14874
14875# How to hardcode a shared library path into an executable.
14876hardcode_action=$hardcode_action_F77
14877
14878# Whether we should hardcode library paths into libraries.
14879hardcode_into_libs=$hardcode_into_libs
14880
14881# Flag to hardcode \$libdir into a binary during linking.
14882# This must work even if \$libdir does not exist.
14883hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14884
14885# If ld is used when linking, flag to hardcode \$libdir into
14886# a binary during linking. This must work even if \$libdir does
14887# not exist.
14888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14889
14890# Whether we need a single -rpath flag with a separated argument.
14891hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14892
14893# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14894# resulting binary.
14895hardcode_direct=$hardcode_direct_F77
14896
14897# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14898# resulting binary.
14899hardcode_minus_L=$hardcode_minus_L_F77
14900
14901# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14902# the resulting binary.
14903hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14904
14905# Set to yes if building a shared library automatically hardcodes DIR into the library
14906# and all subsequent libraries and executables linked against it.
14907hardcode_automatic=$hardcode_automatic_F77
14908
14909# Variables whose values should be saved in libtool wrapper scripts and
14910# restored at relink time.
14911variables_saved_for_relink="$variables_saved_for_relink"
14912
14913# Whether libtool must link a program against all its dependency libraries.
14914link_all_deplibs=$link_all_deplibs_F77
14915
14916# Compile-time system search path for libraries
14917sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14918
14919# Run-time system search path for libraries
14920sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14921
14922# Fix the shell variable \$srcfile for the compiler.
14923fix_srcfile_path="$fix_srcfile_path_F77"
14924
14925# Set to yes if exported symbols are required.
14926always_export_symbols=$always_export_symbols_F77
14927
14928# The commands to list exported symbols.
14929export_symbols_cmds=$lt_export_symbols_cmds_F77
14930
14931# The commands to extract the exported symbol list from a shared archive.
14932extract_expsyms_cmds=$lt_extract_expsyms_cmds
14933
14934# Symbols that should not be listed in the preloaded symbols.
14935exclude_expsyms=$lt_exclude_expsyms_F77
14936
14937# Symbols that must always be exported.
14938include_expsyms=$lt_include_expsyms_F77
14939
14940# ### END LIBTOOL TAG CONFIG: $tagname
14941
14942__EOF__
14943
14944
14945else
14946 # If there is no Makefile yet, we rely on a make rule to execute
14947 # `config.status --recheck' to rerun these tests and create the
14948 # libtool script then.
14949 test -f Makefile && make "$ltmain"
14950fi
14951
14952
14953ac_ext=c
14954ac_cpp='$CPP $CPPFLAGS'
14955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14957ac_compiler_gnu=$ac_cv_c_compiler_gnu
14958
14959CC="$lt_save_CC"
14960
14961 else
14962 tagname=""
14963 fi
14964 ;;
14965
14966 GCJ)
14967 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14968
14969
14970
14971# Source file extension for Java test sources.
14972ac_ext=java
14973
14974# Object file extension for compiled Java test sources.
14975objext=o
14976objext_GCJ=$objext
14977
14978# Code to be used in simple compile tests
14979lt_simple_compile_test_code="class foo {}\n"
14980
14981# Code to be used in simple link tests
14982lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14983
14984# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14985
14986# If no C compiler was specified, use CC.
14987LTCC=${LTCC-"$CC"}
14988
14989# Allow CC to be a program name with arguments.
14990compiler=$CC
14991
14992
14993# Allow CC to be a program name with arguments.
14994lt_save_CC="$CC"
14995CC=${GCJ-"gcj"}
14996compiler=$CC
14997compiler_GCJ=$CC
14998
14999# GCJ did not exist at the time GCC didn't implicitly link libc in.
15000archive_cmds_need_lc_GCJ=no
15001
15002## CAVEAT EMPTOR:
15003## There is no encapsulation within the following macros, do not change
15004## the running order or otherwise move them around unless you know exactly
15005## what you are doing...
15006
15007lt_prog_compiler_no_builtin_flag_GCJ=
15008
15009if test "$GCC" = yes; then
15010 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15011
15012 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15013echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15014if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
15017 lt_cv_prog_compiler_rtti_exceptions=no
15018 ac_outfile=conftest.$ac_objext
15019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15020 lt_compiler_flag="-fno-rtti -fno-exceptions"
15021 # Insert the option either (1) after the last *FLAGS variable, or
15022 # (2) before a word containing "conftest.", or (3) at the end.
15023 # Note that $ac_compile itself does not contain backslashes and begins
15024 # with a dollar sign (not a hyphen), so the echo should work correctly.
15025 # The option is referenced via a variable to avoid confusing sed.
15026 lt_compile=`echo "$ac_compile" | $SED \
15027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15029 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000015030 (eval echo "\"\$as_me:15030: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015031 (eval "$lt_compile" 2>conftest.err)
15032 ac_status=$?
15033 cat conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000015034 echo "$as_me:15034: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015035 if (exit $ac_status) && test -s "$ac_outfile"; then
15036 # The compiler can only warn and ignore the option if not recognized
15037 # So say no if there are warnings
15038 if test ! -s conftest.err; then
15039 lt_cv_prog_compiler_rtti_exceptions=yes
15040 fi
15041 fi
15042 $rm conftest*
15043
15044fi
15045echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15046echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15047
15048if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15049 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15050else
15051 :
15052fi
15053
15054fi
15055
15056lt_prog_compiler_wl_GCJ=
15057lt_prog_compiler_pic_GCJ=
15058lt_prog_compiler_static_GCJ=
15059
15060echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15061echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15062
15063 if test "$GCC" = yes; then
15064 lt_prog_compiler_wl_GCJ='-Wl,'
15065 lt_prog_compiler_static_GCJ='-static'
15066
15067 case $host_os in
15068 aix*)
15069 # All AIX code is PIC.
15070 if test "$host_cpu" = ia64; then
15071 # AIX 5 now supports IA64 processor
15072 lt_prog_compiler_static_GCJ='-Bstatic'
15073 fi
15074 ;;
15075
15076 amigaos*)
15077 # FIXME: we need at least 68020 code to build shared libraries, but
15078 # adding the `-m68020' flag to GCC prevents building anything better,
15079 # like `-m68040'.
15080 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15081 ;;
15082
15083 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15084 # PIC is the default for these OSes.
15085 ;;
15086
15087 mingw* | pw32* | os2*)
15088 # This hack is so that the source file can tell whether it is being
15089 # built for inclusion in a dll (and should export symbols for example).
15090 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15091 ;;
15092
15093 darwin* | rhapsody*)
15094 # PIC is the default on this platform
15095 # Common symbols not allowed in MH_DYLIB files
15096 lt_prog_compiler_pic_GCJ='-fno-common'
15097 ;;
15098
15099 msdosdjgpp*)
15100 # Just because we use GCC doesn't mean we suddenly get shared libraries
15101 # on systems that don't support them.
15102 lt_prog_compiler_can_build_shared_GCJ=no
15103 enable_shared=no
15104 ;;
15105
15106 sysv4*MP*)
15107 if test -d /usr/nec; then
15108 lt_prog_compiler_pic_GCJ=-Kconform_pic
15109 fi
15110 ;;
15111
15112 hpux*)
15113 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15114 # not for PA HP-UX.
15115 case "$host_cpu" in
15116 hppa*64*|ia64*)
15117 # +Z the default
15118 ;;
15119 *)
15120 lt_prog_compiler_pic_GCJ='-fPIC'
15121 ;;
15122 esac
15123 ;;
15124
15125 *)
15126 lt_prog_compiler_pic_GCJ='-fPIC'
15127 ;;
15128 esac
15129 else
15130 # PORTME Check for flag to pass linker flags through the system compiler.
15131 case $host_os in
15132 aix*)
15133 lt_prog_compiler_wl_GCJ='-Wl,'
15134 if test "$host_cpu" = ia64; then
15135 # AIX 5 now supports IA64 processor
15136 lt_prog_compiler_static_GCJ='-Bstatic'
15137 else
15138 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15139 fi
15140 ;;
15141
15142 mingw* | pw32* | os2*)
15143 # This hack is so that the source file can tell whether it is being
15144 # built for inclusion in a dll (and should export symbols for example).
15145 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15146 ;;
15147
15148 hpux9* | hpux10* | hpux11*)
15149 lt_prog_compiler_wl_GCJ='-Wl,'
15150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15151 # not for PA HP-UX.
15152 case "$host_cpu" in
15153 hppa*64*|ia64*)
15154 # +Z the default
15155 ;;
15156 *)
15157 lt_prog_compiler_pic_GCJ='+Z'
15158 ;;
15159 esac
15160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15161 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15162 ;;
15163
15164 irix5* | irix6* | nonstopux*)
15165 lt_prog_compiler_wl_GCJ='-Wl,'
15166 # PIC (with -KPIC) is the default.
15167 lt_prog_compiler_static_GCJ='-non_shared'
15168 ;;
15169
15170 newsos6)
15171 lt_prog_compiler_pic_GCJ='-KPIC'
15172 lt_prog_compiler_static_GCJ='-Bstatic'
15173 ;;
15174
15175 linux*)
15176 case $CC in
15177 icc|ecc)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 lt_prog_compiler_pic_GCJ='-KPIC'
15180 lt_prog_compiler_static_GCJ='-static'
15181 ;;
15182 ccc)
15183 lt_prog_compiler_wl_GCJ='-Wl,'
15184 # All Alpha code is PIC.
15185 lt_prog_compiler_static_GCJ='-non_shared'
15186 ;;
15187 esac
15188 ;;
15189
15190 osf3* | osf4* | osf5*)
15191 lt_prog_compiler_wl_GCJ='-Wl,'
15192 # All OSF/1 code is PIC.
15193 lt_prog_compiler_static_GCJ='-non_shared'
15194 ;;
15195
15196 sco3.2v5*)
15197 lt_prog_compiler_pic_GCJ='-Kpic'
15198 lt_prog_compiler_static_GCJ='-dn'
15199 ;;
15200
15201 solaris*)
15202 lt_prog_compiler_wl_GCJ='-Wl,'
15203 lt_prog_compiler_pic_GCJ='-KPIC'
15204 lt_prog_compiler_static_GCJ='-Bstatic'
15205 ;;
15206
15207 sunos4*)
15208 lt_prog_compiler_wl_GCJ='-Qoption ld '
15209 lt_prog_compiler_pic_GCJ='-PIC'
15210 lt_prog_compiler_static_GCJ='-Bstatic'
15211 ;;
15212
15213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15214 lt_prog_compiler_wl_GCJ='-Wl,'
15215 lt_prog_compiler_pic_GCJ='-KPIC'
15216 lt_prog_compiler_static_GCJ='-Bstatic'
15217 ;;
15218
15219 sysv4*MP*)
15220 if test -d /usr/nec ;then
15221 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15222 lt_prog_compiler_static_GCJ='-Bstatic'
15223 fi
15224 ;;
15225
15226 uts4*)
15227 lt_prog_compiler_pic_GCJ='-pic'
15228 lt_prog_compiler_static_GCJ='-Bstatic'
15229 ;;
15230
15231 *)
15232 lt_prog_compiler_can_build_shared_GCJ=no
15233 ;;
15234 esac
15235 fi
15236
15237echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15238echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15239
15240#
15241# Check to make sure the PIC flag actually works.
15242#
15243if test -n "$lt_prog_compiler_pic_GCJ"; then
15244 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15245echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15246if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
15249 lt_prog_compiler_pic_works_GCJ=no
15250 ac_outfile=conftest.$ac_objext
15251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15252 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15253 # Insert the option either (1) after the last *FLAGS variable, or
15254 # (2) before a word containing "conftest.", or (3) at the end.
15255 # Note that $ac_compile itself does not contain backslashes and begins
15256 # with a dollar sign (not a hyphen), so the echo should work correctly.
15257 # The option is referenced via a variable to avoid confusing sed.
15258 lt_compile=`echo "$ac_compile" | $SED \
15259 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15261 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000015262 (eval echo "\"\$as_me:15262: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015263 (eval "$lt_compile" 2>conftest.err)
15264 ac_status=$?
15265 cat conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000015266 echo "$as_me:15266: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015267 if (exit $ac_status) && test -s "$ac_outfile"; then
15268 # The compiler can only warn and ignore the option if not recognized
15269 # So say no if there are warnings
15270 if test ! -s conftest.err; then
15271 lt_prog_compiler_pic_works_GCJ=yes
15272 fi
15273 fi
15274 $rm conftest*
15275
15276fi
15277echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15278echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15279
15280if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15281 case $lt_prog_compiler_pic_GCJ in
15282 "" | " "*) ;;
15283 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15284 esac
15285else
15286 lt_prog_compiler_pic_GCJ=
15287 lt_prog_compiler_can_build_shared_GCJ=no
15288fi
15289
15290fi
15291case "$host_os" in
15292 # For platforms which do not support PIC, -DPIC is meaningless:
15293 *djgpp*)
15294 lt_prog_compiler_pic_GCJ=
15295 ;;
15296 *)
15297 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15298 ;;
15299esac
15300
15301echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15302echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15303if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305else
15306 lt_cv_prog_compiler_c_o_GCJ=no
15307 $rm -r conftest 2>/dev/null
15308 mkdir conftest
15309 cd conftest
15310 mkdir out
15311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15312
15313 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15314 # that will create temporary files in the current directory regardless of
15315 # the output directory. Thus, making CWD read-only will cause this test
15316 # to fail, enabling locking or at least warning the user not to do parallel
15317 # builds.
15318 chmod -w .
15319
15320 lt_compiler_flag="-o out/conftest2.$ac_objext"
15321 # Insert the option either (1) after the last *FLAGS variable, or
15322 # (2) before a word containing "conftest.", or (3) at the end.
15323 # Note that $ac_compile itself does not contain backslashes and begins
15324 # with a dollar sign (not a hyphen), so the echo should work correctly.
15325 lt_compile=`echo "$ac_compile" | $SED \
15326 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328 -e 's:$: $lt_compiler_flag:'`
John Criswell3b195522003-09-15 14:25:08 +000015329 (eval echo "\"\$as_me:15329: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015330 (eval "$lt_compile" 2>out/conftest.err)
15331 ac_status=$?
15332 cat out/conftest.err >&5
John Criswell3b195522003-09-15 14:25:08 +000015333 echo "$as_me:15333: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15335 then
15336 # The compiler can only warn and ignore the option if not recognized
15337 # So say no if there are warnings
15338 if test ! -s out/conftest.err; then
15339 lt_cv_prog_compiler_c_o_GCJ=yes
15340 fi
15341 fi
15342 chmod u+w .
15343 $rm conftest* out/*
15344 rmdir out
15345 cd ..
15346 rmdir conftest
15347 $rm conftest*
15348
15349fi
15350echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15351echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15352
15353
15354hard_links="nottested"
15355if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15356 # do not overwrite the value of need_locks provided by the user
15357 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15358echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15359 hard_links=yes
15360 $rm conftest*
15361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15362 touch conftest.a
15363 ln conftest.a conftest.b 2>&5 || hard_links=no
15364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15365 echo "$as_me:$LINENO: result: $hard_links" >&5
15366echo "${ECHO_T}$hard_links" >&6
15367 if test "$hard_links" = no; then
15368 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15369echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15370 need_locks=warn
15371 fi
15372else
15373 need_locks=no
15374fi
15375
15376echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15377echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15378
15379 runpath_var=
15380 allow_undefined_flag_GCJ=
15381 enable_shared_with_static_runtimes_GCJ=no
15382 archive_cmds_GCJ=
15383 archive_expsym_cmds_GCJ=
15384 old_archive_From_new_cmds_GCJ=
15385 old_archive_from_expsyms_cmds_GCJ=
15386 export_dynamic_flag_spec_GCJ=
15387 whole_archive_flag_spec_GCJ=
15388 thread_safe_flag_spec_GCJ=
15389 hardcode_libdir_flag_spec_GCJ=
15390 hardcode_libdir_flag_spec_ld_GCJ=
15391 hardcode_libdir_separator_GCJ=
15392 hardcode_direct_GCJ=no
15393 hardcode_minus_L_GCJ=no
15394 hardcode_shlibpath_var_GCJ=unsupported
15395 link_all_deplibs_GCJ=unknown
15396 hardcode_automatic_GCJ=no
15397 module_cmds_GCJ=
15398 module_expsym_cmds_GCJ=
15399 always_export_symbols_GCJ=no
15400 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15401 # include_expsyms should be a list of space-separated symbols to be *always*
15402 # included in the symbol list
15403 include_expsyms_GCJ=
15404 # exclude_expsyms can be an extended regexp of symbols to exclude
15405 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15406 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15407 # as well as any symbol that contains `d'.
15408 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15409 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15410 # platforms (ab)use it in PIC code, but their linkers get confused if
15411 # the symbol is explicitly referenced. Since portable code cannot
15412 # rely on this symbol name, it's probably fine to never include it in
15413 # preloaded symbol tables.
15414 extract_expsyms_cmds=
15415
15416 case $host_os in
15417 cygwin* | mingw* | pw32*)
15418 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15419 # When not using gcc, we currently assume that we are using
15420 # Microsoft Visual C++.
15421 if test "$GCC" != yes; then
15422 with_gnu_ld=no
15423 fi
15424 ;;
15425 openbsd*)
15426 with_gnu_ld=no
15427 ;;
15428 esac
15429
15430 ld_shlibs_GCJ=yes
15431 if test "$with_gnu_ld" = yes; then
15432 # If archive_cmds runs LD, not CC, wlarc should be empty
15433 wlarc='${wl}'
15434
15435 # See if GNU ld supports shared libraries.
15436 case $host_os in
15437 aix3* | aix4* | aix5*)
15438 # On AIX/PPC, the GNU linker is very broken
15439 if test "$host_cpu" != ia64; then
15440 ld_shlibs_GCJ=no
15441 cat <<EOF 1>&2
15442
15443*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15444*** to be unable to reliably create shared libraries on AIX.
15445*** Therefore, libtool is disabling shared libraries support. If you
15446*** really care for shared libraries, you may want to modify your PATH
15447*** so that a non-GNU linker is found, and then restart.
15448
15449EOF
15450 fi
15451 ;;
15452
15453 amigaos*)
15454 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)'
15455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15456 hardcode_minus_L_GCJ=yes
15457
15458 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15459 # that the semantics of dynamic libraries on AmigaOS, at least up
15460 # to version 4, is to share data among multiple programs linked
15461 # with the same dynamic library. Since this doesn't match the
15462 # behavior of shared libraries on other platforms, we can't use
15463 # them.
15464 ld_shlibs_GCJ=no
15465 ;;
15466
15467 beos*)
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469 allow_undefined_flag_GCJ=unsupported
15470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15471 # support --undefined. This deserves some investigation. FIXME
15472 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 else
15474 ld_shlibs_GCJ=no
15475 fi
15476 ;;
15477
15478 cygwin* | mingw* | pw32*)
15479 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15480 # as there is no search path for DLLs.
15481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15482 allow_undefined_flag_GCJ=unsupported
15483 always_export_symbols_GCJ=no
15484 enable_shared_with_static_runtimes_GCJ=yes
15485 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15486
15487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15488 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15489 # If the export-symbols file already is a .def file (1st line
15490 # is EXPORTS), use it as is; otherwise, prepend...
15491 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15492 cp $export_symbols $output_objdir/$soname.def;
15493 else
15494 echo EXPORTS > $output_objdir/$soname.def;
15495 cat $export_symbols >> $output_objdir/$soname.def;
15496 fi~
15497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15498 else
15499 ld_shlibs=no
15500 fi
15501 ;;
15502
15503 netbsd*)
15504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15505 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15506 wlarc=
15507 else
15508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15510 fi
15511 ;;
15512
15513 solaris* | sysv5*)
15514 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15515 ld_shlibs_GCJ=no
15516 cat <<EOF 1>&2
15517
15518*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15519*** create shared libraries on Solaris systems. Therefore, libtool
15520*** is disabling shared libraries support. We urge you to upgrade GNU
15521*** binutils to release 2.9.1 or newer. Another option is to modify
15522*** your PATH or compiler configuration so that the native linker is
15523*** used, and then restart.
15524
15525EOF
15526 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15527 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15528 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15529 else
15530 ld_shlibs_GCJ=no
15531 fi
15532 ;;
15533
15534 sunos4*)
15535 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15536 wlarc=
15537 hardcode_direct_GCJ=yes
15538 hardcode_shlibpath_var_GCJ=no
15539 ;;
15540
15541 *)
15542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545 else
15546 ld_shlibs_GCJ=no
15547 fi
15548 ;;
15549 esac
15550
15551 if test "$ld_shlibs_GCJ" = yes; then
15552 runpath_var=LD_RUN_PATH
15553 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15554 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15555 # ancient GNU ld didn't support --whole-archive et. al.
15556 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15557 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15558 else
15559 whole_archive_flag_spec_GCJ=
15560 fi
15561 fi
15562 else
15563 # PORTME fill in a description of your system's linker (not GNU ld)
15564 case $host_os in
15565 aix3*)
15566 allow_undefined_flag_GCJ=unsupported
15567 always_export_symbols_GCJ=yes
15568 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'
15569 # Note: this linker hardcodes the directories in LIBPATH if there
15570 # are no directories specified by -L.
15571 hardcode_minus_L_GCJ=yes
15572 if test "$GCC" = yes && test -z "$link_static_flag"; then
15573 # Neither direct hardcoding nor static linking is supported with a
15574 # broken collect2.
15575 hardcode_direct_GCJ=unsupported
15576 fi
15577 ;;
15578
15579 aix4* | aix5*)
15580 if test "$host_cpu" = ia64; then
15581 # On IA64, the linker does run time linking by default, so we don't
15582 # have to do anything special.
15583 aix_use_runtimelinking=no
15584 exp_sym_flag='-Bexport'
15585 no_entry_flag=""
15586 else
15587 # If we're using GNU nm, then we don't want the "-C" option.
15588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15589 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15590 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'
15591 else
15592 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'
15593 fi
15594 aix_use_runtimelinking=no
15595
15596 # Test if we are trying to use run time linking or normal
15597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15598 # need to do runtime linking.
15599 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15600 for ld_flag in $LDFLAGS; do
15601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15602 aix_use_runtimelinking=yes
15603 break
15604 fi
15605 done
15606 esac
15607
15608 exp_sym_flag='-bexport'
15609 no_entry_flag='-bnoentry'
15610 fi
15611
15612 # When large executables or shared objects are built, AIX ld can
15613 # have problems creating the table of contents. If linking a library
15614 # or program results in "error TOC overflow" add -mminimal-toc to
15615 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15616 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15617
15618 archive_cmds_GCJ=''
15619 hardcode_direct_GCJ=yes
15620 hardcode_libdir_separator_GCJ=':'
15621 link_all_deplibs_GCJ=yes
15622
15623 if test "$GCC" = yes; then
15624 case $host_os in aix4.012|aix4.012.*)
15625 # We only want to do this on AIX 4.2 and lower, the check
15626 # below for broken collect2 doesn't work under 4.3+
15627 collect2name=`${CC} -print-prog-name=collect2`
15628 if test -f "$collect2name" && \
15629 strings "$collect2name" | grep resolve_lib_name >/dev/null
15630 then
15631 # We have reworked collect2
15632 hardcode_direct_GCJ=yes
15633 else
15634 # We have old collect2
15635 hardcode_direct_GCJ=unsupported
15636 # It fails to find uninstalled libraries when the uninstalled
15637 # path is not listed in the libpath. Setting hardcode_minus_L
15638 # to unsupported forces relinking
15639 hardcode_minus_L_GCJ=yes
15640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15641 hardcode_libdir_separator_GCJ=
15642 fi
15643 esac
15644 shared_flag='-shared'
15645 else
15646 # not using gcc
15647 if test "$host_cpu" = ia64; then
15648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15649 # chokes on -Wl,-G. The following line is correct:
15650 shared_flag='-G'
15651 else
15652 if test "$aix_use_runtimelinking" = yes; then
15653 shared_flag='${wl}-G'
15654 else
15655 shared_flag='${wl}-bM:SRE'
15656 fi
15657 fi
15658 fi
15659
15660 # It seems that -bexpall does not export symbols beginning with
15661 # underscore (_), so it is better to generate a list of symbols to export.
15662 always_export_symbols_GCJ=yes
15663 if test "$aix_use_runtimelinking" = yes; then
15664 # Warning - without using the other runtime loading flags (-brtl),
15665 # -berok will link without error, but may produce a broken library.
15666 allow_undefined_flag_GCJ='-berok'
15667 # Determine the default libpath from the value encoded in an empty executable.
15668 cat >conftest.$ac_ext <<_ACEOF
15669#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015675
John Criswell47fdd832003-07-14 16:52:07 +000015676int
15677main ()
15678{
15679
15680 ;
15681 return 0;
15682}
15683_ACEOF
15684rm -f conftest.$ac_objext conftest$ac_exeext
15685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686 (eval $ac_link) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } &&
15690 { ac_try='test -s conftest$ac_exeext'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696
15697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15698}'`
15699# Check for a 64-bit object if we didn't find anything.
15700if 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; }
15701}'`; fi
15702else
15703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015704sed 's/^/| /' conftest.$ac_ext >&5
15705
John Criswell47fdd832003-07-14 16:52:07 +000015706fi
15707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15709
15710 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15711 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"
15712 else
15713 if test "$host_cpu" = ia64; then
15714 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15715 allow_undefined_flag_GCJ="-z nodefs"
15716 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"
15717 else
15718 # Determine the default libpath from the value encoded in an empty executable.
15719 cat >conftest.$ac_ext <<_ACEOF
15720#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015721/* confdefs.h. */
15722_ACEOF
15723cat confdefs.h >>conftest.$ac_ext
15724cat >>conftest.$ac_ext <<_ACEOF
15725/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015726
John Criswell47fdd832003-07-14 16:52:07 +000015727int
15728main ()
15729{
15730
15731 ;
15732 return 0;
15733}
15734_ACEOF
15735rm -f conftest.$ac_objext conftest$ac_exeext
15736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15737 (eval $ac_link) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -s conftest$ac_exeext'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747
15748aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15749}'`
15750# Check for a 64-bit object if we didn't find anything.
15751if 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; }
15752}'`; fi
15753else
15754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015755sed 's/^/| /' conftest.$ac_ext >&5
15756
John Criswell47fdd832003-07-14 16:52:07 +000015757fi
15758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15759if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15760
15761 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15762 # Warning - without using the other run time loading flags,
15763 # -berok will link without error, but may produce a broken library.
15764 no_undefined_flag_GCJ=' ${wl}-bernotok'
15765 allow_undefined_flag_GCJ=' ${wl}-berok'
15766 # -bexpall does not export symbols beginning with underscore (_)
15767 always_export_symbols_GCJ=yes
15768 # Exported symbols can be pulled into shared objects from archives
15769 whole_archive_flag_spec_GCJ=' '
15770 archive_cmds_need_lc_GCJ=yes
15771 # This is similar to how AIX traditionally builds it's shared libraries.
15772 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'
15773 fi
15774 fi
15775 ;;
15776
15777 amigaos*)
15778 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)'
15779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15780 hardcode_minus_L_GCJ=yes
15781 # see comment about different semantics on the GNU ld section
15782 ld_shlibs_GCJ=no
15783 ;;
15784
15785 bsdi4*)
15786 export_dynamic_flag_spec_GCJ=-rdynamic
15787 ;;
15788
15789 cygwin* | mingw* | pw32*)
15790 # When not using gcc, we currently assume that we are using
15791 # Microsoft Visual C++.
15792 # hardcode_libdir_flag_spec is actually meaningless, as there is
15793 # no search path for DLLs.
15794 hardcode_libdir_flag_spec_GCJ=' '
15795 allow_undefined_flag_GCJ=unsupported
15796 # Tell ltmain to make .lib files, not .a files.
15797 libext=lib
15798 # Tell ltmain to make .dll files, not .so files.
15799 shrext=".dll"
15800 # FIXME: Setting linknames here is a bad hack.
15801 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15802 # The linker will automatically build a .lib file if we build a DLL.
15803 old_archive_From_new_cmds_GCJ='true'
15804 # FIXME: Should let the user specify the lib program.
15805 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15806 fix_srcfile_path='`cygpath -w "$srcfile"`'
15807 enable_shared_with_static_runtimes_GCJ=yes
15808 ;;
15809
15810 darwin* | rhapsody*)
15811 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15812 archive_cmds_need_lc_GCJ=no
15813 case "$host_os" in
15814 rhapsody* | darwin1.[012])
15815 allow_undefined_flag_GCJ='-undefined suppress'
15816 ;;
15817 *) # Darwin 1.3 on
15818 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15819 ;;
15820 esac
15821 # FIXME: Relying on posixy $() will cause problems for
15822 # cross-compilation, but unfortunately the echo tests do not
15823 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15824 # `"' quotes if we put them in here... so don't!
15825 lt_int_apple_cc_single_mod=no
15826 output_verbose_link_cmd='echo'
15827 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15828 lt_int_apple_cc_single_mod=yes
15829 fi
15830 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15831 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15832 else
15833 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'
15834 fi
15835 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15837 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15838 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}'
15839 else
15840 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}'
15841 fi
15842 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}'
15843 hardcode_direct_GCJ=no
15844 hardcode_automatic_GCJ=yes
15845 hardcode_shlibpath_var_GCJ=unsupported
15846 whole_archive_flag_spec_GCJ='-all_load $convenience'
15847 link_all_deplibs_GCJ=yes
15848 fi
15849 ;;
15850
15851 dgux*)
15852 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15854 hardcode_shlibpath_var_GCJ=no
15855 ;;
15856
15857 freebsd1*)
15858 ld_shlibs_GCJ=no
15859 ;;
15860
15861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15862 # support. Future versions do this automatically, but an explicit c++rt0.o
15863 # does not break anything, and helps significantly (at the cost of a little
15864 # extra space).
15865 freebsd2.2*)
15866 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15867 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15868 hardcode_direct_GCJ=yes
15869 hardcode_shlibpath_var_GCJ=no
15870 ;;
15871
15872 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15873 freebsd2*)
15874 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15875 hardcode_direct_GCJ=yes
15876 hardcode_minus_L_GCJ=yes
15877 hardcode_shlibpath_var_GCJ=no
15878 ;;
15879
15880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15881 freebsd*)
15882 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15883 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15884 hardcode_direct_GCJ=yes
15885 hardcode_shlibpath_var_GCJ=no
15886 ;;
15887
15888 hpux9*)
15889 if test "$GCC" = yes; then
15890 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'
15891 else
15892 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'
15893 fi
15894 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15895 hardcode_libdir_separator_GCJ=:
15896 hardcode_direct_GCJ=yes
15897
15898 # hardcode_minus_L: Not really in the search PATH,
15899 # but as the default location of the library.
15900 hardcode_minus_L_GCJ=yes
15901 export_dynamic_flag_spec_GCJ='${wl}-E'
15902 ;;
15903
15904 hpux10* | hpux11*)
15905 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15906 case "$host_cpu" in
15907 hppa*64*|ia64*)
15908 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15909 ;;
15910 *)
15911 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912 ;;
15913 esac
15914 else
15915 case "$host_cpu" in
15916 hppa*64*|ia64*)
15917 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 ;;
15919 *)
15920 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15921 ;;
15922 esac
15923 fi
15924 if test "$with_gnu_ld" = no; then
15925 case "$host_cpu" in
15926 hppa*64*)
15927 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15928 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15929 hardcode_libdir_separator_GCJ=:
15930 hardcode_direct_GCJ=no
15931 hardcode_shlibpath_var_GCJ=no
15932 ;;
15933 ia64*)
15934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935 hardcode_direct_GCJ=no
15936 hardcode_shlibpath_var_GCJ=no
15937
15938 # hardcode_minus_L: Not really in the search PATH,
15939 # but as the default location of the library.
15940 hardcode_minus_L_GCJ=yes
15941 ;;
15942 *)
15943 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15944 hardcode_libdir_separator_GCJ=:
15945 hardcode_direct_GCJ=yes
15946 export_dynamic_flag_spec_GCJ='${wl}-E'
15947
15948 # hardcode_minus_L: Not really in the search PATH,
15949 # but as the default location of the library.
15950 hardcode_minus_L_GCJ=yes
15951 ;;
15952 esac
15953 fi
15954 ;;
15955
15956 irix5* | irix6* | nonstopux*)
15957 if test "$GCC" = yes; then
15958 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'
15959 else
15960 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'
15961 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15962 fi
15963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15964 hardcode_libdir_separator_GCJ=:
15965 link_all_deplibs_GCJ=yes
15966 ;;
15967
15968 netbsd*)
15969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15970 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15971 else
15972 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15973 fi
15974 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15975 hardcode_direct_GCJ=yes
15976 hardcode_shlibpath_var_GCJ=no
15977 ;;
15978
15979 newsos6)
15980 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15981 hardcode_direct_GCJ=yes
15982 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15983 hardcode_libdir_separator_GCJ=:
15984 hardcode_shlibpath_var_GCJ=no
15985 ;;
15986
15987 openbsd*)
15988 hardcode_direct_GCJ=yes
15989 hardcode_shlibpath_var_GCJ=no
15990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15991 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15993 export_dynamic_flag_spec_GCJ='${wl}-E'
15994 else
15995 case $host_os in
15996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15997 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15999 ;;
16000 *)
16001 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16003 ;;
16004 esac
16005 fi
16006 ;;
16007
16008 os2*)
16009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16010 hardcode_minus_L_GCJ=yes
16011 allow_undefined_flag_GCJ=unsupported
16012 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'
16013 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16014 ;;
16015
16016 osf3*)
16017 if test "$GCC" = yes; then
16018 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16019 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'
16020 else
16021 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16022 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'
16023 fi
16024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16025 hardcode_libdir_separator_GCJ=:
16026 ;;
16027
16028 osf4* | osf5*) # as osf3* with the addition of -msym flag
16029 if test "$GCC" = yes; then
16030 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16031 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'
16032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16033 else
16034 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16035 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'
16036 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~
16037 $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'
16038
16039 # Both c and cxx compiler support -rpath directly
16040 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16041 fi
16042 hardcode_libdir_separator_GCJ=:
16043 ;;
16044
16045 sco3.2v5*)
16046 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_shlibpath_var_GCJ=no
16048 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16049 runpath_var=LD_RUN_PATH
16050 hardcode_runpath_var=yes
16051 ;;
16052
16053 solaris*)
16054 no_undefined_flag_GCJ=' -z text'
16055 if test "$GCC" = yes; then
16056 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16058 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16059 else
16060 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16063 fi
16064 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16065 hardcode_shlibpath_var_GCJ=no
16066 case $host_os in
16067 solaris2.[0-5] | solaris2.[0-5].*) ;;
16068 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16069 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16070 esac
16071 link_all_deplibs_GCJ=yes
16072 ;;
16073
16074 sunos4*)
16075 if test "x$host_vendor" = xsequent; then
16076 # Use $CC to link under sequent, because it throws in some extra .o
16077 # files that make .init and .fini sections work.
16078 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16079 else
16080 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16081 fi
16082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083 hardcode_direct_GCJ=yes
16084 hardcode_minus_L_GCJ=yes
16085 hardcode_shlibpath_var_GCJ=no
16086 ;;
16087
16088 sysv4)
16089 case $host_vendor in
16090 sni)
16091 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092 hardcode_direct_GCJ=yes # is this really true???
16093 ;;
16094 siemens)
16095 ## LD is ld it makes a PLAMLIB
16096 ## CC just makes a GrossModule.
16097 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16098 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16099 hardcode_direct_GCJ=no
16100 ;;
16101 motorola)
16102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16103 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16104 ;;
16105 esac
16106 runpath_var='LD_RUN_PATH'
16107 hardcode_shlibpath_var_GCJ=no
16108 ;;
16109
16110 sysv4.3*)
16111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112 hardcode_shlibpath_var_GCJ=no
16113 export_dynamic_flag_spec_GCJ='-Bexport'
16114 ;;
16115
16116 sysv4*MP*)
16117 if test -d /usr/nec; then
16118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119 hardcode_shlibpath_var_GCJ=no
16120 runpath_var=LD_RUN_PATH
16121 hardcode_runpath_var=yes
16122 ld_shlibs_GCJ=yes
16123 fi
16124 ;;
16125
16126 sysv4.2uw2*)
16127 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_direct_GCJ=yes
16129 hardcode_minus_L_GCJ=no
16130 hardcode_shlibpath_var_GCJ=no
16131 hardcode_runpath_var=yes
16132 runpath_var=LD_RUN_PATH
16133 ;;
16134
16135 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16136 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16137 if test "$GCC" = yes; then
16138 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16139 else
16140 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 fi
16142 runpath_var='LD_RUN_PATH'
16143 hardcode_shlibpath_var_GCJ=no
16144 ;;
16145
16146 sysv5*)
16147 no_undefined_flag_GCJ=' -z text'
16148 # $CC -shared without GNU ld will not create a library from C++
16149 # object files and a static libstdc++, better avoid it by now
16150 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16152 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16153 hardcode_libdir_flag_spec_GCJ=
16154 hardcode_shlibpath_var_GCJ=no
16155 runpath_var='LD_RUN_PATH'
16156 ;;
16157
16158 uts4*)
16159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16160 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16161 hardcode_shlibpath_var_GCJ=no
16162 ;;
16163
16164 *)
16165 ld_shlibs_GCJ=no
16166 ;;
16167 esac
16168 fi
16169
16170echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16171echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16172test "$ld_shlibs_GCJ" = no && can_build_shared=no
16173
16174variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16175if test "$GCC" = yes; then
16176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16177fi
16178
16179#
16180# Do we need to explicitly link libc?
16181#
16182case "x$archive_cmds_need_lc_GCJ" in
16183x|xyes)
16184 # Assume -lc should be added
16185 archive_cmds_need_lc_GCJ=yes
16186
16187 if test "$enable_shared" = yes && test "$GCC" = yes; then
16188 case $archive_cmds_GCJ in
16189 *'~'*)
16190 # FIXME: we may have to deal with multi-command sequences.
16191 ;;
16192 '$CC '*)
16193 # Test whether the compiler implicitly links with -lc since on some
16194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16195 # to ld, don't add -lc before -lgcc.
16196 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16197echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16198 $rm conftest*
16199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16200
16201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202 (eval $ac_compile) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } 2>conftest.err; then
16206 soname=conftest
16207 lib=conftest
16208 libobjs=conftest.$ac_objext
16209 deplibs=
16210 wl=$lt_prog_compiler_wl_GCJ
16211 compiler_flags=-v
16212 linker_flags=-v
16213 verstring=
16214 output_objdir=.
16215 libname=conftest
16216 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16217 allow_undefined_flag_GCJ=
16218 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16219 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }
16223 then
16224 archive_cmds_need_lc_GCJ=no
16225 else
16226 archive_cmds_need_lc_GCJ=yes
16227 fi
16228 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16229 else
16230 cat conftest.err 1>&5
16231 fi
16232 $rm conftest*
16233 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16234echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16235 ;;
16236 esac
16237 fi
16238 ;;
16239esac
16240
16241echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16242echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16243hardcode_action_GCJ=
16244if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16245 test -n "$runpath_var GCJ" || \
16246 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16247
16248 # We can hardcode non-existant directories.
16249 if test "$hardcode_direct_GCJ" != no &&
16250 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16251 # have to relink, otherwise we might link with an installed library
16252 # when we should be linking with a yet-to-be-installed one
16253 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16254 test "$hardcode_minus_L_GCJ" != no; then
16255 # Linking always hardcodes the temporary library directory.
16256 hardcode_action_GCJ=relink
16257 else
16258 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16259 hardcode_action_GCJ=immediate
16260 fi
16261else
16262 # We cannot hardcode anything, or else we can only hardcode existing
16263 # directories.
16264 hardcode_action_GCJ=unsupported
16265fi
16266echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16267echo "${ECHO_T}$hardcode_action_GCJ" >&6
16268
16269if test "$hardcode_action_GCJ" = relink; then
16270 # Fast installation is not supported
16271 enable_fast_install=no
16272elif test "$shlibpath_overrides_runpath" = yes ||
16273 test "$enable_shared" = no; then
16274 # Fast installation is not necessary
16275 enable_fast_install=needless
16276fi
16277
16278striplib=
16279old_striplib=
16280echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16281echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16282if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16285 echo "$as_me:$LINENO: result: yes" >&5
16286echo "${ECHO_T}yes" >&6
16287else
16288# FIXME - insert some real tests, host_os isn't really good enough
16289 case $host_os in
16290 darwin*)
16291 if test -n "$STRIP" ; then
16292 striplib="$STRIP -x"
16293 echo "$as_me:$LINENO: result: yes" >&5
16294echo "${ECHO_T}yes" >&6
16295 else
16296 echo "$as_me:$LINENO: result: no" >&5
16297echo "${ECHO_T}no" >&6
16298fi
16299 ;;
16300 *)
16301 echo "$as_me:$LINENO: result: no" >&5
16302echo "${ECHO_T}no" >&6
16303 ;;
16304 esac
16305fi
16306
16307echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16308echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16309library_names_spec=
16310libname_spec='lib$name'
16311soname_spec=
16312shrext=".so"
16313postinstall_cmds=
16314postuninstall_cmds=
16315finish_cmds=
16316finish_eval=
16317shlibpath_var=
16318shlibpath_overrides_runpath=unknown
16319version_type=none
16320dynamic_linker="$host_os ld.so"
16321sys_lib_dlsearch_path_spec="/lib /usr/lib"
16322if test "$GCC" = yes; then
16323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16325 # if the path contains ";" then we assume it to be the separator
16326 # otherwise default to the standard path separator (i.e. ":") - it is
16327 # assumed that no part of a normal pathname contains ";" but that should
16328 # okay in the real world where ";" in dirpaths is itself problematic.
16329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16330 else
16331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16332 fi
16333else
16334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16335fi
16336need_lib_prefix=unknown
16337hardcode_into_libs=no
16338
16339# when you set need_version to no, make sure it does not cause -set_version
16340# flags to be left without arguments
16341need_version=unknown
16342
16343case $host_os in
16344aix3*)
16345 version_type=linux
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16347 shlibpath_var=LIBPATH
16348
16349 # AIX 3 has no versioning support, so we append a major version to the name.
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 ;;
16352
16353aix4* | aix5*)
16354 version_type=linux
16355 need_lib_prefix=no
16356 need_version=no
16357 hardcode_into_libs=yes
16358 if test "$host_cpu" = ia64; then
16359 # AIX 5 supports IA64
16360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 else
16363 # With GCC up to 2.95.x, collect2 would create an import file
16364 # for dependence libraries. The import file would start with
16365 # the line `#! .'. This would cause the generated library to
16366 # depend on `.', always an invalid library. This was fixed in
16367 # development snapshots of GCC prior to 3.0.
16368 case $host_os in
16369 aix4 | aix4.[01] | aix4.[01].*)
16370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16371 echo ' yes '
16372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16373 :
16374 else
16375 can_build_shared=no
16376 fi
16377 ;;
16378 esac
16379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16380 # soname into executable. Probably we can add versioning support to
16381 # collect2, so additional links can be useful in future.
16382 if test "$aix_use_runtimelinking" = yes; then
16383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16384 # instead of lib<name>.a to let people know that these are not
16385 # typical AIX shared libraries.
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 else
16388 # We preserve .a as extension for shared libraries through AIX4.2
16389 # and later when we are not doing run time linking.
16390 library_names_spec='${libname}${release}.a $libname.a'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 fi
16393 shlibpath_var=LIBPATH
16394 fi
16395 ;;
16396
16397amigaos*)
16398 library_names_spec='$libname.ixlibrary $libname.a'
16399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16400 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'
16401 ;;
16402
16403beos*)
16404 library_names_spec='${libname}${shared_ext}'
16405 dynamic_linker="$host_os ld.so"
16406 shlibpath_var=LIBRARY_PATH
16407 ;;
16408
16409bsdi4*)
16410 version_type=linux
16411 need_version=no
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16418 # the default ld.so.conf also contains /usr/contrib/lib and
16419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16420 # libtool to hard-code these into programs
16421 ;;
16422
16423cygwin* | mingw* | pw32*)
16424 version_type=windows
16425 shrext=".dll"
16426 need_version=no
16427 need_lib_prefix=no
16428
16429 case $GCC,$host_os in
16430 yes,cygwin* | yes,mingw* | yes,pw32*)
16431 library_names_spec='$libname.dll.a'
16432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16433 postinstall_cmds='base_file=`basename \${file}`~
16434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16435 dldir=$destdir/`dirname \$dlpath`~
16436 test -d \$dldir || mkdir -p \$dldir~
16437 $install_prog $dir/$dlname \$dldir/$dlname'
16438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16439 dlpath=$dir/\$dldll~
16440 $rm \$dlpath'
16441 shlibpath_overrides_runpath=yes
16442
16443 case $host_os in
16444 cygwin*)
16445 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16446 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16448 ;;
16449 mingw*)
16450 # MinGW DLLs use traditional 'lib' prefix
16451 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16452 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16453 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16454 # It is most probably a Windows format PATH printed by
16455 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16456 # path with ; separators, and with drive letters. We can handle the
16457 # drive letters (cygwin fileutils understands them), so leave them,
16458 # especially as we might pass files found there to a mingw objdump,
16459 # which wouldn't understand a cygwinified path. Ahh.
16460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16461 else
16462 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16463 fi
16464 ;;
16465 pw32*)
16466 # pw32 DLLs use 'pw' prefix rather than 'lib'
16467 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16468 ;;
16469 esac
16470 ;;
16471
16472 *)
16473 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16474 ;;
16475 esac
16476 dynamic_linker='Win32 ld.exe'
16477 # FIXME: first we should search . and the directory the executable is in
16478 shlibpath_var=PATH
16479 ;;
16480
16481darwin* | rhapsody*)
16482 dynamic_linker="$host_os dyld"
16483 version_type=darwin
16484 need_lib_prefix=no
16485 need_version=no
16486 # FIXME: Relying on posixy $() will cause problems for
16487 # cross-compilation, but unfortunately the echo tests do not
16488 # yet detect zsh echo's removal of \ escapes.
16489 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16490 soname_spec='${libname}${release}${major}$shared_ext'
16491 shlibpath_overrides_runpath=yes
16492 shlibpath_var=DYLD_LIBRARY_PATH
16493 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16494 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16495 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16496 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"`
16497 fi
16498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16499 ;;
16500
16501dgux*)
16502 version_type=linux
16503 need_lib_prefix=no
16504 need_version=no
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 ;;
16509
16510freebsd1*)
16511 dynamic_linker=no
16512 ;;
16513
16514freebsd*)
16515 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16516 version_type=freebsd-$objformat
16517 case $version_type in
16518 freebsd-elf*)
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16520 need_version=no
16521 need_lib_prefix=no
16522 ;;
16523 freebsd-*)
16524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16525 need_version=yes
16526 ;;
16527 esac
16528 shlibpath_var=LD_LIBRARY_PATH
16529 case $host_os in
16530 freebsd2*)
16531 shlibpath_overrides_runpath=yes
16532 ;;
16533 freebsd3.01* | freebsdelf3.01*)
16534 shlibpath_overrides_runpath=yes
16535 hardcode_into_libs=yes
16536 ;;
16537 *) # from 3.2 on
16538 shlibpath_overrides_runpath=no
16539 hardcode_into_libs=yes
16540 ;;
16541 esac
16542 ;;
16543
16544gnu*)
16545 version_type=linux
16546 need_lib_prefix=no
16547 need_version=no
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16549 soname_spec='${libname}${release}${shared_ext}$major'
16550 shlibpath_var=LD_LIBRARY_PATH
16551 hardcode_into_libs=yes
16552 ;;
16553
16554hpux9* | hpux10* | hpux11*)
16555 # Give a soname corresponding to the major version so that dld.sl refuses to
16556 # link against other versions.
16557 version_type=sunos
16558 need_lib_prefix=no
16559 need_version=no
16560 case "$host_cpu" in
16561 ia64*)
16562 shrext='.so'
16563 hardcode_into_libs=yes
16564 dynamic_linker="$host_os dld.so"
16565 shlibpath_var=LD_LIBRARY_PATH
16566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 if test "X$HPUX_IA64_MODE" = X32; then
16570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16571 else
16572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16573 fi
16574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16575 ;;
16576 hppa*64*)
16577 shrext='.sl'
16578 hardcode_into_libs=yes
16579 dynamic_linker="$host_os dld.sl"
16580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16586 ;;
16587 *)
16588 shrext='.sl'
16589 dynamic_linker="$host_os dld.sl"
16590 shlibpath_var=SHLIB_PATH
16591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 ;;
16595 esac
16596 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16597 postinstall_cmds='chmod 555 $lib'
16598 ;;
16599
16600irix5* | irix6* | nonstopux*)
16601 case $host_os in
16602 nonstopux*) version_type=nonstopux ;;
16603 *)
16604 if test "$lt_cv_prog_gnu_ld" = yes; then
16605 version_type=linux
16606 else
16607 version_type=irix
16608 fi ;;
16609 esac
16610 need_lib_prefix=no
16611 need_version=no
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16614 case $host_os in
16615 irix5* | nonstopux*)
16616 libsuff= shlibsuff=
16617 ;;
16618 *)
16619 case $LD in # libtool.m4 will add one of these switches to LD
16620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16621 libsuff= shlibsuff= libmagic=32-bit;;
16622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16623 libsuff=32 shlibsuff=N32 libmagic=N32;;
16624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16626 *) libsuff= shlibsuff= libmagic=never-match;;
16627 esac
16628 ;;
16629 esac
16630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16631 shlibpath_overrides_runpath=no
16632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16634 hardcode_into_libs=yes
16635 ;;
16636
16637# No shared lib support for Linux oldld, aout, or coff.
16638linux*oldld* | linux*aout* | linux*coff*)
16639 dynamic_linker=no
16640 ;;
16641
16642# This must be Linux ELF.
16643linux*)
16644 version_type=linux
16645 need_lib_prefix=no
16646 need_version=no
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=no
16652 # This implies no fast_install, which is unacceptable.
16653 # Some rework will be needed to allow for fast_install
16654 # before this can be enabled.
16655 hardcode_into_libs=yes
16656
16657 # We used to test for /lib/ld.so.1 and disable shared libraries on
16658 # powerpc, because MkLinux only supported shared libraries with the
16659 # GNU dynamic linker. Since this was broken with cross compilers,
16660 # most powerpc-linux boxes support dynamic linking these days and
16661 # people can always --disable-shared, the test was removed, and we
16662 # assume the GNU/Linux dynamic linker is in use.
16663 dynamic_linker='GNU/Linux ld.so'
16664 ;;
16665
16666netbsd*)
16667 version_type=sunos
16668 need_lib_prefix=no
16669 need_version=no
16670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16673 dynamic_linker='NetBSD (a.out) ld.so'
16674 else
16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 dynamic_linker='NetBSD ld.elf_so'
16678 fi
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes
16681 hardcode_into_libs=yes
16682 ;;
16683
16684newsos6)
16685 version_type=linux
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16689 ;;
16690
16691nto-qnx)
16692 version_type=linux
16693 need_lib_prefix=no
16694 need_version=no
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes
16699 ;;
16700
16701openbsd*)
16702 version_type=sunos
16703 need_lib_prefix=no
16704 need_version=no
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709 case $host_os in
16710 openbsd2.[89] | openbsd2.[89].*)
16711 shlibpath_overrides_runpath=no
16712 ;;
16713 *)
16714 shlibpath_overrides_runpath=yes
16715 ;;
16716 esac
16717 else
16718 shlibpath_overrides_runpath=yes
16719 fi
16720 ;;
16721
16722os2*)
16723 libname_spec='$name'
16724 shrext=".dll"
16725 need_lib_prefix=no
16726 library_names_spec='$libname${shared_ext} $libname.a'
16727 dynamic_linker='OS/2 ld.exe'
16728 shlibpath_var=LIBPATH
16729 ;;
16730
16731osf3* | osf4* | osf5*)
16732 version_type=osf
16733 need_lib_prefix=no
16734 need_version=no
16735 soname_spec='${libname}${release}${shared_ext}$major'
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16740 ;;
16741
16742sco3.2v5*)
16743 version_type=osf
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16746 shlibpath_var=LD_LIBRARY_PATH
16747 ;;
16748
16749solaris*)
16750 version_type=linux
16751 need_lib_prefix=no
16752 need_version=no
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=yes
16757 hardcode_into_libs=yes
16758 # ldd complains unless libraries are executable
16759 postinstall_cmds='chmod +x $lib'
16760 ;;
16761
16762sunos4*)
16763 version_type=sunos
16764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16765 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 if test "$with_gnu_ld" = yes; then
16769 need_lib_prefix=no
16770 fi
16771 need_version=yes
16772 ;;
16773
16774sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16775 version_type=linux
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777 soname_spec='${libname}${release}${shared_ext}$major'
16778 shlibpath_var=LD_LIBRARY_PATH
16779 case $host_vendor in
16780 sni)
16781 shlibpath_overrides_runpath=no
16782 need_lib_prefix=no
16783 export_dynamic_flag_spec='${wl}-Blargedynsym'
16784 runpath_var=LD_RUN_PATH
16785 ;;
16786 siemens)
16787 need_lib_prefix=no
16788 ;;
16789 motorola)
16790 need_lib_prefix=no
16791 need_version=no
16792 shlibpath_overrides_runpath=no
16793 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16794 ;;
16795 esac
16796 ;;
16797
16798sysv4*MP*)
16799 if test -d /usr/nec ;then
16800 version_type=linux
16801 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16802 soname_spec='$libname${shared_ext}.$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 fi
16805 ;;
16806
16807uts4*)
16808 version_type=linux
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810 soname_spec='${libname}${release}${shared_ext}$major'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 ;;
16813
16814*)
16815 dynamic_linker=no
16816 ;;
16817esac
16818echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16819echo "${ECHO_T}$dynamic_linker" >&6
16820test "$dynamic_linker" = no && can_build_shared=no
16821
16822if test "x$enable_dlopen" != xyes; then
16823 enable_dlopen=unknown
16824 enable_dlopen_self=unknown
16825 enable_dlopen_self_static=unknown
16826else
16827 lt_cv_dlopen=no
16828 lt_cv_dlopen_libs=
16829
16830 case $host_os in
16831 beos*)
16832 lt_cv_dlopen="load_add_on"
16833 lt_cv_dlopen_libs=
16834 lt_cv_dlopen_self=yes
16835 ;;
16836
16837 mingw* | pw32*)
16838 lt_cv_dlopen="LoadLibrary"
16839 lt_cv_dlopen_libs=
16840 ;;
16841
16842 cygwin*)
16843 lt_cv_dlopen="dlopen"
16844 lt_cv_dlopen_libs=
16845 ;;
16846
16847 darwin*)
16848 # if libdl is installed we need to link against it
16849 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16850echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16851if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16853else
16854 ac_check_lib_save_LIBS=$LIBS
16855LIBS="-ldl $LIBS"
16856cat >conftest.$ac_ext <<_ACEOF
16857#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016858/* confdefs.h. */
16859_ACEOF
16860cat confdefs.h >>conftest.$ac_ext
16861cat >>conftest.$ac_ext <<_ACEOF
16862/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016863
16864/* Override any gcc2 internal prototype to avoid an error. */
16865#ifdef __cplusplus
16866extern "C"
16867#endif
16868/* We use char because int might match the return type of a gcc2
16869 builtin and then its argument prototype would still apply. */
16870char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016871int
16872main ()
16873{
16874dlopen ();
16875 ;
16876 return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext conftest$ac_exeext
16880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16881 (eval $ac_link) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -s conftest$ac_exeext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_cv_lib_dl_dlopen=yes
16892else
16893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016894sed 's/^/| /' conftest.$ac_ext >&5
16895
John Criswell47fdd832003-07-14 16:52:07 +000016896ac_cv_lib_dl_dlopen=no
16897fi
16898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16899LIBS=$ac_check_lib_save_LIBS
16900fi
16901echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16902echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16903if test $ac_cv_lib_dl_dlopen = yes; then
16904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16905else
16906
16907 lt_cv_dlopen="dyld"
16908 lt_cv_dlopen_libs=
16909 lt_cv_dlopen_self=yes
16910
16911fi
16912
16913 ;;
16914
16915 *)
16916 echo "$as_me:$LINENO: checking for shl_load" >&5
16917echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16918if test "${ac_cv_func_shl_load+set}" = set; then
16919 echo $ECHO_N "(cached) $ECHO_C" >&6
16920else
16921 cat >conftest.$ac_ext <<_ACEOF
16922#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016928/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016929 which can conflict with char shl_load (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16932#ifdef __STDC__
16933# include <limits.h>
16934#else
16935# include <assert.h>
16936#endif
John Criswell47fdd832003-07-14 16:52:07 +000016937/* Override any gcc2 internal prototype to avoid an error. */
16938#ifdef __cplusplus
16939extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016940{
John Criswell47fdd832003-07-14 16:52:07 +000016941#endif
16942/* We use char because int might match the return type of a gcc2
16943 builtin and then its argument prototype would still apply. */
16944char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016945/* The GNU C library defines this for functions which it implements
16946 to always fail with ENOSYS. Some functions are actually named
16947 something starting with __ and the normal name is an alias. */
16948#if defined (__stub_shl_load) || defined (__stub___shl_load)
16949choke me
16950#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016951char (*f) () = shl_load;
16952#endif
16953#ifdef __cplusplus
16954}
John Criswell47fdd832003-07-14 16:52:07 +000016955#endif
16956
John Criswell0c38eaf2003-09-10 15:17:25 +000016957int
16958main ()
16959{
16960return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016961 ;
16962 return 0;
16963}
16964_ACEOF
16965rm -f conftest.$ac_objext conftest$ac_exeext
16966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16967 (eval $ac_link) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -s conftest$ac_exeext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_func_shl_load=yes
16978else
16979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016980sed 's/^/| /' conftest.$ac_ext >&5
16981
John Criswell47fdd832003-07-14 16:52:07 +000016982ac_cv_func_shl_load=no
16983fi
16984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16985fi
16986echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16987echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16988if test $ac_cv_func_shl_load = yes; then
16989 lt_cv_dlopen="shl_load"
16990else
16991 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16992echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16993if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16995else
16996 ac_check_lib_save_LIBS=$LIBS
16997LIBS="-ldld $LIBS"
16998cat >conftest.$ac_ext <<_ACEOF
16999#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017000/* confdefs.h. */
17001_ACEOF
17002cat confdefs.h >>conftest.$ac_ext
17003cat >>conftest.$ac_ext <<_ACEOF
17004/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017005
17006/* Override any gcc2 internal prototype to avoid an error. */
17007#ifdef __cplusplus
17008extern "C"
17009#endif
17010/* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
17012char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017013int
17014main ()
17015{
17016shl_load ();
17017 ;
17018 return 0;
17019}
17020_ACEOF
17021rm -f conftest.$ac_objext conftest$ac_exeext
17022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17023 (eval $ac_link) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -s conftest$ac_exeext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_lib_dld_shl_load=yes
17034else
17035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017036sed 's/^/| /' conftest.$ac_ext >&5
17037
John Criswell47fdd832003-07-14 16:52:07 +000017038ac_cv_lib_dld_shl_load=no
17039fi
17040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17041LIBS=$ac_check_lib_save_LIBS
17042fi
17043echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17044echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17045if test $ac_cv_lib_dld_shl_load = yes; then
17046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17047else
17048 echo "$as_me:$LINENO: checking for dlopen" >&5
17049echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17050if test "${ac_cv_func_dlopen+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17052else
17053 cat >conftest.$ac_ext <<_ACEOF
17054#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017060/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017061 which can conflict with char dlopen (); below.
17062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063 <limits.h> exists even on freestanding compilers. */
17064#ifdef __STDC__
17065# include <limits.h>
17066#else
17067# include <assert.h>
17068#endif
John Criswell47fdd832003-07-14 16:52:07 +000017069/* Override any gcc2 internal prototype to avoid an error. */
17070#ifdef __cplusplus
17071extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017072{
John Criswell47fdd832003-07-14 16:52:07 +000017073#endif
17074/* We use char because int might match the return type of a gcc2
17075 builtin and then its argument prototype would still apply. */
17076char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017077/* The GNU C library defines this for functions which it implements
17078 to always fail with ENOSYS. Some functions are actually named
17079 something starting with __ and the normal name is an alias. */
17080#if defined (__stub_dlopen) || defined (__stub___dlopen)
17081choke me
17082#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017083char (*f) () = dlopen;
17084#endif
17085#ifdef __cplusplus
17086}
John Criswell47fdd832003-07-14 16:52:07 +000017087#endif
17088
John Criswell0c38eaf2003-09-10 15:17:25 +000017089int
17090main ()
17091{
17092return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017093 ;
17094 return 0;
17095}
17096_ACEOF
17097rm -f conftest.$ac_objext conftest$ac_exeext
17098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17099 (eval $ac_link) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -s conftest$ac_exeext'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_func_dlopen=yes
17110else
17111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017112sed 's/^/| /' conftest.$ac_ext >&5
17113
John Criswell47fdd832003-07-14 16:52:07 +000017114ac_cv_func_dlopen=no
17115fi
17116rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17117fi
17118echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17119echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17120if test $ac_cv_func_dlopen = yes; then
17121 lt_cv_dlopen="dlopen"
17122else
17123 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17124echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17125if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17127else
17128 ac_check_lib_save_LIBS=$LIBS
17129LIBS="-ldl $LIBS"
17130cat >conftest.$ac_ext <<_ACEOF
17131#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017137
17138/* Override any gcc2 internal prototype to avoid an error. */
17139#ifdef __cplusplus
17140extern "C"
17141#endif
17142/* We use char because int might match the return type of a gcc2
17143 builtin and then its argument prototype would still apply. */
17144char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017145int
17146main ()
17147{
17148dlopen ();
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext conftest$ac_exeext
17154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17155 (eval $ac_link) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_cv_lib_dl_dlopen=yes
17166else
17167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017168sed 's/^/| /' conftest.$ac_ext >&5
17169
John Criswell47fdd832003-07-14 16:52:07 +000017170ac_cv_lib_dl_dlopen=no
17171fi
17172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17173LIBS=$ac_check_lib_save_LIBS
17174fi
17175echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17176echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17177if test $ac_cv_lib_dl_dlopen = yes; then
17178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17179else
17180 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17181echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17182if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184else
17185 ac_check_lib_save_LIBS=$LIBS
17186LIBS="-lsvld $LIBS"
17187cat >conftest.$ac_ext <<_ACEOF
17188#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017194
17195/* Override any gcc2 internal prototype to avoid an error. */
17196#ifdef __cplusplus
17197extern "C"
17198#endif
17199/* We use char because int might match the return type of a gcc2
17200 builtin and then its argument prototype would still apply. */
17201char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017202int
17203main ()
17204{
17205dlopen ();
17206 ;
17207 return 0;
17208}
17209_ACEOF
17210rm -f conftest.$ac_objext conftest$ac_exeext
17211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17212 (eval $ac_link) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -s conftest$ac_exeext'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 ac_cv_lib_svld_dlopen=yes
17223else
17224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017225sed 's/^/| /' conftest.$ac_ext >&5
17226
John Criswell47fdd832003-07-14 16:52:07 +000017227ac_cv_lib_svld_dlopen=no
17228fi
17229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17230LIBS=$ac_check_lib_save_LIBS
17231fi
17232echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17233echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17234if test $ac_cv_lib_svld_dlopen = yes; then
17235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17236else
17237 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17238echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17239if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241else
17242 ac_check_lib_save_LIBS=$LIBS
17243LIBS="-ldld $LIBS"
17244cat >conftest.$ac_ext <<_ACEOF
17245#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017246/* confdefs.h. */
17247_ACEOF
17248cat confdefs.h >>conftest.$ac_ext
17249cat >>conftest.$ac_ext <<_ACEOF
17250/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017251
17252/* Override any gcc2 internal prototype to avoid an error. */
17253#ifdef __cplusplus
17254extern "C"
17255#endif
17256/* We use char because int might match the return type of a gcc2
17257 builtin and then its argument prototype would still apply. */
17258char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017259int
17260main ()
17261{
17262dld_link ();
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267rm -f conftest.$ac_objext conftest$ac_exeext
17268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try='test -s conftest$ac_exeext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_cv_lib_dld_dld_link=yes
17280else
17281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017282sed 's/^/| /' conftest.$ac_ext >&5
17283
John Criswell47fdd832003-07-14 16:52:07 +000017284ac_cv_lib_dld_dld_link=no
17285fi
17286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17287LIBS=$ac_check_lib_save_LIBS
17288fi
17289echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17290echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17291if test $ac_cv_lib_dld_dld_link = yes; then
17292 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17293fi
17294
17295
17296fi
17297
17298
17299fi
17300
17301
17302fi
17303
17304
17305fi
17306
17307
17308fi
17309
17310 ;;
17311 esac
17312
17313 if test "x$lt_cv_dlopen" != xno; then
17314 enable_dlopen=yes
17315 else
17316 enable_dlopen=no
17317 fi
17318
17319 case $lt_cv_dlopen in
17320 dlopen)
17321 save_CPPFLAGS="$CPPFLAGS"
17322 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17323
17324 save_LDFLAGS="$LDFLAGS"
17325 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17326
17327 save_LIBS="$LIBS"
17328 LIBS="$lt_cv_dlopen_libs $LIBS"
17329
17330 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17331echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17332if test "${lt_cv_dlopen_self+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334else
17335 if test "$cross_compiling" = yes; then :
17336 lt_cv_dlopen_self=cross
17337else
17338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17339 lt_status=$lt_dlunknown
17340 cat > conftest.$ac_ext <<EOF
John Criswell3b195522003-09-15 14:25:08 +000017341#line 17341 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017342#include "confdefs.h"
17343
17344#if HAVE_DLFCN_H
17345#include <dlfcn.h>
17346#endif
17347
17348#include <stdio.h>
17349
17350#ifdef RTLD_GLOBAL
17351# define LT_DLGLOBAL RTLD_GLOBAL
17352#else
17353# ifdef DL_GLOBAL
17354# define LT_DLGLOBAL DL_GLOBAL
17355# else
17356# define LT_DLGLOBAL 0
17357# endif
17358#endif
17359
17360/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17361 find out it does not work in some platform. */
17362#ifndef LT_DLLAZY_OR_NOW
17363# ifdef RTLD_LAZY
17364# define LT_DLLAZY_OR_NOW RTLD_LAZY
17365# else
17366# ifdef DL_LAZY
17367# define LT_DLLAZY_OR_NOW DL_LAZY
17368# else
17369# ifdef RTLD_NOW
17370# define LT_DLLAZY_OR_NOW RTLD_NOW
17371# else
17372# ifdef DL_NOW
17373# define LT_DLLAZY_OR_NOW DL_NOW
17374# else
17375# define LT_DLLAZY_OR_NOW 0
17376# endif
17377# endif
17378# endif
17379# endif
17380#endif
17381
17382#ifdef __cplusplus
17383extern "C" void exit (int);
17384#endif
17385
17386void fnord() { int i=42;}
17387int main ()
17388{
17389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17390 int status = $lt_dlunknown;
17391
17392 if (self)
17393 {
17394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17395 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17396 /* dlclose (self); */
17397 }
17398
17399 exit (status);
17400}
17401EOF
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403 (eval $ac_link) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17407 (./conftest; exit; ) 2>/dev/null
17408 lt_status=$?
17409 case x$lt_status in
17410 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17411 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17412 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17413 esac
17414 else :
17415 # compilation failed
17416 lt_cv_dlopen_self=no
17417 fi
17418fi
17419rm -fr conftest*
17420
17421
17422fi
17423echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17424echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17425
17426 if test "x$lt_cv_dlopen_self" = xyes; then
17427 LDFLAGS="$LDFLAGS $link_static_flag"
17428 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17429echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17430if test "${lt_cv_dlopen_self_static+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 if test "$cross_compiling" = yes; then :
17434 lt_cv_dlopen_self_static=cross
17435else
17436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17437 lt_status=$lt_dlunknown
17438 cat > conftest.$ac_ext <<EOF
John Criswell3b195522003-09-15 14:25:08 +000017439#line 17439 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017440#include "confdefs.h"
17441
17442#if HAVE_DLFCN_H
17443#include <dlfcn.h>
17444#endif
17445
17446#include <stdio.h>
17447
17448#ifdef RTLD_GLOBAL
17449# define LT_DLGLOBAL RTLD_GLOBAL
17450#else
17451# ifdef DL_GLOBAL
17452# define LT_DLGLOBAL DL_GLOBAL
17453# else
17454# define LT_DLGLOBAL 0
17455# endif
17456#endif
17457
17458/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17459 find out it does not work in some platform. */
17460#ifndef LT_DLLAZY_OR_NOW
17461# ifdef RTLD_LAZY
17462# define LT_DLLAZY_OR_NOW RTLD_LAZY
17463# else
17464# ifdef DL_LAZY
17465# define LT_DLLAZY_OR_NOW DL_LAZY
17466# else
17467# ifdef RTLD_NOW
17468# define LT_DLLAZY_OR_NOW RTLD_NOW
17469# else
17470# ifdef DL_NOW
17471# define LT_DLLAZY_OR_NOW DL_NOW
17472# else
17473# define LT_DLLAZY_OR_NOW 0
17474# endif
17475# endif
17476# endif
17477# endif
17478#endif
17479
17480#ifdef __cplusplus
17481extern "C" void exit (int);
17482#endif
17483
17484void fnord() { int i=42;}
17485int main ()
17486{
17487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17488 int status = $lt_dlunknown;
17489
17490 if (self)
17491 {
17492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17494 /* dlclose (self); */
17495 }
17496
17497 exit (status);
17498}
17499EOF
17500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17505 (./conftest; exit; ) 2>/dev/null
17506 lt_status=$?
17507 case x$lt_status in
17508 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17509 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17510 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17511 esac
17512 else :
17513 # compilation failed
17514 lt_cv_dlopen_self_static=no
17515 fi
17516fi
17517rm -fr conftest*
17518
17519
17520fi
17521echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17522echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17523 fi
17524
17525 CPPFLAGS="$save_CPPFLAGS"
17526 LDFLAGS="$save_LDFLAGS"
17527 LIBS="$save_LIBS"
17528 ;;
17529 esac
17530
17531 case $lt_cv_dlopen_self in
17532 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17533 *) enable_dlopen_self=unknown ;;
17534 esac
17535
17536 case $lt_cv_dlopen_self_static in
17537 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17538 *) enable_dlopen_self_static=unknown ;;
17539 esac
17540fi
17541
17542
17543# The else clause should only fire when bootstrapping the
17544# libtool distribution, otherwise you forgot to ship ltmain.sh
17545# with your package, and you will get complaints that there are
17546# no rules to generate ltmain.sh.
17547if test -f "$ltmain"; then
17548 # See if we are running on zsh, and set the options which allow our commands through
17549 # without removal of \ escapes.
17550 if test -n "${ZSH_VERSION+set}" ; then
17551 setopt NO_GLOB_SUBST
17552 fi
17553 # Now quote all the things that may contain metacharacters while being
17554 # careful not to overquote the AC_SUBSTed values. We take copies of the
17555 # variables and quote the copies for generation of the libtool script.
17556 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17557 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17558 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17559 deplibs_check_method reload_flag reload_cmds need_locks \
17560 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17561 lt_cv_sys_global_symbol_to_c_name_address \
17562 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17563 old_postinstall_cmds old_postuninstall_cmds \
17564 compiler_GCJ \
17565 CC_GCJ \
17566 LD_GCJ \
17567 lt_prog_compiler_wl_GCJ \
17568 lt_prog_compiler_pic_GCJ \
17569 lt_prog_compiler_static_GCJ \
17570 lt_prog_compiler_no_builtin_flag_GCJ \
17571 export_dynamic_flag_spec_GCJ \
17572 thread_safe_flag_spec_GCJ \
17573 whole_archive_flag_spec_GCJ \
17574 enable_shared_with_static_runtimes_GCJ \
17575 old_archive_cmds_GCJ \
17576 old_archive_from_new_cmds_GCJ \
17577 predep_objects_GCJ \
17578 postdep_objects_GCJ \
17579 predeps_GCJ \
17580 postdeps_GCJ \
17581 compiler_lib_search_path_GCJ \
17582 archive_cmds_GCJ \
17583 archive_expsym_cmds_GCJ \
17584 postinstall_cmds_GCJ \
17585 postuninstall_cmds_GCJ \
17586 old_archive_from_expsyms_cmds_GCJ \
17587 allow_undefined_flag_GCJ \
17588 no_undefined_flag_GCJ \
17589 export_symbols_cmds_GCJ \
17590 hardcode_libdir_flag_spec_GCJ \
17591 hardcode_libdir_flag_spec_ld_GCJ \
17592 hardcode_libdir_separator_GCJ \
17593 hardcode_automatic_GCJ \
17594 module_cmds_GCJ \
17595 module_expsym_cmds_GCJ \
17596 lt_cv_prog_compiler_c_o_GCJ \
17597 exclude_expsyms_GCJ \
17598 include_expsyms_GCJ; do
17599
17600 case $var in
17601 old_archive_cmds_GCJ | \
17602 old_archive_from_new_cmds_GCJ | \
17603 archive_cmds_GCJ | \
17604 archive_expsym_cmds_GCJ | \
17605 module_cmds_GCJ | \
17606 module_expsym_cmds_GCJ | \
17607 old_archive_from_expsyms_cmds_GCJ | \
17608 export_symbols_cmds_GCJ | \
17609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17610 postinstall_cmds | postuninstall_cmds | \
17611 old_postinstall_cmds | old_postuninstall_cmds | \
17612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17613 # Double-quote double-evaled strings.
17614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17615 ;;
17616 *)
17617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17618 ;;
17619 esac
17620 done
17621
17622 case $lt_echo in
17623 *'\$0 --fallback-echo"')
17624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17625 ;;
17626 esac
17627
17628cfgfile="$ofile"
17629
17630 cat <<__EOF__ >> "$cfgfile"
17631# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17632
17633# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17634
17635# Shell to use when invoking shell scripts.
17636SHELL=$lt_SHELL
17637
17638# Whether or not to build shared libraries.
17639build_libtool_libs=$enable_shared
17640
17641# Whether or not to build static libraries.
17642build_old_libs=$enable_static
17643
17644# Whether or not to add -lc for building shared libraries.
17645build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17646
17647# Whether or not to disallow shared libs when runtime libs are static
17648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17649
17650# Whether or not to optimize for fast installation.
17651fast_install=$enable_fast_install
17652
17653# The host system.
17654host_alias=$host_alias
17655host=$host
17656
17657# An echo program that does not interpret backslashes.
17658echo=$lt_echo
17659
17660# The archiver.
17661AR=$lt_AR
17662AR_FLAGS=$lt_AR_FLAGS
17663
17664# A C compiler.
17665LTCC=$lt_LTCC
17666
17667# A language-specific compiler.
17668CC=$lt_compiler_GCJ
17669
17670# Is the compiler the GNU C compiler?
17671with_gcc=$GCC_GCJ
17672
17673# An ERE matcher.
17674EGREP=$lt_EGREP
17675
17676# The linker used to build libraries.
17677LD=$lt_LD_GCJ
17678
17679# Whether we need hard or soft links.
17680LN_S=$lt_LN_S
17681
17682# A BSD-compatible nm program.
17683NM=$lt_NM
17684
17685# A symbol stripping program
17686STRIP=$STRIP
17687
17688# Used to examine libraries when file_magic_cmd begins "file"
17689MAGIC_CMD=$MAGIC_CMD
17690
17691# Used on cygwin: DLL creation program.
17692DLLTOOL="$DLLTOOL"
17693
17694# Used on cygwin: object dumper.
17695OBJDUMP="$OBJDUMP"
17696
17697# Used on cygwin: assembler.
17698AS="$AS"
17699
17700# The name of the directory that contains temporary libtool files.
17701objdir=$objdir
17702
17703# How to create reloadable object files.
17704reload_flag=$lt_reload_flag
17705reload_cmds=$lt_reload_cmds
17706
17707# How to pass a linker flag through the compiler.
17708wl=$lt_lt_prog_compiler_wl_GCJ
17709
17710# Object file suffix (normally "o").
17711objext="$ac_objext"
17712
17713# Old archive suffix (normally "a").
17714libext="$libext"
17715
17716# Shared library suffix (normally ".so").
17717shrext='$shrext'
17718
17719# Executable file suffix (normally "").
17720exeext="$exeext"
17721
17722# Additional compiler flags for building library objects.
17723pic_flag=$lt_lt_prog_compiler_pic_GCJ
17724pic_mode=$pic_mode
17725
17726# What is the maximum length of a command?
17727max_cmd_len=$lt_cv_sys_max_cmd_len
17728
17729# Does compiler simultaneously support -c and -o options?
17730compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17731
17732# Must we lock files when doing compilation ?
17733need_locks=$lt_need_locks
17734
17735# Do we need the lib prefix for modules?
17736need_lib_prefix=$need_lib_prefix
17737
17738# Do we need a version for libraries?
17739need_version=$need_version
17740
17741# Whether dlopen is supported.
17742dlopen_support=$enable_dlopen
17743
17744# Whether dlopen of programs is supported.
17745dlopen_self=$enable_dlopen_self
17746
17747# Whether dlopen of statically linked programs is supported.
17748dlopen_self_static=$enable_dlopen_self_static
17749
17750# Compiler flag to prevent dynamic linking.
17751link_static_flag=$lt_lt_prog_compiler_static_GCJ
17752
17753# Compiler flag to turn off builtin functions.
17754no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17755
17756# Compiler flag to allow reflexive dlopens.
17757export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17758
17759# Compiler flag to generate shared objects directly from archives.
17760whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17761
17762# Compiler flag to generate thread-safe objects.
17763thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17764
17765# Library versioning type.
17766version_type=$version_type
17767
17768# Format of library name prefix.
17769libname_spec=$lt_libname_spec
17770
17771# List of archive names. First name is the real one, the rest are links.
17772# The last name is the one that the linker finds with -lNAME.
17773library_names_spec=$lt_library_names_spec
17774
17775# The coded name of the library, if different from the real name.
17776soname_spec=$lt_soname_spec
17777
17778# Commands used to build and install an old-style archive.
17779RANLIB=$lt_RANLIB
17780old_archive_cmds=$lt_old_archive_cmds_GCJ
17781old_postinstall_cmds=$lt_old_postinstall_cmds
17782old_postuninstall_cmds=$lt_old_postuninstall_cmds
17783
17784# Create an old-style archive from a shared archive.
17785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17786
17787# Create a temporary old-style archive to link instead of a shared archive.
17788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17789
17790# Commands used to build and install a shared archive.
17791archive_cmds=$lt_archive_cmds_GCJ
17792archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17793postinstall_cmds=$lt_postinstall_cmds
17794postuninstall_cmds=$lt_postuninstall_cmds
17795
17796# Commands used to build a loadable module (assumed same as above if empty)
17797module_cmds=$lt_module_cmds_GCJ
17798module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17799
17800# Commands to strip libraries.
17801old_striplib=$lt_old_striplib
17802striplib=$lt_striplib
17803
17804# Dependencies to place before the objects being linked to create a
17805# shared library.
17806predep_objects=$lt_predep_objects_GCJ
17807
17808# Dependencies to place after the objects being linked to create a
17809# shared library.
17810postdep_objects=$lt_postdep_objects_GCJ
17811
17812# Dependencies to place before the objects being linked to create a
17813# shared library.
17814predeps=$lt_predeps_GCJ
17815
17816# Dependencies to place after the objects being linked to create a
17817# shared library.
17818postdeps=$lt_postdeps_GCJ
17819
17820# The library search path used internally by the compiler when linking
17821# a shared library.
17822compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17823
17824# Method to check whether dependent libraries are shared objects.
17825deplibs_check_method=$lt_deplibs_check_method
17826
17827# Command to use when deplibs_check_method == file_magic.
17828file_magic_cmd=$lt_file_magic_cmd
17829
17830# Flag that allows shared libraries with undefined symbols to be built.
17831allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17832
17833# Flag that forces no undefined symbols.
17834no_undefined_flag=$lt_no_undefined_flag_GCJ
17835
17836# Commands used to finish a libtool library installation in a directory.
17837finish_cmds=$lt_finish_cmds
17838
17839# Same as above, but a single script fragment to be evaled but not shown.
17840finish_eval=$lt_finish_eval
17841
17842# Take the output of nm and produce a listing of raw symbols and C names.
17843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17844
17845# Transform the output of nm in a proper C declaration
17846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17847
17848# Transform the output of nm in a C name address pair
17849global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17850
17851# This is the shared library runtime path variable.
17852runpath_var=$runpath_var
17853
17854# This is the shared library path variable.
17855shlibpath_var=$shlibpath_var
17856
17857# Is shlibpath searched before the hard-coded library search path?
17858shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17859
17860# How to hardcode a shared library path into an executable.
17861hardcode_action=$hardcode_action_GCJ
17862
17863# Whether we should hardcode library paths into libraries.
17864hardcode_into_libs=$hardcode_into_libs
17865
17866# Flag to hardcode \$libdir into a binary during linking.
17867# This must work even if \$libdir does not exist.
17868hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17869
17870# If ld is used when linking, flag to hardcode \$libdir into
17871# a binary during linking. This must work even if \$libdir does
17872# not exist.
17873hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17874
17875# Whether we need a single -rpath flag with a separated argument.
17876hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17877
17878# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17879# resulting binary.
17880hardcode_direct=$hardcode_direct_GCJ
17881
17882# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17883# resulting binary.
17884hardcode_minus_L=$hardcode_minus_L_GCJ
17885
17886# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17887# the resulting binary.
17888hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17889
17890# Set to yes if building a shared library automatically hardcodes DIR into the library
17891# and all subsequent libraries and executables linked against it.
17892hardcode_automatic=$hardcode_automatic_GCJ
17893
17894# Variables whose values should be saved in libtool wrapper scripts and
17895# restored at relink time.
17896variables_saved_for_relink="$variables_saved_for_relink"
17897
17898# Whether libtool must link a program against all its dependency libraries.
17899link_all_deplibs=$link_all_deplibs_GCJ
17900
17901# Compile-time system search path for libraries
17902sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17903
17904# Run-time system search path for libraries
17905sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17906
17907# Fix the shell variable \$srcfile for the compiler.
17908fix_srcfile_path="$fix_srcfile_path_GCJ"
17909
17910# Set to yes if exported symbols are required.
17911always_export_symbols=$always_export_symbols_GCJ
17912
17913# The commands to list exported symbols.
17914export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17915
17916# The commands to extract the exported symbol list from a shared archive.
17917extract_expsyms_cmds=$lt_extract_expsyms_cmds
17918
17919# Symbols that should not be listed in the preloaded symbols.
17920exclude_expsyms=$lt_exclude_expsyms_GCJ
17921
17922# Symbols that must always be exported.
17923include_expsyms=$lt_include_expsyms_GCJ
17924
17925# ### END LIBTOOL TAG CONFIG: $tagname
17926
17927__EOF__
17928
17929
17930else
17931 # If there is no Makefile yet, we rely on a make rule to execute
17932 # `config.status --recheck' to rerun these tests and create the
17933 # libtool script then.
17934 test -f Makefile && make "$ltmain"
17935fi
17936
17937
17938ac_ext=c
17939ac_cpp='$CPP $CPPFLAGS'
17940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942ac_compiler_gnu=$ac_cv_c_compiler_gnu
17943
17944CC="$lt_save_CC"
17945
17946 else
17947 tagname=""
17948 fi
17949 ;;
17950
17951 RC)
17952
17953
17954
17955# Source file extension for RC test sources.
17956ac_ext=rc
17957
17958# Object file extension for compiled RC test sources.
17959objext=o
17960objext_RC=$objext
17961
17962# Code to be used in simple compile tests
17963lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17964
17965# Code to be used in simple link tests
17966lt_simple_link_test_code="$lt_simple_compile_test_code"
17967
17968# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17969
17970# If no C compiler was specified, use CC.
17971LTCC=${LTCC-"$CC"}
17972
17973# Allow CC to be a program name with arguments.
17974compiler=$CC
17975
17976
17977# Allow CC to be a program name with arguments.
17978lt_save_CC="$CC"
17979CC=${RC-"windres"}
17980compiler=$CC
17981compiler_RC=$CC
17982lt_cv_prog_compiler_c_o_RC=yes
17983
17984# The else clause should only fire when bootstrapping the
17985# libtool distribution, otherwise you forgot to ship ltmain.sh
17986# with your package, and you will get complaints that there are
17987# no rules to generate ltmain.sh.
17988if test -f "$ltmain"; then
17989 # See if we are running on zsh, and set the options which allow our commands through
17990 # without removal of \ escapes.
17991 if test -n "${ZSH_VERSION+set}" ; then
17992 setopt NO_GLOB_SUBST
17993 fi
17994 # Now quote all the things that may contain metacharacters while being
17995 # careful not to overquote the AC_SUBSTed values. We take copies of the
17996 # variables and quote the copies for generation of the libtool script.
17997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17998 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17999 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18000 deplibs_check_method reload_flag reload_cmds need_locks \
18001 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18002 lt_cv_sys_global_symbol_to_c_name_address \
18003 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18004 old_postinstall_cmds old_postuninstall_cmds \
18005 compiler_RC \
18006 CC_RC \
18007 LD_RC \
18008 lt_prog_compiler_wl_RC \
18009 lt_prog_compiler_pic_RC \
18010 lt_prog_compiler_static_RC \
18011 lt_prog_compiler_no_builtin_flag_RC \
18012 export_dynamic_flag_spec_RC \
18013 thread_safe_flag_spec_RC \
18014 whole_archive_flag_spec_RC \
18015 enable_shared_with_static_runtimes_RC \
18016 old_archive_cmds_RC \
18017 old_archive_from_new_cmds_RC \
18018 predep_objects_RC \
18019 postdep_objects_RC \
18020 predeps_RC \
18021 postdeps_RC \
18022 compiler_lib_search_path_RC \
18023 archive_cmds_RC \
18024 archive_expsym_cmds_RC \
18025 postinstall_cmds_RC \
18026 postuninstall_cmds_RC \
18027 old_archive_from_expsyms_cmds_RC \
18028 allow_undefined_flag_RC \
18029 no_undefined_flag_RC \
18030 export_symbols_cmds_RC \
18031 hardcode_libdir_flag_spec_RC \
18032 hardcode_libdir_flag_spec_ld_RC \
18033 hardcode_libdir_separator_RC \
18034 hardcode_automatic_RC \
18035 module_cmds_RC \
18036 module_expsym_cmds_RC \
18037 lt_cv_prog_compiler_c_o_RC \
18038 exclude_expsyms_RC \
18039 include_expsyms_RC; do
18040
18041 case $var in
18042 old_archive_cmds_RC | \
18043 old_archive_from_new_cmds_RC | \
18044 archive_cmds_RC | \
18045 archive_expsym_cmds_RC | \
18046 module_cmds_RC | \
18047 module_expsym_cmds_RC | \
18048 old_archive_from_expsyms_cmds_RC | \
18049 export_symbols_cmds_RC | \
18050 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18051 postinstall_cmds | postuninstall_cmds | \
18052 old_postinstall_cmds | old_postuninstall_cmds | \
18053 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18054 # Double-quote double-evaled strings.
18055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18056 ;;
18057 *)
18058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18059 ;;
18060 esac
18061 done
18062
18063 case $lt_echo in
18064 *'\$0 --fallback-echo"')
18065 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18066 ;;
18067 esac
18068
18069cfgfile="$ofile"
18070
18071 cat <<__EOF__ >> "$cfgfile"
18072# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18073
18074# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18075
18076# Shell to use when invoking shell scripts.
18077SHELL=$lt_SHELL
18078
18079# Whether or not to build shared libraries.
18080build_libtool_libs=$enable_shared
18081
18082# Whether or not to build static libraries.
18083build_old_libs=$enable_static
18084
18085# Whether or not to add -lc for building shared libraries.
18086build_libtool_need_lc=$archive_cmds_need_lc_RC
18087
18088# Whether or not to disallow shared libs when runtime libs are static
18089allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18090
18091# Whether or not to optimize for fast installation.
18092fast_install=$enable_fast_install
18093
18094# The host system.
18095host_alias=$host_alias
18096host=$host
18097
18098# An echo program that does not interpret backslashes.
18099echo=$lt_echo
18100
18101# The archiver.
18102AR=$lt_AR
18103AR_FLAGS=$lt_AR_FLAGS
18104
18105# A C compiler.
18106LTCC=$lt_LTCC
18107
18108# A language-specific compiler.
18109CC=$lt_compiler_RC
18110
18111# Is the compiler the GNU C compiler?
18112with_gcc=$GCC_RC
18113
18114# An ERE matcher.
18115EGREP=$lt_EGREP
18116
18117# The linker used to build libraries.
18118LD=$lt_LD_RC
18119
18120# Whether we need hard or soft links.
18121LN_S=$lt_LN_S
18122
18123# A BSD-compatible nm program.
18124NM=$lt_NM
18125
18126# A symbol stripping program
18127STRIP=$STRIP
18128
18129# Used to examine libraries when file_magic_cmd begins "file"
18130MAGIC_CMD=$MAGIC_CMD
18131
18132# Used on cygwin: DLL creation program.
18133DLLTOOL="$DLLTOOL"
18134
18135# Used on cygwin: object dumper.
18136OBJDUMP="$OBJDUMP"
18137
18138# Used on cygwin: assembler.
18139AS="$AS"
18140
18141# The name of the directory that contains temporary libtool files.
18142objdir=$objdir
18143
18144# How to create reloadable object files.
18145reload_flag=$lt_reload_flag
18146reload_cmds=$lt_reload_cmds
18147
18148# How to pass a linker flag through the compiler.
18149wl=$lt_lt_prog_compiler_wl_RC
18150
18151# Object file suffix (normally "o").
18152objext="$ac_objext"
18153
18154# Old archive suffix (normally "a").
18155libext="$libext"
18156
18157# Shared library suffix (normally ".so").
18158shrext='$shrext'
18159
18160# Executable file suffix (normally "").
18161exeext="$exeext"
18162
18163# Additional compiler flags for building library objects.
18164pic_flag=$lt_lt_prog_compiler_pic_RC
18165pic_mode=$pic_mode
18166
18167# What is the maximum length of a command?
18168max_cmd_len=$lt_cv_sys_max_cmd_len
18169
18170# Does compiler simultaneously support -c and -o options?
18171compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18172
18173# Must we lock files when doing compilation ?
18174need_locks=$lt_need_locks
18175
18176# Do we need the lib prefix for modules?
18177need_lib_prefix=$need_lib_prefix
18178
18179# Do we need a version for libraries?
18180need_version=$need_version
18181
18182# Whether dlopen is supported.
18183dlopen_support=$enable_dlopen
18184
18185# Whether dlopen of programs is supported.
18186dlopen_self=$enable_dlopen_self
18187
18188# Whether dlopen of statically linked programs is supported.
18189dlopen_self_static=$enable_dlopen_self_static
18190
18191# Compiler flag to prevent dynamic linking.
18192link_static_flag=$lt_lt_prog_compiler_static_RC
18193
18194# Compiler flag to turn off builtin functions.
18195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18196
18197# Compiler flag to allow reflexive dlopens.
18198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18199
18200# Compiler flag to generate shared objects directly from archives.
18201whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18202
18203# Compiler flag to generate thread-safe objects.
18204thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18205
18206# Library versioning type.
18207version_type=$version_type
18208
18209# Format of library name prefix.
18210libname_spec=$lt_libname_spec
18211
18212# List of archive names. First name is the real one, the rest are links.
18213# The last name is the one that the linker finds with -lNAME.
18214library_names_spec=$lt_library_names_spec
18215
18216# The coded name of the library, if different from the real name.
18217soname_spec=$lt_soname_spec
18218
18219# Commands used to build and install an old-style archive.
18220RANLIB=$lt_RANLIB
18221old_archive_cmds=$lt_old_archive_cmds_RC
18222old_postinstall_cmds=$lt_old_postinstall_cmds
18223old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224
18225# Create an old-style archive from a shared archive.
18226old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18227
18228# Create a temporary old-style archive to link instead of a shared archive.
18229old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18230
18231# Commands used to build and install a shared archive.
18232archive_cmds=$lt_archive_cmds_RC
18233archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18234postinstall_cmds=$lt_postinstall_cmds
18235postuninstall_cmds=$lt_postuninstall_cmds
18236
18237# Commands used to build a loadable module (assumed same as above if empty)
18238module_cmds=$lt_module_cmds_RC
18239module_expsym_cmds=$lt_module_expsym_cmds_RC
18240
18241# Commands to strip libraries.
18242old_striplib=$lt_old_striplib
18243striplib=$lt_striplib
18244
18245# Dependencies to place before the objects being linked to create a
18246# shared library.
18247predep_objects=$lt_predep_objects_RC
18248
18249# Dependencies to place after the objects being linked to create a
18250# shared library.
18251postdep_objects=$lt_postdep_objects_RC
18252
18253# Dependencies to place before the objects being linked to create a
18254# shared library.
18255predeps=$lt_predeps_RC
18256
18257# Dependencies to place after the objects being linked to create a
18258# shared library.
18259postdeps=$lt_postdeps_RC
18260
18261# The library search path used internally by the compiler when linking
18262# a shared library.
18263compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18264
18265# Method to check whether dependent libraries are shared objects.
18266deplibs_check_method=$lt_deplibs_check_method
18267
18268# Command to use when deplibs_check_method == file_magic.
18269file_magic_cmd=$lt_file_magic_cmd
18270
18271# Flag that allows shared libraries with undefined symbols to be built.
18272allow_undefined_flag=$lt_allow_undefined_flag_RC
18273
18274# Flag that forces no undefined symbols.
18275no_undefined_flag=$lt_no_undefined_flag_RC
18276
18277# Commands used to finish a libtool library installation in a directory.
18278finish_cmds=$lt_finish_cmds
18279
18280# Same as above, but a single script fragment to be evaled but not shown.
18281finish_eval=$lt_finish_eval
18282
18283# Take the output of nm and produce a listing of raw symbols and C names.
18284global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18285
18286# Transform the output of nm in a proper C declaration
18287global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18288
18289# Transform the output of nm in a C name address pair
18290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18291
18292# This is the shared library runtime path variable.
18293runpath_var=$runpath_var
18294
18295# This is the shared library path variable.
18296shlibpath_var=$shlibpath_var
18297
18298# Is shlibpath searched before the hard-coded library search path?
18299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300
18301# How to hardcode a shared library path into an executable.
18302hardcode_action=$hardcode_action_RC
18303
18304# Whether we should hardcode library paths into libraries.
18305hardcode_into_libs=$hardcode_into_libs
18306
18307# Flag to hardcode \$libdir into a binary during linking.
18308# This must work even if \$libdir does not exist.
18309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18310
18311# If ld is used when linking, flag to hardcode \$libdir into
18312# a binary during linking. This must work even if \$libdir does
18313# not exist.
18314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18315
18316# Whether we need a single -rpath flag with a separated argument.
18317hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18318
18319# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18320# resulting binary.
18321hardcode_direct=$hardcode_direct_RC
18322
18323# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324# resulting binary.
18325hardcode_minus_L=$hardcode_minus_L_RC
18326
18327# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328# the resulting binary.
18329hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18330
18331# Set to yes if building a shared library automatically hardcodes DIR into the library
18332# and all subsequent libraries and executables linked against it.
18333hardcode_automatic=$hardcode_automatic_RC
18334
18335# Variables whose values should be saved in libtool wrapper scripts and
18336# restored at relink time.
18337variables_saved_for_relink="$variables_saved_for_relink"
18338
18339# Whether libtool must link a program against all its dependency libraries.
18340link_all_deplibs=$link_all_deplibs_RC
18341
18342# Compile-time system search path for libraries
18343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345# Run-time system search path for libraries
18346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
18348# Fix the shell variable \$srcfile for the compiler.
18349fix_srcfile_path="$fix_srcfile_path_RC"
18350
18351# Set to yes if exported symbols are required.
18352always_export_symbols=$always_export_symbols_RC
18353
18354# The commands to list exported symbols.
18355export_symbols_cmds=$lt_export_symbols_cmds_RC
18356
18357# The commands to extract the exported symbol list from a shared archive.
18358extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359
18360# Symbols that should not be listed in the preloaded symbols.
18361exclude_expsyms=$lt_exclude_expsyms_RC
18362
18363# Symbols that must always be exported.
18364include_expsyms=$lt_include_expsyms_RC
18365
18366# ### END LIBTOOL TAG CONFIG: $tagname
18367
18368__EOF__
18369
18370
18371else
18372 # If there is no Makefile yet, we rely on a make rule to execute
18373 # `config.status --recheck' to rerun these tests and create the
18374 # libtool script then.
18375 test -f Makefile && make "$ltmain"
18376fi
18377
18378
18379ac_ext=c
18380ac_cpp='$CPP $CPPFLAGS'
18381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385CC="$lt_save_CC"
18386
18387 ;;
18388
18389 *)
18390 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18391echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18392 { (exit 1); exit 1; }; }
18393 ;;
18394 esac
18395
18396 # Append the new tag name to the list of available tags.
18397 if test -n "$tagname" ; then
18398 available_tags="$available_tags $tagname"
18399 fi
18400 fi
18401 done
18402 IFS="$lt_save_ifs"
18403
18404 # Now substitute the updated list of available tags.
18405 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18406 mv "${ofile}T" "$ofile"
18407 chmod +x "$ofile"
18408 else
18409 rm -f "${ofile}T"
18410 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18411echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18412 { (exit 1); exit 1; }; }
18413 fi
18414fi
John Criswell7a73b802003-06-30 21:59:07 +000018415
18416
18417
18418# This can be used to rebuild libtool when needed
18419LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18420
18421# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018422LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018423
18424# Prevent multiple expansion
18425
18426
18427
John Criswell47fdd832003-07-14 16:52:07 +000018428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
John Criswellde00db22003-08-25 16:49:54 +000018446# Extract the first word of "pwd", so it can be a program name with args.
18447set dummy pwd; ac_word=$2
18448echo "$as_me:$LINENO: checking for $ac_word" >&5
18449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18450if test "${ac_cv_path_RPWD+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453 case $RPWD in
18454 [\\/]* | ?:[\\/]*)
18455 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18456 ;;
18457 *)
18458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18459for as_dir in $PATH
18460do
18461 IFS=$as_save_IFS
18462 test -z "$as_dir" && as_dir=.
18463 for ac_exec_ext in '' $ac_executable_extensions; do
18464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18465 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18467 break 2
18468 fi
18469done
18470done
18471
18472 ;;
18473esac
18474fi
18475RPWD=$ac_cv_path_RPWD
18476
18477if test -n "$RPWD"; then
18478 echo "$as_me:$LINENO: result: $RPWD" >&5
18479echo "${ECHO_T}$RPWD" >&6
18480else
18481 echo "$as_me:$LINENO: result: no" >&5
18482echo "${ECHO_T}no" >&6
18483fi
18484
John Criswell7a73b802003-06-30 21:59:07 +000018485# Extract the first word of "ar", so it can be a program name with args.
18486set dummy ar; ac_word=$2
18487echo "$as_me:$LINENO: checking for $ac_word" >&5
18488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18489if test "${ac_cv_path_AR+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492 case $AR in
18493 [\\/]* | ?:[\\/]*)
18494 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18495 ;;
18496 *)
18497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18498for as_dir in $PATH
18499do
18500 IFS=$as_save_IFS
18501 test -z "$as_dir" && as_dir=.
18502 for ac_exec_ext in '' $ac_executable_extensions; do
18503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18504 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18506 break 2
18507 fi
18508done
18509done
18510
18511 ;;
18512esac
18513fi
18514AR=$ac_cv_path_AR
18515
18516if test -n "$AR"; then
18517 echo "$as_me:$LINENO: result: $AR" >&5
18518echo "${ECHO_T}$AR" >&6
18519else
18520 echo "$as_me:$LINENO: result: no" >&5
18521echo "${ECHO_T}no" >&6
18522fi
18523
18524# Extract the first word of "sed", so it can be a program name with args.
18525set dummy sed; ac_word=$2
18526echo "$as_me:$LINENO: checking for $ac_word" >&5
18527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18528if test "${ac_cv_path_SED+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530else
18531 case $SED in
18532 [\\/]* | ?:[\\/]*)
18533 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18534 ;;
18535 *)
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537for as_dir in $PATH
18538do
18539 IFS=$as_save_IFS
18540 test -z "$as_dir" && as_dir=.
18541 for ac_exec_ext in '' $ac_executable_extensions; do
18542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18543 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 break 2
18546 fi
18547done
18548done
18549
18550 ;;
18551esac
18552fi
18553SED=$ac_cv_path_SED
18554
18555if test -n "$SED"; then
18556 echo "$as_me:$LINENO: result: $SED" >&5
18557echo "${ECHO_T}$SED" >&6
18558else
18559 echo "$as_me:$LINENO: result: no" >&5
18560echo "${ECHO_T}no" >&6
18561fi
18562
18563# Extract the first word of "rm", so it can be a program name with args.
18564set dummy rm; ac_word=$2
18565echo "$as_me:$LINENO: checking for $ac_word" >&5
18566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18567if test "${ac_cv_path_RM+set}" = set; then
18568 echo $ECHO_N "(cached) $ECHO_C" >&6
18569else
18570 case $RM in
18571 [\\/]* | ?:[\\/]*)
18572 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18573 ;;
18574 *)
18575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18576for as_dir in $PATH
18577do
18578 IFS=$as_save_IFS
18579 test -z "$as_dir" && as_dir=.
18580 for ac_exec_ext in '' $ac_executable_extensions; do
18581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18582 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18584 break 2
18585 fi
18586done
18587done
18588
18589 ;;
18590esac
18591fi
18592RM=$ac_cv_path_RM
18593
18594if test -n "$RM"; then
18595 echo "$as_me:$LINENO: result: $RM" >&5
18596echo "${ECHO_T}$RM" >&6
18597else
18598 echo "$as_me:$LINENO: result: no" >&5
18599echo "${ECHO_T}no" >&6
18600fi
18601
18602# Extract the first word of "echo", so it can be a program name with args.
18603set dummy echo; ac_word=$2
18604echo "$as_me:$LINENO: checking for $ac_word" >&5
18605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18606if test "${ac_cv_path_ECHO+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609 case $ECHO in
18610 [\\/]* | ?:[\\/]*)
18611 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18612 ;;
18613 *)
18614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18615for as_dir in $PATH
18616do
18617 IFS=$as_save_IFS
18618 test -z "$as_dir" && as_dir=.
18619 for ac_exec_ext in '' $ac_executable_extensions; do
18620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18621 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18623 break 2
18624 fi
18625done
18626done
18627
18628 ;;
18629esac
18630fi
18631ECHO=$ac_cv_path_ECHO
18632
18633if test -n "$ECHO"; then
18634 echo "$as_me:$LINENO: result: $ECHO" >&5
18635echo "${ECHO_T}$ECHO" >&6
18636else
18637 echo "$as_me:$LINENO: result: no" >&5
18638echo "${ECHO_T}no" >&6
18639fi
18640
18641# Extract the first word of "mkdir", so it can be a program name with args.
18642set dummy mkdir; ac_word=$2
18643echo "$as_me:$LINENO: checking for $ac_word" >&5
18644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18645if test "${ac_cv_path_MKDIR+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18647else
18648 case $MKDIR in
18649 [\\/]* | ?:[\\/]*)
18650 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18651 ;;
18652 *)
18653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18654for as_dir in $PATH
18655do
18656 IFS=$as_save_IFS
18657 test -z "$as_dir" && as_dir=.
18658 for ac_exec_ext in '' $ac_executable_extensions; do
18659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18660 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18662 break 2
18663 fi
18664done
18665done
18666
18667 ;;
18668esac
18669fi
18670MKDIR=$ac_cv_path_MKDIR
18671
18672if test -n "$MKDIR"; then
18673 echo "$as_me:$LINENO: result: $MKDIR" >&5
18674echo "${ECHO_T}$MKDIR" >&6
18675else
18676 echo "$as_me:$LINENO: result: no" >&5
18677echo "${ECHO_T}no" >&6
18678fi
18679
18680# Extract the first word of "date", so it can be a program name with args.
18681set dummy date; ac_word=$2
18682echo "$as_me:$LINENO: checking for $ac_word" >&5
18683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18684if test "${ac_cv_path_DATE+set}" = set; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18686else
18687 case $DATE in
18688 [\\/]* | ?:[\\/]*)
18689 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18690 ;;
18691 *)
18692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18693for as_dir in $PATH
18694do
18695 IFS=$as_save_IFS
18696 test -z "$as_dir" && as_dir=.
18697 for ac_exec_ext in '' $ac_executable_extensions; do
18698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18699 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18701 break 2
18702 fi
18703done
18704done
18705
18706 ;;
18707esac
18708fi
18709DATE=$ac_cv_path_DATE
18710
18711if test -n "$DATE"; then
18712 echo "$as_me:$LINENO: result: $DATE" >&5
18713echo "${ECHO_T}$DATE" >&6
18714else
18715 echo "$as_me:$LINENO: result: no" >&5
18716echo "${ECHO_T}no" >&6
18717fi
18718
18719# Extract the first word of "mv", so it can be a program name with args.
18720set dummy mv; ac_word=$2
18721echo "$as_me:$LINENO: checking for $ac_word" >&5
18722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723if test "${ac_cv_path_MV+set}" = set; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
18726 case $MV in
18727 [\\/]* | ?:[\\/]*)
18728 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18729 ;;
18730 *)
18731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732for as_dir in $PATH
18733do
18734 IFS=$as_save_IFS
18735 test -z "$as_dir" && as_dir=.
18736 for ac_exec_ext in '' $ac_executable_extensions; do
18737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18740 break 2
18741 fi
18742done
18743done
18744
18745 ;;
18746esac
18747fi
18748MV=$ac_cv_path_MV
18749
18750if test -n "$MV"; then
18751 echo "$as_me:$LINENO: result: $MV" >&5
18752echo "${ECHO_T}$MV" >&6
18753else
18754 echo "$as_me:$LINENO: result: no" >&5
18755echo "${ECHO_T}no" >&6
18756fi
18757
18758# Extract the first word of "dot", so it can be a program name with args.
18759set dummy dot; ac_word=$2
18760echo "$as_me:$LINENO: checking for $ac_word" >&5
18761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18762if test "${ac_cv_path_DOT+set}" = set; then
18763 echo $ECHO_N "(cached) $ECHO_C" >&6
18764else
18765 case $DOT in
18766 [\\/]* | ?:[\\/]*)
18767 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18768 ;;
18769 *)
18770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18771for as_dir in $PATH
18772do
18773 IFS=$as_save_IFS
18774 test -z "$as_dir" && as_dir=.
18775 for ac_exec_ext in '' $ac_executable_extensions; do
18776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18777 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18779 break 2
18780 fi
18781done
18782done
18783
18784 ;;
18785esac
18786fi
18787DOT=$ac_cv_path_DOT
18788
18789if test -n "$DOT"; then
18790 echo "$as_me:$LINENO: result: $DOT" >&5
18791echo "${ECHO_T}$DOT" >&6
18792else
18793 echo "$as_me:$LINENO: result: no" >&5
18794echo "${ECHO_T}no" >&6
18795fi
18796
18797# Extract the first word of "etags", so it can be a program name with args.
18798set dummy etags; ac_word=$2
18799echo "$as_me:$LINENO: checking for $ac_word" >&5
18800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18801if test "${ac_cv_path_ETAGS+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 case $ETAGS in
18805 [\\/]* | ?:[\\/]*)
18806 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18807 ;;
18808 *)
18809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810for as_dir in $PATH
18811do
18812 IFS=$as_save_IFS
18813 test -z "$as_dir" && as_dir=.
18814 for ac_exec_ext in '' $ac_executable_extensions; do
18815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18818 break 2
18819 fi
18820done
18821done
18822
18823 ;;
18824esac
18825fi
18826ETAGS=$ac_cv_path_ETAGS
18827
18828if test -n "$ETAGS"; then
18829 echo "$as_me:$LINENO: result: $ETAGS" >&5
18830echo "${ECHO_T}$ETAGS" >&6
18831else
18832 echo "$as_me:$LINENO: result: no" >&5
18833echo "${ECHO_T}no" >&6
18834fi
18835
18836# Extract the first word of "purify", so it can be a program name with args.
18837set dummy purify; ac_word=$2
18838echo "$as_me:$LINENO: checking for $ac_word" >&5
18839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18840if test "${ac_cv_path_PURIFY+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 case $PURIFY in
18844 [\\/]* | ?:[\\/]*)
18845 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18846 ;;
18847 *)
18848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18849for as_dir in $PATH
18850do
18851 IFS=$as_save_IFS
18852 test -z "$as_dir" && as_dir=.
18853 for ac_exec_ext in '' $ac_executable_extensions; do
18854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18855 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18857 break 2
18858 fi
18859done
18860done
18861
18862 ;;
18863esac
18864fi
18865PURIFY=$ac_cv_path_PURIFY
18866
18867if test -n "$PURIFY"; then
18868 echo "$as_me:$LINENO: result: $PURIFY" >&5
18869echo "${ECHO_T}$PURIFY" >&6
18870else
18871 echo "$as_me:$LINENO: result: no" >&5
18872echo "${ECHO_T}no" >&6
18873fi
18874
John Criswellde00db22003-08-25 16:49:54 +000018875# Extract the first word of "python", so it can be a program name with args.
18876set dummy python; ac_word=$2
18877echo "$as_me:$LINENO: checking for $ac_word" >&5
18878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18879if test "${ac_cv_path_PYTHON+set}" = set; then
18880 echo $ECHO_N "(cached) $ECHO_C" >&6
18881else
18882 case $PYTHON in
18883 [\\/]* | ?:[\\/]*)
18884 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18885 ;;
18886 *)
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888for as_dir in $PATH
18889do
18890 IFS=$as_save_IFS
18891 test -z "$as_dir" && as_dir=.
18892 for ac_exec_ext in '' $ac_executable_extensions; do
18893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18896 break 2
18897 fi
18898done
18899done
18900
18901 ;;
18902esac
18903fi
18904PYTHON=$ac_cv_path_PYTHON
18905
18906if test -n "$PYTHON"; then
18907 echo "$as_me:$LINENO: result: $PYTHON" >&5
18908echo "${ECHO_T}$PYTHON" >&6
18909else
18910 echo "$as_me:$LINENO: result: no" >&5
18911echo "${ECHO_T}no" >&6
18912fi
18913
18914# Extract the first word of "qmtest", so it can be a program name with args.
18915set dummy qmtest; ac_word=$2
18916echo "$as_me:$LINENO: checking for $ac_word" >&5
18917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18918if test "${ac_cv_path_QMTEST+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 case $QMTEST in
18922 [\\/]* | ?:[\\/]*)
18923 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18924 ;;
18925 *)
18926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18927for as_dir in $PATH
18928do
18929 IFS=$as_save_IFS
18930 test -z "$as_dir" && as_dir=.
18931 for ac_exec_ext in '' $ac_executable_extensions; do
18932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18933 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18935 break 2
18936 fi
18937done
18938done
18939
18940 ;;
18941esac
18942fi
18943QMTEST=$ac_cv_path_QMTEST
18944
18945if test -n "$QMTEST"; then
18946 echo "$as_me:$LINENO: result: $QMTEST" >&5
18947echo "${ECHO_T}$QMTEST" >&6
18948else
18949 echo "$as_me:$LINENO: result: no" >&5
18950echo "${ECHO_T}no" >&6
18951fi
18952
18953
18954pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18955pymajor=`echo $pyversion | cut -d. -f1`
18956pyminor=`echo $pyversion | cut -d. -f2`
18957
18958if test "$pymajor" -ge "2"
18959then
18960 if test "$pymajor" -eq "2"
18961 then
18962 if test "$pyminor" -lt "2"
18963 then
18964 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18965echo "$as_me: error: Python 2.2 or greater required" >&2;}
18966 { (exit 1); exit 1; }; }
18967 fi
18968 fi
18969else
18970 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18971echo "$as_me: error: Python 2.2 or greater required" >&2;}
18972 { (exit 1); exit 1; }; }
18973fi
John Criswell7a73b802003-06-30 21:59:07 +000018974
18975
18976
18977
18978
18979echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18980echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18981if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18982 echo $ECHO_N "(cached) $ECHO_C" >&6
18983else
18984 ac_check_lib_save_LIBS=$LIBS
18985LIBS="-lelf $LIBS"
18986cat >conftest.$ac_ext <<_ACEOF
18987#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018988/* confdefs.h. */
18989_ACEOF
18990cat confdefs.h >>conftest.$ac_ext
18991cat >>conftest.$ac_ext <<_ACEOF
18992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018993
18994/* Override any gcc2 internal prototype to avoid an error. */
18995#ifdef __cplusplus
18996extern "C"
18997#endif
18998/* We use char because int might match the return type of a gcc2
18999 builtin and then its argument prototype would still apply. */
19000char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019001int
19002main ()
19003{
19004elf_begin ();
19005 ;
19006 return 0;
19007}
19008_ACEOF
19009rm -f conftest.$ac_objext conftest$ac_exeext
19010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19011 (eval $ac_link) 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19017 (eval $ac_try) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
19021 ac_cv_lib_elf_elf_begin=yes
19022else
19023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019024sed 's/^/| /' conftest.$ac_ext >&5
19025
John Criswell7a73b802003-06-30 21:59:07 +000019026ac_cv_lib_elf_elf_begin=no
19027fi
19028rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19029LIBS=$ac_check_lib_save_LIBS
19030fi
19031echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19032echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19033if test $ac_cv_lib_elf_elf_begin = yes; then
19034 cat >>confdefs.h <<_ACEOF
19035#define HAVE_LIBELF 1
19036_ACEOF
19037
19038 LIBS="-lelf $LIBS"
19039
19040fi
19041
19042
19043echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19044echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19045if test "${ac_cv_search_dlopen+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 ac_func_search_save_LIBS=$LIBS
19049ac_cv_search_dlopen=no
19050cat >conftest.$ac_ext <<_ACEOF
19051#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019052/* confdefs.h. */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
19056/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019057
19058/* Override any gcc2 internal prototype to avoid an error. */
19059#ifdef __cplusplus
19060extern "C"
19061#endif
19062/* We use char because int might match the return type of a gcc2
19063 builtin and then its argument prototype would still apply. */
19064char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019065int
19066main ()
19067{
19068dlopen ();
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext conftest$ac_exeext
19074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075 (eval $ac_link) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -s conftest$ac_exeext'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_cv_search_dlopen="none required"
19086else
19087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019088sed 's/^/| /' conftest.$ac_ext >&5
19089
John Criswell7a73b802003-06-30 21:59:07 +000019090fi
19091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19092if test "$ac_cv_search_dlopen" = no; then
19093 for ac_lib in dl; do
19094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19095 cat >conftest.$ac_ext <<_ACEOF
19096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019102
19103/* Override any gcc2 internal prototype to avoid an error. */
19104#ifdef __cplusplus
19105extern "C"
19106#endif
19107/* We use char because int might match the return type of a gcc2
19108 builtin and then its argument prototype would still apply. */
19109char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019110int
19111main ()
19112{
19113dlopen ();
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext conftest$ac_exeext
19119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19120 (eval $ac_link) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try='test -s conftest$ac_exeext'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_cv_search_dlopen="-l$ac_lib"
19131break
19132else
19133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019134sed 's/^/| /' conftest.$ac_ext >&5
19135
John Criswell7a73b802003-06-30 21:59:07 +000019136fi
19137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19138 done
19139fi
19140LIBS=$ac_func_search_save_LIBS
19141fi
19142echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19143echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19144if test "$ac_cv_search_dlopen" != no; then
19145 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19146
19147else
19148 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19149echo "$as_me: error: dlopen() required but not found" >&2;}
19150 { (exit 1); exit 1; }; }
19151fi
19152
19153
19154echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19155echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19156if test "${ac_cv_search_mallinfo+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19158else
19159 ac_func_search_save_LIBS=$LIBS
19160ac_cv_search_mallinfo=no
19161cat >conftest.$ac_ext <<_ACEOF
19162#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019163/* confdefs.h. */
19164_ACEOF
19165cat confdefs.h >>conftest.$ac_ext
19166cat >>conftest.$ac_ext <<_ACEOF
19167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019168
19169/* Override any gcc2 internal prototype to avoid an error. */
19170#ifdef __cplusplus
19171extern "C"
19172#endif
19173/* We use char because int might match the return type of a gcc2
19174 builtin and then its argument prototype would still apply. */
19175char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019176int
19177main ()
19178{
19179mallinfo ();
19180 ;
19181 return 0;
19182}
19183_ACEOF
19184rm -f conftest.$ac_objext conftest$ac_exeext
19185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186 (eval $ac_link) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } &&
19190 { ac_try='test -s conftest$ac_exeext'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_search_mallinfo="none required"
19197else
19198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019199sed 's/^/| /' conftest.$ac_ext >&5
19200
John Criswell7a73b802003-06-30 21:59:07 +000019201fi
19202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19203if test "$ac_cv_search_mallinfo" = no; then
19204 for ac_lib in malloc; do
19205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19206 cat >conftest.$ac_ext <<_ACEOF
19207#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019213
19214/* Override any gcc2 internal prototype to avoid an error. */
19215#ifdef __cplusplus
19216extern "C"
19217#endif
19218/* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
19220char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019221int
19222main ()
19223{
19224mallinfo ();
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext conftest$ac_exeext
19230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19231 (eval $ac_link) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; }; then
19241 ac_cv_search_mallinfo="-l$ac_lib"
19242break
19243else
19244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019245sed 's/^/| /' conftest.$ac_ext >&5
19246
John Criswell7a73b802003-06-30 21:59:07 +000019247fi
19248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19249 done
19250fi
19251LIBS=$ac_func_search_save_LIBS
19252fi
19253echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19254echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19255if test "$ac_cv_search_mallinfo" != no; then
19256 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19257 cat >>confdefs.h <<\_ACEOF
19258#define HAVE_MALLINFO 1
19259_ACEOF
19260
19261fi
19262
19263
19264
19265echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19266echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19267if test "${ac_cv_header_stdc+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269else
19270 cat >conftest.$ac_ext <<_ACEOF
19271#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019277#include <stdlib.h>
19278#include <stdarg.h>
19279#include <string.h>
19280#include <float.h>
19281
John Criswell0c38eaf2003-09-10 15:17:25 +000019282int
19283main ()
19284{
19285
19286 ;
19287 return 0;
19288}
John Criswell7a73b802003-06-30 21:59:07 +000019289_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019290rm -f conftest.$ac_objext
19291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19292 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019293 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019295 (exit $ac_status); } &&
19296 { ac_try='test -s conftest.$ac_objext'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019302 ac_cv_header_stdc=yes
19303else
19304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019308fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019309rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019310
19311if test $ac_cv_header_stdc = yes; then
19312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19313 cat >conftest.$ac_ext <<_ACEOF
19314#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019320#include <string.h>
19321
19322_ACEOF
19323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019324 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019325 :
19326else
19327 ac_cv_header_stdc=no
19328fi
19329rm -f conftest*
19330
19331fi
19332
19333if test $ac_cv_header_stdc = yes; then
19334 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19335 cat >conftest.$ac_ext <<_ACEOF
19336#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019342#include <stdlib.h>
19343
19344_ACEOF
19345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019346 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019347 :
19348else
19349 ac_cv_header_stdc=no
19350fi
19351rm -f conftest*
19352
19353fi
19354
19355if test $ac_cv_header_stdc = yes; then
19356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19357 if test "$cross_compiling" = yes; then
19358 :
19359else
19360 cat >conftest.$ac_ext <<_ACEOF
19361#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019362/* confdefs.h. */
19363_ACEOF
19364cat confdefs.h >>conftest.$ac_ext
19365cat >>conftest.$ac_ext <<_ACEOF
19366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019367#include <ctype.h>
19368#if ((' ' & 0x0FF) == 0x020)
19369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19371#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019372# define ISLOWER(c) \
19373 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019374 || ('j' <= (c) && (c) <= 'r') \
19375 || ('s' <= (c) && (c) <= 'z'))
19376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19377#endif
19378
19379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19380int
19381main ()
19382{
19383 int i;
19384 for (i = 0; i < 256; i++)
19385 if (XOR (islower (i), ISLOWER (i))
19386 || toupper (i) != TOUPPER (i))
19387 exit(2);
19388 exit (0);
19389}
19390_ACEOF
19391rm -f conftest$ac_exeext
19392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19393 (eval $ac_link) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 :
19403else
19404 echo "$as_me: program exited with status $ac_status" >&5
19405echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019406sed 's/^/| /' conftest.$ac_ext >&5
19407
John Criswell7a73b802003-06-30 21:59:07 +000019408( exit $ac_status )
19409ac_cv_header_stdc=no
19410fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019411rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019412fi
19413fi
19414fi
19415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19416echo "${ECHO_T}$ac_cv_header_stdc" >&6
19417if test $ac_cv_header_stdc = yes; then
19418
19419cat >>confdefs.h <<\_ACEOF
19420#define STDC_HEADERS 1
19421_ACEOF
19422
19423fi
19424
19425echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19426echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19427if test "${ac_cv_header_sys_wait_h+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429else
19430 cat >conftest.$ac_ext <<_ACEOF
19431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019432/* confdefs.h. */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
19436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019437#include <sys/types.h>
19438#include <sys/wait.h>
19439#ifndef WEXITSTATUS
19440# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19441#endif
19442#ifndef WIFEXITED
19443# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19444#endif
19445
John Criswell7a73b802003-06-30 21:59:07 +000019446int
19447main ()
19448{
19449 int s;
19450 wait (&s);
19451 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19452 ;
19453 return 0;
19454}
19455_ACEOF
19456rm -f conftest.$ac_objext
19457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458 (eval $ac_compile) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -s conftest.$ac_objext'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_cv_header_sys_wait_h=yes
19469else
19470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019471sed 's/^/| /' conftest.$ac_ext >&5
19472
John Criswell7a73b802003-06-30 21:59:07 +000019473ac_cv_header_sys_wait_h=no
19474fi
19475rm -f conftest.$ac_objext conftest.$ac_ext
19476fi
19477echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19478echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19479if test $ac_cv_header_sys_wait_h = yes; then
19480
19481cat >>confdefs.h <<\_ACEOF
19482#define HAVE_SYS_WAIT_H 1
19483_ACEOF
19484
19485fi
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19497do
19498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19499if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo "$as_me:$LINENO: checking for $ac_header" >&5
19501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19502if eval "test \"\${$as_ac_Header+set}\" = set"; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504fi
19505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19507else
19508 # Is the header compilable?
19509echo "$as_me:$LINENO: checking $ac_header usability" >&5
19510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19511cat >conftest.$ac_ext <<_ACEOF
19512#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019513/* confdefs.h. */
19514_ACEOF
19515cat confdefs.h >>conftest.$ac_ext
19516cat >>conftest.$ac_ext <<_ACEOF
19517/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019518$ac_includes_default
19519#include <$ac_header>
19520_ACEOF
19521rm -f conftest.$ac_objext
19522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19523 (eval $ac_compile) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -s conftest.$ac_objext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_header_compiler=yes
19534else
19535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019536sed 's/^/| /' conftest.$ac_ext >&5
19537
John Criswell7a73b802003-06-30 21:59:07 +000019538ac_header_compiler=no
19539fi
19540rm -f conftest.$ac_objext conftest.$ac_ext
19541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19542echo "${ECHO_T}$ac_header_compiler" >&6
19543
19544# Is the header present?
19545echo "$as_me:$LINENO: checking $ac_header presence" >&5
19546echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19547cat >conftest.$ac_ext <<_ACEOF
19548#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019549/* confdefs.h. */
19550_ACEOF
19551cat confdefs.h >>conftest.$ac_ext
19552cat >>conftest.$ac_ext <<_ACEOF
19553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019554#include <$ac_header>
19555_ACEOF
19556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19558 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019559 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } >/dev/null; then
19564 if test -s conftest.err; then
19565 ac_cpp_err=$ac_c_preproc_warn_flag
19566 else
19567 ac_cpp_err=
19568 fi
19569else
19570 ac_cpp_err=yes
19571fi
19572if test -z "$ac_cpp_err"; then
19573 ac_header_preproc=yes
19574else
19575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019576sed 's/^/| /' conftest.$ac_ext >&5
19577
John Criswell7a73b802003-06-30 21:59:07 +000019578 ac_header_preproc=no
19579fi
19580rm -f conftest.err conftest.$ac_ext
19581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19582echo "${ECHO_T}$ac_header_preproc" >&6
19583
19584# So? What about this header?
19585case $ac_header_compiler:$ac_header_preproc in
19586 yes:no )
19587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19588echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19591 (
19592 cat <<\_ASBOX
19593## ------------------------------------ ##
19594## Report this to bug-autoconf@gnu.org. ##
19595## ------------------------------------ ##
19596_ASBOX
19597 ) |
19598 sed "s/^/$as_me: WARNING: /" >&2
19599 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019600 no:yes )
19601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19607 (
19608 cat <<\_ASBOX
19609## ------------------------------------ ##
19610## Report this to bug-autoconf@gnu.org. ##
19611## ------------------------------------ ##
19612_ASBOX
19613 ) |
19614 sed "s/^/$as_me: WARNING: /" >&2
19615 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019616esac
19617echo "$as_me:$LINENO: checking for $ac_header" >&5
19618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19619if eval "test \"\${$as_ac_Header+set}\" = set"; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621else
19622 eval "$as_ac_Header=$ac_header_preproc"
19623fi
19624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19626
19627fi
19628if test `eval echo '${'$as_ac_Header'}'` = yes; then
19629 cat >>confdefs.h <<_ACEOF
19630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19631_ACEOF
19632
19633fi
19634
19635done
19636
19637
19638
19639
19640
19641
19642for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19643do
19644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19645if eval "test \"\${$as_ac_Header+set}\" = set"; then
19646 echo "$as_me:$LINENO: checking for $ac_header" >&5
19647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19648if eval "test \"\${$as_ac_Header+set}\" = set"; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650fi
19651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19653else
19654 # Is the header compilable?
19655echo "$as_me:$LINENO: checking $ac_header usability" >&5
19656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19657cat >conftest.$ac_ext <<_ACEOF
19658#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019664$ac_includes_default
19665#include <$ac_header>
19666_ACEOF
19667rm -f conftest.$ac_objext
19668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
19673 { ac_try='test -s conftest.$ac_objext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 ac_header_compiler=yes
19680else
19681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019682sed 's/^/| /' conftest.$ac_ext >&5
19683
John Criswell7a73b802003-06-30 21:59:07 +000019684ac_header_compiler=no
19685fi
19686rm -f conftest.$ac_objext conftest.$ac_ext
19687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19688echo "${ECHO_T}$ac_header_compiler" >&6
19689
19690# Is the header present?
19691echo "$as_me:$LINENO: checking $ac_header presence" >&5
19692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19693cat >conftest.$ac_ext <<_ACEOF
19694#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019700#include <$ac_header>
19701_ACEOF
19702if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19704 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019705 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } >/dev/null; then
19710 if test -s conftest.err; then
19711 ac_cpp_err=$ac_c_preproc_warn_flag
19712 else
19713 ac_cpp_err=
19714 fi
19715else
19716 ac_cpp_err=yes
19717fi
19718if test -z "$ac_cpp_err"; then
19719 ac_header_preproc=yes
19720else
19721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019722sed 's/^/| /' conftest.$ac_ext >&5
19723
John Criswell7a73b802003-06-30 21:59:07 +000019724 ac_header_preproc=no
19725fi
19726rm -f conftest.err conftest.$ac_ext
19727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19728echo "${ECHO_T}$ac_header_preproc" >&6
19729
19730# So? What about this header?
19731case $ac_header_compiler:$ac_header_preproc in
19732 yes:no )
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19737 (
19738 cat <<\_ASBOX
19739## ------------------------------------ ##
19740## Report this to bug-autoconf@gnu.org. ##
19741## ------------------------------------ ##
19742_ASBOX
19743 ) |
19744 sed "s/^/$as_me: WARNING: /" >&2
19745 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019746 no:yes )
19747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19753 (
19754 cat <<\_ASBOX
19755## ------------------------------------ ##
19756## Report this to bug-autoconf@gnu.org. ##
19757## ------------------------------------ ##
19758_ASBOX
19759 ) |
19760 sed "s/^/$as_me: WARNING: /" >&2
19761 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019762esac
19763echo "$as_me:$LINENO: checking for $ac_header" >&5
19764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19765if eval "test \"\${$as_ac_Header+set}\" = set"; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768 eval "$as_ac_Header=$ac_header_preproc"
19769fi
19770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19772
19773fi
19774if test `eval echo '${'$as_ac_Header'}'` = yes; then
19775 cat >>confdefs.h <<_ACEOF
19776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19777_ACEOF
19778
19779fi
19780
19781done
19782
19783
19784
19785
19786for ac_header in dlfcn.h link.h
19787do
19788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19789if eval "test \"\${$as_ac_Header+set}\" = set"; then
19790 echo "$as_me:$LINENO: checking for $ac_header" >&5
19791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19792if eval "test \"\${$as_ac_Header+set}\" = set"; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19794fi
19795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19797else
19798 # Is the header compilable?
19799echo "$as_me:$LINENO: checking $ac_header usability" >&5
19800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19801cat >conftest.$ac_ext <<_ACEOF
19802#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019803/* confdefs.h. */
19804_ACEOF
19805cat confdefs.h >>conftest.$ac_ext
19806cat >>conftest.$ac_ext <<_ACEOF
19807/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019808$ac_includes_default
19809#include <$ac_header>
19810_ACEOF
19811rm -f conftest.$ac_objext
19812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19813 (eval $ac_compile) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
19817 { ac_try='test -s conftest.$ac_objext'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19823 ac_header_compiler=yes
19824else
19825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019826sed 's/^/| /' conftest.$ac_ext >&5
19827
John Criswell7a73b802003-06-30 21:59:07 +000019828ac_header_compiler=no
19829fi
19830rm -f conftest.$ac_objext conftest.$ac_ext
19831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19832echo "${ECHO_T}$ac_header_compiler" >&6
19833
19834# Is the header present?
19835echo "$as_me:$LINENO: checking $ac_header presence" >&5
19836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19837cat >conftest.$ac_ext <<_ACEOF
19838#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019839/* confdefs.h. */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
19843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019844#include <$ac_header>
19845_ACEOF
19846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19848 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019849 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } >/dev/null; then
19854 if test -s conftest.err; then
19855 ac_cpp_err=$ac_c_preproc_warn_flag
19856 else
19857 ac_cpp_err=
19858 fi
19859else
19860 ac_cpp_err=yes
19861fi
19862if test -z "$ac_cpp_err"; then
19863 ac_header_preproc=yes
19864else
19865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019866sed 's/^/| /' conftest.$ac_ext >&5
19867
John Criswell7a73b802003-06-30 21:59:07 +000019868 ac_header_preproc=no
19869fi
19870rm -f conftest.err conftest.$ac_ext
19871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19872echo "${ECHO_T}$ac_header_preproc" >&6
19873
19874# So? What about this header?
19875case $ac_header_compiler:$ac_header_preproc in
19876 yes:no )
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19881 (
19882 cat <<\_ASBOX
19883## ------------------------------------ ##
19884## Report this to bug-autoconf@gnu.org. ##
19885## ------------------------------------ ##
19886_ASBOX
19887 ) |
19888 sed "s/^/$as_me: WARNING: /" >&2
19889 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019890 no:yes )
19891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19897 (
19898 cat <<\_ASBOX
19899## ------------------------------------ ##
19900## Report this to bug-autoconf@gnu.org. ##
19901## ------------------------------------ ##
19902_ASBOX
19903 ) |
19904 sed "s/^/$as_me: WARNING: /" >&2
19905 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019906esac
19907echo "$as_me:$LINENO: checking for $ac_header" >&5
19908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19909if eval "test \"\${$as_ac_Header+set}\" = set"; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911else
19912 eval "$as_ac_Header=$ac_header_preproc"
19913fi
19914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19916
19917fi
19918if test `eval echo '${'$as_ac_Header'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19921_ACEOF
19922
19923fi
19924
19925done
19926
19927
19928
John Criswell7a73b802003-06-30 21:59:07 +000019929echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19930echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19931if test "${ac_cv_c_const+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19933else
19934 cat >conftest.$ac_ext <<_ACEOF
19935#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019936/* confdefs.h. */
19937_ACEOF
19938cat confdefs.h >>conftest.$ac_ext
19939cat >>conftest.$ac_ext <<_ACEOF
19940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019941
John Criswell7a73b802003-06-30 21:59:07 +000019942int
19943main ()
19944{
19945/* FIXME: Include the comments suggested by Paul. */
19946#ifndef __cplusplus
19947 /* Ultrix mips cc rejects this. */
19948 typedef int charset[2];
19949 const charset x;
19950 /* SunOS 4.1.1 cc rejects this. */
19951 char const *const *ccp;
19952 char **p;
19953 /* NEC SVR4.0.2 mips cc rejects this. */
19954 struct point {int x, y;};
19955 static struct point const zero = {0,0};
19956 /* AIX XL C 1.02.0.0 rejects this.
19957 It does not let you subtract one const X* pointer from another in
19958 an arm of an if-expression whose if-part is not a constant
19959 expression */
19960 const char *g = "string";
19961 ccp = &g + (g ? g-g : 0);
19962 /* HPUX 7.0 cc rejects these. */
19963 ++ccp;
19964 p = (char**) ccp;
19965 ccp = (char const *const *) p;
19966 { /* SCO 3.2v4 cc rejects this. */
19967 char *t;
19968 char const *s = 0 ? (char *) 0 : (char const *) 0;
19969
19970 *t++ = 0;
19971 }
19972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19973 int x[] = {25, 17};
19974 const int *foo = &x[0];
19975 ++foo;
19976 }
19977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19978 typedef const int *iptr;
19979 iptr p = 0;
19980 ++p;
19981 }
19982 { /* AIX XL C 1.02.0.0 rejects this saying
19983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19984 struct s { int j; const int *ap[3]; };
19985 struct s *b; b->j = 5;
19986 }
19987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19988 const int foo = 10;
19989 }
19990#endif
19991
19992 ;
19993 return 0;
19994}
19995_ACEOF
19996rm -f conftest.$ac_objext
19997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); }; }; then
20008 ac_cv_c_const=yes
20009else
20010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020011sed 's/^/| /' conftest.$ac_ext >&5
20012
John Criswell7a73b802003-06-30 21:59:07 +000020013ac_cv_c_const=no
20014fi
20015rm -f conftest.$ac_objext conftest.$ac_ext
20016fi
20017echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20018echo "${ECHO_T}$ac_cv_c_const" >&6
20019if test $ac_cv_c_const = no; then
20020
20021cat >>confdefs.h <<\_ACEOF
20022#define const
20023_ACEOF
20024
20025fi
20026
20027echo "$as_me:$LINENO: checking for inline" >&5
20028echo $ECHO_N "checking for inline... $ECHO_C" >&6
20029if test "${ac_cv_c_inline+set}" = set; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031else
20032 ac_cv_c_inline=no
20033for ac_kw in inline __inline__ __inline; do
20034 cat >conftest.$ac_ext <<_ACEOF
20035#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020036/* confdefs.h. */
20037_ACEOF
20038cat confdefs.h >>conftest.$ac_ext
20039cat >>conftest.$ac_ext <<_ACEOF
20040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020041#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020042typedef int foo_t;
20043static $ac_kw foo_t static_foo () {return 0; }
20044$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020045#endif
20046
20047_ACEOF
20048rm -f conftest.$ac_objext
20049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050 (eval $ac_compile) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -s conftest.$ac_objext'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 ac_cv_c_inline=$ac_kw; break
20061else
20062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020063sed 's/^/| /' conftest.$ac_ext >&5
20064
John Criswell7a73b802003-06-30 21:59:07 +000020065fi
20066rm -f conftest.$ac_objext conftest.$ac_ext
20067done
20068
20069fi
20070echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20071echo "${ECHO_T}$ac_cv_c_inline" >&6
20072case $ac_cv_c_inline in
20073 inline | yes) ;;
20074 no)
20075cat >>confdefs.h <<\_ACEOF
20076#define inline
20077_ACEOF
20078 ;;
20079 *) cat >>confdefs.h <<_ACEOF
20080#define inline $ac_cv_c_inline
20081_ACEOF
20082 ;;
20083esac
20084
20085
20086echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20087echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20088if test "${ac_cv_c_bigendian+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091 # See if sys/param.h defines the BYTE_ORDER macro.
20092cat >conftest.$ac_ext <<_ACEOF
20093#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020099#include <sys/types.h>
20100#include <sys/param.h>
20101
John Criswell7a73b802003-06-30 21:59:07 +000020102int
20103main ()
20104{
20105#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20106 bogus endian macros
20107#endif
20108
20109 ;
20110 return 0;
20111}
20112_ACEOF
20113rm -f conftest.$ac_objext
20114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -s conftest.$ac_objext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 # It does; now see whether it defined to BIG_ENDIAN or not.
20126cat >conftest.$ac_ext <<_ACEOF
20127#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020133#include <sys/types.h>
20134#include <sys/param.h>
20135
John Criswell7a73b802003-06-30 21:59:07 +000020136int
20137main ()
20138{
20139#if BYTE_ORDER != BIG_ENDIAN
20140 not big endian
20141#endif
20142
20143 ;
20144 return 0;
20145}
20146_ACEOF
20147rm -f conftest.$ac_objext
20148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149 (eval $ac_compile) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
20153 { ac_try='test -s conftest.$ac_objext'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_c_bigendian=yes
20160else
20161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020162sed 's/^/| /' conftest.$ac_ext >&5
20163
John Criswell7a73b802003-06-30 21:59:07 +000020164ac_cv_c_bigendian=no
20165fi
20166rm -f conftest.$ac_objext conftest.$ac_ext
20167else
20168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020169sed 's/^/| /' conftest.$ac_ext >&5
20170
John Criswell7a73b802003-06-30 21:59:07 +000020171# It does not; compile a test program.
20172if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020173 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020174 ac_cv_c_bigendian=unknown
20175 cat >conftest.$ac_ext <<_ACEOF
20176#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020182short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20183short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20184void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20185short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20186short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20187void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020188int
20189main ()
20190{
20191 _ascii (); _ebcdic ();
20192 ;
20193 return 0;
20194}
20195_ACEOF
20196rm -f conftest.$ac_objext
20197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20198 (eval $ac_compile) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
20202 { ac_try='test -s conftest.$ac_objext'
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020208 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020209 ac_cv_c_bigendian=yes
20210fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020211if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020212 if test "$ac_cv_c_bigendian" = unknown; then
20213 ac_cv_c_bigendian=no
20214 else
20215 # finding both strings is unlikely to happen, but who knows?
20216 ac_cv_c_bigendian=unknown
20217 fi
20218fi
20219else
20220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020221sed 's/^/| /' conftest.$ac_ext >&5
20222
John Criswell7a73b802003-06-30 21:59:07 +000020223fi
20224rm -f conftest.$ac_objext conftest.$ac_ext
20225else
20226 cat >conftest.$ac_ext <<_ACEOF
20227#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020228/* confdefs.h. */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020233int
20234main ()
20235{
20236 /* Are we little or big endian? From Harbison&Steele. */
20237 union
20238 {
20239 long l;
20240 char c[sizeof (long)];
20241 } u;
20242 u.l = 1;
20243 exit (u.c[sizeof (long) - 1] == 1);
20244}
20245_ACEOF
20246rm -f conftest$ac_exeext
20247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20248 (eval $ac_link) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_cv_c_bigendian=no
20258else
20259 echo "$as_me: program exited with status $ac_status" >&5
20260echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020261sed 's/^/| /' conftest.$ac_ext >&5
20262
John Criswell7a73b802003-06-30 21:59:07 +000020263( exit $ac_status )
20264ac_cv_c_bigendian=yes
20265fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020266rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020267fi
20268fi
20269rm -f conftest.$ac_objext conftest.$ac_ext
20270fi
20271echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20272echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20273case $ac_cv_c_bigendian in
20274 yes)
20275 cat >>confdefs.h <<\_ACEOF
20276#define ENDIAN_BIG 1
20277_ACEOF
20278 ;;
20279 no)
20280 cat >>confdefs.h <<\_ACEOF
20281#define ENDIAN_LITTLE 1
20282_ACEOF
20283 ;;
20284 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020285 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020286presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020287echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020288presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20289 { (exit 1); exit 1; }; } ;;
20290esac
20291
20292
20293echo "$as_me:$LINENO: checking for pid_t" >&5
20294echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20295if test "${ac_cv_type_pid_t+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297else
20298 cat >conftest.$ac_ext <<_ACEOF
20299#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020305$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020306int
20307main ()
20308{
20309if ((pid_t *) 0)
20310 return 0;
20311if (sizeof (pid_t))
20312 return 0;
20313 ;
20314 return 0;
20315}
20316_ACEOF
20317rm -f conftest.$ac_objext
20318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
20323 { ac_try='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_cv_type_pid_t=yes
20330else
20331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020332sed 's/^/| /' conftest.$ac_ext >&5
20333
John Criswell7a73b802003-06-30 21:59:07 +000020334ac_cv_type_pid_t=no
20335fi
20336rm -f conftest.$ac_objext conftest.$ac_ext
20337fi
20338echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20339echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20340if test $ac_cv_type_pid_t = yes; then
20341 :
20342else
20343
20344cat >>confdefs.h <<_ACEOF
20345#define pid_t int
20346_ACEOF
20347
20348fi
20349
20350echo "$as_me:$LINENO: checking for size_t" >&5
20351echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20352if test "${ac_cv_type_size_t+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354else
20355 cat >conftest.$ac_ext <<_ACEOF
20356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020362$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020363int
20364main ()
20365{
20366if ((size_t *) 0)
20367 return 0;
20368if (sizeof (size_t))
20369 return 0;
20370 ;
20371 return 0;
20372}
20373_ACEOF
20374rm -f conftest.$ac_objext
20375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376 (eval $ac_compile) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 ac_cv_type_size_t=yes
20387else
20388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020389sed 's/^/| /' conftest.$ac_ext >&5
20390
John Criswell7a73b802003-06-30 21:59:07 +000020391ac_cv_type_size_t=no
20392fi
20393rm -f conftest.$ac_objext conftest.$ac_ext
20394fi
20395echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20396echo "${ECHO_T}$ac_cv_type_size_t" >&6
20397if test $ac_cv_type_size_t = yes; then
20398 :
20399else
20400
20401cat >>confdefs.h <<_ACEOF
20402#define size_t unsigned
20403_ACEOF
20404
20405fi
20406
20407echo "$as_me:$LINENO: checking for int64_t" >&5
20408echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20409if test "${ac_cv_type_int64_t+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412 cat >conftest.$ac_ext <<_ACEOF
20413#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020414/* confdefs.h. */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020419$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020420int
20421main ()
20422{
20423if ((int64_t *) 0)
20424 return 0;
20425if (sizeof (int64_t))
20426 return 0;
20427 ;
20428 return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext
20432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_cv_type_int64_t=yes
20444else
20445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020446sed 's/^/| /' conftest.$ac_ext >&5
20447
John Criswell7a73b802003-06-30 21:59:07 +000020448ac_cv_type_int64_t=no
20449fi
20450rm -f conftest.$ac_objext conftest.$ac_ext
20451fi
20452echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20453echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20454if test $ac_cv_type_int64_t = yes; then
20455
20456cat >>confdefs.h <<_ACEOF
20457#define HAVE_INT64_T 1
20458_ACEOF
20459
20460
20461else
20462 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20463echo "$as_me: error: Type int64_t required but not found" >&2;}
20464 { (exit 1); exit 1; }; }
20465fi
20466
20467echo "$as_me:$LINENO: checking for uint64_t" >&5
20468echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20469if test "${ac_cv_type_uint64_t+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20471else
20472 cat >conftest.$ac_ext <<_ACEOF
20473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020474/* confdefs.h. */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020479$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020480int
20481main ()
20482{
20483if ((uint64_t *) 0)
20484 return 0;
20485if (sizeof (uint64_t))
20486 return 0;
20487 ;
20488 return 0;
20489}
20490_ACEOF
20491rm -f conftest.$ac_objext
20492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20493 (eval $ac_compile) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } &&
20497 { ac_try='test -s conftest.$ac_objext'
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_cv_type_uint64_t=yes
20504else
20505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020506sed 's/^/| /' conftest.$ac_ext >&5
20507
John Criswell7a73b802003-06-30 21:59:07 +000020508ac_cv_type_uint64_t=no
20509fi
20510rm -f conftest.$ac_objext conftest.$ac_ext
20511fi
20512echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20513echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20514if test $ac_cv_type_uint64_t = yes; then
20515
20516cat >>confdefs.h <<_ACEOF
20517#define HAVE_UINT64_T 1
20518_ACEOF
20519
20520
20521else
20522 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20523echo "$as_me: error: Type uint64_t required but not found" >&2;}
20524 { (exit 1); exit 1; }; }
20525fi
20526
20527echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20528echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20529if test "${ac_cv_header_time+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20531else
20532 cat >conftest.$ac_ext <<_ACEOF
20533#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020539#include <sys/types.h>
20540#include <sys/time.h>
20541#include <time.h>
20542
John Criswell7a73b802003-06-30 21:59:07 +000020543int
20544main ()
20545{
20546if ((struct tm *) 0)
20547return 0;
20548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_header_time=yes
20565else
20566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020567sed 's/^/| /' conftest.$ac_ext >&5
20568
John Criswell7a73b802003-06-30 21:59:07 +000020569ac_cv_header_time=no
20570fi
20571rm -f conftest.$ac_objext conftest.$ac_ext
20572fi
20573echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20574echo "${ECHO_T}$ac_cv_header_time" >&6
20575if test $ac_cv_header_time = yes; then
20576
20577cat >>confdefs.h <<\_ACEOF
20578#define TIME_WITH_SYS_TIME 1
20579_ACEOF
20580
20581fi
20582
20583echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20584echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20585if test "${ac_cv_struct_tm+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587else
20588 cat >conftest.$ac_ext <<_ACEOF
20589#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020595#include <sys/types.h>
20596#include <time.h>
20597
John Criswell7a73b802003-06-30 21:59:07 +000020598int
20599main ()
20600{
20601struct tm *tp; tp->tm_sec;
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606rm -f conftest.$ac_objext
20607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608 (eval $ac_compile) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try='test -s conftest.$ac_objext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_struct_tm=time.h
20619else
20620 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020621sed 's/^/| /' conftest.$ac_ext >&5
20622
John Criswell7a73b802003-06-30 21:59:07 +000020623ac_cv_struct_tm=sys/time.h
20624fi
20625rm -f conftest.$ac_objext conftest.$ac_ext
20626fi
20627echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20628echo "${ECHO_T}$ac_cv_struct_tm" >&6
20629if test $ac_cv_struct_tm = sys/time.h; then
20630
20631cat >>confdefs.h <<\_ACEOF
20632#define TM_IN_SYS_TIME 1
20633_ACEOF
20634
20635fi
20636
20637
John Criswell7a73b802003-06-30 21:59:07 +000020638echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20639echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20640if test "${ac_cv_cxx_namespaces+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20642else
20643
20644
20645 ac_ext=cc
20646ac_cpp='$CXXCPP $CPPFLAGS'
20647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20650
20651 cat >conftest.$ac_ext <<_ACEOF
20652#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020653/* confdefs.h. */
20654_ACEOF
20655cat confdefs.h >>conftest.$ac_ext
20656cat >>conftest.$ac_ext <<_ACEOF
20657/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020658namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020659int
20660main ()
20661{
20662using namespace Outer::Inner; return i;
20663 ;
20664 return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext
20668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
20673 { ac_try='test -s conftest.$ac_objext'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20679 ac_cv_cxx_namespaces=yes
20680else
20681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020682sed 's/^/| /' conftest.$ac_ext >&5
20683
John Criswell7a73b802003-06-30 21:59:07 +000020684ac_cv_cxx_namespaces=no
20685fi
20686rm -f conftest.$ac_objext conftest.$ac_ext
20687 ac_ext=c
20688ac_cpp='$CPP $CPPFLAGS'
20689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691ac_compiler_gnu=$ac_cv_c_compiler_gnu
20692
20693
20694fi
20695echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20696echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20697if test "$ac_cv_cxx_namespaces" = yes; then
20698
20699cat >>confdefs.h <<\_ACEOF
20700#define HAVE_NAMESPACES
20701_ACEOF
20702
20703fi
20704
20705echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20706echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20707if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709else
20710
20711
20712
20713 ac_ext=cc
20714ac_cpp='$CXXCPP $CPPFLAGS'
20715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20718
20719 cat >conftest.$ac_ext <<_ACEOF
20720#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020721/* confdefs.h. */
20722_ACEOF
20723cat confdefs.h >>conftest.$ac_ext
20724cat >>conftest.$ac_ext <<_ACEOF
20725/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020726#include <ext/hash_map>
20727#ifdef HAVE_NAMESPACES
20728using namespace std;
20729#endif
John Criswell7a73b802003-06-30 21:59:07 +000020730int
20731main ()
20732{
20733hash_map<int, int> t; return 0;
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext
20739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740 (eval $ac_compile) 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -s conftest.$ac_objext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_cv_cxx_have_ext_hash_map=std
20751else
20752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020753sed 's/^/| /' conftest.$ac_ext >&5
20754
John Criswell7a73b802003-06-30 21:59:07 +000020755ac_cv_cxx_have_ext_hash_map=no
20756fi
20757rm -f conftest.$ac_objext conftest.$ac_ext
20758 cat >conftest.$ac_ext <<_ACEOF
20759#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020760/* confdefs.h. */
20761_ACEOF
20762cat confdefs.h >>conftest.$ac_ext
20763cat >>conftest.$ac_ext <<_ACEOF
20764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020765#include <ext/hash_map>
20766#ifdef HAVE_NAMESPACES
20767using namespace __gnu_cxx;
20768#endif
John Criswell7a73b802003-06-30 21:59:07 +000020769int
20770main ()
20771{
20772hash_map<int, int> t; return 0;
20773 ;
20774 return 0;
20775}
20776_ACEOF
20777rm -f conftest.$ac_objext
20778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20779 (eval $ac_compile) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); } &&
20783 { ac_try='test -s conftest.$ac_objext'
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; }; then
20789 ac_cv_cxx_have_ext_hash_map=gnu
20790else
20791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020792sed 's/^/| /' conftest.$ac_ext >&5
20793
John Criswell7a73b802003-06-30 21:59:07 +000020794ac_cv_cxx_have_ext_hash_map=no
20795fi
20796rm -f conftest.$ac_objext conftest.$ac_ext
20797 ac_ext=c
20798ac_cpp='$CPP $CPPFLAGS'
20799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20801ac_compiler_gnu=$ac_cv_c_compiler_gnu
20802
20803
20804fi
20805echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20806echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20807if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20808
20809cat >>confdefs.h <<\_ACEOF
20810#define HAVE_STD_EXT_HASH_MAP
20811_ACEOF
20812
20813fi
20814if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20815
20816cat >>confdefs.h <<\_ACEOF
20817#define HAVE_GNU_EXT_HASH_MAP
20818_ACEOF
20819
20820fi
20821
20822echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20823echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20824if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20826else
20827
20828
20829
20830 ac_ext=cc
20831ac_cpp='$CXXCPP $CPPFLAGS'
20832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835
20836 cat >conftest.$ac_ext <<_ACEOF
20837#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020838/* confdefs.h. */
20839_ACEOF
20840cat confdefs.h >>conftest.$ac_ext
20841cat >>conftest.$ac_ext <<_ACEOF
20842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020843#include <ext/hash_set>
20844#ifdef HAVE_NAMESPACES
20845using namespace std;
20846#endif
John Criswell7a73b802003-06-30 21:59:07 +000020847int
20848main ()
20849{
20850hash_set<int> t; return 0;
20851 ;
20852 return 0;
20853}
20854_ACEOF
20855rm -f conftest.$ac_objext
20856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20857 (eval $ac_compile) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -s conftest.$ac_objext'
20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863 (eval $ac_try) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); }; }; then
20867 ac_cv_cxx_have_ext_hash_set=std
20868else
20869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020870sed 's/^/| /' conftest.$ac_ext >&5
20871
John Criswell7a73b802003-06-30 21:59:07 +000020872ac_cv_cxx_have_ext_hash_set=no
20873fi
20874rm -f conftest.$ac_objext conftest.$ac_ext
20875 cat >conftest.$ac_ext <<_ACEOF
20876#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020877/* confdefs.h. */
20878_ACEOF
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020882#include <ext/hash_set>
20883#ifdef HAVE_NAMESPACES
20884using namespace __gnu_cxx;
20885#endif
John Criswell7a73b802003-06-30 21:59:07 +000020886int
20887main ()
20888{
20889hash_set<int> t; return 0;
20890 ;
20891 return 0;
20892}
20893_ACEOF
20894rm -f conftest.$ac_objext
20895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20896 (eval $ac_compile) 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_cv_cxx_have_ext_hash_set=gnu
20907else
20908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020909sed 's/^/| /' conftest.$ac_ext >&5
20910
John Criswell7a73b802003-06-30 21:59:07 +000020911ac_cv_cxx_have_ext_hash_set=no
20912fi
20913rm -f conftest.$ac_objext conftest.$ac_ext
20914 ac_ext=c
20915ac_cpp='$CPP $CPPFLAGS'
20916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20918ac_compiler_gnu=$ac_cv_c_compiler_gnu
20919
20920
20921fi
20922echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20923echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20924if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20925
20926cat >>confdefs.h <<\_ACEOF
20927#define HAVE_STD_EXT_HASH_SET
20928_ACEOF
20929
20930fi
20931if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20932
20933cat >>confdefs.h <<\_ACEOF
20934#define HAVE_GNU_EXT_HASH_SET
20935_ACEOF
20936
20937fi
20938
20939echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20940echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20941if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943else
20944
20945
20946
20947 ac_ext=cc
20948ac_cpp='$CXXCPP $CPPFLAGS'
20949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20952
20953 cat >conftest.$ac_ext <<_ACEOF
20954#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020960#include <ext/slist>
20961#ifdef HAVE_NAMESPACES
20962using namespace std;
20963#endif
John Criswell7a73b802003-06-30 21:59:07 +000020964int
20965main ()
20966{
20967slist<int> s; return 0;
20968 ;
20969 return 0;
20970}
20971_ACEOF
20972rm -f conftest.$ac_objext
20973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); } &&
20978 { ac_try='test -s conftest.$ac_objext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_cxx_have_ext_slist=std
20985else
20986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020987sed 's/^/| /' conftest.$ac_ext >&5
20988
John Criswell7a73b802003-06-30 21:59:07 +000020989ac_cv_cxx_have_ext_slist=no
20990fi
20991rm -f conftest.$ac_objext conftest.$ac_ext
20992 cat >conftest.$ac_ext <<_ACEOF
20993#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020994/* confdefs.h. */
20995_ACEOF
20996cat confdefs.h >>conftest.$ac_ext
20997cat >>conftest.$ac_ext <<_ACEOF
20998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020999#include <ext/slist>
21000#ifdef HAVE_NAMESPACES
21001using namespace __gnu_cxx;
21002#endif
John Criswell7a73b802003-06-30 21:59:07 +000021003int
21004main ()
21005{
21006slist<int> s; return 0;
21007 ;
21008 return 0;
21009}
21010_ACEOF
21011rm -f conftest.$ac_objext
21012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21013 (eval $ac_compile) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } &&
21017 { ac_try='test -s conftest.$ac_objext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_cxx_have_ext_slist=gnu
21024else
21025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021026sed 's/^/| /' conftest.$ac_ext >&5
21027
John Criswell7a73b802003-06-30 21:59:07 +000021028ac_cv_cxx_have_ext_slist=no
21029fi
21030rm -f conftest.$ac_objext conftest.$ac_ext
21031
21032 ac_ext=c
21033ac_cpp='$CPP $CPPFLAGS'
21034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038
21039fi
21040echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21041echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21042if test "$ac_cv_cxx_have_ext_slist" = std; then
21043
21044cat >>confdefs.h <<\_ACEOF
21045#define HAVE_EXT_SLIST std
21046_ACEOF
21047
21048fi
21049if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21050
21051cat >>confdefs.h <<\_ACEOF
21052#define HAVE_EXT_SLIST gnu
21053_ACEOF
21054
21055fi
21056
21057echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21058echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21059if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061else
21062
21063
21064
21065 ac_ext=cc
21066ac_cpp='$CXXCPP $CPPFLAGS'
21067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21070
21071 cat >conftest.$ac_ext <<_ACEOF
21072#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021078#include <iterator>
21079#ifdef HAVE_NAMESPACES
21080using namespace std;
21081#endif
John Criswell7a73b802003-06-30 21:59:07 +000021082int
21083main ()
21084{
21085iterator<int,int,int> t; return 0;
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext
21091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21092 (eval $ac_compile) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -s conftest.$ac_objext'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 ac_cv_cxx_have_std_iterator=yes
21103else
21104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021105sed 's/^/| /' conftest.$ac_ext >&5
21106
John Criswell7a73b802003-06-30 21:59:07 +000021107ac_cv_cxx_have_std_iterator=no
21108fi
21109rm -f conftest.$ac_objext conftest.$ac_ext
21110 ac_ext=c
21111ac_cpp='$CPP $CPPFLAGS'
21112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21114ac_compiler_gnu=$ac_cv_c_compiler_gnu
21115
21116
21117fi
21118echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21119echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21120if test "$ac_cv_cxx_have_std_iterator" = yes; then
21121
21122cat >>confdefs.h <<\_ACEOF
21123#define HAVE_STD_ITERATOR
21124_ACEOF
21125
21126fi
21127
21128echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21129echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21130if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132else
21133
21134
21135
21136 ac_ext=cc
21137ac_cpp='$CXXCPP $CPPFLAGS'
21138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21141
21142 cat >conftest.$ac_ext <<_ACEOF
21143#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021149#include <iterator>
21150#ifdef HAVE_NAMESPACES
21151using namespace std;
21152#endif
John Criswell7a73b802003-06-30 21:59:07 +000021153int
21154main ()
21155{
John Criswellc78022e2003-07-29 19:11:58 +000021156bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021157 ;
21158 return 0;
21159}
21160_ACEOF
21161rm -f conftest.$ac_objext
21162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -s conftest.$ac_objext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
21173 ac_cv_cxx_have_bi_iterator=yes
21174else
21175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021176sed 's/^/| /' conftest.$ac_ext >&5
21177
John Criswell7a73b802003-06-30 21:59:07 +000021178ac_cv_cxx_have_bi_iterator=no
21179fi
21180rm -f conftest.$ac_objext conftest.$ac_ext
21181 ac_ext=c
21182ac_cpp='$CPP $CPPFLAGS'
21183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21185ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186
21187
21188fi
21189echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21190echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21191if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21192
21193cat >>confdefs.h <<\_ACEOF
21194#define HAVE_BI_ITERATOR
21195_ACEOF
21196
21197fi
21198
21199echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21200echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21201if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204
21205
21206
21207 ac_ext=cc
21208ac_cpp='$CXXCPP $CPPFLAGS'
21209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21212
21213 cat >conftest.$ac_ext <<_ACEOF
21214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021215/* confdefs.h. */
21216_ACEOF
21217cat confdefs.h >>conftest.$ac_ext
21218cat >>conftest.$ac_ext <<_ACEOF
21219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021220#include <iterator>
21221#ifdef HAVE_NAMESPACES
21222using namespace std;
21223#endif
John Criswell7a73b802003-06-30 21:59:07 +000021224int
21225main ()
21226{
John Criswellc78022e2003-07-29 19:11:58 +000021227forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021228 ;
21229 return 0;
21230}
21231_ACEOF
21232rm -f conftest.$ac_objext
21233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234 (eval $ac_compile) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -s conftest.$ac_objext'
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_cxx_have_fwd_iterator=yes
21245else
21246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021247sed 's/^/| /' conftest.$ac_ext >&5
21248
John Criswell7a73b802003-06-30 21:59:07 +000021249ac_cv_cxx_have_fwd_iterator=no
21250fi
21251rm -f conftest.$ac_objext conftest.$ac_ext
21252 ac_ext=c
21253ac_cpp='$CPP $CPPFLAGS'
21254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258
21259fi
21260echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21261echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21262if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21263
21264cat >>confdefs.h <<\_ACEOF
21265#define HAVE_FWD_ITERATOR
21266_ACEOF
21267
21268fi
21269
21270
21271# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21272# for constant arguments. Useless!
21273echo "$as_me:$LINENO: checking for working alloca.h" >&5
21274echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21275if test "${ac_cv_working_alloca_h+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277else
21278 cat >conftest.$ac_ext <<_ACEOF
21279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021280/* confdefs.h. */
21281_ACEOF
21282cat confdefs.h >>conftest.$ac_ext
21283cat >>conftest.$ac_ext <<_ACEOF
21284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021285#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021286int
21287main ()
21288{
21289char *p = (char *) alloca (2 * sizeof (int));
21290 ;
21291 return 0;
21292}
21293_ACEOF
21294rm -f conftest.$ac_objext conftest$ac_exeext
21295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21296 (eval $ac_link) 2>&5
21297 ac_status=$?
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } &&
21300 { ac_try='test -s conftest$ac_exeext'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_cv_working_alloca_h=yes
21307else
21308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021309sed 's/^/| /' conftest.$ac_ext >&5
21310
John Criswell7a73b802003-06-30 21:59:07 +000021311ac_cv_working_alloca_h=no
21312fi
21313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21314fi
21315echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21316echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21317if test $ac_cv_working_alloca_h = yes; then
21318
21319cat >>confdefs.h <<\_ACEOF
21320#define HAVE_ALLOCA_H 1
21321_ACEOF
21322
21323fi
21324
21325echo "$as_me:$LINENO: checking for alloca" >&5
21326echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21327if test "${ac_cv_func_alloca_works+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21329else
21330 cat >conftest.$ac_ext <<_ACEOF
21331#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021332/* confdefs.h. */
21333_ACEOF
21334cat confdefs.h >>conftest.$ac_ext
21335cat >>conftest.$ac_ext <<_ACEOF
21336/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021337#ifdef __GNUC__
21338# define alloca __builtin_alloca
21339#else
21340# ifdef _MSC_VER
21341# include <malloc.h>
21342# define alloca _alloca
21343# else
21344# if HAVE_ALLOCA_H
21345# include <alloca.h>
21346# else
21347# ifdef _AIX
21348 #pragma alloca
21349# else
21350# ifndef alloca /* predefined by HP cc +Olibcalls */
21351char *alloca ();
21352# endif
21353# endif
21354# endif
21355# endif
21356#endif
21357
John Criswell7a73b802003-06-30 21:59:07 +000021358int
21359main ()
21360{
21361char *p = (char *) alloca (1);
21362 ;
21363 return 0;
21364}
21365_ACEOF
21366rm -f conftest.$ac_objext conftest$ac_exeext
21367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21368 (eval $ac_link) 2>&5
21369 ac_status=$?
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } &&
21372 { ac_try='test -s conftest$ac_exeext'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; }; then
21378 ac_cv_func_alloca_works=yes
21379else
21380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021381sed 's/^/| /' conftest.$ac_ext >&5
21382
John Criswell7a73b802003-06-30 21:59:07 +000021383ac_cv_func_alloca_works=no
21384fi
21385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21386fi
21387echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21388echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21389
21390if test $ac_cv_func_alloca_works = yes; then
21391
21392cat >>confdefs.h <<\_ACEOF
21393#define HAVE_ALLOCA 1
21394_ACEOF
21395
21396else
21397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21398# that cause trouble. Some versions do not even contain alloca or
21399# contain a buggy version. If you still want to use their alloca,
21400# use ar to extract alloca.o from them instead of compiling alloca.c.
21401
21402ALLOCA=alloca.$ac_objext
21403
21404cat >>confdefs.h <<\_ACEOF
21405#define C_ALLOCA 1
21406_ACEOF
21407
21408
21409echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21410echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21411if test "${ac_cv_os_cray+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413else
21414 cat >conftest.$ac_ext <<_ACEOF
21415#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021416/* confdefs.h. */
21417_ACEOF
21418cat confdefs.h >>conftest.$ac_ext
21419cat >>conftest.$ac_ext <<_ACEOF
21420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021421#if defined(CRAY) && ! defined(CRAY2)
21422webecray
21423#else
21424wenotbecray
21425#endif
21426
21427_ACEOF
21428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021429 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021430 ac_cv_os_cray=yes
21431else
21432 ac_cv_os_cray=no
21433fi
21434rm -f conftest*
21435
21436fi
21437echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21438echo "${ECHO_T}$ac_cv_os_cray" >&6
21439if test $ac_cv_os_cray = yes; then
21440 for ac_func in _getb67 GETB67 getb67; do
21441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21442echo "$as_me:$LINENO: checking for $ac_func" >&5
21443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21444if eval "test \"\${$as_ac_var+set}\" = set"; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446else
21447 cat >conftest.$ac_ext <<_ACEOF
21448#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021449/* confdefs.h. */
21450_ACEOF
21451cat confdefs.h >>conftest.$ac_ext
21452cat >>conftest.$ac_ext <<_ACEOF
21453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021454/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021455 which can conflict with char $ac_func (); below.
21456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457 <limits.h> exists even on freestanding compilers. */
21458#ifdef __STDC__
21459# include <limits.h>
21460#else
21461# include <assert.h>
21462#endif
John Criswell7a73b802003-06-30 21:59:07 +000021463/* Override any gcc2 internal prototype to avoid an error. */
21464#ifdef __cplusplus
21465extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021466{
John Criswell7a73b802003-06-30 21:59:07 +000021467#endif
21468/* We use char because int might match the return type of a gcc2
21469 builtin and then its argument prototype would still apply. */
21470char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021471/* The GNU C library defines this for functions which it implements
21472 to always fail with ENOSYS. Some functions are actually named
21473 something starting with __ and the normal name is an alias. */
21474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21475choke me
21476#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021477char (*f) () = $ac_func;
21478#endif
21479#ifdef __cplusplus
21480}
John Criswell7a73b802003-06-30 21:59:07 +000021481#endif
21482
John Criswell0c38eaf2003-09-10 15:17:25 +000021483int
21484main ()
21485{
21486return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021487 ;
21488 return 0;
21489}
21490_ACEOF
21491rm -f conftest.$ac_objext conftest$ac_exeext
21492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21493 (eval $ac_link) 2>&5
21494 ac_status=$?
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
21497 { ac_try='test -s conftest$ac_exeext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 eval "$as_ac_var=yes"
21504else
21505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021506sed 's/^/| /' conftest.$ac_ext >&5
21507
John Criswell7a73b802003-06-30 21:59:07 +000021508eval "$as_ac_var=no"
21509fi
21510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21511fi
21512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21513echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21514if test `eval echo '${'$as_ac_var'}'` = yes; then
21515
21516cat >>confdefs.h <<_ACEOF
21517#define CRAY_STACKSEG_END $ac_func
21518_ACEOF
21519
21520 break
21521fi
21522
21523 done
21524fi
21525
21526echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21527echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21528if test "${ac_cv_c_stack_direction+set}" = set; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530else
21531 if test "$cross_compiling" = yes; then
21532 ac_cv_c_stack_direction=0
21533else
21534 cat >conftest.$ac_ext <<_ACEOF
21535#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021536/* confdefs.h. */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021541int
21542find_stack_direction ()
21543{
21544 static char *addr = 0;
21545 auto char dummy;
21546 if (addr == 0)
21547 {
21548 addr = &dummy;
21549 return find_stack_direction ();
21550 }
21551 else
21552 return (&dummy > addr) ? 1 : -1;
21553}
21554
21555int
21556main ()
21557{
21558 exit (find_stack_direction () < 0);
21559}
21560_ACEOF
21561rm -f conftest$ac_exeext
21562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; }; then
21572 ac_cv_c_stack_direction=1
21573else
21574 echo "$as_me: program exited with status $ac_status" >&5
21575echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021576sed 's/^/| /' conftest.$ac_ext >&5
21577
John Criswell7a73b802003-06-30 21:59:07 +000021578( exit $ac_status )
21579ac_cv_c_stack_direction=-1
21580fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021581rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021582fi
21583fi
21584echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21585echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21586
21587cat >>confdefs.h <<_ACEOF
21588#define STACK_DIRECTION $ac_cv_c_stack_direction
21589_ACEOF
21590
21591
21592fi
21593
21594if test $ac_cv_c_compiler_gnu = yes; then
21595 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21596echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21597if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21598 echo $ECHO_N "(cached) $ECHO_C" >&6
21599else
21600 ac_pattern="Autoconf.*'x'"
21601 cat >conftest.$ac_ext <<_ACEOF
21602#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021603/* confdefs.h. */
21604_ACEOF
21605cat confdefs.h >>conftest.$ac_ext
21606cat >>conftest.$ac_ext <<_ACEOF
21607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021608#include <sgtty.h>
21609Autoconf TIOCGETP
21610_ACEOF
21611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021612 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021613 ac_cv_prog_gcc_traditional=yes
21614else
21615 ac_cv_prog_gcc_traditional=no
21616fi
21617rm -f conftest*
21618
21619
21620 if test $ac_cv_prog_gcc_traditional = no; then
21621 cat >conftest.$ac_ext <<_ACEOF
21622#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021628#include <termio.h>
21629Autoconf TCGETA
21630_ACEOF
21631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021632 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021633 ac_cv_prog_gcc_traditional=yes
21634fi
21635rm -f conftest*
21636
21637 fi
21638fi
21639echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21640echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21641 if test $ac_cv_prog_gcc_traditional = yes; then
21642 CC="$CC -traditional"
21643 fi
21644fi
21645
21646echo "$as_me:$LINENO: checking for working memcmp" >&5
21647echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21648if test "${ac_cv_func_memcmp_working+set}" = set; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21650else
21651 if test "$cross_compiling" = yes; then
21652 ac_cv_func_memcmp_working=no
21653else
21654 cat >conftest.$ac_ext <<_ACEOF
21655#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021656/* confdefs.h. */
21657_ACEOF
21658cat confdefs.h >>conftest.$ac_ext
21659cat >>conftest.$ac_ext <<_ACEOF
21660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021661
John Criswell7a73b802003-06-30 21:59:07 +000021662int
21663main ()
21664{
21665
21666 /* Some versions of memcmp are not 8-bit clean. */
21667 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21668 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21669 exit (1);
21670
21671 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21672 or more and with at least one buffer not starting on a 4-byte boundary.
21673 William Lewis provided this test program. */
21674 {
21675 char foo[21];
21676 char bar[21];
21677 int i;
21678 for (i = 0; i < 4; i++)
21679 {
21680 char *a = foo + i;
21681 char *b = bar + i;
21682 strcpy (a, "--------01111111");
21683 strcpy (b, "--------10000000");
21684 if (memcmp (a, b, 16) >= 0)
21685 exit (1);
21686 }
21687 exit (0);
21688 }
21689
21690 ;
21691 return 0;
21692}
21693_ACEOF
21694rm -f conftest$ac_exeext
21695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21696 (eval $ac_link) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 ac_cv_func_memcmp_working=yes
21706else
21707 echo "$as_me: program exited with status $ac_status" >&5
21708echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021709sed 's/^/| /' conftest.$ac_ext >&5
21710
John Criswell7a73b802003-06-30 21:59:07 +000021711( exit $ac_status )
21712ac_cv_func_memcmp_working=no
21713fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021714rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021715fi
21716fi
21717echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21718echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21719test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21720
21721
21722
21723for ac_header in stdlib.h unistd.h
21724do
21725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21726if eval "test \"\${$as_ac_Header+set}\" = set"; then
21727 echo "$as_me:$LINENO: checking for $ac_header" >&5
21728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21729if eval "test \"\${$as_ac_Header+set}\" = set"; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731fi
21732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21734else
21735 # Is the header compilable?
21736echo "$as_me:$LINENO: checking $ac_header usability" >&5
21737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21738cat >conftest.$ac_ext <<_ACEOF
21739#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021740/* confdefs.h. */
21741_ACEOF
21742cat confdefs.h >>conftest.$ac_ext
21743cat >>conftest.$ac_ext <<_ACEOF
21744/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021745$ac_includes_default
21746#include <$ac_header>
21747_ACEOF
21748rm -f conftest.$ac_objext
21749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750 (eval $ac_compile) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
21754 { ac_try='test -s conftest.$ac_objext'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760 ac_header_compiler=yes
21761else
21762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021763sed 's/^/| /' conftest.$ac_ext >&5
21764
John Criswell7a73b802003-06-30 21:59:07 +000021765ac_header_compiler=no
21766fi
21767rm -f conftest.$ac_objext conftest.$ac_ext
21768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21769echo "${ECHO_T}$ac_header_compiler" >&6
21770
21771# Is the header present?
21772echo "$as_me:$LINENO: checking $ac_header presence" >&5
21773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21774cat >conftest.$ac_ext <<_ACEOF
21775#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021776/* confdefs.h. */
21777_ACEOF
21778cat confdefs.h >>conftest.$ac_ext
21779cat >>conftest.$ac_ext <<_ACEOF
21780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021781#include <$ac_header>
21782_ACEOF
21783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21785 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021786 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021787 rm -f conftest.er1
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } >/dev/null; then
21791 if test -s conftest.err; then
21792 ac_cpp_err=$ac_c_preproc_warn_flag
21793 else
21794 ac_cpp_err=
21795 fi
21796else
21797 ac_cpp_err=yes
21798fi
21799if test -z "$ac_cpp_err"; then
21800 ac_header_preproc=yes
21801else
21802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021803sed 's/^/| /' conftest.$ac_ext >&5
21804
John Criswell7a73b802003-06-30 21:59:07 +000021805 ac_header_preproc=no
21806fi
21807rm -f conftest.err conftest.$ac_ext
21808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21809echo "${ECHO_T}$ac_header_preproc" >&6
21810
21811# So? What about this header?
21812case $ac_header_compiler:$ac_header_preproc in
21813 yes:no )
21814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21818 (
21819 cat <<\_ASBOX
21820## ------------------------------------ ##
21821## Report this to bug-autoconf@gnu.org. ##
21822## ------------------------------------ ##
21823_ASBOX
21824 ) |
21825 sed "s/^/$as_me: WARNING: /" >&2
21826 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021827 no:yes )
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21834 (
21835 cat <<\_ASBOX
21836## ------------------------------------ ##
21837## Report this to bug-autoconf@gnu.org. ##
21838## ------------------------------------ ##
21839_ASBOX
21840 ) |
21841 sed "s/^/$as_me: WARNING: /" >&2
21842 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021843esac
21844echo "$as_me:$LINENO: checking for $ac_header" >&5
21845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21846if eval "test \"\${$as_ac_Header+set}\" = set"; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21848else
21849 eval "$as_ac_Header=$ac_header_preproc"
21850fi
21851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21853
21854fi
21855if test `eval echo '${'$as_ac_Header'}'` = yes; then
21856 cat >>confdefs.h <<_ACEOF
21857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21858_ACEOF
21859
21860fi
21861
21862done
21863
21864
21865for ac_func in getpagesize
21866do
21867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21868echo "$as_me:$LINENO: checking for $ac_func" >&5
21869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21870if eval "test \"\${$as_ac_var+set}\" = set"; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872else
21873 cat >conftest.$ac_ext <<_ACEOF
21874#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021875/* confdefs.h. */
21876_ACEOF
21877cat confdefs.h >>conftest.$ac_ext
21878cat >>conftest.$ac_ext <<_ACEOF
21879/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021880/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021881 which can conflict with char $ac_func (); below.
21882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21883 <limits.h> exists even on freestanding compilers. */
21884#ifdef __STDC__
21885# include <limits.h>
21886#else
21887# include <assert.h>
21888#endif
John Criswell7a73b802003-06-30 21:59:07 +000021889/* Override any gcc2 internal prototype to avoid an error. */
21890#ifdef __cplusplus
21891extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021892{
John Criswell7a73b802003-06-30 21:59:07 +000021893#endif
21894/* We use char because int might match the return type of a gcc2
21895 builtin and then its argument prototype would still apply. */
21896char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021897/* The GNU C library defines this for functions which it implements
21898 to always fail with ENOSYS. Some functions are actually named
21899 something starting with __ and the normal name is an alias. */
21900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21901choke me
21902#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021903char (*f) () = $ac_func;
21904#endif
21905#ifdef __cplusplus
21906}
John Criswell7a73b802003-06-30 21:59:07 +000021907#endif
21908
John Criswell0c38eaf2003-09-10 15:17:25 +000021909int
21910main ()
21911{
21912return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021913 ;
21914 return 0;
21915}
21916_ACEOF
21917rm -f conftest.$ac_objext conftest$ac_exeext
21918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21919 (eval $ac_link) 2>&5
21920 ac_status=$?
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } &&
21923 { ac_try='test -s conftest$ac_exeext'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; }; then
21929 eval "$as_ac_var=yes"
21930else
21931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021932sed 's/^/| /' conftest.$ac_ext >&5
21933
John Criswell7a73b802003-06-30 21:59:07 +000021934eval "$as_ac_var=no"
21935fi
21936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21937fi
21938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21939echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21940if test `eval echo '${'$as_ac_var'}'` = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21943_ACEOF
21944
21945fi
21946done
21947
21948echo "$as_me:$LINENO: checking for working mmap" >&5
21949echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21950if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21952else
21953 if test "$cross_compiling" = yes; then
21954 ac_cv_func_mmap_fixed_mapped=no
21955else
21956 cat >conftest.$ac_ext <<_ACEOF
21957#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021958/* confdefs.h. */
21959_ACEOF
21960cat confdefs.h >>conftest.$ac_ext
21961cat >>conftest.$ac_ext <<_ACEOF
21962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021963$ac_includes_default
21964/* malloc might have been renamed as rpl_malloc. */
21965#undef malloc
21966
21967/* Thanks to Mike Haertel and Jim Avera for this test.
21968 Here is a matrix of mmap possibilities:
21969 mmap private not fixed
21970 mmap private fixed at somewhere currently unmapped
21971 mmap private fixed at somewhere already mapped
21972 mmap shared not fixed
21973 mmap shared fixed at somewhere currently unmapped
21974 mmap shared fixed at somewhere already mapped
21975 For private mappings, we should verify that changes cannot be read()
21976 back from the file, nor mmap's back from the file at a different
21977 address. (There have been systems where private was not correctly
21978 implemented like the infamous i386 svr4.0, and systems where the
21979 VM page cache was not coherent with the file system buffer cache
21980 like early versions of FreeBSD and possibly contemporary NetBSD.)
21981 For shared mappings, we should conversely verify that changes get
21982 propagated back to all the places they're supposed to be.
21983
21984 Grep wants private fixed already mapped.
21985 The main things grep needs to know about mmap are:
21986 * does it exist and is it safe to write into the mmap'd area
21987 * how to use it (BSD variants) */
21988
21989#include <fcntl.h>
21990#include <sys/mman.h>
21991
21992#if !STDC_HEADERS && !HAVE_STDLIB_H
21993char *malloc ();
21994#endif
21995
21996/* This mess was copied from the GNU getpagesize.h. */
21997#if !HAVE_GETPAGESIZE
21998/* Assume that all systems that can run configure have sys/param.h. */
21999# if !HAVE_SYS_PARAM_H
22000# define HAVE_SYS_PARAM_H 1
22001# endif
22002
22003# ifdef _SC_PAGESIZE
22004# define getpagesize() sysconf(_SC_PAGESIZE)
22005# else /* no _SC_PAGESIZE */
22006# if HAVE_SYS_PARAM_H
22007# include <sys/param.h>
22008# ifdef EXEC_PAGESIZE
22009# define getpagesize() EXEC_PAGESIZE
22010# else /* no EXEC_PAGESIZE */
22011# ifdef NBPG
22012# define getpagesize() NBPG * CLSIZE
22013# ifndef CLSIZE
22014# define CLSIZE 1
22015# endif /* no CLSIZE */
22016# else /* no NBPG */
22017# ifdef NBPC
22018# define getpagesize() NBPC
22019# else /* no NBPC */
22020# ifdef PAGESIZE
22021# define getpagesize() PAGESIZE
22022# endif /* PAGESIZE */
22023# endif /* no NBPC */
22024# endif /* no NBPG */
22025# endif /* no EXEC_PAGESIZE */
22026# else /* no HAVE_SYS_PARAM_H */
22027# define getpagesize() 8192 /* punt totally */
22028# endif /* no HAVE_SYS_PARAM_H */
22029# endif /* no _SC_PAGESIZE */
22030
22031#endif /* no HAVE_GETPAGESIZE */
22032
22033int
22034main ()
22035{
22036 char *data, *data2, *data3;
22037 int i, pagesize;
22038 int fd;
22039
22040 pagesize = getpagesize ();
22041
22042 /* First, make a file with some known garbage in it. */
22043 data = (char *) malloc (pagesize);
22044 if (!data)
22045 exit (1);
22046 for (i = 0; i < pagesize; ++i)
22047 *(data + i) = rand ();
22048 umask (0);
22049 fd = creat ("conftest.mmap", 0600);
22050 if (fd < 0)
22051 exit (1);
22052 if (write (fd, data, pagesize) != pagesize)
22053 exit (1);
22054 close (fd);
22055
22056 /* Next, try to mmap the file at a fixed address which already has
22057 something else allocated at it. If we can, also make sure that
22058 we see the same garbage. */
22059 fd = open ("conftest.mmap", O_RDWR);
22060 if (fd < 0)
22061 exit (1);
22062 data2 = (char *) malloc (2 * pagesize);
22063 if (!data2)
22064 exit (1);
22065 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22066 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22067 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22068 exit (1);
22069 for (i = 0; i < pagesize; ++i)
22070 if (*(data + i) != *(data2 + i))
22071 exit (1);
22072
22073 /* Finally, make sure that changes to the mapped area do not
22074 percolate back to the file as seen by read(). (This is a bug on
22075 some variants of i386 svr4.0.) */
22076 for (i = 0; i < pagesize; ++i)
22077 *(data2 + i) = *(data2 + i) + 1;
22078 data3 = (char *) malloc (pagesize);
22079 if (!data3)
22080 exit (1);
22081 if (read (fd, data3, pagesize) != pagesize)
22082 exit (1);
22083 for (i = 0; i < pagesize; ++i)
22084 if (*(data + i) != *(data3 + i))
22085 exit (1);
22086 close (fd);
22087 exit (0);
22088}
22089_ACEOF
22090rm -f conftest$ac_exeext
22091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22092 (eval $ac_link) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; }; then
22101 ac_cv_func_mmap_fixed_mapped=yes
22102else
22103 echo "$as_me: program exited with status $ac_status" >&5
22104echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022105sed 's/^/| /' conftest.$ac_ext >&5
22106
John Criswell7a73b802003-06-30 21:59:07 +000022107( exit $ac_status )
22108ac_cv_func_mmap_fixed_mapped=no
22109fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022110rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022111fi
22112fi
22113echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22114echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22115if test $ac_cv_func_mmap_fixed_mapped = yes; then
22116
22117cat >>confdefs.h <<\_ACEOF
22118#define HAVE_MMAP 1
22119_ACEOF
22120
22121fi
22122rm -f conftest.mmap
22123
22124echo "$as_me:$LINENO: checking for mmap of files" >&5
22125echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22126if test "${ac_cv_func_mmap_file+set}" = set; then
22127 echo $ECHO_N "(cached) $ECHO_C" >&6
22128else
22129
22130
22131 ac_ext=c
22132ac_cpp='$CPP $CPPFLAGS'
22133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22135ac_compiler_gnu=$ac_cv_c_compiler_gnu
22136
22137 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022138 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22139See \`config.log' for more details." >&5
22140echo "$as_me: error: cannot run test program while cross compiling
22141See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022142 { (exit 1); exit 1; }; }
22143else
22144 cat >conftest.$ac_ext <<_ACEOF
22145#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022151
22152#ifdef HAVE_SYS_MMAN_H
22153#include <sys/mman.h>
22154#endif
22155
22156#ifdef HAVE_SYS_TYPES_H
22157#include <sys/types.h>
22158#endif
22159
22160#ifdef HAVE_FCNTL_H
22161#include <fcntl.h>
22162#endif
22163
22164 int fd;
22165 int main () {
22166 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22167_ACEOF
22168rm -f conftest$ac_exeext
22169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170 (eval $ac_link) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175 (eval $ac_try) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; }; then
22179 ac_cv_func_mmap_file=yes
22180else
22181 echo "$as_me: program exited with status $ac_status" >&5
22182echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022183sed 's/^/| /' conftest.$ac_ext >&5
22184
John Criswell7a73b802003-06-30 21:59:07 +000022185( exit $ac_status )
22186ac_cv_func_mmap_file=no
22187fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022188rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022189fi
22190 ac_ext=c
22191ac_cpp='$CPP $CPPFLAGS'
22192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22194ac_compiler_gnu=$ac_cv_c_compiler_gnu
22195
22196
22197fi
22198echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22199echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22200if test "$ac_cv_func_mmap_file" = yes; then
22201 cat >>confdefs.h <<\_ACEOF
22202#define HAVE_MMAP_FILE 1
22203_ACEOF
22204
22205 MMAP_FILE=yes
22206
22207fi
22208
22209if test ${ac_cv_func_mmap_file} = "no"
22210then
22211 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22212echo "$as_me: error: mmap() of files required but not found" >&2;}
22213 { (exit 1); exit 1; }; }
22214fi
22215echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22216echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22217if test "${ac_cv_header_mmap_anon+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22219else
22220
22221
22222 ac_ext=c
22223ac_cpp='$CPP $CPPFLAGS'
22224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228 cat >conftest.$ac_ext <<_ACEOF
22229#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022230/* confdefs.h. */
22231_ACEOF
22232cat confdefs.h >>conftest.$ac_ext
22233cat >>conftest.$ac_ext <<_ACEOF
22234/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022235#include <sys/mman.h>
22236 #include <unistd.h>
22237 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022238int
22239main ()
22240{
22241mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22242 ;
22243 return 0;
22244}
22245_ACEOF
22246rm -f conftest.$ac_objext
22247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22248 (eval $ac_compile) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_header_mmap_anon=yes
22259else
22260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022261sed 's/^/| /' conftest.$ac_ext >&5
22262
John Criswell7a73b802003-06-30 21:59:07 +000022263ac_cv_header_mmap_anon=no
22264fi
22265rm -f conftest.$ac_objext conftest.$ac_ext
22266 ac_ext=c
22267ac_cpp='$CPP $CPPFLAGS'
22268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272
22273fi
22274echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22275echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22276if test "$ac_cv_header_mmap_anon" = yes; then
22277 cat >>confdefs.h <<\_ACEOF
22278#define HAVE_MMAP_ANONYMOUS 1
22279_ACEOF
22280
22281fi
22282
22283echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22284echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22285if test "${ac_cv_type_signal+set}" = set; then
22286 echo $ECHO_N "(cached) $ECHO_C" >&6
22287else
22288 cat >conftest.$ac_ext <<_ACEOF
22289#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022290/* confdefs.h. */
22291_ACEOF
22292cat confdefs.h >>conftest.$ac_ext
22293cat >>conftest.$ac_ext <<_ACEOF
22294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022295#include <sys/types.h>
22296#include <signal.h>
22297#ifdef signal
22298# undef signal
22299#endif
22300#ifdef __cplusplus
22301extern "C" void (*signal (int, void (*)(int)))(int);
22302#else
22303void (*signal ()) ();
22304#endif
22305
John Criswell7a73b802003-06-30 21:59:07 +000022306int
22307main ()
22308{
22309int i;
22310 ;
22311 return 0;
22312}
22313_ACEOF
22314rm -f conftest.$ac_objext
22315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316 (eval $ac_compile) 2>&5
22317 ac_status=$?
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } &&
22320 { ac_try='test -s conftest.$ac_objext'
22321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322 (eval $ac_try) 2>&5
22323 ac_status=$?
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); }; }; then
22326 ac_cv_type_signal=void
22327else
22328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022329sed 's/^/| /' conftest.$ac_ext >&5
22330
John Criswell7a73b802003-06-30 21:59:07 +000022331ac_cv_type_signal=int
22332fi
22333rm -f conftest.$ac_objext conftest.$ac_ext
22334fi
22335echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22336echo "${ECHO_T}$ac_cv_type_signal" >&6
22337
22338cat >>confdefs.h <<_ACEOF
22339#define RETSIGTYPE $ac_cv_type_signal
22340_ACEOF
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22353do
22354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22355echo "$as_me:$LINENO: checking for $ac_func" >&5
22356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22357if eval "test \"\${$as_ac_var+set}\" = set"; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22359else
22360 cat >conftest.$ac_ext <<_ACEOF
22361#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022367/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022368 which can conflict with char $ac_func (); below.
22369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370 <limits.h> exists even on freestanding compilers. */
22371#ifdef __STDC__
22372# include <limits.h>
22373#else
22374# include <assert.h>
22375#endif
John Criswell7a73b802003-06-30 21:59:07 +000022376/* Override any gcc2 internal prototype to avoid an error. */
22377#ifdef __cplusplus
22378extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022379{
John Criswell7a73b802003-06-30 21:59:07 +000022380#endif
22381/* We use char because int might match the return type of a gcc2
22382 builtin and then its argument prototype would still apply. */
22383char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022384/* The GNU C library defines this for functions which it implements
22385 to always fail with ENOSYS. Some functions are actually named
22386 something starting with __ and the normal name is an alias. */
22387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22388choke me
22389#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022390char (*f) () = $ac_func;
22391#endif
22392#ifdef __cplusplus
22393}
John Criswell7a73b802003-06-30 21:59:07 +000022394#endif
22395
John Criswell0c38eaf2003-09-10 15:17:25 +000022396int
22397main ()
22398{
22399return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext conftest$ac_exeext
22405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406 (eval $ac_link) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22413 ac_status=$?
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; }; then
22416 eval "$as_ac_var=yes"
22417else
22418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022419sed 's/^/| /' conftest.$ac_ext >&5
22420
John Criswell7a73b802003-06-30 21:59:07 +000022421eval "$as_ac_var=no"
22422fi
22423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22424fi
22425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22427if test `eval echo '${'$as_ac_var'}'` = yes; then
22428 cat >>confdefs.h <<_ACEOF
22429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22430_ACEOF
22431
22432fi
22433done
22434
22435
22436
22437echo "$as_me:$LINENO: checking for mmap" >&5
22438echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22439if test "${ac_cv_func_mmap+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22441else
22442 cat >conftest.$ac_ext <<_ACEOF
22443#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022449/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022450 which can conflict with char mmap (); below.
22451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22452 <limits.h> exists even on freestanding compilers. */
22453#ifdef __STDC__
22454# include <limits.h>
22455#else
22456# include <assert.h>
22457#endif
John Criswell7a73b802003-06-30 21:59:07 +000022458/* Override any gcc2 internal prototype to avoid an error. */
22459#ifdef __cplusplus
22460extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022461{
John Criswell7a73b802003-06-30 21:59:07 +000022462#endif
22463/* We use char because int might match the return type of a gcc2
22464 builtin and then its argument prototype would still apply. */
22465char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022466/* The GNU C library defines this for functions which it implements
22467 to always fail with ENOSYS. Some functions are actually named
22468 something starting with __ and the normal name is an alias. */
22469#if defined (__stub_mmap) || defined (__stub___mmap)
22470choke me
22471#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022472char (*f) () = mmap;
22473#endif
22474#ifdef __cplusplus
22475}
John Criswell7a73b802003-06-30 21:59:07 +000022476#endif
22477
John Criswell0c38eaf2003-09-10 15:17:25 +000022478int
22479main ()
22480{
22481return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022482 ;
22483 return 0;
22484}
22485_ACEOF
22486rm -f conftest.$ac_objext conftest$ac_exeext
22487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22488 (eval $ac_link) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } &&
22492 { ac_try='test -s conftest$ac_exeext'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ac_cv_func_mmap=yes
22499else
22500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022501sed 's/^/| /' conftest.$ac_ext >&5
22502
John Criswell7a73b802003-06-30 21:59:07 +000022503ac_cv_func_mmap=no
22504fi
22505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22506fi
22507echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22508echo "${ECHO_T}$ac_cv_func_mmap" >&6
22509if test $ac_cv_func_mmap = yes; then
22510 :
22511else
22512 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22513echo "$as_me: error: Function mmap() required but not found" >&2;}
22514 { (exit 1); exit 1; }; }
22515fi
22516
22517echo "$as_me:$LINENO: checking for mprotect" >&5
22518echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22519if test "${ac_cv_func_mprotect+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22521else
22522 cat >conftest.$ac_ext <<_ACEOF
22523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022524/* confdefs.h. */
22525_ACEOF
22526cat confdefs.h >>conftest.$ac_ext
22527cat >>conftest.$ac_ext <<_ACEOF
22528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022529/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022530 which can conflict with char mprotect (); below.
22531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22532 <limits.h> exists even on freestanding compilers. */
22533#ifdef __STDC__
22534# include <limits.h>
22535#else
22536# include <assert.h>
22537#endif
John Criswell7a73b802003-06-30 21:59:07 +000022538/* Override any gcc2 internal prototype to avoid an error. */
22539#ifdef __cplusplus
22540extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022541{
John Criswell7a73b802003-06-30 21:59:07 +000022542#endif
22543/* We use char because int might match the return type of a gcc2
22544 builtin and then its argument prototype would still apply. */
22545char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022546/* The GNU C library defines this for functions which it implements
22547 to always fail with ENOSYS. Some functions are actually named
22548 something starting with __ and the normal name is an alias. */
22549#if defined (__stub_mprotect) || defined (__stub___mprotect)
22550choke me
22551#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022552char (*f) () = mprotect;
22553#endif
22554#ifdef __cplusplus
22555}
John Criswell7a73b802003-06-30 21:59:07 +000022556#endif
22557
John Criswell0c38eaf2003-09-10 15:17:25 +000022558int
22559main ()
22560{
22561return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022562 ;
22563 return 0;
22564}
22565_ACEOF
22566rm -f conftest.$ac_objext conftest$ac_exeext
22567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22568 (eval $ac_link) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); } &&
22572 { ac_try='test -s conftest$ac_exeext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 ac_cv_func_mprotect=yes
22579else
22580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022581sed 's/^/| /' conftest.$ac_ext >&5
22582
John Criswell7a73b802003-06-30 21:59:07 +000022583ac_cv_func_mprotect=no
22584fi
22585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22586fi
22587echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22588echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22589if test $ac_cv_func_mprotect = yes; then
22590 :
22591else
22592 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22593echo "$as_me: error: Function mprotect() required but not found" >&2;}
22594 { (exit 1); exit 1; }; }
22595fi
22596
22597
John Criswellb13092b2003-07-22 21:00:24 +000022598
John Criswell7a73b802003-06-30 21:59:07 +000022599# Check whether --enable-purify or --disable-purify was given.
22600if test "${enable_purify+set}" = set; then
22601 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022602
22603else
John Criswellb13092b2003-07-22 21:00:24 +000022604 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022605fi;
John Criswellb13092b2003-07-22 21:00:24 +000022606if test ${enableval} = "no"
22607then
22608 ENABLE_PURIFY=
22609
22610else
22611 ENABLE_PURIFY=ENABLE_PURIFY=1
22612
22613fi
22614
John Criswell7a73b802003-06-30 21:59:07 +000022615# Check whether --enable-optimized or --disable-optimized was given.
22616if test "${enable_optimized+set}" = set; then
22617 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022618
22619else
John Criswellb13092b2003-07-22 21:00:24 +000022620 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022621fi;
John Criswellb13092b2003-07-22 21:00:24 +000022622if test ${enableval} = "no"
22623then
22624 ENABLE_OPTIMIZED=
22625
22626else
22627 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22628
22629fi
22630
John Criswell7a73b802003-06-30 21:59:07 +000022631# Check whether --enable-spec or --disable-spec was given.
22632if test "${enable_spec+set}" = set; then
22633 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022634
22635else
John Criswellb13092b2003-07-22 21:00:24 +000022636 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022637fi;
John Criswellb13092b2003-07-22 21:00:24 +000022638if test ${enableval} = "no"
22639then
22640 USE_SPEC=
22641
22642else
22643 USE_SPEC=USE_SPEC=1
22644
22645fi
22646
John Criswell7a73b802003-06-30 21:59:07 +000022647# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22648if test "${enable_precompiled_bytecode+set}" = set; then
22649 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022650
22651else
John Criswellb13092b2003-07-22 21:00:24 +000022652 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022653fi;
John Criswellb13092b2003-07-22 21:00:24 +000022654if test ${enableval} = "no"
22655then
22656 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022657
John Criswellb13092b2003-07-22 21:00:24 +000022658else
22659 UPB=USE_PRECOMPILED_BYTECODE=1
22660
22661fi
John Criswellf02dbf02003-07-22 20:07:49 +000022662
22663
22664# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22665if test "${enable_llc_diffs+set}" = set; then
22666 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022667
22668else
John Criswellb13092b2003-07-22 21:00:24 +000022669 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022670fi;
John Criswellb13092b2003-07-22 21:00:24 +000022671if test ${enableval} = "no"
22672then
22673 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022674
John Criswellb13092b2003-07-22 21:00:24 +000022675else
22676 DISABLE_LLC_DIFFS=
22677
22678fi
22679
22680# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022681if test "${enable_jit+set}" = set; then
22682 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022683
22684else
John Criswellc78022e2003-07-29 19:11:58 +000022685 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022686fi;
John Criswellb13092b2003-07-22 21:00:24 +000022687
22688if test ${enableval} = "no"
22689then
22690 JIT=
22691
22692else
John Criswellc78022e2003-07-29 19:11:58 +000022693 case $target in
22694 *i*86*)
22695 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022696
John Criswellc78022e2003-07-29 19:11:58 +000022697 ;;
22698 *sparc*)
22699 JIT=TARGET_HAS_JIT=1
22700
22701 ;;
22702 *)
22703 JIT=
22704
22705 ;;
22706 esac
John Criswellb13092b2003-07-22 21:00:24 +000022707fi
John Criswell7a73b802003-06-30 21:59:07 +000022708
22709
John Criswellc78022e2003-07-29 19:11:58 +000022710
John Criswell7a73b802003-06-30 21:59:07 +000022711# Check whether --with-spec or --without-spec was given.
22712if test "${with_spec+set}" = set; then
22713 withval="$with_spec"
22714 SPEC_ROOT=$withval
22715
22716else
22717 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22718
22719fi;
22720
John Criswellc78022e2003-07-29 19:11:58 +000022721
John Criswell7a73b802003-06-30 21:59:07 +000022722# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22723if test "${with_llvmgccdir+set}" = set; then
22724 withval="$with_llvmgccdir"
22725 LLVMGCCDIR=$withval
22726
22727fi;
22728
John Criswellc78022e2003-07-29 19:11:58 +000022729
John Criswell7a73b802003-06-30 21:59:07 +000022730# Check whether --with-bcrepos or --without-bcrepos was given.
22731if test "${with_bcrepos+set}" = set; then
22732 withval="$with_bcrepos"
22733 BCR=$withval
22734
22735else
22736 BCR=/home/vadve/lattner/LLVMPrograms
22737
22738fi;
22739
John Criswellc78022e2003-07-29 19:11:58 +000022740
John Criswell7a73b802003-06-30 21:59:07 +000022741# Check whether --with-papi or --without-papi was given.
22742if test "${with_papi+set}" = set; then
22743 withval="$with_papi"
22744 PAPIDIR=$withval
22745
22746else
John Criswellde00db22003-08-25 16:49:54 +000022747 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022748
22749fi;
22750
John Criswell7a73b802003-06-30 21:59:07 +000022751
22752# Check whether --with-purify or --without-purify was given.
22753if test "${with_purify+set}" = set; then
22754 withval="$with_purify"
22755 PURIFY=$withval
22756
22757fi;
22758
John Criswellde00db22003-08-25 16:49:54 +000022759
John Criswell0c38eaf2003-09-10 15:17:25 +000022760 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022761cat >confcache <<\_ACEOF
22762# This file is a shell script that caches the results of configure
22763# tests run on this system so they can be shared between configure
22764# scripts and configure runs, see configure's option --config-cache.
22765# It is not useful on other systems. If it contains results you don't
22766# want to keep, you may remove or edit it.
22767#
22768# config.status only pays attention to the cache file if you give it
22769# the --recheck option to rerun configure.
22770#
John Criswell0c38eaf2003-09-10 15:17:25 +000022771# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022772# loading this file, other *unset* `ac_cv_foo' will be assigned the
22773# following values.
22774
22775_ACEOF
22776
22777# The following way of writing the cache mishandles newlines in values,
22778# but we know of no workaround that is simple, portable, and efficient.
22779# So, don't put newlines in cache variables' values.
22780# Ultrix sh set writes to stderr and can't be redirected directly,
22781# and sets the high bit in the cache file unless we assign to the vars.
22782{
22783 (set) 2>&1 |
22784 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22785 *ac_space=\ *)
22786 # `set' does not quote correctly, so add quotes (double-quote
22787 # substitution turns \\\\ into \\, and sed turns \\ into \).
22788 sed -n \
22789 "s/'/'\\\\''/g;
22790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22791 ;;
22792 *)
22793 # `set' quotes correctly as required by POSIX, so do not add quotes.
22794 sed -n \
22795 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22796 ;;
22797 esac;
22798} |
22799 sed '
22800 t clear
22801 : clear
22802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22803 t end
22804 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22805 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022806if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022807 if test -w $cache_file; then
22808 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22809 cat confcache >$cache_file
22810 else
22811 echo "not updating unwritable cache $cache_file"
22812 fi
22813fi
22814rm -f confcache
22815
22816test "x$prefix" = xNONE && prefix=$ac_default_prefix
22817# Let make expand exec_prefix.
22818test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22819
22820# VPATH may cause trouble with some makes, so we remove $(srcdir),
22821# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22822# trailing colons and then remove the whole line if VPATH becomes empty
22823# (actually we leave an empty line to preserve line numbers).
22824if test "x$srcdir" = x.; then
22825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22826s/:*\$(srcdir):*/:/;
22827s/:*\${srcdir}:*/:/;
22828s/:*@srcdir@:*/:/;
22829s/^\([^=]*=[ ]*\):*/\1/;
22830s/:*$//;
22831s/^[^=]*=[ ]*$//;
22832}'
22833fi
22834
22835DEFS=-DHAVE_CONFIG_H
22836
John Criswell0c38eaf2003-09-10 15:17:25 +000022837ac_libobjs=
22838ac_ltlibobjs=
22839for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22840 # 1. Remove the extension, and $U if already installed.
22841 ac_i=`echo "$ac_i" |
22842 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22843 # 2. Add them.
22844 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22845 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22846done
22847LIBOBJS=$ac_libobjs
22848
22849LTLIBOBJS=$ac_ltlibobjs
22850
22851
John Criswell7a73b802003-06-30 21:59:07 +000022852
22853: ${CONFIG_STATUS=./config.status}
22854ac_clean_files_save=$ac_clean_files
22855ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22856{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22857echo "$as_me: creating $CONFIG_STATUS" >&6;}
22858cat >$CONFIG_STATUS <<_ACEOF
22859#! $SHELL
22860# Generated by $as_me.
22861# Run this file to recreate the current configuration.
22862# Compiler output produced by configure, useful for debugging
22863# configure, is in config.log if it exists.
22864
22865debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022866ac_cs_recheck=false
22867ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022868SHELL=\${CONFIG_SHELL-$SHELL}
22869_ACEOF
22870
22871cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022872## --------------------- ##
22873## M4sh Initialization. ##
22874## --------------------- ##
22875
22876# Be Bourne compatible
22877if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22878 emulate sh
22879 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022880 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22881 # is contrary to our usage. Disable this feature.
22882 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022883elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22884 set -o posix
22885fi
22886
John Criswell7a73b802003-06-30 21:59:07 +000022887# Support unset when possible.
22888if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22889 as_unset=unset
22890else
22891 as_unset=false
22892fi
22893
John Criswell0c38eaf2003-09-10 15:17:25 +000022894
22895# Work around bugs in pre-3.0 UWIN ksh.
22896$as_unset ENV MAIL MAILPATH
22897PS1='$ '
22898PS2='> '
22899PS4='+ '
22900
22901# NLS nuisances.
22902for as_var in \
22903 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22904 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22905 LC_TELEPHONE LC_TIME
22906do
22907 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22908 eval $as_var=C; export $as_var
22909 else
22910 $as_unset $as_var
22911 fi
22912done
22913
22914# Required to use basename.
22915if expr a : '\(a\)' >/dev/null 2>&1; then
22916 as_expr=expr
22917else
22918 as_expr=false
22919fi
22920
22921if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22922 as_basename=basename
22923else
22924 as_basename=false
22925fi
John Criswell7a73b802003-06-30 21:59:07 +000022926
22927
22928# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022929as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022930$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22931 X"$0" : 'X\(//\)$' \| \
22932 X"$0" : 'X\(/\)$' \| \
22933 . : '\(.\)' 2>/dev/null ||
22934echo X/"$0" |
22935 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22936 /^X\/\(\/\/\)$/{ s//\1/; q; }
22937 /^X\/\(\/\).*/{ s//\1/; q; }
22938 s/.*/./; q'`
22939
John Criswell0c38eaf2003-09-10 15:17:25 +000022940
John Criswell7a73b802003-06-30 21:59:07 +000022941# PATH needs CR, and LINENO needs CR and PATH.
22942# Avoid depending upon Character Ranges.
22943as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22944as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22945as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22946as_cr_digits='0123456789'
22947as_cr_alnum=$as_cr_Letters$as_cr_digits
22948
22949# The user is always right.
22950if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022951 echo "#! /bin/sh" >conf$$.sh
22952 echo "exit 0" >>conf$$.sh
22953 chmod +x conf$$.sh
22954 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022955 PATH_SEPARATOR=';'
22956 else
22957 PATH_SEPARATOR=:
22958 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022959 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022960fi
22961
22962
22963 as_lineno_1=$LINENO
22964 as_lineno_2=$LINENO
22965 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22966 test "x$as_lineno_1" != "x$as_lineno_2" &&
22967 test "x$as_lineno_3" = "x$as_lineno_2" || {
22968 # Find who we are. Look in the path if we contain no path at all
22969 # relative or not.
22970 case $0 in
22971 *[\\/]* ) as_myself=$0 ;;
22972 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22973for as_dir in $PATH
22974do
22975 IFS=$as_save_IFS
22976 test -z "$as_dir" && as_dir=.
22977 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22978done
22979
22980 ;;
22981 esac
22982 # We did not find ourselves, most probably we were run as `sh COMMAND'
22983 # in which case we are not to be found in the path.
22984 if test "x$as_myself" = x; then
22985 as_myself=$0
22986 fi
22987 if test ! -f "$as_myself"; then
22988 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22989echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22990 { (exit 1); exit 1; }; }
22991 fi
22992 case $CONFIG_SHELL in
22993 '')
22994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22995for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22996do
22997 IFS=$as_save_IFS
22998 test -z "$as_dir" && as_dir=.
22999 for as_base in sh bash ksh sh5; do
23000 case $as_dir in
23001 /*)
23002 if ("$as_dir/$as_base" -c '
23003 as_lineno_1=$LINENO
23004 as_lineno_2=$LINENO
23005 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23006 test "x$as_lineno_1" != "x$as_lineno_2" &&
23007 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023008 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23009 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023010 CONFIG_SHELL=$as_dir/$as_base
23011 export CONFIG_SHELL
23012 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23013 fi;;
23014 esac
23015 done
23016done
23017;;
23018 esac
23019
23020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23021 # uniformly replaced by the line number. The first 'sed' inserts a
23022 # line-number line before each line; the second 'sed' does the real
23023 # work. The second script uses 'N' to pair each line-number line
23024 # with the numbered line, and appends trailing '-' during
23025 # substitution so that $LINENO is not a special case at line end.
23026 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23027 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23028 sed '=' <$as_myself |
23029 sed '
23030 N
23031 s,$,-,
23032 : loop
23033 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23034 t loop
23035 s,-$,,
23036 s,^['$as_cr_digits']*\n,,
23037 ' >$as_me.lineno &&
23038 chmod +x $as_me.lineno ||
23039 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23040echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23041 { (exit 1); exit 1; }; }
23042
23043 # Don't try to exec as it changes $[0], causing all sort of problems
23044 # (the dirname of $[0] is not the place where we might find the
23045 # original and so on. Autoconf is especially sensible to this).
23046 . ./$as_me.lineno
23047 # Exit status is that of the last command.
23048 exit
23049}
23050
23051
23052case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23053 *c*,-n*) ECHO_N= ECHO_C='
23054' ECHO_T=' ' ;;
23055 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23056 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23057esac
23058
23059if expr a : '\(a\)' >/dev/null 2>&1; then
23060 as_expr=expr
23061else
23062 as_expr=false
23063fi
23064
23065rm -f conf$$ conf$$.exe conf$$.file
23066echo >conf$$.file
23067if ln -s conf$$.file conf$$ 2>/dev/null; then
23068 # We could just check for DJGPP; but this test a) works b) is more generic
23069 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23070 if test -f conf$$.exe; then
23071 # Don't use ln at all; we don't have any links
23072 as_ln_s='cp -p'
23073 else
23074 as_ln_s='ln -s'
23075 fi
23076elif ln conf$$.file conf$$ 2>/dev/null; then
23077 as_ln_s=ln
23078else
23079 as_ln_s='cp -p'
23080fi
23081rm -f conf$$ conf$$.exe conf$$.file
23082
John Criswell0c38eaf2003-09-10 15:17:25 +000023083if mkdir -p . 2>/dev/null; then
23084 as_mkdir_p=:
23085else
23086 as_mkdir_p=false
23087fi
23088
John Criswell7a73b802003-06-30 21:59:07 +000023089as_executable_p="test -f"
23090
23091# Sed expression to map a string onto a valid CPP name.
23092as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23093
23094# Sed expression to map a string onto a valid variable name.
23095as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23096
23097
23098# IFS
23099# We need space, tab and new line, in precisely that order.
23100as_nl='
23101'
23102IFS=" $as_nl"
23103
23104# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023105$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023106
23107exec 6>&1
23108
23109# Open the log real soon, to keep \$[0] and so on meaningful, and to
23110# report actual input values of CONFIG_FILES etc. instead of their
23111# values after options handling. Logging --version etc. is OK.
23112exec 5>>config.log
23113{
23114 echo
23115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23116## Running $as_me. ##
23117_ASBOX
23118} >&5
23119cat >&5 <<_CSEOF
23120
23121This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023122generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023123
23124 CONFIG_FILES = $CONFIG_FILES
23125 CONFIG_HEADERS = $CONFIG_HEADERS
23126 CONFIG_LINKS = $CONFIG_LINKS
23127 CONFIG_COMMANDS = $CONFIG_COMMANDS
23128 $ $0 $@
23129
23130_CSEOF
23131echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23132echo >&5
23133_ACEOF
23134
23135# Files that config.status was made for.
23136if test -n "$ac_config_files"; then
23137 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23138fi
23139
23140if test -n "$ac_config_headers"; then
23141 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23142fi
23143
23144if test -n "$ac_config_links"; then
23145 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23146fi
23147
23148if test -n "$ac_config_commands"; then
23149 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23150fi
23151
23152cat >>$CONFIG_STATUS <<\_ACEOF
23153
23154ac_cs_usage="\
23155\`$as_me' instantiates files from templates according to the
23156current configuration.
23157
23158Usage: $0 [OPTIONS] [FILE]...
23159
23160 -h, --help print this help, then exit
23161 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023162 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023163 -d, --debug don't remove temporary files
23164 --recheck update $as_me by reconfiguring in the same conditions
23165 --file=FILE[:TEMPLATE]
23166 instantiate the configuration file FILE
23167 --header=FILE[:TEMPLATE]
23168 instantiate the configuration header FILE
23169
23170Configuration files:
23171$config_files
23172
23173Configuration headers:
23174$config_headers
23175
John Criswellc764fbc2003-09-06 15:17:13 +000023176Configuration commands:
23177$config_commands
23178
John Criswell7a73b802003-06-30 21:59:07 +000023179Report bugs to <bug-autoconf@gnu.org>."
23180_ACEOF
23181
23182cat >>$CONFIG_STATUS <<_ACEOF
23183ac_cs_version="\\
23184[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023185configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023186 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23187
23188Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23189Free Software Foundation, Inc.
23190This config.status script is free software; the Free Software Foundation
23191gives unlimited permission to copy, distribute and modify it."
23192srcdir=$srcdir
23193INSTALL="$INSTALL"
23194_ACEOF
23195
23196cat >>$CONFIG_STATUS <<\_ACEOF
23197# If no file are specified by the user, then we need to provide default
23198# value. By we need to know if files were specified by the user.
23199ac_need_defaults=:
23200while test $# != 0
23201do
23202 case $1 in
23203 --*=*)
23204 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23205 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023206 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023207 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023208 -*)
23209 ac_option=$1
23210 ac_optarg=$2
23211 ac_shift=shift
23212 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023213 *) # This is not an option, so the user has probably given explicit
23214 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023215 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023216 ac_need_defaults=false;;
23217 esac
23218
John Criswell0c38eaf2003-09-10 15:17:25 +000023219 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023220 # Handling of the options.
23221_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023222cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23224 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023225 --version | --vers* | -V )
23226 echo "$ac_cs_version"; exit 0 ;;
23227 --he | --h)
23228 # Conflict between --help and --header
23229 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23230Try \`$0 --help' for more information." >&5
23231echo "$as_me: error: ambiguous option: $1
23232Try \`$0 --help' for more information." >&2;}
23233 { (exit 1); exit 1; }; };;
23234 --help | --hel | -h )
23235 echo "$ac_cs_usage"; exit 0 ;;
23236 --debug | --d* | -d )
23237 debug=: ;;
23238 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023239 $ac_shift
23240 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023241 ac_need_defaults=false;;
23242 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023243 $ac_shift
23244 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023245 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23248 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023249
23250 # This is an error.
23251 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23252Try \`$0 --help' for more information." >&5
23253echo "$as_me: error: unrecognized option: $1
23254Try \`$0 --help' for more information." >&2;}
23255 { (exit 1); exit 1; }; } ;;
23256
23257 *) ac_config_targets="$ac_config_targets $1" ;;
23258
23259 esac
23260 shift
23261done
23262
John Criswell0c38eaf2003-09-10 15:17:25 +000023263ac_configure_extra_args=
23264
23265if $ac_cs_silent; then
23266 exec 6>/dev/null
23267 ac_configure_extra_args="$ac_configure_extra_args --silent"
23268fi
23269
23270_ACEOF
23271cat >>$CONFIG_STATUS <<_ACEOF
23272if \$ac_cs_recheck; then
23273 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23274 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23275fi
23276
John Criswell7a73b802003-06-30 21:59:07 +000023277_ACEOF
23278
John Criswellc764fbc2003-09-06 15:17:13 +000023279cat >>$CONFIG_STATUS <<_ACEOF
23280#
23281# INIT-COMMANDS section.
23282#
John Criswell7a73b802003-06-30 21:59:07 +000023283
John Criswellc764fbc2003-09-06 15:17:13 +000023284${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23285${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23286${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23287${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23288${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23289${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23290${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23291${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23292${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23293${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23294${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23295${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23296${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23297${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23298${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23299${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23300${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023301${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23302${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23303${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23304${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23305${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23306${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23307${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23308${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23309${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23310${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23311${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23312${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23313${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23314${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23315${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23316${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23317${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23318${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23319${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23320${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23321${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023322${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
23323${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libexception/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023324${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23325${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23326${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23327${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023328${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023329${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023330${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23331${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023332${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23333${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23334${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23335${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23336${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23337${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23338${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23339${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23340${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23341${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23342${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23343${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23344${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23345${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23346${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023401${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023402${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023408${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023409${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023410${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023415${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023418${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023427${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023441${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023442${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23451${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23452${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23458${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23460
23461_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023462
23463
23464
23465cat >>$CONFIG_STATUS <<\_ACEOF
23466for ac_config_target in $ac_config_targets
23467do
23468 case "$ac_config_target" in
23469 # Handling of arguments.
23470 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023471 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23472 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23473 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23474 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23475 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23476 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23477 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23478 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23479 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23480 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23481 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23482 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23483 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23484 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23485 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23486 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23487 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023488 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23489 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23490 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23491 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23492 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23493 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23494 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23495 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23496 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23497 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23498 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23499 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23500 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23501 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23502 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23503 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23504 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23505 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23506 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23507 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23508 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023509 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
23510 "runtime/GCCLibraries/libexception/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libexception/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023511 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23512 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23513 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23514 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023515 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023516 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023517 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23518 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023519 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23520 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23521 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23522 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23523 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23524 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23525 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23526 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23527 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23528 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23529 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23530 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23531 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23532 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23533 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23534 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23535 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23536 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23537 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23538 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23539 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23540 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023541 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023542 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23543 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23544 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23545 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23546 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23547 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23548 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23549 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23550 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23551 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23552 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23553 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23554 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23555 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23556 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23557 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23558 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23559 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023560 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23561 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023562 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23563 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023564 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23565 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23566 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23567 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23568 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23569 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23570 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23571 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23572 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23573 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23574 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23575 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23576 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23577 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23578 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23579 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23580 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23581 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23582 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23583 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23584 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23585 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23586 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23587 "test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023588 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023589 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23590 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23591 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23592 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23593 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23594 "test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023595 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023596 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023597 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23598 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23599 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23600 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23601 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023602 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23603 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23604 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023605 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23606 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23607 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23608 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23609 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23610 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023611 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023612 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023613 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023614 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23615 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23616 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23617 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23618 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23619 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23620 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23621 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23622 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23623 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23624 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23625 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23626 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswell3b195522003-09-15 14:25:08 +000023627 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023628 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023629 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23630 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23631 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23632 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23633 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23634 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23635 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23636 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23637 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23638 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23639 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23640 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23641 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23642 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23643 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23644 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23645 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23646 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023647 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23648 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23649echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23650 { (exit 1); exit 1; }; };;
23651 esac
23652done
23653
23654# If the user did not use the arguments to specify the items to instantiate,
23655# then the envvar interface is used. Set only those that are not.
23656# We use the long form for the default assignment because of an extremely
23657# bizarre bug on SunOS 4.1.3.
23658if $ac_need_defaults; then
23659 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23660 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023662fi
23663
John Criswell0c38eaf2003-09-10 15:17:25 +000023664# Have a temporary directory for convenience. Make it in the build tree
23665# simply because there is no reason to put it here, and in addition,
23666# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023667# Create a temporary directory, and hook for its removal unless debugging.
23668$debug ||
23669{
23670 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23671 trap '{ (exit 1); exit 1; }' 1 2 13 15
23672}
23673
23674# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023675
John Criswell7a73b802003-06-30 21:59:07 +000023676{
John Criswell0c38eaf2003-09-10 15:17:25 +000023677 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023678 test -n "$tmp" && test -d "$tmp"
23679} ||
23680{
John Criswell0c38eaf2003-09-10 15:17:25 +000023681 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023682 (umask 077 && mkdir $tmp)
23683} ||
23684{
John Criswell0c38eaf2003-09-10 15:17:25 +000023685 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023686 { (exit 1); exit 1; }
23687}
23688
23689_ACEOF
23690
23691cat >>$CONFIG_STATUS <<_ACEOF
23692
23693#
23694# CONFIG_FILES section.
23695#
23696
23697# No need to generate the scripts if there are no CONFIG_FILES.
23698# This happens for instance when ./config.status config.h
23699if test -n "\$CONFIG_FILES"; then
23700 # Protect against being on the right side of a sed subst in config.status.
23701 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23702 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23703s,@SHELL@,$SHELL,;t t
23704s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23705s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23706s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23707s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23708s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23709s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23710s,@exec_prefix@,$exec_prefix,;t t
23711s,@prefix@,$prefix,;t t
23712s,@program_transform_name@,$program_transform_name,;t t
23713s,@bindir@,$bindir,;t t
23714s,@sbindir@,$sbindir,;t t
23715s,@libexecdir@,$libexecdir,;t t
23716s,@datadir@,$datadir,;t t
23717s,@sysconfdir@,$sysconfdir,;t t
23718s,@sharedstatedir@,$sharedstatedir,;t t
23719s,@localstatedir@,$localstatedir,;t t
23720s,@libdir@,$libdir,;t t
23721s,@includedir@,$includedir,;t t
23722s,@oldincludedir@,$oldincludedir,;t t
23723s,@infodir@,$infodir,;t t
23724s,@mandir@,$mandir,;t t
23725s,@build_alias@,$build_alias,;t t
23726s,@host_alias@,$host_alias,;t t
23727s,@target_alias@,$target_alias,;t t
23728s,@DEFS@,$DEFS,;t t
23729s,@ECHO_C@,$ECHO_C,;t t
23730s,@ECHO_N@,$ECHO_N,;t t
23731s,@ECHO_T@,$ECHO_T,;t t
23732s,@LIBS@,$LIBS,;t t
23733s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23734s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23735s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23736s,@build@,$build,;t t
23737s,@build_cpu@,$build_cpu,;t t
23738s,@build_vendor@,$build_vendor,;t t
23739s,@build_os@,$build_os,;t t
23740s,@host@,$host,;t t
23741s,@host_cpu@,$host_cpu,;t t
23742s,@host_vendor@,$host_vendor,;t t
23743s,@host_os@,$host_os,;t t
23744s,@target@,$target,;t t
23745s,@target_cpu@,$target_cpu,;t t
23746s,@target_vendor@,$target_vendor,;t t
23747s,@target_os@,$target_os,;t t
23748s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023749s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023750s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023751s,@CXX@,$CXX,;t t
23752s,@CXXFLAGS@,$CXXFLAGS,;t t
23753s,@LDFLAGS@,$LDFLAGS,;t t
23754s,@CPPFLAGS@,$CPPFLAGS,;t t
23755s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23756s,@EXEEXT@,$EXEEXT,;t t
23757s,@OBJEXT@,$OBJEXT,;t t
23758s,@CC@,$CC,;t t
23759s,@CFLAGS@,$CFLAGS,;t t
23760s,@ac_ct_CC@,$ac_ct_CC,;t t
23761s,@CPP@,$CPP,;t t
23762s,@ifGNUmake@,$ifGNUmake,;t t
23763s,@LEX@,$LEX,;t t
23764s,@LEXLIB@,$LEXLIB,;t t
23765s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23766s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023767s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023768s,@LN_S@,$LN_S,;t t
23769s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023770s,@AR@,$AR,;t t
23771s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023772s,@RANLIB@,$RANLIB,;t t
23773s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23774s,@STRIP@,$STRIP,;t t
23775s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023776s,@CXXCPP@,$CXXCPP,;t t
23777s,@F77@,$F77,;t t
23778s,@FFLAGS@,$FFLAGS,;t t
23779s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023780s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023781s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023782s,@SED@,$SED,;t t
23783s,@RM@,$RM,;t t
23784s,@MKDIR@,$MKDIR,;t t
23785s,@DATE@,$DATE,;t t
23786s,@MV@,$MV,;t t
23787s,@DOT@,$DOT,;t t
23788s,@ETAGS@,$ETAGS,;t t
23789s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023790s,@PYTHON@,$PYTHON,;t t
23791s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023792s,@ALLOCA@,$ALLOCA,;t t
23793s,@LIBOBJS@,$LIBOBJS,;t t
23794s,@MMAP_FILE@,$MMAP_FILE,;t t
23795s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023796s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23797s,@USE_SPEC@,$USE_SPEC,;t t
23798s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023799s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023800s,@JIT@,$JIT,;t t
23801s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23802s,@BCR@,$BCR,;t t
23803s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023804s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023805CEOF
23806
23807_ACEOF
23808
23809 cat >>$CONFIG_STATUS <<\_ACEOF
23810 # Split the substitutions into bite-sized pieces for seds with
23811 # small command number limits, like on Digital OSF/1 and HP-UX.
23812 ac_max_sed_lines=48
23813 ac_sed_frag=1 # Number of current file.
23814 ac_beg=1 # First line for current file.
23815 ac_end=$ac_max_sed_lines # Line after last line for current file.
23816 ac_more_lines=:
23817 ac_sed_cmds=
23818 while $ac_more_lines; do
23819 if test $ac_beg -gt 1; then
23820 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23821 else
23822 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23823 fi
23824 if test ! -s $tmp/subs.frag; then
23825 ac_more_lines=false
23826 else
23827 # The purpose of the label and of the branching condition is to
23828 # speed up the sed processing (if there are no `@' at all, there
23829 # is no need to browse any of the substitutions).
23830 # These are the two extra sed commands mentioned above.
23831 (echo ':t
23832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23833 if test -z "$ac_sed_cmds"; then
23834 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23835 else
23836 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23837 fi
23838 ac_sed_frag=`expr $ac_sed_frag + 1`
23839 ac_beg=$ac_end
23840 ac_end=`expr $ac_end + $ac_max_sed_lines`
23841 fi
23842 done
23843 if test -z "$ac_sed_cmds"; then
23844 ac_sed_cmds=cat
23845 fi
23846fi # test -n "$CONFIG_FILES"
23847
23848_ACEOF
23849cat >>$CONFIG_STATUS <<\_ACEOF
23850for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23851 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23852 case $ac_file in
23853 - | *:- | *:-:* ) # input from stdin
23854 cat >$tmp/stdin
23855 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23857 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23858 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23859 * ) ac_file_in=$ac_file.in ;;
23860 esac
23861
23862 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23863 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23864$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23865 X"$ac_file" : 'X\(//\)[^/]' \| \
23866 X"$ac_file" : 'X\(//\)$' \| \
23867 X"$ac_file" : 'X\(/\)' \| \
23868 . : '\(.\)' 2>/dev/null ||
23869echo X"$ac_file" |
23870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23872 /^X\(\/\/\)$/{ s//\1/; q; }
23873 /^X\(\/\).*/{ s//\1/; q; }
23874 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023875 { if $as_mkdir_p; then
23876 mkdir -p "$ac_dir"
23877 else
23878 as_dir="$ac_dir"
23879 as_dirs=
23880 while test ! -d "$as_dir"; do
23881 as_dirs="$as_dir $as_dirs"
23882 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23884 X"$as_dir" : 'X\(//\)[^/]' \| \
23885 X"$as_dir" : 'X\(//\)$' \| \
23886 X"$as_dir" : 'X\(/\)' \| \
23887 . : '\(.\)' 2>/dev/null ||
23888echo X"$as_dir" |
23889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23891 /^X\(\/\/\)$/{ s//\1/; q; }
23892 /^X\(\/\).*/{ s//\1/; q; }
23893 s/.*/./; q'`
23894 done
23895 test ! -n "$as_dirs" || mkdir $as_dirs
23896 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23897echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23898 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023899
23900 ac_builddir=.
23901
23902if test "$ac_dir" != .; then
23903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23904 # A "../" for each directory in $ac_dir_suffix.
23905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23906else
23907 ac_dir_suffix= ac_top_builddir=
23908fi
23909
23910case $srcdir in
23911 .) # No --srcdir option. We are building in place.
23912 ac_srcdir=.
23913 if test -z "$ac_top_builddir"; then
23914 ac_top_srcdir=.
23915 else
23916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23917 fi ;;
23918 [\\/]* | ?:[\\/]* ) # Absolute path.
23919 ac_srcdir=$srcdir$ac_dir_suffix;
23920 ac_top_srcdir=$srcdir ;;
23921 *) # Relative path.
23922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23924esac
23925# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23926# absolute.
23927ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000023928ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023929ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23930ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23931
23932
23933 case $INSTALL in
23934 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23935 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23936 esac
23937
23938 if test x"$ac_file" != x-; then
23939 { echo "$as_me:$LINENO: creating $ac_file" >&5
23940echo "$as_me: creating $ac_file" >&6;}
23941 rm -f "$ac_file"
23942 fi
23943 # Let's still pretend it is `configure' which instantiates (i.e., don't
23944 # use $as_me), people would be surprised to read:
23945 # /* config.h. Generated by config.status. */
23946 if test x"$ac_file" = x-; then
23947 configure_input=
23948 else
23949 configure_input="$ac_file. "
23950 fi
23951 configure_input=$configure_input"Generated from `echo $ac_file_in |
23952 sed 's,.*/,,'` by configure."
23953
23954 # First look for the input files in the build tree, otherwise in the
23955 # src tree.
23956 ac_file_inputs=`IFS=:
23957 for f in $ac_file_in; do
23958 case $f in
23959 -) echo $tmp/stdin ;;
23960 [\\/$]*)
23961 # Absolute (can't be DOS-style, as IFS=:)
23962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23963echo "$as_me: error: cannot find input file: $f" >&2;}
23964 { (exit 1); exit 1; }; }
23965 echo $f;;
23966 *) # Relative
23967 if test -f "$f"; then
23968 # Build tree
23969 echo $f
23970 elif test -f "$srcdir/$f"; then
23971 # Source tree
23972 echo $srcdir/$f
23973 else
23974 # /dev/null tree
23975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23976echo "$as_me: error: cannot find input file: $f" >&2;}
23977 { (exit 1); exit 1; }; }
23978 fi;;
23979 esac
23980 done` || { (exit 1); exit 1; }
23981_ACEOF
23982cat >>$CONFIG_STATUS <<_ACEOF
23983 sed "$ac_vpsub
23984$extrasub
23985_ACEOF
23986cat >>$CONFIG_STATUS <<\_ACEOF
23987:t
23988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23989s,@configure_input@,$configure_input,;t t
23990s,@srcdir@,$ac_srcdir,;t t
23991s,@abs_srcdir@,$ac_abs_srcdir,;t t
23992s,@top_srcdir@,$ac_top_srcdir,;t t
23993s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23994s,@builddir@,$ac_builddir,;t t
23995s,@abs_builddir@,$ac_abs_builddir,;t t
23996s,@top_builddir@,$ac_top_builddir,;t t
23997s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23998s,@INSTALL@,$ac_INSTALL,;t t
23999" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24000 rm -f $tmp/stdin
24001 if test x"$ac_file" != x-; then
24002 mv $tmp/out $ac_file
24003 else
24004 cat $tmp/out
24005 rm -f $tmp/out
24006 fi
24007
24008done
24009_ACEOF
24010cat >>$CONFIG_STATUS <<\_ACEOF
24011
24012#
24013# CONFIG_HEADER section.
24014#
24015
24016# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24017# NAME is the cpp macro being defined and VALUE is the value it is being given.
24018#
24019# ac_d sets the value in "#define NAME VALUE" lines.
24020ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24021ac_dB='[ ].*$,\1#\2'
24022ac_dC=' '
24023ac_dD=',;t'
24024# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24025ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24026ac_uB='$,\1#\2define\3'
24027ac_uC=' '
24028ac_uD=',;t'
24029
24030for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24032 case $ac_file in
24033 - | *:- | *:-:* ) # input from stdin
24034 cat >$tmp/stdin
24035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24039 * ) ac_file_in=$ac_file.in ;;
24040 esac
24041
24042 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24043echo "$as_me: creating $ac_file" >&6;}
24044
24045 # First look for the input files in the build tree, otherwise in the
24046 # src tree.
24047 ac_file_inputs=`IFS=:
24048 for f in $ac_file_in; do
24049 case $f in
24050 -) echo $tmp/stdin ;;
24051 [\\/$]*)
24052 # Absolute (can't be DOS-style, as IFS=:)
24053 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24054echo "$as_me: error: cannot find input file: $f" >&2;}
24055 { (exit 1); exit 1; }; }
24056 echo $f;;
24057 *) # Relative
24058 if test -f "$f"; then
24059 # Build tree
24060 echo $f
24061 elif test -f "$srcdir/$f"; then
24062 # Source tree
24063 echo $srcdir/$f
24064 else
24065 # /dev/null tree
24066 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24067echo "$as_me: error: cannot find input file: $f" >&2;}
24068 { (exit 1); exit 1; }; }
24069 fi;;
24070 esac
24071 done` || { (exit 1); exit 1; }
24072 # Remove the trailing spaces.
24073 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24074
24075_ACEOF
24076
24077# Transform confdefs.h into two sed scripts, `conftest.defines' and
24078# `conftest.undefs', that substitutes the proper values into
24079# config.h.in to produce config.h. The first handles `#define'
24080# templates, and the second `#undef' templates.
24081# And first: Protect against being on the right side of a sed subst in
24082# config.status. Protect against being in an unquoted here document
24083# in config.status.
24084rm -f conftest.defines conftest.undefs
24085# Using a here document instead of a string reduces the quoting nightmare.
24086# Putting comments in sed scripts is not portable.
24087#
24088# `end' is used to avoid that the second main sed command (meant for
24089# 0-ary CPP macros) applies to n-ary macro definitions.
24090# See the Autoconf documentation for `clear'.
24091cat >confdef2sed.sed <<\_ACEOF
24092s/[\\&,]/\\&/g
24093s,[\\$`],\\&,g
24094t clear
24095: clear
24096s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24097t end
24098s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24099: end
24100_ACEOF
24101# If some macros were called several times there might be several times
24102# the same #defines, which is useless. Nevertheless, we may not want to
24103# sort them, since we want the *last* AC-DEFINE to be honored.
24104uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24105sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24106rm -f confdef2sed.sed
24107
24108# This sed command replaces #undef with comments. This is necessary, for
24109# example, in the case of _POSIX_SOURCE, which is predefined and required
24110# on some systems where configure will not decide to define it.
24111cat >>conftest.undefs <<\_ACEOF
24112s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24113_ACEOF
24114
24115# Break up conftest.defines because some shells have a limit on the size
24116# of here documents, and old seds have small limits too (100 cmds).
24117echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024118echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024119echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24120echo ' :' >>$CONFIG_STATUS
24121rm -f conftest.tail
24122while grep . conftest.defines >/dev/null
24123do
24124 # Write a limited-size here document to $tmp/defines.sed.
24125 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24126 # Speed up: don't consider the non `#define' lines.
24127 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24128 # Work around the forget-to-reset-the-flag bug.
24129 echo 't clr' >>$CONFIG_STATUS
24130 echo ': clr' >>$CONFIG_STATUS
24131 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24132 echo 'CEOF
24133 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24134 rm -f $tmp/in
24135 mv $tmp/out $tmp/in
24136' >>$CONFIG_STATUS
24137 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24138 rm -f conftest.defines
24139 mv conftest.tail conftest.defines
24140done
24141rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024142echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024143echo >>$CONFIG_STATUS
24144
24145# Break up conftest.undefs because some shells have a limit on the size
24146# of here documents, and old seds have small limits too (100 cmds).
24147echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24148rm -f conftest.tail
24149while grep . conftest.undefs >/dev/null
24150do
24151 # Write a limited-size here document to $tmp/undefs.sed.
24152 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24153 # Speed up: don't consider the non `#undef'
24154 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24155 # Work around the forget-to-reset-the-flag bug.
24156 echo 't clr' >>$CONFIG_STATUS
24157 echo ': clr' >>$CONFIG_STATUS
24158 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24159 echo 'CEOF
24160 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24161 rm -f $tmp/in
24162 mv $tmp/out $tmp/in
24163' >>$CONFIG_STATUS
24164 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24165 rm -f conftest.undefs
24166 mv conftest.tail conftest.undefs
24167done
24168rm -f conftest.undefs
24169
24170cat >>$CONFIG_STATUS <<\_ACEOF
24171 # Let's still pretend it is `configure' which instantiates (i.e., don't
24172 # use $as_me), people would be surprised to read:
24173 # /* config.h. Generated by config.status. */
24174 if test x"$ac_file" = x-; then
24175 echo "/* Generated by configure. */" >$tmp/config.h
24176 else
24177 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24178 fi
24179 cat $tmp/in >>$tmp/config.h
24180 rm -f $tmp/in
24181 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024182 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024183 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24184echo "$as_me: $ac_file is unchanged" >&6;}
24185 else
24186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24187$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24188 X"$ac_file" : 'X\(//\)[^/]' \| \
24189 X"$ac_file" : 'X\(//\)$' \| \
24190 X"$ac_file" : 'X\(/\)' \| \
24191 . : '\(.\)' 2>/dev/null ||
24192echo X"$ac_file" |
24193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24195 /^X\(\/\/\)$/{ s//\1/; q; }
24196 /^X\(\/\).*/{ s//\1/; q; }
24197 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024198 { if $as_mkdir_p; then
24199 mkdir -p "$ac_dir"
24200 else
24201 as_dir="$ac_dir"
24202 as_dirs=
24203 while test ! -d "$as_dir"; do
24204 as_dirs="$as_dir $as_dirs"
24205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24207 X"$as_dir" : 'X\(//\)[^/]' \| \
24208 X"$as_dir" : 'X\(//\)$' \| \
24209 X"$as_dir" : 'X\(/\)' \| \
24210 . : '\(.\)' 2>/dev/null ||
24211echo X"$as_dir" |
24212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24214 /^X\(\/\/\)$/{ s//\1/; q; }
24215 /^X\(\/\).*/{ s//\1/; q; }
24216 s/.*/./; q'`
24217 done
24218 test ! -n "$as_dirs" || mkdir $as_dirs
24219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24221 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024222
24223 rm -f $ac_file
24224 mv $tmp/config.h $ac_file
24225 fi
24226 else
24227 cat $tmp/config.h
24228 rm -f $tmp/config.h
24229 fi
24230done
24231_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024232cat >>$CONFIG_STATUS <<\_ACEOF
24233
24234#
24235# CONFIG_COMMANDS section.
24236#
24237for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24238 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24239 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24240 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24241$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24242 X"$ac_dest" : 'X\(//\)[^/]' \| \
24243 X"$ac_dest" : 'X\(//\)$' \| \
24244 X"$ac_dest" : 'X\(/\)' \| \
24245 . : '\(.\)' 2>/dev/null ||
24246echo X"$ac_dest" |
24247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24249 /^X\(\/\/\)$/{ s//\1/; q; }
24250 /^X\(\/\).*/{ s//\1/; q; }
24251 s/.*/./; q'`
24252 ac_builddir=.
24253
24254if test "$ac_dir" != .; then
24255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24256 # A "../" for each directory in $ac_dir_suffix.
24257 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24258else
24259 ac_dir_suffix= ac_top_builddir=
24260fi
24261
24262case $srcdir in
24263 .) # No --srcdir option. We are building in place.
24264 ac_srcdir=.
24265 if test -z "$ac_top_builddir"; then
24266 ac_top_srcdir=.
24267 else
24268 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24269 fi ;;
24270 [\\/]* | ?:[\\/]* ) # Absolute path.
24271 ac_srcdir=$srcdir$ac_dir_suffix;
24272 ac_top_srcdir=$srcdir ;;
24273 *) # Relative path.
24274 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24275 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24276esac
24277# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24278# absolute.
24279ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024280ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024281ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24282ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24283
24284
24285 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24286echo "$as_me: executing $ac_dest commands" >&6;}
24287 case $ac_dest in
24288 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24289 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24290 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24291 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24292 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24293 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24294 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24295 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24296 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24297 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24298 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24299 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24300 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24301 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24302 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24303 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24304 lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024305 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24306 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24307 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24308 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24309 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24310 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24311 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24312 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24313 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24314 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24315 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24316 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24317 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24318 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24319 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24320 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24321 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24322 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24323 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24324 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24325 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024326 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
24327 runtime/GCCLibraries/libexception/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libexception/Makefile runtime/GCCLibraries/libexception/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024328 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24329 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24330 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24331 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024332 runtime/GCCLibraries/libtermcap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libtermcap/Makefile runtime/GCCLibraries/libtermcap/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024333 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000024334 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24335 runtime/GCCLibraries/libutil/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutil/Makefile runtime/GCCLibraries/libutil/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024336 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24337 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24338 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24339 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24340 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24341 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24342 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24343 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24344 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24345 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24346 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24347 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24348 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24349 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24350 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24351 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24352 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24353 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24354 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24355 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24356 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24357 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 +000024358 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 +000024359 test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
24360 test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
24361 test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
24362 test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
24363 test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
24364 test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
24365 test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
24366 test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
24367 test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
24368 test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
24369 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
24370 test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
24371 test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
24372 test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
24373 test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
24374 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24375 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24376 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024377 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24378 test/Programs/MultiSource/Applications/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Burg/Makefile test/Programs/MultiSource/Applications/Burg/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024379 test/Programs/MultiSource/Applications/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/aha/Makefile test/Programs/MultiSource/Applications/aha/Makefile ;;
24380 test/Programs/MultiSource/Applications/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/sgefa/Makefile test/Programs/MultiSource/Applications/sgefa/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024381 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24382 test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile ;;
24383 test/Programs/MultiSource/Benchmarks/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/Makefile test/Programs/MultiSource/Benchmarks/McCat/Makefile ;;
24384 test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile ;;
24385 test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile ;;
24386 test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile ;;
24387 test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile ;;
24388 test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile ;;
24389 test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile ;;
24390 test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile ;;
24391 test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile ;;
24392 test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile ;;
24393 test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile ;;
24394 test/Programs/MultiSource/Benchmarks/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/Makefile test/Programs/MultiSource/Benchmarks/Olden/Makefile ;;
24395 test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile ;;
24396 test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile ;;
24397 test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile ;;
24398 test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/health/Makefile test/Programs/MultiSource/Benchmarks/Olden/health/Makefile ;;
24399 test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile ;;
24400 test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile ;;
24401 test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/power/Makefile test/Programs/MultiSource/Benchmarks/Olden/power/Makefile ;;
24402 test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile ;;
24403 test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile ;;
24404 test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile ;;
John Criswell39e83892003-09-12 16:36:17 +000024405 test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024406 test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile ;;
24407 test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile ;;
24408 test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile ;;
24409 test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile ;;
24410 test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile ;;
24411 test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024412 test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024413 test/Programs/MultiSource/Benchmarks/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/sim/Makefile test/Programs/MultiSource/Benchmarks/sim/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024414 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24415 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24416 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24417 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24418 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024419 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24420 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24421 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024422 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24423 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24424 test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile ;;
24425 test/Programs/SingleSource/Benchmarks/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Shootout/Makefile test/Programs/SingleSource/Benchmarks/Shootout/Makefile ;;
24426 test/Programs/SingleSource/Benchmarks/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Stanford/Makefile test/Programs/SingleSource/Benchmarks/Stanford/Makefile ;;
24427 test/Programs/SingleSource/Benchmarks/Misc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Misc/Makefile test/Programs/SingleSource/Benchmarks/Misc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024428 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024429 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
John Criswell0afe8252003-09-11 20:53:48 +000024430 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024431 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24432 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
24433 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
24434 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
24435 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
24436 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24437 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24438 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
24439 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
24440 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
24441 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
24442 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
24443 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
24444 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024445 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024446 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
24447 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24448 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24449 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24450 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24451 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24452 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24453 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24454 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24455 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24456 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24457 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24458 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24459 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24460 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24461 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24462 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24463 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24464 esac
24465done
24466_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024467
24468cat >>$CONFIG_STATUS <<\_ACEOF
24469
24470{ (exit 0); exit 0; }
24471_ACEOF
24472chmod +x $CONFIG_STATUS
24473ac_clean_files=$ac_clean_files_save
24474
24475
24476# configure is writing to config.log, and then calls config.status.
24477# config.status does its own redirection, appending to config.log.
24478# Unfortunately, on DOS this fails, as config.log is still kept open
24479# by configure, so config.status won't be able to write to it; its
24480# output is simply discarded. So we exec the FD to /dev/null,
24481# effectively closing config.log, so it can be properly (re)opened and
24482# appended to by config.status. When coming back to configure, we
24483# need to make the FD available again.
24484if test "$no_create" != yes; then
24485 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024486 ac_config_status_args=
24487 test "$silent" = yes &&
24488 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024489 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024491 exec 5>>config.log
24492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24493 # would make configure fail if this is the last instruction.
24494 $ac_cs_success || { (exit 1); exit 1; }
24495fi
24496