blob: 41ef65633c383495dcdc316690d0d67182647094 [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 Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell0c38eaf2003-09-10 15:17:25 +00001522 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001528
1529
John Criswell0c38eaf2003-09-10 15:17:25 +00001530 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001534
1535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001537
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell613758d2003-09-11 18:03:50 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell613758d2003-09-11 18:03:50 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell08acb9b2003-09-16 02:12:45 +00001677 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell613758d2003-09-11 18:03:50 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell48e3cb92003-09-12 16:31:43 +00001791 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell48e3cb92003-09-12 16:31:43 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell39e83892003-09-12 16:36:17 +00001797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
John Criswell48e3cb92003-09-12 16:31:43 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell48e3cb92003-09-12 16:31:43 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001813
1814
John Criswell48e3cb92003-09-12 16:31:43 +00001815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell39e83892003-09-12 16:36:17 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001882
1883
John Criswell48e3cb92003-09-12 16:31:43 +00001884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001885
1886
John Criswell48e3cb92003-09-12 16:31:43 +00001887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell48e3cb92003-09-12 16:31:43 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell0c38eaf2003-09-10 15:17:25 +00001902 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell0c38eaf2003-09-10 15:17:25 +00001905 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell0c38eaf2003-09-10 15:17:25 +00001908 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell0c38eaf2003-09-10 15:17:25 +00001911 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell0c38eaf2003-09-10 15:17:25 +00001914 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswellffaaf3b2003-09-10 18:38:44 +00001926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswell0c38eaf2003-09-10 15:17:25 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001948
1949
John Criswell0afe8252003-09-11 20:53:48 +00001950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
John Criswell0c38eaf2003-09-10 15:17:25 +00001953 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001954
1955
John Criswell0c38eaf2003-09-10 15:17:25 +00001956 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001966
1967
John Criswell0c38eaf2003-09-10 15:17:25 +00001968 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001969
1970
John Criswell0c38eaf2003-09-10 15:17:25 +00001971 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001972
1973
John Criswell0c38eaf2003-09-10 15:17:25 +00001974 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001975
1976
John Criswellddb7b4e2003-09-16 15:54:19 +00001977 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
Chris Lattnerebd70302003-09-13 03:29:53 +00001980 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1981
1982
John Criswellddb7b4e2003-09-16 15:54:19 +00001983 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
John Criswellddb7b4e2003-09-16 15:54:19 +00001989 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1990
1991
1992 ac_config_commands="$ac_config_commands tools/opt/Makefile"
1993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswell0c38eaf2003-09-10 15:17:25 +00002004 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswell0c38eaf2003-09-10 15:17:25 +00002010 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell392aaa32003-07-22 19:18:09 +00002046
2047
John Criswell7a73b802003-06-30 21:59:07 +00002048# Find a good install program. We prefer a C program (faster),
2049# so one script is as good as another. But avoid the broken or
2050# incompatible versions:
2051# SysV /etc/install, /usr/sbin/install
2052# SunOS /usr/etc/install
2053# IRIX /sbin/install
2054# AIX /bin/install
2055# AmigaOS /C/install, which installs bootblocks on floppy discs
2056# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2057# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2058# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2059# ./install, which can be erroneously created by make from ./install.sh.
2060echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2061echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2062if test -z "$INSTALL"; then
2063if test "${ac_cv_path_install+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 # Account for people who put trailing slashes in PATH elements.
2072case $as_dir/ in
2073 ./ | .// | /cC/* | \
2074 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2075 /usr/ucb/* ) ;;
2076 *)
2077 # OSF1 and SCO ODT 3.0 have their own names for install.
2078 # Don't use installbsd from OSF since it installs stuff as root
2079 # by default.
2080 for ac_prog in ginstall scoinst install; do
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2083 if test $ac_prog = install &&
2084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085 # AIX install. It has an incompatible calling convention.
2086 :
2087 elif test $ac_prog = install &&
2088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089 # program-specific install script used by HP pwplus--don't use.
2090 :
2091 else
2092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2093 break 3
2094 fi
2095 fi
2096 done
2097 done
2098 ;;
2099esac
2100done
2101
2102
2103fi
2104 if test "${ac_cv_path_install+set}" = set; then
2105 INSTALL=$ac_cv_path_install
2106 else
2107 # As a last resort, use the slow shell script. We don't cache a
2108 # path for INSTALL within a source directory, because that will
2109 # break other packages using the cache if that directory is
2110 # removed, or if the path is relative.
2111 INSTALL=$ac_install_sh
2112 fi
2113fi
2114echo "$as_me:$LINENO: result: $INSTALL" >&5
2115echo "${ECHO_T}$INSTALL" >&6
2116
2117# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2118# It thinks the first close brace ends the variable substitution.
2119test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2120
2121test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2122
2123test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2124
2125
2126# Make sure we can run config.sub.
2127$ac_config_sub sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2129echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2130 { (exit 1); exit 1; }; }
2131
2132echo "$as_me:$LINENO: checking build system type" >&5
2133echo $ECHO_N "checking build system type... $ECHO_C" >&6
2134if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137 ac_cv_build_alias=$build_alias
2138test -z "$ac_cv_build_alias" &&
2139 ac_cv_build_alias=`$ac_config_guess`
2140test -z "$ac_cv_build_alias" &&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2146echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2148
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151echo "${ECHO_T}$ac_cv_build" >&6
2152build=$ac_cv_build
2153build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2154build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2155build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2156
2157
2158echo "$as_me:$LINENO: checking host system type" >&5
2159echo $ECHO_N "checking host system type... $ECHO_C" >&6
2160if test "${ac_cv_host+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 ac_cv_host_alias=$host_alias
2164test -z "$ac_cv_host_alias" &&
2165 ac_cv_host_alias=$ac_cv_build_alias
2166ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2167 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2168echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2170
2171fi
2172echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2173echo "${ECHO_T}$ac_cv_host" >&6
2174host=$ac_cv_host
2175host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2176host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2177host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2178
2179
2180echo "$as_me:$LINENO: checking target system type" >&5
2181echo $ECHO_N "checking target system type... $ECHO_C" >&6
2182if test "${ac_cv_target+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 ac_cv_target_alias=$target_alias
2186test "x$ac_cv_target_alias" = "x" &&
2187 ac_cv_target_alias=$ac_cv_host_alias
2188ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2189 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2190echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2191 { (exit 1); exit 1; }; }
2192
2193fi
2194echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195echo "${ECHO_T}$ac_cv_target" >&6
2196target=$ac_cv_target
2197target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2198target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2199target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2200
2201
2202# The aliases save the names the user supplied, while $host etc.
2203# will get canonicalized.
2204test -n "$target_alias" &&
2205 test "$program_prefix$program_suffix$program_transform_name" = \
2206 NONENONEs,x,x, &&
2207 program_prefix=${target_alias}-
2208
2209case $build in
2210 *i*86*) OS=Linux
2211
John Criswellf02dbf02003-07-22 20:07:49 +00002212 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214 ;;
2215
2216 *sparc*) OS=SunOS
2217
2218 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2219
2220 ;;
2221
2222 *) OS=Unknown
2223
2224 ;;
2225esac
2226
2227case $target in
2228 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2229
2230 ;;
2231esac
2232
John Criswell76595452003-07-01 22:07:39 +00002233case $target in
2234 *i*86*) ARCH=x86
2235
2236 ;;
2237 *sparc*solaris*) ARCH=Sparc
2238
2239 ;;
2240esac
2241
John Criswell7a73b802003-06-30 21:59:07 +00002242
2243ac_ext=cc
2244ac_cpp='$CXXCPP $CPPFLAGS'
2245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2248if test -n "$ac_tool_prefix"; then
2249 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2250 do
2251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2253echo "$as_me:$LINENO: checking for $ac_word" >&5
2254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255if test "${ac_cv_prog_CXX+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258 if test -n "$CXX"; then
2259 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2260else
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2271 fi
2272done
2273done
2274
2275fi
2276fi
2277CXX=$ac_cv_prog_CXX
2278if test -n "$CXX"; then
2279 echo "$as_me:$LINENO: result: $CXX" >&5
2280echo "${ECHO_T}$CXX" >&6
2281else
2282 echo "$as_me:$LINENO: result: no" >&5
2283echo "${ECHO_T}no" >&6
2284fi
2285
2286 test -n "$CXX" && break
2287 done
2288fi
2289if test -z "$CXX"; then
2290 ac_ct_CXX=$CXX
2291 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2292do
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294set dummy $ac_prog; ac_word=$2
2295echo "$as_me:$LINENO: checking for $ac_word" >&5
2296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300 if test -n "$ac_ct_CXX"; then
2301 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2302else
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310 ac_cv_prog_ac_ct_CXX="$ac_prog"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 break 2
2313 fi
2314done
2315done
2316
2317fi
2318fi
2319ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2320if test -n "$ac_ct_CXX"; then
2321 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2322echo "${ECHO_T}$ac_ct_CXX" >&6
2323else
2324 echo "$as_me:$LINENO: result: no" >&5
2325echo "${ECHO_T}no" >&6
2326fi
2327
2328 test -n "$ac_ct_CXX" && break
2329done
2330test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2331
2332 CXX=$ac_ct_CXX
2333fi
2334
2335
2336# Provide some information about the compiler.
2337echo "$as_me:$LINENO:" \
2338 "checking for C++ compiler version" >&5
2339ac_compiler=`set X $ac_compile; echo $2`
2340{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2341 (eval $ac_compiler --version </dev/null >&5) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }
2345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2346 (eval $ac_compiler -v </dev/null >&5) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }
2350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2351 (eval $ac_compiler -V </dev/null >&5) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }
2355
2356cat >conftest.$ac_ext <<_ACEOF
2357#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002358/* confdefs.h. */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002363
John Criswell7a73b802003-06-30 21:59:07 +00002364int
2365main ()
2366{
2367
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002373ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002374# Try to create an executable without -o first, disregard a.out.
2375# It will help us diagnose broken compilers, and finding out an intuition
2376# of exeext.
2377echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2378echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2379ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2380if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2381 (eval $ac_link_default) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; then
2385 # Find the output, starting from the most likely. This scheme is
2386# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2387# resort.
2388
2389# Be careful to initialize this variable, since it used to be cached.
2390# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2391ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002392# b.out is created by i960 compilers.
2393for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2394do
2395 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002396 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2398 ;;
2399 conftest.$ac_ext )
2400 # This is the source file.
2401 ;;
2402 [ab].out )
2403 # We found the default executable, but exeext='' is most
2404 # certainly right.
2405 break;;
2406 *.* )
2407 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408 # FIXME: I believe we export ac_cv_exeext for Libtool,
2409 # but it would be cool to find out if it's true. Does anybody
2410 # maintain Libtool? --akim.
2411 export ac_cv_exeext
2412 break;;
2413 * )
2414 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002415 esac
2416done
2417else
2418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: C++ compiler cannot create executables
2424See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002425 { (exit 77); exit 77; }; }
2426fi
2427
2428ac_exeext=$ac_cv_exeext
2429echo "$as_me:$LINENO: result: $ac_file" >&5
2430echo "${ECHO_T}$ac_file" >&6
2431
2432# Check the compiler produces executables we can run. If not, either
2433# the compiler is broken, or we cross compile.
2434echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2435echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2436# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2437# If not cross compiling, check that we can run a simple program.
2438if test "$cross_compiling" != yes; then
2439 if { ac_try='./$ac_file'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; }; then
2445 cross_compiling=no
2446 else
2447 if test "$cross_compiling" = maybe; then
2448 cross_compiling=yes
2449 else
2450 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002451If you meant to cross compile, use \`--host'.
2452See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002453echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002454If you meant to cross compile, use \`--host'.
2455See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002456 { (exit 1); exit 1; }; }
2457 fi
2458 fi
2459fi
2460echo "$as_me:$LINENO: result: yes" >&5
2461echo "${ECHO_T}yes" >&6
2462
John Criswell0c38eaf2003-09-10 15:17:25 +00002463rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002464ac_clean_files=$ac_clean_files_save
2465# Check the compiler produces executables we can run. If not, either
2466# the compiler is broken, or we cross compile.
2467echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2468echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2469echo "$as_me:$LINENO: result: $cross_compiling" >&5
2470echo "${ECHO_T}$cross_compiling" >&6
2471
2472echo "$as_me:$LINENO: checking for suffix of executables" >&5
2473echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2475 (eval $ac_link) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; then
2479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2480# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2481# work properly (i.e., refer to `conftest.exe'), while it won't with
2482# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002483for ac_file in conftest.exe conftest conftest.*; do
2484 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002485 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2488 export ac_cv_exeext
2489 break;;
2490 * ) break;;
2491 esac
2492done
2493else
John Criswell0c38eaf2003-09-10 15:17:25 +00002494 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2495See \`config.log' for more details." >&5
2496echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2497See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002498 { (exit 1); exit 1; }; }
2499fi
2500
2501rm -f conftest$ac_cv_exeext
2502echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2503echo "${ECHO_T}$ac_cv_exeext" >&6
2504
2505rm -f conftest.$ac_ext
2506EXEEXT=$ac_cv_exeext
2507ac_exeext=$EXEEXT
2508echo "$as_me:$LINENO: checking for suffix of object files" >&5
2509echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2510if test "${ac_cv_objext+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 cat >conftest.$ac_ext <<_ACEOF
2514#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002515/* confdefs.h. */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002520
John Criswell7a73b802003-06-30 21:59:07 +00002521int
2522main ()
2523{
2524
2525 ;
2526 return 0;
2527}
2528_ACEOF
2529rm -f conftest.o conftest.obj
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531 (eval $ac_compile) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2536 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002538 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2539 break;;
2540 esac
2541done
2542else
2543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2547See \`config.log' for more details." >&5
2548echo "$as_me: error: cannot compute suffix of object files: cannot compile
2549See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002550 { (exit 1); exit 1; }; }
2551fi
2552
2553rm -f conftest.$ac_cv_objext conftest.$ac_ext
2554fi
2555echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2556echo "${ECHO_T}$ac_cv_objext" >&6
2557OBJEXT=$ac_cv_objext
2558ac_objext=$OBJEXT
2559echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2560echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2561if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564 cat >conftest.$ac_ext <<_ACEOF
2565#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002571
John Criswell7a73b802003-06-30 21:59:07 +00002572int
2573main ()
2574{
2575#ifndef __GNUC__
2576 choke me
2577#endif
2578
2579 ;
2580 return 0;
2581}
2582_ACEOF
2583rm -f conftest.$ac_objext
2584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_compiler_gnu=yes
2596else
2597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002598sed 's/^/| /' conftest.$ac_ext >&5
2599
John Criswell7a73b802003-06-30 21:59:07 +00002600ac_compiler_gnu=no
2601fi
2602rm -f conftest.$ac_objext conftest.$ac_ext
2603ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2604
2605fi
2606echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2607echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2608GXX=`test $ac_compiler_gnu = yes && echo yes`
2609ac_test_CXXFLAGS=${CXXFLAGS+set}
2610ac_save_CXXFLAGS=$CXXFLAGS
2611CXXFLAGS="-g"
2612echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2613echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2614if test "${ac_cv_prog_cxx_g+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 cat >conftest.$ac_ext <<_ACEOF
2618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002624
John Criswell7a73b802003-06-30 21:59:07 +00002625int
2626main ()
2627{
2628
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635 (eval $ac_compile) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -s conftest.$ac_objext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_prog_cxx_g=yes
2646else
2647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002648sed 's/^/| /' conftest.$ac_ext >&5
2649
John Criswell7a73b802003-06-30 21:59:07 +00002650ac_cv_prog_cxx_g=no
2651fi
2652rm -f conftest.$ac_objext conftest.$ac_ext
2653fi
2654echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2655echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2656if test "$ac_test_CXXFLAGS" = set; then
2657 CXXFLAGS=$ac_save_CXXFLAGS
2658elif test $ac_cv_prog_cxx_g = yes; then
2659 if test "$GXX" = yes; then
2660 CXXFLAGS="-g -O2"
2661 else
2662 CXXFLAGS="-g"
2663 fi
2664else
2665 if test "$GXX" = yes; then
2666 CXXFLAGS="-O2"
2667 else
2668 CXXFLAGS=
2669 fi
2670fi
2671for ac_declaration in \
2672 ''\
2673 '#include <stdlib.h>' \
2674 'extern "C" void std::exit (int) throw (); using std::exit;' \
2675 'extern "C" void std::exit (int); using std::exit;' \
2676 'extern "C" void exit (int) throw ();' \
2677 'extern "C" void exit (int);' \
2678 'void exit (int);'
2679do
2680 cat >conftest.$ac_ext <<_ACEOF
2681#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002682/* confdefs.h. */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002687#include <stdlib.h>
2688$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002689int
2690main ()
2691{
2692exit (42);
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697rm -f conftest.$ac_objext
2698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 :
2710else
2711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002712sed 's/^/| /' conftest.$ac_ext >&5
2713
John Criswell7a73b802003-06-30 21:59:07 +00002714continue
2715fi
2716rm -f conftest.$ac_objext conftest.$ac_ext
2717 cat >conftest.$ac_ext <<_ACEOF
2718#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002719/* confdefs.h. */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002724$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002725int
2726main ()
2727{
2728exit (42);
2729 ;
2730 return 0;
2731}
2732_ACEOF
2733rm -f conftest.$ac_objext
2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 break
2746else
2747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002748sed 's/^/| /' conftest.$ac_ext >&5
2749
John Criswell7a73b802003-06-30 21:59:07 +00002750fi
2751rm -f conftest.$ac_objext conftest.$ac_ext
2752done
2753rm -f conftest*
2754if test -n "$ac_declaration"; then
2755 echo '#ifdef __cplusplus' >>confdefs.h
2756 echo $ac_declaration >>confdefs.h
2757 echo '#endif' >>confdefs.h
2758fi
2759
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766ac_ext=c
2767ac_cpp='$CPP $CPPFLAGS'
2768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771if test -n "$ac_tool_prefix"; then
2772 for ac_prog in gcc
2773 do
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776echo "$as_me:$LINENO: checking for $ac_word" >&5
2777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796done
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802 echo "$as_me:$LINENO: result: $CC" >&5
2803echo "${ECHO_T}$CC" >&6
2804else
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807fi
2808
2809 test -n "$CC" && break
2810 done
2811fi
2812if test -z "$CC"; then
2813 ac_ct_CC=$CC
2814 for ac_prog in gcc
2815do
2816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2817set dummy $ac_prog; ac_word=$2
2818echo "$as_me:$LINENO: checking for $ac_word" >&5
2819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822else
2823 if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_ac_ct_CC="$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837done
2838done
2839
2840fi
2841fi
2842ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843if test -n "$ac_ct_CC"; then
2844 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2845echo "${ECHO_T}$ac_ct_CC" >&6
2846else
2847 echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6
2849fi
2850
2851 test -n "$ac_ct_CC" && break
2852done
2853
2854 CC=$ac_ct_CC
2855fi
2856
2857
John Criswell0c38eaf2003-09-10 15:17:25 +00002858test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859See \`config.log' for more details." >&5
2860echo "$as_me: error: no acceptable C compiler found in \$PATH
2861See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002862 { (exit 1); exit 1; }; }
2863
2864# Provide some information about the compiler.
2865echo "$as_me:$LINENO:" \
2866 "checking for C compiler version" >&5
2867ac_compiler=`set X $ac_compile; echo $2`
2868{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2869 (eval $ac_compiler --version </dev/null >&5) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2874 (eval $ac_compiler -v </dev/null >&5) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }
2878{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2879 (eval $ac_compiler -V </dev/null >&5) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883
2884echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2885echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2886if test "${ac_cv_c_compiler_gnu+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 cat >conftest.$ac_ext <<_ACEOF
2890#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002896
John Criswell7a73b802003-06-30 21:59:07 +00002897int
2898main ()
2899{
2900#ifndef __GNUC__
2901 choke me
2902#endif
2903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908rm -f conftest.$ac_objext
2909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910 (eval $ac_compile) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_compiler_gnu=yes
2921else
2922 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002923sed 's/^/| /' conftest.$ac_ext >&5
2924
John Criswell7a73b802003-06-30 21:59:07 +00002925ac_compiler_gnu=no
2926fi
2927rm -f conftest.$ac_objext conftest.$ac_ext
2928ac_cv_c_compiler_gnu=$ac_compiler_gnu
2929
2930fi
2931echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2932echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2933GCC=`test $ac_compiler_gnu = yes && echo yes`
2934ac_test_CFLAGS=${CFLAGS+set}
2935ac_save_CFLAGS=$CFLAGS
2936CFLAGS="-g"
2937echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2938echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2939if test "${ac_cv_prog_cc_g+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
2942 cat >conftest.$ac_ext <<_ACEOF
2943#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002949
John Criswell7a73b802003-06-30 21:59:07 +00002950int
2951main ()
2952{
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958rm -f conftest.$ac_objext
2959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_cv_prog_cc_g=yes
2971else
2972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
John Criswell7a73b802003-06-30 21:59:07 +00002975ac_cv_prog_cc_g=no
2976fi
2977rm -f conftest.$ac_objext conftest.$ac_ext
2978fi
2979echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2981if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2985 CFLAGS="-g -O2"
2986 else
2987 CFLAGS="-g"
2988 fi
2989else
2990 if test "$GCC" = yes; then
2991 CFLAGS="-O2"
2992 else
2993 CFLAGS=
2994 fi
2995fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002996echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2997echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2998if test "${ac_cv_prog_cc_stdc+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 ac_cv_prog_cc_stdc=no
3002ac_save_CC=$CC
3003cat >conftest.$ac_ext <<_ACEOF
3004#line $LINENO "configure"
3005/* confdefs.h. */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h. */
3010#include <stdarg.h>
3011#include <stdio.h>
3012#include <sys/types.h>
3013#include <sys/stat.h>
3014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015struct buf { int x; };
3016FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017static char *e (p, i)
3018 char **p;
3019 int i;
3020{
3021 return p[i];
3022}
3023static char *f (char * (*g) (char **, int), char **p, ...)
3024{
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3031}
3032int test (int i, double x);
3033struct s1 {int (*f) (int a);};
3034struct s2 {int (*f) (double a);};
3035int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3036int argc;
3037char **argv;
3038int
3039main ()
3040{
3041return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3042 ;
3043 return 0;
3044}
3045_ACEOF
3046# Don't try gcc -ansi; that turns off useful extensions and
3047# breaks some systems' header files.
3048# AIX -qlanglvl=ansi
3049# Ultrix and OSF/1 -std1
3050# HP-UX 10.20 and later -Ae
3051# HP-UX older versions -Aa -D_HPUX_SOURCE
3052# SVR4 -Xc -D__EXTENSIONS__
3053for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3054do
3055 CC="$ac_save_CC $ac_arg"
3056 rm -f conftest.$ac_objext
3057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058 (eval $ac_compile) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 (eval $ac_try) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3068 ac_cv_prog_cc_stdc=$ac_arg
3069break
3070else
3071 echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074fi
3075rm -f conftest.$ac_objext
3076done
3077rm -f conftest.$ac_ext conftest.$ac_objext
3078CC=$ac_save_CC
3079
3080fi
3081
3082case "x$ac_cv_prog_cc_stdc" in
3083 x|xno)
3084 echo "$as_me:$LINENO: result: none needed" >&5
3085echo "${ECHO_T}none needed" >&6 ;;
3086 *)
3087 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3088echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3089 CC="$CC $ac_cv_prog_cc_stdc" ;;
3090esac
3091
John Criswell7a73b802003-06-30 21:59:07 +00003092# Some people use a C++ compiler to compile C. Since we use `exit',
3093# in C++ we need to declare it. In case someone uses the same compiler
3094# for both compiling C and C++ we need to have the C++ compiler decide
3095# the declaration of exit, since it's the most demanding environment.
3096cat >conftest.$ac_ext <<_ACEOF
3097#ifndef __cplusplus
3098 choke me
3099#endif
3100_ACEOF
3101rm -f conftest.$ac_objext
3102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 for ac_declaration in \
3114 ''\
3115 '#include <stdlib.h>' \
3116 'extern "C" void std::exit (int) throw (); using std::exit;' \
3117 'extern "C" void std::exit (int); using std::exit;' \
3118 'extern "C" void exit (int) throw ();' \
3119 'extern "C" void exit (int);' \
3120 'void exit (int);'
3121do
3122 cat >conftest.$ac_ext <<_ACEOF
3123#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003129#include <stdlib.h>
3130$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003131int
3132main ()
3133{
3134exit (42);
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext
3140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 :
3152else
3153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003154sed 's/^/| /' conftest.$ac_ext >&5
3155
John Criswell7a73b802003-06-30 21:59:07 +00003156continue
3157fi
3158rm -f conftest.$ac_objext conftest.$ac_ext
3159 cat >conftest.$ac_ext <<_ACEOF
3160#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003166$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003167int
3168main ()
3169{
3170exit (42);
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177 (eval $ac_compile) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 break
3188else
3189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003190sed 's/^/| /' conftest.$ac_ext >&5
3191
John Criswell7a73b802003-06-30 21:59:07 +00003192fi
3193rm -f conftest.$ac_objext conftest.$ac_ext
3194done
3195rm -f conftest*
3196if test -n "$ac_declaration"; then
3197 echo '#ifdef __cplusplus' >>confdefs.h
3198 echo $ac_declaration >>confdefs.h
3199 echo '#endif' >>confdefs.h
3200fi
3201
3202else
3203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003204sed 's/^/| /' conftest.$ac_ext >&5
3205
John Criswell7a73b802003-06-30 21:59:07 +00003206fi
3207rm -f conftest.$ac_objext conftest.$ac_ext
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3220echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3221# On Suns, sometimes $CPP names a directory.
3222if test -n "$CPP" && test -d "$CPP"; then
3223 CPP=
3224fi
3225if test -z "$CPP"; then
3226 if test "${ac_cv_prog_CPP+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229 # Double quotes because CPP needs to be expanded
3230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3231 do
3232 ac_preproc_ok=false
3233for ac_c_preproc_warn_flag in '' yes
3234do
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h. */
3248#ifdef __STDC__
3249# include <limits.h>
3250#else
3251# include <assert.h>
3252#endif
John Criswell7a73b802003-06-30 21:59:07 +00003253 Syntax error
3254_ACEOF
3255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003258 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 else
3266 ac_cpp_err=
3267 fi
3268else
3269 ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272 :
3273else
3274 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003275sed 's/^/| /' conftest.$ac_ext >&5
3276
John Criswell7a73b802003-06-30 21:59:07 +00003277 # Broken: fails on valid input.
3278continue
3279fi
3280rm -f conftest.err conftest.$ac_ext
3281
3282 # OK, works on sane cases. Now check whether non-existent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003291#include <ac_nonexistent.h>
3292_ACEOF
3293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3295 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003296 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } >/dev/null; then
3301 if test -s conftest.err; then
3302 ac_cpp_err=$ac_c_preproc_warn_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306else
3307 ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311continue
3312else
3313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003314sed 's/^/| /' conftest.$ac_ext >&5
3315
John Criswell7a73b802003-06-30 21:59:07 +00003316 # Passes both tests.
3317ac_preproc_ok=:
3318break
3319fi
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CPP=$CPP
3331
3332fi
3333 CPP=$ac_cv_prog_CPP
3334else
3335 ac_cv_prog_CPP=$CPP
3336fi
3337echo "$as_me:$LINENO: result: $CPP" >&5
3338echo "${ECHO_T}$CPP" >&6
3339ac_preproc_ok=false
3340for ac_c_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003350/* confdefs.h. */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h. */
3355#ifdef __STDC__
3356# include <limits.h>
3357#else
3358# include <assert.h>
3359#endif
John Criswell7a73b802003-06-30 21:59:07 +00003360 Syntax error
3361_ACEOF
3362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3364 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003365 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003366 rm -f conftest.er1
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } >/dev/null; then
3370 if test -s conftest.err; then
3371 ac_cpp_err=$ac_c_preproc_warn_flag
3372 else
3373 ac_cpp_err=
3374 fi
3375else
3376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379 :
3380else
3381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003382sed 's/^/| /' conftest.$ac_ext >&5
3383
John Criswell7a73b802003-06-30 21:59:07 +00003384 # Broken: fails on valid input.
3385continue
3386fi
3387rm -f conftest.err conftest.$ac_ext
3388
3389 # OK, works on sane cases. Now check whether non-existent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003393/* confdefs.h. */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
3397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003398#include <ac_nonexistent.h>
3399_ACEOF
3400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003403 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 else
3411 ac_cpp_err=
3412 fi
3413else
3414 ac_cpp_err=yes
3415fi
3416if test -z "$ac_cpp_err"; then
3417 # Broken: success on invalid input.
3418continue
3419else
3420 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003421sed 's/^/| /' conftest.$ac_ext >&5
3422
John Criswell7a73b802003-06-30 21:59:07 +00003423 # Passes both tests.
3424ac_preproc_ok=:
3425break
3426fi
3427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
3432if $ac_preproc_ok; then
3433 :
3434else
John Criswell0c38eaf2003-09-10 15:17:25 +00003435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003439 { (exit 1); exit 1; }; }
3440fi
3441
3442ac_ext=c
3443ac_cpp='$CPP $CPPFLAGS'
3444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449if test "$GCC" != "yes"
3450then
3451 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3452echo "$as_me: error: gcc required but not found" >&2;}
3453 { (exit 1); exit 1; }; }
3454fi
3455
3456if test "$GXX" != "yes"
3457then
3458 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3459echo "$as_me: error: g++ required but not found" >&2;}
3460 { (exit 1); exit 1; }; }
3461fi
3462
John Criswellde00db22003-08-25 16:49:54 +00003463gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3464if test "$gccmajor" -lt "3"
3465then
3466 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3467echo "$as_me: error: gcc 3.x required" >&2;}
3468 { (exit 1); exit 1; }; }
3469fi
3470
John Criswell7a73b802003-06-30 21:59:07 +00003471 echo "$as_me:$LINENO: checking for GNU make" >&5
3472echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3473if test "${_cv_gnu_make_command+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 _cv_gnu_make_command='' ;
3477 for a in "$MAKE" make gmake gnumake ; do
3478 if test -z "$a" ; then continue ; fi ;
3479 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3480 _cv_gnu_make_command=$a ;
3481 break;
3482 fi
3483 done ;
3484
3485fi
3486echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3487echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3488 if test "x$_cv_gnu_make_command" != "x" ; then
3489 ifGNUmake='' ;
3490 else
3491 ifGNUmake='#' ;
3492 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3493echo "${ECHO_T}\"Not found\"" >&6;
3494 fi
3495
3496
3497if test -z "$_cv_gnu_make_command"
3498then
3499 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3500echo "$as_me: error: GNU Make required but not found" >&2;}
3501 { (exit 1); exit 1; }; }
3502fi
3503
3504
3505echo "$as_me:$LINENO: checking " >&5
3506echo $ECHO_N "checking ... $ECHO_C" >&6
3507if test "${ac_cv_has_flex+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 for ac_prog in flex lex
3511do
3512 # Extract the first word of "$ac_prog", so it can be a program name with args.
3513set dummy $ac_prog; ac_word=$2
3514echo "$as_me:$LINENO: checking for $ac_word" >&5
3515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516if test "${ac_cv_prog_LEX+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519 if test -n "$LEX"; then
3520 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_LEX="$ac_prog"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534done
3535
3536fi
3537fi
3538LEX=$ac_cv_prog_LEX
3539if test -n "$LEX"; then
3540 echo "$as_me:$LINENO: result: $LEX" >&5
3541echo "${ECHO_T}$LEX" >&6
3542else
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545fi
3546
3547 test -n "$LEX" && break
3548done
3549test -n "$LEX" || LEX=":"
3550
3551if test -z "$LEXLIB"
3552then
3553 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3554echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3555if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557else
3558 ac_check_lib_save_LIBS=$LIBS
3559LIBS="-lfl $LIBS"
3560cat >conftest.$ac_ext <<_ACEOF
3561#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003562/* confdefs.h. */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003567
3568/* Override any gcc2 internal prototype to avoid an error. */
3569#ifdef __cplusplus
3570extern "C"
3571#endif
3572/* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3574char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003575int
3576main ()
3577{
3578yywrap ();
3579 ;
3580 return 0;
3581}
3582_ACEOF
3583rm -f conftest.$ac_objext conftest$ac_exeext
3584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585 (eval $ac_link) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try='test -s conftest$ac_exeext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_lib_fl_yywrap=yes
3596else
3597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003598sed 's/^/| /' conftest.$ac_ext >&5
3599
John Criswell7a73b802003-06-30 21:59:07 +00003600ac_cv_lib_fl_yywrap=no
3601fi
3602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3603LIBS=$ac_check_lib_save_LIBS
3604fi
3605echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3606echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3607if test $ac_cv_lib_fl_yywrap = yes; then
3608 LEXLIB="-lfl"
3609else
3610 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3611echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3612if test "${ac_cv_lib_l_yywrap+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 ac_check_lib_save_LIBS=$LIBS
3616LIBS="-ll $LIBS"
3617cat >conftest.$ac_ext <<_ACEOF
3618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003619/* confdefs.h. */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003624
3625/* Override any gcc2 internal prototype to avoid an error. */
3626#ifdef __cplusplus
3627extern "C"
3628#endif
3629/* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3631char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003632int
3633main ()
3634{
3635yywrap ();
3636 ;
3637 return 0;
3638}
3639_ACEOF
3640rm -f conftest.$ac_objext conftest$ac_exeext
3641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -s conftest$ac_exeext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_lib_l_yywrap=yes
3653else
3654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003655sed 's/^/| /' conftest.$ac_ext >&5
3656
John Criswell7a73b802003-06-30 21:59:07 +00003657ac_cv_lib_l_yywrap=no
3658fi
3659rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3660LIBS=$ac_check_lib_save_LIBS
3661fi
3662echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3663echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3664if test $ac_cv_lib_l_yywrap = yes; then
3665 LEXLIB="-ll"
3666fi
3667
3668fi
3669
3670fi
3671
3672if test "x$LEX" != "x:"; then
3673 echo "$as_me:$LINENO: checking lex output file root" >&5
3674echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3675if test "${ac_cv_prog_lex_root+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
3678 # The minimal lex program is just a single line: %%. But some broken lexes
3679# (Solaris, I think it was) want two %% lines, so accommodate them.
3680cat >conftest.l <<_ACEOF
3681%%
3682%%
3683_ACEOF
3684{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3685 (eval $LEX conftest.l) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }
3689if test -f lex.yy.c; then
3690 ac_cv_prog_lex_root=lex.yy
3691elif test -f lexyy.c; then
3692 ac_cv_prog_lex_root=lexyy
3693else
3694 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3695echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3696 { (exit 1); exit 1; }; }
3697fi
3698fi
3699echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3700echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3701rm -f conftest.l
3702LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3703
3704echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3705echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3706if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709 # POSIX says lex can declare yytext either as a pointer or an array; the
3710# default is implementation-dependent. Figure out which it is, since
3711# not all implementations provide the %pointer and %array declarations.
3712ac_cv_prog_lex_yytext_pointer=no
3713echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3714ac_save_LIBS=$LIBS
3715LIBS="$LIBS $LEXLIB"
3716cat >conftest.$ac_ext <<_ACEOF
3717`cat $LEX_OUTPUT_ROOT.c`
3718_ACEOF
3719rm -f conftest.$ac_objext conftest$ac_exeext
3720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721 (eval $ac_link) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -s conftest$ac_exeext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_prog_lex_yytext_pointer=yes
3732else
3733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003734sed 's/^/| /' conftest.$ac_ext >&5
3735
John Criswell7a73b802003-06-30 21:59:07 +00003736fi
3737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3738LIBS=$ac_save_LIBS
3739rm -f "${LEX_OUTPUT_ROOT}.c"
3740
3741fi
3742echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3743echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3744if test $ac_cv_prog_lex_yytext_pointer = yes; then
3745
3746cat >>confdefs.h <<\_ACEOF
3747#define YYTEXT_POINTER 1
3748_ACEOF
3749
3750fi
3751
3752fi
3753
3754fi
3755echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3756echo "${ECHO_T}$ac_cv_has_flex" >&6
3757if test "$LEX" != "flex"; then
3758 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3759echo "$as_me: error: flex not found but required" >&2;}
3760 { (exit 1); exit 1; }; }
3761fi
3762
3763echo "$as_me:$LINENO: checking " >&5
3764echo $ECHO_N "checking ... $ECHO_C" >&6
3765if test "${ac_cv_has_bison+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 for ac_prog in 'bison -y' byacc
3769do
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771set dummy $ac_prog; ac_word=$2
3772echo "$as_me:$LINENO: checking for $ac_word" >&5
3773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774if test "${ac_cv_prog_YACC+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 if test -n "$YACC"; then
3778 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_YACC="$ac_prog"
3788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791done
3792done
3793
3794fi
3795fi
3796YACC=$ac_cv_prog_YACC
3797if test -n "$YACC"; then
3798 echo "$as_me:$LINENO: result: $YACC" >&5
3799echo "${ECHO_T}$YACC" >&6
3800else
3801 echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803fi
3804
3805 test -n "$YACC" && break
3806done
3807test -n "$YACC" || YACC="yacc"
3808
3809
3810fi
3811echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3812echo "${ECHO_T}$ac_cv_has_bison" >&6
3813if test "$YACC" != "bison -y"; then
3814 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3815echo "$as_me: error: bison not found but required" >&2;}
3816 { (exit 1); exit 1; }; }
3817else
3818 YACC=bison
3819
3820fi
3821
3822
3823# Check whether --enable-shared or --disable-shared was given.
3824if test "${enable_shared+set}" = set; then
3825 enableval="$enable_shared"
3826 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003827 case $enableval in
3828 yes) enable_shared=yes ;;
3829 no) enable_shared=no ;;
3830 *)
3831 enable_shared=no
3832 # Look at the argument we got. We use all the common list separators.
3833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3834 for pkg in $enableval; do
3835 IFS="$lt_save_ifs"
3836 if test "X$pkg" = "X$p"; then
3837 enable_shared=yes
3838 fi
3839 done
3840 IFS="$lt_save_ifs"
3841 ;;
3842 esac
John Criswell7a73b802003-06-30 21:59:07 +00003843else
3844 enable_shared=yes
3845fi;
John Criswell47fdd832003-07-14 16:52:07 +00003846
John Criswell7a73b802003-06-30 21:59:07 +00003847# Check whether --enable-static or --disable-static was given.
3848if test "${enable_static+set}" = set; then
3849 enableval="$enable_static"
3850 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003851 case $enableval in
3852 yes) enable_static=yes ;;
3853 no) enable_static=no ;;
3854 *)
3855 enable_static=no
3856 # Look at the argument we got. We use all the common list separators.
3857 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3858 for pkg in $enableval; do
3859 IFS="$lt_save_ifs"
3860 if test "X$pkg" = "X$p"; then
3861 enable_static=yes
3862 fi
3863 done
3864 IFS="$lt_save_ifs"
3865 ;;
3866 esac
John Criswell7a73b802003-06-30 21:59:07 +00003867else
3868 enable_static=yes
3869fi;
John Criswell47fdd832003-07-14 16:52:07 +00003870
John Criswell7a73b802003-06-30 21:59:07 +00003871# Check whether --enable-fast-install or --disable-fast-install was given.
3872if test "${enable_fast_install+set}" = set; then
3873 enableval="$enable_fast_install"
3874 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003875 case $enableval in
3876 yes) enable_fast_install=yes ;;
3877 no) enable_fast_install=no ;;
3878 *)
3879 enable_fast_install=no
3880 # Look at the argument we got. We use all the common list separators.
3881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3882 for pkg in $enableval; do
3883 IFS="$lt_save_ifs"
3884 if test "X$pkg" = "X$p"; then
3885 enable_fast_install=yes
3886 fi
3887 done
3888 IFS="$lt_save_ifs"
3889 ;;
3890 esac
John Criswell7a73b802003-06-30 21:59:07 +00003891else
3892 enable_fast_install=yes
3893fi;
John Criswell47fdd832003-07-14 16:52:07 +00003894
3895echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3896echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3897if test "${lt_cv_path_SED+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 # Loop through the user's path and test for sed and gsed.
3901# Then use that list of sed's as ones to test for truncation.
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for lt_ac_prog in sed gsed; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3910 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3911 fi
3912 done
3913 done
3914done
3915lt_ac_max=0
3916lt_ac_count=0
3917# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3918# along with /bin/sed that truncates output.
3919for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3920 test ! -f $lt_ac_sed && break
3921 cat /dev/null > conftest.in
3922 lt_ac_count=0
3923 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3924 # Check for GNU sed and select it if it is found.
3925 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3926 lt_cv_path_SED=$lt_ac_sed
3927 break
3928 fi
3929 while true; do
3930 cat conftest.in conftest.in >conftest.tmp
3931 mv conftest.tmp conftest.in
3932 cp conftest.in conftest.nl
3933 echo >>conftest.nl
3934 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3935 cmp -s conftest.out conftest.nl || break
3936 # 10000 chars as input seems more than enough
3937 test $lt_ac_count -gt 10 && break
3938 lt_ac_count=`expr $lt_ac_count + 1`
3939 if test $lt_ac_count -gt $lt_ac_max; then
3940 lt_ac_max=$lt_ac_count
3941 lt_cv_path_SED=$lt_ac_sed
3942 fi
3943 done
3944done
3945SED=$lt_cv_path_SED
3946
John Criswell7a73b802003-06-30 21:59:07 +00003947fi
3948
John Criswell47fdd832003-07-14 16:52:07 +00003949echo "$as_me:$LINENO: result: $SED" >&5
3950echo "${ECHO_T}$SED" >&6
3951
3952echo "$as_me:$LINENO: checking for egrep" >&5
3953echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3954if test "${ac_cv_prog_egrep+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3958 then ac_cv_prog_egrep='grep -E'
3959 else ac_cv_prog_egrep='egrep'
3960 fi
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3963echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3964 EGREP=$ac_cv_prog_egrep
3965
3966
John Criswell7a73b802003-06-30 21:59:07 +00003967
3968# Check whether --with-gnu-ld or --without-gnu-ld was given.
3969if test "${with_gnu_ld+set}" = set; then
3970 withval="$with_gnu_ld"
3971 test "$withval" = no || with_gnu_ld=yes
3972else
3973 with_gnu_ld=no
3974fi;
3975ac_prog=ld
3976if test "$GCC" = yes; then
3977 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003978 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3979echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003980 case $host in
3981 *-*-mingw*)
3982 # gcc leaves a trailing carriage return which upsets mingw
3983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3984 *)
3985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3986 esac
3987 case $ac_prog in
3988 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003989 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003990 re_direlt='/[^/][^/]*/\.\./'
3991 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003992 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003993 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003994 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003995 done
3996 test -z "$LD" && LD="$ac_prog"
3997 ;;
3998 "")
3999 # If it fails, then pretend we aren't using GCC.
4000 ac_prog=ld
4001 ;;
4002 *)
4003 # If it is relative, then search for the first ld in PATH.
4004 with_gnu_ld=unknown
4005 ;;
4006 esac
4007elif test "$with_gnu_ld" = yes; then
4008 echo "$as_me:$LINENO: checking for GNU ld" >&5
4009echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4010else
4011 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4012echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4013fi
4014if test "${lt_cv_path_LD+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004019 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004020 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004021 test -z "$ac_dir" && ac_dir=.
4022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4023 lt_cv_path_LD="$ac_dir/$ac_prog"
4024 # Check to see if the program is GNU ld. I'd rather use --version,
4025 # but apparently some GNU ld's only accept -v.
4026 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4028 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004029 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004030 ;;
4031 *)
John Criswell7a73b802003-06-30 21:59:07 +00004032 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004033 ;;
4034 esac
John Criswell7a73b802003-06-30 21:59:07 +00004035 fi
4036 done
John Criswell47fdd832003-07-14 16:52:07 +00004037 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004038else
4039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4040fi
4041fi
4042
4043LD="$lt_cv_path_LD"
4044if test -n "$LD"; then
4045 echo "$as_me:$LINENO: result: $LD" >&5
4046echo "${ECHO_T}$LD" >&6
4047else
4048 echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
4050fi
4051test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4052echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4053 { (exit 1); exit 1; }; }
4054echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4055echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4056if test "${lt_cv_prog_gnu_ld+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004060case `"$LD" -v 2>&1 </dev/null` in
4061*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004062 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004063 ;;
4064*)
John Criswell7a73b802003-06-30 21:59:07 +00004065 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004066 ;;
4067esac
John Criswell7a73b802003-06-30 21:59:07 +00004068fi
4069echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4070echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4071with_gnu_ld=$lt_cv_prog_gnu_ld
4072
4073
4074echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4075echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4076if test "${lt_cv_ld_reload_flag+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 lt_cv_ld_reload_flag='-r'
4080fi
4081echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4082echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4083reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004084case $reload_flag in
4085"" | " "*) ;;
4086*) reload_flag=" $reload_flag" ;;
4087esac
4088reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004089
4090echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4091echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4092if test "${lt_cv_path_NM+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 if test -n "$NM"; then
4096 # Let the user override the test.
4097 lt_cv_path_NM="$NM"
4098else
John Criswell47fdd832003-07-14 16:52:07 +00004099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004100 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004101 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004102 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004103 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4104 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004105 # Check to see if the nm accepts a BSD-compat flag.
4106 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4107 # nm: unknown option "B" ignored
4108 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004109 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4110 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004111 lt_cv_path_NM="$tmp_nm -B"
4112 break
John Criswell47fdd832003-07-14 16:52:07 +00004113 ;;
4114 *)
4115 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4116 */dev/null*)
4117 lt_cv_path_NM="$tmp_nm -p"
4118 break
4119 ;;
4120 *)
4121 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4122 continue # so that we can try to find one that supports BSD flags
4123 ;;
4124 esac
4125 esac
John Criswell7a73b802003-06-30 21:59:07 +00004126 fi
4127 done
John Criswell47fdd832003-07-14 16:52:07 +00004128 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004129 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4130fi
4131fi
John Criswell47fdd832003-07-14 16:52:07 +00004132echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4133echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004134NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004135
4136echo "$as_me:$LINENO: checking whether ln -s works" >&5
4137echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4138LN_S=$as_ln_s
4139if test "$LN_S" = "ln -s"; then
4140 echo "$as_me:$LINENO: result: yes" >&5
4141echo "${ECHO_T}yes" >&6
4142else
4143 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4144echo "${ECHO_T}no, using $LN_S" >&6
4145fi
4146
John Criswell47fdd832003-07-14 16:52:07 +00004147echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4148echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004149if test "${lt_cv_deplibs_check_method+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 lt_cv_file_magic_cmd='$MAGIC_CMD'
4153lt_cv_file_magic_test_file=
4154lt_cv_deplibs_check_method='unknown'
4155# Need to set the preceding variable on all platforms that support
4156# interlibrary dependencies.
4157# 'none' -- dependencies not supported.
4158# `unknown' -- same as none, but documents that we really don't know.
4159# 'pass_all' -- all dependencies passed with no checks.
4160# 'test_compile' -- check by making test program.
4161# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004162# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004163# If you have `file' or equivalent on your system and you're not sure
4164# whether `pass_all' will *always* work, you probably want this one.
4165
4166case $host_os in
4167aix4* | aix5*)
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
4170
4171beos*)
4172 lt_cv_deplibs_check_method=pass_all
4173 ;;
4174
4175bsdi4*)
4176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4177 lt_cv_file_magic_cmd='/usr/bin/file -L'
4178 lt_cv_file_magic_test_file=/shlib/libc.so
4179 ;;
4180
4181cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004182 # win32_libid is a shell function defined in ltmain.sh
4183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4184 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004185 ;;
4186
4187darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004188 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004189 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4190 lt_cv_file_magic_cmd='/usr/bin/file -L'
4191 case "$host_os" in
4192 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004193 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004194 ;;
4195 *) # Darwin 1.3 on
4196 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4197 ;;
4198 esac
John Criswell47fdd832003-07-14 16:52:07 +00004199 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004200 ;;
4201
4202freebsd*)
4203 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4204 case $host_cpu in
4205 i*86 )
4206 # Not sure whether the presence of OpenBSD here was a mistake.
4207 # Let's accept both of them until this is cleared up.
4208 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4211 ;;
4212 esac
4213 else
4214 lt_cv_deplibs_check_method=pass_all
4215 fi
4216 ;;
4217
4218gnu*)
4219 lt_cv_deplibs_check_method=pass_all
4220 ;;
4221
John Criswell47fdd832003-07-14 16:52:07 +00004222hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004223 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004224 case "$host_cpu" in
4225 ia64*)
4226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4228 ;;
4229 hppa*64*)
4230 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]'
4231 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4232 ;;
4233 *)
4234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4235 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4236 ;;
4237 esac
John Criswell7a73b802003-06-30 21:59:07 +00004238 ;;
4239
John Criswell47fdd832003-07-14 16:52:07 +00004240irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004241 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004242 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004243 # this will be overridden with pass_all, but let us keep it just in case
4244 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4245 ;;
4246 *)
4247 case $LD in
4248 *-32|*"-32 ") libmagic=32-bit;;
4249 *-n32|*"-n32 ") libmagic=N32;;
4250 *-64|*"-64 ") libmagic=64-bit;;
4251 *) libmagic=never-match;;
4252 esac
4253 # this will be overridden with pass_all, but let us keep it just in case
4254 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4255 ;;
4256 esac
4257 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4258 lt_cv_deplibs_check_method=pass_all
4259 ;;
4260
4261# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004262linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004263 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004264 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004265 lt_cv_deplibs_check_method=pass_all ;;
4266 *)
4267 # glibc up to 2.1.1 does not perform some relocations on ARM
4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4269 esac
4270 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4271 ;;
4272
4273netbsd*)
4274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004276 else
John Criswell47fdd832003-07-14 16:52:07 +00004277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004278 fi
4279 ;;
4280
4281newos6*)
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4283 lt_cv_file_magic_cmd=/usr/bin/file
4284 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4285 ;;
4286
John Criswell47fdd832003-07-14 16:52:07 +00004287nto-qnx)
4288 lt_cv_deplibs_check_method=unknown
4289 ;;
4290
John Criswell7a73b802003-06-30 21:59:07 +00004291openbsd*)
4292 lt_cv_file_magic_cmd=/usr/bin/file
4293 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4296 else
4297 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4298 fi
4299 ;;
4300
4301osf3* | osf4* | osf5*)
4302 # this will be overridden with pass_all, but let us keep it just in case
4303 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4304 lt_cv_file_magic_test_file=/shlib/libc.so
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308sco3.2v5*)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312solaris*)
4313 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_file_magic_test_file=/lib/libc.so
4315 ;;
4316
John Criswell7a73b802003-06-30 21:59:07 +00004317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4318 case $host_vendor in
4319 motorola)
4320 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]'
4321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322 ;;
4323 ncr)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326 sequent)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329 ;;
4330 sni)
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4333 lt_cv_file_magic_test_file=/lib/libc.so
4334 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004335 siemens)
4336 lt_cv_deplibs_check_method=pass_all
4337 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004338 esac
4339 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004340
4341sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4342 lt_cv_deplibs_check_method=pass_all
4343 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004344esac
4345
4346fi
4347echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4348echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4349file_magic_cmd=$lt_cv_file_magic_cmd
4350deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004351test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004352
4353
4354
4355
John Criswell47fdd832003-07-14 16:52:07 +00004356# If no C compiler was specified, use CC.
4357LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004358
John Criswell47fdd832003-07-14 16:52:07 +00004359# Allow CC to be a program name with arguments.
4360compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004361
John Criswell47fdd832003-07-14 16:52:07 +00004362# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4363if test "${enable_libtool_lock+set}" = set; then
4364 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004365
John Criswell47fdd832003-07-14 16:52:07 +00004366fi;
4367test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004368
John Criswell47fdd832003-07-14 16:52:07 +00004369# Some flags need to be propagated to the compiler or linker for good
4370# libtool support.
4371case $host in
4372ia64-*-hpux*)
4373 # Find out which ABI we are using.
4374 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004380 case `/usr/bin/file conftest.$ac_objext` in
4381 *ELF-32*)
4382 HPUX_IA64_MODE="32"
4383 ;;
4384 *ELF-64*)
4385 HPUX_IA64_MODE="64"
4386 ;;
4387 esac
4388 fi
4389 rm -rf conftest*
4390 ;;
4391*-*-irix6*)
4392 # Find out which ABI we are using.
John Criswell08acb9b2003-09-16 02:12:45 +00004393 echo '#line 4393 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004398 (exit $ac_status); }; then
4399 if test "$lt_cv_prog_gnu_ld" = yes; then
4400 case `/usr/bin/file conftest.$ac_objext` in
4401 *32-bit*)
4402 LD="${LD-ld} -melf32bsmip"
4403 ;;
4404 *N32*)
4405 LD="${LD-ld} -melf32bmipn32"
4406 ;;
4407 *64-bit*)
4408 LD="${LD-ld} -melf64bmip"
4409 ;;
4410 esac
4411 else
4412 case `/usr/bin/file conftest.$ac_objext` in
4413 *32-bit*)
4414 LD="${LD-ld} -32"
4415 ;;
4416 *N32*)
4417 LD="${LD-ld} -n32"
4418 ;;
4419 *64-bit*)
4420 LD="${LD-ld} -64"
4421 ;;
4422 esac
4423 fi
4424 fi
4425 rm -rf conftest*
4426 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004427
John Criswell47fdd832003-07-14 16:52:07 +00004428x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4429 # Find out which ABI we are using.
4430 echo 'int i;' > conftest.$ac_ext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; then
4436 case "`/usr/bin/file conftest.o`" in
4437 *32-bit*)
4438 case $host in
4439 x86_64-*linux*)
4440 LD="${LD-ld} -m elf_i386"
4441 ;;
4442 ppc64-*linux*)
4443 LD="${LD-ld} -m elf32ppclinux"
4444 ;;
4445 s390x-*linux*)
4446 LD="${LD-ld} -m elf_s390"
4447 ;;
4448 sparc64-*linux*)
4449 LD="${LD-ld} -m elf32_sparc"
4450 ;;
4451 esac
4452 ;;
4453 *64-bit*)
4454 case $host in
4455 x86_64-*linux*)
4456 LD="${LD-ld} -m elf_x86_64"
4457 ;;
4458 ppc*-*linux*|powerpc*-*linux*)
4459 LD="${LD-ld} -m elf64ppc"
4460 ;;
4461 s390*-*linux*)
4462 LD="${LD-ld} -m elf64_s390"
4463 ;;
4464 sparc*-*linux*)
4465 LD="${LD-ld} -m elf64_sparc"
4466 ;;
4467 esac
4468 ;;
4469 esac
4470 fi
4471 rm -rf conftest*
4472 ;;
4473
4474*-*-sco3.2v5*)
4475 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4476 SAVE_CFLAGS="$CFLAGS"
4477 CFLAGS="$CFLAGS -belf"
4478 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4479echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4480if test "${lt_cv_cc_needs_belf+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483 ac_ext=c
4484ac_cpp='$CPP $CPPFLAGS'
4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488
4489 cat >conftest.$ac_ext <<_ACEOF
4490#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004496
John Criswell47fdd832003-07-14 16:52:07 +00004497int
4498main ()
John Criswell7a73b802003-06-30 21:59:07 +00004499{
John Criswell7a73b802003-06-30 21:59:07 +00004500
John Criswell47fdd832003-07-14 16:52:07 +00004501 ;
4502 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004503}
John Criswell47fdd832003-07-14 16:52:07 +00004504_ACEOF
4505rm -f conftest.$ac_objext conftest$ac_exeext
4506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004507 (eval $ac_link) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004510 (exit $ac_status); } &&
4511 { ac_try='test -s conftest$ac_exeext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004518else
John Criswell47fdd832003-07-14 16:52:07 +00004519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004520sed 's/^/| /' conftest.$ac_ext >&5
4521
John Criswell47fdd832003-07-14 16:52:07 +00004522lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004523fi
John Criswell47fdd832003-07-14 16:52:07 +00004524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 ac_ext=c
4526ac_cpp='$CPP $CPPFLAGS'
4527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
John Criswell7a73b802003-06-30 21:59:07 +00004531fi
John Criswell47fdd832003-07-14 16:52:07 +00004532echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4533echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4536 CFLAGS="$SAVE_CFLAGS"
4537 fi
4538 ;;
4539
4540esac
4541
4542need_locks="$enable_libtool_lock"
4543
John Criswell7a73b802003-06-30 21:59:07 +00004544
4545
4546echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4547echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4548if test "${ac_cv_header_stdc+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 cat >conftest.$ac_ext <<_ACEOF
4552#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004558#include <stdlib.h>
4559#include <stdarg.h>
4560#include <string.h>
4561#include <float.h>
4562
John Criswell0c38eaf2003-09-10 15:17:25 +00004563int
4564main ()
4565{
4566
4567 ;
4568 return 0;
4569}
John Criswell7a73b802003-06-30 21:59:07 +00004570_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004571rm -f conftest.$ac_objext
4572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004574 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004576 (exit $ac_status); } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004583 ac_cv_header_stdc=yes
4584else
4585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004589fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004590rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004591
4592if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat >conftest.$ac_ext <<_ACEOF
4595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004605 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004606 :
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f conftest*
4611
4612fi
4613
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4617#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004618/* confdefs.h. */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004623#include <stdlib.h>
4624
4625_ACEOF
4626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004627 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004628 :
4629else
4630 ac_cv_header_stdc=no
4631fi
4632rm -f conftest*
4633
4634fi
4635
4636if test $ac_cv_header_stdc = yes; then
4637 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4638 if test "$cross_compiling" = yes; then
4639 :
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004648#include <ctype.h>
4649#if ((' ' & 0x0FF) == 0x020)
4650# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004653# define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658#endif
4659
4660#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661int
4662main ()
4663{
4664 int i;
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4668 exit(2);
4669 exit (0);
4670}
4671_ACEOF
4672rm -f conftest$ac_exeext
4673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674 (eval $ac_link) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 :
4684else
4685 echo "$as_me: program exited with status $ac_status" >&5
4686echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004687sed 's/^/| /' conftest.$ac_ext >&5
4688
John Criswell7a73b802003-06-30 21:59:07 +00004689( exit $ac_status )
4690ac_cv_header_stdc=no
4691fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004692rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004693fi
4694fi
4695fi
4696echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4697echo "${ECHO_T}$ac_cv_header_stdc" >&6
4698if test $ac_cv_header_stdc = yes; then
4699
4700cat >>confdefs.h <<\_ACEOF
4701#define STDC_HEADERS 1
4702_ACEOF
4703
4704fi
4705
4706# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4717 inttypes.h stdint.h unistd.h
4718do
4719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4720echo "$as_me:$LINENO: checking for $ac_header" >&5
4721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725 cat >conftest.$ac_ext <<_ACEOF
4726#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004727/* confdefs.h. */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004732$ac_includes_default
4733
4734#include <$ac_header>
4735_ACEOF
4736rm -f conftest.$ac_objext
4737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest.$ac_objext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 eval "$as_ac_Header=yes"
4749else
4750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004751sed 's/^/| /' conftest.$ac_ext >&5
4752
John Criswell7a73b802003-06-30 21:59:07 +00004753eval "$as_ac_Header=no"
4754fi
4755rm -f conftest.$ac_objext conftest.$ac_ext
4756fi
4757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4759if test `eval echo '${'$as_ac_Header'}'` = yes; then
4760 cat >>confdefs.h <<_ACEOF
4761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762_ACEOF
4763
4764fi
4765
4766done
4767
4768
4769
4770for ac_header in dlfcn.h
4771do
4772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4773if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774 echo "$as_me:$LINENO: checking for $ac_header" >&5
4775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778fi
4779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781else
4782 # Is the header compilable?
4783echo "$as_me:$LINENO: checking $ac_header usability" >&5
4784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4785cat >conftest.$ac_ext <<_ACEOF
4786#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004787/* confdefs.h. */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004792$ac_includes_default
4793#include <$ac_header>
4794_ACEOF
4795rm -f conftest.$ac_objext
4796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_header_compiler=yes
4808else
4809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004810sed 's/^/| /' conftest.$ac_ext >&5
4811
John Criswell7a73b802003-06-30 21:59:07 +00004812ac_header_compiler=no
4813fi
4814rm -f conftest.$ac_objext conftest.$ac_ext
4815echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4816echo "${ECHO_T}$ac_header_compiler" >&6
4817
4818# Is the header present?
4819echo "$as_me:$LINENO: checking $ac_header presence" >&5
4820echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4821cat >conftest.$ac_ext <<_ACEOF
4822#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004823/* confdefs.h. */
4824_ACEOF
4825cat confdefs.h >>conftest.$ac_ext
4826cat >>conftest.$ac_ext <<_ACEOF
4827/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004828#include <$ac_header>
4829_ACEOF
4830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4832 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004833 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } >/dev/null; then
4838 if test -s conftest.err; then
4839 ac_cpp_err=$ac_c_preproc_warn_flag
4840 else
4841 ac_cpp_err=
4842 fi
4843else
4844 ac_cpp_err=yes
4845fi
4846if test -z "$ac_cpp_err"; then
4847 ac_header_preproc=yes
4848else
4849 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004850sed 's/^/| /' conftest.$ac_ext >&5
4851
John Criswell7a73b802003-06-30 21:59:07 +00004852 ac_header_preproc=no
4853fi
4854rm -f conftest.err conftest.$ac_ext
4855echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4856echo "${ECHO_T}$ac_header_preproc" >&6
4857
4858# So? What about this header?
4859case $ac_header_compiler:$ac_header_preproc in
4860 yes:no )
4861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4862echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865 (
4866 cat <<\_ASBOX
4867## ------------------------------------ ##
4868## Report this to bug-autoconf@gnu.org. ##
4869## ------------------------------------ ##
4870_ASBOX
4871 ) |
4872 sed "s/^/$as_me: WARNING: /" >&2
4873 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004874 no:yes )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4878echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4881 (
4882 cat <<\_ASBOX
4883## ------------------------------------ ##
4884## Report this to bug-autoconf@gnu.org. ##
4885## ------------------------------------ ##
4886_ASBOX
4887 ) |
4888 sed "s/^/$as_me: WARNING: /" >&2
4889 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004890esac
4891echo "$as_me:$LINENO: checking for $ac_header" >&5
4892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4893if eval "test \"\${$as_ac_Header+set}\" = set"; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 eval "$as_ac_Header=$ac_header_preproc"
4897fi
4898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4900
4901fi
4902if test `eval echo '${'$as_ac_Header'}'` = yes; then
4903 cat >>confdefs.h <<_ACEOF
4904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4905_ACEOF
4906
4907fi
4908
4909done
4910
John Criswell47fdd832003-07-14 16:52:07 +00004911ac_ext=cc
4912ac_cpp='$CXXCPP $CPPFLAGS'
4913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4917echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4918if test -z "$CXXCPP"; then
4919 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
John Criswell47fdd832003-07-14 16:52:07 +00004922 # Double quotes because CXXCPP needs to be expanded
4923 for CXXCPP in "$CXX -E" "/lib/cpp"
4924 do
4925 ac_preproc_ok=false
4926for ac_cxx_preproc_warn_flag in '' yes
4927do
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941#ifdef __STDC__
4942# include <limits.h>
4943#else
4944# include <assert.h>
4945#endif
John Criswell47fdd832003-07-14 16:52:07 +00004946 Syntax error
4947_ACEOF
4948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4950 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004951 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null; then
4956 if test -s conftest.err; then
4957 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004958 else
John Criswell47fdd832003-07-14 16:52:07 +00004959 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004960 fi
John Criswell47fdd832003-07-14 16:52:07 +00004961else
4962 ac_cpp_err=yes
4963fi
4964if test -z "$ac_cpp_err"; then
4965 :
4966else
4967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004968sed 's/^/| /' conftest.$ac_ext >&5
4969
John Criswell47fdd832003-07-14 16:52:07 +00004970 # Broken: fails on valid input.
4971continue
4972fi
4973rm -f conftest.err conftest.$ac_ext
4974
4975 # OK, works on sane cases. Now check whether non-existent headers
4976 # can be detected and how.
4977 cat >conftest.$ac_ext <<_ACEOF
4978#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004984#include <ac_nonexistent.h>
4985_ACEOF
4986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004989 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null; then
4994 if test -s conftest.err; then
4995 ac_cpp_err=$ac_cxx_preproc_warn_flag
4996 else
4997 ac_cpp_err=
4998 fi
4999else
5000 ac_cpp_err=yes
5001fi
5002if test -z "$ac_cpp_err"; then
5003 # Broken: success on invalid input.
5004continue
5005else
5006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005007sed 's/^/| /' conftest.$ac_ext >&5
5008
John Criswell47fdd832003-07-14 16:52:07 +00005009 # Passes both tests.
5010ac_preproc_ok=:
5011break
5012fi
5013rm -f conftest.err conftest.$ac_ext
5014
5015done
5016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017rm -f conftest.err conftest.$ac_ext
5018if $ac_preproc_ok; then
5019 break
John Criswell7a73b802003-06-30 21:59:07 +00005020fi
5021
John Criswell47fdd832003-07-14 16:52:07 +00005022 done
5023 ac_cv_prog_CXXCPP=$CXXCPP
5024
5025fi
5026 CXXCPP=$ac_cv_prog_CXXCPP
5027else
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029fi
5030echo "$as_me:$LINENO: result: $CXXCPP" >&5
5031echo "${ECHO_T}$CXXCPP" >&6
5032ac_preproc_ok=false
5033for ac_cxx_preproc_warn_flag in '' yes
5034do
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5042#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
5048#ifdef __STDC__
5049# include <limits.h>
5050#else
5051# include <assert.h>
5052#endif
John Criswell47fdd832003-07-14 16:52:07 +00005053 Syntax error
5054_ACEOF
5055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005058 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null; then
5063 if test -s conftest.err; then
5064 ac_cpp_err=$ac_cxx_preproc_warn_flag
5065 else
5066 ac_cpp_err=
5067 fi
5068else
5069 ac_cpp_err=yes
5070fi
5071if test -z "$ac_cpp_err"; then
5072 :
5073else
5074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005075sed 's/^/| /' conftest.$ac_ext >&5
5076
John Criswell47fdd832003-07-14 16:52:07 +00005077 # Broken: fails on valid input.
5078continue
5079fi
5080rm -f conftest.err conftest.$ac_ext
5081
5082 # OK, works on sane cases. Now check whether non-existent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5085#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005091#include <ac_nonexistent.h>
5092_ACEOF
5093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005096 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null; then
5101 if test -s conftest.err; then
5102 ac_cpp_err=$ac_cxx_preproc_warn_flag
5103 else
5104 ac_cpp_err=
5105 fi
5106else
5107 ac_cpp_err=yes
5108fi
5109if test -z "$ac_cpp_err"; then
5110 # Broken: success on invalid input.
5111continue
5112else
5113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005114sed 's/^/| /' conftest.$ac_ext >&5
5115
John Criswell47fdd832003-07-14 16:52:07 +00005116 # Passes both tests.
5117ac_preproc_ok=:
5118break
5119fi
5120rm -f conftest.err conftest.$ac_ext
5121
5122done
5123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124rm -f conftest.err conftest.$ac_ext
5125if $ac_preproc_ok; then
5126 :
5127else
John Criswell0c38eaf2003-09-10 15:17:25 +00005128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5129See \`config.log' for more details." >&5
5130echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5131See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005132 { (exit 1); exit 1; }; }
5133fi
5134
5135ac_ext=cc
5136ac_cpp='$CXXCPP $CPPFLAGS'
5137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140
5141
5142ac_ext=f
5143ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5144ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5146if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005147 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 +00005148 do
5149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5151echo "$as_me:$LINENO: checking for $ac_word" >&5
5152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153if test "${ac_cv_prog_F77+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156 if test -n "$F77"; then
5157 ac_cv_prog_F77="$F77" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170done
5171done
5172
5173fi
5174fi
5175F77=$ac_cv_prog_F77
5176if test -n "$F77"; then
5177 echo "$as_me:$LINENO: result: $F77" >&5
5178echo "${ECHO_T}$F77" >&6
5179else
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
5182fi
5183
5184 test -n "$F77" && break
5185 done
5186fi
5187if test -z "$F77"; then
5188 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005189 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 +00005190do
5191 # Extract the first word of "$ac_prog", so it can be a program name with args.
5192set dummy $ac_prog; ac_word=$2
5193echo "$as_me:$LINENO: checking for $ac_word" >&5
5194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 if test -n "$ac_ct_F77"; then
5199 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_ac_ct_F77="$ac_prog"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213done
5214
5215fi
5216fi
5217ac_ct_F77=$ac_cv_prog_ac_ct_F77
5218if test -n "$ac_ct_F77"; then
5219 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5220echo "${ECHO_T}$ac_ct_F77" >&6
5221else
5222 echo "$as_me:$LINENO: result: no" >&5
5223echo "${ECHO_T}no" >&6
5224fi
5225
5226 test -n "$ac_ct_F77" && break
5227done
5228
5229 F77=$ac_ct_F77
5230fi
5231
5232
5233# Provide some information about the compiler.
John Criswell08acb9b2003-09-16 02:12:45 +00005234echo "$as_me:5234:" \
John Criswell47fdd832003-07-14 16:52:07 +00005235 "checking for Fortran 77 compiler version" >&5
5236ac_compiler=`set X $ac_compile; echo $2`
5237{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5238 (eval $ac_compiler --version </dev/null >&5) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }
5242{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5243 (eval $ac_compiler -v </dev/null >&5) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }
5247{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5248 (eval $ac_compiler -V </dev/null >&5) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }
5252
5253# If we don't use `.F' as extension, the preprocessor is not run on the
5254# input file.
5255ac_save_ext=$ac_ext
5256ac_ext=F
5257echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5258echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5259if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 cat >conftest.$ac_ext <<_ACEOF
5263 program main
5264#ifndef __GNUC__
5265 choke me
5266#endif
5267
5268 end
5269_ACEOF
5270rm -f conftest.$ac_objext
5271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 (eval $ac_compile) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try='test -s conftest.$ac_objext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_compiler_gnu=yes
5283else
5284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005285sed 's/^/| /' conftest.$ac_ext >&5
5286
John Criswell47fdd832003-07-14 16:52:07 +00005287ac_compiler_gnu=no
5288fi
5289rm -f conftest.$ac_objext conftest.$ac_ext
5290ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5291
5292fi
5293echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5294echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5295ac_ext=$ac_save_ext
5296G77=`test $ac_compiler_gnu = yes && echo yes`
5297ac_test_FFLAGS=${FFLAGS+set}
5298ac_save_FFLAGS=$FFLAGS
5299FFLAGS=
5300echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5301echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5302if test "${ac_cv_prog_f77_g+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305 FFLAGS=-g
5306cat >conftest.$ac_ext <<_ACEOF
5307 program main
5308
5309 end
5310_ACEOF
5311rm -f conftest.$ac_objext
5312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_prog_f77_g=yes
5324else
5325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005326sed 's/^/| /' conftest.$ac_ext >&5
5327
John Criswell47fdd832003-07-14 16:52:07 +00005328ac_cv_prog_f77_g=no
5329fi
5330rm -f conftest.$ac_objext conftest.$ac_ext
5331
5332fi
5333echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5334echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5335if test "$ac_test_FFLAGS" = set; then
5336 FFLAGS=$ac_save_FFLAGS
5337elif test $ac_cv_prog_f77_g = yes; then
5338 if test "$G77" = yes; then
5339 FFLAGS="-g -O2"
5340 else
5341 FFLAGS="-g"
5342 fi
5343else
5344 if test "$G77" = yes; then
5345 FFLAGS="-O2"
5346 else
5347 FFLAGS=
5348 fi
5349fi
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357
5358# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5359
5360# find the maximum length of command line arguments
5361echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5362echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5363if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 i=0
5367 testring="ABCD"
5368
5369 case $build_os in
5370 msdosdjgpp*)
5371 # On DJGPP, this test can blow up pretty badly due to problems in libc
5372 # (any single argument exceeding 2000 bytes causes a buffer overrun
5373 # during glob expansion). Even if it were fixed, the result of this
5374 # check would be larger than it should be.
5375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5376 ;;
5377
5378 gnu*)
5379 # Under GNU Hurd, this test is not required because there is
5380 # no limit to the length of command line arguments.
5381 # Libtool will interpret -1 as no limit whatsoever
5382 lt_cv_sys_max_cmd_len=-1;
5383 ;;
5384
5385 cygwin* | mingw*)
5386 # On Win9x/ME, this test blows up -- it succeeds, but takes
5387 # about 5 minutes as the teststring grows exponentially.
5388 # Worse, since 9x/ME are not pre-emptively multitasking,
5389 # you end up with a "frozen" computer, even though with patience
5390 # the test eventually succeeds (with a max line length of 256k).
5391 # Instead, let's just punt: use the minimum linelength reported by
5392 # all of the supported platforms: 8192 (on NT/2K/XP).
5393 lt_cv_sys_max_cmd_len=8192;
5394 ;;
5395
5396 *)
5397 # If test is not a shell built-in, we'll probably end up computing a
5398 # maximum length that is only half of the actual maximum length, but
5399 # we can't tell.
5400 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5401 = "XX$testring") >/dev/null 2>&1 &&
5402 new_result=`expr "X$testring" : ".*" 2>&1` &&
5403 lt_cv_sys_max_cmd_len=$new_result &&
5404 test $i != 17 # 1/2 MB should be enough
5405 do
5406 i=`expr $i + 1`
5407 testring=$testring$testring
5408 done
5409 testring=
5410 # Add a significant safety factor because C++ compilers can tack on massive
5411 # amounts of additional arguments before passing them to the linker.
5412 # It appears as though 1/2 is a usable value.
5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5414 ;;
5415 esac
5416
5417fi
5418
5419if test -n $lt_cv_sys_max_cmd_len ; then
5420 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5421echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5422else
5423 echo "$as_me:$LINENO: result: none" >&5
5424echo "${ECHO_T}none" >&6
5425fi
5426
5427
5428
5429
5430# Check for command to grab the raw symbol name followed by C symbol from nm.
5431echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5432echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5433if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436
5437# These are sane defaults that work on at least a few old systems.
5438# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5439
5440# Character class describing NM global symbol codes.
5441symcode='[BCDEGRST]'
5442
5443# Regexp to match symbols that can be accessed directly from C.
5444sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5445
5446# Transform the above into a raw symbol and a C symbol.
5447symxfrm='\1 \2\3 \3'
5448
5449# Transform an extracted symbol line into a proper C declaration
5450lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5451
5452# Transform an extracted symbol line into symbol name and symbol address
5453lt_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'"
5454
5455# Define system-specific variables.
5456case $host_os in
5457aix*)
5458 symcode='[BCDT]'
5459 ;;
5460cygwin* | mingw* | pw32*)
5461 symcode='[ABCDGISTW]'
5462 ;;
5463hpux*) # Its linker distinguishes data from code symbols
5464 if test "$host_cpu" = ia64; then
5465 symcode='[ABCDEGRST]'
5466 fi
5467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5468 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'"
5469 ;;
5470irix* | nonstopux*)
5471 symcode='[BCDEGRST]'
5472 ;;
5473osf*)
5474 symcode='[BCDEGQRST]'
5475 ;;
5476solaris* | sysv5*)
5477 symcode='[BDT]'
5478 ;;
5479sysv4)
5480 symcode='[DFNSTU]'
5481 ;;
5482esac
5483
5484# Handle CRLF in mingw tool chain
5485opt_cr=
5486case $build_os in
5487mingw*)
5488 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5489 ;;
5490esac
5491
5492# If we're using GNU nm, then use its standard symbol codes.
5493case `$NM -V 2>&1` in
5494*GNU* | *'with BFD'*)
5495 symcode='[ABCDGISTW]' ;;
5496esac
5497
5498# Try without a prefix undercore, then with it.
5499for ac_symprfx in "" "_"; do
5500
5501 # Write the raw and C identifiers.
5502 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5503
5504 # Check to see that the pipe works correctly.
5505 pipe_works=no
5506
5507 rm -f conftest*
5508 cat > conftest.$ac_ext <<EOF
5509#ifdef __cplusplus
5510extern "C" {
5511#endif
5512char nm_test_var;
5513void nm_test_func(){}
5514#ifdef __cplusplus
5515}
5516#endif
5517int main(){nm_test_var='a';nm_test_func();return(0);}
5518EOF
5519
5520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521 (eval $ac_compile) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; then
5525 # Now try to grab the symbols.
5526 nlist=conftest.nm
5527 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5528 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && test -s "$nlist"; then
5532 # Try sorting and uniquifying the output.
5533 if sort "$nlist" | uniq > "$nlist"T; then
5534 mv -f "$nlist"T "$nlist"
5535 else
5536 rm -f "$nlist"T
5537 fi
5538
5539 # Make sure that we snagged all the symbols we need.
5540 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5541 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5542 cat <<EOF > conftest.$ac_ext
5543#ifdef __cplusplus
5544extern "C" {
5545#endif
5546
5547EOF
5548 # Now generate the symbol file.
5549 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5550
5551 cat <<EOF >> conftest.$ac_ext
5552#if defined (__STDC__) && __STDC__
5553# define lt_ptr_t void *
5554#else
5555# define lt_ptr_t char *
5556# define const
5557#endif
5558
5559/* The mapping between symbol names and symbols. */
5560const struct {
5561 const char *name;
5562 lt_ptr_t address;
5563}
5564lt_preloaded_symbols[] =
5565{
5566EOF
5567 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5568 cat <<\EOF >> conftest.$ac_ext
5569 {0, (lt_ptr_t) 0}
5570};
5571
5572#ifdef __cplusplus
5573}
5574#endif
5575EOF
5576 # Now try linking the two files.
5577 mv conftest.$ac_objext conftstm.$ac_objext
5578 lt_save_LIBS="$LIBS"
5579 lt_save_CFLAGS="$CFLAGS"
5580 LIBS="conftstm.$ac_objext"
5581 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5587 pipe_works=yes
5588 fi
5589 LIBS="$lt_save_LIBS"
5590 CFLAGS="$lt_save_CFLAGS"
5591 else
5592 echo "cannot find nm_test_func in $nlist" >&5
5593 fi
5594 else
5595 echo "cannot find nm_test_var in $nlist" >&5
5596 fi
5597 else
5598 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5599 fi
5600 else
5601 echo "$progname: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5603 fi
5604 rm -f conftest* conftst*
5605
5606 # Do not use the global_symbol_pipe unless it works.
5607 if test "$pipe_works" = yes; then
5608 break
5609 else
5610 lt_cv_sys_global_symbol_pipe=
5611 fi
5612done
5613
5614fi
5615
5616if test -z "$lt_cv_sys_global_symbol_pipe"; then
5617 lt_cv_sys_global_symbol_to_cdecl=
5618fi
5619if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5620 echo "$as_me:$LINENO: result: failed" >&5
5621echo "${ECHO_T}failed" >&6
5622else
5623 echo "$as_me:$LINENO: result: ok" >&5
5624echo "${ECHO_T}ok" >&6
5625fi
5626
5627echo "$as_me:$LINENO: checking for objdir" >&5
5628echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5629if test "${lt_cv_objdir+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632 rm -f .libs 2>/dev/null
5633mkdir .libs 2>/dev/null
5634if test -d .libs; then
5635 lt_cv_objdir=.libs
5636else
5637 # MS-DOS does not allow filenames that begin with a dot.
5638 lt_cv_objdir=_libs
5639fi
5640rmdir .libs 2>/dev/null
5641fi
5642echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5643echo "${ECHO_T}$lt_cv_objdir" >&6
5644objdir=$lt_cv_objdir
5645
5646
5647
5648
5649
5650case $host_os in
5651aix3*)
5652 # AIX sometimes has problems with the GCC collect2 program. For some
5653 # reason, if we set the COLLECT_NAMES environment variable, the problems
5654 # vanish in a puff of smoke.
5655 if test "X${COLLECT_NAMES+set}" != Xset; then
5656 COLLECT_NAMES=
5657 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005658 fi
5659 ;;
5660esac
5661
John Criswell47fdd832003-07-14 16:52:07 +00005662# Sed substitution that helps us do robust quoting. It backslashifies
5663# metacharacters that are still active within double-quoted strings.
5664Xsed='sed -e s/^X//'
5665sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5666
5667# Same as above, but do not quote variable references.
5668double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5669
5670# Sed substitution to delay expansion of an escaped shell variable in a
5671# double_quote_subst'ed string.
5672delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5673
5674# Sed substitution to avoid accidental globbing in evaled expressions
5675no_glob_subst='s/\*/\\\*/g'
5676
5677# Constants:
5678rm="rm -f"
5679
5680# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005681default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005682can_build_shared=yes
5683
5684# All known linkers require a `.a' archive for static linking (except M$VC,
5685# which needs '.lib').
5686libext=a
5687ltmain="$ac_aux_dir/ltmain.sh"
5688ofile="$default_ofile"
5689with_gnu_ld="$lt_cv_prog_gnu_ld"
5690
5691if test -n "$ac_tool_prefix"; then
5692 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5693set dummy ${ac_tool_prefix}ar; ac_word=$2
5694echo "$as_me:$LINENO: checking for $ac_word" >&5
5695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5696if test "${ac_cv_prog_AR+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699 if test -n "$AR"; then
5700 ac_cv_prog_AR="$AR" # Let the user override the test.
5701else
5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703for as_dir in $PATH
5704do
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709 ac_cv_prog_AR="${ac_tool_prefix}ar"
5710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5712 fi
5713done
5714done
5715
5716fi
5717fi
5718AR=$ac_cv_prog_AR
5719if test -n "$AR"; then
5720 echo "$as_me:$LINENO: result: $AR" >&5
5721echo "${ECHO_T}$AR" >&6
5722else
5723 echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6
5725fi
5726
5727fi
5728if test -z "$ac_cv_prog_AR"; then
5729 ac_ct_AR=$AR
5730 # Extract the first word of "ar", so it can be a program name with args.
5731set dummy ar; ac_word=$2
5732echo "$as_me:$LINENO: checking for $ac_word" >&5
5733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 if test -n "$ac_ct_AR"; then
5738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_ac_ct_AR="ar"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752done
5753
5754 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5755fi
5756fi
5757ac_ct_AR=$ac_cv_prog_ac_ct_AR
5758if test -n "$ac_ct_AR"; then
5759 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5760echo "${ECHO_T}$ac_ct_AR" >&6
5761else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764fi
5765
5766 AR=$ac_ct_AR
5767else
5768 AR="$ac_cv_prog_AR"
5769fi
5770
John Criswell7a73b802003-06-30 21:59:07 +00005771if test -n "$ac_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5774echo "$as_me:$LINENO: checking for $ac_word" >&5
5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5776if test "${ac_cv_prog_RANLIB+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779 if test -n "$RANLIB"; then
5780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793done
5794done
5795
5796fi
5797fi
5798RANLIB=$ac_cv_prog_RANLIB
5799if test -n "$RANLIB"; then
5800 echo "$as_me:$LINENO: result: $RANLIB" >&5
5801echo "${ECHO_T}$RANLIB" >&6
5802else
5803 echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805fi
5806
5807fi
5808if test -z "$ac_cv_prog_RANLIB"; then
5809 ac_ct_RANLIB=$RANLIB
5810 # Extract the first word of "ranlib", so it can be a program name with args.
5811set dummy ranlib; ac_word=$2
5812echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 if test -n "$ac_ct_RANLIB"; then
5818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_ac_ct_RANLIB="ranlib"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832done
5833
5834 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5835fi
5836fi
5837ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5838if test -n "$ac_ct_RANLIB"; then
5839 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5840echo "${ECHO_T}$ac_ct_RANLIB" >&6
5841else
5842 echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6
5844fi
5845
5846 RANLIB=$ac_ct_RANLIB
5847else
5848 RANLIB="$ac_cv_prog_RANLIB"
5849fi
5850
5851if test -n "$ac_tool_prefix"; then
5852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5853set dummy ${ac_tool_prefix}strip; ac_word=$2
5854echo "$as_me:$LINENO: checking for $ac_word" >&5
5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5856if test "${ac_cv_prog_STRIP+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859 if test -n "$STRIP"; then
5860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873done
5874done
5875
5876fi
5877fi
5878STRIP=$ac_cv_prog_STRIP
5879if test -n "$STRIP"; then
5880 echo "$as_me:$LINENO: result: $STRIP" >&5
5881echo "${ECHO_T}$STRIP" >&6
5882else
5883 echo "$as_me:$LINENO: result: no" >&5
5884echo "${ECHO_T}no" >&6
5885fi
5886
5887fi
5888if test -z "$ac_cv_prog_STRIP"; then
5889 ac_ct_STRIP=$STRIP
5890 # Extract the first word of "strip", so it can be a program name with args.
5891set dummy strip; ac_word=$2
5892echo "$as_me:$LINENO: checking for $ac_word" >&5
5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897 if test -n "$ac_ct_STRIP"; then
5898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_STRIP="strip"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912done
5913
5914 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5915fi
5916fi
5917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5918if test -n "$ac_ct_STRIP"; then
5919 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5920echo "${ECHO_T}$ac_ct_STRIP" >&6
5921else
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
5924fi
5925
5926 STRIP=$ac_ct_STRIP
5927else
5928 STRIP="$ac_cv_prog_STRIP"
5929fi
5930
5931
John Criswell7a73b802003-06-30 21:59:07 +00005932old_CC="$CC"
5933old_CFLAGS="$CFLAGS"
5934
5935# Set sane defaults for various variables
5936test -z "$AR" && AR=ar
5937test -z "$AR_FLAGS" && AR_FLAGS=cru
5938test -z "$AS" && AS=as
5939test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005940test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005941test -z "$DLLTOOL" && DLLTOOL=dlltool
5942test -z "$LD" && LD=ld
5943test -z "$LN_S" && LN_S="ln -s"
5944test -z "$MAGIC_CMD" && MAGIC_CMD=file
5945test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005946test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005947test -z "$OBJDUMP" && OBJDUMP=objdump
5948test -z "$RANLIB" && RANLIB=:
5949test -z "$STRIP" && STRIP=:
5950test -z "$ac_objext" && ac_objext=o
5951
John Criswell7a73b802003-06-30 21:59:07 +00005952# Determine commands to create old-style static archives.
5953old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5954old_postinstall_cmds='chmod 644 $oldlib'
5955old_postuninstall_cmds=
5956
5957if test -n "$RANLIB"; then
5958 case $host_os in
5959 openbsd*)
5960 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5961 ;;
5962 *)
5963 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5964 ;;
5965 esac
5966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5967fi
5968
John Criswell47fdd832003-07-14 16:52:07 +00005969# Only perform the check for file, if the check method requires it
5970case $deplibs_check_method in
5971file_magic*)
5972 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5973 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5974echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5975if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005977else
John Criswell47fdd832003-07-14 16:52:07 +00005978 case $MAGIC_CMD in
5979[\\/*] | ?:[\\/]*)
5980 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5981 ;;
5982*)
5983 lt_save_MAGIC_CMD="$MAGIC_CMD"
5984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5986 for ac_dir in $ac_dummy; do
5987 IFS="$lt_save_ifs"
5988 test -z "$ac_dir" && ac_dir=.
5989 if test -f $ac_dir/${ac_tool_prefix}file; then
5990 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5991 if test -n "$file_magic_test_file"; then
5992 case $deplibs_check_method in
5993 "file_magic "*)
5994 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5997 $EGREP "$file_magic_regex" > /dev/null; then
5998 :
5999 else
6000 cat <<EOF 1>&2
6001
6002*** Warning: the command libtool uses to detect shared libraries,
6003*** $file_magic_cmd, produces output that libtool cannot recognize.
6004*** The result is that libtool may fail to recognize shared libraries
6005*** as such. This will affect the creation of libtool libraries that
6006*** depend on shared libraries, but programs linked with such libtool
6007*** libraries will work regardless of this problem. Nevertheless, you
6008*** may want to report the problem to your system manager and/or to
6009*** bug-libtool@gnu.org
6010
6011EOF
6012 fi ;;
6013 esac
6014 fi
6015 break
6016 fi
6017 done
6018 IFS="$lt_save_ifs"
6019 MAGIC_CMD="$lt_save_MAGIC_CMD"
6020 ;;
6021esac
John Criswell7a73b802003-06-30 21:59:07 +00006022fi
John Criswell7a73b802003-06-30 21:59:07 +00006023
John Criswell47fdd832003-07-14 16:52:07 +00006024MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6025if test -n "$MAGIC_CMD"; then
6026 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6027echo "${ECHO_T}$MAGIC_CMD" >&6
6028else
6029 echo "$as_me:$LINENO: result: no" >&5
6030echo "${ECHO_T}no" >&6
6031fi
John Criswell7a73b802003-06-30 21:59:07 +00006032
John Criswell47fdd832003-07-14 16:52:07 +00006033if test -z "$lt_cv_path_MAGIC_CMD"; then
6034 if test -n "$ac_tool_prefix"; then
6035 echo "$as_me:$LINENO: checking for file" >&5
6036echo $ECHO_N "checking for file... $ECHO_C" >&6
6037if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 case $MAGIC_CMD in
6041[\\/*] | ?:[\\/]*)
6042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6043 ;;
6044*)
6045 lt_save_MAGIC_CMD="$MAGIC_CMD"
6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048 for ac_dir in $ac_dummy; do
6049 IFS="$lt_save_ifs"
6050 test -z "$ac_dir" && ac_dir=.
6051 if test -f $ac_dir/file; then
6052 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6053 if test -n "$file_magic_test_file"; then
6054 case $deplibs_check_method in
6055 "file_magic "*)
6056 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059 $EGREP "$file_magic_regex" > /dev/null; then
6060 :
6061 else
6062 cat <<EOF 1>&2
6063
6064*** Warning: the command libtool uses to detect shared libraries,
6065*** $file_magic_cmd, produces output that libtool cannot recognize.
6066*** The result is that libtool may fail to recognize shared libraries
6067*** as such. This will affect the creation of libtool libraries that
6068*** depend on shared libraries, but programs linked with such libtool
6069*** libraries will work regardless of this problem. Nevertheless, you
6070*** may want to report the problem to your system manager and/or to
6071*** bug-libtool@gnu.org
6072
6073EOF
6074 fi ;;
6075 esac
6076 fi
6077 break
6078 fi
6079 done
6080 IFS="$lt_save_ifs"
6081 MAGIC_CMD="$lt_save_MAGIC_CMD"
6082 ;;
6083esac
6084fi
6085
6086MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087if test -n "$MAGIC_CMD"; then
6088 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089echo "${ECHO_T}$MAGIC_CMD" >&6
6090else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093fi
6094
6095 else
6096 MAGIC_CMD=:
6097 fi
6098fi
6099
6100 fi
6101 ;;
6102esac
6103
6104enable_dlopen=no
6105enable_win32_dll=no
6106
6107# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6108if test "${enable_libtool_lock+set}" = set; then
6109 enableval="$enable_libtool_lock"
6110
6111fi;
6112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6113
John Criswell7a73b802003-06-30 21:59:07 +00006114
6115# Check whether --with-pic or --without-pic was given.
6116if test "${with_pic+set}" = set; then
6117 withval="$with_pic"
6118 pic_mode="$withval"
6119else
6120 pic_mode=default
6121fi;
6122test -z "$pic_mode" && pic_mode=default
6123
John Criswell47fdd832003-07-14 16:52:07 +00006124# Use C for the default configuration in the libtool script
6125tagname=
6126lt_save_CC="$CC"
6127ac_ext=c
6128ac_cpp='$CPP $CPPFLAGS'
6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133
6134# Source file extension for C test sources.
6135ac_ext=c
6136
6137# Object file extension for compiled C test sources.
6138objext=o
6139objext=$objext
6140
6141# Code to be used in simple compile tests
6142lt_simple_compile_test_code="int some_variable = 0;\n"
6143
6144# Code to be used in simple link tests
6145lt_simple_link_test_code='int main(){return(0);}\n'
6146
6147
6148# If no C compiler was specified, use CC.
6149LTCC=${LTCC-"$CC"}
6150
6151# Allow CC to be a program name with arguments.
6152compiler=$CC
6153
6154
6155#
6156# Check for any special shared library compilation flags.
6157#
6158lt_prog_cc_shlib=
6159if test "$GCC" = no; then
6160 case $host_os in
6161 sco3.2v5*)
6162 lt_prog_cc_shlib='-belf'
6163 ;;
6164 esac
6165fi
6166if test -n "$lt_prog_cc_shlib"; then
6167 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6168echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6169 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6170 else
6171 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6172echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6173 lt_cv_prog_cc_can_build_shared=no
6174 fi
6175fi
6176
6177
6178#
6179# Check to make sure the static flag actually works.
6180#
6181echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6182echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6183if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
John Criswell47fdd832003-07-14 16:52:07 +00006186 lt_prog_compiler_static_works=no
6187 save_LDFLAGS="$LDFLAGS"
6188 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6189 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6191 # The compiler can only warn and ignore the option if not recognized
6192 # So say no if there are warnings
6193 if test -s conftest.err; then
6194 # Append any errors to the config.log.
6195 cat conftest.err 1>&5
6196 else
6197 lt_prog_compiler_static_works=yes
6198 fi
6199 fi
6200 $rm conftest*
6201 LDFLAGS="$save_LDFLAGS"
6202
6203fi
6204echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6205echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6206
6207if test x"$lt_prog_compiler_static_works" = xyes; then
6208 :
6209else
6210 lt_prog_compiler_static=
6211fi
6212
6213
6214
6215## CAVEAT EMPTOR:
6216## There is no encapsulation within the following macros, do not change
6217## the running order or otherwise move them around unless you know exactly
6218## what you are doing...
6219
6220lt_prog_compiler_no_builtin_flag=
6221
6222if test "$GCC" = yes; then
6223 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6224
6225 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6226echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6227if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230 lt_cv_prog_compiler_rtti_exceptions=no
6231 ac_outfile=conftest.$ac_objext
6232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6233 lt_compiler_flag="-fno-rtti -fno-exceptions"
6234 # Insert the option either (1) after the last *FLAGS variable, or
6235 # (2) before a word containing "conftest.", or (3) at the end.
6236 # Note that $ac_compile itself does not contain backslashes and begins
6237 # with a dollar sign (not a hyphen), so the echo should work correctly.
6238 # The option is referenced via a variable to avoid confusing sed.
6239 lt_compile=`echo "$ac_compile" | $SED \
6240 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6242 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +00006243 (eval echo "\"\$as_me:6243: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006244 (eval "$lt_compile" 2>conftest.err)
6245 ac_status=$?
6246 cat conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +00006247 echo "$as_me:6247: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006248 if (exit $ac_status) && test -s "$ac_outfile"; then
6249 # The compiler can only warn and ignore the option if not recognized
6250 # So say no if there are warnings
6251 if test ! -s conftest.err; then
6252 lt_cv_prog_compiler_rtti_exceptions=yes
6253 fi
6254 fi
6255 $rm conftest*
6256
6257fi
6258echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6259echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6260
6261if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6262 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6263else
6264 :
6265fi
6266
6267fi
6268
6269lt_prog_compiler_wl=
6270lt_prog_compiler_pic=
6271lt_prog_compiler_static=
6272
6273echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6274echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006275
6276 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006277 lt_prog_compiler_wl='-Wl,'
6278 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006279
6280 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006281 aix*)
6282 # All AIX code is PIC.
6283 if test "$host_cpu" = ia64; then
6284 # AIX 5 now supports IA64 processor
6285 lt_prog_compiler_static='-Bstatic'
6286 fi
John Criswell7a73b802003-06-30 21:59:07 +00006287 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006288
John Criswell7a73b802003-06-30 21:59:07 +00006289 amigaos*)
6290 # FIXME: we need at least 68020 code to build shared libraries, but
6291 # adding the `-m68020' flag to GCC prevents building anything better,
6292 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006294 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006295
6296 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006297 # PIC is the default for these OSes.
6298 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006299
6300 mingw* | pw32* | os2*)
6301 # This hack is so that the source file can tell whether it is being
6302 # built for inclusion in a dll (and should export symbols for example).
6303 lt_prog_compiler_pic='-DDLL_EXPORT'
6304 ;;
6305
John Criswell7a73b802003-06-30 21:59:07 +00006306 darwin* | rhapsody*)
6307 # PIC is the default on this platform
6308 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006309 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006310 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006311
6312 msdosdjgpp*)
6313 # Just because we use GCC doesn't mean we suddenly get shared libraries
6314 # on systems that don't support them.
6315 lt_prog_compiler_can_build_shared=no
6316 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006317 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006318
John Criswell7a73b802003-06-30 21:59:07 +00006319 sysv4*MP*)
6320 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006321 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006322 fi
6323 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006324
6325 hpux*)
6326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6327 # not for PA HP-UX.
6328 case "$host_cpu" in
6329 hppa*64*|ia64*)
6330 # +Z the default
6331 ;;
6332 *)
6333 lt_prog_compiler_pic='-fPIC'
6334 ;;
6335 esac
6336 ;;
6337
John Criswell7a73b802003-06-30 21:59:07 +00006338 *)
John Criswell47fdd832003-07-14 16:52:07 +00006339 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006340 ;;
6341 esac
6342 else
John Criswell47fdd832003-07-14 16:52:07 +00006343 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006344 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006345 aix*)
6346 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006347 if test "$host_cpu" = ia64; then
6348 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006349 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006350 else
John Criswell47fdd832003-07-14 16:52:07 +00006351 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006352 fi
6353 ;;
6354
John Criswell47fdd832003-07-14 16:52:07 +00006355 mingw* | pw32* | os2*)
6356 # This hack is so that the source file can tell whether it is being
6357 # built for inclusion in a dll (and should export symbols for example).
6358 lt_prog_compiler_pic='-DDLL_EXPORT'
6359 ;;
6360
John Criswell7a73b802003-06-30 21:59:07 +00006361 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006362 lt_prog_compiler_wl='-Wl,'
6363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6364 # not for PA HP-UX.
6365 case "$host_cpu" in
6366 hppa*64*|ia64*)
6367 # +Z the default
6368 ;;
6369 *)
6370 lt_prog_compiler_pic='+Z'
6371 ;;
6372 esac
6373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6374 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006375 ;;
6376
John Criswell47fdd832003-07-14 16:52:07 +00006377 irix5* | irix6* | nonstopux*)
6378 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006379 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006380 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006381 ;;
6382
6383 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006384 lt_prog_compiler_pic='-KPIC'
6385 lt_prog_compiler_static='-Bstatic'
6386 ;;
6387
6388 linux*)
6389 case $CC in
6390 icc|ecc)
6391 lt_prog_compiler_wl='-Wl,'
6392 lt_prog_compiler_pic='-KPIC'
6393 lt_prog_compiler_static='-static'
6394 ;;
6395 ccc)
6396 lt_prog_compiler_wl='-Wl,'
6397 # All Alpha code is PIC.
6398 lt_prog_compiler_static='-non_shared'
6399 ;;
6400 esac
John Criswell7a73b802003-06-30 21:59:07 +00006401 ;;
6402
6403 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006404 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006405 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006406 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006407 ;;
6408
6409 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006410 lt_prog_compiler_pic='-Kpic'
6411 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006412 ;;
6413
6414 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006415 lt_prog_compiler_wl='-Wl,'
6416 lt_prog_compiler_pic='-KPIC'
6417 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006418 ;;
6419
6420 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006421 lt_prog_compiler_wl='-Qoption ld '
6422 lt_prog_compiler_pic='-PIC'
6423 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006424 ;;
6425
6426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006427 lt_prog_compiler_wl='-Wl,'
6428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006430 ;;
6431
6432 sysv4*MP*)
6433 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006434 lt_prog_compiler_pic='-Kconform_pic'
6435 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006436 fi
6437 ;;
6438
John Criswell47fdd832003-07-14 16:52:07 +00006439 uts4*)
6440 lt_prog_compiler_pic='-pic'
6441 lt_prog_compiler_static='-Bstatic'
6442 ;;
6443
John Criswell7a73b802003-06-30 21:59:07 +00006444 *)
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006446 ;;
6447 esac
6448 fi
6449
John Criswell47fdd832003-07-14 16:52:07 +00006450echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6451echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006452
John Criswell47fdd832003-07-14 16:52:07 +00006453#
6454# Check to make sure the PIC flag actually works.
6455#
6456if test -n "$lt_prog_compiler_pic"; then
6457 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6458echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6459if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
John Criswell47fdd832003-07-14 16:52:07 +00006462 lt_prog_compiler_pic_works=no
6463 ac_outfile=conftest.$ac_objext
6464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6465 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6466 # Insert the option either (1) after the last *FLAGS variable, or
6467 # (2) before a word containing "conftest.", or (3) at the end.
6468 # Note that $ac_compile itself does not contain backslashes and begins
6469 # with a dollar sign (not a hyphen), so the echo should work correctly.
6470 # The option is referenced via a variable to avoid confusing sed.
6471 lt_compile=`echo "$ac_compile" | $SED \
6472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6474 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +00006475 (eval echo "\"\$as_me:6475: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006476 (eval "$lt_compile" 2>conftest.err)
6477 ac_status=$?
6478 cat conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +00006479 echo "$as_me:6479: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006480 if (exit $ac_status) && test -s "$ac_outfile"; then
6481 # The compiler can only warn and ignore the option if not recognized
6482 # So say no if there are warnings
6483 if test ! -s conftest.err; then
6484 lt_prog_compiler_pic_works=yes
6485 fi
6486 fi
6487 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006488
John Criswell47fdd832003-07-14 16:52:07 +00006489fi
6490echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6491echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006492
John Criswell47fdd832003-07-14 16:52:07 +00006493if test x"$lt_prog_compiler_pic_works" = xyes; then
6494 case $lt_prog_compiler_pic in
6495 "" | " "*) ;;
6496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6497 esac
John Criswell7a73b802003-06-30 21:59:07 +00006498else
John Criswell47fdd832003-07-14 16:52:07 +00006499 lt_prog_compiler_pic=
6500 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006501fi
6502
John Criswell7a73b802003-06-30 21:59:07 +00006503fi
John Criswell47fdd832003-07-14 16:52:07 +00006504case "$host_os" in
6505 # For platforms which do not support PIC, -DPIC is meaningless:
6506 *djgpp*)
6507 lt_prog_compiler_pic=
6508 ;;
6509 *)
6510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6511 ;;
6512esac
John Criswell7a73b802003-06-30 21:59:07 +00006513
John Criswell7a73b802003-06-30 21:59:07 +00006514echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6515echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006516if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
John Criswell47fdd832003-07-14 16:52:07 +00006519 lt_cv_prog_compiler_c_o=no
6520 $rm -r conftest 2>/dev/null
6521 mkdir conftest
6522 cd conftest
6523 mkdir out
6524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006525
John Criswell47fdd832003-07-14 16:52:07 +00006526 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6527 # that will create temporary files in the current directory regardless of
6528 # the output directory. Thus, making CWD read-only will cause this test
6529 # to fail, enabling locking or at least warning the user not to do parallel
6530 # builds.
6531 chmod -w .
6532
6533 lt_compiler_flag="-o out/conftest2.$ac_objext"
6534 # Insert the option either (1) after the last *FLAGS variable, or
6535 # (2) before a word containing "conftest.", or (3) at the end.
6536 # Note that $ac_compile itself does not contain backslashes and begins
6537 # with a dollar sign (not a hyphen), so the echo should work correctly.
6538 lt_compile=`echo "$ac_compile" | $SED \
6539 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6541 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +00006542 (eval echo "\"\$as_me:6542: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006543 (eval "$lt_compile" 2>out/conftest.err)
6544 ac_status=$?
6545 cat out/conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +00006546 echo "$as_me:6546: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6548 then
6549 # The compiler can only warn and ignore the option if not recognized
6550 # So say no if there are warnings
6551 if test ! -s out/conftest.err; then
6552 lt_cv_prog_compiler_c_o=yes
6553 fi
6554 fi
6555 chmod u+w .
6556 $rm conftest* out/*
6557 rmdir out
6558 cd ..
6559 rmdir conftest
6560 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006561
6562fi
John Criswell47fdd832003-07-14 16:52:07 +00006563echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6564echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006565
John Criswell7a73b802003-06-30 21:59:07 +00006566
John Criswell7a73b802003-06-30 21:59:07 +00006567hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006568if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006569 # do not overwrite the value of need_locks provided by the user
6570 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6571echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6572 hard_links=yes
6573 $rm conftest*
6574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6575 touch conftest.a
6576 ln conftest.a conftest.b 2>&5 || hard_links=no
6577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6578 echo "$as_me:$LINENO: result: $hard_links" >&5
6579echo "${ECHO_T}$hard_links" >&6
6580 if test "$hard_links" = no; then
6581 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6582echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6583 need_locks=warn
6584 fi
6585else
6586 need_locks=no
6587fi
John Criswell7a73b802003-06-30 21:59:07 +00006588
John Criswell47fdd832003-07-14 16:52:07 +00006589echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6590echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6591
6592 runpath_var=
6593 allow_undefined_flag=
6594 enable_shared_with_static_runtimes=no
6595 archive_cmds=
6596 archive_expsym_cmds=
6597 old_archive_From_new_cmds=
6598 old_archive_from_expsyms_cmds=
6599 export_dynamic_flag_spec=
6600 whole_archive_flag_spec=
6601 thread_safe_flag_spec=
6602 hardcode_libdir_flag_spec=
6603 hardcode_libdir_flag_spec_ld=
6604 hardcode_libdir_separator=
6605 hardcode_direct=no
6606 hardcode_minus_L=no
6607 hardcode_shlibpath_var=unsupported
6608 link_all_deplibs=unknown
6609 hardcode_automatic=no
6610 module_cmds=
6611 module_expsym_cmds=
6612 always_export_symbols=no
6613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6614 # include_expsyms should be a list of space-separated symbols to be *always*
6615 # included in the symbol list
6616 include_expsyms=
6617 # exclude_expsyms can be an extended regexp of symbols to exclude
6618 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6619 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6620 # as well as any symbol that contains `d'.
6621 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6622 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6623 # platforms (ab)use it in PIC code, but their linkers get confused if
6624 # the symbol is explicitly referenced. Since portable code cannot
6625 # rely on this symbol name, it's probably fine to never include it in
6626 # preloaded symbol tables.
6627 extract_expsyms_cmds=
6628
6629 case $host_os in
6630 cygwin* | mingw* | pw32*)
6631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6632 # When not using gcc, we currently assume that we are using
6633 # Microsoft Visual C++.
6634 if test "$GCC" != yes; then
6635 with_gnu_ld=no
6636 fi
6637 ;;
6638 openbsd*)
6639 with_gnu_ld=no
6640 ;;
6641 esac
6642
6643 ld_shlibs=yes
6644 if test "$with_gnu_ld" = yes; then
6645 # If archive_cmds runs LD, not CC, wlarc should be empty
6646 wlarc='${wl}'
6647
6648 # See if GNU ld supports shared libraries.
6649 case $host_os in
6650 aix3* | aix4* | aix5*)
6651 # On AIX/PPC, the GNU linker is very broken
6652 if test "$host_cpu" != ia64; then
6653 ld_shlibs=no
6654 cat <<EOF 1>&2
6655
6656*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6657*** to be unable to reliably create shared libraries on AIX.
6658*** Therefore, libtool is disabling shared libraries support. If you
6659*** really care for shared libraries, you may want to modify your PATH
6660*** so that a non-GNU linker is found, and then restart.
6661
6662EOF
6663 fi
6664 ;;
6665
6666 amigaos*)
6667 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)'
6668 hardcode_libdir_flag_spec='-L$libdir'
6669 hardcode_minus_L=yes
6670
6671 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6672 # that the semantics of dynamic libraries on AmigaOS, at least up
6673 # to version 4, is to share data among multiple programs linked
6674 # with the same dynamic library. Since this doesn't match the
6675 # behavior of shared libraries on other platforms, we can't use
6676 # them.
6677 ld_shlibs=no
6678 ;;
6679
6680 beos*)
6681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6682 allow_undefined_flag=unsupported
6683 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6684 # support --undefined. This deserves some investigation. FIXME
6685 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6686 else
6687 ld_shlibs=no
6688 fi
6689 ;;
6690
6691 cygwin* | mingw* | pw32*)
6692 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6693 # as there is no search path for DLLs.
6694 hardcode_libdir_flag_spec='-L$libdir'
6695 allow_undefined_flag=unsupported
6696 always_export_symbols=no
6697 enable_shared_with_static_runtimes=yes
6698 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6699
6700 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6702 # If the export-symbols file already is a .def file (1st line
6703 # is EXPORTS), use it as is; otherwise, prepend...
6704 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6705 cp $export_symbols $output_objdir/$soname.def;
6706 else
6707 echo EXPORTS > $output_objdir/$soname.def;
6708 cat $export_symbols >> $output_objdir/$soname.def;
6709 fi~
6710 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6711 else
6712 ld_shlibs=no
6713 fi
6714 ;;
6715
6716 netbsd*)
6717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6719 wlarc=
6720 else
6721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6723 fi
6724 ;;
6725
6726 solaris* | sysv5*)
6727 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6728 ld_shlibs=no
6729 cat <<EOF 1>&2
6730
6731*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6732*** create shared libraries on Solaris systems. Therefore, libtool
6733*** is disabling shared libraries support. We urge you to upgrade GNU
6734*** binutils to release 2.9.1 or newer. Another option is to modify
6735*** your PATH or compiler configuration so that the native linker is
6736*** used, and then restart.
6737
6738EOF
6739 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6742 else
6743 ld_shlibs=no
6744 fi
6745 ;;
6746
6747 sunos4*)
6748 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6749 wlarc=
6750 hardcode_direct=yes
6751 hardcode_shlibpath_var=no
6752 ;;
6753
6754 *)
6755 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6758 else
6759 ld_shlibs=no
6760 fi
6761 ;;
6762 esac
6763
6764 if test "$ld_shlibs" = yes; then
6765 runpath_var=LD_RUN_PATH
6766 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6767 export_dynamic_flag_spec='${wl}--export-dynamic'
6768 # ancient GNU ld didn't support --whole-archive et. al.
6769 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6770 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6771 else
6772 whole_archive_flag_spec=
6773 fi
6774 fi
6775 else
6776 # PORTME fill in a description of your system's linker (not GNU ld)
6777 case $host_os in
6778 aix3*)
6779 allow_undefined_flag=unsupported
6780 always_export_symbols=yes
6781 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'
6782 # Note: this linker hardcodes the directories in LIBPATH if there
6783 # are no directories specified by -L.
6784 hardcode_minus_L=yes
6785 if test "$GCC" = yes && test -z "$link_static_flag"; then
6786 # Neither direct hardcoding nor static linking is supported with a
6787 # broken collect2.
6788 hardcode_direct=unsupported
6789 fi
6790 ;;
6791
6792 aix4* | aix5*)
6793 if test "$host_cpu" = ia64; then
6794 # On IA64, the linker does run time linking by default, so we don't
6795 # have to do anything special.
6796 aix_use_runtimelinking=no
6797 exp_sym_flag='-Bexport'
6798 no_entry_flag=""
6799 else
6800 # If we're using GNU nm, then we don't want the "-C" option.
6801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6802 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6803 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'
6804 else
6805 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'
6806 fi
6807 aix_use_runtimelinking=no
6808
6809 # Test if we are trying to use run time linking or normal
6810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6811 # need to do runtime linking.
6812 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6813 for ld_flag in $LDFLAGS; do
6814 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6815 aix_use_runtimelinking=yes
6816 break
6817 fi
6818 done
6819 esac
6820
6821 exp_sym_flag='-bexport'
6822 no_entry_flag='-bnoentry'
6823 fi
6824
6825 # When large executables or shared objects are built, AIX ld can
6826 # have problems creating the table of contents. If linking a library
6827 # or program results in "error TOC overflow" add -mminimal-toc to
6828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6830
6831 archive_cmds=''
6832 hardcode_direct=yes
6833 hardcode_libdir_separator=':'
6834 link_all_deplibs=yes
6835
6836 if test "$GCC" = yes; then
6837 case $host_os in aix4.012|aix4.012.*)
6838 # We only want to do this on AIX 4.2 and lower, the check
6839 # below for broken collect2 doesn't work under 4.3+
6840 collect2name=`${CC} -print-prog-name=collect2`
6841 if test -f "$collect2name" && \
6842 strings "$collect2name" | grep resolve_lib_name >/dev/null
6843 then
6844 # We have reworked collect2
6845 hardcode_direct=yes
6846 else
6847 # We have old collect2
6848 hardcode_direct=unsupported
6849 # It fails to find uninstalled libraries when the uninstalled
6850 # path is not listed in the libpath. Setting hardcode_minus_L
6851 # to unsupported forces relinking
6852 hardcode_minus_L=yes
6853 hardcode_libdir_flag_spec='-L$libdir'
6854 hardcode_libdir_separator=
6855 fi
6856 esac
6857 shared_flag='-shared'
6858 else
6859 # not using gcc
6860 if test "$host_cpu" = ia64; then
6861 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6862 # chokes on -Wl,-G. The following line is correct:
6863 shared_flag='-G'
6864 else
6865 if test "$aix_use_runtimelinking" = yes; then
6866 shared_flag='${wl}-G'
6867 else
6868 shared_flag='${wl}-bM:SRE'
6869 fi
6870 fi
6871 fi
6872
6873 # It seems that -bexpall does not export symbols beginning with
6874 # underscore (_), so it is better to generate a list of symbols to export.
6875 always_export_symbols=yes
6876 if test "$aix_use_runtimelinking" = yes; then
6877 # Warning - without using the other runtime loading flags (-brtl),
6878 # -berok will link without error, but may produce a broken library.
6879 allow_undefined_flag='-berok'
6880 # Determine the default libpath from the value encoded in an empty executable.
6881 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006882#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006883/* confdefs.h. */
6884_ACEOF
6885cat confdefs.h >>conftest.$ac_ext
6886cat >>conftest.$ac_ext <<_ACEOF
6887/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006888
John Criswell7a73b802003-06-30 21:59:07 +00006889int
6890main ()
6891{
John Criswell47fdd832003-07-14 16:52:07 +00006892
John Criswell7a73b802003-06-30 21:59:07 +00006893 ;
6894 return 0;
6895}
6896_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006897rm -f conftest.$ac_objext conftest$ac_exeext
6898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006903 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006909
John Criswell47fdd832003-07-14 16:52:07 +00006910aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6911}'`
6912# Check for a 64-bit object if we didn't find anything.
6913if 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; }
6914}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006915else
6916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006917sed 's/^/| /' conftest.$ac_ext >&5
6918
John Criswell7a73b802003-06-30 21:59:07 +00006919fi
John Criswell47fdd832003-07-14 16:52:07 +00006920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6921if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006922
John Criswell47fdd832003-07-14 16:52:07 +00006923 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6924 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"
6925 else
6926 if test "$host_cpu" = ia64; then
6927 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6928 allow_undefined_flag="-z nodefs"
6929 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"
6930 else
6931 # Determine the default libpath from the value encoded in an empty executable.
6932 cat >conftest.$ac_ext <<_ACEOF
6933#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006939
John Criswell47fdd832003-07-14 16:52:07 +00006940int
6941main ()
6942{
John Criswell7a73b802003-06-30 21:59:07 +00006943
John Criswell47fdd832003-07-14 16:52:07 +00006944 ;
6945 return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext conftest$ac_exeext
6949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6950 (eval $ac_link) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006960
John Criswell47fdd832003-07-14 16:52:07 +00006961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6962}'`
6963# Check for a 64-bit object if we didn't find anything.
6964if 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; }
6965}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006966else
John Criswell47fdd832003-07-14 16:52:07 +00006967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006968sed 's/^/| /' conftest.$ac_ext >&5
6969
John Criswell47fdd832003-07-14 16:52:07 +00006970fi
6971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006973
John Criswell47fdd832003-07-14 16:52:07 +00006974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6975 # Warning - without using the other run time loading flags,
6976 # -berok will link without error, but may produce a broken library.
6977 no_undefined_flag=' ${wl}-bernotok'
6978 allow_undefined_flag=' ${wl}-berok'
6979 # -bexpall does not export symbols beginning with underscore (_)
6980 always_export_symbols=yes
6981 # Exported symbols can be pulled into shared objects from archives
6982 whole_archive_flag_spec=' '
6983 archive_cmds_need_lc=yes
6984 # This is similar to how AIX traditionally builds it's shared libraries.
6985 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 +00006986 fi
6987 fi
John Criswell7a73b802003-06-30 21:59:07 +00006988 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006989
6990 amigaos*)
6991 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)'
6992 hardcode_libdir_flag_spec='-L$libdir'
6993 hardcode_minus_L=yes
6994 # see comment about different semantics on the GNU ld section
6995 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006996 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006997
John Criswell47fdd832003-07-14 16:52:07 +00006998 bsdi4*)
6999 export_dynamic_flag_spec=-rdynamic
7000 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007001
John Criswell47fdd832003-07-14 16:52:07 +00007002 cygwin* | mingw* | pw32*)
7003 # When not using gcc, we currently assume that we are using
7004 # Microsoft Visual C++.
7005 # hardcode_libdir_flag_spec is actually meaningless, as there is
7006 # no search path for DLLs.
7007 hardcode_libdir_flag_spec=' '
7008 allow_undefined_flag=unsupported
7009 # Tell ltmain to make .lib files, not .a files.
7010 libext=lib
7011 # Tell ltmain to make .dll files, not .so files.
7012 shrext=".dll"
7013 # FIXME: Setting linknames here is a bad hack.
7014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7015 # The linker will automatically build a .lib file if we build a DLL.
7016 old_archive_From_new_cmds='true'
7017 # FIXME: Should let the user specify the lib program.
7018 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7019 fix_srcfile_path='`cygpath -w "$srcfile"`'
7020 enable_shared_with_static_runtimes=yes
7021 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007022
John Criswell47fdd832003-07-14 16:52:07 +00007023 darwin* | rhapsody*)
7024 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7025 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007026 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007027 rhapsody* | darwin1.[012])
7028 allow_undefined_flag='-undefined suppress'
7029 ;;
7030 *) # Darwin 1.3 on
7031 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007032 ;;
7033 esac
John Criswell47fdd832003-07-14 16:52:07 +00007034 # FIXME: Relying on posixy $() will cause problems for
7035 # cross-compilation, but unfortunately the echo tests do not
7036 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7037 # `"' quotes if we put them in here... so don't!
7038 lt_int_apple_cc_single_mod=no
7039 output_verbose_link_cmd='echo'
7040 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7041 lt_int_apple_cc_single_mod=yes
7042 fi
7043 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7044 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7045 else
7046 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'
7047 fi
7048 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7050 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7051 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}'
7052 else
7053 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}'
7054 fi
7055 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}'
7056 hardcode_direct=no
7057 hardcode_automatic=yes
7058 hardcode_shlibpath_var=unsupported
7059 whole_archive_flag_spec='-all_load $convenience'
7060 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007061 fi
John Criswell47fdd832003-07-14 16:52:07 +00007062 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007063
John Criswell47fdd832003-07-14 16:52:07 +00007064 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007066 hardcode_libdir_flag_spec='-L$libdir'
7067 hardcode_shlibpath_var=no
7068 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007069
John Criswell47fdd832003-07-14 16:52:07 +00007070 freebsd1*)
7071 ld_shlibs=no
7072 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007073
John Criswell47fdd832003-07-14 16:52:07 +00007074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7075 # support. Future versions do this automatically, but an explicit c++rt0.o
7076 # does not break anything, and helps significantly (at the cost of a little
7077 # extra space).
7078 freebsd2.2*)
7079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7080 hardcode_libdir_flag_spec='-R$libdir'
7081 hardcode_direct=yes
7082 hardcode_shlibpath_var=no
7083 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007084
John Criswell47fdd832003-07-14 16:52:07 +00007085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7086 freebsd2*)
7087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7088 hardcode_direct=yes
7089 hardcode_minus_L=yes
7090 hardcode_shlibpath_var=no
7091 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007092
John Criswell47fdd832003-07-14 16:52:07 +00007093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7094 freebsd*)
7095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7096 hardcode_libdir_flag_spec='-R$libdir'
7097 hardcode_direct=yes
7098 hardcode_shlibpath_var=no
7099 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007100
John Criswell47fdd832003-07-14 16:52:07 +00007101 hpux9*)
7102 if test "$GCC" = yes; then
7103 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'
7104 else
7105 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'
7106 fi
7107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7108 hardcode_libdir_separator=:
7109 hardcode_direct=yes
7110
7111 # hardcode_minus_L: Not really in the search PATH,
7112 # but as the default location of the library.
7113 hardcode_minus_L=yes
7114 export_dynamic_flag_spec='${wl}-E'
7115 ;;
7116
7117 hpux10* | hpux11*)
7118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7119 case "$host_cpu" in
7120 hppa*64*|ia64*)
7121 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7122 ;;
7123 *)
7124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7125 ;;
7126 esac
7127 else
7128 case "$host_cpu" in
7129 hppa*64*|ia64*)
7130 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7131 ;;
7132 *)
7133 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7134 ;;
7135 esac
7136 fi
7137 if test "$with_gnu_ld" = no; then
7138 case "$host_cpu" in
7139 hppa*64*)
7140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7141 hardcode_libdir_flag_spec_ld='+b $libdir'
7142 hardcode_libdir_separator=:
7143 hardcode_direct=no
7144 hardcode_shlibpath_var=no
7145 ;;
7146 ia64*)
7147 hardcode_libdir_flag_spec='-L$libdir'
7148 hardcode_direct=no
7149 hardcode_shlibpath_var=no
7150
7151 # hardcode_minus_L: Not really in the search PATH,
7152 # but as the default location of the library.
7153 hardcode_minus_L=yes
7154 ;;
7155 *)
7156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7157 hardcode_libdir_separator=:
7158 hardcode_direct=yes
7159 export_dynamic_flag_spec='${wl}-E'
7160
7161 # hardcode_minus_L: Not really in the search PATH,
7162 # but as the default location of the library.
7163 hardcode_minus_L=yes
7164 ;;
7165 esac
7166 fi
7167 ;;
7168
7169 irix5* | irix6* | nonstopux*)
7170 if test "$GCC" = yes; then
7171 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'
7172 else
7173 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'
7174 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7175 fi
7176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7177 hardcode_libdir_separator=:
7178 link_all_deplibs=yes
7179 ;;
7180
7181 netbsd*)
7182 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7184 else
7185 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7186 fi
7187 hardcode_libdir_flag_spec='-R$libdir'
7188 hardcode_direct=yes
7189 hardcode_shlibpath_var=no
7190 ;;
7191
7192 newsos6)
7193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7194 hardcode_direct=yes
7195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7196 hardcode_libdir_separator=:
7197 hardcode_shlibpath_var=no
7198 ;;
7199
7200 openbsd*)
7201 hardcode_direct=yes
7202 hardcode_shlibpath_var=no
7203 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7206 export_dynamic_flag_spec='${wl}-E'
7207 else
7208 case $host_os in
7209 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7211 hardcode_libdir_flag_spec='-R$libdir'
7212 ;;
7213 *)
7214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7215 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7216 ;;
7217 esac
7218 fi
7219 ;;
7220
7221 os2*)
7222 hardcode_libdir_flag_spec='-L$libdir'
7223 hardcode_minus_L=yes
7224 allow_undefined_flag=unsupported
7225 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'
7226 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7227 ;;
7228
7229 osf3*)
7230 if test "$GCC" = yes; then
7231 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7232 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'
7233 else
7234 allow_undefined_flag=' -expect_unresolved \*'
7235 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'
7236 fi
7237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7238 hardcode_libdir_separator=:
7239 ;;
7240
7241 osf4* | osf5*) # as osf3* with the addition of -msym flag
7242 if test "$GCC" = yes; then
7243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7244 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'
7245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7246 else
7247 allow_undefined_flag=' -expect_unresolved \*'
7248 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'
7249 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7250 $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'
7251
7252 # Both c and cxx compiler support -rpath directly
7253 hardcode_libdir_flag_spec='-rpath $libdir'
7254 fi
7255 hardcode_libdir_separator=:
7256 ;;
7257
7258 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7260 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007261 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007262 runpath_var=LD_RUN_PATH
7263 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007264 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007265
John Criswell47fdd832003-07-14 16:52:07 +00007266 solaris*)
7267 no_undefined_flag=' -z text'
7268 if test "$GCC" = yes; then
7269 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7270 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7271 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7272 else
7273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7274 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7276 fi
7277 hardcode_libdir_flag_spec='-R$libdir'
7278 hardcode_shlibpath_var=no
7279 case $host_os in
7280 solaris2.[0-5] | solaris2.[0-5].*) ;;
7281 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7283 esac
7284 link_all_deplibs=yes
7285 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007286
John Criswell47fdd832003-07-14 16:52:07 +00007287 sunos4*)
7288 if test "x$host_vendor" = xsequent; then
7289 # Use $CC to link under sequent, because it throws in some extra .o
7290 # files that make .init and .fini sections work.
7291 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7292 else
7293 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7294 fi
7295 hardcode_libdir_flag_spec='-L$libdir'
7296 hardcode_direct=yes
7297 hardcode_minus_L=yes
7298 hardcode_shlibpath_var=no
7299 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007300
John Criswell47fdd832003-07-14 16:52:07 +00007301 sysv4)
7302 case $host_vendor in
7303 sni)
7304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7305 hardcode_direct=yes # is this really true???
7306 ;;
7307 siemens)
7308 ## LD is ld it makes a PLAMLIB
7309 ## CC just makes a GrossModule.
7310 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7311 reload_cmds='$CC -r -o $output$reload_objs'
7312 hardcode_direct=no
7313 ;;
7314 motorola)
7315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7317 ;;
7318 esac
7319 runpath_var='LD_RUN_PATH'
7320 hardcode_shlibpath_var=no
7321 ;;
7322
7323 sysv4.3*)
7324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_shlibpath_var=no
7326 export_dynamic_flag_spec='-Bexport'
7327 ;;
7328
7329 sysv4*MP*)
7330 if test -d /usr/nec; then
7331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7332 hardcode_shlibpath_var=no
7333 runpath_var=LD_RUN_PATH
7334 hardcode_runpath_var=yes
7335 ld_shlibs=yes
7336 fi
7337 ;;
7338
7339 sysv4.2uw2*)
7340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_direct=yes
7342 hardcode_minus_L=no
7343 hardcode_shlibpath_var=no
7344 hardcode_runpath_var=yes
7345 runpath_var=LD_RUN_PATH
7346 ;;
7347
7348 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7349 no_undefined_flag='${wl}-z ${wl}text'
7350 if test "$GCC" = yes; then
7351 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 else
7353 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7354 fi
7355 runpath_var='LD_RUN_PATH'
7356 hardcode_shlibpath_var=no
7357 ;;
7358
7359 sysv5*)
7360 no_undefined_flag=' -z text'
7361 # $CC -shared without GNU ld will not create a library from C++
7362 # object files and a static libstdc++, better avoid it by now
7363 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7366 hardcode_libdir_flag_spec=
7367 hardcode_shlibpath_var=no
7368 runpath_var='LD_RUN_PATH'
7369 ;;
7370
7371 uts4*)
7372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373 hardcode_libdir_flag_spec='-L$libdir'
7374 hardcode_shlibpath_var=no
7375 ;;
7376
7377 *)
7378 ld_shlibs=no
7379 ;;
7380 esac
7381 fi
7382
John Criswell7a73b802003-06-30 21:59:07 +00007383echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7384echo "${ECHO_T}$ld_shlibs" >&6
7385test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007386
John Criswell47fdd832003-07-14 16:52:07 +00007387variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7388if test "$GCC" = yes; then
7389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7390fi
7391
7392#
7393# Do we need to explicitly link libc?
7394#
7395case "x$archive_cmds_need_lc" in
7396x|xyes)
7397 # Assume -lc should be added
7398 archive_cmds_need_lc=yes
7399
7400 if test "$enable_shared" = yes && test "$GCC" = yes; then
7401 case $archive_cmds in
7402 *'~'*)
7403 # FIXME: we may have to deal with multi-command sequences.
7404 ;;
7405 '$CC '*)
7406 # Test whether the compiler implicitly links with -lc since on some
7407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7408 # to ld, don't add -lc before -lgcc.
7409 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7410echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7411 $rm conftest*
7412 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7413
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } 2>conftest.err; then
7419 soname=conftest
7420 lib=conftest
7421 libobjs=conftest.$ac_objext
7422 deplibs=
7423 wl=$lt_prog_compiler_wl
7424 compiler_flags=-v
7425 linker_flags=-v
7426 verstring=
7427 output_objdir=.
7428 libname=conftest
7429 lt_save_allow_undefined_flag=$allow_undefined_flag
7430 allow_undefined_flag=
7431 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7432 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }
7436 then
7437 archive_cmds_need_lc=no
7438 else
7439 archive_cmds_need_lc=yes
7440 fi
7441 allow_undefined_flag=$lt_save_allow_undefined_flag
7442 else
7443 cat conftest.err 1>&5
7444 fi
7445 $rm conftest*
7446 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7447echo "${ECHO_T}$archive_cmds_need_lc" >&6
7448 ;;
7449 esac
7450 fi
7451 ;;
7452esac
7453
John Criswell7a73b802003-06-30 21:59:07 +00007454echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7455echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7456hardcode_action=
7457if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007458 test -n "$runpath_var " || \
7459 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007460
7461 # We can hardcode non-existant directories.
7462 if test "$hardcode_direct" != no &&
7463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7464 # have to relink, otherwise we might link with an installed library
7465 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007466 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007467 test "$hardcode_minus_L" != no; then
7468 # Linking always hardcodes the temporary library directory.
7469 hardcode_action=relink
7470 else
7471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7472 hardcode_action=immediate
7473 fi
7474else
7475 # We cannot hardcode anything, or else we can only hardcode existing
7476 # directories.
7477 hardcode_action=unsupported
7478fi
7479echo "$as_me:$LINENO: result: $hardcode_action" >&5
7480echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007481
John Criswell47fdd832003-07-14 16:52:07 +00007482if test "$hardcode_action" = relink; then
7483 # Fast installation is not supported
7484 enable_fast_install=no
7485elif test "$shlibpath_overrides_runpath" = yes ||
7486 test "$enable_shared" = no; then
7487 # Fast installation is not necessary
7488 enable_fast_install=needless
7489fi
7490
John Criswell7a73b802003-06-30 21:59:07 +00007491striplib=
7492old_striplib=
7493echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7494echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7495if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7497 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7498 echo "$as_me:$LINENO: result: yes" >&5
7499echo "${ECHO_T}yes" >&6
7500else
John Criswell47fdd832003-07-14 16:52:07 +00007501# FIXME - insert some real tests, host_os isn't really good enough
7502 case $host_os in
7503 darwin*)
7504 if test -n "$STRIP" ; then
7505 striplib="$STRIP -x"
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
7508 else
John Criswell7a73b802003-06-30 21:59:07 +00007509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
7511fi
John Criswell47fdd832003-07-14 16:52:07 +00007512 ;;
7513 *)
7514 echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6
7516 ;;
7517 esac
7518fi
John Criswell7a73b802003-06-30 21:59:07 +00007519
John Criswell7a73b802003-06-30 21:59:07 +00007520echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7521echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7522library_names_spec=
7523libname_spec='lib$name'
7524soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007525shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007526postinstall_cmds=
7527postuninstall_cmds=
7528finish_cmds=
7529finish_eval=
7530shlibpath_var=
7531shlibpath_overrides_runpath=unknown
7532version_type=none
7533dynamic_linker="$host_os ld.so"
7534sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007535if test "$GCC" = yes; then
7536 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7537 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7538 # if the path contains ";" then we assume it to be the separator
7539 # otherwise default to the standard path separator (i.e. ":") - it is
7540 # assumed that no part of a normal pathname contains ";" but that should
7541 # okay in the real world where ";" in dirpaths is itself problematic.
7542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7543 else
7544 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7545 fi
7546else
7547 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7548fi
7549need_lib_prefix=unknown
7550hardcode_into_libs=no
7551
7552# when you set need_version to no, make sure it does not cause -set_version
7553# flags to be left without arguments
7554need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007555
7556case $host_os in
7557aix3*)
7558 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007560 shlibpath_var=LIBPATH
7561
John Criswell47fdd832003-07-14 16:52:07 +00007562 # AIX 3 has no versioning support, so we append a major version to the name.
7563 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007564 ;;
7565
7566aix4* | aix5*)
7567 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007568 need_lib_prefix=no
7569 need_version=no
7570 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007571 if test "$host_cpu" = ia64; then
7572 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007574 shlibpath_var=LD_LIBRARY_PATH
7575 else
7576 # With GCC up to 2.95.x, collect2 would create an import file
7577 # for dependence libraries. The import file would start with
7578 # the line `#! .'. This would cause the generated library to
7579 # depend on `.', always an invalid library. This was fixed in
7580 # development snapshots of GCC prior to 3.0.
7581 case $host_os in
7582 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7584 echo ' yes '
7585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7586 :
7587 else
7588 can_build_shared=no
7589 fi
7590 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007591 esac
John Criswell47fdd832003-07-14 16:52:07 +00007592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7593 # soname into executable. Probably we can add versioning support to
7594 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007595 if test "$aix_use_runtimelinking" = yes; then
7596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7597 # instead of lib<name>.a to let people know that these are not
7598 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007600 else
7601 # We preserve .a as extension for shared libraries through AIX4.2
7602 # and later when we are not doing run time linking.
7603 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007604 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007605 fi
7606 shlibpath_var=LIBPATH
7607 fi
7608 ;;
7609
7610amigaos*)
7611 library_names_spec='$libname.ixlibrary $libname.a'
7612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7613 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'
7614 ;;
7615
7616beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007617 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007618 dynamic_linker="$host_os ld.so"
7619 shlibpath_var=LIBRARY_PATH
7620 ;;
7621
7622bsdi4*)
7623 version_type=linux
7624 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7628 shlibpath_var=LD_LIBRARY_PATH
7629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007631 # the default ld.so.conf also contains /usr/contrib/lib and
7632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7633 # libtool to hard-code these into programs
7634 ;;
7635
7636cygwin* | mingw* | pw32*)
7637 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007638 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007639 need_version=no
7640 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007641
John Criswell7a73b802003-06-30 21:59:07 +00007642 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007643 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007644 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7646 postinstall_cmds='base_file=`basename \${file}`~
7647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007648 dldir=$destdir/`dirname \$dlpath`~
7649 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007650 $install_prog $dir/$dlname \$dldir/$dlname'
7651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007652 dlpath=$dir/\$dldll~
7653 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007654 shlibpath_overrides_runpath=yes
7655
7656 case $host_os in
7657 cygwin*)
7658 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7659 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7660 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7661 ;;
7662 mingw*)
7663 # MinGW DLLs use traditional 'lib' prefix
7664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7665 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7666 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7667 # It is most probably a Windows format PATH printed by
7668 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7669 # path with ; separators, and with drive letters. We can handle the
7670 # drive letters (cygwin fileutils understands them), so leave them,
7671 # especially as we might pass files found there to a mingw objdump,
7672 # which wouldn't understand a cygwinified path. Ahh.
7673 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7674 else
7675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7676 fi
7677 ;;
7678 pw32*)
7679 # pw32 DLLs use 'pw' prefix rather than 'lib'
7680 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7681 ;;
7682 esac
John Criswell7a73b802003-06-30 21:59:07 +00007683 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007684
John Criswell7a73b802003-06-30 21:59:07 +00007685 *)
John Criswell47fdd832003-07-14 16:52:07 +00007686 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007687 ;;
7688 esac
7689 dynamic_linker='Win32 ld.exe'
7690 # FIXME: first we should search . and the directory the executable is in
7691 shlibpath_var=PATH
7692 ;;
7693
7694darwin* | rhapsody*)
7695 dynamic_linker="$host_os dyld"
7696 version_type=darwin
7697 need_lib_prefix=no
7698 need_version=no
7699 # FIXME: Relying on posixy $() will cause problems for
7700 # cross-compilation, but unfortunately the echo tests do not
7701 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007702 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7703 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007704 shlibpath_overrides_runpath=yes
7705 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007706 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7707 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7708 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7709 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"`
7710 fi
7711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7712 ;;
7713
7714dgux*)
7715 version_type=linux
7716 need_lib_prefix=no
7717 need_version=no
7718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7719 soname_spec='${libname}${release}${shared_ext}$major'
7720 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007721 ;;
7722
7723freebsd1*)
7724 dynamic_linker=no
7725 ;;
7726
7727freebsd*)
7728 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7729 version_type=freebsd-$objformat
7730 case $version_type in
7731 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007733 need_version=no
7734 need_lib_prefix=no
7735 ;;
7736 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007738 need_version=yes
7739 ;;
7740 esac
7741 shlibpath_var=LD_LIBRARY_PATH
7742 case $host_os in
7743 freebsd2*)
7744 shlibpath_overrides_runpath=yes
7745 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007746 freebsd3.01* | freebsdelf3.01*)
7747 shlibpath_overrides_runpath=yes
7748 hardcode_into_libs=yes
7749 ;;
7750 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007751 shlibpath_overrides_runpath=no
7752 hardcode_into_libs=yes
7753 ;;
7754 esac
7755 ;;
7756
7757gnu*)
7758 version_type=linux
7759 need_lib_prefix=no
7760 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7762 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007763 shlibpath_var=LD_LIBRARY_PATH
7764 hardcode_into_libs=yes
7765 ;;
7766
7767hpux9* | hpux10* | hpux11*)
7768 # Give a soname corresponding to the major version so that dld.sl refuses to
7769 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007770 version_type=sunos
7771 need_lib_prefix=no
7772 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007773 case "$host_cpu" in
7774 ia64*)
7775 shrext='.so'
7776 hardcode_into_libs=yes
7777 dynamic_linker="$host_os dld.so"
7778 shlibpath_var=LD_LIBRARY_PATH
7779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781 soname_spec='${libname}${release}${shared_ext}$major'
7782 if test "X$HPUX_IA64_MODE" = X32; then
7783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7784 else
7785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7786 fi
7787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7788 ;;
7789 hppa*64*)
7790 shrext='.sl'
7791 hardcode_into_libs=yes
7792 dynamic_linker="$host_os dld.sl"
7793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796 soname_spec='${libname}${release}${shared_ext}$major'
7797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7799 ;;
7800 *)
7801 shrext='.sl'
7802 dynamic_linker="$host_os dld.sl"
7803 shlibpath_var=SHLIB_PATH
7804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7806 soname_spec='${libname}${release}${shared_ext}$major'
7807 ;;
7808 esac
John Criswell7a73b802003-06-30 21:59:07 +00007809 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7810 postinstall_cmds='chmod 555 $lib'
7811 ;;
7812
John Criswell47fdd832003-07-14 16:52:07 +00007813irix5* | irix6* | nonstopux*)
7814 case $host_os in
7815 nonstopux*) version_type=nonstopux ;;
7816 *)
7817 if test "$lt_cv_prog_gnu_ld" = yes; then
7818 version_type=linux
7819 else
7820 version_type=irix
7821 fi ;;
7822 esac
John Criswell7a73b802003-06-30 21:59:07 +00007823 need_lib_prefix=no
7824 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007825 soname_spec='${libname}${release}${shared_ext}$major'
7826 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 +00007827 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007828 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007829 libsuff= shlibsuff=
7830 ;;
7831 *)
7832 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7834 libsuff= shlibsuff= libmagic=32-bit;;
7835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7836 libsuff=32 shlibsuff=N32 libmagic=N32;;
7837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007839 *) libsuff= shlibsuff= libmagic=never-match;;
7840 esac
7841 ;;
7842 esac
7843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7844 shlibpath_overrides_runpath=no
7845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007847 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007848 ;;
7849
7850# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007851linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007852 dynamic_linker=no
7853 ;;
7854
7855# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007856linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007857 version_type=linux
7858 need_lib_prefix=no
7859 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7861 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7863 shlibpath_var=LD_LIBRARY_PATH
7864 shlibpath_overrides_runpath=no
7865 # This implies no fast_install, which is unacceptable.
7866 # Some rework will be needed to allow for fast_install
7867 # before this can be enabled.
7868 hardcode_into_libs=yes
7869
7870 # We used to test for /lib/ld.so.1 and disable shared libraries on
7871 # powerpc, because MkLinux only supported shared libraries with the
7872 # GNU dynamic linker. Since this was broken with cross compilers,
7873 # most powerpc-linux boxes support dynamic linking these days and
7874 # people can always --disable-shared, the test was removed, and we
7875 # assume the GNU/Linux dynamic linker is in use.
7876 dynamic_linker='GNU/Linux ld.so'
7877 ;;
7878
7879netbsd*)
7880 version_type=sunos
7881 need_lib_prefix=no
7882 need_version=no
7883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7886 dynamic_linker='NetBSD (a.out) ld.so'
7887 else
John Criswell47fdd832003-07-14 16:52:07 +00007888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007890 dynamic_linker='NetBSD ld.elf_so'
7891 fi
7892 shlibpath_var=LD_LIBRARY_PATH
7893 shlibpath_overrides_runpath=yes
7894 hardcode_into_libs=yes
7895 ;;
7896
7897newsos6)
7898 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 shlibpath_var=LD_LIBRARY_PATH
7901 shlibpath_overrides_runpath=yes
7902 ;;
7903
7904nto-qnx)
7905 version_type=linux
7906 need_lib_prefix=no
7907 need_version=no
7908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7909 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007910 shlibpath_var=LD_LIBRARY_PATH
7911 shlibpath_overrides_runpath=yes
7912 ;;
7913
7914openbsd*)
7915 version_type=sunos
7916 need_lib_prefix=no
7917 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7920 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007921 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 +00007922 case $host_os in
7923 openbsd2.[89] | openbsd2.[89].*)
7924 shlibpath_overrides_runpath=no
7925 ;;
7926 *)
7927 shlibpath_overrides_runpath=yes
7928 ;;
7929 esac
John Criswell7a73b802003-06-30 21:59:07 +00007930 else
7931 shlibpath_overrides_runpath=yes
7932 fi
John Criswell7a73b802003-06-30 21:59:07 +00007933 ;;
7934
7935os2*)
7936 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007937 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007938 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007939 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007940 dynamic_linker='OS/2 ld.exe'
7941 shlibpath_var=LIBPATH
7942 ;;
7943
7944osf3* | osf4* | osf5*)
7945 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007946 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007947 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007948 soname_spec='${libname}${release}${shared_ext}$major'
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007950 shlibpath_var=LD_LIBRARY_PATH
7951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7953 ;;
7954
7955sco3.2v5*)
7956 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007957 soname_spec='${libname}${release}${shared_ext}$major'
7958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007959 shlibpath_var=LD_LIBRARY_PATH
7960 ;;
7961
7962solaris*)
7963 version_type=linux
7964 need_lib_prefix=no
7965 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7970 hardcode_into_libs=yes
7971 # ldd complains unless libraries are executable
7972 postinstall_cmds='chmod +x $lib'
7973 ;;
7974
7975sunos4*)
7976 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7979 shlibpath_var=LD_LIBRARY_PATH
7980 shlibpath_overrides_runpath=yes
7981 if test "$with_gnu_ld" = yes; then
7982 need_lib_prefix=no
7983 fi
7984 need_version=yes
7985 ;;
7986
7987sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7988 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007991 shlibpath_var=LD_LIBRARY_PATH
7992 case $host_vendor in
7993 sni)
7994 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007995 need_lib_prefix=no
7996 export_dynamic_flag_spec='${wl}-Blargedynsym'
7997 runpath_var=LD_RUN_PATH
7998 ;;
7999 siemens)
8000 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008001 ;;
8002 motorola)
8003 need_lib_prefix=no
8004 need_version=no
8005 shlibpath_overrides_runpath=no
8006 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8007 ;;
8008 esac
8009 ;;
8010
John Criswell7a73b802003-06-30 21:59:07 +00008011sysv4*MP*)
8012 if test -d /usr/nec ;then
8013 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008014 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8015 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008016 shlibpath_var=LD_LIBRARY_PATH
8017 fi
8018 ;;
8019
John Criswell47fdd832003-07-14 16:52:07 +00008020uts4*)
8021 version_type=linux
8022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8023 soname_spec='${libname}${release}${shared_ext}$major'
8024 shlibpath_var=LD_LIBRARY_PATH
8025 ;;
8026
John Criswell7a73b802003-06-30 21:59:07 +00008027*)
8028 dynamic_linker=no
8029 ;;
8030esac
8031echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8032echo "${ECHO_T}$dynamic_linker" >&6
8033test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008034
8035if test "x$enable_dlopen" != xyes; then
8036 enable_dlopen=unknown
8037 enable_dlopen_self=unknown
8038 enable_dlopen_self_static=unknown
8039else
8040 lt_cv_dlopen=no
8041 lt_cv_dlopen_libs=
8042
8043 case $host_os in
8044 beos*)
8045 lt_cv_dlopen="load_add_on"
8046 lt_cv_dlopen_libs=
8047 lt_cv_dlopen_self=yes
8048 ;;
8049
John Criswell47fdd832003-07-14 16:52:07 +00008050 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008051 lt_cv_dlopen="LoadLibrary"
8052 lt_cv_dlopen_libs=
8053 ;;
8054
John Criswell47fdd832003-07-14 16:52:07 +00008055 cygwin*)
8056 lt_cv_dlopen="dlopen"
8057 lt_cv_dlopen_libs=
8058 ;;
8059
8060 darwin*)
8061 # if libdl is installed we need to link against it
8062 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8063echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8064if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066else
8067 ac_check_lib_save_LIBS=$LIBS
8068LIBS="-ldl $LIBS"
8069cat >conftest.$ac_ext <<_ACEOF
8070#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008071/* confdefs.h. */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008076
8077/* Override any gcc2 internal prototype to avoid an error. */
8078#ifdef __cplusplus
8079extern "C"
8080#endif
8081/* We use char because int might match the return type of a gcc2
8082 builtin and then its argument prototype would still apply. */
8083char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008084int
8085main ()
8086{
8087dlopen ();
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092rm -f conftest.$ac_objext conftest$ac_exeext
8093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8094 (eval $ac_link) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -s conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 ac_cv_lib_dl_dlopen=yes
8105else
8106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008107sed 's/^/| /' conftest.$ac_ext >&5
8108
John Criswell47fdd832003-07-14 16:52:07 +00008109ac_cv_lib_dl_dlopen=no
8110fi
8111rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8112LIBS=$ac_check_lib_save_LIBS
8113fi
8114echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8115echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8116if test $ac_cv_lib_dl_dlopen = yes; then
8117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8118else
8119
8120 lt_cv_dlopen="dyld"
8121 lt_cv_dlopen_libs=
8122 lt_cv_dlopen_self=yes
8123
8124fi
8125
8126 ;;
8127
John Criswell7a73b802003-06-30 21:59:07 +00008128 *)
8129 echo "$as_me:$LINENO: checking for shl_load" >&5
8130echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8131if test "${ac_cv_func_shl_load+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 cat >conftest.$ac_ext <<_ACEOF
8135#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008136/* confdefs.h. */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008141/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008142 which can conflict with char shl_load (); below.
8143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8144 <limits.h> exists even on freestanding compilers. */
8145#ifdef __STDC__
8146# include <limits.h>
8147#else
8148# include <assert.h>
8149#endif
John Criswell7a73b802003-06-30 21:59:07 +00008150/* Override any gcc2 internal prototype to avoid an error. */
8151#ifdef __cplusplus
8152extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008153{
John Criswell7a73b802003-06-30 21:59:07 +00008154#endif
8155/* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8157char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008158/* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161#if defined (__stub_shl_load) || defined (__stub___shl_load)
8162choke me
8163#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008164char (*f) () = shl_load;
8165#endif
8166#ifdef __cplusplus
8167}
John Criswell7a73b802003-06-30 21:59:07 +00008168#endif
8169
John Criswell0c38eaf2003-09-10 15:17:25 +00008170int
8171main ()
8172{
8173return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008174 ;
8175 return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_func_shl_load=yes
8191else
8192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008193sed 's/^/| /' conftest.$ac_ext >&5
8194
John Criswell7a73b802003-06-30 21:59:07 +00008195ac_cv_func_shl_load=no
8196fi
8197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8198fi
8199echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8200echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8201if test $ac_cv_func_shl_load = yes; then
8202 lt_cv_dlopen="shl_load"
8203else
8204 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8205echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8206if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 ac_check_lib_save_LIBS=$LIBS
8210LIBS="-ldld $LIBS"
8211cat >conftest.$ac_ext <<_ACEOF
8212#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008218
8219/* Override any gcc2 internal prototype to avoid an error. */
8220#ifdef __cplusplus
8221extern "C"
8222#endif
8223/* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8225char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008226int
8227main ()
8228{
8229shl_load ();
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_lib_dld_shl_load=yes
8247else
8248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008249sed 's/^/| /' conftest.$ac_ext >&5
8250
John Criswell7a73b802003-06-30 21:59:07 +00008251ac_cv_lib_dld_shl_load=no
8252fi
8253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8254LIBS=$ac_check_lib_save_LIBS
8255fi
8256echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8257echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8258if test $ac_cv_lib_dld_shl_load = yes; then
8259 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8260else
8261 echo "$as_me:$LINENO: checking for dlopen" >&5
8262echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8263if test "${ac_cv_func_dlopen+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 cat >conftest.$ac_ext <<_ACEOF
8267#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008268/* confdefs.h. */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
8272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008273/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008274 which can conflict with char dlopen (); below.
8275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8276 <limits.h> exists even on freestanding compilers. */
8277#ifdef __STDC__
8278# include <limits.h>
8279#else
8280# include <assert.h>
8281#endif
John Criswell7a73b802003-06-30 21:59:07 +00008282/* Override any gcc2 internal prototype to avoid an error. */
8283#ifdef __cplusplus
8284extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008285{
John Criswell7a73b802003-06-30 21:59:07 +00008286#endif
8287/* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */
8289char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008290/* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293#if defined (__stub_dlopen) || defined (__stub___dlopen)
8294choke me
8295#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008296char (*f) () = dlopen;
8297#endif
8298#ifdef __cplusplus
8299}
John Criswell7a73b802003-06-30 21:59:07 +00008300#endif
8301
John Criswell0c38eaf2003-09-10 15:17:25 +00008302int
8303main ()
8304{
8305return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008306 ;
8307 return 0;
8308}
8309_ACEOF
8310rm -f conftest.$ac_objext conftest$ac_exeext
8311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318 (eval $ac_try) 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_func_dlopen=yes
8323else
8324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008325sed 's/^/| /' conftest.$ac_ext >&5
8326
John Criswell7a73b802003-06-30 21:59:07 +00008327ac_cv_func_dlopen=no
8328fi
8329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8330fi
8331echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8332echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8333if test $ac_cv_func_dlopen = yes; then
8334 lt_cv_dlopen="dlopen"
8335else
8336 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8337echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8338if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341 ac_check_lib_save_LIBS=$LIBS
8342LIBS="-ldl $LIBS"
8343cat >conftest.$ac_ext <<_ACEOF
8344#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008350
8351/* Override any gcc2 internal prototype to avoid an error. */
8352#ifdef __cplusplus
8353extern "C"
8354#endif
8355/* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8357char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008358int
8359main ()
8360{
8361dlopen ();
8362 ;
8363 return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext conftest$ac_exeext
8367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_lib_dl_dlopen=yes
8379else
8380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008381sed 's/^/| /' conftest.$ac_ext >&5
8382
John Criswell7a73b802003-06-30 21:59:07 +00008383ac_cv_lib_dl_dlopen=no
8384fi
8385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386LIBS=$ac_check_lib_save_LIBS
8387fi
8388echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8389echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8390if test $ac_cv_lib_dl_dlopen = yes; then
8391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8392else
8393 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8394echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8395if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398 ac_check_lib_save_LIBS=$LIBS
8399LIBS="-lsvld $LIBS"
8400cat >conftest.$ac_ext <<_ACEOF
8401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008402/* confdefs.h. */
8403_ACEOF
8404cat confdefs.h >>conftest.$ac_ext
8405cat >>conftest.$ac_ext <<_ACEOF
8406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008407
8408/* Override any gcc2 internal prototype to avoid an error. */
8409#ifdef __cplusplus
8410extern "C"
8411#endif
8412/* We use char because int might match the return type of a gcc2
8413 builtin and then its argument prototype would still apply. */
8414char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008415int
8416main ()
8417{
8418dlopen ();
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext conftest$ac_exeext
8424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest$ac_exeext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 (eval $ac_try) 2>&5
8432 ac_status=$?
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_lib_svld_dlopen=yes
8436else
8437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008438sed 's/^/| /' conftest.$ac_ext >&5
8439
John Criswell7a73b802003-06-30 21:59:07 +00008440ac_cv_lib_svld_dlopen=no
8441fi
8442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8443LIBS=$ac_check_lib_save_LIBS
8444fi
8445echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8446echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8447if test $ac_cv_lib_svld_dlopen = yes; then
8448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8449else
8450 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8451echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8452if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454else
8455 ac_check_lib_save_LIBS=$LIBS
8456LIBS="-ldld $LIBS"
8457cat >conftest.$ac_ext <<_ACEOF
8458#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008459/* confdefs.h. */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008464
8465/* Override any gcc2 internal prototype to avoid an error. */
8466#ifdef __cplusplus
8467extern "C"
8468#endif
8469/* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8471char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008472int
8473main ()
8474{
8475dld_link ();
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_lib_dld_dld_link=yes
8493else
8494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008495sed 's/^/| /' conftest.$ac_ext >&5
8496
John Criswell7a73b802003-06-30 21:59:07 +00008497ac_cv_lib_dld_dld_link=no
8498fi
8499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8500LIBS=$ac_check_lib_save_LIBS
8501fi
8502echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8503echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8504if test $ac_cv_lib_dld_dld_link = yes; then
8505 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8506fi
8507
8508
8509fi
8510
8511
8512fi
8513
8514
8515fi
8516
8517
8518fi
8519
8520
8521fi
8522
8523 ;;
8524 esac
8525
8526 if test "x$lt_cv_dlopen" != xno; then
8527 enable_dlopen=yes
8528 else
8529 enable_dlopen=no
8530 fi
8531
8532 case $lt_cv_dlopen in
8533 dlopen)
8534 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008535 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008536
8537 save_LDFLAGS="$LDFLAGS"
8538 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8539
8540 save_LIBS="$LIBS"
8541 LIBS="$lt_cv_dlopen_libs $LIBS"
8542
8543 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8544echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8545if test "${lt_cv_dlopen_self+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548 if test "$cross_compiling" = yes; then :
8549 lt_cv_dlopen_self=cross
8550else
John Criswell47fdd832003-07-14 16:52:07 +00008551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008552 lt_status=$lt_dlunknown
8553 cat > conftest.$ac_ext <<EOF
John Criswell08acb9b2003-09-16 02:12:45 +00008554#line 8554 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008555#include "confdefs.h"
8556
8557#if HAVE_DLFCN_H
8558#include <dlfcn.h>
8559#endif
8560
8561#include <stdio.h>
8562
8563#ifdef RTLD_GLOBAL
8564# define LT_DLGLOBAL RTLD_GLOBAL
8565#else
8566# ifdef DL_GLOBAL
8567# define LT_DLGLOBAL DL_GLOBAL
8568# else
8569# define LT_DLGLOBAL 0
8570# endif
8571#endif
8572
8573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8574 find out it does not work in some platform. */
8575#ifndef LT_DLLAZY_OR_NOW
8576# ifdef RTLD_LAZY
8577# define LT_DLLAZY_OR_NOW RTLD_LAZY
8578# else
8579# ifdef DL_LAZY
8580# define LT_DLLAZY_OR_NOW DL_LAZY
8581# else
8582# ifdef RTLD_NOW
8583# define LT_DLLAZY_OR_NOW RTLD_NOW
8584# else
8585# ifdef DL_NOW
8586# define LT_DLLAZY_OR_NOW DL_NOW
8587# else
8588# define LT_DLLAZY_OR_NOW 0
8589# endif
8590# endif
8591# endif
8592# endif
8593#endif
8594
8595#ifdef __cplusplus
8596extern "C" void exit (int);
8597#endif
8598
8599void fnord() { int i=42;}
8600int main ()
8601{
8602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8603 int status = $lt_dlunknown;
8604
8605 if (self)
8606 {
8607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8609 /* dlclose (self); */
8610 }
8611
8612 exit (status);
8613}
8614EOF
8615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8620 (./conftest; exit; ) 2>/dev/null
8621 lt_status=$?
8622 case x$lt_status in
8623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8625 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8626 esac
8627 else :
8628 # compilation failed
8629 lt_cv_dlopen_self=no
8630 fi
8631fi
8632rm -fr conftest*
8633
8634
8635fi
8636echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8637echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8638
8639 if test "x$lt_cv_dlopen_self" = xyes; then
8640 LDFLAGS="$LDFLAGS $link_static_flag"
8641 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8642echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8643if test "${lt_cv_dlopen_self_static+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645else
8646 if test "$cross_compiling" = yes; then :
8647 lt_cv_dlopen_self_static=cross
8648else
John Criswell47fdd832003-07-14 16:52:07 +00008649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008650 lt_status=$lt_dlunknown
8651 cat > conftest.$ac_ext <<EOF
John Criswell08acb9b2003-09-16 02:12:45 +00008652#line 8652 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008653#include "confdefs.h"
8654
8655#if HAVE_DLFCN_H
8656#include <dlfcn.h>
8657#endif
8658
8659#include <stdio.h>
8660
8661#ifdef RTLD_GLOBAL
8662# define LT_DLGLOBAL RTLD_GLOBAL
8663#else
8664# ifdef DL_GLOBAL
8665# define LT_DLGLOBAL DL_GLOBAL
8666# else
8667# define LT_DLGLOBAL 0
8668# endif
8669#endif
8670
8671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8672 find out it does not work in some platform. */
8673#ifndef LT_DLLAZY_OR_NOW
8674# ifdef RTLD_LAZY
8675# define LT_DLLAZY_OR_NOW RTLD_LAZY
8676# else
8677# ifdef DL_LAZY
8678# define LT_DLLAZY_OR_NOW DL_LAZY
8679# else
8680# ifdef RTLD_NOW
8681# define LT_DLLAZY_OR_NOW RTLD_NOW
8682# else
8683# ifdef DL_NOW
8684# define LT_DLLAZY_OR_NOW DL_NOW
8685# else
8686# define LT_DLLAZY_OR_NOW 0
8687# endif
8688# endif
8689# endif
8690# endif
8691#endif
8692
8693#ifdef __cplusplus
8694extern "C" void exit (int);
8695#endif
8696
8697void fnord() { int i=42;}
8698int main ()
8699{
8700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8701 int status = $lt_dlunknown;
8702
8703 if (self)
8704 {
8705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8706 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8707 /* dlclose (self); */
8708 }
8709
8710 exit (status);
8711}
8712EOF
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8718 (./conftest; exit; ) 2>/dev/null
8719 lt_status=$?
8720 case x$lt_status in
8721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8723 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8724 esac
8725 else :
8726 # compilation failed
8727 lt_cv_dlopen_self_static=no
8728 fi
8729fi
8730rm -fr conftest*
8731
8732
8733fi
8734echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8735echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8736 fi
8737
8738 CPPFLAGS="$save_CPPFLAGS"
8739 LDFLAGS="$save_LDFLAGS"
8740 LIBS="$save_LIBS"
8741 ;;
8742 esac
8743
8744 case $lt_cv_dlopen_self in
8745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8746 *) enable_dlopen_self=unknown ;;
8747 esac
8748
8749 case $lt_cv_dlopen_self_static in
8750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8751 *) enable_dlopen_self_static=unknown ;;
8752 esac
8753fi
8754
8755
John Criswell47fdd832003-07-14 16:52:07 +00008756# Report which librarie types wil actually be built
8757echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8758echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8759echo "$as_me:$LINENO: result: $can_build_shared" >&5
8760echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008761
John Criswell47fdd832003-07-14 16:52:07 +00008762echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8763echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8764test "$can_build_shared" = "no" && enable_shared=no
8765
8766# On AIX, shared libraries and static libraries use the same namespace, and
8767# are all built from PIC.
8768case "$host_os" in
8769aix3*)
8770 test "$enable_shared" = yes && enable_static=no
8771 if test -n "$RANLIB"; then
8772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8773 postinstall_cmds='$RANLIB $lib'
8774 fi
8775 ;;
8776
8777aix4*)
8778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8779 test "$enable_shared" = yes && enable_static=no
8780 fi
8781 ;;
8782 darwin* | rhapsody*)
8783 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8784 archive_cmds_need_lc=no
8785 case "$host_os" in
8786 rhapsody* | darwin1.[012])
8787 allow_undefined_flag='-undefined suppress'
8788 ;;
8789 *) # Darwin 1.3 on
8790 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8791 ;;
8792 esac
8793 # FIXME: Relying on posixy $() will cause problems for
8794 # cross-compilation, but unfortunately the echo tests do not
8795 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8796 # `"' quotes if we put them in here... so don't!
8797 output_verbose_link_cmd='echo'
8798 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8799 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8800 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8801 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}'
8802 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}'
8803 hardcode_direct=no
8804 hardcode_automatic=yes
8805 hardcode_shlibpath_var=unsupported
8806 whole_archive_flag_spec='-all_load $convenience'
8807 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008808 fi
John Criswell7a73b802003-06-30 21:59:07 +00008809 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008810esac
8811echo "$as_me:$LINENO: result: $enable_shared" >&5
8812echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008813
John Criswell47fdd832003-07-14 16:52:07 +00008814echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8815echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8816# Make sure either enable_shared or enable_static is yes.
8817test "$enable_shared" = yes || enable_static=yes
8818echo "$as_me:$LINENO: result: $enable_static" >&5
8819echo "${ECHO_T}$enable_static" >&6
8820
8821# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008822# libtool distribution, otherwise you forgot to ship ltmain.sh
8823# with your package, and you will get complaints that there are
8824# no rules to generate ltmain.sh.
8825if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008826 # See if we are running on zsh, and set the options which allow our commands through
8827 # without removal of \ escapes.
8828 if test -n "${ZSH_VERSION+set}" ; then
8829 setopt NO_GLOB_SUBST
8830 fi
John Criswell7a73b802003-06-30 21:59:07 +00008831 # Now quote all the things that may contain metacharacters while being
8832 # careful not to overquote the AC_SUBSTed values. We take copies of the
8833 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008834 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8837 deplibs_check_method reload_flag reload_cmds need_locks \
8838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8839 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008841 old_postinstall_cmds old_postuninstall_cmds \
8842 compiler \
8843 CC \
8844 LD \
8845 lt_prog_compiler_wl \
8846 lt_prog_compiler_pic \
8847 lt_prog_compiler_static \
8848 lt_prog_compiler_no_builtin_flag \
8849 export_dynamic_flag_spec \
8850 thread_safe_flag_spec \
8851 whole_archive_flag_spec \
8852 enable_shared_with_static_runtimes \
8853 old_archive_cmds \
8854 old_archive_from_new_cmds \
8855 predep_objects \
8856 postdep_objects \
8857 predeps \
8858 postdeps \
8859 compiler_lib_search_path \
8860 archive_cmds \
8861 archive_expsym_cmds \
8862 postinstall_cmds \
8863 postuninstall_cmds \
8864 old_archive_from_expsyms_cmds \
8865 allow_undefined_flag \
8866 no_undefined_flag \
8867 export_symbols_cmds \
8868 hardcode_libdir_flag_spec \
8869 hardcode_libdir_flag_spec_ld \
8870 hardcode_libdir_separator \
8871 hardcode_automatic \
8872 module_cmds \
8873 module_expsym_cmds \
8874 lt_cv_prog_compiler_c_o \
8875 exclude_expsyms \
8876 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008877
8878 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008879 old_archive_cmds | \
8880 old_archive_from_new_cmds | \
8881 archive_cmds | \
8882 archive_expsym_cmds | \
8883 module_cmds | \
8884 module_expsym_cmds | \
8885 old_archive_from_expsyms_cmds | \
8886 export_symbols_cmds | \
8887 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008888 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008889 old_postinstall_cmds | old_postuninstall_cmds | \
8890 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008891 # Double-quote double-evaled strings.
8892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8893 ;;
8894 *)
8895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8896 ;;
8897 esac
8898 done
8899
John Criswell47fdd832003-07-14 16:52:07 +00008900 case $lt_echo in
8901 *'\$0 --fallback-echo"')
8902 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8903 ;;
8904 esac
8905
8906cfgfile="${ofile}T"
8907 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8908 $rm -f "$cfgfile"
8909 { echo "$as_me:$LINENO: creating $ofile" >&5
8910echo "$as_me: creating $ofile" >&6;}
8911
8912 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008913#! $SHELL
8914
John Criswell47fdd832003-07-14 16:52:07 +00008915# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008916# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8917# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8918#
John Criswell47fdd832003-07-14 16:52:07 +00008919# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8920# Free Software Foundation, Inc.
8921#
8922# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008923# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8924#
8925# This program is free software; you can redistribute it and/or modify
8926# it under the terms of the GNU General Public License as published by
8927# the Free Software Foundation; either version 2 of the License, or
8928# (at your option) any later version.
8929#
8930# This program is distributed in the hope that it will be useful, but
8931# WITHOUT ANY WARRANTY; without even the implied warranty of
8932# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8933# General Public License for more details.
8934#
8935# You should have received a copy of the GNU General Public License
8936# along with this program; if not, write to the Free Software
8937# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8938#
8939# As a special exception to the GNU General Public License, if you
8940# distribute this file as part of a program that contains a
8941# configuration script generated by Autoconf, you may include it under
8942# the same distribution terms that you use for the rest of that program.
8943
John Criswell47fdd832003-07-14 16:52:07 +00008944# A sed program that does not truncate output.
8945SED=$lt_SED
8946
John Criswell7a73b802003-06-30 21:59:07 +00008947# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008948Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008949
8950# The HP-UX ksh and POSIX shell print the target directory to stdout
8951# if CDPATH is set.
8952if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8953
John Criswell47fdd832003-07-14 16:52:07 +00008954# The names of the tagged configurations supported by this script.
8955available_tags=
8956
John Criswell7a73b802003-06-30 21:59:07 +00008957# ### BEGIN LIBTOOL CONFIG
8958
8959# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8960
8961# Shell to use when invoking shell scripts.
8962SHELL=$lt_SHELL
8963
8964# Whether or not to build shared libraries.
8965build_libtool_libs=$enable_shared
8966
8967# Whether or not to build static libraries.
8968build_old_libs=$enable_static
8969
8970# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008971build_libtool_need_lc=$archive_cmds_need_lc
8972
8973# Whether or not to disallow shared libs when runtime libs are static
8974allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008975
8976# Whether or not to optimize for fast installation.
8977fast_install=$enable_fast_install
8978
8979# The host system.
8980host_alias=$host_alias
8981host=$host
8982
8983# An echo program that does not interpret backslashes.
8984echo=$lt_echo
8985
8986# The archiver.
8987AR=$lt_AR
8988AR_FLAGS=$lt_AR_FLAGS
8989
John Criswell47fdd832003-07-14 16:52:07 +00008990# A C compiler.
8991LTCC=$lt_LTCC
8992
8993# A language-specific compiler.
8994CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008995
8996# Is the compiler the GNU C compiler?
8997with_gcc=$GCC
8998
John Criswell47fdd832003-07-14 16:52:07 +00008999# An ERE matcher.
9000EGREP=$lt_EGREP
9001
John Criswell7a73b802003-06-30 21:59:07 +00009002# The linker used to build libraries.
9003LD=$lt_LD
9004
9005# Whether we need hard or soft links.
9006LN_S=$lt_LN_S
9007
9008# A BSD-compatible nm program.
9009NM=$lt_NM
9010
9011# A symbol stripping program
9012STRIP=$STRIP
9013
9014# Used to examine libraries when file_magic_cmd begins "file"
9015MAGIC_CMD=$MAGIC_CMD
9016
9017# Used on cygwin: DLL creation program.
9018DLLTOOL="$DLLTOOL"
9019
9020# Used on cygwin: object dumper.
9021OBJDUMP="$OBJDUMP"
9022
9023# Used on cygwin: assembler.
9024AS="$AS"
9025
9026# The name of the directory that contains temporary libtool files.
9027objdir=$objdir
9028
9029# How to create reloadable object files.
9030reload_flag=$lt_reload_flag
9031reload_cmds=$lt_reload_cmds
9032
9033# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009034wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009035
9036# Object file suffix (normally "o").
9037objext="$ac_objext"
9038
9039# Old archive suffix (normally "a").
9040libext="$libext"
9041
John Criswell47fdd832003-07-14 16:52:07 +00009042# Shared library suffix (normally ".so").
9043shrext='$shrext'
9044
John Criswell7a73b802003-06-30 21:59:07 +00009045# Executable file suffix (normally "").
9046exeext="$exeext"
9047
9048# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009049pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009050pic_mode=$pic_mode
9051
John Criswell47fdd832003-07-14 16:52:07 +00009052# What is the maximum length of a command?
9053max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009054
John Criswell47fdd832003-07-14 16:52:07 +00009055# Does compiler simultaneously support -c and -o options?
9056compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009057
9058# Must we lock files when doing compilation ?
9059need_locks=$lt_need_locks
9060
9061# Do we need the lib prefix for modules?
9062need_lib_prefix=$need_lib_prefix
9063
9064# Do we need a version for libraries?
9065need_version=$need_version
9066
9067# Whether dlopen is supported.
9068dlopen_support=$enable_dlopen
9069
9070# Whether dlopen of programs is supported.
9071dlopen_self=$enable_dlopen_self
9072
9073# Whether dlopen of statically linked programs is supported.
9074dlopen_self_static=$enable_dlopen_self_static
9075
9076# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009077link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009078
9079# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009080no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009081
9082# Compiler flag to allow reflexive dlopens.
9083export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9084
9085# Compiler flag to generate shared objects directly from archives.
9086whole_archive_flag_spec=$lt_whole_archive_flag_spec
9087
9088# Compiler flag to generate thread-safe objects.
9089thread_safe_flag_spec=$lt_thread_safe_flag_spec
9090
9091# Library versioning type.
9092version_type=$version_type
9093
9094# Format of library name prefix.
9095libname_spec=$lt_libname_spec
9096
9097# List of archive names. First name is the real one, the rest are links.
9098# The last name is the one that the linker finds with -lNAME.
9099library_names_spec=$lt_library_names_spec
9100
9101# The coded name of the library, if different from the real name.
9102soname_spec=$lt_soname_spec
9103
9104# Commands used to build and install an old-style archive.
9105RANLIB=$lt_RANLIB
9106old_archive_cmds=$lt_old_archive_cmds
9107old_postinstall_cmds=$lt_old_postinstall_cmds
9108old_postuninstall_cmds=$lt_old_postuninstall_cmds
9109
9110# Create an old-style archive from a shared archive.
9111old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9112
9113# Create a temporary old-style archive to link instead of a shared archive.
9114old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9115
9116# Commands used to build and install a shared archive.
9117archive_cmds=$lt_archive_cmds
9118archive_expsym_cmds=$lt_archive_expsym_cmds
9119postinstall_cmds=$lt_postinstall_cmds
9120postuninstall_cmds=$lt_postuninstall_cmds
9121
John Criswell47fdd832003-07-14 16:52:07 +00009122# Commands used to build a loadable module (assumed same as above if empty)
9123module_cmds=$lt_module_cmds
9124module_expsym_cmds=$lt_module_expsym_cmds
9125
John Criswell7a73b802003-06-30 21:59:07 +00009126# Commands to strip libraries.
9127old_striplib=$lt_old_striplib
9128striplib=$lt_striplib
9129
John Criswell47fdd832003-07-14 16:52:07 +00009130# Dependencies to place before the objects being linked to create a
9131# shared library.
9132predep_objects=$lt_predep_objects
9133
9134# Dependencies to place after the objects being linked to create a
9135# shared library.
9136postdep_objects=$lt_postdep_objects
9137
9138# Dependencies to place before the objects being linked to create a
9139# shared library.
9140predeps=$lt_predeps
9141
9142# Dependencies to place after the objects being linked to create a
9143# shared library.
9144postdeps=$lt_postdeps
9145
9146# The library search path used internally by the compiler when linking
9147# a shared library.
9148compiler_lib_search_path=$lt_compiler_lib_search_path
9149
John Criswell7a73b802003-06-30 21:59:07 +00009150# Method to check whether dependent libraries are shared objects.
9151deplibs_check_method=$lt_deplibs_check_method
9152
9153# Command to use when deplibs_check_method == file_magic.
9154file_magic_cmd=$lt_file_magic_cmd
9155
9156# Flag that allows shared libraries with undefined symbols to be built.
9157allow_undefined_flag=$lt_allow_undefined_flag
9158
9159# Flag that forces no undefined symbols.
9160no_undefined_flag=$lt_no_undefined_flag
9161
9162# Commands used to finish a libtool library installation in a directory.
9163finish_cmds=$lt_finish_cmds
9164
9165# Same as above, but a single script fragment to be evaled but not shown.
9166finish_eval=$lt_finish_eval
9167
9168# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009169global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009170
9171# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009172global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009173
9174# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009175global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009176
9177# This is the shared library runtime path variable.
9178runpath_var=$runpath_var
9179
9180# This is the shared library path variable.
9181shlibpath_var=$shlibpath_var
9182
9183# Is shlibpath searched before the hard-coded library search path?
9184shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9185
9186# How to hardcode a shared library path into an executable.
9187hardcode_action=$hardcode_action
9188
9189# Whether we should hardcode library paths into libraries.
9190hardcode_into_libs=$hardcode_into_libs
9191
9192# Flag to hardcode \$libdir into a binary during linking.
9193# This must work even if \$libdir does not exist.
9194hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9195
John Criswell47fdd832003-07-14 16:52:07 +00009196# If ld is used when linking, flag to hardcode \$libdir into
9197# a binary during linking. This must work even if \$libdir does
9198# not exist.
9199hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9200
John Criswell7a73b802003-06-30 21:59:07 +00009201# Whether we need a single -rpath flag with a separated argument.
9202hardcode_libdir_separator=$lt_hardcode_libdir_separator
9203
John Criswell47fdd832003-07-14 16:52:07 +00009204# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009205# resulting binary.
9206hardcode_direct=$hardcode_direct
9207
9208# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9209# resulting binary.
9210hardcode_minus_L=$hardcode_minus_L
9211
9212# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9213# the resulting binary.
9214hardcode_shlibpath_var=$hardcode_shlibpath_var
9215
John Criswell47fdd832003-07-14 16:52:07 +00009216# Set to yes if building a shared library automatically hardcodes DIR into the library
9217# and all subsequent libraries and executables linked against it.
9218hardcode_automatic=$hardcode_automatic
9219
John Criswell7a73b802003-06-30 21:59:07 +00009220# Variables whose values should be saved in libtool wrapper scripts and
9221# restored at relink time.
9222variables_saved_for_relink="$variables_saved_for_relink"
9223
9224# Whether libtool must link a program against all its dependency libraries.
9225link_all_deplibs=$link_all_deplibs
9226
9227# Compile-time system search path for libraries
9228sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9229
9230# Run-time system search path for libraries
9231sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9232
9233# Fix the shell variable \$srcfile for the compiler.
9234fix_srcfile_path="$fix_srcfile_path"
9235
9236# Set to yes if exported symbols are required.
9237always_export_symbols=$always_export_symbols
9238
9239# The commands to list exported symbols.
9240export_symbols_cmds=$lt_export_symbols_cmds
9241
9242# The commands to extract the exported symbol list from a shared archive.
9243extract_expsyms_cmds=$lt_extract_expsyms_cmds
9244
9245# Symbols that should not be listed in the preloaded symbols.
9246exclude_expsyms=$lt_exclude_expsyms
9247
9248# Symbols that must always be exported.
9249include_expsyms=$lt_include_expsyms
9250
9251# ### END LIBTOOL CONFIG
9252
9253__EOF__
9254
John Criswell47fdd832003-07-14 16:52:07 +00009255
John Criswell7a73b802003-06-30 21:59:07 +00009256 case $host_os in
9257 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009258 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009259
9260# AIX sometimes has problems with the GCC collect2 program. For some
9261# reason, if we set the COLLECT_NAMES environment variable, the problems
9262# vanish in a puff of smoke.
9263if test "X${COLLECT_NAMES+set}" != Xset; then
9264 COLLECT_NAMES=
9265 export COLLECT_NAMES
9266fi
9267EOF
9268 ;;
9269 esac
9270
John Criswell7a73b802003-06-30 21:59:07 +00009271 # We use sed instead of cat because bash on DJGPP gets confused if
9272 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9273 # text mode, it properly converts lines to CR/LF. This bash problem
9274 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009275 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009276
John Criswell47fdd832003-07-14 16:52:07 +00009277 mv -f "$cfgfile" "$ofile" || \
9278 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009279 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009280
9281else
9282 # If there is no Makefile yet, we rely on a make rule to execute
9283 # `config.status --recheck' to rerun these tests and create the
9284 # libtool script then.
9285 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009286fi
John Criswell7a73b802003-06-30 21:59:07 +00009287
9288
John Criswell47fdd832003-07-14 16:52:07 +00009289ac_ext=c
9290ac_cpp='$CPP $CPPFLAGS'
9291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9293ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294
9295CC="$lt_save_CC"
9296
9297
9298# Check whether --with-tags or --without-tags was given.
9299if test "${with_tags+set}" = set; then
9300 withval="$with_tags"
9301 tagnames="$withval"
9302fi;
9303
9304if test -f "$ltmain" && test -n "$tagnames"; then
9305 if test ! -f "${ofile}"; then
9306 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9307echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9308 fi
9309
9310 if test -z "$LTCC"; then
9311 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9312 if test -z "$LTCC"; then
9313 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9314echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9315 else
9316 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9317echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9318 fi
9319 fi
9320
9321 # Extract list of available tagged configurations in $ofile.
9322 # Note that this assumes the entire list is on one line.
9323 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9324
9325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9326 for tagname in $tagnames; do
9327 IFS="$lt_save_ifs"
9328 # Check whether tagname contains only valid characters
9329 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9330 "") ;;
9331 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9332echo "$as_me: error: invalid tag name: $tagname" >&2;}
9333 { (exit 1); exit 1; }; }
9334 ;;
9335 esac
9336
9337 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9338 then
9339 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9340echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9341 { (exit 1); exit 1; }; }
9342 fi
9343
9344 # Update the list of available tags.
9345 if test -n "$tagname"; then
9346 echo appending configuration tag \"$tagname\" to $ofile
9347
9348 case $tagname in
9349 CXX)
9350 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9351 ac_ext=cc
9352ac_cpp='$CXXCPP $CPPFLAGS'
9353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9356
9357
9358
9359
9360archive_cmds_need_lc_CXX=no
9361allow_undefined_flag_CXX=
9362always_export_symbols_CXX=no
9363archive_expsym_cmds_CXX=
9364export_dynamic_flag_spec_CXX=
9365hardcode_direct_CXX=no
9366hardcode_libdir_flag_spec_CXX=
9367hardcode_libdir_flag_spec_ld_CXX=
9368hardcode_libdir_separator_CXX=
9369hardcode_minus_L_CXX=no
9370hardcode_automatic_CXX=no
9371module_cmds_CXX=
9372module_expsym_cmds_CXX=
9373link_all_deplibs_CXX=unknown
9374old_archive_cmds_CXX=$old_archive_cmds
9375no_undefined_flag_CXX=
9376whole_archive_flag_spec_CXX=
9377enable_shared_with_static_runtimes_CXX=no
9378
9379# Dependencies to place before and after the object being linked:
9380predep_objects_CXX=
9381postdep_objects_CXX=
9382predeps_CXX=
9383postdeps_CXX=
9384compiler_lib_search_path_CXX=
9385
9386# Source file extension for C++ test sources.
9387ac_ext=cc
9388
9389# Object file extension for compiled C++ test sources.
9390objext=o
9391objext_CXX=$objext
9392
9393# Code to be used in simple compile tests
9394lt_simple_compile_test_code="int some_variable = 0;\n"
9395
9396# Code to be used in simple link tests
9397lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9398
9399# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9400
9401# If no C compiler was specified, use CC.
9402LTCC=${LTCC-"$CC"}
9403
9404# Allow CC to be a program name with arguments.
9405compiler=$CC
9406
9407
9408# Allow CC to be a program name with arguments.
9409lt_save_CC=$CC
9410lt_save_LD=$LD
9411lt_save_GCC=$GCC
9412GCC=$GXX
9413lt_save_with_gnu_ld=$with_gnu_ld
9414lt_save_path_LD=$lt_cv_path_LD
9415if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9416 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9417else
9418 unset lt_cv_prog_gnu_ld
9419fi
9420if test -n "${lt_cv_path_LDCXX+set}"; then
9421 lt_cv_path_LD=$lt_cv_path_LDCXX
9422else
9423 unset lt_cv_path_LD
9424fi
9425test -z "${LDCXX+set}" || LD=$LDCXX
9426CC=${CXX-"c++"}
9427compiler=$CC
9428compiler_CXX=$CC
9429cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9430
9431# We don't want -fno-exception wen compiling C++ code, so set the
9432# no_builtin_flag separately
9433if test "$GXX" = yes; then
9434 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9435else
9436 lt_prog_compiler_no_builtin_flag_CXX=
9437fi
9438
9439if test "$GXX" = yes; then
9440 # Set up default GNU C++ configuration
9441
9442
9443# Check whether --with-gnu-ld or --without-gnu-ld was given.
9444if test "${with_gnu_ld+set}" = set; then
9445 withval="$with_gnu_ld"
9446 test "$withval" = no || with_gnu_ld=yes
9447else
9448 with_gnu_ld=no
9449fi;
9450ac_prog=ld
9451if test "$GCC" = yes; then
9452 # Check if gcc -print-prog-name=ld gives a path.
9453 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9454echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9455 case $host in
9456 *-*-mingw*)
9457 # gcc leaves a trailing carriage return which upsets mingw
9458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9459 *)
9460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9461 esac
9462 case $ac_prog in
9463 # Accept absolute paths.
9464 [\\/]* | ?:[\\/]*)
9465 re_direlt='/[^/][^/]*/\.\./'
9466 # Canonicalize the path of ld
9467 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9468 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9469 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9470 done
9471 test -z "$LD" && LD="$ac_prog"
9472 ;;
9473 "")
9474 # If it fails, then pretend we aren't using GCC.
9475 ac_prog=ld
9476 ;;
9477 *)
9478 # If it is relative, then search for the first ld in PATH.
9479 with_gnu_ld=unknown
9480 ;;
9481 esac
9482elif test "$with_gnu_ld" = yes; then
9483 echo "$as_me:$LINENO: checking for GNU ld" >&5
9484echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9485else
9486 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9487echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9488fi
9489if test "${lt_cv_path_LD+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491else
9492 if test -z "$LD"; then
9493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9494 for ac_dir in $PATH; do
9495 IFS="$lt_save_ifs"
9496 test -z "$ac_dir" && ac_dir=.
9497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9498 lt_cv_path_LD="$ac_dir/$ac_prog"
9499 # Check to see if the program is GNU ld. I'd rather use --version,
9500 # but apparently some GNU ld's only accept -v.
9501 # Break only if it was the GNU/non-GNU ld that we prefer.
9502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9503 *GNU* | *'with BFD'*)
9504 test "$with_gnu_ld" != no && break
9505 ;;
9506 *)
9507 test "$with_gnu_ld" != yes && break
9508 ;;
9509 esac
9510 fi
9511 done
9512 IFS="$lt_save_ifs"
9513else
9514 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9515fi
9516fi
9517
9518LD="$lt_cv_path_LD"
9519if test -n "$LD"; then
9520 echo "$as_me:$LINENO: result: $LD" >&5
9521echo "${ECHO_T}$LD" >&6
9522else
9523 echo "$as_me:$LINENO: result: no" >&5
9524echo "${ECHO_T}no" >&6
9525fi
9526test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9527echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9528 { (exit 1); exit 1; }; }
9529echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9530echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9531if test "${lt_cv_prog_gnu_ld+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533else
9534 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9535case `"$LD" -v 2>&1 </dev/null` in
9536*GNU* | *'with BFD'*)
9537 lt_cv_prog_gnu_ld=yes
9538 ;;
9539*)
9540 lt_cv_prog_gnu_ld=no
9541 ;;
9542esac
9543fi
9544echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9545echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9546with_gnu_ld=$lt_cv_prog_gnu_ld
9547
9548
9549
9550 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9551 # archiving commands below assume that GNU ld is being used.
9552 if test "$with_gnu_ld" = yes; then
9553 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 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'
9555
9556 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9558
9559 # If archive_cmds runs LD, not CC, wlarc should be empty
9560 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9561 # investigate it a little bit more. (MM)
9562 wlarc='${wl}'
9563
9564 # ancient GNU ld didn't support --whole-archive et. al.
9565 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9566 grep 'no-whole-archive' > /dev/null; then
9567 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9568 else
9569 whole_archive_flag_spec_CXX=
9570 fi
9571 else
9572 with_gnu_ld=no
9573 wlarc=
9574
9575 # A generic and very simple default shared library creation
9576 # command for GNU C++ for the case where it uses the native
9577 # linker, instead of GNU ld. If possible, this setting should
9578 # overridden to take advantage of the native linker features on
9579 # the platform it is being used on.
9580 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9581 fi
9582
9583 # Commands to make compiler produce verbose output that lists
9584 # what "hidden" libraries, object files and flags are used when
9585 # linking a shared library.
9586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9587
9588else
9589 GXX=no
9590 with_gnu_ld=no
9591 wlarc=
9592fi
9593
9594# PORTME: fill in a description of your system's C++ link characteristics
9595echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9596echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9597ld_shlibs_CXX=yes
9598case $host_os in
9599 aix3*)
9600 # FIXME: insert proper C++ library support
9601 ld_shlibs_CXX=no
9602 ;;
9603 aix4* | aix5*)
9604 if test "$host_cpu" = ia64; then
9605 # On IA64, the linker does run time linking by default, so we don't
9606 # have to do anything special.
9607 aix_use_runtimelinking=no
9608 exp_sym_flag='-Bexport'
9609 no_entry_flag=""
9610 else
9611 aix_use_runtimelinking=no
9612
9613 # Test if we are trying to use run time linking or normal
9614 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9615 # need to do runtime linking.
9616 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9617 for ld_flag in $LDFLAGS; do
9618 case $ld_flag in
9619 *-brtl*)
9620 aix_use_runtimelinking=yes
9621 break
9622 ;;
9623 esac
9624 done
9625 esac
9626
9627 exp_sym_flag='-bexport'
9628 no_entry_flag='-bnoentry'
9629 fi
9630
9631 # When large executables or shared objects are built, AIX ld can
9632 # have problems creating the table of contents. If linking a library
9633 # or program results in "error TOC overflow" add -mminimal-toc to
9634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9636
9637 archive_cmds_CXX=''
9638 hardcode_direct_CXX=yes
9639 hardcode_libdir_separator_CXX=':'
9640 link_all_deplibs_CXX=yes
9641
9642 if test "$GXX" = yes; then
9643 case $host_os in aix4.012|aix4.012.*)
9644 # We only want to do this on AIX 4.2 and lower, the check
9645 # below for broken collect2 doesn't work under 4.3+
9646 collect2name=`${CC} -print-prog-name=collect2`
9647 if test -f "$collect2name" && \
9648 strings "$collect2name" | grep resolve_lib_name >/dev/null
9649 then
9650 # We have reworked collect2
9651 hardcode_direct_CXX=yes
9652 else
9653 # We have old collect2
9654 hardcode_direct_CXX=unsupported
9655 # It fails to find uninstalled libraries when the uninstalled
9656 # path is not listed in the libpath. Setting hardcode_minus_L
9657 # to unsupported forces relinking
9658 hardcode_minus_L_CXX=yes
9659 hardcode_libdir_flag_spec_CXX='-L$libdir'
9660 hardcode_libdir_separator_CXX=
9661 fi
9662 esac
9663 shared_flag='-shared'
9664 else
9665 # not using gcc
9666 if test "$host_cpu" = ia64; then
9667 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9668 # chokes on -Wl,-G. The following line is correct:
9669 shared_flag='-G'
9670 else
9671 if test "$aix_use_runtimelinking" = yes; then
9672 shared_flag='${wl}-G'
9673 else
9674 shared_flag='${wl}-bM:SRE'
9675 fi
9676 fi
9677 fi
9678
9679 # It seems that -bexpall does not export symbols beginning with
9680 # underscore (_), so it is better to generate a list of symbols to export.
9681 always_export_symbols_CXX=yes
9682 if test "$aix_use_runtimelinking" = yes; then
9683 # Warning - without using the other runtime loading flags (-brtl),
9684 # -berok will link without error, but may produce a broken library.
9685 allow_undefined_flag_CXX='-berok'
9686 # Determine the default libpath from the value encoded in an empty executable.
9687 cat >conftest.$ac_ext <<_ACEOF
9688#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009689/* confdefs.h. */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009694
John Criswell47fdd832003-07-14 16:52:07 +00009695int
9696main ()
9697{
9698
9699 ;
9700 return 0;
9701}
9702_ACEOF
9703rm -f conftest.$ac_objext conftest$ac_exeext
9704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715
9716aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9717}'`
9718# Check for a 64-bit object if we didn't find anything.
9719if 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; }
9720}'`; fi
9721else
9722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009723sed 's/^/| /' conftest.$ac_ext >&5
9724
John Criswell47fdd832003-07-14 16:52:07 +00009725fi
9726rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9727if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9728
9729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9730
9731 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"
9732 else
9733 if test "$host_cpu" = ia64; then
9734 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9735 allow_undefined_flag_CXX="-z nodefs"
9736 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"
9737 else
9738 # Determine the default libpath from the value encoded in an empty executable.
9739 cat >conftest.$ac_ext <<_ACEOF
9740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009741/* confdefs.h. */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009746
John Criswell47fdd832003-07-14 16:52:07 +00009747int
9748main ()
9749{
9750
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755rm -f conftest.$ac_objext conftest$ac_exeext
9756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9757 (eval $ac_link) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767
9768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9769}'`
9770# Check for a 64-bit object if we didn't find anything.
9771if 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; }
9772}'`; fi
9773else
9774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009775sed 's/^/| /' conftest.$ac_ext >&5
9776
John Criswell47fdd832003-07-14 16:52:07 +00009777fi
9778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9780
9781 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9782 # Warning - without using the other run time loading flags,
9783 # -berok will link without error, but may produce a broken library.
9784 no_undefined_flag_CXX=' ${wl}-bernotok'
9785 allow_undefined_flag_CXX=' ${wl}-berok'
9786 # -bexpall does not export symbols beginning with underscore (_)
9787 always_export_symbols_CXX=yes
9788 # Exported symbols can be pulled into shared objects from archives
9789 whole_archive_flag_spec_CXX=' '
9790 archive_cmds_need_lc_CXX=yes
9791 # This is similar to how AIX traditionally builds it's shared libraries.
9792 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'
9793 fi
9794 fi
9795 ;;
9796 chorus*)
9797 case $cc_basename in
9798 *)
9799 # FIXME: insert proper C++ library support
9800 ld_shlibs_CXX=no
9801 ;;
9802 esac
9803 ;;
9804
9805 cygwin* | mingw* | pw32*)
9806 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9807 # as there is no search path for DLLs.
9808 hardcode_libdir_flag_spec_CXX='-L$libdir'
9809 allow_undefined_flag_CXX=unsupported
9810 always_export_symbols_CXX=no
9811 enable_shared_with_static_runtimes_CXX=yes
9812
9813 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9814 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'
9815 # If the export-symbols file already is a .def file (1st line
9816 # is EXPORTS), use it as is; otherwise, prepend...
9817 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9818 cp $export_symbols $output_objdir/$soname.def;
9819 else
9820 echo EXPORTS > $output_objdir/$soname.def;
9821 cat $export_symbols >> $output_objdir/$soname.def;
9822 fi~
9823 $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'
9824 else
9825 ld_shlibs_CXX=no
9826 fi
9827 ;;
9828
9829 darwin* | rhapsody*)
9830 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9831 archive_cmds_need_lc_CXX=no
9832 case "$host_os" in
9833 rhapsody* | darwin1.[012])
9834 allow_undefined_flag_CXX='-undefined suppress'
9835 ;;
9836 *) # Darwin 1.3 on
9837 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9838 ;;
9839 esac
9840 lt_int_apple_cc_single_mod=no
9841 output_verbose_link_cmd='echo'
9842 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9843 lt_int_apple_cc_single_mod=yes
9844 fi
9845 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9846 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9847 else
9848 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'
9849 fi
9850 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9851
9852 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9853 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9854 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}'
9855 else
9856 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}'
9857 fi
9858 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}'
9859 hardcode_direct_CXX=no
9860 hardcode_automatic_CXX=yes
9861 hardcode_shlibpath_var_CXX=unsupported
9862 whole_archive_flag_spec_CXX='-all_load $convenience'
9863 link_all_deplibs_CXX=yes
9864 fi
9865 ;;
9866
9867 dgux*)
9868 case $cc_basename in
9869 ec++)
9870 # FIXME: insert proper C++ library support
9871 ld_shlibs_CXX=no
9872 ;;
9873 ghcx)
9874 # Green Hills C++ Compiler
9875 # FIXME: insert proper C++ library support
9876 ld_shlibs_CXX=no
9877 ;;
9878 *)
9879 # FIXME: insert proper C++ library support
9880 ld_shlibs_CXX=no
9881 ;;
9882 esac
9883 ;;
9884 freebsd12*)
9885 # C++ shared libraries reported to be fairly broken before switch to ELF
9886 ld_shlibs_CXX=no
9887 ;;
9888 freebsd-elf*)
9889 archive_cmds_need_lc_CXX=no
9890 ;;
9891 freebsd*)
9892 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9893 # conventions
9894 ld_shlibs_CXX=yes
9895 ;;
9896 gnu*)
9897 ;;
9898 hpux9*)
9899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_separator_CXX=:
9901 export_dynamic_flag_spec_CXX='${wl}-E'
9902 hardcode_direct_CXX=yes
9903 hardcode_minus_L_CXX=yes # Not in the search PATH,
9904 # but as the default
9905 # location of the library.
9906
9907 case $cc_basename in
9908 CC)
9909 # FIXME: insert proper C++ library support
9910 ld_shlibs_CXX=no
9911 ;;
9912 aCC)
9913 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'
9914 # Commands to make compiler produce verbose output that lists
9915 # what "hidden" libraries, object files and flags are used when
9916 # linking a shared library.
9917 #
9918 # There doesn't appear to be a way to prevent this compiler from
9919 # explicitly linking system object files so we need to strip them
9920 # from the output so that they don't get included in the library
9921 # dependencies.
9922 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'
9923 ;;
9924 *)
9925 if test "$GXX" = yes; then
9926 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'
9927 else
9928 # FIXME: insert proper C++ library support
9929 ld_shlibs_CXX=no
9930 fi
9931 ;;
9932 esac
9933 ;;
9934 hpux10*|hpux11*)
9935 if test $with_gnu_ld = no; then
9936 case "$host_cpu" in
9937 hppa*64*)
9938 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9940 hardcode_libdir_separator_CXX=:
9941 ;;
9942 ia64*)
9943 hardcode_libdir_flag_spec_CXX='-L$libdir'
9944 ;;
9945 *)
9946 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9947 hardcode_libdir_separator_CXX=:
9948 export_dynamic_flag_spec_CXX='${wl}-E'
9949 ;;
9950 esac
9951 fi
9952 case "$host_cpu" in
9953 hppa*64*)
9954 hardcode_direct_CXX=no
9955 hardcode_shlibpath_var_CXX=no
9956 ;;
9957 ia64*)
9958 hardcode_direct_CXX=no
9959 hardcode_shlibpath_var_CXX=no
9960 hardcode_minus_L_CXX=yes # Not in the search PATH,
9961 # but as the default
9962 # location of the library.
9963 ;;
9964 *)
9965 hardcode_direct_CXX=yes
9966 hardcode_minus_L_CXX=yes # Not in the search PATH,
9967 # but as the default
9968 # location of the library.
9969 ;;
9970 esac
9971
9972 case $cc_basename in
9973 CC)
9974 # FIXME: insert proper C++ library support
9975 ld_shlibs_CXX=no
9976 ;;
9977 aCC)
9978 case "$host_cpu" in
9979 hppa*64*|ia64*)
9980 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9981 ;;
9982 *)
9983 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9984 ;;
9985 esac
9986 # Commands to make compiler produce verbose output that lists
9987 # what "hidden" libraries, object files and flags are used when
9988 # linking a shared library.
9989 #
9990 # There doesn't appear to be a way to prevent this compiler from
9991 # explicitly linking system object files so we need to strip them
9992 # from the output so that they don't get included in the library
9993 # dependencies.
9994 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'
9995 ;;
9996 *)
9997 if test "$GXX" = yes; then
9998 if test $with_gnu_ld = no; then
9999 case "$host_cpu" in
10000 ia64*|hppa*64*)
10001 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10002 ;;
10003 *)
10004 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'
10005 ;;
10006 esac
10007 fi
10008 else
10009 # FIXME: insert proper C++ library support
10010 ld_shlibs_CXX=no
10011 fi
10012 ;;
10013 esac
10014 ;;
10015 irix5* | irix6*)
10016 case $cc_basename in
10017 CC)
10018 # SGI C++
10019 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'
10020
10021 # Archives containing C++ object files must be created using
10022 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10023 # necessary to make sure instantiated templates are included
10024 # in the archive.
10025 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10026 ;;
10027 *)
10028 if test "$GXX" = yes; then
10029 if test "$with_gnu_ld" = no; then
10030 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'
10031 else
10032 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'
10033 fi
10034 fi
10035 link_all_deplibs_CXX=yes
10036 ;;
10037 esac
10038 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10039 hardcode_libdir_separator_CXX=:
10040 ;;
10041 linux*)
10042 case $cc_basename in
10043 KCC)
10044 # Kuck and Associates, Inc. (KAI) C++ Compiler
10045
10046 # KCC will only create a shared library if the output file
10047 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10048 # to its proper name (with version) after linking.
10049 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'
10050 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'
10051 # Commands to make compiler produce verbose output that lists
10052 # what "hidden" libraries, object files and flags are used when
10053 # linking a shared library.
10054 #
10055 # There doesn't appear to be a way to prevent this compiler from
10056 # explicitly linking system object files so we need to strip them
10057 # from the output so that they don't get included in the library
10058 # dependencies.
10059 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'
10060
10061 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10063
10064 # Archives containing C++ object files must be created using
10065 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10066 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10067 ;;
10068 icpc)
10069 # Intel C++
10070 with_gnu_ld=yes
10071 archive_cmds_need_lc_CXX=no
10072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073 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'
10074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10076 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10077 ;;
10078 cxx)
10079 # Compaq C++
10080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 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'
10082
10083 runpath_var=LD_RUN_PATH
10084 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10085 hardcode_libdir_separator_CXX=:
10086
10087 # Commands to make compiler produce verbose output that lists
10088 # what "hidden" libraries, object files and flags are used when
10089 # linking a shared library.
10090 #
10091 # There doesn't appear to be a way to prevent this compiler from
10092 # explicitly linking system object files so we need to strip them
10093 # from the output so that they don't get included in the library
10094 # dependencies.
10095 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'
10096 ;;
10097 esac
10098 ;;
10099 lynxos*)
10100 # FIXME: insert proper C++ library support
10101 ld_shlibs_CXX=no
10102 ;;
10103 m88k*)
10104 # FIXME: insert proper C++ library support
10105 ld_shlibs_CXX=no
10106 ;;
10107 mvs*)
10108 case $cc_basename in
10109 cxx)
10110 # FIXME: insert proper C++ library support
10111 ld_shlibs_CXX=no
10112 ;;
10113 *)
10114 # FIXME: insert proper C++ library support
10115 ld_shlibs_CXX=no
10116 ;;
10117 esac
10118 ;;
10119 netbsd*)
10120 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10122 wlarc=
10123 hardcode_libdir_flag_spec_CXX='-R$libdir'
10124 hardcode_direct_CXX=yes
10125 hardcode_shlibpath_var_CXX=no
10126 fi
10127 # Workaround some broken pre-1.5 toolchains
10128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10129 ;;
10130 osf3*)
10131 case $cc_basename in
10132 KCC)
10133 # Kuck and Associates, Inc. (KAI) C++ Compiler
10134
10135 # KCC will only create a shared library if the output file
10136 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10137 # to its proper name (with version) after linking.
10138 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'
10139
10140 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10141 hardcode_libdir_separator_CXX=:
10142
10143 # Archives containing C++ object files must be created using
10144 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10146
10147 ;;
10148 RCC)
10149 # Rational C++ 2.4.1
10150 # FIXME: insert proper C++ library support
10151 ld_shlibs_CXX=no
10152 ;;
10153 cxx)
10154 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10155 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'
10156
10157 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10158 hardcode_libdir_separator_CXX=:
10159
10160 # Commands to make compiler produce verbose output that lists
10161 # what "hidden" libraries, object files and flags are used when
10162 # linking a shared library.
10163 #
10164 # There doesn't appear to be a way to prevent this compiler from
10165 # explicitly linking system object files so we need to strip them
10166 # from the output so that they don't get included in the library
10167 # dependencies.
10168 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'
10169 ;;
10170 *)
10171 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10172 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10173 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'
10174
10175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10176 hardcode_libdir_separator_CXX=:
10177
10178 # Commands to make compiler produce verbose output that lists
10179 # what "hidden" libraries, object files and flags are used when
10180 # linking a shared library.
10181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10182
10183 else
10184 # FIXME: insert proper C++ library support
10185 ld_shlibs_CXX=no
10186 fi
10187 ;;
10188 esac
10189 ;;
10190 osf4* | osf5*)
10191 case $cc_basename in
10192 KCC)
10193 # Kuck and Associates, Inc. (KAI) C++ Compiler
10194
10195 # KCC will only create a shared library if the output file
10196 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10197 # to its proper name (with version) after linking.
10198 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'
10199
10200 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10201 hardcode_libdir_separator_CXX=:
10202
10203 # Archives containing C++ object files must be created using
10204 # the KAI C++ compiler.
10205 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10206 ;;
10207 RCC)
10208 # Rational C++ 2.4.1
10209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 ;;
10212 cxx)
10213 allow_undefined_flag_CXX=' -expect_unresolved \*'
10214 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'
10215 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10216 echo "-hidden">> $lib.exp~
10217 $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~
10218 $rm $lib.exp'
10219
10220 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10221 hardcode_libdir_separator_CXX=:
10222
10223 # Commands to make compiler produce verbose output that lists
10224 # what "hidden" libraries, object files and flags are used when
10225 # linking a shared library.
10226 #
10227 # There doesn't appear to be a way to prevent this compiler from
10228 # explicitly linking system object files so we need to strip them
10229 # from the output so that they don't get included in the library
10230 # dependencies.
10231 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'
10232 ;;
10233 *)
10234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10235 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10236 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'
10237
10238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10240
10241 # Commands to make compiler produce verbose output that lists
10242 # what "hidden" libraries, object files and flags are used when
10243 # linking a shared library.
10244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10245
10246 else
10247 # FIXME: insert proper C++ library support
10248 ld_shlibs_CXX=no
10249 fi
10250 ;;
10251 esac
10252 ;;
10253 psos*)
10254 # FIXME: insert proper C++ library support
10255 ld_shlibs_CXX=no
10256 ;;
10257 sco*)
10258 archive_cmds_need_lc_CXX=no
10259 case $cc_basename in
10260 CC)
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 ;;
10264 *)
10265 # FIXME: insert proper C++ library support
10266 ld_shlibs_CXX=no
10267 ;;
10268 esac
10269 ;;
10270 sunos4*)
10271 case $cc_basename in
10272 CC)
10273 # Sun C++ 4.x
10274 # FIXME: insert proper C++ library support
10275 ld_shlibs_CXX=no
10276 ;;
10277 lcc)
10278 # Lucid
10279 # FIXME: insert proper C++ library support
10280 ld_shlibs_CXX=no
10281 ;;
10282 *)
10283 # FIXME: insert proper C++ library support
10284 ld_shlibs_CXX=no
10285 ;;
10286 esac
10287 ;;
10288 solaris*)
10289 case $cc_basename in
10290 CC)
10291 # Sun C++ 4.2, 5.x and Centerline C++
10292 no_undefined_flag_CXX=' -zdefs'
10293 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10294 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10295 $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'
10296
10297 hardcode_libdir_flag_spec_CXX='-R$libdir'
10298 hardcode_shlibpath_var_CXX=no
10299 case $host_os in
10300 solaris2.0-5 | solaris2.0-5.*) ;;
10301 *)
10302 # The C++ compiler is used as linker so we must use $wl
10303 # flag to pass the commands to the underlying system
10304 # linker.
10305 # Supported since Solaris 2.6 (maybe 2.5.1?)
10306 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10307 ;;
10308 esac
10309 link_all_deplibs_CXX=yes
10310
10311 # Commands to make compiler produce verbose output that lists
10312 # what "hidden" libraries, object files and flags are used when
10313 # linking a shared library.
10314 #
10315 # There doesn't appear to be a way to prevent this compiler from
10316 # explicitly linking system object files so we need to strip them
10317 # from the output so that they don't get included in the library
10318 # dependencies.
10319 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'
10320
10321 # Archives containing C++ object files must be created using
10322 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10323 # necessary to make sure instantiated templates are included
10324 # in the archive.
10325 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10326 ;;
10327 gcx)
10328 # Green Hills C++ Compiler
10329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10330
10331 # The C++ compiler must be used to create the archive.
10332 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10333 ;;
10334 *)
10335 # GNU C++ compiler with Solaris linker
10336 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10337 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10338 if $CC --version | grep -v '^2\.7' > /dev/null; then
10339 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10340 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10341 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10342
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10346 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10347 else
10348 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10349 # platform.
10350 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10352 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10353
10354 # Commands to make compiler produce verbose output that lists
10355 # what "hidden" libraries, object files and flags are used when
10356 # linking a shared library.
10357 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10358 fi
10359
10360 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10361 fi
10362 ;;
10363 esac
10364 ;;
10365 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10366 archive_cmds_need_lc_CXX=no
10367 ;;
10368 tandem*)
10369 case $cc_basename in
10370 NCC)
10371 # NonStop-UX NCC 3.20
10372 # FIXME: insert proper C++ library support
10373 ld_shlibs_CXX=no
10374 ;;
10375 *)
10376 # FIXME: insert proper C++ library support
10377 ld_shlibs_CXX=no
10378 ;;
10379 esac
10380 ;;
10381 vxworks*)
10382 # FIXME: insert proper C++ library support
10383 ld_shlibs_CXX=no
10384 ;;
10385 *)
10386 # FIXME: insert proper C++ library support
10387 ld_shlibs_CXX=no
10388 ;;
10389esac
10390echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10391echo "${ECHO_T}$ld_shlibs_CXX" >&6
10392test "$ld_shlibs_CXX" = no && can_build_shared=no
10393
10394GCC_CXX="$GXX"
10395LD_CXX="$LD"
10396
10397## CAVEAT EMPTOR:
10398## There is no encapsulation within the following macros, do not change
10399## the running order or otherwise move them around unless you know exactly
10400## what you are doing...
10401
10402cat > conftest.$ac_ext <<EOF
10403class Foo
10404{
10405public:
10406 Foo (void) { a = 0; }
10407private:
10408 int a;
10409};
10410EOF
10411
10412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; then
10417 # Parse the compiler output and extract the necessary
10418 # objects, libraries and library flags.
10419
10420 # Sentinel used to keep track of whether or not we are before
10421 # the conftest object file.
10422 pre_test_object_deps_done=no
10423
10424 # The `*' in the case matches for architectures that use `case' in
10425 # $output_verbose_cmd can trigger glob expansion during the loop
10426 # eval without this substitution.
10427 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10428
10429 for p in `eval $output_verbose_link_cmd`; do
10430 case $p in
10431
10432 -L* | -R* | -l*)
10433 # Some compilers place space between "-{L,R}" and the path.
10434 # Remove the space.
10435 if test $p = "-L" \
10436 || test $p = "-R"; then
10437 prev=$p
10438 continue
10439 else
10440 prev=
10441 fi
10442
10443 if test "$pre_test_object_deps_done" = no; then
10444 case $p in
10445 -L* | -R*)
10446 # Internal compiler library paths should come after those
10447 # provided the user. The postdeps already come after the
10448 # user supplied libs so there is no need to process them.
10449 if test -z "$compiler_lib_search_path_CXX"; then
10450 compiler_lib_search_path_CXX="${prev}${p}"
10451 else
10452 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10453 fi
10454 ;;
10455 # The "-l" case would never come before the object being
10456 # linked, so don't bother handling this case.
10457 esac
10458 else
10459 if test -z "$postdeps_CXX"; then
10460 postdeps_CXX="${prev}${p}"
10461 else
10462 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10463 fi
10464 fi
10465 ;;
10466
10467 *.$objext)
10468 # This assumes that the test object file only shows up
10469 # once in the compiler output.
10470 if test "$p" = "conftest.$objext"; then
10471 pre_test_object_deps_done=yes
10472 continue
10473 fi
10474
10475 if test "$pre_test_object_deps_done" = no; then
10476 if test -z "$predep_objects_CXX"; then
10477 predep_objects_CXX="$p"
10478 else
10479 predep_objects_CXX="$predep_objects_CXX $p"
10480 fi
10481 else
10482 if test -z "$postdep_objects_CXX"; then
10483 postdep_objects_CXX="$p"
10484 else
10485 postdep_objects_CXX="$postdep_objects_CXX $p"
10486 fi
10487 fi
10488 ;;
10489
10490 *) ;; # Ignore the rest.
10491
10492 esac
10493 done
10494
10495 # Clean up.
10496 rm -f a.out a.exe
10497else
10498 echo "libtool.m4: error: problem compiling CXX test program"
10499fi
10500
10501$rm -f confest.$objext
10502
10503case " $postdeps_CXX " in
10504*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10505esac
10506
10507lt_prog_compiler_wl_CXX=
10508lt_prog_compiler_pic_CXX=
10509lt_prog_compiler_static_CXX=
10510
10511echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10512echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10513
10514 # C++ specific cases for pic, static, wl, etc.
10515 if test "$GXX" = yes; then
10516 lt_prog_compiler_wl_CXX='-Wl,'
10517 lt_prog_compiler_static_CXX='-static'
10518
10519 case $host_os in
10520 aix*)
10521 # All AIX code is PIC.
10522 if test "$host_cpu" = ia64; then
10523 # AIX 5 now supports IA64 processor
10524 lt_prog_compiler_static_CXX='-Bstatic'
10525 fi
10526 ;;
10527 amigaos*)
10528 # FIXME: we need at least 68020 code to build shared libraries, but
10529 # adding the `-m68020' flag to GCC prevents building anything better,
10530 # like `-m68040'.
10531 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10532 ;;
10533 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10534 # PIC is the default for these OSes.
10535 ;;
10536 mingw* | os2* | pw32*)
10537 # This hack is so that the source file can tell whether it is being
10538 # built for inclusion in a dll (and should export symbols for example).
10539 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10540 ;;
10541 darwin* | rhapsody*)
10542 # PIC is the default on this platform
10543 # Common symbols not allowed in MH_DYLIB files
10544 lt_prog_compiler_pic_CXX='-fno-common'
10545 ;;
10546 *djgpp*)
10547 # DJGPP does not support shared libraries at all
10548 lt_prog_compiler_pic_CXX=
10549 ;;
10550 sysv4*MP*)
10551 if test -d /usr/nec; then
10552 lt_prog_compiler_pic_CXX=-Kconform_pic
10553 fi
10554 ;;
10555 hpux*)
10556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10557 # not for PA HP-UX.
10558 case "$host_cpu" in
10559 hppa*64*|ia64*)
10560 ;;
10561 *)
10562 lt_prog_compiler_pic_CXX='-fPIC'
10563 ;;
10564 esac
10565 ;;
10566 *)
10567 lt_prog_compiler_pic_CXX='-fPIC'
10568 ;;
10569 esac
10570 else
10571 case $host_os in
10572 aix4* | aix5*)
10573 # All AIX code is PIC.
10574 if test "$host_cpu" = ia64; then
10575 # AIX 5 now supports IA64 processor
10576 lt_prog_compiler_static_CXX='-Bstatic'
10577 else
10578 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10579 fi
10580 ;;
10581 chorus*)
10582 case $cc_basename in
10583 cxch68)
10584 # Green Hills C++ Compiler
10585 # _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"
10586 ;;
10587 esac
10588 ;;
10589 dgux*)
10590 case $cc_basename in
10591 ec++)
10592 lt_prog_compiler_pic_CXX='-KPIC'
10593 ;;
10594 ghcx)
10595 # Green Hills C++ Compiler
10596 lt_prog_compiler_pic_CXX='-pic'
10597 ;;
10598 *)
10599 ;;
10600 esac
10601 ;;
10602 freebsd*)
10603 # FreeBSD uses GNU C++
10604 ;;
10605 hpux9* | hpux10* | hpux11*)
10606 case $cc_basename in
10607 CC)
10608 lt_prog_compiler_wl_CXX='-Wl,'
10609 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10610 if test "$host_cpu" != ia64; then
10611 lt_prog_compiler_pic_CXX='+Z'
10612 fi
10613 ;;
10614 aCC)
10615 lt_prog_compiler_wl_CXX='-Wl,'
10616 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10617 case "$host_cpu" in
10618 hppa*64*|ia64*)
10619 # +Z the default
10620 ;;
10621 *)
10622 lt_prog_compiler_pic_CXX='+Z'
10623 ;;
10624 esac
10625 ;;
10626 *)
10627 ;;
10628 esac
10629 ;;
10630 irix5* | irix6* | nonstopux*)
10631 case $cc_basename in
10632 CC)
10633 lt_prog_compiler_wl_CXX='-Wl,'
10634 lt_prog_compiler_static_CXX='-non_shared'
10635 # CC pic flag -KPIC is the default.
10636 ;;
10637 *)
10638 ;;
10639 esac
10640 ;;
10641 linux*)
10642 case $cc_basename in
10643 KCC)
10644 # KAI C++ Compiler
10645 lt_prog_compiler_wl_CXX='--backend -Wl,'
10646 lt_prog_compiler_pic_CXX='-fPIC'
10647 ;;
10648 icpc)
10649 # Intel C++
10650 lt_prog_compiler_wl_CXX='-Wl,'
10651 lt_prog_compiler_pic_CXX='-KPIC'
10652 lt_prog_compiler_static_CXX='-static'
10653 ;;
10654 cxx)
10655 # Compaq C++
10656 # Make sure the PIC flag is empty. It appears that all Alpha
10657 # Linux and Compaq Tru64 Unix objects are PIC.
10658 lt_prog_compiler_pic_CXX=
10659 lt_prog_compiler_static_CXX='-non_shared'
10660 ;;
10661 *)
10662 ;;
10663 esac
10664 ;;
10665 lynxos*)
10666 ;;
10667 m88k*)
10668 ;;
10669 mvs*)
10670 case $cc_basename in
10671 cxx)
10672 lt_prog_compiler_pic_CXX='-W c,exportall'
10673 ;;
10674 *)
10675 ;;
10676 esac
10677 ;;
10678 netbsd*)
10679 ;;
10680 osf3* | osf4* | osf5*)
10681 case $cc_basename in
10682 KCC)
10683 lt_prog_compiler_wl_CXX='--backend -Wl,'
10684 ;;
10685 RCC)
10686 # Rational C++ 2.4.1
10687 lt_prog_compiler_pic_CXX='-pic'
10688 ;;
10689 cxx)
10690 # Digital/Compaq C++
10691 lt_prog_compiler_wl_CXX='-Wl,'
10692 # Make sure the PIC flag is empty. It appears that all Alpha
10693 # Linux and Compaq Tru64 Unix objects are PIC.
10694 lt_prog_compiler_pic_CXX=
10695 lt_prog_compiler_static_CXX='-non_shared'
10696 ;;
10697 *)
10698 ;;
10699 esac
10700 ;;
10701 psos*)
10702 ;;
10703 sco*)
10704 case $cc_basename in
10705 CC)
10706 lt_prog_compiler_pic_CXX='-fPIC'
10707 ;;
10708 *)
10709 ;;
10710 esac
10711 ;;
10712 solaris*)
10713 case $cc_basename in
10714 CC)
10715 # Sun C++ 4.2, 5.x and Centerline C++
10716 lt_prog_compiler_pic_CXX='-KPIC'
10717 lt_prog_compiler_static_CXX='-Bstatic'
10718 lt_prog_compiler_wl_CXX='-Qoption ld '
10719 ;;
10720 gcx)
10721 # Green Hills C++ Compiler
10722 lt_prog_compiler_pic_CXX='-PIC'
10723 ;;
10724 *)
10725 ;;
10726 esac
10727 ;;
10728 sunos4*)
10729 case $cc_basename in
10730 CC)
10731 # Sun C++ 4.x
10732 lt_prog_compiler_pic_CXX='-pic'
10733 lt_prog_compiler_static_CXX='-Bstatic'
10734 ;;
10735 lcc)
10736 # Lucid
10737 lt_prog_compiler_pic_CXX='-pic'
10738 ;;
10739 *)
10740 ;;
10741 esac
10742 ;;
10743 tandem*)
10744 case $cc_basename in
10745 NCC)
10746 # NonStop-UX NCC 3.20
10747 lt_prog_compiler_pic_CXX='-KPIC'
10748 ;;
10749 *)
10750 ;;
10751 esac
10752 ;;
10753 unixware*)
10754 ;;
10755 vxworks*)
10756 ;;
10757 *)
10758 lt_prog_compiler_can_build_shared_CXX=no
10759 ;;
10760 esac
10761 fi
10762
10763echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10764echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10765
10766#
10767# Check to make sure the PIC flag actually works.
10768#
10769if test -n "$lt_prog_compiler_pic_CXX"; then
10770 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10771echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10772if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774else
10775 lt_prog_compiler_pic_works_CXX=no
10776 ac_outfile=conftest.$ac_objext
10777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10778 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10779 # Insert the option either (1) after the last *FLAGS variable, or
10780 # (2) before a word containing "conftest.", or (3) at the end.
10781 # Note that $ac_compile itself does not contain backslashes and begins
10782 # with a dollar sign (not a hyphen), so the echo should work correctly.
10783 # The option is referenced via a variable to avoid confusing sed.
10784 lt_compile=`echo "$ac_compile" | $SED \
10785 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10787 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000010788 (eval echo "\"\$as_me:10788: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010789 (eval "$lt_compile" 2>conftest.err)
10790 ac_status=$?
10791 cat conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000010792 echo "$as_me:10792: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010793 if (exit $ac_status) && test -s "$ac_outfile"; then
10794 # The compiler can only warn and ignore the option if not recognized
10795 # So say no if there are warnings
10796 if test ! -s conftest.err; then
10797 lt_prog_compiler_pic_works_CXX=yes
10798 fi
10799 fi
10800 $rm conftest*
10801
10802fi
10803echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10804echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10805
10806if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10807 case $lt_prog_compiler_pic_CXX in
10808 "" | " "*) ;;
10809 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10810 esac
10811else
10812 lt_prog_compiler_pic_CXX=
10813 lt_prog_compiler_can_build_shared_CXX=no
10814fi
10815
10816fi
10817case "$host_os" in
10818 # For platforms which do not support PIC, -DPIC is meaningless:
10819 *djgpp*)
10820 lt_prog_compiler_pic_CXX=
10821 ;;
10822 *)
10823 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10824 ;;
10825esac
10826
10827echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10828echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10829if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832 lt_cv_prog_compiler_c_o_CXX=no
10833 $rm -r conftest 2>/dev/null
10834 mkdir conftest
10835 cd conftest
10836 mkdir out
10837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10838
10839 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10840 # that will create temporary files in the current directory regardless of
10841 # the output directory. Thus, making CWD read-only will cause this test
10842 # to fail, enabling locking or at least warning the user not to do parallel
10843 # builds.
10844 chmod -w .
10845
10846 lt_compiler_flag="-o out/conftest2.$ac_objext"
10847 # Insert the option either (1) after the last *FLAGS variable, or
10848 # (2) before a word containing "conftest.", or (3) at the end.
10849 # Note that $ac_compile itself does not contain backslashes and begins
10850 # with a dollar sign (not a hyphen), so the echo should work correctly.
10851 lt_compile=`echo "$ac_compile" | $SED \
10852 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10854 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000010855 (eval echo "\"\$as_me:10855: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010856 (eval "$lt_compile" 2>out/conftest.err)
10857 ac_status=$?
10858 cat out/conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000010859 echo "$as_me:10859: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10861 then
10862 # The compiler can only warn and ignore the option if not recognized
10863 # So say no if there are warnings
10864 if test ! -s out/conftest.err; then
10865 lt_cv_prog_compiler_c_o_CXX=yes
10866 fi
10867 fi
10868 chmod u+w .
10869 $rm conftest* out/*
10870 rmdir out
10871 cd ..
10872 rmdir conftest
10873 $rm conftest*
10874
10875fi
10876echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10877echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10878
10879
10880hard_links="nottested"
10881if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10882 # do not overwrite the value of need_locks provided by the user
10883 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10884echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10885 hard_links=yes
10886 $rm conftest*
10887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10888 touch conftest.a
10889 ln conftest.a conftest.b 2>&5 || hard_links=no
10890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10891 echo "$as_me:$LINENO: result: $hard_links" >&5
10892echo "${ECHO_T}$hard_links" >&6
10893 if test "$hard_links" = no; then
10894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10895echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10896 need_locks=warn
10897 fi
10898else
10899 need_locks=no
10900fi
10901
10902echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10903echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10904
10905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10906 case $host_os in
10907 aix4* | aix5*)
10908 # If we're using GNU nm, then we don't want the "-C" option.
10909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10910 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10911 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'
10912 else
10913 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'
10914 fi
10915 ;;
10916 pw32*)
10917 export_symbols_cmds_CXX="$ltdll_cmds"
10918 ;;
10919 cygwin* | mingw*)
10920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10921 ;;
10922 *)
10923 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10924 ;;
10925 esac
10926
10927echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10928echo "${ECHO_T}$ld_shlibs_CXX" >&6
10929test "$ld_shlibs_CXX" = no && can_build_shared=no
10930
10931variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10932if test "$GCC" = yes; then
10933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10934fi
10935
10936#
10937# Do we need to explicitly link libc?
10938#
10939case "x$archive_cmds_need_lc_CXX" in
10940x|xyes)
10941 # Assume -lc should be added
10942 archive_cmds_need_lc_CXX=yes
10943
10944 if test "$enable_shared" = yes && test "$GCC" = yes; then
10945 case $archive_cmds_CXX in
10946 *'~'*)
10947 # FIXME: we may have to deal with multi-command sequences.
10948 ;;
10949 '$CC '*)
10950 # Test whether the compiler implicitly links with -lc since on some
10951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10952 # to ld, don't add -lc before -lgcc.
10953 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10954echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10955 $rm conftest*
10956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10957
10958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } 2>conftest.err; then
10963 soname=conftest
10964 lib=conftest
10965 libobjs=conftest.$ac_objext
10966 deplibs=
10967 wl=$lt_prog_compiler_wl_CXX
10968 compiler_flags=-v
10969 linker_flags=-v
10970 verstring=
10971 output_objdir=.
10972 libname=conftest
10973 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10974 allow_undefined_flag_CXX=
10975 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10976 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }
10980 then
10981 archive_cmds_need_lc_CXX=no
10982 else
10983 archive_cmds_need_lc_CXX=yes
10984 fi
10985 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10986 else
10987 cat conftest.err 1>&5
10988 fi
10989 $rm conftest*
10990 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10991echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10992 ;;
10993 esac
10994 fi
10995 ;;
10996esac
10997
10998echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10999echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11000hardcode_action_CXX=
11001if test -n "$hardcode_libdir_flag_spec_CXX" || \
11002 test -n "$runpath_var CXX" || \
11003 test "X$hardcode_automatic_CXX"="Xyes" ; then
11004
11005 # We can hardcode non-existant directories.
11006 if test "$hardcode_direct_CXX" != no &&
11007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11008 # have to relink, otherwise we might link with an installed library
11009 # when we should be linking with a yet-to-be-installed one
11010 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11011 test "$hardcode_minus_L_CXX" != no; then
11012 # Linking always hardcodes the temporary library directory.
11013 hardcode_action_CXX=relink
11014 else
11015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11016 hardcode_action_CXX=immediate
11017 fi
11018else
11019 # We cannot hardcode anything, or else we can only hardcode existing
11020 # directories.
11021 hardcode_action_CXX=unsupported
11022fi
11023echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11024echo "${ECHO_T}$hardcode_action_CXX" >&6
11025
11026if test "$hardcode_action_CXX" = relink; then
11027 # Fast installation is not supported
11028 enable_fast_install=no
11029elif test "$shlibpath_overrides_runpath" = yes ||
11030 test "$enable_shared" = no; then
11031 # Fast installation is not necessary
11032 enable_fast_install=needless
11033fi
11034
11035striplib=
11036old_striplib=
11037echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11038echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11039if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11040 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11041 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11042 echo "$as_me:$LINENO: result: yes" >&5
11043echo "${ECHO_T}yes" >&6
11044else
11045# FIXME - insert some real tests, host_os isn't really good enough
11046 case $host_os in
11047 darwin*)
11048 if test -n "$STRIP" ; then
11049 striplib="$STRIP -x"
11050 echo "$as_me:$LINENO: result: yes" >&5
11051echo "${ECHO_T}yes" >&6
11052 else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056 ;;
11057 *)
11058 echo "$as_me:$LINENO: result: no" >&5
11059echo "${ECHO_T}no" >&6
11060 ;;
11061 esac
11062fi
11063
11064echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11065echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11066library_names_spec=
11067libname_spec='lib$name'
11068soname_spec=
11069shrext=".so"
11070postinstall_cmds=
11071postuninstall_cmds=
11072finish_cmds=
11073finish_eval=
11074shlibpath_var=
11075shlibpath_overrides_runpath=unknown
11076version_type=none
11077dynamic_linker="$host_os ld.so"
11078sys_lib_dlsearch_path_spec="/lib /usr/lib"
11079if test "$GCC" = yes; then
11080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11081 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11082 # if the path contains ";" then we assume it to be the separator
11083 # otherwise default to the standard path separator (i.e. ":") - it is
11084 # assumed that no part of a normal pathname contains ";" but that should
11085 # okay in the real world where ";" in dirpaths is itself problematic.
11086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11087 else
11088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11089 fi
11090else
11091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11092fi
11093need_lib_prefix=unknown
11094hardcode_into_libs=no
11095
11096# when you set need_version to no, make sure it does not cause -set_version
11097# flags to be left without arguments
11098need_version=unknown
11099
11100case $host_os in
11101aix3*)
11102 version_type=linux
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11104 shlibpath_var=LIBPATH
11105
11106 # AIX 3 has no versioning support, so we append a major version to the name.
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 ;;
11109
11110aix4* | aix5*)
11111 version_type=linux
11112 need_lib_prefix=no
11113 need_version=no
11114 hardcode_into_libs=yes
11115 if test "$host_cpu" = ia64; then
11116 # AIX 5 supports IA64
11117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 else
11120 # With GCC up to 2.95.x, collect2 would create an import file
11121 # for dependence libraries. The import file would start with
11122 # the line `#! .'. This would cause the generated library to
11123 # depend on `.', always an invalid library. This was fixed in
11124 # development snapshots of GCC prior to 3.0.
11125 case $host_os in
11126 aix4 | aix4.[01] | aix4.[01].*)
11127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11128 echo ' yes '
11129 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11130 :
11131 else
11132 can_build_shared=no
11133 fi
11134 ;;
11135 esac
11136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11137 # soname into executable. Probably we can add versioning support to
11138 # collect2, so additional links can be useful in future.
11139 if test "$aix_use_runtimelinking" = yes; then
11140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11141 # instead of lib<name>.a to let people know that these are not
11142 # typical AIX shared libraries.
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 else
11145 # We preserve .a as extension for shared libraries through AIX4.2
11146 # and later when we are not doing run time linking.
11147 library_names_spec='${libname}${release}.a $libname.a'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 fi
11150 shlibpath_var=LIBPATH
11151 fi
11152 ;;
11153
11154amigaos*)
11155 library_names_spec='$libname.ixlibrary $libname.a'
11156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11157 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'
11158 ;;
11159
11160beos*)
11161 library_names_spec='${libname}${shared_ext}'
11162 dynamic_linker="$host_os ld.so"
11163 shlibpath_var=LIBRARY_PATH
11164 ;;
11165
11166bsdi4*)
11167 version_type=linux
11168 need_version=no
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11175 # the default ld.so.conf also contains /usr/contrib/lib and
11176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11177 # libtool to hard-code these into programs
11178 ;;
11179
11180cygwin* | mingw* | pw32*)
11181 version_type=windows
11182 shrext=".dll"
11183 need_version=no
11184 need_lib_prefix=no
11185
11186 case $GCC,$host_os in
11187 yes,cygwin* | yes,mingw* | yes,pw32*)
11188 library_names_spec='$libname.dll.a'
11189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11190 postinstall_cmds='base_file=`basename \${file}`~
11191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11192 dldir=$destdir/`dirname \$dlpath`~
11193 test -d \$dldir || mkdir -p \$dldir~
11194 $install_prog $dir/$dlname \$dldir/$dlname'
11195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11196 dlpath=$dir/\$dldll~
11197 $rm \$dlpath'
11198 shlibpath_overrides_runpath=yes
11199
11200 case $host_os in
11201 cygwin*)
11202 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11203 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11204 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11205 ;;
11206 mingw*)
11207 # MinGW DLLs use traditional 'lib' prefix
11208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11210 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11211 # It is most probably a Windows format PATH printed by
11212 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11213 # path with ; separators, and with drive letters. We can handle the
11214 # drive letters (cygwin fileutils understands them), so leave them,
11215 # especially as we might pass files found there to a mingw objdump,
11216 # which wouldn't understand a cygwinified path. Ahh.
11217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11218 else
11219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11220 fi
11221 ;;
11222 pw32*)
11223 # pw32 DLLs use 'pw' prefix rather than 'lib'
11224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11225 ;;
11226 esac
11227 ;;
11228
11229 *)
11230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11231 ;;
11232 esac
11233 dynamic_linker='Win32 ld.exe'
11234 # FIXME: first we should search . and the directory the executable is in
11235 shlibpath_var=PATH
11236 ;;
11237
11238darwin* | rhapsody*)
11239 dynamic_linker="$host_os dyld"
11240 version_type=darwin
11241 need_lib_prefix=no
11242 need_version=no
11243 # FIXME: Relying on posixy $() will cause problems for
11244 # cross-compilation, but unfortunately the echo tests do not
11245 # yet detect zsh echo's removal of \ escapes.
11246 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11247 soname_spec='${libname}${release}${major}$shared_ext'
11248 shlibpath_overrides_runpath=yes
11249 shlibpath_var=DYLD_LIBRARY_PATH
11250 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11251 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11252 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11253 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"`
11254 fi
11255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11256 ;;
11257
11258dgux*)
11259 version_type=linux
11260 need_lib_prefix=no
11261 need_version=no
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 shlibpath_var=LD_LIBRARY_PATH
11265 ;;
11266
11267freebsd1*)
11268 dynamic_linker=no
11269 ;;
11270
11271freebsd*)
11272 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11273 version_type=freebsd-$objformat
11274 case $version_type in
11275 freebsd-elf*)
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11277 need_version=no
11278 need_lib_prefix=no
11279 ;;
11280 freebsd-*)
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11282 need_version=yes
11283 ;;
11284 esac
11285 shlibpath_var=LD_LIBRARY_PATH
11286 case $host_os in
11287 freebsd2*)
11288 shlibpath_overrides_runpath=yes
11289 ;;
11290 freebsd3.01* | freebsdelf3.01*)
11291 shlibpath_overrides_runpath=yes
11292 hardcode_into_libs=yes
11293 ;;
11294 *) # from 3.2 on
11295 shlibpath_overrides_runpath=no
11296 hardcode_into_libs=yes
11297 ;;
11298 esac
11299 ;;
11300
11301gnu*)
11302 version_type=linux
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 hardcode_into_libs=yes
11309 ;;
11310
11311hpux9* | hpux10* | hpux11*)
11312 # Give a soname corresponding to the major version so that dld.sl refuses to
11313 # link against other versions.
11314 version_type=sunos
11315 need_lib_prefix=no
11316 need_version=no
11317 case "$host_cpu" in
11318 ia64*)
11319 shrext='.so'
11320 hardcode_into_libs=yes
11321 dynamic_linker="$host_os dld.so"
11322 shlibpath_var=LD_LIBRARY_PATH
11323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11325 soname_spec='${libname}${release}${shared_ext}$major'
11326 if test "X$HPUX_IA64_MODE" = X32; then
11327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11328 else
11329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11330 fi
11331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11332 ;;
11333 hppa*64*)
11334 shrext='.sl'
11335 hardcode_into_libs=yes
11336 dynamic_linker="$host_os dld.sl"
11337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343 ;;
11344 *)
11345 shrext='.sl'
11346 dynamic_linker="$host_os dld.sl"
11347 shlibpath_var=SHLIB_PATH
11348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 ;;
11352 esac
11353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11354 postinstall_cmds='chmod 555 $lib'
11355 ;;
11356
11357irix5* | irix6* | nonstopux*)
11358 case $host_os in
11359 nonstopux*) version_type=nonstopux ;;
11360 *)
11361 if test "$lt_cv_prog_gnu_ld" = yes; then
11362 version_type=linux
11363 else
11364 version_type=irix
11365 fi ;;
11366 esac
11367 need_lib_prefix=no
11368 need_version=no
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11371 case $host_os in
11372 irix5* | nonstopux*)
11373 libsuff= shlibsuff=
11374 ;;
11375 *)
11376 case $LD in # libtool.m4 will add one of these switches to LD
11377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11378 libsuff= shlibsuff= libmagic=32-bit;;
11379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11380 libsuff=32 shlibsuff=N32 libmagic=N32;;
11381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11383 *) libsuff= shlibsuff= libmagic=never-match;;
11384 esac
11385 ;;
11386 esac
11387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11388 shlibpath_overrides_runpath=no
11389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11391 hardcode_into_libs=yes
11392 ;;
11393
11394# No shared lib support for Linux oldld, aout, or coff.
11395linux*oldld* | linux*aout* | linux*coff*)
11396 dynamic_linker=no
11397 ;;
11398
11399# This must be Linux ELF.
11400linux*)
11401 version_type=linux
11402 need_lib_prefix=no
11403 need_version=no
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=no
11409 # This implies no fast_install, which is unacceptable.
11410 # Some rework will be needed to allow for fast_install
11411 # before this can be enabled.
11412 hardcode_into_libs=yes
11413
11414 # We used to test for /lib/ld.so.1 and disable shared libraries on
11415 # powerpc, because MkLinux only supported shared libraries with the
11416 # GNU dynamic linker. Since this was broken with cross compilers,
11417 # most powerpc-linux boxes support dynamic linking these days and
11418 # people can always --disable-shared, the test was removed, and we
11419 # assume the GNU/Linux dynamic linker is in use.
11420 dynamic_linker='GNU/Linux ld.so'
11421 ;;
11422
11423netbsd*)
11424 version_type=sunos
11425 need_lib_prefix=no
11426 need_version=no
11427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11430 dynamic_linker='NetBSD (a.out) ld.so'
11431 else
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11433 soname_spec='${libname}${release}${shared_ext}$major'
11434 dynamic_linker='NetBSD ld.elf_so'
11435 fi
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=yes
11438 hardcode_into_libs=yes
11439 ;;
11440
11441newsos6)
11442 version_type=linux
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 shlibpath_overrides_runpath=yes
11446 ;;
11447
11448nto-qnx)
11449 version_type=linux
11450 need_lib_prefix=no
11451 need_version=no
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 ;;
11457
11458openbsd*)
11459 version_type=sunos
11460 need_lib_prefix=no
11461 need_version=no
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11466 case $host_os in
11467 openbsd2.[89] | openbsd2.[89].*)
11468 shlibpath_overrides_runpath=no
11469 ;;
11470 *)
11471 shlibpath_overrides_runpath=yes
11472 ;;
11473 esac
11474 else
11475 shlibpath_overrides_runpath=yes
11476 fi
11477 ;;
11478
11479os2*)
11480 libname_spec='$name'
11481 shrext=".dll"
11482 need_lib_prefix=no
11483 library_names_spec='$libname${shared_ext} $libname.a'
11484 dynamic_linker='OS/2 ld.exe'
11485 shlibpath_var=LIBPATH
11486 ;;
11487
11488osf3* | osf4* | osf5*)
11489 version_type=osf
11490 need_lib_prefix=no
11491 need_version=no
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11497 ;;
11498
11499sco3.2v5*)
11500 version_type=osf
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 ;;
11505
11506solaris*)
11507 version_type=linux
11508 need_lib_prefix=no
11509 need_version=no
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=yes
11514 hardcode_into_libs=yes
11515 # ldd complains unless libraries are executable
11516 postinstall_cmds='chmod +x $lib'
11517 ;;
11518
11519sunos4*)
11520 version_type=sunos
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 if test "$with_gnu_ld" = yes; then
11526 need_lib_prefix=no
11527 fi
11528 need_version=yes
11529 ;;
11530
11531sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11532 version_type=linux
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 case $host_vendor in
11537 sni)
11538 shlibpath_overrides_runpath=no
11539 need_lib_prefix=no
11540 export_dynamic_flag_spec='${wl}-Blargedynsym'
11541 runpath_var=LD_RUN_PATH
11542 ;;
11543 siemens)
11544 need_lib_prefix=no
11545 ;;
11546 motorola)
11547 need_lib_prefix=no
11548 need_version=no
11549 shlibpath_overrides_runpath=no
11550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11551 ;;
11552 esac
11553 ;;
11554
11555sysv4*MP*)
11556 if test -d /usr/nec ;then
11557 version_type=linux
11558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11559 soname_spec='$libname${shared_ext}.$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 fi
11562 ;;
11563
11564uts4*)
11565 version_type=linux
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 ;;
11570
11571*)
11572 dynamic_linker=no
11573 ;;
11574esac
11575echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11576echo "${ECHO_T}$dynamic_linker" >&6
11577test "$dynamic_linker" = no && can_build_shared=no
11578
11579if test "x$enable_dlopen" != xyes; then
11580 enable_dlopen=unknown
11581 enable_dlopen_self=unknown
11582 enable_dlopen_self_static=unknown
11583else
11584 lt_cv_dlopen=no
11585 lt_cv_dlopen_libs=
11586
11587 case $host_os in
11588 beos*)
11589 lt_cv_dlopen="load_add_on"
11590 lt_cv_dlopen_libs=
11591 lt_cv_dlopen_self=yes
11592 ;;
11593
11594 mingw* | pw32*)
11595 lt_cv_dlopen="LoadLibrary"
11596 lt_cv_dlopen_libs=
11597 ;;
11598
11599 cygwin*)
11600 lt_cv_dlopen="dlopen"
11601 lt_cv_dlopen_libs=
11602 ;;
11603
11604 darwin*)
11605 # if libdl is installed we need to link against it
11606 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11607echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11608if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610else
11611 ac_check_lib_save_LIBS=$LIBS
11612LIBS="-ldl $LIBS"
11613cat >conftest.$ac_ext <<_ACEOF
11614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011620
11621/* Override any gcc2 internal prototype to avoid an error. */
11622#ifdef __cplusplus
11623extern "C"
11624#endif
11625/* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011628int
11629main ()
11630{
11631dlopen ();
11632 ;
11633 return 0;
11634}
11635_ACEOF
11636rm -f conftest.$ac_objext conftest$ac_exeext
11637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -s conftest$ac_exeext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_cv_lib_dl_dlopen=yes
11649else
11650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011651sed 's/^/| /' conftest.$ac_ext >&5
11652
John Criswell47fdd832003-07-14 16:52:07 +000011653ac_cv_lib_dl_dlopen=no
11654fi
11655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11656LIBS=$ac_check_lib_save_LIBS
11657fi
11658echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11659echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11660if test $ac_cv_lib_dl_dlopen = yes; then
11661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662else
11663
11664 lt_cv_dlopen="dyld"
11665 lt_cv_dlopen_libs=
11666 lt_cv_dlopen_self=yes
11667
11668fi
11669
11670 ;;
11671
11672 *)
11673 echo "$as_me:$LINENO: checking for shl_load" >&5
11674echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11675if test "${ac_cv_func_shl_load+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 cat >conftest.$ac_ext <<_ACEOF
11679#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011685/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011686 which can conflict with char shl_load (); below.
11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688 <limits.h> exists even on freestanding compilers. */
11689#ifdef __STDC__
11690# include <limits.h>
11691#else
11692# include <assert.h>
11693#endif
John Criswell47fdd832003-07-14 16:52:07 +000011694/* Override any gcc2 internal prototype to avoid an error. */
11695#ifdef __cplusplus
11696extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011697{
John Criswell47fdd832003-07-14 16:52:07 +000011698#endif
11699/* We use char because int might match the return type of a gcc2
11700 builtin and then its argument prototype would still apply. */
11701char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011702/* The GNU C library defines this for functions which it implements
11703 to always fail with ENOSYS. Some functions are actually named
11704 something starting with __ and the normal name is an alias. */
11705#if defined (__stub_shl_load) || defined (__stub___shl_load)
11706choke me
11707#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011708char (*f) () = shl_load;
11709#endif
11710#ifdef __cplusplus
11711}
John Criswell47fdd832003-07-14 16:52:07 +000011712#endif
11713
John Criswell0c38eaf2003-09-10 15:17:25 +000011714int
11715main ()
11716{
11717return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
11723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724 (eval $ac_link) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; }; then
11734 ac_cv_func_shl_load=yes
11735else
11736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011737sed 's/^/| /' conftest.$ac_ext >&5
11738
John Criswell47fdd832003-07-14 16:52:07 +000011739ac_cv_func_shl_load=no
11740fi
11741rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11742fi
11743echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11744echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11745if test $ac_cv_func_shl_load = yes; then
11746 lt_cv_dlopen="shl_load"
11747else
11748 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11749echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11750if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752else
11753 ac_check_lib_save_LIBS=$LIBS
11754LIBS="-ldld $LIBS"
11755cat >conftest.$ac_ext <<_ACEOF
11756#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011762
11763/* Override any gcc2 internal prototype to avoid an error. */
11764#ifdef __cplusplus
11765extern "C"
11766#endif
11767/* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11769char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011770int
11771main ()
11772{
11773shl_load ();
11774 ;
11775 return 0;
11776}
11777_ACEOF
11778rm -f conftest.$ac_objext conftest$ac_exeext
11779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_lib_dld_shl_load=yes
11791else
11792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011793sed 's/^/| /' conftest.$ac_ext >&5
11794
John Criswell47fdd832003-07-14 16:52:07 +000011795ac_cv_lib_dld_shl_load=no
11796fi
11797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11798LIBS=$ac_check_lib_save_LIBS
11799fi
11800echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11801echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11802if test $ac_cv_lib_dld_shl_load = yes; then
11803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11804else
11805 echo "$as_me:$LINENO: checking for dlopen" >&5
11806echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11807if test "${ac_cv_func_dlopen+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809else
11810 cat >conftest.$ac_ext <<_ACEOF
11811#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011817/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011818 which can conflict with char dlopen (); below.
11819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11820 <limits.h> exists even on freestanding compilers. */
11821#ifdef __STDC__
11822# include <limits.h>
11823#else
11824# include <assert.h>
11825#endif
John Criswell47fdd832003-07-14 16:52:07 +000011826/* Override any gcc2 internal prototype to avoid an error. */
11827#ifdef __cplusplus
11828extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011829{
John Criswell47fdd832003-07-14 16:52:07 +000011830#endif
11831/* We use char because int might match the return type of a gcc2
11832 builtin and then its argument prototype would still apply. */
11833char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011834/* The GNU C library defines this for functions which it implements
11835 to always fail with ENOSYS. Some functions are actually named
11836 something starting with __ and the normal name is an alias. */
11837#if defined (__stub_dlopen) || defined (__stub___dlopen)
11838choke me
11839#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011840char (*f) () = dlopen;
11841#endif
11842#ifdef __cplusplus
11843}
John Criswell47fdd832003-07-14 16:52:07 +000011844#endif
11845
John Criswell0c38eaf2003-09-10 15:17:25 +000011846int
11847main ()
11848{
11849return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011850 ;
11851 return 0;
11852}
11853_ACEOF
11854rm -f conftest.$ac_objext conftest$ac_exeext
11855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11856 (eval $ac_link) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_func_dlopen=yes
11867else
11868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011869sed 's/^/| /' conftest.$ac_ext >&5
11870
John Criswell47fdd832003-07-14 16:52:07 +000011871ac_cv_func_dlopen=no
11872fi
11873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11874fi
11875echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11876echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11877if test $ac_cv_func_dlopen = yes; then
11878 lt_cv_dlopen="dlopen"
11879else
11880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11881echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11882if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884else
11885 ac_check_lib_save_LIBS=$LIBS
11886LIBS="-ldl $LIBS"
11887cat >conftest.$ac_ext <<_ACEOF
11888#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011894
11895/* Override any gcc2 internal prototype to avoid an error. */
11896#ifdef __cplusplus
11897extern "C"
11898#endif
11899/* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11901char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011902int
11903main ()
11904{
11905dlopen ();
11906 ;
11907 return 0;
11908}
11909_ACEOF
11910rm -f conftest.$ac_objext conftest$ac_exeext
11911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_lib_dl_dlopen=yes
11923else
11924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011925sed 's/^/| /' conftest.$ac_ext >&5
11926
John Criswell47fdd832003-07-14 16:52:07 +000011927ac_cv_lib_dl_dlopen=no
11928fi
11929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11930LIBS=$ac_check_lib_save_LIBS
11931fi
11932echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11933echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11934if test $ac_cv_lib_dl_dlopen = yes; then
11935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11936else
11937 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11938echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11939if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 ac_check_lib_save_LIBS=$LIBS
11943LIBS="-lsvld $LIBS"
11944cat >conftest.$ac_ext <<_ACEOF
11945#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011951
11952/* Override any gcc2 internal prototype to avoid an error. */
11953#ifdef __cplusplus
11954extern "C"
11955#endif
11956/* We use char because int might match the return type of a gcc2
11957 builtin and then its argument prototype would still apply. */
11958char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011959int
11960main ()
11961{
11962dlopen ();
11963 ;
11964 return 0;
11965}
11966_ACEOF
11967rm -f conftest.$ac_objext conftest$ac_exeext
11968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969 (eval $ac_link) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -s conftest$ac_exeext'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 ac_cv_lib_svld_dlopen=yes
11980else
11981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011982sed 's/^/| /' conftest.$ac_ext >&5
11983
John Criswell47fdd832003-07-14 16:52:07 +000011984ac_cv_lib_svld_dlopen=no
11985fi
11986rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11990echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11991if test $ac_cv_lib_svld_dlopen = yes; then
11992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11993else
11994 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11995echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11996if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999 ac_check_lib_save_LIBS=$LIBS
12000LIBS="-ldld $LIBS"
12001cat >conftest.$ac_ext <<_ACEOF
12002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012003/* confdefs.h. */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12006cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012008
12009/* Override any gcc2 internal prototype to avoid an error. */
12010#ifdef __cplusplus
12011extern "C"
12012#endif
12013/* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012016int
12017main ()
12018{
12019dld_link ();
12020 ;
12021 return 0;
12022}
12023_ACEOF
12024rm -f conftest.$ac_objext conftest$ac_exeext
12025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -s conftest$ac_exeext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_lib_dld_dld_link=yes
12037else
12038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012039sed 's/^/| /' conftest.$ac_ext >&5
12040
John Criswell47fdd832003-07-14 16:52:07 +000012041ac_cv_lib_dld_dld_link=no
12042fi
12043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044LIBS=$ac_check_lib_save_LIBS
12045fi
12046echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12047echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12048if test $ac_cv_lib_dld_dld_link = yes; then
12049 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12050fi
12051
12052
12053fi
12054
12055
12056fi
12057
12058
12059fi
12060
12061
12062fi
12063
12064
12065fi
12066
12067 ;;
12068 esac
12069
12070 if test "x$lt_cv_dlopen" != xno; then
12071 enable_dlopen=yes
12072 else
12073 enable_dlopen=no
12074 fi
12075
12076 case $lt_cv_dlopen in
12077 dlopen)
12078 save_CPPFLAGS="$CPPFLAGS"
12079 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12080
12081 save_LDFLAGS="$LDFLAGS"
12082 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12083
12084 save_LIBS="$LIBS"
12085 LIBS="$lt_cv_dlopen_libs $LIBS"
12086
12087 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12088echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12089if test "${lt_cv_dlopen_self+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091else
12092 if test "$cross_compiling" = yes; then :
12093 lt_cv_dlopen_self=cross
12094else
12095 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12096 lt_status=$lt_dlunknown
12097 cat > conftest.$ac_ext <<EOF
John Criswell08acb9b2003-09-16 02:12:45 +000012098#line 12098 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012099#include "confdefs.h"
12100
12101#if HAVE_DLFCN_H
12102#include <dlfcn.h>
12103#endif
12104
12105#include <stdio.h>
12106
12107#ifdef RTLD_GLOBAL
12108# define LT_DLGLOBAL RTLD_GLOBAL
12109#else
12110# ifdef DL_GLOBAL
12111# define LT_DLGLOBAL DL_GLOBAL
12112# else
12113# define LT_DLGLOBAL 0
12114# endif
12115#endif
12116
12117/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12118 find out it does not work in some platform. */
12119#ifndef LT_DLLAZY_OR_NOW
12120# ifdef RTLD_LAZY
12121# define LT_DLLAZY_OR_NOW RTLD_LAZY
12122# else
12123# ifdef DL_LAZY
12124# define LT_DLLAZY_OR_NOW DL_LAZY
12125# else
12126# ifdef RTLD_NOW
12127# define LT_DLLAZY_OR_NOW RTLD_NOW
12128# else
12129# ifdef DL_NOW
12130# define LT_DLLAZY_OR_NOW DL_NOW
12131# else
12132# define LT_DLLAZY_OR_NOW 0
12133# endif
12134# endif
12135# endif
12136# endif
12137#endif
12138
12139#ifdef __cplusplus
12140extern "C" void exit (int);
12141#endif
12142
12143void fnord() { int i=42;}
12144int main ()
12145{
12146 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12147 int status = $lt_dlunknown;
12148
12149 if (self)
12150 {
12151 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12152 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12153 /* dlclose (self); */
12154 }
12155
12156 exit (status);
12157}
12158EOF
12159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>&5
12161 ac_status=$?
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12164 (./conftest; exit; ) 2>/dev/null
12165 lt_status=$?
12166 case x$lt_status in
12167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12169 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12170 esac
12171 else :
12172 # compilation failed
12173 lt_cv_dlopen_self=no
12174 fi
12175fi
12176rm -fr conftest*
12177
12178
12179fi
12180echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12181echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12182
12183 if test "x$lt_cv_dlopen_self" = xyes; then
12184 LDFLAGS="$LDFLAGS $link_static_flag"
12185 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12186echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12187if test "${lt_cv_dlopen_self_static+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 if test "$cross_compiling" = yes; then :
12191 lt_cv_dlopen_self_static=cross
12192else
12193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12194 lt_status=$lt_dlunknown
12195 cat > conftest.$ac_ext <<EOF
John Criswell08acb9b2003-09-16 02:12:45 +000012196#line 12196 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012197#include "confdefs.h"
12198
12199#if HAVE_DLFCN_H
12200#include <dlfcn.h>
12201#endif
12202
12203#include <stdio.h>
12204
12205#ifdef RTLD_GLOBAL
12206# define LT_DLGLOBAL RTLD_GLOBAL
12207#else
12208# ifdef DL_GLOBAL
12209# define LT_DLGLOBAL DL_GLOBAL
12210# else
12211# define LT_DLGLOBAL 0
12212# endif
12213#endif
12214
12215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12216 find out it does not work in some platform. */
12217#ifndef LT_DLLAZY_OR_NOW
12218# ifdef RTLD_LAZY
12219# define LT_DLLAZY_OR_NOW RTLD_LAZY
12220# else
12221# ifdef DL_LAZY
12222# define LT_DLLAZY_OR_NOW DL_LAZY
12223# else
12224# ifdef RTLD_NOW
12225# define LT_DLLAZY_OR_NOW RTLD_NOW
12226# else
12227# ifdef DL_NOW
12228# define LT_DLLAZY_OR_NOW DL_NOW
12229# else
12230# define LT_DLLAZY_OR_NOW 0
12231# endif
12232# endif
12233# endif
12234# endif
12235#endif
12236
12237#ifdef __cplusplus
12238extern "C" void exit (int);
12239#endif
12240
12241void fnord() { int i=42;}
12242int main ()
12243{
12244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12245 int status = $lt_dlunknown;
12246
12247 if (self)
12248 {
12249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12250 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12251 /* dlclose (self); */
12252 }
12253
12254 exit (status);
12255}
12256EOF
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12262 (./conftest; exit; ) 2>/dev/null
12263 lt_status=$?
12264 case x$lt_status in
12265 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12266 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12267 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12268 esac
12269 else :
12270 # compilation failed
12271 lt_cv_dlopen_self_static=no
12272 fi
12273fi
12274rm -fr conftest*
12275
12276
12277fi
12278echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12279echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12280 fi
12281
12282 CPPFLAGS="$save_CPPFLAGS"
12283 LDFLAGS="$save_LDFLAGS"
12284 LIBS="$save_LIBS"
12285 ;;
12286 esac
12287
12288 case $lt_cv_dlopen_self in
12289 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12290 *) enable_dlopen_self=unknown ;;
12291 esac
12292
12293 case $lt_cv_dlopen_self_static in
12294 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12295 *) enable_dlopen_self_static=unknown ;;
12296 esac
12297fi
12298
12299
12300# The else clause should only fire when bootstrapping the
12301# libtool distribution, otherwise you forgot to ship ltmain.sh
12302# with your package, and you will get complaints that there are
12303# no rules to generate ltmain.sh.
12304if test -f "$ltmain"; then
12305 # See if we are running on zsh, and set the options which allow our commands through
12306 # without removal of \ escapes.
12307 if test -n "${ZSH_VERSION+set}" ; then
12308 setopt NO_GLOB_SUBST
12309 fi
12310 # Now quote all the things that may contain metacharacters while being
12311 # careful not to overquote the AC_SUBSTed values. We take copies of the
12312 # variables and quote the copies for generation of the libtool script.
12313 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12316 deplibs_check_method reload_flag reload_cmds need_locks \
12317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12318 lt_cv_sys_global_symbol_to_c_name_address \
12319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12320 old_postinstall_cmds old_postuninstall_cmds \
12321 compiler_CXX \
12322 CC_CXX \
12323 LD_CXX \
12324 lt_prog_compiler_wl_CXX \
12325 lt_prog_compiler_pic_CXX \
12326 lt_prog_compiler_static_CXX \
12327 lt_prog_compiler_no_builtin_flag_CXX \
12328 export_dynamic_flag_spec_CXX \
12329 thread_safe_flag_spec_CXX \
12330 whole_archive_flag_spec_CXX \
12331 enable_shared_with_static_runtimes_CXX \
12332 old_archive_cmds_CXX \
12333 old_archive_from_new_cmds_CXX \
12334 predep_objects_CXX \
12335 postdep_objects_CXX \
12336 predeps_CXX \
12337 postdeps_CXX \
12338 compiler_lib_search_path_CXX \
12339 archive_cmds_CXX \
12340 archive_expsym_cmds_CXX \
12341 postinstall_cmds_CXX \
12342 postuninstall_cmds_CXX \
12343 old_archive_from_expsyms_cmds_CXX \
12344 allow_undefined_flag_CXX \
12345 no_undefined_flag_CXX \
12346 export_symbols_cmds_CXX \
12347 hardcode_libdir_flag_spec_CXX \
12348 hardcode_libdir_flag_spec_ld_CXX \
12349 hardcode_libdir_separator_CXX \
12350 hardcode_automatic_CXX \
12351 module_cmds_CXX \
12352 module_expsym_cmds_CXX \
12353 lt_cv_prog_compiler_c_o_CXX \
12354 exclude_expsyms_CXX \
12355 include_expsyms_CXX; do
12356
12357 case $var in
12358 old_archive_cmds_CXX | \
12359 old_archive_from_new_cmds_CXX | \
12360 archive_cmds_CXX | \
12361 archive_expsym_cmds_CXX | \
12362 module_cmds_CXX | \
12363 module_expsym_cmds_CXX | \
12364 old_archive_from_expsyms_cmds_CXX | \
12365 export_symbols_cmds_CXX | \
12366 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12367 postinstall_cmds | postuninstall_cmds | \
12368 old_postinstall_cmds | old_postuninstall_cmds | \
12369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12370 # Double-quote double-evaled strings.
12371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12372 ;;
12373 *)
12374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12375 ;;
12376 esac
12377 done
12378
12379 case $lt_echo in
12380 *'\$0 --fallback-echo"')
12381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12382 ;;
12383 esac
12384
12385cfgfile="$ofile"
12386
12387 cat <<__EOF__ >> "$cfgfile"
12388# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12389
12390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12391
12392# Shell to use when invoking shell scripts.
12393SHELL=$lt_SHELL
12394
12395# Whether or not to build shared libraries.
12396build_libtool_libs=$enable_shared
12397
12398# Whether or not to build static libraries.
12399build_old_libs=$enable_static
12400
12401# Whether or not to add -lc for building shared libraries.
12402build_libtool_need_lc=$archive_cmds_need_lc_CXX
12403
12404# Whether or not to disallow shared libs when runtime libs are static
12405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12406
12407# Whether or not to optimize for fast installation.
12408fast_install=$enable_fast_install
12409
12410# The host system.
12411host_alias=$host_alias
12412host=$host
12413
12414# An echo program that does not interpret backslashes.
12415echo=$lt_echo
12416
12417# The archiver.
12418AR=$lt_AR
12419AR_FLAGS=$lt_AR_FLAGS
12420
12421# A C compiler.
12422LTCC=$lt_LTCC
12423
12424# A language-specific compiler.
12425CC=$lt_compiler_CXX
12426
12427# Is the compiler the GNU C compiler?
12428with_gcc=$GCC_CXX
12429
12430# An ERE matcher.
12431EGREP=$lt_EGREP
12432
12433# The linker used to build libraries.
12434LD=$lt_LD_CXX
12435
12436# Whether we need hard or soft links.
12437LN_S=$lt_LN_S
12438
12439# A BSD-compatible nm program.
12440NM=$lt_NM
12441
12442# A symbol stripping program
12443STRIP=$STRIP
12444
12445# Used to examine libraries when file_magic_cmd begins "file"
12446MAGIC_CMD=$MAGIC_CMD
12447
12448# Used on cygwin: DLL creation program.
12449DLLTOOL="$DLLTOOL"
12450
12451# Used on cygwin: object dumper.
12452OBJDUMP="$OBJDUMP"
12453
12454# Used on cygwin: assembler.
12455AS="$AS"
12456
12457# The name of the directory that contains temporary libtool files.
12458objdir=$objdir
12459
12460# How to create reloadable object files.
12461reload_flag=$lt_reload_flag
12462reload_cmds=$lt_reload_cmds
12463
12464# How to pass a linker flag through the compiler.
12465wl=$lt_lt_prog_compiler_wl_CXX
12466
12467# Object file suffix (normally "o").
12468objext="$ac_objext"
12469
12470# Old archive suffix (normally "a").
12471libext="$libext"
12472
12473# Shared library suffix (normally ".so").
12474shrext='$shrext'
12475
12476# Executable file suffix (normally "").
12477exeext="$exeext"
12478
12479# Additional compiler flags for building library objects.
12480pic_flag=$lt_lt_prog_compiler_pic_CXX
12481pic_mode=$pic_mode
12482
12483# What is the maximum length of a command?
12484max_cmd_len=$lt_cv_sys_max_cmd_len
12485
12486# Does compiler simultaneously support -c and -o options?
12487compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12488
12489# Must we lock files when doing compilation ?
12490need_locks=$lt_need_locks
12491
12492# Do we need the lib prefix for modules?
12493need_lib_prefix=$need_lib_prefix
12494
12495# Do we need a version for libraries?
12496need_version=$need_version
12497
12498# Whether dlopen is supported.
12499dlopen_support=$enable_dlopen
12500
12501# Whether dlopen of programs is supported.
12502dlopen_self=$enable_dlopen_self
12503
12504# Whether dlopen of statically linked programs is supported.
12505dlopen_self_static=$enable_dlopen_self_static
12506
12507# Compiler flag to prevent dynamic linking.
12508link_static_flag=$lt_lt_prog_compiler_static_CXX
12509
12510# Compiler flag to turn off builtin functions.
12511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12512
12513# Compiler flag to allow reflexive dlopens.
12514export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12515
12516# Compiler flag to generate shared objects directly from archives.
12517whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12518
12519# Compiler flag to generate thread-safe objects.
12520thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12521
12522# Library versioning type.
12523version_type=$version_type
12524
12525# Format of library name prefix.
12526libname_spec=$lt_libname_spec
12527
12528# List of archive names. First name is the real one, the rest are links.
12529# The last name is the one that the linker finds with -lNAME.
12530library_names_spec=$lt_library_names_spec
12531
12532# The coded name of the library, if different from the real name.
12533soname_spec=$lt_soname_spec
12534
12535# Commands used to build and install an old-style archive.
12536RANLIB=$lt_RANLIB
12537old_archive_cmds=$lt_old_archive_cmds_CXX
12538old_postinstall_cmds=$lt_old_postinstall_cmds
12539old_postuninstall_cmds=$lt_old_postuninstall_cmds
12540
12541# Create an old-style archive from a shared archive.
12542old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12543
12544# Create a temporary old-style archive to link instead of a shared archive.
12545old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12546
12547# Commands used to build and install a shared archive.
12548archive_cmds=$lt_archive_cmds_CXX
12549archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12550postinstall_cmds=$lt_postinstall_cmds
12551postuninstall_cmds=$lt_postuninstall_cmds
12552
12553# Commands used to build a loadable module (assumed same as above if empty)
12554module_cmds=$lt_module_cmds_CXX
12555module_expsym_cmds=$lt_module_expsym_cmds_CXX
12556
12557# Commands to strip libraries.
12558old_striplib=$lt_old_striplib
12559striplib=$lt_striplib
12560
12561# Dependencies to place before the objects being linked to create a
12562# shared library.
12563predep_objects=$lt_predep_objects_CXX
12564
12565# Dependencies to place after the objects being linked to create a
12566# shared library.
12567postdep_objects=$lt_postdep_objects_CXX
12568
12569# Dependencies to place before the objects being linked to create a
12570# shared library.
12571predeps=$lt_predeps_CXX
12572
12573# Dependencies to place after the objects being linked to create a
12574# shared library.
12575postdeps=$lt_postdeps_CXX
12576
12577# The library search path used internally by the compiler when linking
12578# a shared library.
12579compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12580
12581# Method to check whether dependent libraries are shared objects.
12582deplibs_check_method=$lt_deplibs_check_method
12583
12584# Command to use when deplibs_check_method == file_magic.
12585file_magic_cmd=$lt_file_magic_cmd
12586
12587# Flag that allows shared libraries with undefined symbols to be built.
12588allow_undefined_flag=$lt_allow_undefined_flag_CXX
12589
12590# Flag that forces no undefined symbols.
12591no_undefined_flag=$lt_no_undefined_flag_CXX
12592
12593# Commands used to finish a libtool library installation in a directory.
12594finish_cmds=$lt_finish_cmds
12595
12596# Same as above, but a single script fragment to be evaled but not shown.
12597finish_eval=$lt_finish_eval
12598
12599# Take the output of nm and produce a listing of raw symbols and C names.
12600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12601
12602# Transform the output of nm in a proper C declaration
12603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12604
12605# Transform the output of nm in a C name address pair
12606global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12607
12608# This is the shared library runtime path variable.
12609runpath_var=$runpath_var
12610
12611# This is the shared library path variable.
12612shlibpath_var=$shlibpath_var
12613
12614# Is shlibpath searched before the hard-coded library search path?
12615shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12616
12617# How to hardcode a shared library path into an executable.
12618hardcode_action=$hardcode_action_CXX
12619
12620# Whether we should hardcode library paths into libraries.
12621hardcode_into_libs=$hardcode_into_libs
12622
12623# Flag to hardcode \$libdir into a binary during linking.
12624# This must work even if \$libdir does not exist.
12625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12626
12627# If ld is used when linking, flag to hardcode \$libdir into
12628# a binary during linking. This must work even if \$libdir does
12629# not exist.
12630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12631
12632# Whether we need a single -rpath flag with a separated argument.
12633hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12634
12635# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12636# resulting binary.
12637hardcode_direct=$hardcode_direct_CXX
12638
12639# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12640# resulting binary.
12641hardcode_minus_L=$hardcode_minus_L_CXX
12642
12643# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12644# the resulting binary.
12645hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12646
12647# Set to yes if building a shared library automatically hardcodes DIR into the library
12648# and all subsequent libraries and executables linked against it.
12649hardcode_automatic=$hardcode_automatic_CXX
12650
12651# Variables whose values should be saved in libtool wrapper scripts and
12652# restored at relink time.
12653variables_saved_for_relink="$variables_saved_for_relink"
12654
12655# Whether libtool must link a program against all its dependency libraries.
12656link_all_deplibs=$link_all_deplibs_CXX
12657
12658# Compile-time system search path for libraries
12659sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12660
12661# Run-time system search path for libraries
12662sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12663
12664# Fix the shell variable \$srcfile for the compiler.
12665fix_srcfile_path="$fix_srcfile_path_CXX"
12666
12667# Set to yes if exported symbols are required.
12668always_export_symbols=$always_export_symbols_CXX
12669
12670# The commands to list exported symbols.
12671export_symbols_cmds=$lt_export_symbols_cmds_CXX
12672
12673# The commands to extract the exported symbol list from a shared archive.
12674extract_expsyms_cmds=$lt_extract_expsyms_cmds
12675
12676# Symbols that should not be listed in the preloaded symbols.
12677exclude_expsyms=$lt_exclude_expsyms_CXX
12678
12679# Symbols that must always be exported.
12680include_expsyms=$lt_include_expsyms_CXX
12681
12682# ### END LIBTOOL TAG CONFIG: $tagname
12683
12684__EOF__
12685
12686
12687else
12688 # If there is no Makefile yet, we rely on a make rule to execute
12689 # `config.status --recheck' to rerun these tests and create the
12690 # libtool script then.
12691 test -f Makefile && make "$ltmain"
12692fi
12693
12694
12695ac_ext=c
12696ac_cpp='$CPP $CPPFLAGS'
12697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699ac_compiler_gnu=$ac_cv_c_compiler_gnu
12700
12701CC=$lt_save_CC
12702LDCXX=$LD
12703LD=$lt_save_LD
12704GCC=$lt_save_GCC
12705with_gnu_ldcxx=$with_gnu_ld
12706with_gnu_ld=$lt_save_with_gnu_ld
12707lt_cv_path_LDCXX=$lt_cv_path_LD
12708lt_cv_path_LD=$lt_save_path_LD
12709lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12710lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12711
12712 else
12713 tagname=""
12714 fi
12715 ;;
12716
12717 F77)
12718 if test -n "$F77" && test "X$F77" != "Xno"; then
12719
12720ac_ext=f
12721ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12722ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12723ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12724
12725
12726archive_cmds_need_lc_F77=no
12727allow_undefined_flag_F77=
12728always_export_symbols_F77=no
12729archive_expsym_cmds_F77=
12730export_dynamic_flag_spec_F77=
12731hardcode_direct_F77=no
12732hardcode_libdir_flag_spec_F77=
12733hardcode_libdir_flag_spec_ld_F77=
12734hardcode_libdir_separator_F77=
12735hardcode_minus_L_F77=no
12736hardcode_automatic_F77=no
12737module_cmds_F77=
12738module_expsym_cmds_F77=
12739link_all_deplibs_F77=unknown
12740old_archive_cmds_F77=$old_archive_cmds
12741no_undefined_flag_F77=
12742whole_archive_flag_spec_F77=
12743enable_shared_with_static_runtimes_F77=no
12744
12745# Source file extension for f77 test sources.
12746ac_ext=f
12747
12748# Object file extension for compiled f77 test sources.
12749objext=o
12750objext_F77=$objext
12751
12752# Code to be used in simple compile tests
12753lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12754
12755# Code to be used in simple link tests
12756lt_simple_link_test_code=" program t\n end\n"
12757
12758# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12759
12760# If no C compiler was specified, use CC.
12761LTCC=${LTCC-"$CC"}
12762
12763# Allow CC to be a program name with arguments.
12764compiler=$CC
12765
12766
12767# Allow CC to be a program name with arguments.
12768lt_save_CC="$CC"
12769CC=${F77-"f77"}
12770compiler=$CC
12771compiler_F77=$CC
12772cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12773
12774echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12775echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12776echo "$as_me:$LINENO: result: $can_build_shared" >&5
12777echo "${ECHO_T}$can_build_shared" >&6
12778
12779echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12780echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12781test "$can_build_shared" = "no" && enable_shared=no
12782
12783# On AIX, shared libraries and static libraries use the same namespace, and
12784# are all built from PIC.
12785case "$host_os" in
12786aix3*)
12787 test "$enable_shared" = yes && enable_static=no
12788 if test -n "$RANLIB"; then
12789 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12790 postinstall_cmds='$RANLIB $lib'
12791 fi
12792 ;;
12793aix4*)
12794 test "$enable_shared" = yes && enable_static=no
12795 ;;
12796esac
12797echo "$as_me:$LINENO: result: $enable_shared" >&5
12798echo "${ECHO_T}$enable_shared" >&6
12799
12800echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12801echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12802# Make sure either enable_shared or enable_static is yes.
12803test "$enable_shared" = yes || enable_static=yes
12804echo "$as_me:$LINENO: result: $enable_static" >&5
12805echo "${ECHO_T}$enable_static" >&6
12806
12807test "$ld_shlibs_F77" = no && can_build_shared=no
12808
12809GCC_F77="$G77"
12810LD_F77="$LD"
12811
12812lt_prog_compiler_wl_F77=
12813lt_prog_compiler_pic_F77=
12814lt_prog_compiler_static_F77=
12815
12816echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12817echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12818
12819 if test "$GCC" = yes; then
12820 lt_prog_compiler_wl_F77='-Wl,'
12821 lt_prog_compiler_static_F77='-static'
12822
12823 case $host_os in
12824 aix*)
12825 # All AIX code is PIC.
12826 if test "$host_cpu" = ia64; then
12827 # AIX 5 now supports IA64 processor
12828 lt_prog_compiler_static_F77='-Bstatic'
12829 fi
12830 ;;
12831
12832 amigaos*)
12833 # FIXME: we need at least 68020 code to build shared libraries, but
12834 # adding the `-m68020' flag to GCC prevents building anything better,
12835 # like `-m68040'.
12836 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12837 ;;
12838
12839 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12840 # PIC is the default for these OSes.
12841 ;;
12842
12843 mingw* | pw32* | os2*)
12844 # This hack is so that the source file can tell whether it is being
12845 # built for inclusion in a dll (and should export symbols for example).
12846 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12847 ;;
12848
12849 darwin* | rhapsody*)
12850 # PIC is the default on this platform
12851 # Common symbols not allowed in MH_DYLIB files
12852 lt_prog_compiler_pic_F77='-fno-common'
12853 ;;
12854
12855 msdosdjgpp*)
12856 # Just because we use GCC doesn't mean we suddenly get shared libraries
12857 # on systems that don't support them.
12858 lt_prog_compiler_can_build_shared_F77=no
12859 enable_shared=no
12860 ;;
12861
12862 sysv4*MP*)
12863 if test -d /usr/nec; then
12864 lt_prog_compiler_pic_F77=-Kconform_pic
12865 fi
12866 ;;
12867
12868 hpux*)
12869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12870 # not for PA HP-UX.
12871 case "$host_cpu" in
12872 hppa*64*|ia64*)
12873 # +Z the default
12874 ;;
12875 *)
12876 lt_prog_compiler_pic_F77='-fPIC'
12877 ;;
12878 esac
12879 ;;
12880
12881 *)
12882 lt_prog_compiler_pic_F77='-fPIC'
12883 ;;
12884 esac
12885 else
12886 # PORTME Check for flag to pass linker flags through the system compiler.
12887 case $host_os in
12888 aix*)
12889 lt_prog_compiler_wl_F77='-Wl,'
12890 if test "$host_cpu" = ia64; then
12891 # AIX 5 now supports IA64 processor
12892 lt_prog_compiler_static_F77='-Bstatic'
12893 else
12894 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12895 fi
12896 ;;
12897
12898 mingw* | pw32* | os2*)
12899 # This hack is so that the source file can tell whether it is being
12900 # built for inclusion in a dll (and should export symbols for example).
12901 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12902 ;;
12903
12904 hpux9* | hpux10* | hpux11*)
12905 lt_prog_compiler_wl_F77='-Wl,'
12906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12907 # not for PA HP-UX.
12908 case "$host_cpu" in
12909 hppa*64*|ia64*)
12910 # +Z the default
12911 ;;
12912 *)
12913 lt_prog_compiler_pic_F77='+Z'
12914 ;;
12915 esac
12916 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12917 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12918 ;;
12919
12920 irix5* | irix6* | nonstopux*)
12921 lt_prog_compiler_wl_F77='-Wl,'
12922 # PIC (with -KPIC) is the default.
12923 lt_prog_compiler_static_F77='-non_shared'
12924 ;;
12925
12926 newsos6)
12927 lt_prog_compiler_pic_F77='-KPIC'
12928 lt_prog_compiler_static_F77='-Bstatic'
12929 ;;
12930
12931 linux*)
12932 case $CC in
12933 icc|ecc)
12934 lt_prog_compiler_wl_F77='-Wl,'
12935 lt_prog_compiler_pic_F77='-KPIC'
12936 lt_prog_compiler_static_F77='-static'
12937 ;;
12938 ccc)
12939 lt_prog_compiler_wl_F77='-Wl,'
12940 # All Alpha code is PIC.
12941 lt_prog_compiler_static_F77='-non_shared'
12942 ;;
12943 esac
12944 ;;
12945
12946 osf3* | osf4* | osf5*)
12947 lt_prog_compiler_wl_F77='-Wl,'
12948 # All OSF/1 code is PIC.
12949 lt_prog_compiler_static_F77='-non_shared'
12950 ;;
12951
12952 sco3.2v5*)
12953 lt_prog_compiler_pic_F77='-Kpic'
12954 lt_prog_compiler_static_F77='-dn'
12955 ;;
12956
12957 solaris*)
12958 lt_prog_compiler_wl_F77='-Wl,'
12959 lt_prog_compiler_pic_F77='-KPIC'
12960 lt_prog_compiler_static_F77='-Bstatic'
12961 ;;
12962
12963 sunos4*)
12964 lt_prog_compiler_wl_F77='-Qoption ld '
12965 lt_prog_compiler_pic_F77='-PIC'
12966 lt_prog_compiler_static_F77='-Bstatic'
12967 ;;
12968
12969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12970 lt_prog_compiler_wl_F77='-Wl,'
12971 lt_prog_compiler_pic_F77='-KPIC'
12972 lt_prog_compiler_static_F77='-Bstatic'
12973 ;;
12974
12975 sysv4*MP*)
12976 if test -d /usr/nec ;then
12977 lt_prog_compiler_pic_F77='-Kconform_pic'
12978 lt_prog_compiler_static_F77='-Bstatic'
12979 fi
12980 ;;
12981
12982 uts4*)
12983 lt_prog_compiler_pic_F77='-pic'
12984 lt_prog_compiler_static_F77='-Bstatic'
12985 ;;
12986
12987 *)
12988 lt_prog_compiler_can_build_shared_F77=no
12989 ;;
12990 esac
12991 fi
12992
12993echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12994echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12995
12996#
12997# Check to make sure the PIC flag actually works.
12998#
12999if test -n "$lt_prog_compiler_pic_F77"; then
13000 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13001echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13002if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005 lt_prog_compiler_pic_works_F77=no
13006 ac_outfile=conftest.$ac_objext
13007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13008 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13009 # Insert the option either (1) after the last *FLAGS variable, or
13010 # (2) before a word containing "conftest.", or (3) at the end.
13011 # Note that $ac_compile itself does not contain backslashes and begins
13012 # with a dollar sign (not a hyphen), so the echo should work correctly.
13013 # The option is referenced via a variable to avoid confusing sed.
13014 lt_compile=`echo "$ac_compile" | $SED \
13015 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13017 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000013018 (eval echo "\"\$as_me:13018: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013019 (eval "$lt_compile" 2>conftest.err)
13020 ac_status=$?
13021 cat conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000013022 echo "$as_me:13022: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013023 if (exit $ac_status) && test -s "$ac_outfile"; then
13024 # The compiler can only warn and ignore the option if not recognized
13025 # So say no if there are warnings
13026 if test ! -s conftest.err; then
13027 lt_prog_compiler_pic_works_F77=yes
13028 fi
13029 fi
13030 $rm conftest*
13031
13032fi
13033echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13034echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13035
13036if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13037 case $lt_prog_compiler_pic_F77 in
13038 "" | " "*) ;;
13039 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13040 esac
13041else
13042 lt_prog_compiler_pic_F77=
13043 lt_prog_compiler_can_build_shared_F77=no
13044fi
13045
13046fi
13047case "$host_os" in
13048 # For platforms which do not support PIC, -DPIC is meaningless:
13049 *djgpp*)
13050 lt_prog_compiler_pic_F77=
13051 ;;
13052 *)
13053 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13054 ;;
13055esac
13056
13057echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13058echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13059if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13061else
13062 lt_cv_prog_compiler_c_o_F77=no
13063 $rm -r conftest 2>/dev/null
13064 mkdir conftest
13065 cd conftest
13066 mkdir out
13067 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13070 # that will create temporary files in the current directory regardless of
13071 # the output directory. Thus, making CWD read-only will cause this test
13072 # to fail, enabling locking or at least warning the user not to do parallel
13073 # builds.
13074 chmod -w .
13075
13076 lt_compiler_flag="-o out/conftest2.$ac_objext"
13077 # Insert the option either (1) after the last *FLAGS variable, or
13078 # (2) before a word containing "conftest.", or (3) at the end.
13079 # Note that $ac_compile itself does not contain backslashes and begins
13080 # with a dollar sign (not a hyphen), so the echo should work correctly.
13081 lt_compile=`echo "$ac_compile" | $SED \
13082 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13084 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000013085 (eval echo "\"\$as_me:13085: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013086 (eval "$lt_compile" 2>out/conftest.err)
13087 ac_status=$?
13088 cat out/conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000013089 echo "$as_me:13089: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13091 then
13092 # The compiler can only warn and ignore the option if not recognized
13093 # So say no if there are warnings
13094 if test ! -s out/conftest.err; then
13095 lt_cv_prog_compiler_c_o_F77=yes
13096 fi
13097 fi
13098 chmod u+w .
13099 $rm conftest* out/*
13100 rmdir out
13101 cd ..
13102 rmdir conftest
13103 $rm conftest*
13104
13105fi
13106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13107echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13108
13109
13110hard_links="nottested"
13111if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13112 # do not overwrite the value of need_locks provided by the user
13113 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13114echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13115 hard_links=yes
13116 $rm conftest*
13117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118 touch conftest.a
13119 ln conftest.a conftest.b 2>&5 || hard_links=no
13120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13121 echo "$as_me:$LINENO: result: $hard_links" >&5
13122echo "${ECHO_T}$hard_links" >&6
13123 if test "$hard_links" = no; then
13124 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13125echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13126 need_locks=warn
13127 fi
13128else
13129 need_locks=no
13130fi
13131
13132echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13133echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13134
13135 runpath_var=
13136 allow_undefined_flag_F77=
13137 enable_shared_with_static_runtimes_F77=no
13138 archive_cmds_F77=
13139 archive_expsym_cmds_F77=
13140 old_archive_From_new_cmds_F77=
13141 old_archive_from_expsyms_cmds_F77=
13142 export_dynamic_flag_spec_F77=
13143 whole_archive_flag_spec_F77=
13144 thread_safe_flag_spec_F77=
13145 hardcode_libdir_flag_spec_F77=
13146 hardcode_libdir_flag_spec_ld_F77=
13147 hardcode_libdir_separator_F77=
13148 hardcode_direct_F77=no
13149 hardcode_minus_L_F77=no
13150 hardcode_shlibpath_var_F77=unsupported
13151 link_all_deplibs_F77=unknown
13152 hardcode_automatic_F77=no
13153 module_cmds_F77=
13154 module_expsym_cmds_F77=
13155 always_export_symbols_F77=no
13156 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13157 # include_expsyms should be a list of space-separated symbols to be *always*
13158 # included in the symbol list
13159 include_expsyms_F77=
13160 # exclude_expsyms can be an extended regexp of symbols to exclude
13161 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13162 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13163 # as well as any symbol that contains `d'.
13164 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13165 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13166 # platforms (ab)use it in PIC code, but their linkers get confused if
13167 # the symbol is explicitly referenced. Since portable code cannot
13168 # rely on this symbol name, it's probably fine to never include it in
13169 # preloaded symbol tables.
13170 extract_expsyms_cmds=
13171
13172 case $host_os in
13173 cygwin* | mingw* | pw32*)
13174 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13175 # When not using gcc, we currently assume that we are using
13176 # Microsoft Visual C++.
13177 if test "$GCC" != yes; then
13178 with_gnu_ld=no
13179 fi
13180 ;;
13181 openbsd*)
13182 with_gnu_ld=no
13183 ;;
13184 esac
13185
13186 ld_shlibs_F77=yes
13187 if test "$with_gnu_ld" = yes; then
13188 # If archive_cmds runs LD, not CC, wlarc should be empty
13189 wlarc='${wl}'
13190
13191 # See if GNU ld supports shared libraries.
13192 case $host_os in
13193 aix3* | aix4* | aix5*)
13194 # On AIX/PPC, the GNU linker is very broken
13195 if test "$host_cpu" != ia64; then
13196 ld_shlibs_F77=no
13197 cat <<EOF 1>&2
13198
13199*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13200*** to be unable to reliably create shared libraries on AIX.
13201*** Therefore, libtool is disabling shared libraries support. If you
13202*** really care for shared libraries, you may want to modify your PATH
13203*** so that a non-GNU linker is found, and then restart.
13204
13205EOF
13206 fi
13207 ;;
13208
13209 amigaos*)
13210 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)'
13211 hardcode_libdir_flag_spec_F77='-L$libdir'
13212 hardcode_minus_L_F77=yes
13213
13214 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13215 # that the semantics of dynamic libraries on AmigaOS, at least up
13216 # to version 4, is to share data among multiple programs linked
13217 # with the same dynamic library. Since this doesn't match the
13218 # behavior of shared libraries on other platforms, we can't use
13219 # them.
13220 ld_shlibs_F77=no
13221 ;;
13222
13223 beos*)
13224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13225 allow_undefined_flag_F77=unsupported
13226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13227 # support --undefined. This deserves some investigation. FIXME
13228 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229 else
13230 ld_shlibs_F77=no
13231 fi
13232 ;;
13233
13234 cygwin* | mingw* | pw32*)
13235 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13236 # as there is no search path for DLLs.
13237 hardcode_libdir_flag_spec_F77='-L$libdir'
13238 allow_undefined_flag_F77=unsupported
13239 always_export_symbols_F77=no
13240 enable_shared_with_static_runtimes_F77=yes
13241 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13242
13243 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13244 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13245 # If the export-symbols file already is a .def file (1st line
13246 # is EXPORTS), use it as is; otherwise, prepend...
13247 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13248 cp $export_symbols $output_objdir/$soname.def;
13249 else
13250 echo EXPORTS > $output_objdir/$soname.def;
13251 cat $export_symbols >> $output_objdir/$soname.def;
13252 fi~
13253 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13254 else
13255 ld_shlibs=no
13256 fi
13257 ;;
13258
13259 netbsd*)
13260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13261 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13262 wlarc=
13263 else
13264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13265 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13266 fi
13267 ;;
13268
13269 solaris* | sysv5*)
13270 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13271 ld_shlibs_F77=no
13272 cat <<EOF 1>&2
13273
13274*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13275*** create shared libraries on Solaris systems. Therefore, libtool
13276*** is disabling shared libraries support. We urge you to upgrade GNU
13277*** binutils to release 2.9.1 or newer. Another option is to modify
13278*** your PATH or compiler configuration so that the native linker is
13279*** used, and then restart.
13280
13281EOF
13282 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13285 else
13286 ld_shlibs_F77=no
13287 fi
13288 ;;
13289
13290 sunos4*)
13291 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13292 wlarc=
13293 hardcode_direct_F77=yes
13294 hardcode_shlibpath_var_F77=no
13295 ;;
13296
13297 *)
13298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13299 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13300 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13301 else
13302 ld_shlibs_F77=no
13303 fi
13304 ;;
13305 esac
13306
13307 if test "$ld_shlibs_F77" = yes; then
13308 runpath_var=LD_RUN_PATH
13309 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13310 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13311 # ancient GNU ld didn't support --whole-archive et. al.
13312 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13313 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13314 else
13315 whole_archive_flag_spec_F77=
13316 fi
13317 fi
13318 else
13319 # PORTME fill in a description of your system's linker (not GNU ld)
13320 case $host_os in
13321 aix3*)
13322 allow_undefined_flag_F77=unsupported
13323 always_export_symbols_F77=yes
13324 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'
13325 # Note: this linker hardcodes the directories in LIBPATH if there
13326 # are no directories specified by -L.
13327 hardcode_minus_L_F77=yes
13328 if test "$GCC" = yes && test -z "$link_static_flag"; then
13329 # Neither direct hardcoding nor static linking is supported with a
13330 # broken collect2.
13331 hardcode_direct_F77=unsupported
13332 fi
13333 ;;
13334
13335 aix4* | aix5*)
13336 if test "$host_cpu" = ia64; then
13337 # On IA64, the linker does run time linking by default, so we don't
13338 # have to do anything special.
13339 aix_use_runtimelinking=no
13340 exp_sym_flag='-Bexport'
13341 no_entry_flag=""
13342 else
13343 # If we're using GNU nm, then we don't want the "-C" option.
13344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13345 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13346 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'
13347 else
13348 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'
13349 fi
13350 aix_use_runtimelinking=no
13351
13352 # Test if we are trying to use run time linking or normal
13353 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13354 # need to do runtime linking.
13355 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13356 for ld_flag in $LDFLAGS; do
13357 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13358 aix_use_runtimelinking=yes
13359 break
13360 fi
13361 done
13362 esac
13363
13364 exp_sym_flag='-bexport'
13365 no_entry_flag='-bnoentry'
13366 fi
13367
13368 # When large executables or shared objects are built, AIX ld can
13369 # have problems creating the table of contents. If linking a library
13370 # or program results in "error TOC overflow" add -mminimal-toc to
13371 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13372 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13373
13374 archive_cmds_F77=''
13375 hardcode_direct_F77=yes
13376 hardcode_libdir_separator_F77=':'
13377 link_all_deplibs_F77=yes
13378
13379 if test "$GCC" = yes; then
13380 case $host_os in aix4.012|aix4.012.*)
13381 # We only want to do this on AIX 4.2 and lower, the check
13382 # below for broken collect2 doesn't work under 4.3+
13383 collect2name=`${CC} -print-prog-name=collect2`
13384 if test -f "$collect2name" && \
13385 strings "$collect2name" | grep resolve_lib_name >/dev/null
13386 then
13387 # We have reworked collect2
13388 hardcode_direct_F77=yes
13389 else
13390 # We have old collect2
13391 hardcode_direct_F77=unsupported
13392 # It fails to find uninstalled libraries when the uninstalled
13393 # path is not listed in the libpath. Setting hardcode_minus_L
13394 # to unsupported forces relinking
13395 hardcode_minus_L_F77=yes
13396 hardcode_libdir_flag_spec_F77='-L$libdir'
13397 hardcode_libdir_separator_F77=
13398 fi
13399 esac
13400 shared_flag='-shared'
13401 else
13402 # not using gcc
13403 if test "$host_cpu" = ia64; then
13404 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13405 # chokes on -Wl,-G. The following line is correct:
13406 shared_flag='-G'
13407 else
13408 if test "$aix_use_runtimelinking" = yes; then
13409 shared_flag='${wl}-G'
13410 else
13411 shared_flag='${wl}-bM:SRE'
13412 fi
13413 fi
13414 fi
13415
13416 # It seems that -bexpall does not export symbols beginning with
13417 # underscore (_), so it is better to generate a list of symbols to export.
13418 always_export_symbols_F77=yes
13419 if test "$aix_use_runtimelinking" = yes; then
13420 # Warning - without using the other runtime loading flags (-brtl),
13421 # -berok will link without error, but may produce a broken library.
13422 allow_undefined_flag_F77='-berok'
13423 # Determine the default libpath from the value encoded in an empty executable.
13424 cat >conftest.$ac_ext <<_ACEOF
13425 program main
13426
13427 end
13428_ACEOF
13429rm -f conftest.$ac_objext conftest$ac_exeext
13430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431 (eval $ac_link) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441
13442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13443}'`
13444# Check for a 64-bit object if we didn't find anything.
13445if 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; }
13446}'`; fi
13447else
13448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013449sed 's/^/| /' conftest.$ac_ext >&5
13450
John Criswell47fdd832003-07-14 16:52:07 +000013451fi
13452rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13453if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13454
13455 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13456 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"
13457 else
13458 if test "$host_cpu" = ia64; then
13459 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13460 allow_undefined_flag_F77="-z nodefs"
13461 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"
13462 else
13463 # Determine the default libpath from the value encoded in an empty executable.
13464 cat >conftest.$ac_ext <<_ACEOF
13465 program main
13466
13467 end
13468_ACEOF
13469rm -f conftest.$ac_objext conftest$ac_exeext
13470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -s conftest$ac_exeext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481
13482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13483}'`
13484# Check for a 64-bit object if we didn't find anything.
13485if 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; }
13486}'`; fi
13487else
13488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013489sed 's/^/| /' conftest.$ac_ext >&5
13490
John Criswell47fdd832003-07-14 16:52:07 +000013491fi
13492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13494
13495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13496 # Warning - without using the other run time loading flags,
13497 # -berok will link without error, but may produce a broken library.
13498 no_undefined_flag_F77=' ${wl}-bernotok'
13499 allow_undefined_flag_F77=' ${wl}-berok'
13500 # -bexpall does not export symbols beginning with underscore (_)
13501 always_export_symbols_F77=yes
13502 # Exported symbols can be pulled into shared objects from archives
13503 whole_archive_flag_spec_F77=' '
13504 archive_cmds_need_lc_F77=yes
13505 # This is similar to how AIX traditionally builds it's shared libraries.
13506 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'
13507 fi
13508 fi
13509 ;;
13510
13511 amigaos*)
13512 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)'
13513 hardcode_libdir_flag_spec_F77='-L$libdir'
13514 hardcode_minus_L_F77=yes
13515 # see comment about different semantics on the GNU ld section
13516 ld_shlibs_F77=no
13517 ;;
13518
13519 bsdi4*)
13520 export_dynamic_flag_spec_F77=-rdynamic
13521 ;;
13522
13523 cygwin* | mingw* | pw32*)
13524 # When not using gcc, we currently assume that we are using
13525 # Microsoft Visual C++.
13526 # hardcode_libdir_flag_spec is actually meaningless, as there is
13527 # no search path for DLLs.
13528 hardcode_libdir_flag_spec_F77=' '
13529 allow_undefined_flag_F77=unsupported
13530 # Tell ltmain to make .lib files, not .a files.
13531 libext=lib
13532 # Tell ltmain to make .dll files, not .so files.
13533 shrext=".dll"
13534 # FIXME: Setting linknames here is a bad hack.
13535 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13536 # The linker will automatically build a .lib file if we build a DLL.
13537 old_archive_From_new_cmds_F77='true'
13538 # FIXME: Should let the user specify the lib program.
13539 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13540 fix_srcfile_path='`cygpath -w "$srcfile"`'
13541 enable_shared_with_static_runtimes_F77=yes
13542 ;;
13543
13544 darwin* | rhapsody*)
13545 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13546 archive_cmds_need_lc_F77=no
13547 case "$host_os" in
13548 rhapsody* | darwin1.[012])
13549 allow_undefined_flag_F77='-undefined suppress'
13550 ;;
13551 *) # Darwin 1.3 on
13552 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13553 ;;
13554 esac
13555 # FIXME: Relying on posixy $() will cause problems for
13556 # cross-compilation, but unfortunately the echo tests do not
13557 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13558 # `"' quotes if we put them in here... so don't!
13559 lt_int_apple_cc_single_mod=no
13560 output_verbose_link_cmd='echo'
13561 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13562 lt_int_apple_cc_single_mod=yes
13563 fi
13564 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13565 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13566 else
13567 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'
13568 fi
13569 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13570 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13571 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13572 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}'
13573 else
13574 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}'
13575 fi
13576 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}'
13577 hardcode_direct_F77=no
13578 hardcode_automatic_F77=yes
13579 hardcode_shlibpath_var_F77=unsupported
13580 whole_archive_flag_spec_F77='-all_load $convenience'
13581 link_all_deplibs_F77=yes
13582 fi
13583 ;;
13584
13585 dgux*)
13586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13587 hardcode_libdir_flag_spec_F77='-L$libdir'
13588 hardcode_shlibpath_var_F77=no
13589 ;;
13590
13591 freebsd1*)
13592 ld_shlibs_F77=no
13593 ;;
13594
13595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13596 # support. Future versions do this automatically, but an explicit c++rt0.o
13597 # does not break anything, and helps significantly (at the cost of a little
13598 # extra space).
13599 freebsd2.2*)
13600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13601 hardcode_libdir_flag_spec_F77='-R$libdir'
13602 hardcode_direct_F77=yes
13603 hardcode_shlibpath_var_F77=no
13604 ;;
13605
13606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13607 freebsd2*)
13608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13609 hardcode_direct_F77=yes
13610 hardcode_minus_L_F77=yes
13611 hardcode_shlibpath_var_F77=no
13612 ;;
13613
13614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13615 freebsd*)
13616 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13617 hardcode_libdir_flag_spec_F77='-R$libdir'
13618 hardcode_direct_F77=yes
13619 hardcode_shlibpath_var_F77=no
13620 ;;
13621
13622 hpux9*)
13623 if test "$GCC" = yes; then
13624 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'
13625 else
13626 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'
13627 fi
13628 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13629 hardcode_libdir_separator_F77=:
13630 hardcode_direct_F77=yes
13631
13632 # hardcode_minus_L: Not really in the search PATH,
13633 # but as the default location of the library.
13634 hardcode_minus_L_F77=yes
13635 export_dynamic_flag_spec_F77='${wl}-E'
13636 ;;
13637
13638 hpux10* | hpux11*)
13639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13640 case "$host_cpu" in
13641 hppa*64*|ia64*)
13642 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13643 ;;
13644 *)
13645 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13646 ;;
13647 esac
13648 else
13649 case "$host_cpu" in
13650 hppa*64*|ia64*)
13651 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13652 ;;
13653 *)
13654 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13655 ;;
13656 esac
13657 fi
13658 if test "$with_gnu_ld" = no; then
13659 case "$host_cpu" in
13660 hppa*64*)
13661 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13662 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13663 hardcode_libdir_separator_F77=:
13664 hardcode_direct_F77=no
13665 hardcode_shlibpath_var_F77=no
13666 ;;
13667 ia64*)
13668 hardcode_libdir_flag_spec_F77='-L$libdir'
13669 hardcode_direct_F77=no
13670 hardcode_shlibpath_var_F77=no
13671
13672 # hardcode_minus_L: Not really in the search PATH,
13673 # but as the default location of the library.
13674 hardcode_minus_L_F77=yes
13675 ;;
13676 *)
13677 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13678 hardcode_libdir_separator_F77=:
13679 hardcode_direct_F77=yes
13680 export_dynamic_flag_spec_F77='${wl}-E'
13681
13682 # hardcode_minus_L: Not really in the search PATH,
13683 # but as the default location of the library.
13684 hardcode_minus_L_F77=yes
13685 ;;
13686 esac
13687 fi
13688 ;;
13689
13690 irix5* | irix6* | nonstopux*)
13691 if test "$GCC" = yes; then
13692 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'
13693 else
13694 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'
13695 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13696 fi
13697 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13698 hardcode_libdir_separator_F77=:
13699 link_all_deplibs_F77=yes
13700 ;;
13701
13702 netbsd*)
13703 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13704 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13705 else
13706 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13707 fi
13708 hardcode_libdir_flag_spec_F77='-R$libdir'
13709 hardcode_direct_F77=yes
13710 hardcode_shlibpath_var_F77=no
13711 ;;
13712
13713 newsos6)
13714 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13715 hardcode_direct_F77=yes
13716 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13717 hardcode_libdir_separator_F77=:
13718 hardcode_shlibpath_var_F77=no
13719 ;;
13720
13721 openbsd*)
13722 hardcode_direct_F77=yes
13723 hardcode_shlibpath_var_F77=no
13724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13725 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13726 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13727 export_dynamic_flag_spec_F77='${wl}-E'
13728 else
13729 case $host_os in
13730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13731 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13732 hardcode_libdir_flag_spec_F77='-R$libdir'
13733 ;;
13734 *)
13735 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13737 ;;
13738 esac
13739 fi
13740 ;;
13741
13742 os2*)
13743 hardcode_libdir_flag_spec_F77='-L$libdir'
13744 hardcode_minus_L_F77=yes
13745 allow_undefined_flag_F77=unsupported
13746 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'
13747 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13748 ;;
13749
13750 osf3*)
13751 if test "$GCC" = yes; then
13752 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13753 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'
13754 else
13755 allow_undefined_flag_F77=' -expect_unresolved \*'
13756 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'
13757 fi
13758 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13759 hardcode_libdir_separator_F77=:
13760 ;;
13761
13762 osf4* | osf5*) # as osf3* with the addition of -msym flag
13763 if test "$GCC" = yes; then
13764 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13765 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'
13766 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13767 else
13768 allow_undefined_flag_F77=' -expect_unresolved \*'
13769 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'
13770 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~
13771 $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'
13772
13773 # Both c and cxx compiler support -rpath directly
13774 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13775 fi
13776 hardcode_libdir_separator_F77=:
13777 ;;
13778
13779 sco3.2v5*)
13780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13781 hardcode_shlibpath_var_F77=no
13782 export_dynamic_flag_spec_F77='${wl}-Bexport'
13783 runpath_var=LD_RUN_PATH
13784 hardcode_runpath_var=yes
13785 ;;
13786
13787 solaris*)
13788 no_undefined_flag_F77=' -z text'
13789 if test "$GCC" = yes; then
13790 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13791 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13793 else
13794 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13796 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13797 fi
13798 hardcode_libdir_flag_spec_F77='-R$libdir'
13799 hardcode_shlibpath_var_F77=no
13800 case $host_os in
13801 solaris2.[0-5] | solaris2.[0-5].*) ;;
13802 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13803 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13804 esac
13805 link_all_deplibs_F77=yes
13806 ;;
13807
13808 sunos4*)
13809 if test "x$host_vendor" = xsequent; then
13810 # Use $CC to link under sequent, because it throws in some extra .o
13811 # files that make .init and .fini sections work.
13812 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13813 else
13814 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13815 fi
13816 hardcode_libdir_flag_spec_F77='-L$libdir'
13817 hardcode_direct_F77=yes
13818 hardcode_minus_L_F77=yes
13819 hardcode_shlibpath_var_F77=no
13820 ;;
13821
13822 sysv4)
13823 case $host_vendor in
13824 sni)
13825 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13826 hardcode_direct_F77=yes # is this really true???
13827 ;;
13828 siemens)
13829 ## LD is ld it makes a PLAMLIB
13830 ## CC just makes a GrossModule.
13831 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13832 reload_cmds_F77='$CC -r -o $output$reload_objs'
13833 hardcode_direct_F77=no
13834 ;;
13835 motorola)
13836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13838 ;;
13839 esac
13840 runpath_var='LD_RUN_PATH'
13841 hardcode_shlibpath_var_F77=no
13842 ;;
13843
13844 sysv4.3*)
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_shlibpath_var_F77=no
13847 export_dynamic_flag_spec_F77='-Bexport'
13848 ;;
13849
13850 sysv4*MP*)
13851 if test -d /usr/nec; then
13852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13853 hardcode_shlibpath_var_F77=no
13854 runpath_var=LD_RUN_PATH
13855 hardcode_runpath_var=yes
13856 ld_shlibs_F77=yes
13857 fi
13858 ;;
13859
13860 sysv4.2uw2*)
13861 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_direct_F77=yes
13863 hardcode_minus_L_F77=no
13864 hardcode_shlibpath_var_F77=no
13865 hardcode_runpath_var=yes
13866 runpath_var=LD_RUN_PATH
13867 ;;
13868
13869 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13870 no_undefined_flag_F77='${wl}-z ${wl}text'
13871 if test "$GCC" = yes; then
13872 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13873 else
13874 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13875 fi
13876 runpath_var='LD_RUN_PATH'
13877 hardcode_shlibpath_var_F77=no
13878 ;;
13879
13880 sysv5*)
13881 no_undefined_flag_F77=' -z text'
13882 # $CC -shared without GNU ld will not create a library from C++
13883 # object files and a static libstdc++, better avoid it by now
13884 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13886 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13887 hardcode_libdir_flag_spec_F77=
13888 hardcode_shlibpath_var_F77=no
13889 runpath_var='LD_RUN_PATH'
13890 ;;
13891
13892 uts4*)
13893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 hardcode_libdir_flag_spec_F77='-L$libdir'
13895 hardcode_shlibpath_var_F77=no
13896 ;;
13897
13898 *)
13899 ld_shlibs_F77=no
13900 ;;
13901 esac
13902 fi
13903
13904echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13905echo "${ECHO_T}$ld_shlibs_F77" >&6
13906test "$ld_shlibs_F77" = no && can_build_shared=no
13907
13908variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13909if test "$GCC" = yes; then
13910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13911fi
13912
13913#
13914# Do we need to explicitly link libc?
13915#
13916case "x$archive_cmds_need_lc_F77" in
13917x|xyes)
13918 # Assume -lc should be added
13919 archive_cmds_need_lc_F77=yes
13920
13921 if test "$enable_shared" = yes && test "$GCC" = yes; then
13922 case $archive_cmds_F77 in
13923 *'~'*)
13924 # FIXME: we may have to deal with multi-command sequences.
13925 ;;
13926 '$CC '*)
13927 # Test whether the compiler implicitly links with -lc since on some
13928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13929 # to ld, don't add -lc before -lgcc.
13930 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13931echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13932 $rm conftest*
13933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13934
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } 2>conftest.err; then
13940 soname=conftest
13941 lib=conftest
13942 libobjs=conftest.$ac_objext
13943 deplibs=
13944 wl=$lt_prog_compiler_wl_F77
13945 compiler_flags=-v
13946 linker_flags=-v
13947 verstring=
13948 output_objdir=.
13949 libname=conftest
13950 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13951 allow_undefined_flag_F77=
13952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13953 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }
13957 then
13958 archive_cmds_need_lc_F77=no
13959 else
13960 archive_cmds_need_lc_F77=yes
13961 fi
13962 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13963 else
13964 cat conftest.err 1>&5
13965 fi
13966 $rm conftest*
13967 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13968echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13969 ;;
13970 esac
13971 fi
13972 ;;
13973esac
13974
13975echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13976echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13977hardcode_action_F77=
13978if test -n "$hardcode_libdir_flag_spec_F77" || \
13979 test -n "$runpath_var F77" || \
13980 test "X$hardcode_automatic_F77"="Xyes" ; then
13981
13982 # We can hardcode non-existant directories.
13983 if test "$hardcode_direct_F77" != no &&
13984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13985 # have to relink, otherwise we might link with an installed library
13986 # when we should be linking with a yet-to-be-installed one
13987 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13988 test "$hardcode_minus_L_F77" != no; then
13989 # Linking always hardcodes the temporary library directory.
13990 hardcode_action_F77=relink
13991 else
13992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13993 hardcode_action_F77=immediate
13994 fi
13995else
13996 # We cannot hardcode anything, or else we can only hardcode existing
13997 # directories.
13998 hardcode_action_F77=unsupported
13999fi
14000echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14001echo "${ECHO_T}$hardcode_action_F77" >&6
14002
14003if test "$hardcode_action_F77" = relink; then
14004 # Fast installation is not supported
14005 enable_fast_install=no
14006elif test "$shlibpath_overrides_runpath" = yes ||
14007 test "$enable_shared" = no; then
14008 # Fast installation is not necessary
14009 enable_fast_install=needless
14010fi
14011
14012striplib=
14013old_striplib=
14014echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14015echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14016if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14017 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14018 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14019 echo "$as_me:$LINENO: result: yes" >&5
14020echo "${ECHO_T}yes" >&6
14021else
14022# FIXME - insert some real tests, host_os isn't really good enough
14023 case $host_os in
14024 darwin*)
14025 if test -n "$STRIP" ; then
14026 striplib="$STRIP -x"
14027 echo "$as_me:$LINENO: result: yes" >&5
14028echo "${ECHO_T}yes" >&6
14029 else
14030 echo "$as_me:$LINENO: result: no" >&5
14031echo "${ECHO_T}no" >&6
14032fi
14033 ;;
14034 *)
14035 echo "$as_me:$LINENO: result: no" >&5
14036echo "${ECHO_T}no" >&6
14037 ;;
14038 esac
14039fi
14040
14041echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14042echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14043library_names_spec=
14044libname_spec='lib$name'
14045soname_spec=
14046shrext=".so"
14047postinstall_cmds=
14048postuninstall_cmds=
14049finish_cmds=
14050finish_eval=
14051shlibpath_var=
14052shlibpath_overrides_runpath=unknown
14053version_type=none
14054dynamic_linker="$host_os ld.so"
14055sys_lib_dlsearch_path_spec="/lib /usr/lib"
14056if test "$GCC" = yes; then
14057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14058 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14059 # if the path contains ";" then we assume it to be the separator
14060 # otherwise default to the standard path separator (i.e. ":") - it is
14061 # assumed that no part of a normal pathname contains ";" but that should
14062 # okay in the real world where ";" in dirpaths is itself problematic.
14063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14064 else
14065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14066 fi
14067else
14068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14069fi
14070need_lib_prefix=unknown
14071hardcode_into_libs=no
14072
14073# when you set need_version to no, make sure it does not cause -set_version
14074# flags to be left without arguments
14075need_version=unknown
14076
14077case $host_os in
14078aix3*)
14079 version_type=linux
14080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14081 shlibpath_var=LIBPATH
14082
14083 # AIX 3 has no versioning support, so we append a major version to the name.
14084 soname_spec='${libname}${release}${shared_ext}$major'
14085 ;;
14086
14087aix4* | aix5*)
14088 version_type=linux
14089 need_lib_prefix=no
14090 need_version=no
14091 hardcode_into_libs=yes
14092 if test "$host_cpu" = ia64; then
14093 # AIX 5 supports IA64
14094 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 else
14097 # With GCC up to 2.95.x, collect2 would create an import file
14098 # for dependence libraries. The import file would start with
14099 # the line `#! .'. This would cause the generated library to
14100 # depend on `.', always an invalid library. This was fixed in
14101 # development snapshots of GCC prior to 3.0.
14102 case $host_os in
14103 aix4 | aix4.[01] | aix4.[01].*)
14104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14105 echo ' yes '
14106 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14107 :
14108 else
14109 can_build_shared=no
14110 fi
14111 ;;
14112 esac
14113 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14114 # soname into executable. Probably we can add versioning support to
14115 # collect2, so additional links can be useful in future.
14116 if test "$aix_use_runtimelinking" = yes; then
14117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14118 # instead of lib<name>.a to let people know that these are not
14119 # typical AIX shared libraries.
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 else
14122 # We preserve .a as extension for shared libraries through AIX4.2
14123 # and later when we are not doing run time linking.
14124 library_names_spec='${libname}${release}.a $libname.a'
14125 soname_spec='${libname}${release}${shared_ext}$major'
14126 fi
14127 shlibpath_var=LIBPATH
14128 fi
14129 ;;
14130
14131amigaos*)
14132 library_names_spec='$libname.ixlibrary $libname.a'
14133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14134 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'
14135 ;;
14136
14137beos*)
14138 library_names_spec='${libname}${shared_ext}'
14139 dynamic_linker="$host_os ld.so"
14140 shlibpath_var=LIBRARY_PATH
14141 ;;
14142
14143bsdi4*)
14144 version_type=linux
14145 need_version=no
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14152 # the default ld.so.conf also contains /usr/contrib/lib and
14153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14154 # libtool to hard-code these into programs
14155 ;;
14156
14157cygwin* | mingw* | pw32*)
14158 version_type=windows
14159 shrext=".dll"
14160 need_version=no
14161 need_lib_prefix=no
14162
14163 case $GCC,$host_os in
14164 yes,cygwin* | yes,mingw* | yes,pw32*)
14165 library_names_spec='$libname.dll.a'
14166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14167 postinstall_cmds='base_file=`basename \${file}`~
14168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14169 dldir=$destdir/`dirname \$dlpath`~
14170 test -d \$dldir || mkdir -p \$dldir~
14171 $install_prog $dir/$dlname \$dldir/$dlname'
14172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14173 dlpath=$dir/\$dldll~
14174 $rm \$dlpath'
14175 shlibpath_overrides_runpath=yes
14176
14177 case $host_os in
14178 cygwin*)
14179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14182 ;;
14183 mingw*)
14184 # MinGW DLLs use traditional 'lib' prefix
14185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14188 # It is most probably a Windows format PATH printed by
14189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14190 # path with ; separators, and with drive letters. We can handle the
14191 # drive letters (cygwin fileutils understands them), so leave them,
14192 # especially as we might pass files found there to a mingw objdump,
14193 # which wouldn't understand a cygwinified path. Ahh.
14194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14195 else
14196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14197 fi
14198 ;;
14199 pw32*)
14200 # pw32 DLLs use 'pw' prefix rather than 'lib'
14201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14202 ;;
14203 esac
14204 ;;
14205
14206 *)
14207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14208 ;;
14209 esac
14210 dynamic_linker='Win32 ld.exe'
14211 # FIXME: first we should search . and the directory the executable is in
14212 shlibpath_var=PATH
14213 ;;
14214
14215darwin* | rhapsody*)
14216 dynamic_linker="$host_os dyld"
14217 version_type=darwin
14218 need_lib_prefix=no
14219 need_version=no
14220 # FIXME: Relying on posixy $() will cause problems for
14221 # cross-compilation, but unfortunately the echo tests do not
14222 # yet detect zsh echo's removal of \ escapes.
14223 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14224 soname_spec='${libname}${release}${major}$shared_ext'
14225 shlibpath_overrides_runpath=yes
14226 shlibpath_var=DYLD_LIBRARY_PATH
14227 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14228 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14229 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14230 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"`
14231 fi
14232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14233 ;;
14234
14235dgux*)
14236 version_type=linux
14237 need_lib_prefix=no
14238 need_version=no
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 ;;
14243
14244freebsd1*)
14245 dynamic_linker=no
14246 ;;
14247
14248freebsd*)
14249 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14250 version_type=freebsd-$objformat
14251 case $version_type in
14252 freebsd-elf*)
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14254 need_version=no
14255 need_lib_prefix=no
14256 ;;
14257 freebsd-*)
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14259 need_version=yes
14260 ;;
14261 esac
14262 shlibpath_var=LD_LIBRARY_PATH
14263 case $host_os in
14264 freebsd2*)
14265 shlibpath_overrides_runpath=yes
14266 ;;
14267 freebsd3.01* | freebsdelf3.01*)
14268 shlibpath_overrides_runpath=yes
14269 hardcode_into_libs=yes
14270 ;;
14271 *) # from 3.2 on
14272 shlibpath_overrides_runpath=no
14273 hardcode_into_libs=yes
14274 ;;
14275 esac
14276 ;;
14277
14278gnu*)
14279 version_type=linux
14280 need_lib_prefix=no
14281 need_version=no
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 hardcode_into_libs=yes
14286 ;;
14287
14288hpux9* | hpux10* | hpux11*)
14289 # Give a soname corresponding to the major version so that dld.sl refuses to
14290 # link against other versions.
14291 version_type=sunos
14292 need_lib_prefix=no
14293 need_version=no
14294 case "$host_cpu" in
14295 ia64*)
14296 shrext='.so'
14297 hardcode_into_libs=yes
14298 dynamic_linker="$host_os dld.so"
14299 shlibpath_var=LD_LIBRARY_PATH
14300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 if test "X$HPUX_IA64_MODE" = X32; then
14304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14305 else
14306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14307 fi
14308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14309 ;;
14310 hppa*64*)
14311 shrext='.sl'
14312 hardcode_into_libs=yes
14313 dynamic_linker="$host_os dld.sl"
14314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14320 ;;
14321 *)
14322 shrext='.sl'
14323 dynamic_linker="$host_os dld.sl"
14324 shlibpath_var=SHLIB_PATH
14325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 ;;
14329 esac
14330 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14331 postinstall_cmds='chmod 555 $lib'
14332 ;;
14333
14334irix5* | irix6* | nonstopux*)
14335 case $host_os in
14336 nonstopux*) version_type=nonstopux ;;
14337 *)
14338 if test "$lt_cv_prog_gnu_ld" = yes; then
14339 version_type=linux
14340 else
14341 version_type=irix
14342 fi ;;
14343 esac
14344 need_lib_prefix=no
14345 need_version=no
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14348 case $host_os in
14349 irix5* | nonstopux*)
14350 libsuff= shlibsuff=
14351 ;;
14352 *)
14353 case $LD in # libtool.m4 will add one of these switches to LD
14354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14355 libsuff= shlibsuff= libmagic=32-bit;;
14356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14357 libsuff=32 shlibsuff=N32 libmagic=N32;;
14358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14360 *) libsuff= shlibsuff= libmagic=never-match;;
14361 esac
14362 ;;
14363 esac
14364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14365 shlibpath_overrides_runpath=no
14366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14368 hardcode_into_libs=yes
14369 ;;
14370
14371# No shared lib support for Linux oldld, aout, or coff.
14372linux*oldld* | linux*aout* | linux*coff*)
14373 dynamic_linker=no
14374 ;;
14375
14376# This must be Linux ELF.
14377linux*)
14378 version_type=linux
14379 need_lib_prefix=no
14380 need_version=no
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14384 shlibpath_var=LD_LIBRARY_PATH
14385 shlibpath_overrides_runpath=no
14386 # This implies no fast_install, which is unacceptable.
14387 # Some rework will be needed to allow for fast_install
14388 # before this can be enabled.
14389 hardcode_into_libs=yes
14390
14391 # We used to test for /lib/ld.so.1 and disable shared libraries on
14392 # powerpc, because MkLinux only supported shared libraries with the
14393 # GNU dynamic linker. Since this was broken with cross compilers,
14394 # most powerpc-linux boxes support dynamic linking these days and
14395 # people can always --disable-shared, the test was removed, and we
14396 # assume the GNU/Linux dynamic linker is in use.
14397 dynamic_linker='GNU/Linux ld.so'
14398 ;;
14399
14400netbsd*)
14401 version_type=sunos
14402 need_lib_prefix=no
14403 need_version=no
14404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14407 dynamic_linker='NetBSD (a.out) ld.so'
14408 else
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 dynamic_linker='NetBSD ld.elf_so'
14412 fi
14413 shlibpath_var=LD_LIBRARY_PATH
14414 shlibpath_overrides_runpath=yes
14415 hardcode_into_libs=yes
14416 ;;
14417
14418newsos6)
14419 version_type=linux
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 shlibpath_overrides_runpath=yes
14423 ;;
14424
14425nto-qnx)
14426 version_type=linux
14427 need_lib_prefix=no
14428 need_version=no
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 shlibpath_overrides_runpath=yes
14433 ;;
14434
14435openbsd*)
14436 version_type=sunos
14437 need_lib_prefix=no
14438 need_version=no
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14443 case $host_os in
14444 openbsd2.[89] | openbsd2.[89].*)
14445 shlibpath_overrides_runpath=no
14446 ;;
14447 *)
14448 shlibpath_overrides_runpath=yes
14449 ;;
14450 esac
14451 else
14452 shlibpath_overrides_runpath=yes
14453 fi
14454 ;;
14455
14456os2*)
14457 libname_spec='$name'
14458 shrext=".dll"
14459 need_lib_prefix=no
14460 library_names_spec='$libname${shared_ext} $libname.a'
14461 dynamic_linker='OS/2 ld.exe'
14462 shlibpath_var=LIBPATH
14463 ;;
14464
14465osf3* | osf4* | osf5*)
14466 version_type=osf
14467 need_lib_prefix=no
14468 need_version=no
14469 soname_spec='${libname}${release}${shared_ext}$major'
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14473 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14474 ;;
14475
14476sco3.2v5*)
14477 version_type=osf
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 ;;
14482
14483solaris*)
14484 version_type=linux
14485 need_lib_prefix=no
14486 need_version=no
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14491 hardcode_into_libs=yes
14492 # ldd complains unless libraries are executable
14493 postinstall_cmds='chmod +x $lib'
14494 ;;
14495
14496sunos4*)
14497 version_type=sunos
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 shlibpath_overrides_runpath=yes
14502 if test "$with_gnu_ld" = yes; then
14503 need_lib_prefix=no
14504 fi
14505 need_version=yes
14506 ;;
14507
14508sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14509 version_type=linux
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 case $host_vendor in
14514 sni)
14515 shlibpath_overrides_runpath=no
14516 need_lib_prefix=no
14517 export_dynamic_flag_spec='${wl}-Blargedynsym'
14518 runpath_var=LD_RUN_PATH
14519 ;;
14520 siemens)
14521 need_lib_prefix=no
14522 ;;
14523 motorola)
14524 need_lib_prefix=no
14525 need_version=no
14526 shlibpath_overrides_runpath=no
14527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14528 ;;
14529 esac
14530 ;;
14531
14532sysv4*MP*)
14533 if test -d /usr/nec ;then
14534 version_type=linux
14535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14536 soname_spec='$libname${shared_ext}.$major'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 fi
14539 ;;
14540
14541uts4*)
14542 version_type=linux
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 ;;
14547
14548*)
14549 dynamic_linker=no
14550 ;;
14551esac
14552echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14553echo "${ECHO_T}$dynamic_linker" >&6
14554test "$dynamic_linker" = no && can_build_shared=no
14555
14556
14557# The else clause should only fire when bootstrapping the
14558# libtool distribution, otherwise you forgot to ship ltmain.sh
14559# with your package, and you will get complaints that there are
14560# no rules to generate ltmain.sh.
14561if test -f "$ltmain"; then
14562 # See if we are running on zsh, and set the options which allow our commands through
14563 # without removal of \ escapes.
14564 if test -n "${ZSH_VERSION+set}" ; then
14565 setopt NO_GLOB_SUBST
14566 fi
14567 # Now quote all the things that may contain metacharacters while being
14568 # careful not to overquote the AC_SUBSTed values. We take copies of the
14569 # variables and quote the copies for generation of the libtool script.
14570 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14573 deplibs_check_method reload_flag reload_cmds need_locks \
14574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14575 lt_cv_sys_global_symbol_to_c_name_address \
14576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14577 old_postinstall_cmds old_postuninstall_cmds \
14578 compiler_F77 \
14579 CC_F77 \
14580 LD_F77 \
14581 lt_prog_compiler_wl_F77 \
14582 lt_prog_compiler_pic_F77 \
14583 lt_prog_compiler_static_F77 \
14584 lt_prog_compiler_no_builtin_flag_F77 \
14585 export_dynamic_flag_spec_F77 \
14586 thread_safe_flag_spec_F77 \
14587 whole_archive_flag_spec_F77 \
14588 enable_shared_with_static_runtimes_F77 \
14589 old_archive_cmds_F77 \
14590 old_archive_from_new_cmds_F77 \
14591 predep_objects_F77 \
14592 postdep_objects_F77 \
14593 predeps_F77 \
14594 postdeps_F77 \
14595 compiler_lib_search_path_F77 \
14596 archive_cmds_F77 \
14597 archive_expsym_cmds_F77 \
14598 postinstall_cmds_F77 \
14599 postuninstall_cmds_F77 \
14600 old_archive_from_expsyms_cmds_F77 \
14601 allow_undefined_flag_F77 \
14602 no_undefined_flag_F77 \
14603 export_symbols_cmds_F77 \
14604 hardcode_libdir_flag_spec_F77 \
14605 hardcode_libdir_flag_spec_ld_F77 \
14606 hardcode_libdir_separator_F77 \
14607 hardcode_automatic_F77 \
14608 module_cmds_F77 \
14609 module_expsym_cmds_F77 \
14610 lt_cv_prog_compiler_c_o_F77 \
14611 exclude_expsyms_F77 \
14612 include_expsyms_F77; do
14613
14614 case $var in
14615 old_archive_cmds_F77 | \
14616 old_archive_from_new_cmds_F77 | \
14617 archive_cmds_F77 | \
14618 archive_expsym_cmds_F77 | \
14619 module_cmds_F77 | \
14620 module_expsym_cmds_F77 | \
14621 old_archive_from_expsyms_cmds_F77 | \
14622 export_symbols_cmds_F77 | \
14623 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14624 postinstall_cmds | postuninstall_cmds | \
14625 old_postinstall_cmds | old_postuninstall_cmds | \
14626 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14627 # Double-quote double-evaled strings.
14628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14629 ;;
14630 *)
14631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14632 ;;
14633 esac
14634 done
14635
14636 case $lt_echo in
14637 *'\$0 --fallback-echo"')
14638 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14639 ;;
14640 esac
14641
14642cfgfile="$ofile"
14643
14644 cat <<__EOF__ >> "$cfgfile"
14645# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14646
14647# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14648
14649# Shell to use when invoking shell scripts.
14650SHELL=$lt_SHELL
14651
14652# Whether or not to build shared libraries.
14653build_libtool_libs=$enable_shared
14654
14655# Whether or not to build static libraries.
14656build_old_libs=$enable_static
14657
14658# Whether or not to add -lc for building shared libraries.
14659build_libtool_need_lc=$archive_cmds_need_lc_F77
14660
14661# Whether or not to disallow shared libs when runtime libs are static
14662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14663
14664# Whether or not to optimize for fast installation.
14665fast_install=$enable_fast_install
14666
14667# The host system.
14668host_alias=$host_alias
14669host=$host
14670
14671# An echo program that does not interpret backslashes.
14672echo=$lt_echo
14673
14674# The archiver.
14675AR=$lt_AR
14676AR_FLAGS=$lt_AR_FLAGS
14677
14678# A C compiler.
14679LTCC=$lt_LTCC
14680
14681# A language-specific compiler.
14682CC=$lt_compiler_F77
14683
14684# Is the compiler the GNU C compiler?
14685with_gcc=$GCC_F77
14686
14687# An ERE matcher.
14688EGREP=$lt_EGREP
14689
14690# The linker used to build libraries.
14691LD=$lt_LD_F77
14692
14693# Whether we need hard or soft links.
14694LN_S=$lt_LN_S
14695
14696# A BSD-compatible nm program.
14697NM=$lt_NM
14698
14699# A symbol stripping program
14700STRIP=$STRIP
14701
14702# Used to examine libraries when file_magic_cmd begins "file"
14703MAGIC_CMD=$MAGIC_CMD
14704
14705# Used on cygwin: DLL creation program.
14706DLLTOOL="$DLLTOOL"
14707
14708# Used on cygwin: object dumper.
14709OBJDUMP="$OBJDUMP"
14710
14711# Used on cygwin: assembler.
14712AS="$AS"
14713
14714# The name of the directory that contains temporary libtool files.
14715objdir=$objdir
14716
14717# How to create reloadable object files.
14718reload_flag=$lt_reload_flag
14719reload_cmds=$lt_reload_cmds
14720
14721# How to pass a linker flag through the compiler.
14722wl=$lt_lt_prog_compiler_wl_F77
14723
14724# Object file suffix (normally "o").
14725objext="$ac_objext"
14726
14727# Old archive suffix (normally "a").
14728libext="$libext"
14729
14730# Shared library suffix (normally ".so").
14731shrext='$shrext'
14732
14733# Executable file suffix (normally "").
14734exeext="$exeext"
14735
14736# Additional compiler flags for building library objects.
14737pic_flag=$lt_lt_prog_compiler_pic_F77
14738pic_mode=$pic_mode
14739
14740# What is the maximum length of a command?
14741max_cmd_len=$lt_cv_sys_max_cmd_len
14742
14743# Does compiler simultaneously support -c and -o options?
14744compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14745
14746# Must we lock files when doing compilation ?
14747need_locks=$lt_need_locks
14748
14749# Do we need the lib prefix for modules?
14750need_lib_prefix=$need_lib_prefix
14751
14752# Do we need a version for libraries?
14753need_version=$need_version
14754
14755# Whether dlopen is supported.
14756dlopen_support=$enable_dlopen
14757
14758# Whether dlopen of programs is supported.
14759dlopen_self=$enable_dlopen_self
14760
14761# Whether dlopen of statically linked programs is supported.
14762dlopen_self_static=$enable_dlopen_self_static
14763
14764# Compiler flag to prevent dynamic linking.
14765link_static_flag=$lt_lt_prog_compiler_static_F77
14766
14767# Compiler flag to turn off builtin functions.
14768no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14769
14770# Compiler flag to allow reflexive dlopens.
14771export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14772
14773# Compiler flag to generate shared objects directly from archives.
14774whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14775
14776# Compiler flag to generate thread-safe objects.
14777thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14778
14779# Library versioning type.
14780version_type=$version_type
14781
14782# Format of library name prefix.
14783libname_spec=$lt_libname_spec
14784
14785# List of archive names. First name is the real one, the rest are links.
14786# The last name is the one that the linker finds with -lNAME.
14787library_names_spec=$lt_library_names_spec
14788
14789# The coded name of the library, if different from the real name.
14790soname_spec=$lt_soname_spec
14791
14792# Commands used to build and install an old-style archive.
14793RANLIB=$lt_RANLIB
14794old_archive_cmds=$lt_old_archive_cmds_F77
14795old_postinstall_cmds=$lt_old_postinstall_cmds
14796old_postuninstall_cmds=$lt_old_postuninstall_cmds
14797
14798# Create an old-style archive from a shared archive.
14799old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14800
14801# Create a temporary old-style archive to link instead of a shared archive.
14802old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14803
14804# Commands used to build and install a shared archive.
14805archive_cmds=$lt_archive_cmds_F77
14806archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14807postinstall_cmds=$lt_postinstall_cmds
14808postuninstall_cmds=$lt_postuninstall_cmds
14809
14810# Commands used to build a loadable module (assumed same as above if empty)
14811module_cmds=$lt_module_cmds_F77
14812module_expsym_cmds=$lt_module_expsym_cmds_F77
14813
14814# Commands to strip libraries.
14815old_striplib=$lt_old_striplib
14816striplib=$lt_striplib
14817
14818# Dependencies to place before the objects being linked to create a
14819# shared library.
14820predep_objects=$lt_predep_objects_F77
14821
14822# Dependencies to place after the objects being linked to create a
14823# shared library.
14824postdep_objects=$lt_postdep_objects_F77
14825
14826# Dependencies to place before the objects being linked to create a
14827# shared library.
14828predeps=$lt_predeps_F77
14829
14830# Dependencies to place after the objects being linked to create a
14831# shared library.
14832postdeps=$lt_postdeps_F77
14833
14834# The library search path used internally by the compiler when linking
14835# a shared library.
14836compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14837
14838# Method to check whether dependent libraries are shared objects.
14839deplibs_check_method=$lt_deplibs_check_method
14840
14841# Command to use when deplibs_check_method == file_magic.
14842file_magic_cmd=$lt_file_magic_cmd
14843
14844# Flag that allows shared libraries with undefined symbols to be built.
14845allow_undefined_flag=$lt_allow_undefined_flag_F77
14846
14847# Flag that forces no undefined symbols.
14848no_undefined_flag=$lt_no_undefined_flag_F77
14849
14850# Commands used to finish a libtool library installation in a directory.
14851finish_cmds=$lt_finish_cmds
14852
14853# Same as above, but a single script fragment to be evaled but not shown.
14854finish_eval=$lt_finish_eval
14855
14856# Take the output of nm and produce a listing of raw symbols and C names.
14857global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14858
14859# Transform the output of nm in a proper C declaration
14860global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14861
14862# Transform the output of nm in a C name address pair
14863global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14864
14865# This is the shared library runtime path variable.
14866runpath_var=$runpath_var
14867
14868# This is the shared library path variable.
14869shlibpath_var=$shlibpath_var
14870
14871# Is shlibpath searched before the hard-coded library search path?
14872shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14873
14874# How to hardcode a shared library path into an executable.
14875hardcode_action=$hardcode_action_F77
14876
14877# Whether we should hardcode library paths into libraries.
14878hardcode_into_libs=$hardcode_into_libs
14879
14880# Flag to hardcode \$libdir into a binary during linking.
14881# This must work even if \$libdir does not exist.
14882hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14883
14884# If ld is used when linking, flag to hardcode \$libdir into
14885# a binary during linking. This must work even if \$libdir does
14886# not exist.
14887hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14888
14889# Whether we need a single -rpath flag with a separated argument.
14890hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14891
14892# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14893# resulting binary.
14894hardcode_direct=$hardcode_direct_F77
14895
14896# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14897# resulting binary.
14898hardcode_minus_L=$hardcode_minus_L_F77
14899
14900# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14901# the resulting binary.
14902hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14903
14904# Set to yes if building a shared library automatically hardcodes DIR into the library
14905# and all subsequent libraries and executables linked against it.
14906hardcode_automatic=$hardcode_automatic_F77
14907
14908# Variables whose values should be saved in libtool wrapper scripts and
14909# restored at relink time.
14910variables_saved_for_relink="$variables_saved_for_relink"
14911
14912# Whether libtool must link a program against all its dependency libraries.
14913link_all_deplibs=$link_all_deplibs_F77
14914
14915# Compile-time system search path for libraries
14916sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14917
14918# Run-time system search path for libraries
14919sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14920
14921# Fix the shell variable \$srcfile for the compiler.
14922fix_srcfile_path="$fix_srcfile_path_F77"
14923
14924# Set to yes if exported symbols are required.
14925always_export_symbols=$always_export_symbols_F77
14926
14927# The commands to list exported symbols.
14928export_symbols_cmds=$lt_export_symbols_cmds_F77
14929
14930# The commands to extract the exported symbol list from a shared archive.
14931extract_expsyms_cmds=$lt_extract_expsyms_cmds
14932
14933# Symbols that should not be listed in the preloaded symbols.
14934exclude_expsyms=$lt_exclude_expsyms_F77
14935
14936# Symbols that must always be exported.
14937include_expsyms=$lt_include_expsyms_F77
14938
14939# ### END LIBTOOL TAG CONFIG: $tagname
14940
14941__EOF__
14942
14943
14944else
14945 # If there is no Makefile yet, we rely on a make rule to execute
14946 # `config.status --recheck' to rerun these tests and create the
14947 # libtool script then.
14948 test -f Makefile && make "$ltmain"
14949fi
14950
14951
14952ac_ext=c
14953ac_cpp='$CPP $CPPFLAGS'
14954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956ac_compiler_gnu=$ac_cv_c_compiler_gnu
14957
14958CC="$lt_save_CC"
14959
14960 else
14961 tagname=""
14962 fi
14963 ;;
14964
14965 GCJ)
14966 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14967
14968
14969
14970# Source file extension for Java test sources.
14971ac_ext=java
14972
14973# Object file extension for compiled Java test sources.
14974objext=o
14975objext_GCJ=$objext
14976
14977# Code to be used in simple compile tests
14978lt_simple_compile_test_code="class foo {}\n"
14979
14980# Code to be used in simple link tests
14981lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14982
14983# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14984
14985# If no C compiler was specified, use CC.
14986LTCC=${LTCC-"$CC"}
14987
14988# Allow CC to be a program name with arguments.
14989compiler=$CC
14990
14991
14992# Allow CC to be a program name with arguments.
14993lt_save_CC="$CC"
14994CC=${GCJ-"gcj"}
14995compiler=$CC
14996compiler_GCJ=$CC
14997
14998# GCJ did not exist at the time GCC didn't implicitly link libc in.
14999archive_cmds_need_lc_GCJ=no
15000
15001## CAVEAT EMPTOR:
15002## There is no encapsulation within the following macros, do not change
15003## the running order or otherwise move them around unless you know exactly
15004## what you are doing...
15005
15006lt_prog_compiler_no_builtin_flag_GCJ=
15007
15008if test "$GCC" = yes; then
15009 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15010
15011 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15012echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15013if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else
15016 lt_cv_prog_compiler_rtti_exceptions=no
15017 ac_outfile=conftest.$ac_objext
15018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15019 lt_compiler_flag="-fno-rtti -fno-exceptions"
15020 # Insert the option either (1) after the last *FLAGS variable, or
15021 # (2) before a word containing "conftest.", or (3) at the end.
15022 # Note that $ac_compile itself does not contain backslashes and begins
15023 # with a dollar sign (not a hyphen), so the echo should work correctly.
15024 # The option is referenced via a variable to avoid confusing sed.
15025 lt_compile=`echo "$ac_compile" | $SED \
15026 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15028 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000015029 (eval echo "\"\$as_me:15029: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015030 (eval "$lt_compile" 2>conftest.err)
15031 ac_status=$?
15032 cat conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000015033 echo "$as_me:15033: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015034 if (exit $ac_status) && test -s "$ac_outfile"; then
15035 # The compiler can only warn and ignore the option if not recognized
15036 # So say no if there are warnings
15037 if test ! -s conftest.err; then
15038 lt_cv_prog_compiler_rtti_exceptions=yes
15039 fi
15040 fi
15041 $rm conftest*
15042
15043fi
15044echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15045echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15046
15047if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15048 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15049else
15050 :
15051fi
15052
15053fi
15054
15055lt_prog_compiler_wl_GCJ=
15056lt_prog_compiler_pic_GCJ=
15057lt_prog_compiler_static_GCJ=
15058
15059echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15060echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15061
15062 if test "$GCC" = yes; then
15063 lt_prog_compiler_wl_GCJ='-Wl,'
15064 lt_prog_compiler_static_GCJ='-static'
15065
15066 case $host_os in
15067 aix*)
15068 # All AIX code is PIC.
15069 if test "$host_cpu" = ia64; then
15070 # AIX 5 now supports IA64 processor
15071 lt_prog_compiler_static_GCJ='-Bstatic'
15072 fi
15073 ;;
15074
15075 amigaos*)
15076 # FIXME: we need at least 68020 code to build shared libraries, but
15077 # adding the `-m68020' flag to GCC prevents building anything better,
15078 # like `-m68040'.
15079 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15080 ;;
15081
15082 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15083 # PIC is the default for these OSes.
15084 ;;
15085
15086 mingw* | pw32* | os2*)
15087 # This hack is so that the source file can tell whether it is being
15088 # built for inclusion in a dll (and should export symbols for example).
15089 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15090 ;;
15091
15092 darwin* | rhapsody*)
15093 # PIC is the default on this platform
15094 # Common symbols not allowed in MH_DYLIB files
15095 lt_prog_compiler_pic_GCJ='-fno-common'
15096 ;;
15097
15098 msdosdjgpp*)
15099 # Just because we use GCC doesn't mean we suddenly get shared libraries
15100 # on systems that don't support them.
15101 lt_prog_compiler_can_build_shared_GCJ=no
15102 enable_shared=no
15103 ;;
15104
15105 sysv4*MP*)
15106 if test -d /usr/nec; then
15107 lt_prog_compiler_pic_GCJ=-Kconform_pic
15108 fi
15109 ;;
15110
15111 hpux*)
15112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15113 # not for PA HP-UX.
15114 case "$host_cpu" in
15115 hppa*64*|ia64*)
15116 # +Z the default
15117 ;;
15118 *)
15119 lt_prog_compiler_pic_GCJ='-fPIC'
15120 ;;
15121 esac
15122 ;;
15123
15124 *)
15125 lt_prog_compiler_pic_GCJ='-fPIC'
15126 ;;
15127 esac
15128 else
15129 # PORTME Check for flag to pass linker flags through the system compiler.
15130 case $host_os in
15131 aix*)
15132 lt_prog_compiler_wl_GCJ='-Wl,'
15133 if test "$host_cpu" = ia64; then
15134 # AIX 5 now supports IA64 processor
15135 lt_prog_compiler_static_GCJ='-Bstatic'
15136 else
15137 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15138 fi
15139 ;;
15140
15141 mingw* | pw32* | os2*)
15142 # This hack is so that the source file can tell whether it is being
15143 # built for inclusion in a dll (and should export symbols for example).
15144 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15145 ;;
15146
15147 hpux9* | hpux10* | hpux11*)
15148 lt_prog_compiler_wl_GCJ='-Wl,'
15149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15150 # not for PA HP-UX.
15151 case "$host_cpu" in
15152 hppa*64*|ia64*)
15153 # +Z the default
15154 ;;
15155 *)
15156 lt_prog_compiler_pic_GCJ='+Z'
15157 ;;
15158 esac
15159 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15160 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15161 ;;
15162
15163 irix5* | irix6* | nonstopux*)
15164 lt_prog_compiler_wl_GCJ='-Wl,'
15165 # PIC (with -KPIC) is the default.
15166 lt_prog_compiler_static_GCJ='-non_shared'
15167 ;;
15168
15169 newsos6)
15170 lt_prog_compiler_pic_GCJ='-KPIC'
15171 lt_prog_compiler_static_GCJ='-Bstatic'
15172 ;;
15173
15174 linux*)
15175 case $CC in
15176 icc|ecc)
15177 lt_prog_compiler_wl_GCJ='-Wl,'
15178 lt_prog_compiler_pic_GCJ='-KPIC'
15179 lt_prog_compiler_static_GCJ='-static'
15180 ;;
15181 ccc)
15182 lt_prog_compiler_wl_GCJ='-Wl,'
15183 # All Alpha code is PIC.
15184 lt_prog_compiler_static_GCJ='-non_shared'
15185 ;;
15186 esac
15187 ;;
15188
15189 osf3* | osf4* | osf5*)
15190 lt_prog_compiler_wl_GCJ='-Wl,'
15191 # All OSF/1 code is PIC.
15192 lt_prog_compiler_static_GCJ='-non_shared'
15193 ;;
15194
15195 sco3.2v5*)
15196 lt_prog_compiler_pic_GCJ='-Kpic'
15197 lt_prog_compiler_static_GCJ='-dn'
15198 ;;
15199
15200 solaris*)
15201 lt_prog_compiler_wl_GCJ='-Wl,'
15202 lt_prog_compiler_pic_GCJ='-KPIC'
15203 lt_prog_compiler_static_GCJ='-Bstatic'
15204 ;;
15205
15206 sunos4*)
15207 lt_prog_compiler_wl_GCJ='-Qoption ld '
15208 lt_prog_compiler_pic_GCJ='-PIC'
15209 lt_prog_compiler_static_GCJ='-Bstatic'
15210 ;;
15211
15212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15213 lt_prog_compiler_wl_GCJ='-Wl,'
15214 lt_prog_compiler_pic_GCJ='-KPIC'
15215 lt_prog_compiler_static_GCJ='-Bstatic'
15216 ;;
15217
15218 sysv4*MP*)
15219 if test -d /usr/nec ;then
15220 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15221 lt_prog_compiler_static_GCJ='-Bstatic'
15222 fi
15223 ;;
15224
15225 uts4*)
15226 lt_prog_compiler_pic_GCJ='-pic'
15227 lt_prog_compiler_static_GCJ='-Bstatic'
15228 ;;
15229
15230 *)
15231 lt_prog_compiler_can_build_shared_GCJ=no
15232 ;;
15233 esac
15234 fi
15235
15236echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15237echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15238
15239#
15240# Check to make sure the PIC flag actually works.
15241#
15242if test -n "$lt_prog_compiler_pic_GCJ"; then
15243 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15244echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15245if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 lt_prog_compiler_pic_works_GCJ=no
15249 ac_outfile=conftest.$ac_objext
15250 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15251 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15252 # Insert the option either (1) after the last *FLAGS variable, or
15253 # (2) before a word containing "conftest.", or (3) at the end.
15254 # Note that $ac_compile itself does not contain backslashes and begins
15255 # with a dollar sign (not a hyphen), so the echo should work correctly.
15256 # The option is referenced via a variable to avoid confusing sed.
15257 lt_compile=`echo "$ac_compile" | $SED \
15258 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15260 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000015261 (eval echo "\"\$as_me:15261: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015262 (eval "$lt_compile" 2>conftest.err)
15263 ac_status=$?
15264 cat conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000015265 echo "$as_me:15265: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015266 if (exit $ac_status) && test -s "$ac_outfile"; then
15267 # The compiler can only warn and ignore the option if not recognized
15268 # So say no if there are warnings
15269 if test ! -s conftest.err; then
15270 lt_prog_compiler_pic_works_GCJ=yes
15271 fi
15272 fi
15273 $rm conftest*
15274
15275fi
15276echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15277echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15278
15279if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15280 case $lt_prog_compiler_pic_GCJ in
15281 "" | " "*) ;;
15282 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15283 esac
15284else
15285 lt_prog_compiler_pic_GCJ=
15286 lt_prog_compiler_can_build_shared_GCJ=no
15287fi
15288
15289fi
15290case "$host_os" in
15291 # For platforms which do not support PIC, -DPIC is meaningless:
15292 *djgpp*)
15293 lt_prog_compiler_pic_GCJ=
15294 ;;
15295 *)
15296 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15297 ;;
15298esac
15299
15300echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15301echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15302if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304else
15305 lt_cv_prog_compiler_c_o_GCJ=no
15306 $rm -r conftest 2>/dev/null
15307 mkdir conftest
15308 cd conftest
15309 mkdir out
15310 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15311
15312 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15313 # that will create temporary files in the current directory regardless of
15314 # the output directory. Thus, making CWD read-only will cause this test
15315 # to fail, enabling locking or at least warning the user not to do parallel
15316 # builds.
15317 chmod -w .
15318
15319 lt_compiler_flag="-o out/conftest2.$ac_objext"
15320 # Insert the option either (1) after the last *FLAGS variable, or
15321 # (2) before a word containing "conftest.", or (3) at the end.
15322 # Note that $ac_compile itself does not contain backslashes and begins
15323 # with a dollar sign (not a hyphen), so the echo should work correctly.
15324 lt_compile=`echo "$ac_compile" | $SED \
15325 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327 -e 's:$: $lt_compiler_flag:'`
John Criswell08acb9b2003-09-16 02:12:45 +000015328 (eval echo "\"\$as_me:15328: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015329 (eval "$lt_compile" 2>out/conftest.err)
15330 ac_status=$?
15331 cat out/conftest.err >&5
John Criswell08acb9b2003-09-16 02:12:45 +000015332 echo "$as_me:15332: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15334 then
15335 # The compiler can only warn and ignore the option if not recognized
15336 # So say no if there are warnings
15337 if test ! -s out/conftest.err; then
15338 lt_cv_prog_compiler_c_o_GCJ=yes
15339 fi
15340 fi
15341 chmod u+w .
15342 $rm conftest* out/*
15343 rmdir out
15344 cd ..
15345 rmdir conftest
15346 $rm conftest*
15347
15348fi
15349echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15351
15352
15353hard_links="nottested"
15354if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15355 # do not overwrite the value of need_locks provided by the user
15356 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15358 hard_links=yes
15359 $rm conftest*
15360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15361 touch conftest.a
15362 ln conftest.a conftest.b 2>&5 || hard_links=no
15363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15364 echo "$as_me:$LINENO: result: $hard_links" >&5
15365echo "${ECHO_T}$hard_links" >&6
15366 if test "$hard_links" = no; then
15367 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15369 need_locks=warn
15370 fi
15371else
15372 need_locks=no
15373fi
15374
15375echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15377
15378 runpath_var=
15379 allow_undefined_flag_GCJ=
15380 enable_shared_with_static_runtimes_GCJ=no
15381 archive_cmds_GCJ=
15382 archive_expsym_cmds_GCJ=
15383 old_archive_From_new_cmds_GCJ=
15384 old_archive_from_expsyms_cmds_GCJ=
15385 export_dynamic_flag_spec_GCJ=
15386 whole_archive_flag_spec_GCJ=
15387 thread_safe_flag_spec_GCJ=
15388 hardcode_libdir_flag_spec_GCJ=
15389 hardcode_libdir_flag_spec_ld_GCJ=
15390 hardcode_libdir_separator_GCJ=
15391 hardcode_direct_GCJ=no
15392 hardcode_minus_L_GCJ=no
15393 hardcode_shlibpath_var_GCJ=unsupported
15394 link_all_deplibs_GCJ=unknown
15395 hardcode_automatic_GCJ=no
15396 module_cmds_GCJ=
15397 module_expsym_cmds_GCJ=
15398 always_export_symbols_GCJ=no
15399 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15400 # include_expsyms should be a list of space-separated symbols to be *always*
15401 # included in the symbol list
15402 include_expsyms_GCJ=
15403 # exclude_expsyms can be an extended regexp of symbols to exclude
15404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15406 # as well as any symbol that contains `d'.
15407 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15409 # platforms (ab)use it in PIC code, but their linkers get confused if
15410 # the symbol is explicitly referenced. Since portable code cannot
15411 # rely on this symbol name, it's probably fine to never include it in
15412 # preloaded symbol tables.
15413 extract_expsyms_cmds=
15414
15415 case $host_os in
15416 cygwin* | mingw* | pw32*)
15417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15418 # When not using gcc, we currently assume that we are using
15419 # Microsoft Visual C++.
15420 if test "$GCC" != yes; then
15421 with_gnu_ld=no
15422 fi
15423 ;;
15424 openbsd*)
15425 with_gnu_ld=no
15426 ;;
15427 esac
15428
15429 ld_shlibs_GCJ=yes
15430 if test "$with_gnu_ld" = yes; then
15431 # If archive_cmds runs LD, not CC, wlarc should be empty
15432 wlarc='${wl}'
15433
15434 # See if GNU ld supports shared libraries.
15435 case $host_os in
15436 aix3* | aix4* | aix5*)
15437 # On AIX/PPC, the GNU linker is very broken
15438 if test "$host_cpu" != ia64; then
15439 ld_shlibs_GCJ=no
15440 cat <<EOF 1>&2
15441
15442*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15443*** to be unable to reliably create shared libraries on AIX.
15444*** Therefore, libtool is disabling shared libraries support. If you
15445*** really care for shared libraries, you may want to modify your PATH
15446*** so that a non-GNU linker is found, and then restart.
15447
15448EOF
15449 fi
15450 ;;
15451
15452 amigaos*)
15453 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)'
15454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15455 hardcode_minus_L_GCJ=yes
15456
15457 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15458 # that the semantics of dynamic libraries on AmigaOS, at least up
15459 # to version 4, is to share data among multiple programs linked
15460 # with the same dynamic library. Since this doesn't match the
15461 # behavior of shared libraries on other platforms, we can't use
15462 # them.
15463 ld_shlibs_GCJ=no
15464 ;;
15465
15466 beos*)
15467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15468 allow_undefined_flag_GCJ=unsupported
15469 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15470 # support --undefined. This deserves some investigation. FIXME
15471 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15472 else
15473 ld_shlibs_GCJ=no
15474 fi
15475 ;;
15476
15477 cygwin* | mingw* | pw32*)
15478 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15479 # as there is no search path for DLLs.
15480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15481 allow_undefined_flag_GCJ=unsupported
15482 always_export_symbols_GCJ=no
15483 enable_shared_with_static_runtimes_GCJ=yes
15484 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15485
15486 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15487 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15488 # If the export-symbols file already is a .def file (1st line
15489 # is EXPORTS), use it as is; otherwise, prepend...
15490 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15491 cp $export_symbols $output_objdir/$soname.def;
15492 else
15493 echo EXPORTS > $output_objdir/$soname.def;
15494 cat $export_symbols >> $output_objdir/$soname.def;
15495 fi~
15496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15497 else
15498 ld_shlibs=no
15499 fi
15500 ;;
15501
15502 netbsd*)
15503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15504 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15505 wlarc=
15506 else
15507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15509 fi
15510 ;;
15511
15512 solaris* | sysv5*)
15513 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15514 ld_shlibs_GCJ=no
15515 cat <<EOF 1>&2
15516
15517*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15518*** create shared libraries on Solaris systems. Therefore, libtool
15519*** is disabling shared libraries support. We urge you to upgrade GNU
15520*** binutils to release 2.9.1 or newer. Another option is to modify
15521*** your PATH or compiler configuration so that the native linker is
15522*** used, and then restart.
15523
15524EOF
15525 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15526 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15527 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15528 else
15529 ld_shlibs_GCJ=no
15530 fi
15531 ;;
15532
15533 sunos4*)
15534 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15535 wlarc=
15536 hardcode_direct_GCJ=yes
15537 hardcode_shlibpath_var_GCJ=no
15538 ;;
15539
15540 *)
15541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15544 else
15545 ld_shlibs_GCJ=no
15546 fi
15547 ;;
15548 esac
15549
15550 if test "$ld_shlibs_GCJ" = yes; then
15551 runpath_var=LD_RUN_PATH
15552 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15553 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15554 # ancient GNU ld didn't support --whole-archive et. al.
15555 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15556 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15557 else
15558 whole_archive_flag_spec_GCJ=
15559 fi
15560 fi
15561 else
15562 # PORTME fill in a description of your system's linker (not GNU ld)
15563 case $host_os in
15564 aix3*)
15565 allow_undefined_flag_GCJ=unsupported
15566 always_export_symbols_GCJ=yes
15567 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'
15568 # Note: this linker hardcodes the directories in LIBPATH if there
15569 # are no directories specified by -L.
15570 hardcode_minus_L_GCJ=yes
15571 if test "$GCC" = yes && test -z "$link_static_flag"; then
15572 # Neither direct hardcoding nor static linking is supported with a
15573 # broken collect2.
15574 hardcode_direct_GCJ=unsupported
15575 fi
15576 ;;
15577
15578 aix4* | aix5*)
15579 if test "$host_cpu" = ia64; then
15580 # On IA64, the linker does run time linking by default, so we don't
15581 # have to do anything special.
15582 aix_use_runtimelinking=no
15583 exp_sym_flag='-Bexport'
15584 no_entry_flag=""
15585 else
15586 # If we're using GNU nm, then we don't want the "-C" option.
15587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15588 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15589 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'
15590 else
15591 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'
15592 fi
15593 aix_use_runtimelinking=no
15594
15595 # Test if we are trying to use run time linking or normal
15596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15597 # need to do runtime linking.
15598 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15599 for ld_flag in $LDFLAGS; do
15600 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15601 aix_use_runtimelinking=yes
15602 break
15603 fi
15604 done
15605 esac
15606
15607 exp_sym_flag='-bexport'
15608 no_entry_flag='-bnoentry'
15609 fi
15610
15611 # When large executables or shared objects are built, AIX ld can
15612 # have problems creating the table of contents. If linking a library
15613 # or program results in "error TOC overflow" add -mminimal-toc to
15614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15616
15617 archive_cmds_GCJ=''
15618 hardcode_direct_GCJ=yes
15619 hardcode_libdir_separator_GCJ=':'
15620 link_all_deplibs_GCJ=yes
15621
15622 if test "$GCC" = yes; then
15623 case $host_os in aix4.012|aix4.012.*)
15624 # We only want to do this on AIX 4.2 and lower, the check
15625 # below for broken collect2 doesn't work under 4.3+
15626 collect2name=`${CC} -print-prog-name=collect2`
15627 if test -f "$collect2name" && \
15628 strings "$collect2name" | grep resolve_lib_name >/dev/null
15629 then
15630 # We have reworked collect2
15631 hardcode_direct_GCJ=yes
15632 else
15633 # We have old collect2
15634 hardcode_direct_GCJ=unsupported
15635 # It fails to find uninstalled libraries when the uninstalled
15636 # path is not listed in the libpath. Setting hardcode_minus_L
15637 # to unsupported forces relinking
15638 hardcode_minus_L_GCJ=yes
15639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640 hardcode_libdir_separator_GCJ=
15641 fi
15642 esac
15643 shared_flag='-shared'
15644 else
15645 # not using gcc
15646 if test "$host_cpu" = ia64; then
15647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15648 # chokes on -Wl,-G. The following line is correct:
15649 shared_flag='-G'
15650 else
15651 if test "$aix_use_runtimelinking" = yes; then
15652 shared_flag='${wl}-G'
15653 else
15654 shared_flag='${wl}-bM:SRE'
15655 fi
15656 fi
15657 fi
15658
15659 # It seems that -bexpall does not export symbols beginning with
15660 # underscore (_), so it is better to generate a list of symbols to export.
15661 always_export_symbols_GCJ=yes
15662 if test "$aix_use_runtimelinking" = yes; then
15663 # Warning - without using the other runtime loading flags (-brtl),
15664 # -berok will link without error, but may produce a broken library.
15665 allow_undefined_flag_GCJ='-berok'
15666 # Determine the default libpath from the value encoded in an empty executable.
15667 cat >conftest.$ac_ext <<_ACEOF
15668#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015674
John Criswell47fdd832003-07-14 16:52:07 +000015675int
15676main ()
15677{
15678
15679 ;
15680 return 0;
15681}
15682_ACEOF
15683rm -f conftest.$ac_objext conftest$ac_exeext
15684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -s conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695
15696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15697}'`
15698# Check for a 64-bit object if we didn't find anything.
15699if 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; }
15700}'`; fi
15701else
15702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015703sed 's/^/| /' conftest.$ac_ext >&5
15704
John Criswell47fdd832003-07-14 16:52:07 +000015705fi
15706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15708
15709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15710 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"
15711 else
15712 if test "$host_cpu" = ia64; then
15713 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15714 allow_undefined_flag_GCJ="-z nodefs"
15715 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"
15716 else
15717 # Determine the default libpath from the value encoded in an empty executable.
15718 cat >conftest.$ac_ext <<_ACEOF
15719#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015720/* confdefs.h. */
15721_ACEOF
15722cat confdefs.h >>conftest.$ac_ext
15723cat >>conftest.$ac_ext <<_ACEOF
15724/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015725
John Criswell47fdd832003-07-14 16:52:07 +000015726int
15727main ()
15728{
15729
15730 ;
15731 return 0;
15732}
15733_ACEOF
15734rm -f conftest.$ac_objext conftest$ac_exeext
15735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736 (eval $ac_link) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -s conftest$ac_exeext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746
15747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15748}'`
15749# Check for a 64-bit object if we didn't find anything.
15750if 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; }
15751}'`; fi
15752else
15753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015754sed 's/^/| /' conftest.$ac_ext >&5
15755
John Criswell47fdd832003-07-14 16:52:07 +000015756fi
15757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15758if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15759
15760 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15761 # Warning - without using the other run time loading flags,
15762 # -berok will link without error, but may produce a broken library.
15763 no_undefined_flag_GCJ=' ${wl}-bernotok'
15764 allow_undefined_flag_GCJ=' ${wl}-berok'
15765 # -bexpall does not export symbols beginning with underscore (_)
15766 always_export_symbols_GCJ=yes
15767 # Exported symbols can be pulled into shared objects from archives
15768 whole_archive_flag_spec_GCJ=' '
15769 archive_cmds_need_lc_GCJ=yes
15770 # This is similar to how AIX traditionally builds it's shared libraries.
15771 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'
15772 fi
15773 fi
15774 ;;
15775
15776 amigaos*)
15777 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)'
15778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15779 hardcode_minus_L_GCJ=yes
15780 # see comment about different semantics on the GNU ld section
15781 ld_shlibs_GCJ=no
15782 ;;
15783
15784 bsdi4*)
15785 export_dynamic_flag_spec_GCJ=-rdynamic
15786 ;;
15787
15788 cygwin* | mingw* | pw32*)
15789 # When not using gcc, we currently assume that we are using
15790 # Microsoft Visual C++.
15791 # hardcode_libdir_flag_spec is actually meaningless, as there is
15792 # no search path for DLLs.
15793 hardcode_libdir_flag_spec_GCJ=' '
15794 allow_undefined_flag_GCJ=unsupported
15795 # Tell ltmain to make .lib files, not .a files.
15796 libext=lib
15797 # Tell ltmain to make .dll files, not .so files.
15798 shrext=".dll"
15799 # FIXME: Setting linknames here is a bad hack.
15800 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15801 # The linker will automatically build a .lib file if we build a DLL.
15802 old_archive_From_new_cmds_GCJ='true'
15803 # FIXME: Should let the user specify the lib program.
15804 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15805 fix_srcfile_path='`cygpath -w "$srcfile"`'
15806 enable_shared_with_static_runtimes_GCJ=yes
15807 ;;
15808
15809 darwin* | rhapsody*)
15810 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15811 archive_cmds_need_lc_GCJ=no
15812 case "$host_os" in
15813 rhapsody* | darwin1.[012])
15814 allow_undefined_flag_GCJ='-undefined suppress'
15815 ;;
15816 *) # Darwin 1.3 on
15817 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15818 ;;
15819 esac
15820 # FIXME: Relying on posixy $() will cause problems for
15821 # cross-compilation, but unfortunately the echo tests do not
15822 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15823 # `"' quotes if we put them in here... so don't!
15824 lt_int_apple_cc_single_mod=no
15825 output_verbose_link_cmd='echo'
15826 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15827 lt_int_apple_cc_single_mod=yes
15828 fi
15829 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15830 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15831 else
15832 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'
15833 fi
15834 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15836 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15837 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}'
15838 else
15839 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}'
15840 fi
15841 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}'
15842 hardcode_direct_GCJ=no
15843 hardcode_automatic_GCJ=yes
15844 hardcode_shlibpath_var_GCJ=unsupported
15845 whole_archive_flag_spec_GCJ='-all_load $convenience'
15846 link_all_deplibs_GCJ=yes
15847 fi
15848 ;;
15849
15850 dgux*)
15851 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15853 hardcode_shlibpath_var_GCJ=no
15854 ;;
15855
15856 freebsd1*)
15857 ld_shlibs_GCJ=no
15858 ;;
15859
15860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15861 # support. Future versions do this automatically, but an explicit c++rt0.o
15862 # does not break anything, and helps significantly (at the cost of a little
15863 # extra space).
15864 freebsd2.2*)
15865 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15866 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15867 hardcode_direct_GCJ=yes
15868 hardcode_shlibpath_var_GCJ=no
15869 ;;
15870
15871 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15872 freebsd2*)
15873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_direct_GCJ=yes
15875 hardcode_minus_L_GCJ=yes
15876 hardcode_shlibpath_var_GCJ=no
15877 ;;
15878
15879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15880 freebsd*)
15881 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15882 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15883 hardcode_direct_GCJ=yes
15884 hardcode_shlibpath_var_GCJ=no
15885 ;;
15886
15887 hpux9*)
15888 if test "$GCC" = yes; then
15889 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'
15890 else
15891 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'
15892 fi
15893 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15894 hardcode_libdir_separator_GCJ=:
15895 hardcode_direct_GCJ=yes
15896
15897 # hardcode_minus_L: Not really in the search PATH,
15898 # but as the default location of the library.
15899 hardcode_minus_L_GCJ=yes
15900 export_dynamic_flag_spec_GCJ='${wl}-E'
15901 ;;
15902
15903 hpux10* | hpux11*)
15904 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15905 case "$host_cpu" in
15906 hppa*64*|ia64*)
15907 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 ;;
15909 *)
15910 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15911 ;;
15912 esac
15913 else
15914 case "$host_cpu" in
15915 hppa*64*|ia64*)
15916 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 ;;
15918 *)
15919 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15920 ;;
15921 esac
15922 fi
15923 if test "$with_gnu_ld" = no; then
15924 case "$host_cpu" in
15925 hppa*64*)
15926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15927 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15928 hardcode_libdir_separator_GCJ=:
15929 hardcode_direct_GCJ=no
15930 hardcode_shlibpath_var_GCJ=no
15931 ;;
15932 ia64*)
15933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15934 hardcode_direct_GCJ=no
15935 hardcode_shlibpath_var_GCJ=no
15936
15937 # hardcode_minus_L: Not really in the search PATH,
15938 # but as the default location of the library.
15939 hardcode_minus_L_GCJ=yes
15940 ;;
15941 *)
15942 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15943 hardcode_libdir_separator_GCJ=:
15944 hardcode_direct_GCJ=yes
15945 export_dynamic_flag_spec_GCJ='${wl}-E'
15946
15947 # hardcode_minus_L: Not really in the search PATH,
15948 # but as the default location of the library.
15949 hardcode_minus_L_GCJ=yes
15950 ;;
15951 esac
15952 fi
15953 ;;
15954
15955 irix5* | irix6* | nonstopux*)
15956 if test "$GCC" = yes; then
15957 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'
15958 else
15959 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'
15960 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15961 fi
15962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15963 hardcode_libdir_separator_GCJ=:
15964 link_all_deplibs_GCJ=yes
15965 ;;
15966
15967 netbsd*)
15968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15970 else
15971 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15972 fi
15973 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15974 hardcode_direct_GCJ=yes
15975 hardcode_shlibpath_var_GCJ=no
15976 ;;
15977
15978 newsos6)
15979 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct_GCJ=yes
15981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15982 hardcode_libdir_separator_GCJ=:
15983 hardcode_shlibpath_var_GCJ=no
15984 ;;
15985
15986 openbsd*)
15987 hardcode_direct_GCJ=yes
15988 hardcode_shlibpath_var_GCJ=no
15989 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15990 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15992 export_dynamic_flag_spec_GCJ='${wl}-E'
15993 else
15994 case $host_os in
15995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15998 ;;
15999 *)
16000 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16001 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16002 ;;
16003 esac
16004 fi
16005 ;;
16006
16007 os2*)
16008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16009 hardcode_minus_L_GCJ=yes
16010 allow_undefined_flag_GCJ=unsupported
16011 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'
16012 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16013 ;;
16014
16015 osf3*)
16016 if test "$GCC" = yes; then
16017 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16018 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'
16019 else
16020 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16021 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'
16022 fi
16023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16024 hardcode_libdir_separator_GCJ=:
16025 ;;
16026
16027 osf4* | osf5*) # as osf3* with the addition of -msym flag
16028 if test "$GCC" = yes; then
16029 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16030 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'
16031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16032 else
16033 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16034 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'
16035 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~
16036 $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'
16037
16038 # Both c and cxx compiler support -rpath directly
16039 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16040 fi
16041 hardcode_libdir_separator_GCJ=:
16042 ;;
16043
16044 sco3.2v5*)
16045 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_shlibpath_var_GCJ=no
16047 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16048 runpath_var=LD_RUN_PATH
16049 hardcode_runpath_var=yes
16050 ;;
16051
16052 solaris*)
16053 no_undefined_flag_GCJ=' -z text'
16054 if test "$GCC" = yes; then
16055 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16056 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16057 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16058 else
16059 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16062 fi
16063 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16064 hardcode_shlibpath_var_GCJ=no
16065 case $host_os in
16066 solaris2.[0-5] | solaris2.[0-5].*) ;;
16067 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16068 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16069 esac
16070 link_all_deplibs_GCJ=yes
16071 ;;
16072
16073 sunos4*)
16074 if test "x$host_vendor" = xsequent; then
16075 # Use $CC to link under sequent, because it throws in some extra .o
16076 # files that make .init and .fini sections work.
16077 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16078 else
16079 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16080 fi
16081 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16082 hardcode_direct_GCJ=yes
16083 hardcode_minus_L_GCJ=yes
16084 hardcode_shlibpath_var_GCJ=no
16085 ;;
16086
16087 sysv4)
16088 case $host_vendor in
16089 sni)
16090 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16091 hardcode_direct_GCJ=yes # is this really true???
16092 ;;
16093 siemens)
16094 ## LD is ld it makes a PLAMLIB
16095 ## CC just makes a GrossModule.
16096 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16097 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16098 hardcode_direct_GCJ=no
16099 ;;
16100 motorola)
16101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16103 ;;
16104 esac
16105 runpath_var='LD_RUN_PATH'
16106 hardcode_shlibpath_var_GCJ=no
16107 ;;
16108
16109 sysv4.3*)
16110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_shlibpath_var_GCJ=no
16112 export_dynamic_flag_spec_GCJ='-Bexport'
16113 ;;
16114
16115 sysv4*MP*)
16116 if test -d /usr/nec; then
16117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16118 hardcode_shlibpath_var_GCJ=no
16119 runpath_var=LD_RUN_PATH
16120 hardcode_runpath_var=yes
16121 ld_shlibs_GCJ=yes
16122 fi
16123 ;;
16124
16125 sysv4.2uw2*)
16126 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_direct_GCJ=yes
16128 hardcode_minus_L_GCJ=no
16129 hardcode_shlibpath_var_GCJ=no
16130 hardcode_runpath_var=yes
16131 runpath_var=LD_RUN_PATH
16132 ;;
16133
16134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16135 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16136 if test "$GCC" = yes; then
16137 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 else
16139 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 fi
16141 runpath_var='LD_RUN_PATH'
16142 hardcode_shlibpath_var_GCJ=no
16143 ;;
16144
16145 sysv5*)
16146 no_undefined_flag_GCJ=' -z text'
16147 # $CC -shared without GNU ld will not create a library from C++
16148 # object files and a static libstdc++, better avoid it by now
16149 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16152 hardcode_libdir_flag_spec_GCJ=
16153 hardcode_shlibpath_var_GCJ=no
16154 runpath_var='LD_RUN_PATH'
16155 ;;
16156
16157 uts4*)
16158 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16160 hardcode_shlibpath_var_GCJ=no
16161 ;;
16162
16163 *)
16164 ld_shlibs_GCJ=no
16165 ;;
16166 esac
16167 fi
16168
16169echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16170echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16171test "$ld_shlibs_GCJ" = no && can_build_shared=no
16172
16173variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16174if test "$GCC" = yes; then
16175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16176fi
16177
16178#
16179# Do we need to explicitly link libc?
16180#
16181case "x$archive_cmds_need_lc_GCJ" in
16182x|xyes)
16183 # Assume -lc should be added
16184 archive_cmds_need_lc_GCJ=yes
16185
16186 if test "$enable_shared" = yes && test "$GCC" = yes; then
16187 case $archive_cmds_GCJ in
16188 *'~'*)
16189 # FIXME: we may have to deal with multi-command sequences.
16190 ;;
16191 '$CC '*)
16192 # Test whether the compiler implicitly links with -lc since on some
16193 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16194 # to ld, don't add -lc before -lgcc.
16195 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16197 $rm conftest*
16198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16199
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } 2>conftest.err; then
16205 soname=conftest
16206 lib=conftest
16207 libobjs=conftest.$ac_objext
16208 deplibs=
16209 wl=$lt_prog_compiler_wl_GCJ
16210 compiler_flags=-v
16211 linker_flags=-v
16212 verstring=
16213 output_objdir=.
16214 libname=conftest
16215 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16216 allow_undefined_flag_GCJ=
16217 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16218 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }
16222 then
16223 archive_cmds_need_lc_GCJ=no
16224 else
16225 archive_cmds_need_lc_GCJ=yes
16226 fi
16227 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16228 else
16229 cat conftest.err 1>&5
16230 fi
16231 $rm conftest*
16232 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16233echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16234 ;;
16235 esac
16236 fi
16237 ;;
16238esac
16239
16240echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16241echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16242hardcode_action_GCJ=
16243if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16244 test -n "$runpath_var GCJ" || \
16245 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16246
16247 # We can hardcode non-existant directories.
16248 if test "$hardcode_direct_GCJ" != no &&
16249 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16250 # have to relink, otherwise we might link with an installed library
16251 # when we should be linking with a yet-to-be-installed one
16252 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16253 test "$hardcode_minus_L_GCJ" != no; then
16254 # Linking always hardcodes the temporary library directory.
16255 hardcode_action_GCJ=relink
16256 else
16257 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16258 hardcode_action_GCJ=immediate
16259 fi
16260else
16261 # We cannot hardcode anything, or else we can only hardcode existing
16262 # directories.
16263 hardcode_action_GCJ=unsupported
16264fi
16265echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16266echo "${ECHO_T}$hardcode_action_GCJ" >&6
16267
16268if test "$hardcode_action_GCJ" = relink; then
16269 # Fast installation is not supported
16270 enable_fast_install=no
16271elif test "$shlibpath_overrides_runpath" = yes ||
16272 test "$enable_shared" = no; then
16273 # Fast installation is not necessary
16274 enable_fast_install=needless
16275fi
16276
16277striplib=
16278old_striplib=
16279echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16280echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16281if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16282 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16283 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16284 echo "$as_me:$LINENO: result: yes" >&5
16285echo "${ECHO_T}yes" >&6
16286else
16287# FIXME - insert some real tests, host_os isn't really good enough
16288 case $host_os in
16289 darwin*)
16290 if test -n "$STRIP" ; then
16291 striplib="$STRIP -x"
16292 echo "$as_me:$LINENO: result: yes" >&5
16293echo "${ECHO_T}yes" >&6
16294 else
16295 echo "$as_me:$LINENO: result: no" >&5
16296echo "${ECHO_T}no" >&6
16297fi
16298 ;;
16299 *)
16300 echo "$as_me:$LINENO: result: no" >&5
16301echo "${ECHO_T}no" >&6
16302 ;;
16303 esac
16304fi
16305
16306echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16307echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16308library_names_spec=
16309libname_spec='lib$name'
16310soname_spec=
16311shrext=".so"
16312postinstall_cmds=
16313postuninstall_cmds=
16314finish_cmds=
16315finish_eval=
16316shlibpath_var=
16317shlibpath_overrides_runpath=unknown
16318version_type=none
16319dynamic_linker="$host_os ld.so"
16320sys_lib_dlsearch_path_spec="/lib /usr/lib"
16321if test "$GCC" = yes; then
16322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16323 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16324 # if the path contains ";" then we assume it to be the separator
16325 # otherwise default to the standard path separator (i.e. ":") - it is
16326 # assumed that no part of a normal pathname contains ";" but that should
16327 # okay in the real world where ";" in dirpaths is itself problematic.
16328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16329 else
16330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16331 fi
16332else
16333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16334fi
16335need_lib_prefix=unknown
16336hardcode_into_libs=no
16337
16338# when you set need_version to no, make sure it does not cause -set_version
16339# flags to be left without arguments
16340need_version=unknown
16341
16342case $host_os in
16343aix3*)
16344 version_type=linux
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16346 shlibpath_var=LIBPATH
16347
16348 # AIX 3 has no versioning support, so we append a major version to the name.
16349 soname_spec='${libname}${release}${shared_ext}$major'
16350 ;;
16351
16352aix4* | aix5*)
16353 version_type=linux
16354 need_lib_prefix=no
16355 need_version=no
16356 hardcode_into_libs=yes
16357 if test "$host_cpu" = ia64; then
16358 # AIX 5 supports IA64
16359 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 else
16362 # With GCC up to 2.95.x, collect2 would create an import file
16363 # for dependence libraries. The import file would start with
16364 # the line `#! .'. This would cause the generated library to
16365 # depend on `.', always an invalid library. This was fixed in
16366 # development snapshots of GCC prior to 3.0.
16367 case $host_os in
16368 aix4 | aix4.[01] | aix4.[01].*)
16369 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16370 echo ' yes '
16371 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16372 :
16373 else
16374 can_build_shared=no
16375 fi
16376 ;;
16377 esac
16378 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16379 # soname into executable. Probably we can add versioning support to
16380 # collect2, so additional links can be useful in future.
16381 if test "$aix_use_runtimelinking" = yes; then
16382 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16383 # instead of lib<name>.a to let people know that these are not
16384 # typical AIX shared libraries.
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 else
16387 # We preserve .a as extension for shared libraries through AIX4.2
16388 # and later when we are not doing run time linking.
16389 library_names_spec='${libname}${release}.a $libname.a'
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 fi
16392 shlibpath_var=LIBPATH
16393 fi
16394 ;;
16395
16396amigaos*)
16397 library_names_spec='$libname.ixlibrary $libname.a'
16398 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16399 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'
16400 ;;
16401
16402beos*)
16403 library_names_spec='${libname}${shared_ext}'
16404 dynamic_linker="$host_os ld.so"
16405 shlibpath_var=LIBRARY_PATH
16406 ;;
16407
16408bsdi4*)
16409 version_type=linux
16410 need_version=no
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 soname_spec='${libname}${release}${shared_ext}$major'
16413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16417 # the default ld.so.conf also contains /usr/contrib/lib and
16418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16419 # libtool to hard-code these into programs
16420 ;;
16421
16422cygwin* | mingw* | pw32*)
16423 version_type=windows
16424 shrext=".dll"
16425 need_version=no
16426 need_lib_prefix=no
16427
16428 case $GCC,$host_os in
16429 yes,cygwin* | yes,mingw* | yes,pw32*)
16430 library_names_spec='$libname.dll.a'
16431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16432 postinstall_cmds='base_file=`basename \${file}`~
16433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16434 dldir=$destdir/`dirname \$dlpath`~
16435 test -d \$dldir || mkdir -p \$dldir~
16436 $install_prog $dir/$dlname \$dldir/$dlname'
16437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16438 dlpath=$dir/\$dldll~
16439 $rm \$dlpath'
16440 shlibpath_overrides_runpath=yes
16441
16442 case $host_os in
16443 cygwin*)
16444 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16446 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16447 ;;
16448 mingw*)
16449 # MinGW DLLs use traditional 'lib' prefix
16450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16452 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16453 # It is most probably a Windows format PATH printed by
16454 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16455 # path with ; separators, and with drive letters. We can handle the
16456 # drive letters (cygwin fileutils understands them), so leave them,
16457 # especially as we might pass files found there to a mingw objdump,
16458 # which wouldn't understand a cygwinified path. Ahh.
16459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16460 else
16461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16462 fi
16463 ;;
16464 pw32*)
16465 # pw32 DLLs use 'pw' prefix rather than 'lib'
16466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16467 ;;
16468 esac
16469 ;;
16470
16471 *)
16472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16473 ;;
16474 esac
16475 dynamic_linker='Win32 ld.exe'
16476 # FIXME: first we should search . and the directory the executable is in
16477 shlibpath_var=PATH
16478 ;;
16479
16480darwin* | rhapsody*)
16481 dynamic_linker="$host_os dyld"
16482 version_type=darwin
16483 need_lib_prefix=no
16484 need_version=no
16485 # FIXME: Relying on posixy $() will cause problems for
16486 # cross-compilation, but unfortunately the echo tests do not
16487 # yet detect zsh echo's removal of \ escapes.
16488 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16489 soname_spec='${libname}${release}${major}$shared_ext'
16490 shlibpath_overrides_runpath=yes
16491 shlibpath_var=DYLD_LIBRARY_PATH
16492 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16493 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16494 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16495 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"`
16496 fi
16497 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16498 ;;
16499
16500dgux*)
16501 version_type=linux
16502 need_lib_prefix=no
16503 need_version=no
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 ;;
16508
16509freebsd1*)
16510 dynamic_linker=no
16511 ;;
16512
16513freebsd*)
16514 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16515 version_type=freebsd-$objformat
16516 case $version_type in
16517 freebsd-elf*)
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16519 need_version=no
16520 need_lib_prefix=no
16521 ;;
16522 freebsd-*)
16523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16524 need_version=yes
16525 ;;
16526 esac
16527 shlibpath_var=LD_LIBRARY_PATH
16528 case $host_os in
16529 freebsd2*)
16530 shlibpath_overrides_runpath=yes
16531 ;;
16532 freebsd3.01* | freebsdelf3.01*)
16533 shlibpath_overrides_runpath=yes
16534 hardcode_into_libs=yes
16535 ;;
16536 *) # from 3.2 on
16537 shlibpath_overrides_runpath=no
16538 hardcode_into_libs=yes
16539 ;;
16540 esac
16541 ;;
16542
16543gnu*)
16544 version_type=linux
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 hardcode_into_libs=yes
16551 ;;
16552
16553hpux9* | hpux10* | hpux11*)
16554 # Give a soname corresponding to the major version so that dld.sl refuses to
16555 # link against other versions.
16556 version_type=sunos
16557 need_lib_prefix=no
16558 need_version=no
16559 case "$host_cpu" in
16560 ia64*)
16561 shrext='.so'
16562 hardcode_into_libs=yes
16563 dynamic_linker="$host_os dld.so"
16564 shlibpath_var=LD_LIBRARY_PATH
16565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 if test "X$HPUX_IA64_MODE" = X32; then
16569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16570 else
16571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16572 fi
16573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16574 ;;
16575 hppa*64*)
16576 shrext='.sl'
16577 hardcode_into_libs=yes
16578 dynamic_linker="$host_os dld.sl"
16579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16585 ;;
16586 *)
16587 shrext='.sl'
16588 dynamic_linker="$host_os dld.sl"
16589 shlibpath_var=SHLIB_PATH
16590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16592 soname_spec='${libname}${release}${shared_ext}$major'
16593 ;;
16594 esac
16595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16596 postinstall_cmds='chmod 555 $lib'
16597 ;;
16598
16599irix5* | irix6* | nonstopux*)
16600 case $host_os in
16601 nonstopux*) version_type=nonstopux ;;
16602 *)
16603 if test "$lt_cv_prog_gnu_ld" = yes; then
16604 version_type=linux
16605 else
16606 version_type=irix
16607 fi ;;
16608 esac
16609 need_lib_prefix=no
16610 need_version=no
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16613 case $host_os in
16614 irix5* | nonstopux*)
16615 libsuff= shlibsuff=
16616 ;;
16617 *)
16618 case $LD in # libtool.m4 will add one of these switches to LD
16619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16620 libsuff= shlibsuff= libmagic=32-bit;;
16621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16622 libsuff=32 shlibsuff=N32 libmagic=N32;;
16623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16625 *) libsuff= shlibsuff= libmagic=never-match;;
16626 esac
16627 ;;
16628 esac
16629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16630 shlibpath_overrides_runpath=no
16631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16633 hardcode_into_libs=yes
16634 ;;
16635
16636# No shared lib support for Linux oldld, aout, or coff.
16637linux*oldld* | linux*aout* | linux*coff*)
16638 dynamic_linker=no
16639 ;;
16640
16641# This must be Linux ELF.
16642linux*)
16643 version_type=linux
16644 need_lib_prefix=no
16645 need_version=no
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16647 soname_spec='${libname}${release}${shared_ext}$major'
16648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16649 shlibpath_var=LD_LIBRARY_PATH
16650 shlibpath_overrides_runpath=no
16651 # This implies no fast_install, which is unacceptable.
16652 # Some rework will be needed to allow for fast_install
16653 # before this can be enabled.
16654 hardcode_into_libs=yes
16655
16656 # We used to test for /lib/ld.so.1 and disable shared libraries on
16657 # powerpc, because MkLinux only supported shared libraries with the
16658 # GNU dynamic linker. Since this was broken with cross compilers,
16659 # most powerpc-linux boxes support dynamic linking these days and
16660 # people can always --disable-shared, the test was removed, and we
16661 # assume the GNU/Linux dynamic linker is in use.
16662 dynamic_linker='GNU/Linux ld.so'
16663 ;;
16664
16665netbsd*)
16666 version_type=sunos
16667 need_lib_prefix=no
16668 need_version=no
16669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16672 dynamic_linker='NetBSD (a.out) ld.so'
16673 else
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16675 soname_spec='${libname}${release}${shared_ext}$major'
16676 dynamic_linker='NetBSD ld.elf_so'
16677 fi
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes
16680 hardcode_into_libs=yes
16681 ;;
16682
16683newsos6)
16684 version_type=linux
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686 shlibpath_var=LD_LIBRARY_PATH
16687 shlibpath_overrides_runpath=yes
16688 ;;
16689
16690nto-qnx)
16691 version_type=linux
16692 need_lib_prefix=no
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16698 ;;
16699
16700openbsd*)
16701 version_type=sunos
16702 need_lib_prefix=no
16703 need_version=no
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16706 shlibpath_var=LD_LIBRARY_PATH
16707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16708 case $host_os in
16709 openbsd2.[89] | openbsd2.[89].*)
16710 shlibpath_overrides_runpath=no
16711 ;;
16712 *)
16713 shlibpath_overrides_runpath=yes
16714 ;;
16715 esac
16716 else
16717 shlibpath_overrides_runpath=yes
16718 fi
16719 ;;
16720
16721os2*)
16722 libname_spec='$name'
16723 shrext=".dll"
16724 need_lib_prefix=no
16725 library_names_spec='$libname${shared_ext} $libname.a'
16726 dynamic_linker='OS/2 ld.exe'
16727 shlibpath_var=LIBPATH
16728 ;;
16729
16730osf3* | osf4* | osf5*)
16731 version_type=osf
16732 need_lib_prefix=no
16733 need_version=no
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16736 shlibpath_var=LD_LIBRARY_PATH
16737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16739 ;;
16740
16741sco3.2v5*)
16742 version_type=osf
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 ;;
16747
16748solaris*)
16749 version_type=linux
16750 need_lib_prefix=no
16751 need_version=no
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16756 hardcode_into_libs=yes
16757 # ldd complains unless libraries are executable
16758 postinstall_cmds='chmod +x $lib'
16759 ;;
16760
16761sunos4*)
16762 version_type=sunos
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16764 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 shlibpath_overrides_runpath=yes
16767 if test "$with_gnu_ld" = yes; then
16768 need_lib_prefix=no
16769 fi
16770 need_version=yes
16771 ;;
16772
16773sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16774 version_type=linux
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776 soname_spec='${libname}${release}${shared_ext}$major'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 case $host_vendor in
16779 sni)
16780 shlibpath_overrides_runpath=no
16781 need_lib_prefix=no
16782 export_dynamic_flag_spec='${wl}-Blargedynsym'
16783 runpath_var=LD_RUN_PATH
16784 ;;
16785 siemens)
16786 need_lib_prefix=no
16787 ;;
16788 motorola)
16789 need_lib_prefix=no
16790 need_version=no
16791 shlibpath_overrides_runpath=no
16792 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16793 ;;
16794 esac
16795 ;;
16796
16797sysv4*MP*)
16798 if test -d /usr/nec ;then
16799 version_type=linux
16800 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16801 soname_spec='$libname${shared_ext}.$major'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 fi
16804 ;;
16805
16806uts4*)
16807 version_type=linux
16808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16809 soname_spec='${libname}${release}${shared_ext}$major'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 ;;
16812
16813*)
16814 dynamic_linker=no
16815 ;;
16816esac
16817echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16818echo "${ECHO_T}$dynamic_linker" >&6
16819test "$dynamic_linker" = no && can_build_shared=no
16820
16821if test "x$enable_dlopen" != xyes; then
16822 enable_dlopen=unknown
16823 enable_dlopen_self=unknown
16824 enable_dlopen_self_static=unknown
16825else
16826 lt_cv_dlopen=no
16827 lt_cv_dlopen_libs=
16828
16829 case $host_os in
16830 beos*)
16831 lt_cv_dlopen="load_add_on"
16832 lt_cv_dlopen_libs=
16833 lt_cv_dlopen_self=yes
16834 ;;
16835
16836 mingw* | pw32*)
16837 lt_cv_dlopen="LoadLibrary"
16838 lt_cv_dlopen_libs=
16839 ;;
16840
16841 cygwin*)
16842 lt_cv_dlopen="dlopen"
16843 lt_cv_dlopen_libs=
16844 ;;
16845
16846 darwin*)
16847 # if libdl is installed we need to link against it
16848 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16849echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16850if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852else
16853 ac_check_lib_save_LIBS=$LIBS
16854LIBS="-ldl $LIBS"
16855cat >conftest.$ac_ext <<_ACEOF
16856#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016857/* confdefs.h. */
16858_ACEOF
16859cat confdefs.h >>conftest.$ac_ext
16860cat >>conftest.$ac_ext <<_ACEOF
16861/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016862
16863/* Override any gcc2 internal prototype to avoid an error. */
16864#ifdef __cplusplus
16865extern "C"
16866#endif
16867/* We use char because int might match the return type of a gcc2
16868 builtin and then its argument prototype would still apply. */
16869char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016870int
16871main ()
16872{
16873dlopen ();
16874 ;
16875 return 0;
16876}
16877_ACEOF
16878rm -f conftest.$ac_objext conftest$ac_exeext
16879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_cv_lib_dl_dlopen=yes
16891else
16892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016893sed 's/^/| /' conftest.$ac_ext >&5
16894
John Criswell47fdd832003-07-14 16:52:07 +000016895ac_cv_lib_dl_dlopen=no
16896fi
16897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16898LIBS=$ac_check_lib_save_LIBS
16899fi
16900echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16901echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16902if test $ac_cv_lib_dl_dlopen = yes; then
16903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16904else
16905
16906 lt_cv_dlopen="dyld"
16907 lt_cv_dlopen_libs=
16908 lt_cv_dlopen_self=yes
16909
16910fi
16911
16912 ;;
16913
16914 *)
16915 echo "$as_me:$LINENO: checking for shl_load" >&5
16916echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16917if test "${ac_cv_func_shl_load+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16919else
16920 cat >conftest.$ac_ext <<_ACEOF
16921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016922/* confdefs.h. */
16923_ACEOF
16924cat confdefs.h >>conftest.$ac_ext
16925cat >>conftest.$ac_ext <<_ACEOF
16926/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016927/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016928 which can conflict with char shl_load (); below.
16929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16930 <limits.h> exists even on freestanding compilers. */
16931#ifdef __STDC__
16932# include <limits.h>
16933#else
16934# include <assert.h>
16935#endif
John Criswell47fdd832003-07-14 16:52:07 +000016936/* Override any gcc2 internal prototype to avoid an error. */
16937#ifdef __cplusplus
16938extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016939{
John Criswell47fdd832003-07-14 16:52:07 +000016940#endif
16941/* We use char because int might match the return type of a gcc2
16942 builtin and then its argument prototype would still apply. */
16943char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016944/* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947#if defined (__stub_shl_load) || defined (__stub___shl_load)
16948choke me
16949#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016950char (*f) () = shl_load;
16951#endif
16952#ifdef __cplusplus
16953}
John Criswell47fdd832003-07-14 16:52:07 +000016954#endif
16955
John Criswell0c38eaf2003-09-10 15:17:25 +000016956int
16957main ()
16958{
16959return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016960 ;
16961 return 0;
16962}
16963_ACEOF
16964rm -f conftest.$ac_objext conftest$ac_exeext
16965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16966 (eval $ac_link) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -s conftest$ac_exeext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_cv_func_shl_load=yes
16977else
16978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016979sed 's/^/| /' conftest.$ac_ext >&5
16980
John Criswell47fdd832003-07-14 16:52:07 +000016981ac_cv_func_shl_load=no
16982fi
16983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16984fi
16985echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16986echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16987if test $ac_cv_func_shl_load = yes; then
16988 lt_cv_dlopen="shl_load"
16989else
16990 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16991echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16992if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16994else
16995 ac_check_lib_save_LIBS=$LIBS
16996LIBS="-ldld $LIBS"
16997cat >conftest.$ac_ext <<_ACEOF
16998#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016999/* confdefs.h. */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017004
17005/* Override any gcc2 internal prototype to avoid an error. */
17006#ifdef __cplusplus
17007extern "C"
17008#endif
17009/* We use char because int might match the return type of a gcc2
17010 builtin and then its argument prototype would still apply. */
17011char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017012int
17013main ()
17014{
17015shl_load ();
17016 ;
17017 return 0;
17018}
17019_ACEOF
17020rm -f conftest.$ac_objext conftest$ac_exeext
17021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022 (eval $ac_link) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032 ac_cv_lib_dld_shl_load=yes
17033else
17034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017035sed 's/^/| /' conftest.$ac_ext >&5
17036
John Criswell47fdd832003-07-14 16:52:07 +000017037ac_cv_lib_dld_shl_load=no
17038fi
17039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17040LIBS=$ac_check_lib_save_LIBS
17041fi
17042echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17043echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17044if test $ac_cv_lib_dld_shl_load = yes; then
17045 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17046else
17047 echo "$as_me:$LINENO: checking for dlopen" >&5
17048echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17049if test "${ac_cv_func_dlopen+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 cat >conftest.$ac_ext <<_ACEOF
17053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017054/* confdefs.h. */
17055_ACEOF
17056cat confdefs.h >>conftest.$ac_ext
17057cat >>conftest.$ac_ext <<_ACEOF
17058/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017059/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017060 which can conflict with char dlopen (); below.
17061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062 <limits.h> exists even on freestanding compilers. */
17063#ifdef __STDC__
17064# include <limits.h>
17065#else
17066# include <assert.h>
17067#endif
John Criswell47fdd832003-07-14 16:52:07 +000017068/* Override any gcc2 internal prototype to avoid an error. */
17069#ifdef __cplusplus
17070extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017071{
John Criswell47fdd832003-07-14 16:52:07 +000017072#endif
17073/* We use char because int might match the return type of a gcc2
17074 builtin and then its argument prototype would still apply. */
17075char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017076/* The GNU C library defines this for functions which it implements
17077 to always fail with ENOSYS. Some functions are actually named
17078 something starting with __ and the normal name is an alias. */
17079#if defined (__stub_dlopen) || defined (__stub___dlopen)
17080choke me
17081#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017082char (*f) () = dlopen;
17083#endif
17084#ifdef __cplusplus
17085}
John Criswell47fdd832003-07-14 16:52:07 +000017086#endif
17087
John Criswell0c38eaf2003-09-10 15:17:25 +000017088int
17089main ()
17090{
17091return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017092 ;
17093 return 0;
17094}
17095_ACEOF
17096rm -f conftest.$ac_objext conftest$ac_exeext
17097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17098 (eval $ac_link) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -s conftest$ac_exeext'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; }; then
17108 ac_cv_func_dlopen=yes
17109else
17110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017111sed 's/^/| /' conftest.$ac_ext >&5
17112
John Criswell47fdd832003-07-14 16:52:07 +000017113ac_cv_func_dlopen=no
17114fi
17115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17116fi
17117echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17118echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17119if test $ac_cv_func_dlopen = yes; then
17120 lt_cv_dlopen="dlopen"
17121else
17122 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17123echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17124if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127 ac_check_lib_save_LIBS=$LIBS
17128LIBS="-ldl $LIBS"
17129cat >conftest.$ac_ext <<_ACEOF
17130#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017136
17137/* Override any gcc2 internal prototype to avoid an error. */
17138#ifdef __cplusplus
17139extern "C"
17140#endif
17141/* We use char because int might match the return type of a gcc2
17142 builtin and then its argument prototype would still apply. */
17143char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017144int
17145main ()
17146{
17147dlopen ();
17148 ;
17149 return 0;
17150}
17151_ACEOF
17152rm -f conftest.$ac_objext conftest$ac_exeext
17153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154 (eval $ac_link) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_lib_dl_dlopen=yes
17165else
17166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017167sed 's/^/| /' conftest.$ac_ext >&5
17168
John Criswell47fdd832003-07-14 16:52:07 +000017169ac_cv_lib_dl_dlopen=no
17170fi
17171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17172LIBS=$ac_check_lib_save_LIBS
17173fi
17174echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17175echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17176if test $ac_cv_lib_dl_dlopen = yes; then
17177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17178else
17179 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17180echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17181if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17183else
17184 ac_check_lib_save_LIBS=$LIBS
17185LIBS="-lsvld $LIBS"
17186cat >conftest.$ac_ext <<_ACEOF
17187#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017188/* confdefs.h. */
17189_ACEOF
17190cat confdefs.h >>conftest.$ac_ext
17191cat >>conftest.$ac_ext <<_ACEOF
17192/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017193
17194/* Override any gcc2 internal prototype to avoid an error. */
17195#ifdef __cplusplus
17196extern "C"
17197#endif
17198/* We use char because int might match the return type of a gcc2
17199 builtin and then its argument prototype would still apply. */
17200char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017201int
17202main ()
17203{
17204dlopen ();
17205 ;
17206 return 0;
17207}
17208_ACEOF
17209rm -f conftest.$ac_objext conftest$ac_exeext
17210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211 (eval $ac_link) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; }; then
17221 ac_cv_lib_svld_dlopen=yes
17222else
17223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017224sed 's/^/| /' conftest.$ac_ext >&5
17225
John Criswell47fdd832003-07-14 16:52:07 +000017226ac_cv_lib_svld_dlopen=no
17227fi
17228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17229LIBS=$ac_check_lib_save_LIBS
17230fi
17231echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17232echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17233if test $ac_cv_lib_svld_dlopen = yes; then
17234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17235else
17236 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17237echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17238if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17239 echo $ECHO_N "(cached) $ECHO_C" >&6
17240else
17241 ac_check_lib_save_LIBS=$LIBS
17242LIBS="-ldld $LIBS"
17243cat >conftest.$ac_ext <<_ACEOF
17244#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017245/* confdefs.h. */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017250
17251/* Override any gcc2 internal prototype to avoid an error. */
17252#ifdef __cplusplus
17253extern "C"
17254#endif
17255/* We use char because int might match the return type of a gcc2
17256 builtin and then its argument prototype would still apply. */
17257char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017258int
17259main ()
17260{
17261dld_link ();
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266rm -f conftest.$ac_objext conftest$ac_exeext
17267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_lib_dld_dld_link=yes
17279else
17280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017281sed 's/^/| /' conftest.$ac_ext >&5
17282
John Criswell47fdd832003-07-14 16:52:07 +000017283ac_cv_lib_dld_dld_link=no
17284fi
17285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17286LIBS=$ac_check_lib_save_LIBS
17287fi
17288echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17289echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17290if test $ac_cv_lib_dld_dld_link = yes; then
17291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17292fi
17293
17294
17295fi
17296
17297
17298fi
17299
17300
17301fi
17302
17303
17304fi
17305
17306
17307fi
17308
17309 ;;
17310 esac
17311
17312 if test "x$lt_cv_dlopen" != xno; then
17313 enable_dlopen=yes
17314 else
17315 enable_dlopen=no
17316 fi
17317
17318 case $lt_cv_dlopen in
17319 dlopen)
17320 save_CPPFLAGS="$CPPFLAGS"
17321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17322
17323 save_LDFLAGS="$LDFLAGS"
17324 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17325
17326 save_LIBS="$LIBS"
17327 LIBS="$lt_cv_dlopen_libs $LIBS"
17328
17329 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17330echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17331if test "${lt_cv_dlopen_self+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333else
17334 if test "$cross_compiling" = yes; then :
17335 lt_cv_dlopen_self=cross
17336else
17337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17338 lt_status=$lt_dlunknown
17339 cat > conftest.$ac_ext <<EOF
John Criswell08acb9b2003-09-16 02:12:45 +000017340#line 17340 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017341#include "confdefs.h"
17342
17343#if HAVE_DLFCN_H
17344#include <dlfcn.h>
17345#endif
17346
17347#include <stdio.h>
17348
17349#ifdef RTLD_GLOBAL
17350# define LT_DLGLOBAL RTLD_GLOBAL
17351#else
17352# ifdef DL_GLOBAL
17353# define LT_DLGLOBAL DL_GLOBAL
17354# else
17355# define LT_DLGLOBAL 0
17356# endif
17357#endif
17358
17359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17360 find out it does not work in some platform. */
17361#ifndef LT_DLLAZY_OR_NOW
17362# ifdef RTLD_LAZY
17363# define LT_DLLAZY_OR_NOW RTLD_LAZY
17364# else
17365# ifdef DL_LAZY
17366# define LT_DLLAZY_OR_NOW DL_LAZY
17367# else
17368# ifdef RTLD_NOW
17369# define LT_DLLAZY_OR_NOW RTLD_NOW
17370# else
17371# ifdef DL_NOW
17372# define LT_DLLAZY_OR_NOW DL_NOW
17373# else
17374# define LT_DLLAZY_OR_NOW 0
17375# endif
17376# endif
17377# endif
17378# endif
17379#endif
17380
17381#ifdef __cplusplus
17382extern "C" void exit (int);
17383#endif
17384
17385void fnord() { int i=42;}
17386int main ()
17387{
17388 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17389 int status = $lt_dlunknown;
17390
17391 if (self)
17392 {
17393 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17394 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17395 /* dlclose (self); */
17396 }
17397
17398 exit (status);
17399}
17400EOF
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402 (eval $ac_link) 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17406 (./conftest; exit; ) 2>/dev/null
17407 lt_status=$?
17408 case x$lt_status in
17409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17411 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17412 esac
17413 else :
17414 # compilation failed
17415 lt_cv_dlopen_self=no
17416 fi
17417fi
17418rm -fr conftest*
17419
17420
17421fi
17422echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17423echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17424
17425 if test "x$lt_cv_dlopen_self" = xyes; then
17426 LDFLAGS="$LDFLAGS $link_static_flag"
17427 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17428echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17429if test "${lt_cv_dlopen_self_static+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17431else
17432 if test "$cross_compiling" = yes; then :
17433 lt_cv_dlopen_self_static=cross
17434else
17435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17436 lt_status=$lt_dlunknown
17437 cat > conftest.$ac_ext <<EOF
John Criswell08acb9b2003-09-16 02:12:45 +000017438#line 17438 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017439#include "confdefs.h"
17440
17441#if HAVE_DLFCN_H
17442#include <dlfcn.h>
17443#endif
17444
17445#include <stdio.h>
17446
17447#ifdef RTLD_GLOBAL
17448# define LT_DLGLOBAL RTLD_GLOBAL
17449#else
17450# ifdef DL_GLOBAL
17451# define LT_DLGLOBAL DL_GLOBAL
17452# else
17453# define LT_DLGLOBAL 0
17454# endif
17455#endif
17456
17457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17458 find out it does not work in some platform. */
17459#ifndef LT_DLLAZY_OR_NOW
17460# ifdef RTLD_LAZY
17461# define LT_DLLAZY_OR_NOW RTLD_LAZY
17462# else
17463# ifdef DL_LAZY
17464# define LT_DLLAZY_OR_NOW DL_LAZY
17465# else
17466# ifdef RTLD_NOW
17467# define LT_DLLAZY_OR_NOW RTLD_NOW
17468# else
17469# ifdef DL_NOW
17470# define LT_DLLAZY_OR_NOW DL_NOW
17471# else
17472# define LT_DLLAZY_OR_NOW 0
17473# endif
17474# endif
17475# endif
17476# endif
17477#endif
17478
17479#ifdef __cplusplus
17480extern "C" void exit (int);
17481#endif
17482
17483void fnord() { int i=42;}
17484int main ()
17485{
17486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17487 int status = $lt_dlunknown;
17488
17489 if (self)
17490 {
17491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17492 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17493 /* dlclose (self); */
17494 }
17495
17496 exit (status);
17497}
17498EOF
17499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17500 (eval $ac_link) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17504 (./conftest; exit; ) 2>/dev/null
17505 lt_status=$?
17506 case x$lt_status in
17507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17509 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17510 esac
17511 else :
17512 # compilation failed
17513 lt_cv_dlopen_self_static=no
17514 fi
17515fi
17516rm -fr conftest*
17517
17518
17519fi
17520echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17521echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17522 fi
17523
17524 CPPFLAGS="$save_CPPFLAGS"
17525 LDFLAGS="$save_LDFLAGS"
17526 LIBS="$save_LIBS"
17527 ;;
17528 esac
17529
17530 case $lt_cv_dlopen_self in
17531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17532 *) enable_dlopen_self=unknown ;;
17533 esac
17534
17535 case $lt_cv_dlopen_self_static in
17536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17537 *) enable_dlopen_self_static=unknown ;;
17538 esac
17539fi
17540
17541
17542# The else clause should only fire when bootstrapping the
17543# libtool distribution, otherwise you forgot to ship ltmain.sh
17544# with your package, and you will get complaints that there are
17545# no rules to generate ltmain.sh.
17546if test -f "$ltmain"; then
17547 # See if we are running on zsh, and set the options which allow our commands through
17548 # without removal of \ escapes.
17549 if test -n "${ZSH_VERSION+set}" ; then
17550 setopt NO_GLOB_SUBST
17551 fi
17552 # Now quote all the things that may contain metacharacters while being
17553 # careful not to overquote the AC_SUBSTed values. We take copies of the
17554 # variables and quote the copies for generation of the libtool script.
17555 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17558 deplibs_check_method reload_flag reload_cmds need_locks \
17559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17560 lt_cv_sys_global_symbol_to_c_name_address \
17561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17562 old_postinstall_cmds old_postuninstall_cmds \
17563 compiler_GCJ \
17564 CC_GCJ \
17565 LD_GCJ \
17566 lt_prog_compiler_wl_GCJ \
17567 lt_prog_compiler_pic_GCJ \
17568 lt_prog_compiler_static_GCJ \
17569 lt_prog_compiler_no_builtin_flag_GCJ \
17570 export_dynamic_flag_spec_GCJ \
17571 thread_safe_flag_spec_GCJ \
17572 whole_archive_flag_spec_GCJ \
17573 enable_shared_with_static_runtimes_GCJ \
17574 old_archive_cmds_GCJ \
17575 old_archive_from_new_cmds_GCJ \
17576 predep_objects_GCJ \
17577 postdep_objects_GCJ \
17578 predeps_GCJ \
17579 postdeps_GCJ \
17580 compiler_lib_search_path_GCJ \
17581 archive_cmds_GCJ \
17582 archive_expsym_cmds_GCJ \
17583 postinstall_cmds_GCJ \
17584 postuninstall_cmds_GCJ \
17585 old_archive_from_expsyms_cmds_GCJ \
17586 allow_undefined_flag_GCJ \
17587 no_undefined_flag_GCJ \
17588 export_symbols_cmds_GCJ \
17589 hardcode_libdir_flag_spec_GCJ \
17590 hardcode_libdir_flag_spec_ld_GCJ \
17591 hardcode_libdir_separator_GCJ \
17592 hardcode_automatic_GCJ \
17593 module_cmds_GCJ \
17594 module_expsym_cmds_GCJ \
17595 lt_cv_prog_compiler_c_o_GCJ \
17596 exclude_expsyms_GCJ \
17597 include_expsyms_GCJ; do
17598
17599 case $var in
17600 old_archive_cmds_GCJ | \
17601 old_archive_from_new_cmds_GCJ | \
17602 archive_cmds_GCJ | \
17603 archive_expsym_cmds_GCJ | \
17604 module_cmds_GCJ | \
17605 module_expsym_cmds_GCJ | \
17606 old_archive_from_expsyms_cmds_GCJ | \
17607 export_symbols_cmds_GCJ | \
17608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17609 postinstall_cmds | postuninstall_cmds | \
17610 old_postinstall_cmds | old_postuninstall_cmds | \
17611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17612 # Double-quote double-evaled strings.
17613 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17614 ;;
17615 *)
17616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17617 ;;
17618 esac
17619 done
17620
17621 case $lt_echo in
17622 *'\$0 --fallback-echo"')
17623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17624 ;;
17625 esac
17626
17627cfgfile="$ofile"
17628
17629 cat <<__EOF__ >> "$cfgfile"
17630# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17631
17632# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17633
17634# Shell to use when invoking shell scripts.
17635SHELL=$lt_SHELL
17636
17637# Whether or not to build shared libraries.
17638build_libtool_libs=$enable_shared
17639
17640# Whether or not to build static libraries.
17641build_old_libs=$enable_static
17642
17643# Whether or not to add -lc for building shared libraries.
17644build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17645
17646# Whether or not to disallow shared libs when runtime libs are static
17647allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17648
17649# Whether or not to optimize for fast installation.
17650fast_install=$enable_fast_install
17651
17652# The host system.
17653host_alias=$host_alias
17654host=$host
17655
17656# An echo program that does not interpret backslashes.
17657echo=$lt_echo
17658
17659# The archiver.
17660AR=$lt_AR
17661AR_FLAGS=$lt_AR_FLAGS
17662
17663# A C compiler.
17664LTCC=$lt_LTCC
17665
17666# A language-specific compiler.
17667CC=$lt_compiler_GCJ
17668
17669# Is the compiler the GNU C compiler?
17670with_gcc=$GCC_GCJ
17671
17672# An ERE matcher.
17673EGREP=$lt_EGREP
17674
17675# The linker used to build libraries.
17676LD=$lt_LD_GCJ
17677
17678# Whether we need hard or soft links.
17679LN_S=$lt_LN_S
17680
17681# A BSD-compatible nm program.
17682NM=$lt_NM
17683
17684# A symbol stripping program
17685STRIP=$STRIP
17686
17687# Used to examine libraries when file_magic_cmd begins "file"
17688MAGIC_CMD=$MAGIC_CMD
17689
17690# Used on cygwin: DLL creation program.
17691DLLTOOL="$DLLTOOL"
17692
17693# Used on cygwin: object dumper.
17694OBJDUMP="$OBJDUMP"
17695
17696# Used on cygwin: assembler.
17697AS="$AS"
17698
17699# The name of the directory that contains temporary libtool files.
17700objdir=$objdir
17701
17702# How to create reloadable object files.
17703reload_flag=$lt_reload_flag
17704reload_cmds=$lt_reload_cmds
17705
17706# How to pass a linker flag through the compiler.
17707wl=$lt_lt_prog_compiler_wl_GCJ
17708
17709# Object file suffix (normally "o").
17710objext="$ac_objext"
17711
17712# Old archive suffix (normally "a").
17713libext="$libext"
17714
17715# Shared library suffix (normally ".so").
17716shrext='$shrext'
17717
17718# Executable file suffix (normally "").
17719exeext="$exeext"
17720
17721# Additional compiler flags for building library objects.
17722pic_flag=$lt_lt_prog_compiler_pic_GCJ
17723pic_mode=$pic_mode
17724
17725# What is the maximum length of a command?
17726max_cmd_len=$lt_cv_sys_max_cmd_len
17727
17728# Does compiler simultaneously support -c and -o options?
17729compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17730
17731# Must we lock files when doing compilation ?
17732need_locks=$lt_need_locks
17733
17734# Do we need the lib prefix for modules?
17735need_lib_prefix=$need_lib_prefix
17736
17737# Do we need a version for libraries?
17738need_version=$need_version
17739
17740# Whether dlopen is supported.
17741dlopen_support=$enable_dlopen
17742
17743# Whether dlopen of programs is supported.
17744dlopen_self=$enable_dlopen_self
17745
17746# Whether dlopen of statically linked programs is supported.
17747dlopen_self_static=$enable_dlopen_self_static
17748
17749# Compiler flag to prevent dynamic linking.
17750link_static_flag=$lt_lt_prog_compiler_static_GCJ
17751
17752# Compiler flag to turn off builtin functions.
17753no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17754
17755# Compiler flag to allow reflexive dlopens.
17756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17757
17758# Compiler flag to generate shared objects directly from archives.
17759whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17760
17761# Compiler flag to generate thread-safe objects.
17762thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17763
17764# Library versioning type.
17765version_type=$version_type
17766
17767# Format of library name prefix.
17768libname_spec=$lt_libname_spec
17769
17770# List of archive names. First name is the real one, the rest are links.
17771# The last name is the one that the linker finds with -lNAME.
17772library_names_spec=$lt_library_names_spec
17773
17774# The coded name of the library, if different from the real name.
17775soname_spec=$lt_soname_spec
17776
17777# Commands used to build and install an old-style archive.
17778RANLIB=$lt_RANLIB
17779old_archive_cmds=$lt_old_archive_cmds_GCJ
17780old_postinstall_cmds=$lt_old_postinstall_cmds
17781old_postuninstall_cmds=$lt_old_postuninstall_cmds
17782
17783# Create an old-style archive from a shared archive.
17784old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17785
17786# Create a temporary old-style archive to link instead of a shared archive.
17787old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17788
17789# Commands used to build and install a shared archive.
17790archive_cmds=$lt_archive_cmds_GCJ
17791archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17792postinstall_cmds=$lt_postinstall_cmds
17793postuninstall_cmds=$lt_postuninstall_cmds
17794
17795# Commands used to build a loadable module (assumed same as above if empty)
17796module_cmds=$lt_module_cmds_GCJ
17797module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17798
17799# Commands to strip libraries.
17800old_striplib=$lt_old_striplib
17801striplib=$lt_striplib
17802
17803# Dependencies to place before the objects being linked to create a
17804# shared library.
17805predep_objects=$lt_predep_objects_GCJ
17806
17807# Dependencies to place after the objects being linked to create a
17808# shared library.
17809postdep_objects=$lt_postdep_objects_GCJ
17810
17811# Dependencies to place before the objects being linked to create a
17812# shared library.
17813predeps=$lt_predeps_GCJ
17814
17815# Dependencies to place after the objects being linked to create a
17816# shared library.
17817postdeps=$lt_postdeps_GCJ
17818
17819# The library search path used internally by the compiler when linking
17820# a shared library.
17821compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17822
17823# Method to check whether dependent libraries are shared objects.
17824deplibs_check_method=$lt_deplibs_check_method
17825
17826# Command to use when deplibs_check_method == file_magic.
17827file_magic_cmd=$lt_file_magic_cmd
17828
17829# Flag that allows shared libraries with undefined symbols to be built.
17830allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17831
17832# Flag that forces no undefined symbols.
17833no_undefined_flag=$lt_no_undefined_flag_GCJ
17834
17835# Commands used to finish a libtool library installation in a directory.
17836finish_cmds=$lt_finish_cmds
17837
17838# Same as above, but a single script fragment to be evaled but not shown.
17839finish_eval=$lt_finish_eval
17840
17841# Take the output of nm and produce a listing of raw symbols and C names.
17842global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17843
17844# Transform the output of nm in a proper C declaration
17845global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17846
17847# Transform the output of nm in a C name address pair
17848global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17849
17850# This is the shared library runtime path variable.
17851runpath_var=$runpath_var
17852
17853# This is the shared library path variable.
17854shlibpath_var=$shlibpath_var
17855
17856# Is shlibpath searched before the hard-coded library search path?
17857shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17858
17859# How to hardcode a shared library path into an executable.
17860hardcode_action=$hardcode_action_GCJ
17861
17862# Whether we should hardcode library paths into libraries.
17863hardcode_into_libs=$hardcode_into_libs
17864
17865# Flag to hardcode \$libdir into a binary during linking.
17866# This must work even if \$libdir does not exist.
17867hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17868
17869# If ld is used when linking, flag to hardcode \$libdir into
17870# a binary during linking. This must work even if \$libdir does
17871# not exist.
17872hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17873
17874# Whether we need a single -rpath flag with a separated argument.
17875hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17876
17877# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17878# resulting binary.
17879hardcode_direct=$hardcode_direct_GCJ
17880
17881# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17882# resulting binary.
17883hardcode_minus_L=$hardcode_minus_L_GCJ
17884
17885# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17886# the resulting binary.
17887hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17888
17889# Set to yes if building a shared library automatically hardcodes DIR into the library
17890# and all subsequent libraries and executables linked against it.
17891hardcode_automatic=$hardcode_automatic_GCJ
17892
17893# Variables whose values should be saved in libtool wrapper scripts and
17894# restored at relink time.
17895variables_saved_for_relink="$variables_saved_for_relink"
17896
17897# Whether libtool must link a program against all its dependency libraries.
17898link_all_deplibs=$link_all_deplibs_GCJ
17899
17900# Compile-time system search path for libraries
17901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17902
17903# Run-time system search path for libraries
17904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17905
17906# Fix the shell variable \$srcfile for the compiler.
17907fix_srcfile_path="$fix_srcfile_path_GCJ"
17908
17909# Set to yes if exported symbols are required.
17910always_export_symbols=$always_export_symbols_GCJ
17911
17912# The commands to list exported symbols.
17913export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17914
17915# The commands to extract the exported symbol list from a shared archive.
17916extract_expsyms_cmds=$lt_extract_expsyms_cmds
17917
17918# Symbols that should not be listed in the preloaded symbols.
17919exclude_expsyms=$lt_exclude_expsyms_GCJ
17920
17921# Symbols that must always be exported.
17922include_expsyms=$lt_include_expsyms_GCJ
17923
17924# ### END LIBTOOL TAG CONFIG: $tagname
17925
17926__EOF__
17927
17928
17929else
17930 # If there is no Makefile yet, we rely on a make rule to execute
17931 # `config.status --recheck' to rerun these tests and create the
17932 # libtool script then.
17933 test -f Makefile && make "$ltmain"
17934fi
17935
17936
17937ac_ext=c
17938ac_cpp='$CPP $CPPFLAGS'
17939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941ac_compiler_gnu=$ac_cv_c_compiler_gnu
17942
17943CC="$lt_save_CC"
17944
17945 else
17946 tagname=""
17947 fi
17948 ;;
17949
17950 RC)
17951
17952
17953
17954# Source file extension for RC test sources.
17955ac_ext=rc
17956
17957# Object file extension for compiled RC test sources.
17958objext=o
17959objext_RC=$objext
17960
17961# Code to be used in simple compile tests
17962lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17963
17964# Code to be used in simple link tests
17965lt_simple_link_test_code="$lt_simple_compile_test_code"
17966
17967# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17968
17969# If no C compiler was specified, use CC.
17970LTCC=${LTCC-"$CC"}
17971
17972# Allow CC to be a program name with arguments.
17973compiler=$CC
17974
17975
17976# Allow CC to be a program name with arguments.
17977lt_save_CC="$CC"
17978CC=${RC-"windres"}
17979compiler=$CC
17980compiler_RC=$CC
17981lt_cv_prog_compiler_c_o_RC=yes
17982
17983# The else clause should only fire when bootstrapping the
17984# libtool distribution, otherwise you forgot to ship ltmain.sh
17985# with your package, and you will get complaints that there are
17986# no rules to generate ltmain.sh.
17987if test -f "$ltmain"; then
17988 # See if we are running on zsh, and set the options which allow our commands through
17989 # without removal of \ escapes.
17990 if test -n "${ZSH_VERSION+set}" ; then
17991 setopt NO_GLOB_SUBST
17992 fi
17993 # Now quote all the things that may contain metacharacters while being
17994 # careful not to overquote the AC_SUBSTed values. We take copies of the
17995 # variables and quote the copies for generation of the libtool script.
17996 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17999 deplibs_check_method reload_flag reload_cmds need_locks \
18000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18001 lt_cv_sys_global_symbol_to_c_name_address \
18002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18003 old_postinstall_cmds old_postuninstall_cmds \
18004 compiler_RC \
18005 CC_RC \
18006 LD_RC \
18007 lt_prog_compiler_wl_RC \
18008 lt_prog_compiler_pic_RC \
18009 lt_prog_compiler_static_RC \
18010 lt_prog_compiler_no_builtin_flag_RC \
18011 export_dynamic_flag_spec_RC \
18012 thread_safe_flag_spec_RC \
18013 whole_archive_flag_spec_RC \
18014 enable_shared_with_static_runtimes_RC \
18015 old_archive_cmds_RC \
18016 old_archive_from_new_cmds_RC \
18017 predep_objects_RC \
18018 postdep_objects_RC \
18019 predeps_RC \
18020 postdeps_RC \
18021 compiler_lib_search_path_RC \
18022 archive_cmds_RC \
18023 archive_expsym_cmds_RC \
18024 postinstall_cmds_RC \
18025 postuninstall_cmds_RC \
18026 old_archive_from_expsyms_cmds_RC \
18027 allow_undefined_flag_RC \
18028 no_undefined_flag_RC \
18029 export_symbols_cmds_RC \
18030 hardcode_libdir_flag_spec_RC \
18031 hardcode_libdir_flag_spec_ld_RC \
18032 hardcode_libdir_separator_RC \
18033 hardcode_automatic_RC \
18034 module_cmds_RC \
18035 module_expsym_cmds_RC \
18036 lt_cv_prog_compiler_c_o_RC \
18037 exclude_expsyms_RC \
18038 include_expsyms_RC; do
18039
18040 case $var in
18041 old_archive_cmds_RC | \
18042 old_archive_from_new_cmds_RC | \
18043 archive_cmds_RC | \
18044 archive_expsym_cmds_RC | \
18045 module_cmds_RC | \
18046 module_expsym_cmds_RC | \
18047 old_archive_from_expsyms_cmds_RC | \
18048 export_symbols_cmds_RC | \
18049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18050 postinstall_cmds | postuninstall_cmds | \
18051 old_postinstall_cmds | old_postuninstall_cmds | \
18052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18053 # Double-quote double-evaled strings.
18054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18055 ;;
18056 *)
18057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18058 ;;
18059 esac
18060 done
18061
18062 case $lt_echo in
18063 *'\$0 --fallback-echo"')
18064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18065 ;;
18066 esac
18067
18068cfgfile="$ofile"
18069
18070 cat <<__EOF__ >> "$cfgfile"
18071# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18072
18073# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18074
18075# Shell to use when invoking shell scripts.
18076SHELL=$lt_SHELL
18077
18078# Whether or not to build shared libraries.
18079build_libtool_libs=$enable_shared
18080
18081# Whether or not to build static libraries.
18082build_old_libs=$enable_static
18083
18084# Whether or not to add -lc for building shared libraries.
18085build_libtool_need_lc=$archive_cmds_need_lc_RC
18086
18087# Whether or not to disallow shared libs when runtime libs are static
18088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18089
18090# Whether or not to optimize for fast installation.
18091fast_install=$enable_fast_install
18092
18093# The host system.
18094host_alias=$host_alias
18095host=$host
18096
18097# An echo program that does not interpret backslashes.
18098echo=$lt_echo
18099
18100# The archiver.
18101AR=$lt_AR
18102AR_FLAGS=$lt_AR_FLAGS
18103
18104# A C compiler.
18105LTCC=$lt_LTCC
18106
18107# A language-specific compiler.
18108CC=$lt_compiler_RC
18109
18110# Is the compiler the GNU C compiler?
18111with_gcc=$GCC_RC
18112
18113# An ERE matcher.
18114EGREP=$lt_EGREP
18115
18116# The linker used to build libraries.
18117LD=$lt_LD_RC
18118
18119# Whether we need hard or soft links.
18120LN_S=$lt_LN_S
18121
18122# A BSD-compatible nm program.
18123NM=$lt_NM
18124
18125# A symbol stripping program
18126STRIP=$STRIP
18127
18128# Used to examine libraries when file_magic_cmd begins "file"
18129MAGIC_CMD=$MAGIC_CMD
18130
18131# Used on cygwin: DLL creation program.
18132DLLTOOL="$DLLTOOL"
18133
18134# Used on cygwin: object dumper.
18135OBJDUMP="$OBJDUMP"
18136
18137# Used on cygwin: assembler.
18138AS="$AS"
18139
18140# The name of the directory that contains temporary libtool files.
18141objdir=$objdir
18142
18143# How to create reloadable object files.
18144reload_flag=$lt_reload_flag
18145reload_cmds=$lt_reload_cmds
18146
18147# How to pass a linker flag through the compiler.
18148wl=$lt_lt_prog_compiler_wl_RC
18149
18150# Object file suffix (normally "o").
18151objext="$ac_objext"
18152
18153# Old archive suffix (normally "a").
18154libext="$libext"
18155
18156# Shared library suffix (normally ".so").
18157shrext='$shrext'
18158
18159# Executable file suffix (normally "").
18160exeext="$exeext"
18161
18162# Additional compiler flags for building library objects.
18163pic_flag=$lt_lt_prog_compiler_pic_RC
18164pic_mode=$pic_mode
18165
18166# What is the maximum length of a command?
18167max_cmd_len=$lt_cv_sys_max_cmd_len
18168
18169# Does compiler simultaneously support -c and -o options?
18170compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18171
18172# Must we lock files when doing compilation ?
18173need_locks=$lt_need_locks
18174
18175# Do we need the lib prefix for modules?
18176need_lib_prefix=$need_lib_prefix
18177
18178# Do we need a version for libraries?
18179need_version=$need_version
18180
18181# Whether dlopen is supported.
18182dlopen_support=$enable_dlopen
18183
18184# Whether dlopen of programs is supported.
18185dlopen_self=$enable_dlopen_self
18186
18187# Whether dlopen of statically linked programs is supported.
18188dlopen_self_static=$enable_dlopen_self_static
18189
18190# Compiler flag to prevent dynamic linking.
18191link_static_flag=$lt_lt_prog_compiler_static_RC
18192
18193# Compiler flag to turn off builtin functions.
18194no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18195
18196# Compiler flag to allow reflexive dlopens.
18197export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18198
18199# Compiler flag to generate shared objects directly from archives.
18200whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18201
18202# Compiler flag to generate thread-safe objects.
18203thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18204
18205# Library versioning type.
18206version_type=$version_type
18207
18208# Format of library name prefix.
18209libname_spec=$lt_libname_spec
18210
18211# List of archive names. First name is the real one, the rest are links.
18212# The last name is the one that the linker finds with -lNAME.
18213library_names_spec=$lt_library_names_spec
18214
18215# The coded name of the library, if different from the real name.
18216soname_spec=$lt_soname_spec
18217
18218# Commands used to build and install an old-style archive.
18219RANLIB=$lt_RANLIB
18220old_archive_cmds=$lt_old_archive_cmds_RC
18221old_postinstall_cmds=$lt_old_postinstall_cmds
18222old_postuninstall_cmds=$lt_old_postuninstall_cmds
18223
18224# Create an old-style archive from a shared archive.
18225old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18226
18227# Create a temporary old-style archive to link instead of a shared archive.
18228old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18229
18230# Commands used to build and install a shared archive.
18231archive_cmds=$lt_archive_cmds_RC
18232archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18233postinstall_cmds=$lt_postinstall_cmds
18234postuninstall_cmds=$lt_postuninstall_cmds
18235
18236# Commands used to build a loadable module (assumed same as above if empty)
18237module_cmds=$lt_module_cmds_RC
18238module_expsym_cmds=$lt_module_expsym_cmds_RC
18239
18240# Commands to strip libraries.
18241old_striplib=$lt_old_striplib
18242striplib=$lt_striplib
18243
18244# Dependencies to place before the objects being linked to create a
18245# shared library.
18246predep_objects=$lt_predep_objects_RC
18247
18248# Dependencies to place after the objects being linked to create a
18249# shared library.
18250postdep_objects=$lt_postdep_objects_RC
18251
18252# Dependencies to place before the objects being linked to create a
18253# shared library.
18254predeps=$lt_predeps_RC
18255
18256# Dependencies to place after the objects being linked to create a
18257# shared library.
18258postdeps=$lt_postdeps_RC
18259
18260# The library search path used internally by the compiler when linking
18261# a shared library.
18262compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18263
18264# Method to check whether dependent libraries are shared objects.
18265deplibs_check_method=$lt_deplibs_check_method
18266
18267# Command to use when deplibs_check_method == file_magic.
18268file_magic_cmd=$lt_file_magic_cmd
18269
18270# Flag that allows shared libraries with undefined symbols to be built.
18271allow_undefined_flag=$lt_allow_undefined_flag_RC
18272
18273# Flag that forces no undefined symbols.
18274no_undefined_flag=$lt_no_undefined_flag_RC
18275
18276# Commands used to finish a libtool library installation in a directory.
18277finish_cmds=$lt_finish_cmds
18278
18279# Same as above, but a single script fragment to be evaled but not shown.
18280finish_eval=$lt_finish_eval
18281
18282# Take the output of nm and produce a listing of raw symbols and C names.
18283global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18284
18285# Transform the output of nm in a proper C declaration
18286global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18287
18288# Transform the output of nm in a C name address pair
18289global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18290
18291# This is the shared library runtime path variable.
18292runpath_var=$runpath_var
18293
18294# This is the shared library path variable.
18295shlibpath_var=$shlibpath_var
18296
18297# Is shlibpath searched before the hard-coded library search path?
18298shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18299
18300# How to hardcode a shared library path into an executable.
18301hardcode_action=$hardcode_action_RC
18302
18303# Whether we should hardcode library paths into libraries.
18304hardcode_into_libs=$hardcode_into_libs
18305
18306# Flag to hardcode \$libdir into a binary during linking.
18307# This must work even if \$libdir does not exist.
18308hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18309
18310# If ld is used when linking, flag to hardcode \$libdir into
18311# a binary during linking. This must work even if \$libdir does
18312# not exist.
18313hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18314
18315# Whether we need a single -rpath flag with a separated argument.
18316hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18317
18318# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18319# resulting binary.
18320hardcode_direct=$hardcode_direct_RC
18321
18322# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18323# resulting binary.
18324hardcode_minus_L=$hardcode_minus_L_RC
18325
18326# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18327# the resulting binary.
18328hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18329
18330# Set to yes if building a shared library automatically hardcodes DIR into the library
18331# and all subsequent libraries and executables linked against it.
18332hardcode_automatic=$hardcode_automatic_RC
18333
18334# Variables whose values should be saved in libtool wrapper scripts and
18335# restored at relink time.
18336variables_saved_for_relink="$variables_saved_for_relink"
18337
18338# Whether libtool must link a program against all its dependency libraries.
18339link_all_deplibs=$link_all_deplibs_RC
18340
18341# Compile-time system search path for libraries
18342sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18343
18344# Run-time system search path for libraries
18345sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18346
18347# Fix the shell variable \$srcfile for the compiler.
18348fix_srcfile_path="$fix_srcfile_path_RC"
18349
18350# Set to yes if exported symbols are required.
18351always_export_symbols=$always_export_symbols_RC
18352
18353# The commands to list exported symbols.
18354export_symbols_cmds=$lt_export_symbols_cmds_RC
18355
18356# The commands to extract the exported symbol list from a shared archive.
18357extract_expsyms_cmds=$lt_extract_expsyms_cmds
18358
18359# Symbols that should not be listed in the preloaded symbols.
18360exclude_expsyms=$lt_exclude_expsyms_RC
18361
18362# Symbols that must always be exported.
18363include_expsyms=$lt_include_expsyms_RC
18364
18365# ### END LIBTOOL TAG CONFIG: $tagname
18366
18367__EOF__
18368
18369
18370else
18371 # If there is no Makefile yet, we rely on a make rule to execute
18372 # `config.status --recheck' to rerun these tests and create the
18373 # libtool script then.
18374 test -f Makefile && make "$ltmain"
18375fi
18376
18377
18378ac_ext=c
18379ac_cpp='$CPP $CPPFLAGS'
18380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382ac_compiler_gnu=$ac_cv_c_compiler_gnu
18383
18384CC="$lt_save_CC"
18385
18386 ;;
18387
18388 *)
18389 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18390echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18391 { (exit 1); exit 1; }; }
18392 ;;
18393 esac
18394
18395 # Append the new tag name to the list of available tags.
18396 if test -n "$tagname" ; then
18397 available_tags="$available_tags $tagname"
18398 fi
18399 fi
18400 done
18401 IFS="$lt_save_ifs"
18402
18403 # Now substitute the updated list of available tags.
18404 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18405 mv "${ofile}T" "$ofile"
18406 chmod +x "$ofile"
18407 else
18408 rm -f "${ofile}T"
18409 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18410echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18411 { (exit 1); exit 1; }; }
18412 fi
18413fi
John Criswell7a73b802003-06-30 21:59:07 +000018414
18415
18416
18417# This can be used to rebuild libtool when needed
18418LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18419
18420# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018421LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018422
18423# Prevent multiple expansion
18424
18425
18426
John Criswell47fdd832003-07-14 16:52:07 +000018427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
John Criswellde00db22003-08-25 16:49:54 +000018445# Extract the first word of "pwd", so it can be a program name with args.
18446set dummy pwd; ac_word=$2
18447echo "$as_me:$LINENO: checking for $ac_word" >&5
18448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18449if test "${ac_cv_path_RPWD+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451else
18452 case $RPWD in
18453 [\\/]* | ?:[\\/]*)
18454 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18455 ;;
18456 *)
18457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18458for as_dir in $PATH
18459do
18460 IFS=$as_save_IFS
18461 test -z "$as_dir" && as_dir=.
18462 for ac_exec_ext in '' $ac_executable_extensions; do
18463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18464 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18466 break 2
18467 fi
18468done
18469done
18470
John Criswell39827c82003-09-23 15:28:52 +000018471 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018472 ;;
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 Criswell39827c82003-09-23 15:28:52 +000018485if test ${RPWD} = "false"
18486then
18487 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18488echo "$as_me: error: pwd required but not found" >&2;}
18489 { (exit 1); exit 1; }; }
18490fi
18491
John Criswell7a73b802003-06-30 21:59:07 +000018492# Extract the first word of "ar", so it can be a program name with args.
18493set dummy ar; ac_word=$2
18494echo "$as_me:$LINENO: checking for $ac_word" >&5
18495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18496if test "${ac_cv_path_AR+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18498else
18499 case $AR in
18500 [\\/]* | ?:[\\/]*)
18501 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18502 ;;
18503 *)
18504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18505for as_dir in $PATH
18506do
18507 IFS=$as_save_IFS
18508 test -z "$as_dir" && as_dir=.
18509 for ac_exec_ext in '' $ac_executable_extensions; do
18510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18511 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18513 break 2
18514 fi
18515done
18516done
18517
John Criswell39827c82003-09-23 15:28:52 +000018518 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018519 ;;
18520esac
18521fi
18522AR=$ac_cv_path_AR
18523
18524if test -n "$AR"; then
18525 echo "$as_me:$LINENO: result: $AR" >&5
18526echo "${ECHO_T}$AR" >&6
18527else
18528 echo "$as_me:$LINENO: result: no" >&5
18529echo "${ECHO_T}no" >&6
18530fi
18531
John Criswell39827c82003-09-23 15:28:52 +000018532if test ${AR} = "false"
18533then
18534 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18535echo "$as_me: error: ar required but not found" >&2;}
18536 { (exit 1); exit 1; }; }
18537fi
18538
John Criswell7a73b802003-06-30 21:59:07 +000018539# Extract the first word of "sed", so it can be a program name with args.
18540set dummy sed; ac_word=$2
18541echo "$as_me:$LINENO: checking for $ac_word" >&5
18542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18543if test "${ac_cv_path_SED+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18545else
18546 case $SED in
18547 [\\/]* | ?:[\\/]*)
18548 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18549 ;;
18550 *)
18551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18552for as_dir in $PATH
18553do
18554 IFS=$as_save_IFS
18555 test -z "$as_dir" && as_dir=.
18556 for ac_exec_ext in '' $ac_executable_extensions; do
18557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18558 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18560 break 2
18561 fi
18562done
18563done
18564
John Criswell39827c82003-09-23 15:28:52 +000018565 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018566 ;;
18567esac
18568fi
18569SED=$ac_cv_path_SED
18570
18571if test -n "$SED"; then
18572 echo "$as_me:$LINENO: result: $SED" >&5
18573echo "${ECHO_T}$SED" >&6
18574else
18575 echo "$as_me:$LINENO: result: no" >&5
18576echo "${ECHO_T}no" >&6
18577fi
18578
John Criswell39827c82003-09-23 15:28:52 +000018579if test ${SED} = "false"
18580then
18581 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18582echo "$as_me: error: sed required but not found" >&2;}
18583 { (exit 1); exit 1; }; }
18584fi
18585
John Criswell7a73b802003-06-30 21:59:07 +000018586# Extract the first word of "rm", so it can be a program name with args.
18587set dummy rm; ac_word=$2
18588echo "$as_me:$LINENO: checking for $ac_word" >&5
18589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18590if test "${ac_cv_path_RM+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18592else
18593 case $RM in
18594 [\\/]* | ?:[\\/]*)
18595 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18596 ;;
18597 *)
18598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18599for as_dir in $PATH
18600do
18601 IFS=$as_save_IFS
18602 test -z "$as_dir" && as_dir=.
18603 for ac_exec_ext in '' $ac_executable_extensions; do
18604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18605 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18607 break 2
18608 fi
18609done
18610done
18611
John Criswell39827c82003-09-23 15:28:52 +000018612 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018613 ;;
18614esac
18615fi
18616RM=$ac_cv_path_RM
18617
18618if test -n "$RM"; then
18619 echo "$as_me:$LINENO: result: $RM" >&5
18620echo "${ECHO_T}$RM" >&6
18621else
18622 echo "$as_me:$LINENO: result: no" >&5
18623echo "${ECHO_T}no" >&6
18624fi
18625
John Criswell39827c82003-09-23 15:28:52 +000018626if test ${RM} = "false"
18627then
18628 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18629echo "$as_me: error: rm required but not found" >&2;}
18630 { (exit 1); exit 1; }; }
18631fi
18632
John Criswell7a73b802003-06-30 21:59:07 +000018633# Extract the first word of "echo", so it can be a program name with args.
18634set dummy echo; ac_word=$2
18635echo "$as_me:$LINENO: checking for $ac_word" >&5
18636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18637if test "${ac_cv_path_ECHO+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18639else
18640 case $ECHO in
18641 [\\/]* | ?:[\\/]*)
18642 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18643 ;;
18644 *)
18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18646for as_dir in $PATH
18647do
18648 IFS=$as_save_IFS
18649 test -z "$as_dir" && as_dir=.
18650 for ac_exec_ext in '' $ac_executable_extensions; do
18651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18652 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18654 break 2
18655 fi
18656done
18657done
18658
John Criswell39827c82003-09-23 15:28:52 +000018659 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018660 ;;
18661esac
18662fi
18663ECHO=$ac_cv_path_ECHO
18664
18665if test -n "$ECHO"; then
18666 echo "$as_me:$LINENO: result: $ECHO" >&5
18667echo "${ECHO_T}$ECHO" >&6
18668else
18669 echo "$as_me:$LINENO: result: no" >&5
18670echo "${ECHO_T}no" >&6
18671fi
18672
John Criswell39827c82003-09-23 15:28:52 +000018673if test ${ECHO} = "false"
18674then
18675 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18676echo "$as_me: error: echo required but not found" >&2;}
18677 { (exit 1); exit 1; }; }
18678fi
18679
John Criswell7a73b802003-06-30 21:59:07 +000018680# Extract the first word of "mkdir", so it can be a program name with args.
18681set dummy mkdir; 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_MKDIR+set}" = set; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18686else
18687 case $MKDIR in
18688 [\\/]* | ?:[\\/]*)
18689 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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
John Criswell39827c82003-09-23 15:28:52 +000018706 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018707 ;;
18708esac
18709fi
18710MKDIR=$ac_cv_path_MKDIR
18711
18712if test -n "$MKDIR"; then
18713 echo "$as_me:$LINENO: result: $MKDIR" >&5
18714echo "${ECHO_T}$MKDIR" >&6
18715else
18716 echo "$as_me:$LINENO: result: no" >&5
18717echo "${ECHO_T}no" >&6
18718fi
18719
John Criswell39827c82003-09-23 15:28:52 +000018720if test ${MKDIR} = "false"
18721then
18722 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18723echo "$as_me: error: mkdir required but not found" >&2;}
18724 { (exit 1); exit 1; }; }
18725fi
18726
John Criswell7a73b802003-06-30 21:59:07 +000018727# Extract the first word of "date", so it can be a program name with args.
18728set dummy date; ac_word=$2
18729echo "$as_me:$LINENO: checking for $ac_word" >&5
18730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18731if test "${ac_cv_path_DATE+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18733else
18734 case $DATE in
18735 [\\/]* | ?:[\\/]*)
18736 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18737 ;;
18738 *)
18739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740for as_dir in $PATH
18741do
18742 IFS=$as_save_IFS
18743 test -z "$as_dir" && as_dir=.
18744 for ac_exec_ext in '' $ac_executable_extensions; do
18745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18748 break 2
18749 fi
18750done
18751done
18752
John Criswell39827c82003-09-23 15:28:52 +000018753 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018754 ;;
18755esac
18756fi
18757DATE=$ac_cv_path_DATE
18758
18759if test -n "$DATE"; then
18760 echo "$as_me:$LINENO: result: $DATE" >&5
18761echo "${ECHO_T}$DATE" >&6
18762else
18763 echo "$as_me:$LINENO: result: no" >&5
18764echo "${ECHO_T}no" >&6
18765fi
18766
John Criswell39827c82003-09-23 15:28:52 +000018767if test ${DATE} = "false"
18768then
18769 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18770echo "$as_me: error: date required but not found" >&2;}
18771 { (exit 1); exit 1; }; }
18772fi
18773
John Criswell7a73b802003-06-30 21:59:07 +000018774# Extract the first word of "mv", so it can be a program name with args.
18775set dummy mv; ac_word=$2
18776echo "$as_me:$LINENO: checking for $ac_word" >&5
18777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18778if test "${ac_cv_path_MV+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780else
18781 case $MV in
18782 [\\/]* | ?:[\\/]*)
18783 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18784 ;;
18785 *)
18786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18787for as_dir in $PATH
18788do
18789 IFS=$as_save_IFS
18790 test -z "$as_dir" && as_dir=.
18791 for ac_exec_ext in '' $ac_executable_extensions; do
18792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18793 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18795 break 2
18796 fi
18797done
18798done
18799
John Criswell39827c82003-09-23 15:28:52 +000018800 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018801 ;;
18802esac
18803fi
18804MV=$ac_cv_path_MV
18805
18806if test -n "$MV"; then
18807 echo "$as_me:$LINENO: result: $MV" >&5
18808echo "${ECHO_T}$MV" >&6
18809else
18810 echo "$as_me:$LINENO: result: no" >&5
18811echo "${ECHO_T}no" >&6
18812fi
18813
John Criswell39827c82003-09-23 15:28:52 +000018814if test ${MV} = "false"
18815then
18816 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18817echo "$as_me: error: mv required but not found" >&2;}
18818 { (exit 1); exit 1; }; }
18819fi
18820
John Criswell7a73b802003-06-30 21:59:07 +000018821# Extract the first word of "dot", so it can be a program name with args.
18822set dummy dot; ac_word=$2
18823echo "$as_me:$LINENO: checking for $ac_word" >&5
18824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18825if test "${ac_cv_path_DOT+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828 case $DOT in
18829 [\\/]* | ?:[\\/]*)
18830 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18831 ;;
18832 *)
18833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18834for as_dir in $PATH
18835do
18836 IFS=$as_save_IFS
18837 test -z "$as_dir" && as_dir=.
18838 for ac_exec_ext in '' $ac_executable_extensions; do
18839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18840 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18842 break 2
18843 fi
18844done
18845done
18846
John Criswell39827c82003-09-23 15:28:52 +000018847 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018848 ;;
18849esac
18850fi
18851DOT=$ac_cv_path_DOT
18852
18853if test -n "$DOT"; then
18854 echo "$as_me:$LINENO: result: $DOT" >&5
18855echo "${ECHO_T}$DOT" >&6
18856else
18857 echo "$as_me:$LINENO: result: no" >&5
18858echo "${ECHO_T}no" >&6
18859fi
18860
John Criswell39827c82003-09-23 15:28:52 +000018861
John Criswell7a73b802003-06-30 21:59:07 +000018862# Extract the first word of "etags", so it can be a program name with args.
18863set dummy etags; ac_word=$2
18864echo "$as_me:$LINENO: checking for $ac_word" >&5
18865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18866if test "${ac_cv_path_ETAGS+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868else
18869 case $ETAGS in
18870 [\\/]* | ?:[\\/]*)
18871 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18872 ;;
18873 *)
18874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875for as_dir in $PATH
18876do
18877 IFS=$as_save_IFS
18878 test -z "$as_dir" && as_dir=.
18879 for ac_exec_ext in '' $ac_executable_extensions; do
18880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18881 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18883 break 2
18884 fi
18885done
18886done
18887
John Criswell39827c82003-09-23 15:28:52 +000018888 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018889 ;;
18890esac
18891fi
18892ETAGS=$ac_cv_path_ETAGS
18893
18894if test -n "$ETAGS"; then
18895 echo "$as_me:$LINENO: result: $ETAGS" >&5
18896echo "${ECHO_T}$ETAGS" >&6
18897else
18898 echo "$as_me:$LINENO: result: no" >&5
18899echo "${ECHO_T}no" >&6
18900fi
18901
John Criswell39827c82003-09-23 15:28:52 +000018902
John Criswell7a73b802003-06-30 21:59:07 +000018903# Extract the first word of "purify", so it can be a program name with args.
18904set dummy purify; ac_word=$2
18905echo "$as_me:$LINENO: checking for $ac_word" >&5
18906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18907if test "${ac_cv_path_PURIFY+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18909else
18910 case $PURIFY in
18911 [\\/]* | ?:[\\/]*)
18912 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18913 ;;
18914 *)
18915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18916for as_dir in $PATH
18917do
18918 IFS=$as_save_IFS
18919 test -z "$as_dir" && as_dir=.
18920 for ac_exec_ext in '' $ac_executable_extensions; do
18921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18922 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18924 break 2
18925 fi
18926done
18927done
18928
John Criswell39827c82003-09-23 15:28:52 +000018929 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018930 ;;
18931esac
18932fi
18933PURIFY=$ac_cv_path_PURIFY
18934
18935if test -n "$PURIFY"; then
18936 echo "$as_me:$LINENO: result: $PURIFY" >&5
18937echo "${ECHO_T}$PURIFY" >&6
18938else
18939 echo "$as_me:$LINENO: result: no" >&5
18940echo "${ECHO_T}no" >&6
18941fi
18942
John Criswell39827c82003-09-23 15:28:52 +000018943
John Criswellde00db22003-08-25 16:49:54 +000018944# Extract the first word of "python", so it can be a program name with args.
18945set dummy python; ac_word=$2
18946echo "$as_me:$LINENO: checking for $ac_word" >&5
18947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18948if test "${ac_cv_path_PYTHON+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18950else
18951 case $PYTHON in
18952 [\\/]* | ?:[\\/]*)
18953 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18954 ;;
18955 *)
18956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18957for as_dir in $PATH
18958do
18959 IFS=$as_save_IFS
18960 test -z "$as_dir" && as_dir=.
18961 for ac_exec_ext in '' $ac_executable_extensions; do
18962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18963 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18965 break 2
18966 fi
18967done
18968done
18969
John Criswell39827c82003-09-23 15:28:52 +000018970 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018971 ;;
18972esac
18973fi
18974PYTHON=$ac_cv_path_PYTHON
18975
18976if test -n "$PYTHON"; then
18977 echo "$as_me:$LINENO: result: $PYTHON" >&5
18978echo "${ECHO_T}$PYTHON" >&6
18979else
18980 echo "$as_me:$LINENO: result: no" >&5
18981echo "${ECHO_T}no" >&6
18982fi
18983
John Criswell39827c82003-09-23 15:28:52 +000018984if test ${PYTHON} = "false"
18985then
18986 { { echo "$as_me:$LINENO: error: python required but not found" >&5
18987echo "$as_me: error: python required but not found" >&2;}
18988 { (exit 1); exit 1; }; }
18989fi
18990
John Criswellde00db22003-08-25 16:49:54 +000018991# Extract the first word of "qmtest", so it can be a program name with args.
18992set dummy qmtest; ac_word=$2
18993echo "$as_me:$LINENO: checking for $ac_word" >&5
18994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18995if test "${ac_cv_path_QMTEST+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997else
18998 case $QMTEST in
18999 [\\/]* | ?:[\\/]*)
19000 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19001 ;;
19002 *)
19003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004for as_dir in $PATH
19005do
19006 IFS=$as_save_IFS
19007 test -z "$as_dir" && as_dir=.
19008 for ac_exec_ext in '' $ac_executable_extensions; do
19009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19010 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19012 break 2
19013 fi
19014done
19015done
19016
John Criswell39827c82003-09-23 15:28:52 +000019017 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019018 ;;
19019esac
19020fi
19021QMTEST=$ac_cv_path_QMTEST
19022
19023if test -n "$QMTEST"; then
19024 echo "$as_me:$LINENO: result: $QMTEST" >&5
19025echo "${ECHO_T}$QMTEST" >&6
19026else
19027 echo "$as_me:$LINENO: result: no" >&5
19028echo "${ECHO_T}no" >&6
19029fi
19030
John Criswell39827c82003-09-23 15:28:52 +000019031if test ${QMTEST} = "false"
19032then
19033 { { echo "$as_me:$LINENO: error: qmtest required but not found" >&5
19034echo "$as_me: error: qmtest required but not found" >&2;}
19035 { (exit 1); exit 1; }; }
19036fi
John Criswellde00db22003-08-25 16:49:54 +000019037
19038pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19039pymajor=`echo $pyversion | cut -d. -f1`
19040pyminor=`echo $pyversion | cut -d. -f2`
19041
19042if test "$pymajor" -ge "2"
19043then
19044 if test "$pymajor" -eq "2"
19045 then
19046 if test "$pyminor" -lt "2"
19047 then
19048 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19049echo "$as_me: error: Python 2.2 or greater required" >&2;}
19050 { (exit 1); exit 1; }; }
19051 fi
19052 fi
19053else
19054 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19055echo "$as_me: error: Python 2.2 or greater required" >&2;}
19056 { (exit 1); exit 1; }; }
19057fi
John Criswell7a73b802003-06-30 21:59:07 +000019058
19059
19060
19061
19062
19063echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19064echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19065if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067else
19068 ac_check_lib_save_LIBS=$LIBS
19069LIBS="-lelf $LIBS"
19070cat >conftest.$ac_ext <<_ACEOF
19071#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019072/* confdefs.h. */
19073_ACEOF
19074cat confdefs.h >>conftest.$ac_ext
19075cat >>conftest.$ac_ext <<_ACEOF
19076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019077
19078/* Override any gcc2 internal prototype to avoid an error. */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082/* We use char because int might match the return type of a gcc2
19083 builtin and then its argument prototype would still apply. */
19084char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019085int
19086main ()
19087{
19088elf_begin ();
19089 ;
19090 return 0;
19091}
19092_ACEOF
19093rm -f conftest.$ac_objext conftest$ac_exeext
19094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19095 (eval $ac_link) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -s conftest$ac_exeext'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_cv_lib_elf_elf_begin=yes
19106else
19107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019108sed 's/^/| /' conftest.$ac_ext >&5
19109
John Criswell7a73b802003-06-30 21:59:07 +000019110ac_cv_lib_elf_elf_begin=no
19111fi
19112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19113LIBS=$ac_check_lib_save_LIBS
19114fi
19115echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19116echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19117if test $ac_cv_lib_elf_elf_begin = yes; then
19118 cat >>confdefs.h <<_ACEOF
19119#define HAVE_LIBELF 1
19120_ACEOF
19121
19122 LIBS="-lelf $LIBS"
19123
19124fi
19125
19126
19127echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19128echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19129if test "${ac_cv_search_dlopen+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131else
19132 ac_func_search_save_LIBS=$LIBS
19133ac_cv_search_dlopen=no
19134cat >conftest.$ac_ext <<_ACEOF
19135#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019136/* confdefs.h. */
19137_ACEOF
19138cat confdefs.h >>conftest.$ac_ext
19139cat >>conftest.$ac_ext <<_ACEOF
19140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019141
19142/* Override any gcc2 internal prototype to avoid an error. */
19143#ifdef __cplusplus
19144extern "C"
19145#endif
19146/* We use char because int might match the return type of a gcc2
19147 builtin and then its argument prototype would still apply. */
19148char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019149int
19150main ()
19151{
19152dlopen ();
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext conftest$ac_exeext
19158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19159 (eval $ac_link) 2>&5
19160 ac_status=$?
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
19163 { ac_try='test -s conftest$ac_exeext'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_cv_search_dlopen="none required"
19170else
19171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019172sed 's/^/| /' conftest.$ac_ext >&5
19173
John Criswell7a73b802003-06-30 21:59:07 +000019174fi
19175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19176if test "$ac_cv_search_dlopen" = no; then
19177 for ac_lib in dl; do
19178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19179 cat >conftest.$ac_ext <<_ACEOF
19180#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019181/* confdefs.h. */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019186
19187/* Override any gcc2 internal prototype to avoid an error. */
19188#ifdef __cplusplus
19189extern "C"
19190#endif
19191/* We use char because int might match the return type of a gcc2
19192 builtin and then its argument prototype would still apply. */
19193char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019194int
19195main ()
19196{
19197dlopen ();
19198 ;
19199 return 0;
19200}
19201_ACEOF
19202rm -f conftest.$ac_objext conftest$ac_exeext
19203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -s conftest$ac_exeext'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_search_dlopen="-l$ac_lib"
19215break
19216else
19217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019218sed 's/^/| /' conftest.$ac_ext >&5
19219
John Criswell7a73b802003-06-30 21:59:07 +000019220fi
19221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19222 done
19223fi
19224LIBS=$ac_func_search_save_LIBS
19225fi
19226echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19227echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19228if test "$ac_cv_search_dlopen" != no; then
19229 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19230
19231else
19232 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19233echo "$as_me: error: dlopen() required but not found" >&2;}
19234 { (exit 1); exit 1; }; }
19235fi
19236
19237
19238echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19239echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19240if test "${ac_cv_search_mallinfo+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242else
19243 ac_func_search_save_LIBS=$LIBS
19244ac_cv_search_mallinfo=no
19245cat >conftest.$ac_ext <<_ACEOF
19246#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019247/* confdefs.h. */
19248_ACEOF
19249cat confdefs.h >>conftest.$ac_ext
19250cat >>conftest.$ac_ext <<_ACEOF
19251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019252
19253/* Override any gcc2 internal prototype to avoid an error. */
19254#ifdef __cplusplus
19255extern "C"
19256#endif
19257/* We use char because int might match the return type of a gcc2
19258 builtin and then its argument prototype would still apply. */
19259char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019260int
19261main ()
19262{
19263mallinfo ();
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext conftest$ac_exeext
19269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270 (eval $ac_link) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -s conftest$ac_exeext'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 ac_cv_search_mallinfo="none required"
19281else
19282 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019283sed 's/^/| /' conftest.$ac_ext >&5
19284
John Criswell7a73b802003-06-30 21:59:07 +000019285fi
19286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19287if test "$ac_cv_search_mallinfo" = no; then
19288 for ac_lib in malloc; do
19289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19290 cat >conftest.$ac_ext <<_ACEOF
19291#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019297
19298/* Override any gcc2 internal prototype to avoid an error. */
19299#ifdef __cplusplus
19300extern "C"
19301#endif
19302/* We use char because int might match the return type of a gcc2
19303 builtin and then its argument prototype would still apply. */
19304char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019305int
19306main ()
19307{
19308mallinfo ();
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext conftest$ac_exeext
19314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315 (eval $ac_link) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_search_mallinfo="-l$ac_lib"
19326break
19327else
19328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019329sed 's/^/| /' conftest.$ac_ext >&5
19330
John Criswell7a73b802003-06-30 21:59:07 +000019331fi
19332rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19333 done
19334fi
19335LIBS=$ac_func_search_save_LIBS
19336fi
19337echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19338echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19339if test "$ac_cv_search_mallinfo" != no; then
19340 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19341 cat >>confdefs.h <<\_ACEOF
19342#define HAVE_MALLINFO 1
19343_ACEOF
19344
19345fi
19346
19347
19348
19349echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19350echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19351if test "${ac_cv_header_stdc+set}" = set; then
19352 echo $ECHO_N "(cached) $ECHO_C" >&6
19353else
19354 cat >conftest.$ac_ext <<_ACEOF
19355#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019356/* confdefs.h. */
19357_ACEOF
19358cat confdefs.h >>conftest.$ac_ext
19359cat >>conftest.$ac_ext <<_ACEOF
19360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019361#include <stdlib.h>
19362#include <stdarg.h>
19363#include <string.h>
19364#include <float.h>
19365
John Criswell0c38eaf2003-09-10 15:17:25 +000019366int
19367main ()
19368{
19369
19370 ;
19371 return 0;
19372}
John Criswell7a73b802003-06-30 21:59:07 +000019373_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019377 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019379 (exit $ac_status); } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019386 ac_cv_header_stdc=yes
19387else
19388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019392fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019393rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019394
19395if test $ac_cv_header_stdc = yes; then
19396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19397 cat >conftest.$ac_ext <<_ACEOF
19398#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019404#include <string.h>
19405
19406_ACEOF
19407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019408 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019409 :
19410else
19411 ac_cv_header_stdc=no
19412fi
19413rm -f conftest*
19414
19415fi
19416
19417if test $ac_cv_header_stdc = yes; then
19418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19419 cat >conftest.$ac_ext <<_ACEOF
19420#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019426#include <stdlib.h>
19427
19428_ACEOF
19429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019430 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019431 :
19432else
19433 ac_cv_header_stdc=no
19434fi
19435rm -f conftest*
19436
19437fi
19438
19439if test $ac_cv_header_stdc = yes; then
19440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19441 if test "$cross_compiling" = yes; then
19442 :
19443else
19444 cat >conftest.$ac_ext <<_ACEOF
19445#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019451#include <ctype.h>
19452#if ((' ' & 0x0FF) == 0x020)
19453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19455#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019456# define ISLOWER(c) \
19457 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019458 || ('j' <= (c) && (c) <= 'r') \
19459 || ('s' <= (c) && (c) <= 'z'))
19460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19461#endif
19462
19463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19464int
19465main ()
19466{
19467 int i;
19468 for (i = 0; i < 256; i++)
19469 if (XOR (islower (i), ISLOWER (i))
19470 || toupper (i) != TOUPPER (i))
19471 exit(2);
19472 exit (0);
19473}
19474_ACEOF
19475rm -f conftest$ac_exeext
19476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19477 (eval $ac_link) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 :
19487else
19488 echo "$as_me: program exited with status $ac_status" >&5
19489echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019490sed 's/^/| /' conftest.$ac_ext >&5
19491
John Criswell7a73b802003-06-30 21:59:07 +000019492( exit $ac_status )
19493ac_cv_header_stdc=no
19494fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019495rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019496fi
19497fi
19498fi
19499echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19500echo "${ECHO_T}$ac_cv_header_stdc" >&6
19501if test $ac_cv_header_stdc = yes; then
19502
19503cat >>confdefs.h <<\_ACEOF
19504#define STDC_HEADERS 1
19505_ACEOF
19506
19507fi
19508
19509echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19510echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19511if test "${ac_cv_header_sys_wait_h+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513else
19514 cat >conftest.$ac_ext <<_ACEOF
19515#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019516/* confdefs.h. */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019521#include <sys/types.h>
19522#include <sys/wait.h>
19523#ifndef WEXITSTATUS
19524# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19525#endif
19526#ifndef WIFEXITED
19527# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19528#endif
19529
John Criswell7a73b802003-06-30 21:59:07 +000019530int
19531main ()
19532{
19533 int s;
19534 wait (&s);
19535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540rm -f conftest.$ac_objext
19541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_cv_header_sys_wait_h=yes
19553else
19554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019555sed 's/^/| /' conftest.$ac_ext >&5
19556
John Criswell7a73b802003-06-30 21:59:07 +000019557ac_cv_header_sys_wait_h=no
19558fi
19559rm -f conftest.$ac_objext conftest.$ac_ext
19560fi
19561echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19562echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19563if test $ac_cv_header_sys_wait_h = yes; then
19564
19565cat >>confdefs.h <<\_ACEOF
19566#define HAVE_SYS_WAIT_H 1
19567_ACEOF
19568
19569fi
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19581do
19582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19583if eval "test \"\${$as_ac_Header+set}\" = set"; then
19584 echo "$as_me:$LINENO: checking for $ac_header" >&5
19585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19586if eval "test \"\${$as_ac_Header+set}\" = set"; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588fi
19589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19591else
19592 # Is the header compilable?
19593echo "$as_me:$LINENO: checking $ac_header usability" >&5
19594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19595cat >conftest.$ac_ext <<_ACEOF
19596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019602$ac_includes_default
19603#include <$ac_header>
19604_ACEOF
19605rm -f conftest.$ac_objext
19606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_header_compiler=yes
19618else
19619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019620sed 's/^/| /' conftest.$ac_ext >&5
19621
John Criswell7a73b802003-06-30 21:59:07 +000019622ac_header_compiler=no
19623fi
19624rm -f conftest.$ac_objext conftest.$ac_ext
19625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19626echo "${ECHO_T}$ac_header_compiler" >&6
19627
19628# Is the header present?
19629echo "$as_me:$LINENO: checking $ac_header presence" >&5
19630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19631cat >conftest.$ac_ext <<_ACEOF
19632#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019633/* confdefs.h. */
19634_ACEOF
19635cat confdefs.h >>conftest.$ac_ext
19636cat >>conftest.$ac_ext <<_ACEOF
19637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019638#include <$ac_header>
19639_ACEOF
19640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19642 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019643 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } >/dev/null; then
19648 if test -s conftest.err; then
19649 ac_cpp_err=$ac_c_preproc_warn_flag
19650 else
19651 ac_cpp_err=
19652 fi
19653else
19654 ac_cpp_err=yes
19655fi
19656if test -z "$ac_cpp_err"; then
19657 ac_header_preproc=yes
19658else
19659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019660sed 's/^/| /' conftest.$ac_ext >&5
19661
John Criswell7a73b802003-06-30 21:59:07 +000019662 ac_header_preproc=no
19663fi
19664rm -f conftest.err conftest.$ac_ext
19665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19666echo "${ECHO_T}$ac_header_preproc" >&6
19667
19668# So? What about this header?
19669case $ac_header_compiler:$ac_header_preproc in
19670 yes:no )
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675 (
19676 cat <<\_ASBOX
19677## ------------------------------------ ##
19678## Report this to bug-autoconf@gnu.org. ##
19679## ------------------------------------ ##
19680_ASBOX
19681 ) |
19682 sed "s/^/$as_me: WARNING: /" >&2
19683 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019684 no:yes )
19685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19691 (
19692 cat <<\_ASBOX
19693## ------------------------------------ ##
19694## Report this to bug-autoconf@gnu.org. ##
19695## ------------------------------------ ##
19696_ASBOX
19697 ) |
19698 sed "s/^/$as_me: WARNING: /" >&2
19699 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019700esac
19701echo "$as_me:$LINENO: checking for $ac_header" >&5
19702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19703if eval "test \"\${$as_ac_Header+set}\" = set"; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705else
19706 eval "$as_ac_Header=$ac_header_preproc"
19707fi
19708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19710
19711fi
19712if test `eval echo '${'$as_ac_Header'}'` = yes; then
19713 cat >>confdefs.h <<_ACEOF
19714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19715_ACEOF
19716
19717fi
19718
19719done
19720
19721
19722
19723
19724
19725
19726for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19727do
19728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19729if eval "test \"\${$as_ac_Header+set}\" = set"; then
19730 echo "$as_me:$LINENO: checking for $ac_header" >&5
19731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19732if eval "test \"\${$as_ac_Header+set}\" = set"; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19734fi
19735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19737else
19738 # Is the header compilable?
19739echo "$as_me:$LINENO: checking $ac_header usability" >&5
19740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19741cat >conftest.$ac_ext <<_ACEOF
19742#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019743/* confdefs.h. */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
19747/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019748$ac_includes_default
19749#include <$ac_header>
19750_ACEOF
19751rm -f conftest.$ac_objext
19752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19753 (eval $ac_compile) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_header_compiler=yes
19764else
19765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019766sed 's/^/| /' conftest.$ac_ext >&5
19767
John Criswell7a73b802003-06-30 21:59:07 +000019768ac_header_compiler=no
19769fi
19770rm -f conftest.$ac_objext conftest.$ac_ext
19771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19772echo "${ECHO_T}$ac_header_compiler" >&6
19773
19774# Is the header present?
19775echo "$as_me:$LINENO: checking $ac_header presence" >&5
19776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19777cat >conftest.$ac_ext <<_ACEOF
19778#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019779/* confdefs.h. */
19780_ACEOF
19781cat confdefs.h >>conftest.$ac_ext
19782cat >>conftest.$ac_ext <<_ACEOF
19783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019784#include <$ac_header>
19785_ACEOF
19786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19788 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019789 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } >/dev/null; then
19794 if test -s conftest.err; then
19795 ac_cpp_err=$ac_c_preproc_warn_flag
19796 else
19797 ac_cpp_err=
19798 fi
19799else
19800 ac_cpp_err=yes
19801fi
19802if test -z "$ac_cpp_err"; then
19803 ac_header_preproc=yes
19804else
19805 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019806sed 's/^/| /' conftest.$ac_ext >&5
19807
John Criswell7a73b802003-06-30 21:59:07 +000019808 ac_header_preproc=no
19809fi
19810rm -f conftest.err conftest.$ac_ext
19811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19812echo "${ECHO_T}$ac_header_preproc" >&6
19813
19814# So? What about this header?
19815case $ac_header_compiler:$ac_header_preproc in
19816 yes:no )
19817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19821 (
19822 cat <<\_ASBOX
19823## ------------------------------------ ##
19824## Report this to bug-autoconf@gnu.org. ##
19825## ------------------------------------ ##
19826_ASBOX
19827 ) |
19828 sed "s/^/$as_me: WARNING: /" >&2
19829 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019830 no:yes )
19831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19837 (
19838 cat <<\_ASBOX
19839## ------------------------------------ ##
19840## Report this to bug-autoconf@gnu.org. ##
19841## ------------------------------------ ##
19842_ASBOX
19843 ) |
19844 sed "s/^/$as_me: WARNING: /" >&2
19845 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019846esac
19847echo "$as_me:$LINENO: checking for $ac_header" >&5
19848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19849if eval "test \"\${$as_ac_Header+set}\" = set"; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851else
19852 eval "$as_ac_Header=$ac_header_preproc"
19853fi
19854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19856
19857fi
19858if test `eval echo '${'$as_ac_Header'}'` = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19861_ACEOF
19862
19863fi
19864
19865done
19866
19867
19868
19869
19870for ac_header in dlfcn.h link.h
19871do
19872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19873if eval "test \"\${$as_ac_Header+set}\" = set"; then
19874 echo "$as_me:$LINENO: checking for $ac_header" >&5
19875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19876if eval "test \"\${$as_ac_Header+set}\" = set"; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19878fi
19879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19881else
19882 # Is the header compilable?
19883echo "$as_me:$LINENO: checking $ac_header usability" >&5
19884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19885cat >conftest.$ac_ext <<_ACEOF
19886#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019892$ac_includes_default
19893#include <$ac_header>
19894_ACEOF
19895rm -f conftest.$ac_objext
19896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897 (eval $ac_compile) 2>&5
19898 ac_status=$?
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_header_compiler=yes
19908else
19909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019910sed 's/^/| /' conftest.$ac_ext >&5
19911
John Criswell7a73b802003-06-30 21:59:07 +000019912ac_header_compiler=no
19913fi
19914rm -f conftest.$ac_objext conftest.$ac_ext
19915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19916echo "${ECHO_T}$ac_header_compiler" >&6
19917
19918# Is the header present?
19919echo "$as_me:$LINENO: checking $ac_header presence" >&5
19920echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19921cat >conftest.$ac_ext <<_ACEOF
19922#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019923/* confdefs.h. */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
19927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019928#include <$ac_header>
19929_ACEOF
19930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19932 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019933 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } >/dev/null; then
19938 if test -s conftest.err; then
19939 ac_cpp_err=$ac_c_preproc_warn_flag
19940 else
19941 ac_cpp_err=
19942 fi
19943else
19944 ac_cpp_err=yes
19945fi
19946if test -z "$ac_cpp_err"; then
19947 ac_header_preproc=yes
19948else
19949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019950sed 's/^/| /' conftest.$ac_ext >&5
19951
John Criswell7a73b802003-06-30 21:59:07 +000019952 ac_header_preproc=no
19953fi
19954rm -f conftest.err conftest.$ac_ext
19955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19956echo "${ECHO_T}$ac_header_preproc" >&6
19957
19958# So? What about this header?
19959case $ac_header_compiler:$ac_header_preproc in
19960 yes:no )
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19962echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19965 (
19966 cat <<\_ASBOX
19967## ------------------------------------ ##
19968## Report this to bug-autoconf@gnu.org. ##
19969## ------------------------------------ ##
19970_ASBOX
19971 ) |
19972 sed "s/^/$as_me: WARNING: /" >&2
19973 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019974 no:yes )
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19978echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19981 (
19982 cat <<\_ASBOX
19983## ------------------------------------ ##
19984## Report this to bug-autoconf@gnu.org. ##
19985## ------------------------------------ ##
19986_ASBOX
19987 ) |
19988 sed "s/^/$as_me: WARNING: /" >&2
19989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019990esac
19991echo "$as_me:$LINENO: checking for $ac_header" >&5
19992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19993if eval "test \"\${$as_ac_Header+set}\" = set"; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19995else
19996 eval "$as_ac_Header=$ac_header_preproc"
19997fi
19998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20000
20001fi
20002if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20005_ACEOF
20006
20007fi
20008
20009done
20010
20011
20012
John Criswell7a73b802003-06-30 21:59:07 +000020013echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20014echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20015if test "${ac_cv_c_const+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20017else
20018 cat >conftest.$ac_ext <<_ACEOF
20019#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020020/* confdefs.h. */
20021_ACEOF
20022cat confdefs.h >>conftest.$ac_ext
20023cat >>conftest.$ac_ext <<_ACEOF
20024/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020025
John Criswell7a73b802003-06-30 21:59:07 +000020026int
20027main ()
20028{
20029/* FIXME: Include the comments suggested by Paul. */
20030#ifndef __cplusplus
20031 /* Ultrix mips cc rejects this. */
20032 typedef int charset[2];
20033 const charset x;
20034 /* SunOS 4.1.1 cc rejects this. */
20035 char const *const *ccp;
20036 char **p;
20037 /* NEC SVR4.0.2 mips cc rejects this. */
20038 struct point {int x, y;};
20039 static struct point const zero = {0,0};
20040 /* AIX XL C 1.02.0.0 rejects this.
20041 It does not let you subtract one const X* pointer from another in
20042 an arm of an if-expression whose if-part is not a constant
20043 expression */
20044 const char *g = "string";
20045 ccp = &g + (g ? g-g : 0);
20046 /* HPUX 7.0 cc rejects these. */
20047 ++ccp;
20048 p = (char**) ccp;
20049 ccp = (char const *const *) p;
20050 { /* SCO 3.2v4 cc rejects this. */
20051 char *t;
20052 char const *s = 0 ? (char *) 0 : (char const *) 0;
20053
20054 *t++ = 0;
20055 }
20056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20057 int x[] = {25, 17};
20058 const int *foo = &x[0];
20059 ++foo;
20060 }
20061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20062 typedef const int *iptr;
20063 iptr p = 0;
20064 ++p;
20065 }
20066 { /* AIX XL C 1.02.0.0 rejects this saying
20067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20068 struct s { int j; const int *ap[3]; };
20069 struct s *b; b->j = 5;
20070 }
20071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20072 const int foo = 10;
20073 }
20074#endif
20075
20076 ;
20077 return 0;
20078}
20079_ACEOF
20080rm -f conftest.$ac_objext
20081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -s conftest.$ac_objext'
20087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088 (eval $ac_try) 2>&5
20089 ac_status=$?
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_cv_c_const=yes
20093else
20094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020095sed 's/^/| /' conftest.$ac_ext >&5
20096
John Criswell7a73b802003-06-30 21:59:07 +000020097ac_cv_c_const=no
20098fi
20099rm -f conftest.$ac_objext conftest.$ac_ext
20100fi
20101echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20102echo "${ECHO_T}$ac_cv_c_const" >&6
20103if test $ac_cv_c_const = no; then
20104
20105cat >>confdefs.h <<\_ACEOF
20106#define const
20107_ACEOF
20108
20109fi
20110
20111echo "$as_me:$LINENO: checking for inline" >&5
20112echo $ECHO_N "checking for inline... $ECHO_C" >&6
20113if test "${ac_cv_c_inline+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116 ac_cv_c_inline=no
20117for ac_kw in inline __inline__ __inline; do
20118 cat >conftest.$ac_ext <<_ACEOF
20119#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020120/* confdefs.h. */
20121_ACEOF
20122cat confdefs.h >>conftest.$ac_ext
20123cat >>conftest.$ac_ext <<_ACEOF
20124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020125#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020126typedef int foo_t;
20127static $ac_kw foo_t static_foo () {return 0; }
20128$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020129#endif
20130
20131_ACEOF
20132rm -f conftest.$ac_objext
20133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134 (eval $ac_compile) 2>&5
20135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20141 ac_status=$?
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 ac_cv_c_inline=$ac_kw; break
20145else
20146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020147sed 's/^/| /' conftest.$ac_ext >&5
20148
John Criswell7a73b802003-06-30 21:59:07 +000020149fi
20150rm -f conftest.$ac_objext conftest.$ac_ext
20151done
20152
20153fi
20154echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20155echo "${ECHO_T}$ac_cv_c_inline" >&6
20156case $ac_cv_c_inline in
20157 inline | yes) ;;
20158 no)
20159cat >>confdefs.h <<\_ACEOF
20160#define inline
20161_ACEOF
20162 ;;
20163 *) cat >>confdefs.h <<_ACEOF
20164#define inline $ac_cv_c_inline
20165_ACEOF
20166 ;;
20167esac
20168
20169
20170echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20171echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20172if test "${ac_cv_c_bigendian+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174else
20175 # See if sys/param.h defines the BYTE_ORDER macro.
20176cat >conftest.$ac_ext <<_ACEOF
20177#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020178/* confdefs.h. */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020183#include <sys/types.h>
20184#include <sys/param.h>
20185
John Criswell7a73b802003-06-30 21:59:07 +000020186int
20187main ()
20188{
20189#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20190 bogus endian macros
20191#endif
20192
20193 ;
20194 return 0;
20195}
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 # It does; now see whether it defined to BIG_ENDIAN or not.
20210cat >conftest.$ac_ext <<_ACEOF
20211#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020212/* confdefs.h. */
20213_ACEOF
20214cat confdefs.h >>conftest.$ac_ext
20215cat >>conftest.$ac_ext <<_ACEOF
20216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020217#include <sys/types.h>
20218#include <sys/param.h>
20219
John Criswell7a73b802003-06-30 21:59:07 +000020220int
20221main ()
20222{
20223#if BYTE_ORDER != BIG_ENDIAN
20224 not big endian
20225#endif
20226
20227 ;
20228 return 0;
20229}
20230_ACEOF
20231rm -f conftest.$ac_objext
20232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -s conftest.$ac_objext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_c_bigendian=yes
20244else
20245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020246sed 's/^/| /' conftest.$ac_ext >&5
20247
John Criswell7a73b802003-06-30 21:59:07 +000020248ac_cv_c_bigendian=no
20249fi
20250rm -f conftest.$ac_objext conftest.$ac_ext
20251else
20252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020253sed 's/^/| /' conftest.$ac_ext >&5
20254
John Criswell7a73b802003-06-30 21:59:07 +000020255# It does not; compile a test program.
20256if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020257 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020258 ac_cv_c_bigendian=unknown
20259 cat >conftest.$ac_ext <<_ACEOF
20260#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020261/* confdefs.h. */
20262_ACEOF
20263cat confdefs.h >>conftest.$ac_ext
20264cat >>conftest.$ac_ext <<_ACEOF
20265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020266short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20267short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20268void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20269short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20270short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20271void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020272int
20273main ()
20274{
20275 _ascii (); _ebcdic ();
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280rm -f conftest.$ac_objext
20281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20282 (eval $ac_compile) 2>&5
20283 ac_status=$?
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } &&
20286 { ac_try='test -s conftest.$ac_objext'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020293 ac_cv_c_bigendian=yes
20294fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020295if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020296 if test "$ac_cv_c_bigendian" = unknown; then
20297 ac_cv_c_bigendian=no
20298 else
20299 # finding both strings is unlikely to happen, but who knows?
20300 ac_cv_c_bigendian=unknown
20301 fi
20302fi
20303else
20304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020305sed 's/^/| /' conftest.$ac_ext >&5
20306
John Criswell7a73b802003-06-30 21:59:07 +000020307fi
20308rm -f conftest.$ac_objext conftest.$ac_ext
20309else
20310 cat >conftest.$ac_ext <<_ACEOF
20311#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020317int
20318main ()
20319{
20320 /* Are we little or big endian? From Harbison&Steele. */
20321 union
20322 {
20323 long l;
20324 char c[sizeof (long)];
20325 } u;
20326 u.l = 1;
20327 exit (u.c[sizeof (long) - 1] == 1);
20328}
20329_ACEOF
20330rm -f conftest$ac_exeext
20331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20332 (eval $ac_link) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_c_bigendian=no
20342else
20343 echo "$as_me: program exited with status $ac_status" >&5
20344echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020345sed 's/^/| /' conftest.$ac_ext >&5
20346
John Criswell7a73b802003-06-30 21:59:07 +000020347( exit $ac_status )
20348ac_cv_c_bigendian=yes
20349fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020350rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020351fi
20352fi
20353rm -f conftest.$ac_objext conftest.$ac_ext
20354fi
20355echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20356echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20357case $ac_cv_c_bigendian in
20358 yes)
20359 cat >>confdefs.h <<\_ACEOF
20360#define ENDIAN_BIG 1
20361_ACEOF
20362 ;;
20363 no)
20364 cat >>confdefs.h <<\_ACEOF
20365#define ENDIAN_LITTLE 1
20366_ACEOF
20367 ;;
20368 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020369 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020370presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020371echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020372presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20373 { (exit 1); exit 1; }; } ;;
20374esac
20375
20376
20377echo "$as_me:$LINENO: checking for pid_t" >&5
20378echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20379if test "${ac_cv_type_pid_t+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381else
20382 cat >conftest.$ac_ext <<_ACEOF
20383#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020384/* confdefs.h. */
20385_ACEOF
20386cat confdefs.h >>conftest.$ac_ext
20387cat >>conftest.$ac_ext <<_ACEOF
20388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020389$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020390int
20391main ()
20392{
20393if ((pid_t *) 0)
20394 return 0;
20395if (sizeof (pid_t))
20396 return 0;
20397 ;
20398 return 0;
20399}
20400_ACEOF
20401rm -f conftest.$ac_objext
20402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } &&
20407 { ac_try='test -s conftest.$ac_objext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_type_pid_t=yes
20414else
20415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020416sed 's/^/| /' conftest.$ac_ext >&5
20417
John Criswell7a73b802003-06-30 21:59:07 +000020418ac_cv_type_pid_t=no
20419fi
20420rm -f conftest.$ac_objext conftest.$ac_ext
20421fi
20422echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20423echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20424if test $ac_cv_type_pid_t = yes; then
20425 :
20426else
20427
20428cat >>confdefs.h <<_ACEOF
20429#define pid_t int
20430_ACEOF
20431
20432fi
20433
20434echo "$as_me:$LINENO: checking for size_t" >&5
20435echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20436if test "${ac_cv_type_size_t+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438else
20439 cat >conftest.$ac_ext <<_ACEOF
20440#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020446$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020447int
20448main ()
20449{
20450if ((size_t *) 0)
20451 return 0;
20452if (sizeof (size_t))
20453 return 0;
20454 ;
20455 return 0;
20456}
20457_ACEOF
20458rm -f conftest.$ac_objext
20459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>&5
20461 ac_status=$?
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -s conftest.$ac_objext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20470 ac_cv_type_size_t=yes
20471else
20472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020473sed 's/^/| /' conftest.$ac_ext >&5
20474
John Criswell7a73b802003-06-30 21:59:07 +000020475ac_cv_type_size_t=no
20476fi
20477rm -f conftest.$ac_objext conftest.$ac_ext
20478fi
20479echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20480echo "${ECHO_T}$ac_cv_type_size_t" >&6
20481if test $ac_cv_type_size_t = yes; then
20482 :
20483else
20484
20485cat >>confdefs.h <<_ACEOF
20486#define size_t unsigned
20487_ACEOF
20488
20489fi
20490
20491echo "$as_me:$LINENO: checking for int64_t" >&5
20492echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20493if test "${ac_cv_type_int64_t+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495else
20496 cat >conftest.$ac_ext <<_ACEOF
20497#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020498/* confdefs.h. */
20499_ACEOF
20500cat confdefs.h >>conftest.$ac_ext
20501cat >>conftest.$ac_ext <<_ACEOF
20502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020503$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020504int
20505main ()
20506{
20507if ((int64_t *) 0)
20508 return 0;
20509if (sizeof (int64_t))
20510 return 0;
20511 ;
20512 return 0;
20513}
20514_ACEOF
20515rm -f conftest.$ac_objext
20516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -s conftest.$ac_objext'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; }; then
20527 ac_cv_type_int64_t=yes
20528else
20529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020530sed 's/^/| /' conftest.$ac_ext >&5
20531
John Criswell7a73b802003-06-30 21:59:07 +000020532ac_cv_type_int64_t=no
20533fi
20534rm -f conftest.$ac_objext conftest.$ac_ext
20535fi
20536echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20537echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20538if test $ac_cv_type_int64_t = yes; then
20539
20540cat >>confdefs.h <<_ACEOF
20541#define HAVE_INT64_T 1
20542_ACEOF
20543
20544
20545else
20546 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20547echo "$as_me: error: Type int64_t required but not found" >&2;}
20548 { (exit 1); exit 1; }; }
20549fi
20550
20551echo "$as_me:$LINENO: checking for uint64_t" >&5
20552echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20553if test "${ac_cv_type_uint64_t+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20555else
20556 cat >conftest.$ac_ext <<_ACEOF
20557#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020558/* confdefs.h. */
20559_ACEOF
20560cat confdefs.h >>conftest.$ac_ext
20561cat >>conftest.$ac_ext <<_ACEOF
20562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020563$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020564int
20565main ()
20566{
20567if ((uint64_t *) 0)
20568 return 0;
20569if (sizeof (uint64_t))
20570 return 0;
20571 ;
20572 return 0;
20573}
20574_ACEOF
20575rm -f conftest.$ac_objext
20576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -s conftest.$ac_objext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_type_uint64_t=yes
20588else
20589 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020590sed 's/^/| /' conftest.$ac_ext >&5
20591
John Criswell7a73b802003-06-30 21:59:07 +000020592ac_cv_type_uint64_t=no
20593fi
20594rm -f conftest.$ac_objext conftest.$ac_ext
20595fi
20596echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20597echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20598if test $ac_cv_type_uint64_t = yes; then
20599
20600cat >>confdefs.h <<_ACEOF
20601#define HAVE_UINT64_T 1
20602_ACEOF
20603
20604
20605else
20606 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20607echo "$as_me: error: Type uint64_t required but not found" >&2;}
20608 { (exit 1); exit 1; }; }
20609fi
20610
20611echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20612echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20613if test "${ac_cv_header_time+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615else
20616 cat >conftest.$ac_ext <<_ACEOF
20617#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020618/* confdefs.h. */
20619_ACEOF
20620cat confdefs.h >>conftest.$ac_ext
20621cat >>conftest.$ac_ext <<_ACEOF
20622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020623#include <sys/types.h>
20624#include <sys/time.h>
20625#include <time.h>
20626
John Criswell7a73b802003-06-30 21:59:07 +000020627int
20628main ()
20629{
20630if ((struct tm *) 0)
20631return 0;
20632 ;
20633 return 0;
20634}
20635_ACEOF
20636rm -f conftest.$ac_objext
20637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20638 (eval $ac_compile) 2>&5
20639 ac_status=$?
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); } &&
20642 { ac_try='test -s conftest.$ac_objext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20645 ac_status=$?
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 ac_cv_header_time=yes
20649else
20650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020651sed 's/^/| /' conftest.$ac_ext >&5
20652
John Criswell7a73b802003-06-30 21:59:07 +000020653ac_cv_header_time=no
20654fi
20655rm -f conftest.$ac_objext conftest.$ac_ext
20656fi
20657echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20658echo "${ECHO_T}$ac_cv_header_time" >&6
20659if test $ac_cv_header_time = yes; then
20660
20661cat >>confdefs.h <<\_ACEOF
20662#define TIME_WITH_SYS_TIME 1
20663_ACEOF
20664
20665fi
20666
20667echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20668echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20669if test "${ac_cv_struct_tm+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671else
20672 cat >conftest.$ac_ext <<_ACEOF
20673#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020679#include <sys/types.h>
20680#include <time.h>
20681
John Criswell7a73b802003-06-30 21:59:07 +000020682int
20683main ()
20684{
20685struct tm *tp; tp->tm_sec;
20686 ;
20687 return 0;
20688}
20689_ACEOF
20690rm -f conftest.$ac_objext
20691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692 (eval $ac_compile) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20702 ac_cv_struct_tm=time.h
20703else
20704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020705sed 's/^/| /' conftest.$ac_ext >&5
20706
John Criswell7a73b802003-06-30 21:59:07 +000020707ac_cv_struct_tm=sys/time.h
20708fi
20709rm -f conftest.$ac_objext conftest.$ac_ext
20710fi
20711echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20712echo "${ECHO_T}$ac_cv_struct_tm" >&6
20713if test $ac_cv_struct_tm = sys/time.h; then
20714
20715cat >>confdefs.h <<\_ACEOF
20716#define TM_IN_SYS_TIME 1
20717_ACEOF
20718
20719fi
20720
20721
John Criswell7a73b802003-06-30 21:59:07 +000020722echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20723echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20724if test "${ac_cv_cxx_namespaces+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726else
20727
20728
20729 ac_ext=cc
20730ac_cpp='$CXXCPP $CPPFLAGS'
20731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20734
20735 cat >conftest.$ac_ext <<_ACEOF
20736#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020737/* confdefs.h. */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020742namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020743int
20744main ()
20745{
20746using namespace Outer::Inner; return i;
20747 ;
20748 return 0;
20749}
20750_ACEOF
20751rm -f conftest.$ac_objext
20752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20753 (eval $ac_compile) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
20757 { ac_try='test -s conftest.$ac_objext'
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 ac_cv_cxx_namespaces=yes
20764else
20765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020766sed 's/^/| /' conftest.$ac_ext >&5
20767
John Criswell7a73b802003-06-30 21:59:07 +000020768ac_cv_cxx_namespaces=no
20769fi
20770rm -f conftest.$ac_objext conftest.$ac_ext
20771 ac_ext=c
20772ac_cpp='$CPP $CPPFLAGS'
20773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775ac_compiler_gnu=$ac_cv_c_compiler_gnu
20776
20777
20778fi
20779echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20780echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20781if test "$ac_cv_cxx_namespaces" = yes; then
20782
20783cat >>confdefs.h <<\_ACEOF
20784#define HAVE_NAMESPACES
20785_ACEOF
20786
20787fi
20788
20789echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20790echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20791if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20793else
20794
20795
20796
20797 ac_ext=cc
20798ac_cpp='$CXXCPP $CPPFLAGS'
20799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20802
20803 cat >conftest.$ac_ext <<_ACEOF
20804#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020805/* confdefs.h. */
20806_ACEOF
20807cat confdefs.h >>conftest.$ac_ext
20808cat >>conftest.$ac_ext <<_ACEOF
20809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020810#include <ext/hash_map>
20811#ifdef HAVE_NAMESPACES
20812using namespace std;
20813#endif
John Criswell7a73b802003-06-30 21:59:07 +000020814int
20815main ()
20816{
20817hash_map<int, int> t; return 0;
20818 ;
20819 return 0;
20820}
20821_ACEOF
20822rm -f conftest.$ac_objext
20823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20824 (eval $ac_compile) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -s conftest.$ac_objext'
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_cxx_have_ext_hash_map=std
20835else
20836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020837sed 's/^/| /' conftest.$ac_ext >&5
20838
John Criswell7a73b802003-06-30 21:59:07 +000020839ac_cv_cxx_have_ext_hash_map=no
20840fi
20841rm -f conftest.$ac_objext conftest.$ac_ext
20842 cat >conftest.$ac_ext <<_ACEOF
20843#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020849#include <ext/hash_map>
20850#ifdef HAVE_NAMESPACES
20851using namespace __gnu_cxx;
20852#endif
John Criswell7a73b802003-06-30 21:59:07 +000020853int
20854main ()
20855{
20856hash_map<int, int> t; return 0;
20857 ;
20858 return 0;
20859}
20860_ACEOF
20861rm -f conftest.$ac_objext
20862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20863 (eval $ac_compile) 2>&5
20864 ac_status=$?
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
20867 { ac_try='test -s conftest.$ac_objext'
20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20870 ac_status=$?
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20873 ac_cv_cxx_have_ext_hash_map=gnu
20874else
20875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020876sed 's/^/| /' conftest.$ac_ext >&5
20877
John Criswell7a73b802003-06-30 21:59:07 +000020878ac_cv_cxx_have_ext_hash_map=no
20879fi
20880rm -f conftest.$ac_objext conftest.$ac_ext
20881 ac_ext=c
20882ac_cpp='$CPP $CPPFLAGS'
20883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20885ac_compiler_gnu=$ac_cv_c_compiler_gnu
20886
20887
20888fi
20889echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20890echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20891if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20892
20893cat >>confdefs.h <<\_ACEOF
20894#define HAVE_STD_EXT_HASH_MAP
20895_ACEOF
20896
20897fi
20898if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20899
20900cat >>confdefs.h <<\_ACEOF
20901#define HAVE_GNU_EXT_HASH_MAP
20902_ACEOF
20903
20904fi
20905
20906echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20907echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20908if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910else
20911
20912
20913
20914 ac_ext=cc
20915ac_cpp='$CXXCPP $CPPFLAGS'
20916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20919
20920 cat >conftest.$ac_ext <<_ACEOF
20921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020927#include <ext/hash_set>
20928#ifdef HAVE_NAMESPACES
20929using namespace std;
20930#endif
John Criswell7a73b802003-06-30 21:59:07 +000020931int
20932main ()
20933{
20934hash_set<int> t; return 0;
20935 ;
20936 return 0;
20937}
20938_ACEOF
20939rm -f conftest.$ac_objext
20940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } &&
20945 { ac_try='test -s conftest.$ac_objext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 ac_cv_cxx_have_ext_hash_set=std
20952else
20953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020954sed 's/^/| /' conftest.$ac_ext >&5
20955
John Criswell7a73b802003-06-30 21:59:07 +000020956ac_cv_cxx_have_ext_hash_set=no
20957fi
20958rm -f conftest.$ac_objext conftest.$ac_ext
20959 cat >conftest.$ac_ext <<_ACEOF
20960#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020966#include <ext/hash_set>
20967#ifdef HAVE_NAMESPACES
20968using namespace __gnu_cxx;
20969#endif
John Criswell7a73b802003-06-30 21:59:07 +000020970int
20971main ()
20972{
20973hash_set<int> t; return 0;
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext
20979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980 (eval $ac_compile) 2>&5
20981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -s conftest.$ac_objext'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; }; then
20990 ac_cv_cxx_have_ext_hash_set=gnu
20991else
20992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020993sed 's/^/| /' conftest.$ac_ext >&5
20994
John Criswell7a73b802003-06-30 21:59:07 +000020995ac_cv_cxx_have_ext_hash_set=no
20996fi
20997rm -f conftest.$ac_objext conftest.$ac_ext
20998 ac_ext=c
20999ac_cpp='$CPP $CPPFLAGS'
21000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_c_compiler_gnu
21003
21004
21005fi
21006echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21007echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21008if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21009
21010cat >>confdefs.h <<\_ACEOF
21011#define HAVE_STD_EXT_HASH_SET
21012_ACEOF
21013
21014fi
21015if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21016
21017cat >>confdefs.h <<\_ACEOF
21018#define HAVE_GNU_EXT_HASH_SET
21019_ACEOF
21020
21021fi
21022
21023echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21024echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21025if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027else
21028
21029
21030
21031 ac_ext=cc
21032ac_cpp='$CXXCPP $CPPFLAGS'
21033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21036
21037 cat >conftest.$ac_ext <<_ACEOF
21038#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021039/* confdefs.h. */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021044#include <ext/slist>
21045#ifdef HAVE_NAMESPACES
21046using namespace std;
21047#endif
John Criswell7a73b802003-06-30 21:59:07 +000021048int
21049main ()
21050{
21051slist<int> s; return 0;
21052 ;
21053 return 0;
21054}
21055_ACEOF
21056rm -f conftest.$ac_objext
21057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21058 (eval $ac_compile) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try='test -s conftest.$ac_objext'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_cxx_have_ext_slist=std
21069else
21070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021071sed 's/^/| /' conftest.$ac_ext >&5
21072
John Criswell7a73b802003-06-30 21:59:07 +000021073ac_cv_cxx_have_ext_slist=no
21074fi
21075rm -f conftest.$ac_objext conftest.$ac_ext
21076 cat >conftest.$ac_ext <<_ACEOF
21077#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021078/* confdefs.h. */
21079_ACEOF
21080cat confdefs.h >>conftest.$ac_ext
21081cat >>conftest.$ac_ext <<_ACEOF
21082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021083#include <ext/slist>
21084#ifdef HAVE_NAMESPACES
21085using namespace __gnu_cxx;
21086#endif
John Criswell7a73b802003-06-30 21:59:07 +000021087int
21088main ()
21089{
21090slist<int> s; return 0;
21091 ;
21092 return 0;
21093}
21094_ACEOF
21095rm -f conftest.$ac_objext
21096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
21101 { ac_try='test -s conftest.$ac_objext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_cxx_have_ext_slist=gnu
21108else
21109 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021110sed 's/^/| /' conftest.$ac_ext >&5
21111
John Criswell7a73b802003-06-30 21:59:07 +000021112ac_cv_cxx_have_ext_slist=no
21113fi
21114rm -f conftest.$ac_objext conftest.$ac_ext
21115
21116 ac_ext=c
21117ac_cpp='$CPP $CPPFLAGS'
21118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120ac_compiler_gnu=$ac_cv_c_compiler_gnu
21121
21122
21123fi
21124echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21125echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21126if test "$ac_cv_cxx_have_ext_slist" = std; then
21127
21128cat >>confdefs.h <<\_ACEOF
21129#define HAVE_EXT_SLIST std
21130_ACEOF
21131
21132fi
21133if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21134
21135cat >>confdefs.h <<\_ACEOF
21136#define HAVE_EXT_SLIST gnu
21137_ACEOF
21138
21139fi
21140
21141echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21142echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21143if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145else
21146
21147
21148
21149 ac_ext=cc
21150ac_cpp='$CXXCPP $CPPFLAGS'
21151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21154
21155 cat >conftest.$ac_ext <<_ACEOF
21156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021157/* confdefs.h. */
21158_ACEOF
21159cat confdefs.h >>conftest.$ac_ext
21160cat >>conftest.$ac_ext <<_ACEOF
21161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021162#include <iterator>
21163#ifdef HAVE_NAMESPACES
21164using namespace std;
21165#endif
John Criswell7a73b802003-06-30 21:59:07 +000021166int
21167main ()
21168{
21169iterator<int,int,int> t; return 0;
21170 ;
21171 return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_cxx_have_std_iterator=yes
21187else
21188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021189sed 's/^/| /' conftest.$ac_ext >&5
21190
John Criswell7a73b802003-06-30 21:59:07 +000021191ac_cv_cxx_have_std_iterator=no
21192fi
21193rm -f conftest.$ac_objext conftest.$ac_ext
21194 ac_ext=c
21195ac_cpp='$CPP $CPPFLAGS'
21196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198ac_compiler_gnu=$ac_cv_c_compiler_gnu
21199
21200
21201fi
21202echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21203echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21204if test "$ac_cv_cxx_have_std_iterator" = yes; then
21205
21206cat >>confdefs.h <<\_ACEOF
21207#define HAVE_STD_ITERATOR
21208_ACEOF
21209
21210fi
21211
21212echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21213echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21214if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216else
21217
21218
21219
21220 ac_ext=cc
21221ac_cpp='$CXXCPP $CPPFLAGS'
21222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21225
21226 cat >conftest.$ac_ext <<_ACEOF
21227#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021233#include <iterator>
21234#ifdef HAVE_NAMESPACES
21235using namespace std;
21236#endif
John Criswell7a73b802003-06-30 21:59:07 +000021237int
21238main ()
21239{
John Criswellc78022e2003-07-29 19:11:58 +000021240bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext
21246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -s conftest.$ac_objext'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_cv_cxx_have_bi_iterator=yes
21258else
21259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021260sed 's/^/| /' conftest.$ac_ext >&5
21261
John Criswell7a73b802003-06-30 21:59:07 +000021262ac_cv_cxx_have_bi_iterator=no
21263fi
21264rm -f conftest.$ac_objext conftest.$ac_ext
21265 ac_ext=c
21266ac_cpp='$CPP $CPPFLAGS'
21267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21269ac_compiler_gnu=$ac_cv_c_compiler_gnu
21270
21271
21272fi
21273echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21274echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21275if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21276
21277cat >>confdefs.h <<\_ACEOF
21278#define HAVE_BI_ITERATOR
21279_ACEOF
21280
21281fi
21282
21283echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21284echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21285if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21287else
21288
21289
21290
21291 ac_ext=cc
21292ac_cpp='$CXXCPP $CPPFLAGS'
21293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21296
21297 cat >conftest.$ac_ext <<_ACEOF
21298#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021299/* confdefs.h. */
21300_ACEOF
21301cat confdefs.h >>conftest.$ac_ext
21302cat >>conftest.$ac_ext <<_ACEOF
21303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021304#include <iterator>
21305#ifdef HAVE_NAMESPACES
21306using namespace std;
21307#endif
John Criswell7a73b802003-06-30 21:59:07 +000021308int
21309main ()
21310{
John Criswellc78022e2003-07-29 19:11:58 +000021311forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021312 ;
21313 return 0;
21314}
21315_ACEOF
21316rm -f conftest.$ac_objext
21317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21318 (eval $ac_compile) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
21322 { ac_try='test -s conftest.$ac_objext'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21328 ac_cv_cxx_have_fwd_iterator=yes
21329else
21330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021331sed 's/^/| /' conftest.$ac_ext >&5
21332
John Criswell7a73b802003-06-30 21:59:07 +000021333ac_cv_cxx_have_fwd_iterator=no
21334fi
21335rm -f conftest.$ac_objext conftest.$ac_ext
21336 ac_ext=c
21337ac_cpp='$CPP $CPPFLAGS'
21338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340ac_compiler_gnu=$ac_cv_c_compiler_gnu
21341
21342
21343fi
21344echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21345echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21346if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21347
21348cat >>confdefs.h <<\_ACEOF
21349#define HAVE_FWD_ITERATOR
21350_ACEOF
21351
21352fi
21353
21354
21355# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21356# for constant arguments. Useless!
21357echo "$as_me:$LINENO: checking for working alloca.h" >&5
21358echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21359if test "${ac_cv_working_alloca_h+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361else
21362 cat >conftest.$ac_ext <<_ACEOF
21363#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021364/* confdefs.h. */
21365_ACEOF
21366cat confdefs.h >>conftest.$ac_ext
21367cat >>conftest.$ac_ext <<_ACEOF
21368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021369#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021370int
21371main ()
21372{
21373char *p = (char *) alloca (2 * sizeof (int));
21374 ;
21375 return 0;
21376}
21377_ACEOF
21378rm -f conftest.$ac_objext conftest$ac_exeext
21379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21380 (eval $ac_link) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } &&
21384 { ac_try='test -s conftest$ac_exeext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_cv_working_alloca_h=yes
21391else
21392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021393sed 's/^/| /' conftest.$ac_ext >&5
21394
John Criswell7a73b802003-06-30 21:59:07 +000021395ac_cv_working_alloca_h=no
21396fi
21397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21398fi
21399echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21400echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21401if test $ac_cv_working_alloca_h = yes; then
21402
21403cat >>confdefs.h <<\_ACEOF
21404#define HAVE_ALLOCA_H 1
21405_ACEOF
21406
21407fi
21408
21409echo "$as_me:$LINENO: checking for alloca" >&5
21410echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21411if test "${ac_cv_func_alloca_works+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#ifdef __GNUC__
21422# define alloca __builtin_alloca
21423#else
21424# ifdef _MSC_VER
21425# include <malloc.h>
21426# define alloca _alloca
21427# else
21428# if HAVE_ALLOCA_H
21429# include <alloca.h>
21430# else
21431# ifdef _AIX
21432 #pragma alloca
21433# else
21434# ifndef alloca /* predefined by HP cc +Olibcalls */
21435char *alloca ();
21436# endif
21437# endif
21438# endif
21439# endif
21440#endif
21441
John Criswell7a73b802003-06-30 21:59:07 +000021442int
21443main ()
21444{
21445char *p = (char *) alloca (1);
21446 ;
21447 return 0;
21448}
21449_ACEOF
21450rm -f conftest.$ac_objext conftest$ac_exeext
21451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21452 (eval $ac_link) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
21456 { ac_try='test -s conftest$ac_exeext'
21457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); }; }; then
21462 ac_cv_func_alloca_works=yes
21463else
21464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021465sed 's/^/| /' conftest.$ac_ext >&5
21466
John Criswell7a73b802003-06-30 21:59:07 +000021467ac_cv_func_alloca_works=no
21468fi
21469rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21470fi
21471echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21472echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21473
21474if test $ac_cv_func_alloca_works = yes; then
21475
21476cat >>confdefs.h <<\_ACEOF
21477#define HAVE_ALLOCA 1
21478_ACEOF
21479
21480else
21481 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21482# that cause trouble. Some versions do not even contain alloca or
21483# contain a buggy version. If you still want to use their alloca,
21484# use ar to extract alloca.o from them instead of compiling alloca.c.
21485
21486ALLOCA=alloca.$ac_objext
21487
21488cat >>confdefs.h <<\_ACEOF
21489#define C_ALLOCA 1
21490_ACEOF
21491
21492
21493echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21494echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21495if test "${ac_cv_os_cray+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21497else
21498 cat >conftest.$ac_ext <<_ACEOF
21499#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021500/* confdefs.h. */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021505#if defined(CRAY) && ! defined(CRAY2)
21506webecray
21507#else
21508wenotbecray
21509#endif
21510
21511_ACEOF
21512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021513 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021514 ac_cv_os_cray=yes
21515else
21516 ac_cv_os_cray=no
21517fi
21518rm -f conftest*
21519
21520fi
21521echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21522echo "${ECHO_T}$ac_cv_os_cray" >&6
21523if test $ac_cv_os_cray = yes; then
21524 for ac_func in _getb67 GETB67 getb67; do
21525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21526echo "$as_me:$LINENO: checking for $ac_func" >&5
21527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21528if eval "test \"\${$as_ac_var+set}\" = set"; then
21529 echo $ECHO_N "(cached) $ECHO_C" >&6
21530else
21531 cat >conftest.$ac_ext <<_ACEOF
21532#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021533/* confdefs.h. */
21534_ACEOF
21535cat confdefs.h >>conftest.$ac_ext
21536cat >>conftest.$ac_ext <<_ACEOF
21537/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021538/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021539 which can conflict with char $ac_func (); below.
21540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21541 <limits.h> exists even on freestanding compilers. */
21542#ifdef __STDC__
21543# include <limits.h>
21544#else
21545# include <assert.h>
21546#endif
John Criswell7a73b802003-06-30 21:59:07 +000021547/* Override any gcc2 internal prototype to avoid an error. */
21548#ifdef __cplusplus
21549extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021550{
John Criswell7a73b802003-06-30 21:59:07 +000021551#endif
21552/* We use char because int might match the return type of a gcc2
21553 builtin and then its argument prototype would still apply. */
21554char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021555/* The GNU C library defines this for functions which it implements
21556 to always fail with ENOSYS. Some functions are actually named
21557 something starting with __ and the normal name is an alias. */
21558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21559choke me
21560#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021561char (*f) () = $ac_func;
21562#endif
21563#ifdef __cplusplus
21564}
John Criswell7a73b802003-06-30 21:59:07 +000021565#endif
21566
John Criswell0c38eaf2003-09-10 15:17:25 +000021567int
21568main ()
21569{
21570return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021571 ;
21572 return 0;
21573}
21574_ACEOF
21575rm -f conftest.$ac_objext conftest$ac_exeext
21576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21577 (eval $ac_link) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -s conftest$ac_exeext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 eval "$as_ac_var=yes"
21588else
21589 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021590sed 's/^/| /' conftest.$ac_ext >&5
21591
John Criswell7a73b802003-06-30 21:59:07 +000021592eval "$as_ac_var=no"
21593fi
21594rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21595fi
21596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21598if test `eval echo '${'$as_ac_var'}'` = yes; then
21599
21600cat >>confdefs.h <<_ACEOF
21601#define CRAY_STACKSEG_END $ac_func
21602_ACEOF
21603
21604 break
21605fi
21606
21607 done
21608fi
21609
21610echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21611echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21612if test "${ac_cv_c_stack_direction+set}" = set; then
21613 echo $ECHO_N "(cached) $ECHO_C" >&6
21614else
21615 if test "$cross_compiling" = yes; then
21616 ac_cv_c_stack_direction=0
21617else
21618 cat >conftest.$ac_ext <<_ACEOF
21619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021620/* confdefs.h. */
21621_ACEOF
21622cat confdefs.h >>conftest.$ac_ext
21623cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021625int
21626find_stack_direction ()
21627{
21628 static char *addr = 0;
21629 auto char dummy;
21630 if (addr == 0)
21631 {
21632 addr = &dummy;
21633 return find_stack_direction ();
21634 }
21635 else
21636 return (&dummy > addr) ? 1 : -1;
21637}
21638
21639int
21640main ()
21641{
21642 exit (find_stack_direction () < 0);
21643}
21644_ACEOF
21645rm -f conftest$ac_exeext
21646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652 (eval $ac_try) 2>&5
21653 ac_status=$?
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); }; }; then
21656 ac_cv_c_stack_direction=1
21657else
21658 echo "$as_me: program exited with status $ac_status" >&5
21659echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021660sed 's/^/| /' conftest.$ac_ext >&5
21661
John Criswell7a73b802003-06-30 21:59:07 +000021662( exit $ac_status )
21663ac_cv_c_stack_direction=-1
21664fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021665rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021666fi
21667fi
21668echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21669echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21670
21671cat >>confdefs.h <<_ACEOF
21672#define STACK_DIRECTION $ac_cv_c_stack_direction
21673_ACEOF
21674
21675
21676fi
21677
21678if test $ac_cv_c_compiler_gnu = yes; then
21679 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21680echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21681if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21683else
21684 ac_pattern="Autoconf.*'x'"
21685 cat >conftest.$ac_ext <<_ACEOF
21686#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021687/* confdefs.h. */
21688_ACEOF
21689cat confdefs.h >>conftest.$ac_ext
21690cat >>conftest.$ac_ext <<_ACEOF
21691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021692#include <sgtty.h>
21693Autoconf TIOCGETP
21694_ACEOF
21695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021696 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021697 ac_cv_prog_gcc_traditional=yes
21698else
21699 ac_cv_prog_gcc_traditional=no
21700fi
21701rm -f conftest*
21702
21703
21704 if test $ac_cv_prog_gcc_traditional = no; then
21705 cat >conftest.$ac_ext <<_ACEOF
21706#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021712#include <termio.h>
21713Autoconf TCGETA
21714_ACEOF
21715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021716 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021717 ac_cv_prog_gcc_traditional=yes
21718fi
21719rm -f conftest*
21720
21721 fi
21722fi
21723echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21724echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21725 if test $ac_cv_prog_gcc_traditional = yes; then
21726 CC="$CC -traditional"
21727 fi
21728fi
21729
21730echo "$as_me:$LINENO: checking for working memcmp" >&5
21731echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21732if test "${ac_cv_func_memcmp_working+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21734else
21735 if test "$cross_compiling" = yes; then
21736 ac_cv_func_memcmp_working=no
21737else
21738 cat >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
John Criswell7a73b802003-06-30 21:59:07 +000021746int
21747main ()
21748{
21749
21750 /* Some versions of memcmp are not 8-bit clean. */
21751 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21752 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21753 exit (1);
21754
21755 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21756 or more and with at least one buffer not starting on a 4-byte boundary.
21757 William Lewis provided this test program. */
21758 {
21759 char foo[21];
21760 char bar[21];
21761 int i;
21762 for (i = 0; i < 4; i++)
21763 {
21764 char *a = foo + i;
21765 char *b = bar + i;
21766 strcpy (a, "--------01111111");
21767 strcpy (b, "--------10000000");
21768 if (memcmp (a, b, 16) >= 0)
21769 exit (1);
21770 }
21771 exit (0);
21772 }
21773
21774 ;
21775 return 0;
21776}
21777_ACEOF
21778rm -f conftest$ac_exeext
21779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21780 (eval $ac_link) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785 (eval $ac_try) 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21789 ac_cv_func_memcmp_working=yes
21790else
21791 echo "$as_me: program exited with status $ac_status" >&5
21792echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021793sed 's/^/| /' conftest.$ac_ext >&5
21794
John Criswell7a73b802003-06-30 21:59:07 +000021795( exit $ac_status )
21796ac_cv_func_memcmp_working=no
21797fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021798rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021799fi
21800fi
21801echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21802echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21803test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21804
21805
21806
21807for ac_header in stdlib.h unistd.h
21808do
21809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21810if eval "test \"\${$as_ac_Header+set}\" = set"; then
21811 echo "$as_me:$LINENO: checking for $ac_header" >&5
21812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21813if eval "test \"\${$as_ac_Header+set}\" = set"; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815fi
21816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21818else
21819 # Is the header compilable?
21820echo "$as_me:$LINENO: checking $ac_header usability" >&5
21821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21822cat >conftest.$ac_ext <<_ACEOF
21823#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021824/* confdefs.h. */
21825_ACEOF
21826cat confdefs.h >>conftest.$ac_ext
21827cat >>conftest.$ac_ext <<_ACEOF
21828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021829$ac_includes_default
21830#include <$ac_header>
21831_ACEOF
21832rm -f conftest.$ac_objext
21833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21834 (eval $ac_compile) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -s conftest.$ac_objext'
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_header_compiler=yes
21845else
21846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021847sed 's/^/| /' conftest.$ac_ext >&5
21848
John Criswell7a73b802003-06-30 21:59:07 +000021849ac_header_compiler=no
21850fi
21851rm -f conftest.$ac_objext conftest.$ac_ext
21852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21853echo "${ECHO_T}$ac_header_compiler" >&6
21854
21855# Is the header present?
21856echo "$as_me:$LINENO: checking $ac_header presence" >&5
21857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21858cat >conftest.$ac_ext <<_ACEOF
21859#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021860/* confdefs.h. */
21861_ACEOF
21862cat confdefs.h >>conftest.$ac_ext
21863cat >>conftest.$ac_ext <<_ACEOF
21864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021865#include <$ac_header>
21866_ACEOF
21867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21869 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021870 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } >/dev/null; then
21875 if test -s conftest.err; then
21876 ac_cpp_err=$ac_c_preproc_warn_flag
21877 else
21878 ac_cpp_err=
21879 fi
21880else
21881 ac_cpp_err=yes
21882fi
21883if test -z "$ac_cpp_err"; then
21884 ac_header_preproc=yes
21885else
21886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021887sed 's/^/| /' conftest.$ac_ext >&5
21888
John Criswell7a73b802003-06-30 21:59:07 +000021889 ac_header_preproc=no
21890fi
21891rm -f conftest.err conftest.$ac_ext
21892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893echo "${ECHO_T}$ac_header_preproc" >&6
21894
21895# So? What about this header?
21896case $ac_header_compiler:$ac_header_preproc in
21897 yes:no )
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21902 (
21903 cat <<\_ASBOX
21904## ------------------------------------ ##
21905## Report this to bug-autoconf@gnu.org. ##
21906## ------------------------------------ ##
21907_ASBOX
21908 ) |
21909 sed "s/^/$as_me: WARNING: /" >&2
21910 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021911 no:yes )
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21918 (
21919 cat <<\_ASBOX
21920## ------------------------------------ ##
21921## Report this to bug-autoconf@gnu.org. ##
21922## ------------------------------------ ##
21923_ASBOX
21924 ) |
21925 sed "s/^/$as_me: WARNING: /" >&2
21926 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021927esac
21928echo "$as_me:$LINENO: checking for $ac_header" >&5
21929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21930if eval "test \"\${$as_ac_Header+set}\" = set"; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932else
21933 eval "$as_ac_Header=$ac_header_preproc"
21934fi
21935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21937
21938fi
21939if test `eval echo '${'$as_ac_Header'}'` = yes; then
21940 cat >>confdefs.h <<_ACEOF
21941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21942_ACEOF
21943
21944fi
21945
21946done
21947
21948
21949for ac_func in getpagesize
21950do
21951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21952echo "$as_me:$LINENO: checking for $ac_func" >&5
21953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21954if eval "test \"\${$as_ac_var+set}\" = set"; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956else
21957 cat >conftest.$ac_ext <<_ACEOF
21958#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021959/* confdefs.h. */
21960_ACEOF
21961cat confdefs.h >>conftest.$ac_ext
21962cat >>conftest.$ac_ext <<_ACEOF
21963/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021964/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021965 which can conflict with char $ac_func (); below.
21966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21967 <limits.h> exists even on freestanding compilers. */
21968#ifdef __STDC__
21969# include <limits.h>
21970#else
21971# include <assert.h>
21972#endif
John Criswell7a73b802003-06-30 21:59:07 +000021973/* Override any gcc2 internal prototype to avoid an error. */
21974#ifdef __cplusplus
21975extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021976{
John Criswell7a73b802003-06-30 21:59:07 +000021977#endif
21978/* We use char because int might match the return type of a gcc2
21979 builtin and then its argument prototype would still apply. */
21980char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021981/* The GNU C library defines this for functions which it implements
21982 to always fail with ENOSYS. Some functions are actually named
21983 something starting with __ and the normal name is an alias. */
21984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21985choke me
21986#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021987char (*f) () = $ac_func;
21988#endif
21989#ifdef __cplusplus
21990}
John Criswell7a73b802003-06-30 21:59:07 +000021991#endif
21992
John Criswell0c38eaf2003-09-10 15:17:25 +000021993int
21994main ()
21995{
21996return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021997 ;
21998 return 0;
21999}
22000_ACEOF
22001rm -f conftest.$ac_objext conftest$ac_exeext
22002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22003 (eval $ac_link) 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -s conftest$ac_exeext'
22008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; }; then
22013 eval "$as_ac_var=yes"
22014else
22015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022016sed 's/^/| /' conftest.$ac_ext >&5
22017
John Criswell7a73b802003-06-30 21:59:07 +000022018eval "$as_ac_var=no"
22019fi
22020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22021fi
22022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22024if test `eval echo '${'$as_ac_var'}'` = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22027_ACEOF
22028
22029fi
22030done
22031
22032echo "$as_me:$LINENO: checking for working mmap" >&5
22033echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22034if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22036else
22037 if test "$cross_compiling" = yes; then
22038 ac_cv_func_mmap_fixed_mapped=no
22039else
22040 cat >conftest.$ac_ext <<_ACEOF
22041#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022047$ac_includes_default
22048/* malloc might have been renamed as rpl_malloc. */
22049#undef malloc
22050
22051/* Thanks to Mike Haertel and Jim Avera for this test.
22052 Here is a matrix of mmap possibilities:
22053 mmap private not fixed
22054 mmap private fixed at somewhere currently unmapped
22055 mmap private fixed at somewhere already mapped
22056 mmap shared not fixed
22057 mmap shared fixed at somewhere currently unmapped
22058 mmap shared fixed at somewhere already mapped
22059 For private mappings, we should verify that changes cannot be read()
22060 back from the file, nor mmap's back from the file at a different
22061 address. (There have been systems where private was not correctly
22062 implemented like the infamous i386 svr4.0, and systems where the
22063 VM page cache was not coherent with the file system buffer cache
22064 like early versions of FreeBSD and possibly contemporary NetBSD.)
22065 For shared mappings, we should conversely verify that changes get
22066 propagated back to all the places they're supposed to be.
22067
22068 Grep wants private fixed already mapped.
22069 The main things grep needs to know about mmap are:
22070 * does it exist and is it safe to write into the mmap'd area
22071 * how to use it (BSD variants) */
22072
22073#include <fcntl.h>
22074#include <sys/mman.h>
22075
22076#if !STDC_HEADERS && !HAVE_STDLIB_H
22077char *malloc ();
22078#endif
22079
22080/* This mess was copied from the GNU getpagesize.h. */
22081#if !HAVE_GETPAGESIZE
22082/* Assume that all systems that can run configure have sys/param.h. */
22083# if !HAVE_SYS_PARAM_H
22084# define HAVE_SYS_PARAM_H 1
22085# endif
22086
22087# ifdef _SC_PAGESIZE
22088# define getpagesize() sysconf(_SC_PAGESIZE)
22089# else /* no _SC_PAGESIZE */
22090# if HAVE_SYS_PARAM_H
22091# include <sys/param.h>
22092# ifdef EXEC_PAGESIZE
22093# define getpagesize() EXEC_PAGESIZE
22094# else /* no EXEC_PAGESIZE */
22095# ifdef NBPG
22096# define getpagesize() NBPG * CLSIZE
22097# ifndef CLSIZE
22098# define CLSIZE 1
22099# endif /* no CLSIZE */
22100# else /* no NBPG */
22101# ifdef NBPC
22102# define getpagesize() NBPC
22103# else /* no NBPC */
22104# ifdef PAGESIZE
22105# define getpagesize() PAGESIZE
22106# endif /* PAGESIZE */
22107# endif /* no NBPC */
22108# endif /* no NBPG */
22109# endif /* no EXEC_PAGESIZE */
22110# else /* no HAVE_SYS_PARAM_H */
22111# define getpagesize() 8192 /* punt totally */
22112# endif /* no HAVE_SYS_PARAM_H */
22113# endif /* no _SC_PAGESIZE */
22114
22115#endif /* no HAVE_GETPAGESIZE */
22116
22117int
22118main ()
22119{
22120 char *data, *data2, *data3;
22121 int i, pagesize;
22122 int fd;
22123
22124 pagesize = getpagesize ();
22125
22126 /* First, make a file with some known garbage in it. */
22127 data = (char *) malloc (pagesize);
22128 if (!data)
22129 exit (1);
22130 for (i = 0; i < pagesize; ++i)
22131 *(data + i) = rand ();
22132 umask (0);
22133 fd = creat ("conftest.mmap", 0600);
22134 if (fd < 0)
22135 exit (1);
22136 if (write (fd, data, pagesize) != pagesize)
22137 exit (1);
22138 close (fd);
22139
22140 /* Next, try to mmap the file at a fixed address which already has
22141 something else allocated at it. If we can, also make sure that
22142 we see the same garbage. */
22143 fd = open ("conftest.mmap", O_RDWR);
22144 if (fd < 0)
22145 exit (1);
22146 data2 = (char *) malloc (2 * pagesize);
22147 if (!data2)
22148 exit (1);
22149 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22152 exit (1);
22153 for (i = 0; i < pagesize; ++i)
22154 if (*(data + i) != *(data2 + i))
22155 exit (1);
22156
22157 /* Finally, make sure that changes to the mapped area do not
22158 percolate back to the file as seen by read(). (This is a bug on
22159 some variants of i386 svr4.0.) */
22160 for (i = 0; i < pagesize; ++i)
22161 *(data2 + i) = *(data2 + i) + 1;
22162 data3 = (char *) malloc (pagesize);
22163 if (!data3)
22164 exit (1);
22165 if (read (fd, data3, pagesize) != pagesize)
22166 exit (1);
22167 for (i = 0; i < pagesize; ++i)
22168 if (*(data + i) != *(data3 + i))
22169 exit (1);
22170 close (fd);
22171 exit (0);
22172}
22173_ACEOF
22174rm -f conftest$ac_exeext
22175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22176 (eval $ac_link) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_func_mmap_fixed_mapped=yes
22186else
22187 echo "$as_me: program exited with status $ac_status" >&5
22188echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022189sed 's/^/| /' conftest.$ac_ext >&5
22190
John Criswell7a73b802003-06-30 21:59:07 +000022191( exit $ac_status )
22192ac_cv_func_mmap_fixed_mapped=no
22193fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022194rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022195fi
22196fi
22197echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22198echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22199if test $ac_cv_func_mmap_fixed_mapped = yes; then
22200
22201cat >>confdefs.h <<\_ACEOF
22202#define HAVE_MMAP 1
22203_ACEOF
22204
22205fi
22206rm -f conftest.mmap
22207
22208echo "$as_me:$LINENO: checking for mmap of files" >&5
22209echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22210if test "${ac_cv_func_mmap_file+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22212else
22213
22214
22215 ac_ext=c
22216ac_cpp='$CPP $CPPFLAGS'
22217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22219ac_compiler_gnu=$ac_cv_c_compiler_gnu
22220
22221 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22223See \`config.log' for more details." >&5
22224echo "$as_me: error: cannot run test program while cross compiling
22225See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022226 { (exit 1); exit 1; }; }
22227else
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
22236#ifdef HAVE_SYS_MMAN_H
22237#include <sys/mman.h>
22238#endif
22239
22240#ifdef HAVE_SYS_TYPES_H
22241#include <sys/types.h>
22242#endif
22243
22244#ifdef HAVE_FCNTL_H
22245#include <fcntl.h>
22246#endif
22247
22248 int fd;
22249 int main () {
22250 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22251_ACEOF
22252rm -f conftest$ac_exeext
22253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22254 (eval $ac_link) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 ac_cv_func_mmap_file=yes
22264else
22265 echo "$as_me: program exited with status $ac_status" >&5
22266echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022267sed 's/^/| /' conftest.$ac_ext >&5
22268
John Criswell7a73b802003-06-30 21:59:07 +000022269( exit $ac_status )
22270ac_cv_func_mmap_file=no
22271fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022272rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022273fi
22274 ac_ext=c
22275ac_cpp='$CPP $CPPFLAGS'
22276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22278ac_compiler_gnu=$ac_cv_c_compiler_gnu
22279
22280
22281fi
22282echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22283echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22284if test "$ac_cv_func_mmap_file" = yes; then
22285 cat >>confdefs.h <<\_ACEOF
22286#define HAVE_MMAP_FILE 1
22287_ACEOF
22288
22289 MMAP_FILE=yes
22290
22291fi
22292
22293if test ${ac_cv_func_mmap_file} = "no"
22294then
22295 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22296echo "$as_me: error: mmap() of files required but not found" >&2;}
22297 { (exit 1); exit 1; }; }
22298fi
22299echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22300echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22301if test "${ac_cv_header_mmap_anon+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22303else
22304
22305
22306 ac_ext=c
22307ac_cpp='$CPP $CPPFLAGS'
22308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22310ac_compiler_gnu=$ac_cv_c_compiler_gnu
22311
22312 cat >conftest.$ac_ext <<_ACEOF
22313#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022319#include <sys/mman.h>
22320 #include <unistd.h>
22321 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022322int
22323main ()
22324{
22325mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22326 ;
22327 return 0;
22328}
22329_ACEOF
22330rm -f conftest.$ac_objext
22331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22332 (eval $ac_compile) 2>&5
22333 ac_status=$?
22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
22336 { ac_try='test -s conftest.$ac_objext'
22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338 (eval $ac_try) 2>&5
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_header_mmap_anon=yes
22343else
22344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022345sed 's/^/| /' conftest.$ac_ext >&5
22346
John Criswell7a73b802003-06-30 21:59:07 +000022347ac_cv_header_mmap_anon=no
22348fi
22349rm -f conftest.$ac_objext conftest.$ac_ext
22350 ac_ext=c
22351ac_cpp='$CPP $CPPFLAGS'
22352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22354ac_compiler_gnu=$ac_cv_c_compiler_gnu
22355
22356
22357fi
22358echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22359echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22360if test "$ac_cv_header_mmap_anon" = yes; then
22361 cat >>confdefs.h <<\_ACEOF
22362#define HAVE_MMAP_ANONYMOUS 1
22363_ACEOF
22364
22365fi
22366
22367echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22368echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22369if test "${ac_cv_type_signal+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371else
22372 cat >conftest.$ac_ext <<_ACEOF
22373#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022374/* confdefs.h. */
22375_ACEOF
22376cat confdefs.h >>conftest.$ac_ext
22377cat >>conftest.$ac_ext <<_ACEOF
22378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022379#include <sys/types.h>
22380#include <signal.h>
22381#ifdef signal
22382# undef signal
22383#endif
22384#ifdef __cplusplus
22385extern "C" void (*signal (int, void (*)(int)))(int);
22386#else
22387void (*signal ()) ();
22388#endif
22389
John Criswell7a73b802003-06-30 21:59:07 +000022390int
22391main ()
22392{
22393int i;
22394 ;
22395 return 0;
22396}
22397_ACEOF
22398rm -f conftest.$ac_objext
22399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22400 (eval $ac_compile) 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } &&
22404 { ac_try='test -s conftest.$ac_objext'
22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; }; then
22410 ac_cv_type_signal=void
22411else
22412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022413sed 's/^/| /' conftest.$ac_ext >&5
22414
John Criswell7a73b802003-06-30 21:59:07 +000022415ac_cv_type_signal=int
22416fi
22417rm -f conftest.$ac_objext conftest.$ac_ext
22418fi
22419echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22420echo "${ECHO_T}$ac_cv_type_signal" >&6
22421
22422cat >>confdefs.h <<_ACEOF
22423#define RETSIGTYPE $ac_cv_type_signal
22424_ACEOF
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22437do
22438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22439echo "$as_me:$LINENO: checking for $ac_func" >&5
22440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22441if eval "test \"\${$as_ac_var+set}\" = set"; then
22442 echo $ECHO_N "(cached) $ECHO_C" >&6
22443else
22444 cat >conftest.$ac_ext <<_ACEOF
22445#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022446/* confdefs.h. */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022451/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022452 which can conflict with char $ac_func (); below.
22453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22454 <limits.h> exists even on freestanding compilers. */
22455#ifdef __STDC__
22456# include <limits.h>
22457#else
22458# include <assert.h>
22459#endif
John Criswell7a73b802003-06-30 21:59:07 +000022460/* Override any gcc2 internal prototype to avoid an error. */
22461#ifdef __cplusplus
22462extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022463{
John Criswell7a73b802003-06-30 21:59:07 +000022464#endif
22465/* We use char because int might match the return type of a gcc2
22466 builtin and then its argument prototype would still apply. */
22467char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022468/* The GNU C library defines this for functions which it implements
22469 to always fail with ENOSYS. Some functions are actually named
22470 something starting with __ and the normal name is an alias. */
22471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22472choke me
22473#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022474char (*f) () = $ac_func;
22475#endif
22476#ifdef __cplusplus
22477}
John Criswell7a73b802003-06-30 21:59:07 +000022478#endif
22479
John Criswell0c38eaf2003-09-10 15:17:25 +000022480int
22481main ()
22482{
22483return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022484 ;
22485 return 0;
22486}
22487_ACEOF
22488rm -f conftest.$ac_objext conftest$ac_exeext
22489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22490 (eval $ac_link) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } &&
22494 { ac_try='test -s conftest$ac_exeext'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; }; then
22500 eval "$as_ac_var=yes"
22501else
22502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022503sed 's/^/| /' conftest.$ac_ext >&5
22504
John Criswell7a73b802003-06-30 21:59:07 +000022505eval "$as_ac_var=no"
22506fi
22507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22508fi
22509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22511if test `eval echo '${'$as_ac_var'}'` = yes; then
22512 cat >>confdefs.h <<_ACEOF
22513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22514_ACEOF
22515
22516fi
22517done
22518
22519
22520
22521echo "$as_me:$LINENO: checking for mmap" >&5
22522echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22523if test "${ac_cv_func_mmap+set}" = set; then
22524 echo $ECHO_N "(cached) $ECHO_C" >&6
22525else
22526 cat >conftest.$ac_ext <<_ACEOF
22527#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022528/* confdefs.h. */
22529_ACEOF
22530cat confdefs.h >>conftest.$ac_ext
22531cat >>conftest.$ac_ext <<_ACEOF
22532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022533/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022534 which can conflict with char mmap (); below.
22535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22536 <limits.h> exists even on freestanding compilers. */
22537#ifdef __STDC__
22538# include <limits.h>
22539#else
22540# include <assert.h>
22541#endif
John Criswell7a73b802003-06-30 21:59:07 +000022542/* Override any gcc2 internal prototype to avoid an error. */
22543#ifdef __cplusplus
22544extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022545{
John Criswell7a73b802003-06-30 21:59:07 +000022546#endif
22547/* We use char because int might match the return type of a gcc2
22548 builtin and then its argument prototype would still apply. */
22549char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022550/* The GNU C library defines this for functions which it implements
22551 to always fail with ENOSYS. Some functions are actually named
22552 something starting with __ and the normal name is an alias. */
22553#if defined (__stub_mmap) || defined (__stub___mmap)
22554choke me
22555#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022556char (*f) () = mmap;
22557#endif
22558#ifdef __cplusplus
22559}
John Criswell7a73b802003-06-30 21:59:07 +000022560#endif
22561
John Criswell0c38eaf2003-09-10 15:17:25 +000022562int
22563main ()
22564{
22565return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022566 ;
22567 return 0;
22568}
22569_ACEOF
22570rm -f conftest.$ac_objext conftest$ac_exeext
22571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22572 (eval $ac_link) 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
22576 { ac_try='test -s conftest$ac_exeext'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }; then
22582 ac_cv_func_mmap=yes
22583else
22584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022585sed 's/^/| /' conftest.$ac_ext >&5
22586
John Criswell7a73b802003-06-30 21:59:07 +000022587ac_cv_func_mmap=no
22588fi
22589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22590fi
22591echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22592echo "${ECHO_T}$ac_cv_func_mmap" >&6
22593if test $ac_cv_func_mmap = yes; then
22594 :
22595else
22596 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22597echo "$as_me: error: Function mmap() required but not found" >&2;}
22598 { (exit 1); exit 1; }; }
22599fi
22600
22601echo "$as_me:$LINENO: checking for mprotect" >&5
22602echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22603if test "${ac_cv_func_mprotect+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605else
22606 cat >conftest.$ac_ext <<_ACEOF
22607#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022608/* confdefs.h. */
22609_ACEOF
22610cat confdefs.h >>conftest.$ac_ext
22611cat >>conftest.$ac_ext <<_ACEOF
22612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022613/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022614 which can conflict with char mprotect (); below.
22615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22616 <limits.h> exists even on freestanding compilers. */
22617#ifdef __STDC__
22618# include <limits.h>
22619#else
22620# include <assert.h>
22621#endif
John Criswell7a73b802003-06-30 21:59:07 +000022622/* Override any gcc2 internal prototype to avoid an error. */
22623#ifdef __cplusplus
22624extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022625{
John Criswell7a73b802003-06-30 21:59:07 +000022626#endif
22627/* We use char because int might match the return type of a gcc2
22628 builtin and then its argument prototype would still apply. */
22629char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022630/* The GNU C library defines this for functions which it implements
22631 to always fail with ENOSYS. Some functions are actually named
22632 something starting with __ and the normal name is an alias. */
22633#if defined (__stub_mprotect) || defined (__stub___mprotect)
22634choke me
22635#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022636char (*f) () = mprotect;
22637#endif
22638#ifdef __cplusplus
22639}
John Criswell7a73b802003-06-30 21:59:07 +000022640#endif
22641
John Criswell0c38eaf2003-09-10 15:17:25 +000022642int
22643main ()
22644{
22645return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022646 ;
22647 return 0;
22648}
22649_ACEOF
22650rm -f conftest.$ac_objext conftest$ac_exeext
22651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22652 (eval $ac_link) 2>&5
22653 ac_status=$?
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -s conftest$ac_exeext'
22657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658 (eval $ac_try) 2>&5
22659 ac_status=$?
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); }; }; then
22662 ac_cv_func_mprotect=yes
22663else
22664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022665sed 's/^/| /' conftest.$ac_ext >&5
22666
John Criswell7a73b802003-06-30 21:59:07 +000022667ac_cv_func_mprotect=no
22668fi
22669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22670fi
22671echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22672echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22673if test $ac_cv_func_mprotect = yes; then
22674 :
22675else
22676 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22677echo "$as_me: error: Function mprotect() required but not found" >&2;}
22678 { (exit 1); exit 1; }; }
22679fi
22680
22681
John Criswellb13092b2003-07-22 21:00:24 +000022682
John Criswell7a73b802003-06-30 21:59:07 +000022683# Check whether --enable-purify or --disable-purify was given.
22684if test "${enable_purify+set}" = set; then
22685 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022686
22687else
John Criswellb13092b2003-07-22 21:00:24 +000022688 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022689fi;
John Criswellb13092b2003-07-22 21:00:24 +000022690if test ${enableval} = "no"
22691then
22692 ENABLE_PURIFY=
22693
22694else
22695 ENABLE_PURIFY=ENABLE_PURIFY=1
22696
22697fi
22698
John Criswell7a73b802003-06-30 21:59:07 +000022699# Check whether --enable-optimized or --disable-optimized was given.
22700if test "${enable_optimized+set}" = set; then
22701 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022702
22703else
John Criswellb13092b2003-07-22 21:00:24 +000022704 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022705fi;
John Criswellb13092b2003-07-22 21:00:24 +000022706if test ${enableval} = "no"
22707then
22708 ENABLE_OPTIMIZED=
22709
22710else
22711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22712
22713fi
22714
John Criswell7a73b802003-06-30 21:59:07 +000022715# Check whether --enable-spec or --disable-spec was given.
22716if test "${enable_spec+set}" = set; then
22717 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022718
22719else
John Criswellb13092b2003-07-22 21:00:24 +000022720 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022721fi;
John Criswellb13092b2003-07-22 21:00:24 +000022722if test ${enableval} = "no"
22723then
22724 USE_SPEC=
22725
22726else
22727 USE_SPEC=USE_SPEC=1
22728
22729fi
22730
John Criswell7a73b802003-06-30 21:59:07 +000022731# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22732if test "${enable_precompiled_bytecode+set}" = set; then
22733 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022734
22735else
John Criswellb13092b2003-07-22 21:00:24 +000022736 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022737fi;
John Criswellb13092b2003-07-22 21:00:24 +000022738if test ${enableval} = "no"
22739then
22740 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022741
John Criswellb13092b2003-07-22 21:00:24 +000022742else
22743 UPB=USE_PRECOMPILED_BYTECODE=1
22744
22745fi
John Criswellf02dbf02003-07-22 20:07:49 +000022746
22747
22748# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22749if test "${enable_llc_diffs+set}" = set; then
22750 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022751
22752else
John Criswellb13092b2003-07-22 21:00:24 +000022753 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022754fi;
John Criswellb13092b2003-07-22 21:00:24 +000022755if test ${enableval} = "no"
22756then
22757 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022758
John Criswellb13092b2003-07-22 21:00:24 +000022759else
22760 DISABLE_LLC_DIFFS=
22761
22762fi
22763
22764# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022765if test "${enable_jit+set}" = set; then
22766 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022767
22768else
John Criswellc78022e2003-07-29 19:11:58 +000022769 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022770fi;
John Criswellb13092b2003-07-22 21:00:24 +000022771
22772if test ${enableval} = "no"
22773then
22774 JIT=
22775
22776else
John Criswellc78022e2003-07-29 19:11:58 +000022777 case $target in
22778 *i*86*)
22779 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022780
John Criswellc78022e2003-07-29 19:11:58 +000022781 ;;
22782 *sparc*)
22783 JIT=TARGET_HAS_JIT=1
22784
22785 ;;
22786 *)
22787 JIT=
22788
22789 ;;
22790 esac
John Criswellb13092b2003-07-22 21:00:24 +000022791fi
John Criswell7a73b802003-06-30 21:59:07 +000022792
22793
John Criswellc78022e2003-07-29 19:11:58 +000022794
John Criswell7a73b802003-06-30 21:59:07 +000022795# Check whether --with-spec or --without-spec was given.
22796if test "${with_spec+set}" = set; then
22797 withval="$with_spec"
22798 SPEC_ROOT=$withval
22799
22800else
22801 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22802
22803fi;
22804
John Criswellc78022e2003-07-29 19:11:58 +000022805
John Criswell7a73b802003-06-30 21:59:07 +000022806# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22807if test "${with_llvmgccdir+set}" = set; then
22808 withval="$with_llvmgccdir"
22809 LLVMGCCDIR=$withval
22810
22811fi;
22812
John Criswellc78022e2003-07-29 19:11:58 +000022813
John Criswell7a73b802003-06-30 21:59:07 +000022814# Check whether --with-bcrepos or --without-bcrepos was given.
22815if test "${with_bcrepos+set}" = set; then
22816 withval="$with_bcrepos"
22817 BCR=$withval
22818
22819else
22820 BCR=/home/vadve/lattner/LLVMPrograms
22821
22822fi;
22823
John Criswellc78022e2003-07-29 19:11:58 +000022824
John Criswell7a73b802003-06-30 21:59:07 +000022825# Check whether --with-papi or --without-papi was given.
22826if test "${with_papi+set}" = set; then
22827 withval="$with_papi"
22828 PAPIDIR=$withval
22829
22830else
John Criswellde00db22003-08-25 16:49:54 +000022831 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022832
22833fi;
22834
John Criswell7a73b802003-06-30 21:59:07 +000022835
22836# Check whether --with-purify or --without-purify was given.
22837if test "${with_purify+set}" = set; then
22838 withval="$with_purify"
22839 PURIFY=$withval
22840
22841fi;
22842
John Criswellde00db22003-08-25 16:49:54 +000022843
John Criswell0c38eaf2003-09-10 15:17:25 +000022844 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022845cat >confcache <<\_ACEOF
22846# This file is a shell script that caches the results of configure
22847# tests run on this system so they can be shared between configure
22848# scripts and configure runs, see configure's option --config-cache.
22849# It is not useful on other systems. If it contains results you don't
22850# want to keep, you may remove or edit it.
22851#
22852# config.status only pays attention to the cache file if you give it
22853# the --recheck option to rerun configure.
22854#
John Criswell0c38eaf2003-09-10 15:17:25 +000022855# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022856# loading this file, other *unset* `ac_cv_foo' will be assigned the
22857# following values.
22858
22859_ACEOF
22860
22861# The following way of writing the cache mishandles newlines in values,
22862# but we know of no workaround that is simple, portable, and efficient.
22863# So, don't put newlines in cache variables' values.
22864# Ultrix sh set writes to stderr and can't be redirected directly,
22865# and sets the high bit in the cache file unless we assign to the vars.
22866{
22867 (set) 2>&1 |
22868 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22869 *ac_space=\ *)
22870 # `set' does not quote correctly, so add quotes (double-quote
22871 # substitution turns \\\\ into \\, and sed turns \\ into \).
22872 sed -n \
22873 "s/'/'\\\\''/g;
22874 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22875 ;;
22876 *)
22877 # `set' quotes correctly as required by POSIX, so do not add quotes.
22878 sed -n \
22879 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22880 ;;
22881 esac;
22882} |
22883 sed '
22884 t clear
22885 : clear
22886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22887 t end
22888 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22889 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022890if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022891 if test -w $cache_file; then
22892 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22893 cat confcache >$cache_file
22894 else
22895 echo "not updating unwritable cache $cache_file"
22896 fi
22897fi
22898rm -f confcache
22899
22900test "x$prefix" = xNONE && prefix=$ac_default_prefix
22901# Let make expand exec_prefix.
22902test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22903
22904# VPATH may cause trouble with some makes, so we remove $(srcdir),
22905# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22906# trailing colons and then remove the whole line if VPATH becomes empty
22907# (actually we leave an empty line to preserve line numbers).
22908if test "x$srcdir" = x.; then
22909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22910s/:*\$(srcdir):*/:/;
22911s/:*\${srcdir}:*/:/;
22912s/:*@srcdir@:*/:/;
22913s/^\([^=]*=[ ]*\):*/\1/;
22914s/:*$//;
22915s/^[^=]*=[ ]*$//;
22916}'
22917fi
22918
22919DEFS=-DHAVE_CONFIG_H
22920
John Criswell0c38eaf2003-09-10 15:17:25 +000022921ac_libobjs=
22922ac_ltlibobjs=
22923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22924 # 1. Remove the extension, and $U if already installed.
22925 ac_i=`echo "$ac_i" |
22926 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22927 # 2. Add them.
22928 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22929 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22930done
22931LIBOBJS=$ac_libobjs
22932
22933LTLIBOBJS=$ac_ltlibobjs
22934
22935
John Criswell7a73b802003-06-30 21:59:07 +000022936
22937: ${CONFIG_STATUS=./config.status}
22938ac_clean_files_save=$ac_clean_files
22939ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22940{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22941echo "$as_me: creating $CONFIG_STATUS" >&6;}
22942cat >$CONFIG_STATUS <<_ACEOF
22943#! $SHELL
22944# Generated by $as_me.
22945# Run this file to recreate the current configuration.
22946# Compiler output produced by configure, useful for debugging
22947# configure, is in config.log if it exists.
22948
22949debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022950ac_cs_recheck=false
22951ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022952SHELL=\${CONFIG_SHELL-$SHELL}
22953_ACEOF
22954
22955cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022956## --------------------- ##
22957## M4sh Initialization. ##
22958## --------------------- ##
22959
22960# Be Bourne compatible
22961if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22962 emulate sh
22963 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022964 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22965 # is contrary to our usage. Disable this feature.
22966 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022967elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22968 set -o posix
22969fi
22970
John Criswell7a73b802003-06-30 21:59:07 +000022971# Support unset when possible.
22972if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22973 as_unset=unset
22974else
22975 as_unset=false
22976fi
22977
John Criswell0c38eaf2003-09-10 15:17:25 +000022978
22979# Work around bugs in pre-3.0 UWIN ksh.
22980$as_unset ENV MAIL MAILPATH
22981PS1='$ '
22982PS2='> '
22983PS4='+ '
22984
22985# NLS nuisances.
22986for as_var in \
22987 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22988 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22989 LC_TELEPHONE LC_TIME
22990do
22991 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22992 eval $as_var=C; export $as_var
22993 else
22994 $as_unset $as_var
22995 fi
22996done
22997
22998# Required to use basename.
22999if expr a : '\(a\)' >/dev/null 2>&1; then
23000 as_expr=expr
23001else
23002 as_expr=false
23003fi
23004
23005if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23006 as_basename=basename
23007else
23008 as_basename=false
23009fi
John Criswell7a73b802003-06-30 21:59:07 +000023010
23011
23012# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023013as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023014$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23015 X"$0" : 'X\(//\)$' \| \
23016 X"$0" : 'X\(/\)$' \| \
23017 . : '\(.\)' 2>/dev/null ||
23018echo X/"$0" |
23019 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23020 /^X\/\(\/\/\)$/{ s//\1/; q; }
23021 /^X\/\(\/\).*/{ s//\1/; q; }
23022 s/.*/./; q'`
23023
John Criswell0c38eaf2003-09-10 15:17:25 +000023024
John Criswell7a73b802003-06-30 21:59:07 +000023025# PATH needs CR, and LINENO needs CR and PATH.
23026# Avoid depending upon Character Ranges.
23027as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23028as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23029as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23030as_cr_digits='0123456789'
23031as_cr_alnum=$as_cr_Letters$as_cr_digits
23032
23033# The user is always right.
23034if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023035 echo "#! /bin/sh" >conf$$.sh
23036 echo "exit 0" >>conf$$.sh
23037 chmod +x conf$$.sh
23038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023039 PATH_SEPARATOR=';'
23040 else
23041 PATH_SEPARATOR=:
23042 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023043 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023044fi
23045
23046
23047 as_lineno_1=$LINENO
23048 as_lineno_2=$LINENO
23049 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23050 test "x$as_lineno_1" != "x$as_lineno_2" &&
23051 test "x$as_lineno_3" = "x$as_lineno_2" || {
23052 # Find who we are. Look in the path if we contain no path at all
23053 # relative or not.
23054 case $0 in
23055 *[\\/]* ) as_myself=$0 ;;
23056 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23057for as_dir in $PATH
23058do
23059 IFS=$as_save_IFS
23060 test -z "$as_dir" && as_dir=.
23061 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23062done
23063
23064 ;;
23065 esac
23066 # We did not find ourselves, most probably we were run as `sh COMMAND'
23067 # in which case we are not to be found in the path.
23068 if test "x$as_myself" = x; then
23069 as_myself=$0
23070 fi
23071 if test ! -f "$as_myself"; then
23072 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23073echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23074 { (exit 1); exit 1; }; }
23075 fi
23076 case $CONFIG_SHELL in
23077 '')
23078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23079for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23080do
23081 IFS=$as_save_IFS
23082 test -z "$as_dir" && as_dir=.
23083 for as_base in sh bash ksh sh5; do
23084 case $as_dir in
23085 /*)
23086 if ("$as_dir/$as_base" -c '
23087 as_lineno_1=$LINENO
23088 as_lineno_2=$LINENO
23089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23090 test "x$as_lineno_1" != "x$as_lineno_2" &&
23091 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023092 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23093 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023094 CONFIG_SHELL=$as_dir/$as_base
23095 export CONFIG_SHELL
23096 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23097 fi;;
23098 esac
23099 done
23100done
23101;;
23102 esac
23103
23104 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23105 # uniformly replaced by the line number. The first 'sed' inserts a
23106 # line-number line before each line; the second 'sed' does the real
23107 # work. The second script uses 'N' to pair each line-number line
23108 # with the numbered line, and appends trailing '-' during
23109 # substitution so that $LINENO is not a special case at line end.
23110 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23111 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23112 sed '=' <$as_myself |
23113 sed '
23114 N
23115 s,$,-,
23116 : loop
23117 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23118 t loop
23119 s,-$,,
23120 s,^['$as_cr_digits']*\n,,
23121 ' >$as_me.lineno &&
23122 chmod +x $as_me.lineno ||
23123 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23124echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23125 { (exit 1); exit 1; }; }
23126
23127 # Don't try to exec as it changes $[0], causing all sort of problems
23128 # (the dirname of $[0] is not the place where we might find the
23129 # original and so on. Autoconf is especially sensible to this).
23130 . ./$as_me.lineno
23131 # Exit status is that of the last command.
23132 exit
23133}
23134
23135
23136case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23137 *c*,-n*) ECHO_N= ECHO_C='
23138' ECHO_T=' ' ;;
23139 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23140 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23141esac
23142
23143if expr a : '\(a\)' >/dev/null 2>&1; then
23144 as_expr=expr
23145else
23146 as_expr=false
23147fi
23148
23149rm -f conf$$ conf$$.exe conf$$.file
23150echo >conf$$.file
23151if ln -s conf$$.file conf$$ 2>/dev/null; then
23152 # We could just check for DJGPP; but this test a) works b) is more generic
23153 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23154 if test -f conf$$.exe; then
23155 # Don't use ln at all; we don't have any links
23156 as_ln_s='cp -p'
23157 else
23158 as_ln_s='ln -s'
23159 fi
23160elif ln conf$$.file conf$$ 2>/dev/null; then
23161 as_ln_s=ln
23162else
23163 as_ln_s='cp -p'
23164fi
23165rm -f conf$$ conf$$.exe conf$$.file
23166
John Criswell0c38eaf2003-09-10 15:17:25 +000023167if mkdir -p . 2>/dev/null; then
23168 as_mkdir_p=:
23169else
23170 as_mkdir_p=false
23171fi
23172
John Criswell7a73b802003-06-30 21:59:07 +000023173as_executable_p="test -f"
23174
23175# Sed expression to map a string onto a valid CPP name.
23176as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23177
23178# Sed expression to map a string onto a valid variable name.
23179as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23180
23181
23182# IFS
23183# We need space, tab and new line, in precisely that order.
23184as_nl='
23185'
23186IFS=" $as_nl"
23187
23188# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023189$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023190
23191exec 6>&1
23192
23193# Open the log real soon, to keep \$[0] and so on meaningful, and to
23194# report actual input values of CONFIG_FILES etc. instead of their
23195# values after options handling. Logging --version etc. is OK.
23196exec 5>>config.log
23197{
23198 echo
23199 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23200## Running $as_me. ##
23201_ASBOX
23202} >&5
23203cat >&5 <<_CSEOF
23204
23205This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023206generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023207
23208 CONFIG_FILES = $CONFIG_FILES
23209 CONFIG_HEADERS = $CONFIG_HEADERS
23210 CONFIG_LINKS = $CONFIG_LINKS
23211 CONFIG_COMMANDS = $CONFIG_COMMANDS
23212 $ $0 $@
23213
23214_CSEOF
23215echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23216echo >&5
23217_ACEOF
23218
23219# Files that config.status was made for.
23220if test -n "$ac_config_files"; then
23221 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23222fi
23223
23224if test -n "$ac_config_headers"; then
23225 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23226fi
23227
23228if test -n "$ac_config_links"; then
23229 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23230fi
23231
23232if test -n "$ac_config_commands"; then
23233 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23234fi
23235
23236cat >>$CONFIG_STATUS <<\_ACEOF
23237
23238ac_cs_usage="\
23239\`$as_me' instantiates files from templates according to the
23240current configuration.
23241
23242Usage: $0 [OPTIONS] [FILE]...
23243
23244 -h, --help print this help, then exit
23245 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023246 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023247 -d, --debug don't remove temporary files
23248 --recheck update $as_me by reconfiguring in the same conditions
23249 --file=FILE[:TEMPLATE]
23250 instantiate the configuration file FILE
23251 --header=FILE[:TEMPLATE]
23252 instantiate the configuration header FILE
23253
23254Configuration files:
23255$config_files
23256
23257Configuration headers:
23258$config_headers
23259
John Criswellc764fbc2003-09-06 15:17:13 +000023260Configuration commands:
23261$config_commands
23262
John Criswell7a73b802003-06-30 21:59:07 +000023263Report bugs to <bug-autoconf@gnu.org>."
23264_ACEOF
23265
23266cat >>$CONFIG_STATUS <<_ACEOF
23267ac_cs_version="\\
23268[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023269configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23271
23272Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23273Free Software Foundation, Inc.
23274This config.status script is free software; the Free Software Foundation
23275gives unlimited permission to copy, distribute and modify it."
23276srcdir=$srcdir
23277INSTALL="$INSTALL"
23278_ACEOF
23279
23280cat >>$CONFIG_STATUS <<\_ACEOF
23281# If no file are specified by the user, then we need to provide default
23282# value. By we need to know if files were specified by the user.
23283ac_need_defaults=:
23284while test $# != 0
23285do
23286 case $1 in
23287 --*=*)
23288 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23289 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023290 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023291 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023292 -*)
23293 ac_option=$1
23294 ac_optarg=$2
23295 ac_shift=shift
23296 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023297 *) # This is not an option, so the user has probably given explicit
23298 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023299 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023300 ac_need_defaults=false;;
23301 esac
23302
John Criswell0c38eaf2003-09-10 15:17:25 +000023303 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023304 # Handling of the options.
23305_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023306cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23308 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023309 --version | --vers* | -V )
23310 echo "$ac_cs_version"; exit 0 ;;
23311 --he | --h)
23312 # Conflict between --help and --header
23313 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23314Try \`$0 --help' for more information." >&5
23315echo "$as_me: error: ambiguous option: $1
23316Try \`$0 --help' for more information." >&2;}
23317 { (exit 1); exit 1; }; };;
23318 --help | --hel | -h )
23319 echo "$ac_cs_usage"; exit 0 ;;
23320 --debug | --d* | -d )
23321 debug=: ;;
23322 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023323 $ac_shift
23324 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023325 ac_need_defaults=false;;
23326 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023327 $ac_shift
23328 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023329 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23331 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23332 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023333
23334 # This is an error.
23335 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23336Try \`$0 --help' for more information." >&5
23337echo "$as_me: error: unrecognized option: $1
23338Try \`$0 --help' for more information." >&2;}
23339 { (exit 1); exit 1; }; } ;;
23340
23341 *) ac_config_targets="$ac_config_targets $1" ;;
23342
23343 esac
23344 shift
23345done
23346
John Criswell0c38eaf2003-09-10 15:17:25 +000023347ac_configure_extra_args=
23348
23349if $ac_cs_silent; then
23350 exec 6>/dev/null
23351 ac_configure_extra_args="$ac_configure_extra_args --silent"
23352fi
23353
23354_ACEOF
23355cat >>$CONFIG_STATUS <<_ACEOF
23356if \$ac_cs_recheck; then
23357 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23358 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23359fi
23360
John Criswell7a73b802003-06-30 21:59:07 +000023361_ACEOF
23362
John Criswellc764fbc2003-09-06 15:17:13 +000023363cat >>$CONFIG_STATUS <<_ACEOF
23364#
23365# INIT-COMMANDS section.
23366#
John Criswell7a73b802003-06-30 21:59:07 +000023367
John Criswellc764fbc2003-09-06 15:17:13 +000023368${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23369${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23370${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23371${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023385${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023406${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023407${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023411${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023412${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023413${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023415${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023419${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023511${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023513${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023514${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023517${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023518${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023519${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023520${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023521${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023522${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023523${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023525${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23533${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23534${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23540${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23542
23543_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023544
23545
23546
23547cat >>$CONFIG_STATUS <<\_ACEOF
23548for ac_config_target in $ac_config_targets
23549do
23550 case "$ac_config_target" in
23551 # Handling of arguments.
23552 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023553 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23554 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23555 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23556 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23557 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23558 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23559 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23560 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23561 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23562 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23563 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23564 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23565 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23566 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23567 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23568 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23569 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023570 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23571 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23572 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23573 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23574 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23575 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23576 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23577 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23578 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23579 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23580 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23581 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23582 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23583 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23584 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23585 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23586 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23587 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23588 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23589 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23590 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023591 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023592 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23593 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23594 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23595 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023596 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023597 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023598 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23599 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023600 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23601 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23602 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23603 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023604 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023605 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23606 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23607 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23608 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23609 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23610 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23611 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23612 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23613 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23614 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23615 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23616 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23617 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23618 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23619 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23620 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23621 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23622 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023623 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023624 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23625 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23626 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23627 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23628 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23629 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23630 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23631 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23632 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23633 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23634 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23635 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23636 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23637 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23638 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23639 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23640 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23641 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023642 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23643 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023644 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23645 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023646 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23647 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23648 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23649 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23650 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23651 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23652 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23653 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23654 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23655 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23656 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23657 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23658 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23659 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23660 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23661 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23662 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23663 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23664 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23665 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23666 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23667 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23668 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23669 "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 +000023670 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023671 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23672 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23673 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23674 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23675 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23676 "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 +000023677 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023678 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023679 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23680 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23681 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23682 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23683 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023684 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23685 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23686 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023687 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23688 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23689 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23690 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23691 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23692 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023693 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023694 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023695 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023696 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23697 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023698 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023699 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23700 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23701 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023702 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023703 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023704 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023705 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023706 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023707 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023708 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23709 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023710 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23711 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23712 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23713 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23714 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23715 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23716 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23717 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23718 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23719 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23720 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23721 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23722 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23723 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23724 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23725 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23726 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023727 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23728 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23729echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23730 { (exit 1); exit 1; }; };;
23731 esac
23732done
23733
23734# If the user did not use the arguments to specify the items to instantiate,
23735# then the envvar interface is used. Set only those that are not.
23736# We use the long form for the default assignment because of an extremely
23737# bizarre bug on SunOS 4.1.3.
23738if $ac_need_defaults; then
23739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023742fi
23743
John Criswell0c38eaf2003-09-10 15:17:25 +000023744# Have a temporary directory for convenience. Make it in the build tree
23745# simply because there is no reason to put it here, and in addition,
23746# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023747# Create a temporary directory, and hook for its removal unless debugging.
23748$debug ||
23749{
23750 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23751 trap '{ (exit 1); exit 1; }' 1 2 13 15
23752}
23753
23754# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023755
John Criswell7a73b802003-06-30 21:59:07 +000023756{
John Criswell0c38eaf2003-09-10 15:17:25 +000023757 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023758 test -n "$tmp" && test -d "$tmp"
23759} ||
23760{
John Criswell0c38eaf2003-09-10 15:17:25 +000023761 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023762 (umask 077 && mkdir $tmp)
23763} ||
23764{
John Criswell0c38eaf2003-09-10 15:17:25 +000023765 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023766 { (exit 1); exit 1; }
23767}
23768
23769_ACEOF
23770
23771cat >>$CONFIG_STATUS <<_ACEOF
23772
23773#
23774# CONFIG_FILES section.
23775#
23776
23777# No need to generate the scripts if there are no CONFIG_FILES.
23778# This happens for instance when ./config.status config.h
23779if test -n "\$CONFIG_FILES"; then
23780 # Protect against being on the right side of a sed subst in config.status.
23781 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23782 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23783s,@SHELL@,$SHELL,;t t
23784s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23785s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23786s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23787s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23788s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23789s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23790s,@exec_prefix@,$exec_prefix,;t t
23791s,@prefix@,$prefix,;t t
23792s,@program_transform_name@,$program_transform_name,;t t
23793s,@bindir@,$bindir,;t t
23794s,@sbindir@,$sbindir,;t t
23795s,@libexecdir@,$libexecdir,;t t
23796s,@datadir@,$datadir,;t t
23797s,@sysconfdir@,$sysconfdir,;t t
23798s,@sharedstatedir@,$sharedstatedir,;t t
23799s,@localstatedir@,$localstatedir,;t t
23800s,@libdir@,$libdir,;t t
23801s,@includedir@,$includedir,;t t
23802s,@oldincludedir@,$oldincludedir,;t t
23803s,@infodir@,$infodir,;t t
23804s,@mandir@,$mandir,;t t
23805s,@build_alias@,$build_alias,;t t
23806s,@host_alias@,$host_alias,;t t
23807s,@target_alias@,$target_alias,;t t
23808s,@DEFS@,$DEFS,;t t
23809s,@ECHO_C@,$ECHO_C,;t t
23810s,@ECHO_N@,$ECHO_N,;t t
23811s,@ECHO_T@,$ECHO_T,;t t
23812s,@LIBS@,$LIBS,;t t
23813s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23814s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23815s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23816s,@build@,$build,;t t
23817s,@build_cpu@,$build_cpu,;t t
23818s,@build_vendor@,$build_vendor,;t t
23819s,@build_os@,$build_os,;t t
23820s,@host@,$host,;t t
23821s,@host_cpu@,$host_cpu,;t t
23822s,@host_vendor@,$host_vendor,;t t
23823s,@host_os@,$host_os,;t t
23824s,@target@,$target,;t t
23825s,@target_cpu@,$target_cpu,;t t
23826s,@target_vendor@,$target_vendor,;t t
23827s,@target_os@,$target_os,;t t
23828s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023829s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023830s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023831s,@CXX@,$CXX,;t t
23832s,@CXXFLAGS@,$CXXFLAGS,;t t
23833s,@LDFLAGS@,$LDFLAGS,;t t
23834s,@CPPFLAGS@,$CPPFLAGS,;t t
23835s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23836s,@EXEEXT@,$EXEEXT,;t t
23837s,@OBJEXT@,$OBJEXT,;t t
23838s,@CC@,$CC,;t t
23839s,@CFLAGS@,$CFLAGS,;t t
23840s,@ac_ct_CC@,$ac_ct_CC,;t t
23841s,@CPP@,$CPP,;t t
23842s,@ifGNUmake@,$ifGNUmake,;t t
23843s,@LEX@,$LEX,;t t
23844s,@LEXLIB@,$LEXLIB,;t t
23845s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23846s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023847s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023848s,@LN_S@,$LN_S,;t t
23849s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023850s,@AR@,$AR,;t t
23851s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023852s,@RANLIB@,$RANLIB,;t t
23853s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23854s,@STRIP@,$STRIP,;t t
23855s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023856s,@CXXCPP@,$CXXCPP,;t t
23857s,@F77@,$F77,;t t
23858s,@FFLAGS@,$FFLAGS,;t t
23859s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023860s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023861s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023862s,@SED@,$SED,;t t
23863s,@RM@,$RM,;t t
23864s,@MKDIR@,$MKDIR,;t t
23865s,@DATE@,$DATE,;t t
23866s,@MV@,$MV,;t t
23867s,@DOT@,$DOT,;t t
23868s,@ETAGS@,$ETAGS,;t t
23869s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023870s,@PYTHON@,$PYTHON,;t t
23871s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023872s,@ALLOCA@,$ALLOCA,;t t
23873s,@LIBOBJS@,$LIBOBJS,;t t
23874s,@MMAP_FILE@,$MMAP_FILE,;t t
23875s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023876s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23877s,@USE_SPEC@,$USE_SPEC,;t t
23878s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023879s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023880s,@JIT@,$JIT,;t t
23881s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23882s,@BCR@,$BCR,;t t
23883s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023884s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023885CEOF
23886
23887_ACEOF
23888
23889 cat >>$CONFIG_STATUS <<\_ACEOF
23890 # Split the substitutions into bite-sized pieces for seds with
23891 # small command number limits, like on Digital OSF/1 and HP-UX.
23892 ac_max_sed_lines=48
23893 ac_sed_frag=1 # Number of current file.
23894 ac_beg=1 # First line for current file.
23895 ac_end=$ac_max_sed_lines # Line after last line for current file.
23896 ac_more_lines=:
23897 ac_sed_cmds=
23898 while $ac_more_lines; do
23899 if test $ac_beg -gt 1; then
23900 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23901 else
23902 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23903 fi
23904 if test ! -s $tmp/subs.frag; then
23905 ac_more_lines=false
23906 else
23907 # The purpose of the label and of the branching condition is to
23908 # speed up the sed processing (if there are no `@' at all, there
23909 # is no need to browse any of the substitutions).
23910 # These are the two extra sed commands mentioned above.
23911 (echo ':t
23912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23913 if test -z "$ac_sed_cmds"; then
23914 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23915 else
23916 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23917 fi
23918 ac_sed_frag=`expr $ac_sed_frag + 1`
23919 ac_beg=$ac_end
23920 ac_end=`expr $ac_end + $ac_max_sed_lines`
23921 fi
23922 done
23923 if test -z "$ac_sed_cmds"; then
23924 ac_sed_cmds=cat
23925 fi
23926fi # test -n "$CONFIG_FILES"
23927
23928_ACEOF
23929cat >>$CONFIG_STATUS <<\_ACEOF
23930for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23932 case $ac_file in
23933 - | *:- | *:-:* ) # input from stdin
23934 cat >$tmp/stdin
23935 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23937 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23938 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23939 * ) ac_file_in=$ac_file.in ;;
23940 esac
23941
23942 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23943 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23945 X"$ac_file" : 'X\(//\)[^/]' \| \
23946 X"$ac_file" : 'X\(//\)$' \| \
23947 X"$ac_file" : 'X\(/\)' \| \
23948 . : '\(.\)' 2>/dev/null ||
23949echo X"$ac_file" |
23950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23952 /^X\(\/\/\)$/{ s//\1/; q; }
23953 /^X\(\/\).*/{ s//\1/; q; }
23954 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023955 { if $as_mkdir_p; then
23956 mkdir -p "$ac_dir"
23957 else
23958 as_dir="$ac_dir"
23959 as_dirs=
23960 while test ! -d "$as_dir"; do
23961 as_dirs="$as_dir $as_dirs"
23962 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23964 X"$as_dir" : 'X\(//\)[^/]' \| \
23965 X"$as_dir" : 'X\(//\)$' \| \
23966 X"$as_dir" : 'X\(/\)' \| \
23967 . : '\(.\)' 2>/dev/null ||
23968echo X"$as_dir" |
23969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23971 /^X\(\/\/\)$/{ s//\1/; q; }
23972 /^X\(\/\).*/{ s//\1/; q; }
23973 s/.*/./; q'`
23974 done
23975 test ! -n "$as_dirs" || mkdir $as_dirs
23976 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23977echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23978 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023979
23980 ac_builddir=.
23981
23982if test "$ac_dir" != .; then
23983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23984 # A "../" for each directory in $ac_dir_suffix.
23985 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23986else
23987 ac_dir_suffix= ac_top_builddir=
23988fi
23989
23990case $srcdir in
23991 .) # No --srcdir option. We are building in place.
23992 ac_srcdir=.
23993 if test -z "$ac_top_builddir"; then
23994 ac_top_srcdir=.
23995 else
23996 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23997 fi ;;
23998 [\\/]* | ?:[\\/]* ) # Absolute path.
23999 ac_srcdir=$srcdir$ac_dir_suffix;
24000 ac_top_srcdir=$srcdir ;;
24001 *) # Relative path.
24002 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24003 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24004esac
24005# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24006# absolute.
24007ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024008ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024009ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24010ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24011
24012
24013 case $INSTALL in
24014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24015 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24016 esac
24017
24018 if test x"$ac_file" != x-; then
24019 { echo "$as_me:$LINENO: creating $ac_file" >&5
24020echo "$as_me: creating $ac_file" >&6;}
24021 rm -f "$ac_file"
24022 fi
24023 # Let's still pretend it is `configure' which instantiates (i.e., don't
24024 # use $as_me), people would be surprised to read:
24025 # /* config.h. Generated by config.status. */
24026 if test x"$ac_file" = x-; then
24027 configure_input=
24028 else
24029 configure_input="$ac_file. "
24030 fi
24031 configure_input=$configure_input"Generated from `echo $ac_file_in |
24032 sed 's,.*/,,'` by configure."
24033
24034 # First look for the input files in the build tree, otherwise in the
24035 # src tree.
24036 ac_file_inputs=`IFS=:
24037 for f in $ac_file_in; do
24038 case $f in
24039 -) echo $tmp/stdin ;;
24040 [\\/$]*)
24041 # Absolute (can't be DOS-style, as IFS=:)
24042 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24043echo "$as_me: error: cannot find input file: $f" >&2;}
24044 { (exit 1); exit 1; }; }
24045 echo $f;;
24046 *) # Relative
24047 if test -f "$f"; then
24048 # Build tree
24049 echo $f
24050 elif test -f "$srcdir/$f"; then
24051 # Source tree
24052 echo $srcdir/$f
24053 else
24054 # /dev/null tree
24055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24056echo "$as_me: error: cannot find input file: $f" >&2;}
24057 { (exit 1); exit 1; }; }
24058 fi;;
24059 esac
24060 done` || { (exit 1); exit 1; }
24061_ACEOF
24062cat >>$CONFIG_STATUS <<_ACEOF
24063 sed "$ac_vpsub
24064$extrasub
24065_ACEOF
24066cat >>$CONFIG_STATUS <<\_ACEOF
24067:t
24068/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24069s,@configure_input@,$configure_input,;t t
24070s,@srcdir@,$ac_srcdir,;t t
24071s,@abs_srcdir@,$ac_abs_srcdir,;t t
24072s,@top_srcdir@,$ac_top_srcdir,;t t
24073s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24074s,@builddir@,$ac_builddir,;t t
24075s,@abs_builddir@,$ac_abs_builddir,;t t
24076s,@top_builddir@,$ac_top_builddir,;t t
24077s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24078s,@INSTALL@,$ac_INSTALL,;t t
24079" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24080 rm -f $tmp/stdin
24081 if test x"$ac_file" != x-; then
24082 mv $tmp/out $ac_file
24083 else
24084 cat $tmp/out
24085 rm -f $tmp/out
24086 fi
24087
24088done
24089_ACEOF
24090cat >>$CONFIG_STATUS <<\_ACEOF
24091
24092#
24093# CONFIG_HEADER section.
24094#
24095
24096# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24097# NAME is the cpp macro being defined and VALUE is the value it is being given.
24098#
24099# ac_d sets the value in "#define NAME VALUE" lines.
24100ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24101ac_dB='[ ].*$,\1#\2'
24102ac_dC=' '
24103ac_dD=',;t'
24104# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24105ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24106ac_uB='$,\1#\2define\3'
24107ac_uC=' '
24108ac_uD=',;t'
24109
24110for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24112 case $ac_file in
24113 - | *:- | *:-:* ) # input from stdin
24114 cat >$tmp/stdin
24115 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24116 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24117 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24118 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24119 * ) ac_file_in=$ac_file.in ;;
24120 esac
24121
24122 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24123echo "$as_me: creating $ac_file" >&6;}
24124
24125 # First look for the input files in the build tree, otherwise in the
24126 # src tree.
24127 ac_file_inputs=`IFS=:
24128 for f in $ac_file_in; do
24129 case $f in
24130 -) echo $tmp/stdin ;;
24131 [\\/$]*)
24132 # Absolute (can't be DOS-style, as IFS=:)
24133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24134echo "$as_me: error: cannot find input file: $f" >&2;}
24135 { (exit 1); exit 1; }; }
24136 echo $f;;
24137 *) # Relative
24138 if test -f "$f"; then
24139 # Build tree
24140 echo $f
24141 elif test -f "$srcdir/$f"; then
24142 # Source tree
24143 echo $srcdir/$f
24144 else
24145 # /dev/null tree
24146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24147echo "$as_me: error: cannot find input file: $f" >&2;}
24148 { (exit 1); exit 1; }; }
24149 fi;;
24150 esac
24151 done` || { (exit 1); exit 1; }
24152 # Remove the trailing spaces.
24153 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24154
24155_ACEOF
24156
24157# Transform confdefs.h into two sed scripts, `conftest.defines' and
24158# `conftest.undefs', that substitutes the proper values into
24159# config.h.in to produce config.h. The first handles `#define'
24160# templates, and the second `#undef' templates.
24161# And first: Protect against being on the right side of a sed subst in
24162# config.status. Protect against being in an unquoted here document
24163# in config.status.
24164rm -f conftest.defines conftest.undefs
24165# Using a here document instead of a string reduces the quoting nightmare.
24166# Putting comments in sed scripts is not portable.
24167#
24168# `end' is used to avoid that the second main sed command (meant for
24169# 0-ary CPP macros) applies to n-ary macro definitions.
24170# See the Autoconf documentation for `clear'.
24171cat >confdef2sed.sed <<\_ACEOF
24172s/[\\&,]/\\&/g
24173s,[\\$`],\\&,g
24174t clear
24175: clear
24176s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24177t end
24178s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24179: end
24180_ACEOF
24181# If some macros were called several times there might be several times
24182# the same #defines, which is useless. Nevertheless, we may not want to
24183# sort them, since we want the *last* AC-DEFINE to be honored.
24184uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24185sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24186rm -f confdef2sed.sed
24187
24188# This sed command replaces #undef with comments. This is necessary, for
24189# example, in the case of _POSIX_SOURCE, which is predefined and required
24190# on some systems where configure will not decide to define it.
24191cat >>conftest.undefs <<\_ACEOF
24192s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24193_ACEOF
24194
24195# Break up conftest.defines because some shells have a limit on the size
24196# of here documents, and old seds have small limits too (100 cmds).
24197echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024198echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024199echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24200echo ' :' >>$CONFIG_STATUS
24201rm -f conftest.tail
24202while grep . conftest.defines >/dev/null
24203do
24204 # Write a limited-size here document to $tmp/defines.sed.
24205 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24206 # Speed up: don't consider the non `#define' lines.
24207 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24208 # Work around the forget-to-reset-the-flag bug.
24209 echo 't clr' >>$CONFIG_STATUS
24210 echo ': clr' >>$CONFIG_STATUS
24211 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24212 echo 'CEOF
24213 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24214 rm -f $tmp/in
24215 mv $tmp/out $tmp/in
24216' >>$CONFIG_STATUS
24217 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24218 rm -f conftest.defines
24219 mv conftest.tail conftest.defines
24220done
24221rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024222echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024223echo >>$CONFIG_STATUS
24224
24225# Break up conftest.undefs because some shells have a limit on the size
24226# of here documents, and old seds have small limits too (100 cmds).
24227echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24228rm -f conftest.tail
24229while grep . conftest.undefs >/dev/null
24230do
24231 # Write a limited-size here document to $tmp/undefs.sed.
24232 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24233 # Speed up: don't consider the non `#undef'
24234 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24235 # Work around the forget-to-reset-the-flag bug.
24236 echo 't clr' >>$CONFIG_STATUS
24237 echo ': clr' >>$CONFIG_STATUS
24238 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24239 echo 'CEOF
24240 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24241 rm -f $tmp/in
24242 mv $tmp/out $tmp/in
24243' >>$CONFIG_STATUS
24244 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24245 rm -f conftest.undefs
24246 mv conftest.tail conftest.undefs
24247done
24248rm -f conftest.undefs
24249
24250cat >>$CONFIG_STATUS <<\_ACEOF
24251 # Let's still pretend it is `configure' which instantiates (i.e., don't
24252 # use $as_me), people would be surprised to read:
24253 # /* config.h. Generated by config.status. */
24254 if test x"$ac_file" = x-; then
24255 echo "/* Generated by configure. */" >$tmp/config.h
24256 else
24257 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24258 fi
24259 cat $tmp/in >>$tmp/config.h
24260 rm -f $tmp/in
24261 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024262 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024263 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24264echo "$as_me: $ac_file is unchanged" >&6;}
24265 else
24266 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24268 X"$ac_file" : 'X\(//\)[^/]' \| \
24269 X"$ac_file" : 'X\(//\)$' \| \
24270 X"$ac_file" : 'X\(/\)' \| \
24271 . : '\(.\)' 2>/dev/null ||
24272echo X"$ac_file" |
24273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24275 /^X\(\/\/\)$/{ s//\1/; q; }
24276 /^X\(\/\).*/{ s//\1/; q; }
24277 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024278 { if $as_mkdir_p; then
24279 mkdir -p "$ac_dir"
24280 else
24281 as_dir="$ac_dir"
24282 as_dirs=
24283 while test ! -d "$as_dir"; do
24284 as_dirs="$as_dir $as_dirs"
24285 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24287 X"$as_dir" : 'X\(//\)[^/]' \| \
24288 X"$as_dir" : 'X\(//\)$' \| \
24289 X"$as_dir" : 'X\(/\)' \| \
24290 . : '\(.\)' 2>/dev/null ||
24291echo X"$as_dir" |
24292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24294 /^X\(\/\/\)$/{ s//\1/; q; }
24295 /^X\(\/\).*/{ s//\1/; q; }
24296 s/.*/./; q'`
24297 done
24298 test ! -n "$as_dirs" || mkdir $as_dirs
24299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24300echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24301 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024302
24303 rm -f $ac_file
24304 mv $tmp/config.h $ac_file
24305 fi
24306 else
24307 cat $tmp/config.h
24308 rm -f $tmp/config.h
24309 fi
24310done
24311_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024312cat >>$CONFIG_STATUS <<\_ACEOF
24313
24314#
24315# CONFIG_COMMANDS section.
24316#
24317for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24318 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24319 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24320 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24321$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322 X"$ac_dest" : 'X\(//\)[^/]' \| \
24323 X"$ac_dest" : 'X\(//\)$' \| \
24324 X"$ac_dest" : 'X\(/\)' \| \
24325 . : '\(.\)' 2>/dev/null ||
24326echo X"$ac_dest" |
24327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329 /^X\(\/\/\)$/{ s//\1/; q; }
24330 /^X\(\/\).*/{ s//\1/; q; }
24331 s/.*/./; q'`
24332 ac_builddir=.
24333
24334if test "$ac_dir" != .; then
24335 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24336 # A "../" for each directory in $ac_dir_suffix.
24337 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24338else
24339 ac_dir_suffix= ac_top_builddir=
24340fi
24341
24342case $srcdir in
24343 .) # No --srcdir option. We are building in place.
24344 ac_srcdir=.
24345 if test -z "$ac_top_builddir"; then
24346 ac_top_srcdir=.
24347 else
24348 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24349 fi ;;
24350 [\\/]* | ?:[\\/]* ) # Absolute path.
24351 ac_srcdir=$srcdir$ac_dir_suffix;
24352 ac_top_srcdir=$srcdir ;;
24353 *) # Relative path.
24354 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24355 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24356esac
24357# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24358# absolute.
24359ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024360ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024361ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24362ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24363
24364
24365 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24366echo "$as_me: executing $ac_dest commands" >&6;}
24367 case $ac_dest in
24368 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24369 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24370 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24371 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24372 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24373 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24374 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24375 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24376 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24377 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24378 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24379 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24380 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24381 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24382 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24383 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24384 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 +000024385 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24386 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24387 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24388 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24389 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24390 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24391 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24392 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24393 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24394 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24395 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24396 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24397 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24398 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24399 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24400 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24401 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24402 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24403 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24404 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24405 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 +000024406 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024407 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24408 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24409 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24410 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 +000024411 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 +000024412 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 +000024413 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24414 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 +000024415 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24416 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24417 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24418 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024419 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024420 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24421 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24422 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24423 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24424 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24425 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24426 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24427 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24428 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24429 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24430 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24431 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24432 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24433 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24434 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24435 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24436 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24437 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 +000024438 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 +000024439 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 ;;
24440 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 ;;
24441 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 ;;
24442 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 ;;
24443 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 ;;
24444 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 ;;
24445 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 ;;
24446 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 ;;
24447 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 ;;
24448 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 ;;
24449 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 ;;
24450 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 ;;
24451 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 ;;
24452 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 ;;
24453 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 ;;
24454 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24455 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24456 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 +000024457 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24458 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 +000024459 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 ;;
24460 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 +000024461 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24462 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 ;;
24463 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 ;;
24464 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 ;;
24465 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 ;;
24466 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 ;;
24467 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 ;;
24468 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 ;;
24469 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 ;;
24470 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 ;;
24471 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 ;;
24472 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 ;;
24473 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 ;;
24474 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 ;;
24475 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 ;;
24476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 +000024485 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 +000024486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 ;;
24491 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 +000024492 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 +000024493 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 +000024494 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24495 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24496 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24497 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 ;;
24498 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 +000024499 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24500 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24501 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 +000024502 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24503 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24504 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 ;;
24505 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 ;;
24506 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 ;;
24507 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 +000024508 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 +000024509 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 +000024510 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 +000024511 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24512 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024513 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024514 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24515 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24516 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024517 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024518 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024519 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024520 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024521 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024522 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024523 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24524 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024525 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24526 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24527 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24528 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24529 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24530 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24531 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24532 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24533 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24534 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24535 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24536 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24537 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24538 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24539 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24540 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24541 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24542 esac
24543done
24544_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024545
24546cat >>$CONFIG_STATUS <<\_ACEOF
24547
24548{ (exit 0); exit 0; }
24549_ACEOF
24550chmod +x $CONFIG_STATUS
24551ac_clean_files=$ac_clean_files_save
24552
24553
24554# configure is writing to config.log, and then calls config.status.
24555# config.status does its own redirection, appending to config.log.
24556# Unfortunately, on DOS this fails, as config.log is still kept open
24557# by configure, so config.status won't be able to write to it; its
24558# output is simply discarded. So we exec the FD to /dev/null,
24559# effectively closing config.log, so it can be properly (re)opened and
24560# appended to by config.status. When coming back to configure, we
24561# need to make the FD available again.
24562if test "$no_create" != yes; then
24563 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024564 ac_config_status_args=
24565 test "$silent" = yes &&
24566 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024567 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024569 exec 5>>config.log
24570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24571 # would make configure fail if this is the last instruction.
24572 $ac_cs_success || { (exit 1); exit 1; }
24573fi
24574