blob: ad42bb6f33facbf32735e9a8051092fb87c00fe0 [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/Target/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/Sparc/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/X86/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/Transforms/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/Hello/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/IPO/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/Instrumentation/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/ProfilePaths/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/Scalar/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/Utils/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/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands runtime/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/GCCLibraries/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/crtend/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/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell613758d2003-09-11 18:03:50 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/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/libm/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/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell613758d2003-09-11 18:03:50 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell613758d2003-09-11 18:03:50 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1657
1658
1659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands test/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.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell08acb9b2003-09-16 02:12:45 +00001674 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1675
1676
John Criswell0c38eaf2003-09-10 15:17:25 +00001677 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
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/TEST.aa.Makefile"
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.dsgraph.report"
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.micro.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.aa.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.example.Makefile"
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.nightly.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.buildrepo.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.jit.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.nightly.report"
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.dsgraph.Makefile"
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.jit.report"
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.typesafe.Makefile"
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.dsgraph.gnuplot"
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.micro.Makefile"
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/External/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/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell613758d2003-09-11 18:03:50 +00001731 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/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/183.equake/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/188.ammp/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/CINT2000/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/164.gzip/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/175.vpr/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/176.gcc/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/181.mcf/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/186.crafty/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/197.parser/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/254.gap/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/255.vortex/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/256.bzip2/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/300.twolf/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/LLVMSource/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/MultiSource/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.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell48e3cb92003-09-12 16:31:43 +00001788 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
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/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell39e83892003-09-12 16:36:17 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1795
1796
1797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1798
1799
John Criswell48e3cb92003-09-12 16:31:43 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell48e3cb92003-09-12 16:31:43 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/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/McCat/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/01-qbsort/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/03-testtrie/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/04-bisect/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/05-eks/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/08-main/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/09-vor/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/12-IOtest/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/15-trie/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/17-bintr/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/18-imp/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/Olden/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/bh/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/bisort/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/em3d/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/health/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/mst/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/perimeter/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/power/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/treeadd/Makefile"
1864
1865
1866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1867
1868
1869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell39e83892003-09-12 16:36:17 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell48e3cb92003-09-12 16:31:43 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/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/anagram/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/bc/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/ft/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/ks/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/yacr2/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/llubenchmark/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/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell0c38eaf2003-09-10 15:17:25 +00001899 ac_config_commands="$ac_config_commands test/Programs/NoSource/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/Flex/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/Larn/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/Moria-5.5.2/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/Povray31/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/m4/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/SingleSource/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.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswellffaaf3b2003-09-10 18:38:44 +00001923 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1924
1925
1926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1927
1928
1929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1930
1931
1932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1939
1940
John Criswell0c38eaf2003-09-10 15:17:25 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswell0afe8252003-09-11 20:53:48 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1948
1949
John Criswell67181ca2003-09-26 14:53:17 +00001950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1951
1952
John Criswell68886d42003-09-26 19:51:42 +00001953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1954
1955
1956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1957
1958
John Criswellc66bbd52003-09-29 21:35:32 +00001959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1960
1961
1962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/CompileFail/Makefile"
1963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands tools/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/analyze/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/bugpoint/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/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001975
1976
John Criswell0c38eaf2003-09-10 15:17:25 +00001977 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/llee/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/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
Chris Lattnerebd70302003-09-13 03:29:53 +00001992 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1993
1994
John Criswellddb7b4e2003-09-16 15:54:19 +00001995 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswellddb7b4e2003-09-16 15:54:19 +00002001 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2002
2003
2004 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2005
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 Criswell4e079782003-09-29 14:52:28 +00002046 ac_config_commands="$ac_config_commands support/Makefile"
2047
2048
2049 ac_config_commands="$ac_config_commands support/lib/Makefile"
2050
2051
2052 ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2053
2054
2055 ac_config_commands="$ac_config_commands support/tools/Makefile"
2056
2057
2058 ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2059
2060
2061 ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2062
2063
2064 ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2065
2066
John Criswell392aaa32003-07-22 19:18:09 +00002067
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069# Find a good install program. We prefer a C program (faster),
2070# so one script is as good as another. But avoid the broken or
2071# incompatible versions:
2072# SysV /etc/install, /usr/sbin/install
2073# SunOS /usr/etc/install
2074# IRIX /sbin/install
2075# AIX /bin/install
2076# AmigaOS /C/install, which installs bootblocks on floppy discs
2077# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2078# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2079# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2080# ./install, which can be erroneously created by make from ./install.sh.
2081echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2082echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2083if test -z "$INSTALL"; then
2084if test "${ac_cv_path_install+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 # Account for people who put trailing slashes in PATH elements.
2093case $as_dir/ in
2094 ./ | .// | /cC/* | \
2095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2096 /usr/ucb/* ) ;;
2097 *)
2098 # OSF1 and SCO ODT 3.0 have their own names for install.
2099 # Don't use installbsd from OSF since it installs stuff as root
2100 # by default.
2101 for ac_prog in ginstall scoinst install; do
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2104 if test $ac_prog = install &&
2105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2106 # AIX install. It has an incompatible calling convention.
2107 :
2108 elif test $ac_prog = install &&
2109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2110 # program-specific install script used by HP pwplus--don't use.
2111 :
2112 else
2113 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2114 break 3
2115 fi
2116 fi
2117 done
2118 done
2119 ;;
2120esac
2121done
2122
2123
2124fi
2125 if test "${ac_cv_path_install+set}" = set; then
2126 INSTALL=$ac_cv_path_install
2127 else
2128 # As a last resort, use the slow shell script. We don't cache a
2129 # path for INSTALL within a source directory, because that will
2130 # break other packages using the cache if that directory is
2131 # removed, or if the path is relative.
2132 INSTALL=$ac_install_sh
2133 fi
2134fi
2135echo "$as_me:$LINENO: result: $INSTALL" >&5
2136echo "${ECHO_T}$INSTALL" >&6
2137
2138# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2139# It thinks the first close brace ends the variable substitution.
2140test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2141
2142test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2143
2144test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2145
2146
2147# Make sure we can run config.sub.
2148$ac_config_sub sun4 >/dev/null 2>&1 ||
2149 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2150echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2151 { (exit 1); exit 1; }; }
2152
2153echo "$as_me:$LINENO: checking build system type" >&5
2154echo $ECHO_N "checking build system type... $ECHO_C" >&6
2155if test "${ac_cv_build+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158 ac_cv_build_alias=$build_alias
2159test -z "$ac_cv_build_alias" &&
2160 ac_cv_build_alias=`$ac_config_guess`
2161test -z "$ac_cv_build_alias" &&
2162 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164 { (exit 1); exit 1; }; }
2165ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2166 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2167echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2169
2170fi
2171echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172echo "${ECHO_T}$ac_cv_build" >&6
2173build=$ac_cv_build
2174build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2175build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2176build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2177
2178
2179echo "$as_me:$LINENO: checking host system type" >&5
2180echo $ECHO_N "checking host system type... $ECHO_C" >&6
2181if test "${ac_cv_host+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 ac_cv_host_alias=$host_alias
2185test -z "$ac_cv_host_alias" &&
2186 ac_cv_host_alias=$ac_cv_build_alias
2187ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2188 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2189echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2191
2192fi
2193echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194echo "${ECHO_T}$ac_cv_host" >&6
2195host=$ac_cv_host
2196host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2197host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2198host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2199
2200
2201echo "$as_me:$LINENO: checking target system type" >&5
2202echo $ECHO_N "checking target system type... $ECHO_C" >&6
2203if test "${ac_cv_target+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206 ac_cv_target_alias=$target_alias
2207test "x$ac_cv_target_alias" = "x" &&
2208 ac_cv_target_alias=$ac_cv_host_alias
2209ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2210 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2211echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2212 { (exit 1); exit 1; }; }
2213
2214fi
2215echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6
2217target=$ac_cv_target
2218target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2219target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2220target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2221
2222
2223# The aliases save the names the user supplied, while $host etc.
2224# will get canonicalized.
2225test -n "$target_alias" &&
2226 test "$program_prefix$program_suffix$program_transform_name" = \
2227 NONENONEs,x,x, &&
2228 program_prefix=${target_alias}-
2229
2230case $build in
2231 *i*86*) OS=Linux
2232
John Criswellf02dbf02003-07-22 20:07:49 +00002233 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002234
2235 ;;
2236
2237 *sparc*) OS=SunOS
2238
2239 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2240
2241 ;;
2242
2243 *) OS=Unknown
2244
2245 ;;
2246esac
2247
2248case $target in
2249 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2250
2251 ;;
2252esac
2253
John Criswell76595452003-07-01 22:07:39 +00002254case $target in
2255 *i*86*) ARCH=x86
2256
2257 ;;
2258 *sparc*solaris*) ARCH=Sparc
2259
2260 ;;
2261esac
2262
John Criswell7a73b802003-06-30 21:59:07 +00002263
2264ac_ext=cc
2265ac_cpp='$CXXCPP $CPPFLAGS'
2266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2269if test -n "$ac_tool_prefix"; then
2270 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2271 do
2272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2274echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276if test "${ac_cv_prog_CXX+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$CXX"; then
2280 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2292 fi
2293done
2294done
2295
2296fi
2297fi
2298CXX=$ac_cv_prog_CXX
2299if test -n "$CXX"; then
2300 echo "$as_me:$LINENO: result: $CXX" >&5
2301echo "${ECHO_T}$CXX" >&6
2302else
2303 echo "$as_me:$LINENO: result: no" >&5
2304echo "${ECHO_T}no" >&6
2305fi
2306
2307 test -n "$CXX" && break
2308 done
2309fi
2310if test -z "$CXX"; then
2311 ac_ct_CXX=$CXX
2312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2313do
2314 # Extract the first word of "$ac_prog", so it can be a program name with args.
2315set dummy $ac_prog; ac_word=$2
2316echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2318if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 if test -n "$ac_ct_CXX"; then
2322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2331 ac_cv_prog_ac_ct_CXX="$ac_prog"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
2337
2338fi
2339fi
2340ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2341if test -n "$ac_ct_CXX"; then
2342 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2343echo "${ECHO_T}$ac_ct_CXX" >&6
2344else
2345 echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6
2347fi
2348
2349 test -n "$ac_ct_CXX" && break
2350done
2351test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2352
2353 CXX=$ac_ct_CXX
2354fi
2355
2356
2357# Provide some information about the compiler.
2358echo "$as_me:$LINENO:" \
2359 "checking for C++ compiler version" >&5
2360ac_compiler=`set X $ac_compile; echo $2`
2361{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2362 (eval $ac_compiler --version </dev/null >&5) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2367 (eval $ac_compiler -v </dev/null >&5) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2372 (eval $ac_compiler -V </dev/null >&5) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376
2377cat >conftest.$ac_ext <<_ACEOF
2378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002379/* confdefs.h. */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002384
John Criswell7a73b802003-06-30 21:59:07 +00002385int
2386main ()
2387{
2388
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002394ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002395# Try to create an executable without -o first, disregard a.out.
2396# It will help us diagnose broken compilers, and finding out an intuition
2397# of exeext.
2398echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2399echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2400ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402 (eval $ac_link_default) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Find the output, starting from the most likely. This scheme is
2407# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2408# resort.
2409
2410# Be careful to initialize this variable, since it used to be cached.
2411# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2412ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002413# b.out is created by i960 compilers.
2414for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2415do
2416 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002417 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2419 ;;
2420 conftest.$ac_ext )
2421 # This is the source file.
2422 ;;
2423 [ab].out )
2424 # We found the default executable, but exeext='' is most
2425 # certainly right.
2426 break;;
2427 *.* )
2428 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429 # FIXME: I believe we export ac_cv_exeext for Libtool,
2430 # but it would be cool to find out if it's true. Does anybody
2431 # maintain Libtool? --akim.
2432 export ac_cv_exeext
2433 break;;
2434 * )
2435 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002436 esac
2437done
2438else
2439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2443See \`config.log' for more details." >&5
2444echo "$as_me: error: C++ compiler cannot create executables
2445See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002446 { (exit 77); exit 77; }; }
2447fi
2448
2449ac_exeext=$ac_cv_exeext
2450echo "$as_me:$LINENO: result: $ac_file" >&5
2451echo "${ECHO_T}$ac_file" >&6
2452
2453# Check the compiler produces executables we can run. If not, either
2454# the compiler is broken, or we cross compile.
2455echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2456echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2457# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458# If not cross compiling, check that we can run a simple program.
2459if test "$cross_compiling" != yes; then
2460 if { ac_try='./$ac_file'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 cross_compiling=no
2467 else
2468 if test "$cross_compiling" = maybe; then
2469 cross_compiling=yes
2470 else
2471 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002472If you meant to cross compile, use \`--host'.
2473See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002474echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002475If you meant to cross compile, use \`--host'.
2476See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002477 { (exit 1); exit 1; }; }
2478 fi
2479 fi
2480fi
2481echo "$as_me:$LINENO: result: yes" >&5
2482echo "${ECHO_T}yes" >&6
2483
John Criswell0c38eaf2003-09-10 15:17:25 +00002484rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002485ac_clean_files=$ac_clean_files_save
2486# Check the compiler produces executables we can run. If not, either
2487# the compiler is broken, or we cross compile.
2488echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491echo "${ECHO_T}$cross_compiling" >&6
2492
2493echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496 (eval $ac_link) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; then
2500 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2502# work properly (i.e., refer to `conftest.exe'), while it won't with
2503# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002504for ac_file in conftest.exe conftest conftest.*; do
2505 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002506 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002508 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509 export ac_cv_exeext
2510 break;;
2511 * ) break;;
2512 esac
2513done
2514else
John Criswell0c38eaf2003-09-10 15:17:25 +00002515 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516See \`config.log' for more details." >&5
2517echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002519 { (exit 1); exit 1; }; }
2520fi
2521
2522rm -f conftest$ac_cv_exeext
2523echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524echo "${ECHO_T}$ac_cv_exeext" >&6
2525
2526rm -f conftest.$ac_ext
2527EXEEXT=$ac_cv_exeext
2528ac_exeext=$EXEEXT
2529echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 cat >conftest.$ac_ext <<_ACEOF
2535#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002536/* confdefs.h. */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
2540/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002541
John Criswell7a73b802003-06-30 21:59:07 +00002542int
2543main ()
2544{
2545
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550rm -f conftest.o conftest.obj
2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; then
2556 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2560 break;;
2561 esac
2562done
2563else
2564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002571 { (exit 1); exit 1; }; }
2572fi
2573
2574rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575fi
2576echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577echo "${ECHO_T}$ac_cv_objext" >&6
2578OBJEXT=$ac_cv_objext
2579ac_objext=$OBJEXT
2580echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2581echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2582if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584else
2585 cat >conftest.$ac_ext <<_ACEOF
2586#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002587/* confdefs.h. */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002592
John Criswell7a73b802003-06-30 21:59:07 +00002593int
2594main ()
2595{
2596#ifndef __GNUC__
2597 choke me
2598#endif
2599
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_compiler_gnu=yes
2617else
2618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002619sed 's/^/| /' conftest.$ac_ext >&5
2620
John Criswell7a73b802003-06-30 21:59:07 +00002621ac_compiler_gnu=no
2622fi
2623rm -f conftest.$ac_objext conftest.$ac_ext
2624ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2625
2626fi
2627echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2628echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2629GXX=`test $ac_compiler_gnu = yes && echo yes`
2630ac_test_CXXFLAGS=${CXXFLAGS+set}
2631ac_save_CXXFLAGS=$CXXFLAGS
2632CXXFLAGS="-g"
2633echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2634echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2635if test "${ac_cv_prog_cxx_g+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638 cat >conftest.$ac_ext <<_ACEOF
2639#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002645
John Criswell7a73b802003-06-30 21:59:07 +00002646int
2647main ()
2648{
2649
2650 ;
2651 return 0;
2652}
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 ac_cv_prog_cxx_g=yes
2667else
2668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002669sed 's/^/| /' conftest.$ac_ext >&5
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671ac_cv_prog_cxx_g=no
2672fi
2673rm -f conftest.$ac_objext conftest.$ac_ext
2674fi
2675echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677if test "$ac_test_CXXFLAGS" = set; then
2678 CXXFLAGS=$ac_save_CXXFLAGS
2679elif test $ac_cv_prog_cxx_g = yes; then
2680 if test "$GXX" = yes; then
2681 CXXFLAGS="-g -O2"
2682 else
2683 CXXFLAGS="-g"
2684 fi
2685else
2686 if test "$GXX" = yes; then
2687 CXXFLAGS="-O2"
2688 else
2689 CXXFLAGS=
2690 fi
2691fi
2692for ac_declaration in \
2693 ''\
2694 '#include <stdlib.h>' \
2695 'extern "C" void std::exit (int) throw (); using std::exit;' \
2696 'extern "C" void std::exit (int); using std::exit;' \
2697 'extern "C" void exit (int) throw ();' \
2698 'extern "C" void exit (int);' \
2699 'void exit (int);'
2700do
2701 cat >conftest.$ac_ext <<_ACEOF
2702#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002703/* confdefs.h. */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002708#include <stdlib.h>
2709$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002710int
2711main ()
2712{
2713exit (42);
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718rm -f conftest.$ac_objext
2719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 :
2731else
2732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002733sed 's/^/| /' conftest.$ac_ext >&5
2734
John Criswell7a73b802003-06-30 21:59:07 +00002735continue
2736fi
2737rm -f conftest.$ac_objext conftest.$ac_ext
2738 cat >conftest.$ac_ext <<_ACEOF
2739#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002745$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002746int
2747main ()
2748{
2749exit (42);
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 break
2767else
2768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002769sed 's/^/| /' conftest.$ac_ext >&5
2770
John Criswell7a73b802003-06-30 21:59:07 +00002771fi
2772rm -f conftest.$ac_objext conftest.$ac_ext
2773done
2774rm -f conftest*
2775if test -n "$ac_declaration"; then
2776 echo '#ifdef __cplusplus' >>confdefs.h
2777 echo $ac_declaration >>confdefs.h
2778 echo '#endif' >>confdefs.h
2779fi
2780
2781ac_ext=c
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
2787ac_ext=c
2788ac_cpp='$CPP $CPPFLAGS'
2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792if test -n "$ac_tool_prefix"; then
2793 for ac_prog in gcc
2794 do
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797echo "$as_me:$LINENO: checking for $ac_word" >&5
2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799if test "${ac_cv_prog_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816done
2817done
2818
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823 echo "$as_me:$LINENO: result: $CC" >&5
2824echo "${ECHO_T}$CC" >&6
2825else
2826 echo "$as_me:$LINENO: result: no" >&5
2827echo "${ECHO_T}no" >&6
2828fi
2829
2830 test -n "$CC" && break
2831 done
2832fi
2833if test -z "$CC"; then
2834 ac_ct_CC=$CC
2835 for ac_prog in gcc
2836do
2837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2838set dummy $ac_prog; ac_word=$2
2839echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844 if test -n "$ac_ct_CC"; then
2845 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_CC="$ac_prog"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859done
2860
2861fi
2862fi
2863ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864if test -n "$ac_ct_CC"; then
2865 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866echo "${ECHO_T}$ac_ct_CC" >&6
2867else
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870fi
2871
2872 test -n "$ac_ct_CC" && break
2873done
2874
2875 CC=$ac_ct_CC
2876fi
2877
2878
John Criswell0c38eaf2003-09-10 15:17:25 +00002879test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2880See \`config.log' for more details." >&5
2881echo "$as_me: error: no acceptable C compiler found in \$PATH
2882See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002883 { (exit 1); exit 1; }; }
2884
2885# Provide some information about the compiler.
2886echo "$as_me:$LINENO:" \
2887 "checking for C compiler version" >&5
2888ac_compiler=`set X $ac_compile; echo $2`
2889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2890 (eval $ac_compiler --version </dev/null >&5) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2895 (eval $ac_compiler -v </dev/null >&5) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2900 (eval $ac_compiler -V </dev/null >&5) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904
2905echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2907if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 cat >conftest.$ac_ext <<_ACEOF
2911#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002912/* confdefs.h. */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002917
John Criswell7a73b802003-06-30 21:59:07 +00002918int
2919main ()
2920{
2921#ifndef __GNUC__
2922 choke me
2923#endif
2924
2925 ;
2926 return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_compiler_gnu=yes
2942else
2943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002944sed 's/^/| /' conftest.$ac_ext >&5
2945
John Criswell7a73b802003-06-30 21:59:07 +00002946ac_compiler_gnu=no
2947fi
2948rm -f conftest.$ac_objext conftest.$ac_ext
2949ac_cv_c_compiler_gnu=$ac_compiler_gnu
2950
2951fi
2952echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2953echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2954GCC=`test $ac_compiler_gnu = yes && echo yes`
2955ac_test_CFLAGS=${CFLAGS+set}
2956ac_save_CFLAGS=$CFLAGS
2957CFLAGS="-g"
2958echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2959echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2960if test "${ac_cv_prog_cc_g+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962else
2963 cat >conftest.$ac_ext <<_ACEOF
2964#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002970
John Criswell7a73b802003-06-30 21:59:07 +00002971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext
2980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -s conftest.$ac_objext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 (eval $ac_try) 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 ac_cv_prog_cc_g=yes
2992else
2993 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002994sed 's/^/| /' conftest.$ac_ext >&5
2995
John Criswell7a73b802003-06-30 21:59:07 +00002996ac_cv_prog_cc_g=no
2997fi
2998rm -f conftest.$ac_objext conftest.$ac_ext
2999fi
3000echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3001echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3002if test "$ac_test_CFLAGS" = set; then
3003 CFLAGS=$ac_save_CFLAGS
3004elif test $ac_cv_prog_cc_g = yes; then
3005 if test "$GCC" = yes; then
3006 CFLAGS="-g -O2"
3007 else
3008 CFLAGS="-g"
3009 fi
3010else
3011 if test "$GCC" = yes; then
3012 CFLAGS="-O2"
3013 else
3014 CFLAGS=
3015 fi
3016fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003017echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3018echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3019if test "${ac_cv_prog_cc_stdc+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 ac_cv_prog_cc_stdc=no
3023ac_save_CC=$CC
3024cat >conftest.$ac_ext <<_ACEOF
3025#line $LINENO "configure"
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031#include <stdarg.h>
3032#include <stdio.h>
3033#include <sys/types.h>
3034#include <sys/stat.h>
3035/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3036struct buf { int x; };
3037FILE * (*rcsopen) (struct buf *, struct stat *, int);
3038static char *e (p, i)
3039 char **p;
3040 int i;
3041{
3042 return p[i];
3043}
3044static char *f (char * (*g) (char **, int), char **p, ...)
3045{
3046 char *s;
3047 va_list v;
3048 va_start (v,p);
3049 s = g (p, va_arg (v,int));
3050 va_end (v);
3051 return s;
3052}
3053int test (int i, double x);
3054struct s1 {int (*f) (int a);};
3055struct s2 {int (*f) (double a);};
3056int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3057int argc;
3058char **argv;
3059int
3060main ()
3061{
3062return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3063 ;
3064 return 0;
3065}
3066_ACEOF
3067# Don't try gcc -ansi; that turns off useful extensions and
3068# breaks some systems' header files.
3069# AIX -qlanglvl=ansi
3070# Ultrix and OSF/1 -std1
3071# HP-UX 10.20 and later -Ae
3072# HP-UX older versions -Aa -D_HPUX_SOURCE
3073# SVR4 -Xc -D__EXTENSIONS__
3074for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3075do
3076 CC="$ac_save_CC $ac_arg"
3077 rm -f conftest.$ac_objext
3078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3079 (eval $ac_compile) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_prog_cc_stdc=$ac_arg
3090break
3091else
3092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095fi
3096rm -f conftest.$ac_objext
3097done
3098rm -f conftest.$ac_ext conftest.$ac_objext
3099CC=$ac_save_CC
3100
3101fi
3102
3103case "x$ac_cv_prog_cc_stdc" in
3104 x|xno)
3105 echo "$as_me:$LINENO: result: none needed" >&5
3106echo "${ECHO_T}none needed" >&6 ;;
3107 *)
3108 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3109echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3110 CC="$CC $ac_cv_prog_cc_stdc" ;;
3111esac
3112
John Criswell7a73b802003-06-30 21:59:07 +00003113# Some people use a C++ compiler to compile C. Since we use `exit',
3114# in C++ we need to declare it. In case someone uses the same compiler
3115# for both compiling C and C++ we need to have the C++ compiler decide
3116# the declaration of exit, since it's the most demanding environment.
3117cat >conftest.$ac_ext <<_ACEOF
3118#ifndef __cplusplus
3119 choke me
3120#endif
3121_ACEOF
3122rm -f conftest.$ac_objext
3123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124 (eval $ac_compile) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3134 for ac_declaration in \
3135 ''\
3136 '#include <stdlib.h>' \
3137 'extern "C" void std::exit (int) throw (); using std::exit;' \
3138 'extern "C" void std::exit (int); using std::exit;' \
3139 'extern "C" void exit (int) throw ();' \
3140 'extern "C" void exit (int);' \
3141 'void exit (int);'
3142do
3143 cat >conftest.$ac_ext <<_ACEOF
3144#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003150#include <stdlib.h>
3151$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003152int
3153main ()
3154{
3155exit (42);
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160rm -f conftest.$ac_objext
3161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162 (eval $ac_compile) 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -s conftest.$ac_objext'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168 (eval $ac_try) 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
3172 :
3173else
3174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003175sed 's/^/| /' conftest.$ac_ext >&5
3176
John Criswell7a73b802003-06-30 21:59:07 +00003177continue
3178fi
3179rm -f conftest.$ac_objext conftest.$ac_ext
3180 cat >conftest.$ac_ext <<_ACEOF
3181#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003187$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003188int
3189main ()
3190{
3191exit (42);
3192 ;
3193 return 0;
3194}
3195_ACEOF
3196rm -f conftest.$ac_objext
3197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3198 (eval $ac_compile) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 (eval $ac_try) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 break
3209else
3210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003211sed 's/^/| /' conftest.$ac_ext >&5
3212
John Criswell7a73b802003-06-30 21:59:07 +00003213fi
3214rm -f conftest.$ac_objext conftest.$ac_ext
3215done
3216rm -f conftest*
3217if test -n "$ac_declaration"; then
3218 echo '#ifdef __cplusplus' >>confdefs.h
3219 echo $ac_declaration >>confdefs.h
3220 echo '#endif' >>confdefs.h
3221fi
3222
3223else
3224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003225sed 's/^/| /' conftest.$ac_ext >&5
3226
John Criswell7a73b802003-06-30 21:59:07 +00003227fi
3228rm -f conftest.$ac_objext conftest.$ac_ext
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3241echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3242# On Suns, sometimes $CPP names a directory.
3243if test -n "$CPP" && test -d "$CPP"; then
3244 CPP=
3245fi
3246if test -z "$CPP"; then
3247 if test "${ac_cv_prog_CPP+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 # Double quotes because CPP needs to be expanded
3251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252 do
3253 ac_preproc_ok=false
3254for ac_c_preproc_warn_flag in '' yes
3255do
3256 # Use a header file that comes with gcc, so configuring glibc
3257 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003260 # On the NeXT, cc -E runs the code through the compiler's parser,
3261 # not just through cpp. "Syntax error" is here to catch this case.
3262 cat >conftest.$ac_ext <<_ACEOF
3263#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003264/* confdefs.h. */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h. */
3269#ifdef __STDC__
3270# include <limits.h>
3271#else
3272# include <assert.h>
3273#endif
John Criswell7a73b802003-06-30 21:59:07 +00003274 Syntax error
3275_ACEOF
3276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3278 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003279 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 else
3287 ac_cpp_err=
3288 fi
3289else
3290 ac_cpp_err=yes
3291fi
3292if test -z "$ac_cpp_err"; then
3293 :
3294else
3295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
John Criswell7a73b802003-06-30 21:59:07 +00003298 # Broken: fails on valid input.
3299continue
3300fi
3301rm -f conftest.err conftest.$ac_ext
3302
3303 # OK, works on sane cases. Now check whether non-existent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3306#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003312#include <ac_nonexistent.h>
3313_ACEOF
3314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003317 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null; then
3322 if test -s conftest.err; then
3323 ac_cpp_err=$ac_c_preproc_warn_flag
3324 else
3325 ac_cpp_err=
3326 fi
3327else
3328 ac_cpp_err=yes
3329fi
3330if test -z "$ac_cpp_err"; then
3331 # Broken: success on invalid input.
3332continue
3333else
3334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003335sed 's/^/| /' conftest.$ac_ext >&5
3336
John Criswell7a73b802003-06-30 21:59:07 +00003337 # Passes both tests.
3338ac_preproc_ok=:
3339break
3340fi
3341rm -f conftest.err conftest.$ac_ext
3342
3343done
3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345rm -f conftest.err conftest.$ac_ext
3346if $ac_preproc_ok; then
3347 break
3348fi
3349
3350 done
3351 ac_cv_prog_CPP=$CPP
3352
3353fi
3354 CPP=$ac_cv_prog_CPP
3355else
3356 ac_cv_prog_CPP=$CPP
3357fi
3358echo "$as_me:$LINENO: result: $CPP" >&5
3359echo "${ECHO_T}$CPP" >&6
3360ac_preproc_ok=false
3361for ac_c_preproc_warn_flag in '' yes
3362do
3363 # Use a header file that comes with gcc, so configuring glibc
3364 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003367 # On the NeXT, cc -E runs the code through the compiler's parser,
3368 # not just through cpp. "Syntax error" is here to catch this case.
3369 cat >conftest.$ac_ext <<_ACEOF
3370#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#ifdef __STDC__
3377# include <limits.h>
3378#else
3379# include <assert.h>
3380#endif
John Criswell7a73b802003-06-30 21:59:07 +00003381 Syntax error
3382_ACEOF
3383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3385 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003386 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null; then
3391 if test -s conftest.err; then
3392 ac_cpp_err=$ac_c_preproc_warn_flag
3393 else
3394 ac_cpp_err=
3395 fi
3396else
3397 ac_cpp_err=yes
3398fi
3399if test -z "$ac_cpp_err"; then
3400 :
3401else
3402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003403sed 's/^/| /' conftest.$ac_ext >&5
3404
John Criswell7a73b802003-06-30 21:59:07 +00003405 # Broken: fails on valid input.
3406continue
3407fi
3408rm -f conftest.err conftest.$ac_ext
3409
3410 # OK, works on sane cases. Now check whether non-existent headers
3411 # can be detected and how.
3412 cat >conftest.$ac_ext <<_ACEOF
3413#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003419#include <ac_nonexistent.h>
3420_ACEOF
3421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3423 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003424 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null; then
3429 if test -s conftest.err; then
3430 ac_cpp_err=$ac_c_preproc_warn_flag
3431 else
3432 ac_cpp_err=
3433 fi
3434else
3435 ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
3438 # Broken: success on invalid input.
3439continue
3440else
3441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003442sed 's/^/| /' conftest.$ac_ext >&5
3443
John Criswell7a73b802003-06-30 21:59:07 +00003444 # Passes both tests.
3445ac_preproc_ok=:
3446break
3447fi
3448rm -f conftest.err conftest.$ac_ext
3449
3450done
3451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452rm -f conftest.err conftest.$ac_ext
3453if $ac_preproc_ok; then
3454 :
3455else
John Criswell0c38eaf2003-09-10 15:17:25 +00003456 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3457See \`config.log' for more details." >&5
3458echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3459See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003460 { (exit 1); exit 1; }; }
3461fi
3462
3463ac_ext=c
3464ac_cpp='$CPP $CPPFLAGS'
3465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468
3469
3470if test "$GCC" != "yes"
3471then
3472 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3473echo "$as_me: error: gcc required but not found" >&2;}
3474 { (exit 1); exit 1; }; }
3475fi
3476
3477if test "$GXX" != "yes"
3478then
3479 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3480echo "$as_me: error: g++ required but not found" >&2;}
3481 { (exit 1); exit 1; }; }
3482fi
3483
John Criswellde00db22003-08-25 16:49:54 +00003484gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3485if test "$gccmajor" -lt "3"
3486then
3487 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3488echo "$as_me: error: gcc 3.x required" >&2;}
3489 { (exit 1); exit 1; }; }
3490fi
3491
John Criswell7a73b802003-06-30 21:59:07 +00003492 echo "$as_me:$LINENO: checking for GNU make" >&5
3493echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3494if test "${_cv_gnu_make_command+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497 _cv_gnu_make_command='' ;
3498 for a in "$MAKE" make gmake gnumake ; do
3499 if test -z "$a" ; then continue ; fi ;
3500 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3501 _cv_gnu_make_command=$a ;
3502 break;
3503 fi
3504 done ;
3505
3506fi
3507echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3508echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3509 if test "x$_cv_gnu_make_command" != "x" ; then
3510 ifGNUmake='' ;
3511 else
3512 ifGNUmake='#' ;
3513 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3514echo "${ECHO_T}\"Not found\"" >&6;
3515 fi
3516
3517
3518if test -z "$_cv_gnu_make_command"
3519then
3520 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3521echo "$as_me: error: GNU Make required but not found" >&2;}
3522 { (exit 1); exit 1; }; }
3523fi
3524
3525
3526echo "$as_me:$LINENO: checking " >&5
3527echo $ECHO_N "checking ... $ECHO_C" >&6
3528if test "${ac_cv_has_flex+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531 for ac_prog in flex lex
3532do
3533 # Extract the first word of "$ac_prog", so it can be a program name with args.
3534set dummy $ac_prog; ac_word=$2
3535echo "$as_me:$LINENO: checking for $ac_word" >&5
3536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537if test "${ac_cv_prog_LEX+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 if test -n "$LEX"; then
3541 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3542else
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_LEX="$ac_prog"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554done
3555done
3556
3557fi
3558fi
3559LEX=$ac_cv_prog_LEX
3560if test -n "$LEX"; then
3561 echo "$as_me:$LINENO: result: $LEX" >&5
3562echo "${ECHO_T}$LEX" >&6
3563else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566fi
3567
3568 test -n "$LEX" && break
3569done
3570test -n "$LEX" || LEX=":"
3571
3572if test -z "$LEXLIB"
3573then
3574 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3575echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3576if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 ac_check_lib_save_LIBS=$LIBS
3580LIBS="-lfl $LIBS"
3581cat >conftest.$ac_ext <<_ACEOF
3582#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003588
3589/* Override any gcc2 internal prototype to avoid an error. */
3590#ifdef __cplusplus
3591extern "C"
3592#endif
3593/* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003596int
3597main ()
3598{
3599yywrap ();
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext conftest$ac_exeext
3605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3606 (eval $ac_link) 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest$ac_exeext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 ac_cv_lib_fl_yywrap=yes
3617else
3618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003619sed 's/^/| /' conftest.$ac_ext >&5
3620
John Criswell7a73b802003-06-30 21:59:07 +00003621ac_cv_lib_fl_yywrap=no
3622fi
3623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3624LIBS=$ac_check_lib_save_LIBS
3625fi
3626echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3627echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3628if test $ac_cv_lib_fl_yywrap = yes; then
3629 LEXLIB="-lfl"
3630else
3631 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3632echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3633if test "${ac_cv_lib_l_yywrap+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636 ac_check_lib_save_LIBS=$LIBS
3637LIBS="-ll $LIBS"
3638cat >conftest.$ac_ext <<_ACEOF
3639#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003640/* confdefs.h. */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003645
3646/* Override any gcc2 internal prototype to avoid an error. */
3647#ifdef __cplusplus
3648extern "C"
3649#endif
3650/* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3652char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003653int
3654main ()
3655{
3656yywrap ();
3657 ;
3658 return 0;
3659}
3660_ACEOF
3661rm -f conftest.$ac_objext conftest$ac_exeext
3662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_lib_l_yywrap=yes
3674else
3675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003676sed 's/^/| /' conftest.$ac_ext >&5
3677
John Criswell7a73b802003-06-30 21:59:07 +00003678ac_cv_lib_l_yywrap=no
3679fi
3680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3681LIBS=$ac_check_lib_save_LIBS
3682fi
3683echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3684echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3685if test $ac_cv_lib_l_yywrap = yes; then
3686 LEXLIB="-ll"
3687fi
3688
3689fi
3690
3691fi
3692
3693if test "x$LEX" != "x:"; then
3694 echo "$as_me:$LINENO: checking lex output file root" >&5
3695echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3696if test "${ac_cv_prog_lex_root+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699 # The minimal lex program is just a single line: %%. But some broken lexes
3700# (Solaris, I think it was) want two %% lines, so accommodate them.
3701cat >conftest.l <<_ACEOF
3702%%
3703%%
3704_ACEOF
3705{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3706 (eval $LEX conftest.l) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }
3710if test -f lex.yy.c; then
3711 ac_cv_prog_lex_root=lex.yy
3712elif test -f lexyy.c; then
3713 ac_cv_prog_lex_root=lexyy
3714else
3715 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3716echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3717 { (exit 1); exit 1; }; }
3718fi
3719fi
3720echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3721echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3722rm -f conftest.l
3723LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3724
3725echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3726echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3727if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 # POSIX says lex can declare yytext either as a pointer or an array; the
3731# default is implementation-dependent. Figure out which it is, since
3732# not all implementations provide the %pointer and %array declarations.
3733ac_cv_prog_lex_yytext_pointer=no
3734echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3735ac_save_LIBS=$LIBS
3736LIBS="$LIBS $LEXLIB"
3737cat >conftest.$ac_ext <<_ACEOF
3738`cat $LEX_OUTPUT_ROOT.c`
3739_ACEOF
3740rm -f conftest.$ac_objext conftest$ac_exeext
3741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3742 (eval $ac_link) 2>&5
3743 ac_status=$?
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -s conftest$ac_exeext'
3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 (eval $ac_try) 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 ac_cv_prog_lex_yytext_pointer=yes
3753else
3754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003755sed 's/^/| /' conftest.$ac_ext >&5
3756
John Criswell7a73b802003-06-30 21:59:07 +00003757fi
3758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3759LIBS=$ac_save_LIBS
3760rm -f "${LEX_OUTPUT_ROOT}.c"
3761
3762fi
3763echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3764echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3765if test $ac_cv_prog_lex_yytext_pointer = yes; then
3766
3767cat >>confdefs.h <<\_ACEOF
3768#define YYTEXT_POINTER 1
3769_ACEOF
3770
3771fi
3772
3773fi
3774
3775fi
3776echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3777echo "${ECHO_T}$ac_cv_has_flex" >&6
3778if test "$LEX" != "flex"; then
3779 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3780echo "$as_me: error: flex not found but required" >&2;}
3781 { (exit 1); exit 1; }; }
3782fi
3783
3784echo "$as_me:$LINENO: checking " >&5
3785echo $ECHO_N "checking ... $ECHO_C" >&6
3786if test "${ac_cv_has_bison+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 for ac_prog in 'bison -y' byacc
3790do
3791 # Extract the first word of "$ac_prog", so it can be a program name with args.
3792set dummy $ac_prog; ac_word=$2
3793echo "$as_me:$LINENO: checking for $ac_word" >&5
3794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795if test "${ac_cv_prog_YACC+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 if test -n "$YACC"; then
3799 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_YACC="$ac_prog"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812done
3813done
3814
3815fi
3816fi
3817YACC=$ac_cv_prog_YACC
3818if test -n "$YACC"; then
3819 echo "$as_me:$LINENO: result: $YACC" >&5
3820echo "${ECHO_T}$YACC" >&6
3821else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824fi
3825
3826 test -n "$YACC" && break
3827done
3828test -n "$YACC" || YACC="yacc"
3829
3830
3831fi
3832echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3833echo "${ECHO_T}$ac_cv_has_bison" >&6
3834if test "$YACC" != "bison -y"; then
3835 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3836echo "$as_me: error: bison not found but required" >&2;}
3837 { (exit 1); exit 1; }; }
3838else
3839 YACC=bison
3840
3841fi
3842
3843
3844# Check whether --enable-shared or --disable-shared was given.
3845if test "${enable_shared+set}" = set; then
3846 enableval="$enable_shared"
3847 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003848 case $enableval in
3849 yes) enable_shared=yes ;;
3850 no) enable_shared=no ;;
3851 *)
3852 enable_shared=no
3853 # Look at the argument we got. We use all the common list separators.
3854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3855 for pkg in $enableval; do
3856 IFS="$lt_save_ifs"
3857 if test "X$pkg" = "X$p"; then
3858 enable_shared=yes
3859 fi
3860 done
3861 IFS="$lt_save_ifs"
3862 ;;
3863 esac
John Criswell7a73b802003-06-30 21:59:07 +00003864else
3865 enable_shared=yes
3866fi;
John Criswell47fdd832003-07-14 16:52:07 +00003867
John Criswell7a73b802003-06-30 21:59:07 +00003868# Check whether --enable-static or --disable-static was given.
3869if test "${enable_static+set}" = set; then
3870 enableval="$enable_static"
3871 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003872 case $enableval in
3873 yes) enable_static=yes ;;
3874 no) enable_static=no ;;
3875 *)
3876 enable_static=no
3877 # Look at the argument we got. We use all the common list separators.
3878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3879 for pkg in $enableval; do
3880 IFS="$lt_save_ifs"
3881 if test "X$pkg" = "X$p"; then
3882 enable_static=yes
3883 fi
3884 done
3885 IFS="$lt_save_ifs"
3886 ;;
3887 esac
John Criswell7a73b802003-06-30 21:59:07 +00003888else
3889 enable_static=yes
3890fi;
John Criswell47fdd832003-07-14 16:52:07 +00003891
John Criswell7a73b802003-06-30 21:59:07 +00003892# Check whether --enable-fast-install or --disable-fast-install was given.
3893if test "${enable_fast_install+set}" = set; then
3894 enableval="$enable_fast_install"
3895 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003896 case $enableval in
3897 yes) enable_fast_install=yes ;;
3898 no) enable_fast_install=no ;;
3899 *)
3900 enable_fast_install=no
3901 # Look at the argument we got. We use all the common list separators.
3902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3903 for pkg in $enableval; do
3904 IFS="$lt_save_ifs"
3905 if test "X$pkg" = "X$p"; then
3906 enable_fast_install=yes
3907 fi
3908 done
3909 IFS="$lt_save_ifs"
3910 ;;
3911 esac
John Criswell7a73b802003-06-30 21:59:07 +00003912else
3913 enable_fast_install=yes
3914fi;
John Criswell47fdd832003-07-14 16:52:07 +00003915
3916echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3917echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3918if test "${lt_cv_path_SED+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921 # Loop through the user's path and test for sed and gsed.
3922# Then use that list of sed's as ones to test for truncation.
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for lt_ac_prog in sed gsed; do
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3931 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3932 fi
3933 done
3934 done
3935done
3936lt_ac_max=0
3937lt_ac_count=0
3938# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3939# along with /bin/sed that truncates output.
3940for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3941 test ! -f $lt_ac_sed && break
3942 cat /dev/null > conftest.in
3943 lt_ac_count=0
3944 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3945 # Check for GNU sed and select it if it is found.
3946 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3947 lt_cv_path_SED=$lt_ac_sed
3948 break
3949 fi
3950 while true; do
3951 cat conftest.in conftest.in >conftest.tmp
3952 mv conftest.tmp conftest.in
3953 cp conftest.in conftest.nl
3954 echo >>conftest.nl
3955 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3956 cmp -s conftest.out conftest.nl || break
3957 # 10000 chars as input seems more than enough
3958 test $lt_ac_count -gt 10 && break
3959 lt_ac_count=`expr $lt_ac_count + 1`
3960 if test $lt_ac_count -gt $lt_ac_max; then
3961 lt_ac_max=$lt_ac_count
3962 lt_cv_path_SED=$lt_ac_sed
3963 fi
3964 done
3965done
3966SED=$lt_cv_path_SED
3967
John Criswell7a73b802003-06-30 21:59:07 +00003968fi
3969
John Criswell47fdd832003-07-14 16:52:07 +00003970echo "$as_me:$LINENO: result: $SED" >&5
3971echo "${ECHO_T}$SED" >&6
3972
3973echo "$as_me:$LINENO: checking for egrep" >&5
3974echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3975if test "${ac_cv_prog_egrep+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3979 then ac_cv_prog_egrep='grep -E'
3980 else ac_cv_prog_egrep='egrep'
3981 fi
3982fi
3983echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3984echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3985 EGREP=$ac_cv_prog_egrep
3986
3987
John Criswell7a73b802003-06-30 21:59:07 +00003988
3989# Check whether --with-gnu-ld or --without-gnu-ld was given.
3990if test "${with_gnu_ld+set}" = set; then
3991 withval="$with_gnu_ld"
3992 test "$withval" = no || with_gnu_ld=yes
3993else
3994 with_gnu_ld=no
3995fi;
3996ac_prog=ld
3997if test "$GCC" = yes; then
3998 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003999 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4000echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004001 case $host in
4002 *-*-mingw*)
4003 # gcc leaves a trailing carriage return which upsets mingw
4004 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4005 *)
4006 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4007 esac
4008 case $ac_prog in
4009 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004010 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004011 re_direlt='/[^/][^/]*/\.\./'
4012 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004013 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004014 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004015 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004016 done
4017 test -z "$LD" && LD="$ac_prog"
4018 ;;
4019 "")
4020 # If it fails, then pretend we aren't using GCC.
4021 ac_prog=ld
4022 ;;
4023 *)
4024 # If it is relative, then search for the first ld in PATH.
4025 with_gnu_ld=unknown
4026 ;;
4027 esac
4028elif test "$with_gnu_ld" = yes; then
4029 echo "$as_me:$LINENO: checking for GNU ld" >&5
4030echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4031else
4032 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4033echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4034fi
4035if test "${lt_cv_path_LD+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004040 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004041 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004042 test -z "$ac_dir" && ac_dir=.
4043 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4044 lt_cv_path_LD="$ac_dir/$ac_prog"
4045 # Check to see if the program is GNU ld. I'd rather use --version,
4046 # but apparently some GNU ld's only accept -v.
4047 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004048 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4049 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004050 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004051 ;;
4052 *)
John Criswell7a73b802003-06-30 21:59:07 +00004053 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004054 ;;
4055 esac
John Criswell7a73b802003-06-30 21:59:07 +00004056 fi
4057 done
John Criswell47fdd832003-07-14 16:52:07 +00004058 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004059else
4060 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4061fi
4062fi
4063
4064LD="$lt_cv_path_LD"
4065if test -n "$LD"; then
4066 echo "$as_me:$LINENO: result: $LD" >&5
4067echo "${ECHO_T}$LD" >&6
4068else
4069 echo "$as_me:$LINENO: result: no" >&5
4070echo "${ECHO_T}no" >&6
4071fi
4072test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4073echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4074 { (exit 1); exit 1; }; }
4075echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4076echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4077if test "${lt_cv_prog_gnu_ld+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004081case `"$LD" -v 2>&1 </dev/null` in
4082*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004083 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004084 ;;
4085*)
John Criswell7a73b802003-06-30 21:59:07 +00004086 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004087 ;;
4088esac
John Criswell7a73b802003-06-30 21:59:07 +00004089fi
4090echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4091echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4092with_gnu_ld=$lt_cv_prog_gnu_ld
4093
4094
4095echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4096echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4097if test "${lt_cv_ld_reload_flag+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 lt_cv_ld_reload_flag='-r'
4101fi
4102echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4103echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4104reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004105case $reload_flag in
4106"" | " "*) ;;
4107*) reload_flag=" $reload_flag" ;;
4108esac
4109reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004110
4111echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4112echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4113if test "${lt_cv_path_NM+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115else
4116 if test -n "$NM"; then
4117 # Let the user override the test.
4118 lt_cv_path_NM="$NM"
4119else
John Criswell47fdd832003-07-14 16:52:07 +00004120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004121 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004122 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004123 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004124 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4125 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004126 # Check to see if the nm accepts a BSD-compat flag.
4127 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4128 # nm: unknown option "B" ignored
4129 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004130 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4131 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004132 lt_cv_path_NM="$tmp_nm -B"
4133 break
John Criswell47fdd832003-07-14 16:52:07 +00004134 ;;
4135 *)
4136 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4137 */dev/null*)
4138 lt_cv_path_NM="$tmp_nm -p"
4139 break
4140 ;;
4141 *)
4142 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4143 continue # so that we can try to find one that supports BSD flags
4144 ;;
4145 esac
4146 esac
John Criswell7a73b802003-06-30 21:59:07 +00004147 fi
4148 done
John Criswell47fdd832003-07-14 16:52:07 +00004149 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004150 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4151fi
4152fi
John Criswell47fdd832003-07-14 16:52:07 +00004153echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4154echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004155NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004156
4157echo "$as_me:$LINENO: checking whether ln -s works" >&5
4158echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4159LN_S=$as_ln_s
4160if test "$LN_S" = "ln -s"; then
4161 echo "$as_me:$LINENO: result: yes" >&5
4162echo "${ECHO_T}yes" >&6
4163else
4164 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4165echo "${ECHO_T}no, using $LN_S" >&6
4166fi
4167
John Criswell47fdd832003-07-14 16:52:07 +00004168echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4169echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004170if test "${lt_cv_deplibs_check_method+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173 lt_cv_file_magic_cmd='$MAGIC_CMD'
4174lt_cv_file_magic_test_file=
4175lt_cv_deplibs_check_method='unknown'
4176# Need to set the preceding variable on all platforms that support
4177# interlibrary dependencies.
4178# 'none' -- dependencies not supported.
4179# `unknown' -- same as none, but documents that we really don't know.
4180# 'pass_all' -- all dependencies passed with no checks.
4181# 'test_compile' -- check by making test program.
4182# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004183# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004184# If you have `file' or equivalent on your system and you're not sure
4185# whether `pass_all' will *always* work, you probably want this one.
4186
4187case $host_os in
4188aix4* | aix5*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192beos*)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
4195
4196bsdi4*)
4197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198 lt_cv_file_magic_cmd='/usr/bin/file -L'
4199 lt_cv_file_magic_test_file=/shlib/libc.so
4200 ;;
4201
4202cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004203 # win32_libid is a shell function defined in ltmain.sh
4204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4205 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004206 ;;
4207
4208darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004209 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004210 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4211 lt_cv_file_magic_cmd='/usr/bin/file -L'
4212 case "$host_os" in
4213 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004214 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004215 ;;
4216 *) # Darwin 1.3 on
4217 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4218 ;;
4219 esac
John Criswell47fdd832003-07-14 16:52:07 +00004220 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004221 ;;
4222
4223freebsd*)
4224 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4225 case $host_cpu in
4226 i*86 )
4227 # Not sure whether the presence of OpenBSD here was a mistake.
4228 # Let's accept both of them until this is cleared up.
4229 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4230 lt_cv_file_magic_cmd=/usr/bin/file
4231 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4232 ;;
4233 esac
4234 else
4235 lt_cv_deplibs_check_method=pass_all
4236 fi
4237 ;;
4238
4239gnu*)
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
John Criswell47fdd832003-07-14 16:52:07 +00004243hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004244 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004245 case "$host_cpu" in
4246 ia64*)
4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4248 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4249 ;;
4250 hppa*64*)
4251 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]'
4252 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4253 ;;
4254 *)
4255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4257 ;;
4258 esac
John Criswell7a73b802003-06-30 21:59:07 +00004259 ;;
4260
John Criswell47fdd832003-07-14 16:52:07 +00004261irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004262 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004263 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004264 # this will be overridden with pass_all, but let us keep it just in case
4265 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4266 ;;
4267 *)
4268 case $LD in
4269 *-32|*"-32 ") libmagic=32-bit;;
4270 *-n32|*"-n32 ") libmagic=N32;;
4271 *-64|*"-64 ") libmagic=64-bit;;
4272 *) libmagic=never-match;;
4273 esac
4274 # this will be overridden with pass_all, but let us keep it just in case
4275 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4276 ;;
4277 esac
4278 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
4281
4282# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004283linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004284 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004285 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004286 lt_cv_deplibs_check_method=pass_all ;;
4287 *)
4288 # glibc up to 2.1.1 does not perform some relocations on ARM
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4290 esac
4291 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4292 ;;
4293
4294netbsd*)
4295 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004297 else
John Criswell47fdd832003-07-14 16:52:07 +00004298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004299 fi
4300 ;;
4301
4302newos6*)
4303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4304 lt_cv_file_magic_cmd=/usr/bin/file
4305 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4306 ;;
4307
John Criswell47fdd832003-07-14 16:52:07 +00004308nto-qnx)
4309 lt_cv_deplibs_check_method=unknown
4310 ;;
4311
John Criswell7a73b802003-06-30 21:59:07 +00004312openbsd*)
4313 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4317 else
4318 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4319 fi
4320 ;;
4321
4322osf3* | osf4* | osf5*)
4323 # this will be overridden with pass_all, but let us keep it just in case
4324 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4325 lt_cv_file_magic_test_file=/shlib/libc.so
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328
4329sco3.2v5*)
4330 lt_cv_deplibs_check_method=pass_all
4331 ;;
4332
4333solaris*)
4334 lt_cv_deplibs_check_method=pass_all
4335 lt_cv_file_magic_test_file=/lib/libc.so
4336 ;;
4337
John Criswell7a73b802003-06-30 21:59:07 +00004338sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4339 case $host_vendor in
4340 motorola)
4341 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]'
4342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4343 ;;
4344 ncr)
4345 lt_cv_deplibs_check_method=pass_all
4346 ;;
4347 sequent)
4348 lt_cv_file_magic_cmd='/bin/file'
4349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4350 ;;
4351 sni)
4352 lt_cv_file_magic_cmd='/bin/file'
4353 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4354 lt_cv_file_magic_test_file=/lib/libc.so
4355 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004356 siemens)
4357 lt_cv_deplibs_check_method=pass_all
4358 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004359 esac
4360 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004361
4362sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004365esac
4366
4367fi
4368echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4369echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4370file_magic_cmd=$lt_cv_file_magic_cmd
4371deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004372test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004373
4374
4375
4376
John Criswell47fdd832003-07-14 16:52:07 +00004377# If no C compiler was specified, use CC.
4378LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004379
John Criswell47fdd832003-07-14 16:52:07 +00004380# Allow CC to be a program name with arguments.
4381compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004382
John Criswell47fdd832003-07-14 16:52:07 +00004383# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4384if test "${enable_libtool_lock+set}" = set; then
4385 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004386
John Criswell47fdd832003-07-14 16:52:07 +00004387fi;
4388test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004389
John Criswell47fdd832003-07-14 16:52:07 +00004390# Some flags need to be propagated to the compiler or linker for good
4391# libtool support.
4392case $host in
4393ia64-*-hpux*)
4394 # Find out which ABI we are using.
4395 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004401 case `/usr/bin/file conftest.$ac_objext` in
4402 *ELF-32*)
4403 HPUX_IA64_MODE="32"
4404 ;;
4405 *ELF-64*)
4406 HPUX_IA64_MODE="64"
4407 ;;
4408 esac
4409 fi
4410 rm -rf conftest*
4411 ;;
4412*-*-irix6*)
4413 # Find out which ABI we are using.
John Criswellf5b55652003-09-30 13:52:11 +00004414 echo '#line 4414 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004419 (exit $ac_status); }; then
4420 if test "$lt_cv_prog_gnu_ld" = yes; then
4421 case `/usr/bin/file conftest.$ac_objext` in
4422 *32-bit*)
4423 LD="${LD-ld} -melf32bsmip"
4424 ;;
4425 *N32*)
4426 LD="${LD-ld} -melf32bmipn32"
4427 ;;
4428 *64-bit*)
4429 LD="${LD-ld} -melf64bmip"
4430 ;;
4431 esac
4432 else
4433 case `/usr/bin/file conftest.$ac_objext` in
4434 *32-bit*)
4435 LD="${LD-ld} -32"
4436 ;;
4437 *N32*)
4438 LD="${LD-ld} -n32"
4439 ;;
4440 *64-bit*)
4441 LD="${LD-ld} -64"
4442 ;;
4443 esac
4444 fi
4445 fi
4446 rm -rf conftest*
4447 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004448
John Criswell47fdd832003-07-14 16:52:07 +00004449x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4450 # Find out which ABI we are using.
4451 echo 'int i;' > conftest.$ac_ext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; then
4457 case "`/usr/bin/file conftest.o`" in
4458 *32-bit*)
4459 case $host in
4460 x86_64-*linux*)
4461 LD="${LD-ld} -m elf_i386"
4462 ;;
4463 ppc64-*linux*)
4464 LD="${LD-ld} -m elf32ppclinux"
4465 ;;
4466 s390x-*linux*)
4467 LD="${LD-ld} -m elf_s390"
4468 ;;
4469 sparc64-*linux*)
4470 LD="${LD-ld} -m elf32_sparc"
4471 ;;
4472 esac
4473 ;;
4474 *64-bit*)
4475 case $host in
4476 x86_64-*linux*)
4477 LD="${LD-ld} -m elf_x86_64"
4478 ;;
4479 ppc*-*linux*|powerpc*-*linux*)
4480 LD="${LD-ld} -m elf64ppc"
4481 ;;
4482 s390*-*linux*)
4483 LD="${LD-ld} -m elf64_s390"
4484 ;;
4485 sparc*-*linux*)
4486 LD="${LD-ld} -m elf64_sparc"
4487 ;;
4488 esac
4489 ;;
4490 esac
4491 fi
4492 rm -rf conftest*
4493 ;;
4494
4495*-*-sco3.2v5*)
4496 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4497 SAVE_CFLAGS="$CFLAGS"
4498 CFLAGS="$CFLAGS -belf"
4499 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4500echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4501if test "${lt_cv_cc_needs_belf+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 ac_ext=c
4505ac_cpp='$CPP $CPPFLAGS'
4506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509
4510 cat >conftest.$ac_ext <<_ACEOF
4511#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004517
John Criswell47fdd832003-07-14 16:52:07 +00004518int
4519main ()
John Criswell7a73b802003-06-30 21:59:07 +00004520{
John Criswell7a73b802003-06-30 21:59:07 +00004521
John Criswell47fdd832003-07-14 16:52:07 +00004522 ;
4523 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004524}
John Criswell47fdd832003-07-14 16:52:07 +00004525_ACEOF
4526rm -f conftest.$ac_objext conftest$ac_exeext
4527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004528 (eval $ac_link) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004531 (exit $ac_status); } &&
4532 { ac_try='test -s conftest$ac_exeext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004539else
John Criswell47fdd832003-07-14 16:52:07 +00004540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004541sed 's/^/| /' conftest.$ac_ext >&5
4542
John Criswell47fdd832003-07-14 16:52:07 +00004543lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004544fi
John Criswell47fdd832003-07-14 16:52:07 +00004545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4546 ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
John Criswell7a73b802003-06-30 21:59:07 +00004552fi
John Criswell47fdd832003-07-14 16:52:07 +00004553echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4554echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4555 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4557 CFLAGS="$SAVE_CFLAGS"
4558 fi
4559 ;;
4560
4561esac
4562
4563need_locks="$enable_libtool_lock"
4564
John Criswell7a73b802003-06-30 21:59:07 +00004565
4566
4567echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4568echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4569if test "${ac_cv_header_stdc+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 cat >conftest.$ac_ext <<_ACEOF
4573#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004579#include <stdlib.h>
4580#include <stdarg.h>
4581#include <string.h>
4582#include <float.h>
4583
John Criswell0c38eaf2003-09-10 15:17:25 +00004584int
4585main ()
4586{
4587
4588 ;
4589 return 0;
4590}
John Criswell7a73b802003-06-30 21:59:07 +00004591_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004592rm -f conftest.$ac_objext
4593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004595 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004597 (exit $ac_status); } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004604 ac_cv_header_stdc=yes
4605else
4606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004607sed 's/^/| /' conftest.$ac_ext >&5
4608
4609ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004610fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004611rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004612
4613if test $ac_cv_header_stdc = yes; then
4614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4615 cat >conftest.$ac_ext <<_ACEOF
4616#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004622#include <string.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004626 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004627 :
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4637 cat >conftest.$ac_ext <<_ACEOF
4638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004644#include <stdlib.h>
4645
4646_ACEOF
4647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004648 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004649 :
4650else
4651 ac_cv_header_stdc=no
4652fi
4653rm -f conftest*
4654
4655fi
4656
4657if test $ac_cv_header_stdc = yes; then
4658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4659 if test "$cross_compiling" = yes; then
4660 :
4661else
4662 cat >conftest.$ac_ext <<_ACEOF
4663#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004664/* confdefs.h. */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004669#include <ctype.h>
4670#if ((' ' & 0x0FF) == 0x020)
4671# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4672# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4673#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004674# define ISLOWER(c) \
4675 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004676 || ('j' <= (c) && (c) <= 'r') \
4677 || ('s' <= (c) && (c) <= 'z'))
4678# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4679#endif
4680
4681#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4682int
4683main ()
4684{
4685 int i;
4686 for (i = 0; i < 256; i++)
4687 if (XOR (islower (i), ISLOWER (i))
4688 || toupper (i) != TOUPPER (i))
4689 exit(2);
4690 exit (0);
4691}
4692_ACEOF
4693rm -f conftest$ac_exeext
4694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 :
4705else
4706 echo "$as_me: program exited with status $ac_status" >&5
4707echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004708sed 's/^/| /' conftest.$ac_ext >&5
4709
John Criswell7a73b802003-06-30 21:59:07 +00004710( exit $ac_status )
4711ac_cv_header_stdc=no
4712fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004713rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004714fi
4715fi
4716fi
4717echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4718echo "${ECHO_T}$ac_cv_header_stdc" >&6
4719if test $ac_cv_header_stdc = yes; then
4720
4721cat >>confdefs.h <<\_ACEOF
4722#define STDC_HEADERS 1
4723_ACEOF
4724
4725fi
4726
4727# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4738 inttypes.h stdint.h unistd.h
4739do
4740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4741echo "$as_me:$LINENO: checking for $ac_header" >&5
4742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4743if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 cat >conftest.$ac_ext <<_ACEOF
4747#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004753$ac_includes_default
4754
4755#include <$ac_header>
4756_ACEOF
4757rm -f conftest.$ac_objext
4758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 eval "$as_ac_Header=yes"
4770else
4771 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004772sed 's/^/| /' conftest.$ac_ext >&5
4773
John Criswell7a73b802003-06-30 21:59:07 +00004774eval "$as_ac_Header=no"
4775fi
4776rm -f conftest.$ac_objext conftest.$ac_ext
4777fi
4778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4780if test `eval echo '${'$as_ac_Header'}'` = yes; then
4781 cat >>confdefs.h <<_ACEOF
4782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4783_ACEOF
4784
4785fi
4786
4787done
4788
4789
4790
4791for ac_header in dlfcn.h
4792do
4793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4794if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795 echo "$as_me:$LINENO: checking for $ac_header" >&5
4796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4797if eval "test \"\${$as_ac_Header+set}\" = set"; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4799fi
4800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4802else
4803 # Is the header compilable?
4804echo "$as_me:$LINENO: checking $ac_header usability" >&5
4805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4806cat >conftest.$ac_ext <<_ACEOF
4807#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004813$ac_includes_default
4814#include <$ac_header>
4815_ACEOF
4816rm -f conftest.$ac_objext
4817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_header_compiler=yes
4829else
4830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004831sed 's/^/| /' conftest.$ac_ext >&5
4832
John Criswell7a73b802003-06-30 21:59:07 +00004833ac_header_compiler=no
4834fi
4835rm -f conftest.$ac_objext conftest.$ac_ext
4836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837echo "${ECHO_T}$ac_header_compiler" >&6
4838
4839# Is the header present?
4840echo "$as_me:$LINENO: checking $ac_header presence" >&5
4841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4842cat >conftest.$ac_ext <<_ACEOF
4843#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004849#include <$ac_header>
4850_ACEOF
4851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004854 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null; then
4859 if test -s conftest.err; then
4860 ac_cpp_err=$ac_c_preproc_warn_flag
4861 else
4862 ac_cpp_err=
4863 fi
4864else
4865 ac_cpp_err=yes
4866fi
4867if test -z "$ac_cpp_err"; then
4868 ac_header_preproc=yes
4869else
4870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004871sed 's/^/| /' conftest.$ac_ext >&5
4872
John Criswell7a73b802003-06-30 21:59:07 +00004873 ac_header_preproc=no
4874fi
4875rm -f conftest.err conftest.$ac_ext
4876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4877echo "${ECHO_T}$ac_header_preproc" >&6
4878
4879# So? What about this header?
4880case $ac_header_compiler:$ac_header_preproc in
4881 yes:no )
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004885echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4886 (
4887 cat <<\_ASBOX
4888## ------------------------------------ ##
4889## Report this to bug-autoconf@gnu.org. ##
4890## ------------------------------------ ##
4891_ASBOX
4892 ) |
4893 sed "s/^/$as_me: WARNING: /" >&2
4894 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004895 no:yes )
4896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004901echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4902 (
4903 cat <<\_ASBOX
4904## ------------------------------------ ##
4905## Report this to bug-autoconf@gnu.org. ##
4906## ------------------------------------ ##
4907_ASBOX
4908 ) |
4909 sed "s/^/$as_me: WARNING: /" >&2
4910 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004911esac
4912echo "$as_me:$LINENO: checking for $ac_header" >&5
4913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4914if eval "test \"\${$as_ac_Header+set}\" = set"; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917 eval "$as_ac_Header=$ac_header_preproc"
4918fi
4919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4921
4922fi
4923if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926_ACEOF
4927
4928fi
4929
4930done
4931
John Criswell47fdd832003-07-14 16:52:07 +00004932ac_ext=cc
4933ac_cpp='$CXXCPP $CPPFLAGS'
4934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4937echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4938echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4939if test -z "$CXXCPP"; then
4940 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
John Criswell47fdd832003-07-14 16:52:07 +00004943 # Double quotes because CXXCPP needs to be expanded
4944 for CXXCPP in "$CXX -E" "/lib/cpp"
4945 do
4946 ac_preproc_ok=false
4947for ac_cxx_preproc_warn_flag in '' yes
4948do
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat >conftest.$ac_ext <<_ACEOF
4956#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004957/* confdefs.h. */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h. */
4962#ifdef __STDC__
4963# include <limits.h>
4964#else
4965# include <assert.h>
4966#endif
John Criswell47fdd832003-07-14 16:52:07 +00004967 Syntax error
4968_ACEOF
4969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004972 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev/null; then
4977 if test -s conftest.err; then
4978 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004979 else
John Criswell47fdd832003-07-14 16:52:07 +00004980 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004981 fi
John Criswell47fdd832003-07-14 16:52:07 +00004982else
4983 ac_cpp_err=yes
4984fi
4985if test -z "$ac_cpp_err"; then
4986 :
4987else
4988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004989sed 's/^/| /' conftest.$ac_ext >&5
4990
John Criswell47fdd832003-07-14 16:52:07 +00004991 # Broken: fails on valid input.
4992continue
4993fi
4994rm -f conftest.err conftest.$ac_ext
4995
4996 # OK, works on sane cases. Now check whether non-existent headers
4997 # can be detected and how.
4998 cat >conftest.$ac_ext <<_ACEOF
4999#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005000/* confdefs.h. */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005005#include <ac_nonexistent.h>
5006_ACEOF
5007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005010 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } >/dev/null; then
5015 if test -s conftest.err; then
5016 ac_cpp_err=$ac_cxx_preproc_warn_flag
5017 else
5018 ac_cpp_err=
5019 fi
5020else
5021 ac_cpp_err=yes
5022fi
5023if test -z "$ac_cpp_err"; then
5024 # Broken: success on invalid input.
5025continue
5026else
5027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005028sed 's/^/| /' conftest.$ac_ext >&5
5029
John Criswell47fdd832003-07-14 16:52:07 +00005030 # Passes both tests.
5031ac_preproc_ok=:
5032break
5033fi
5034rm -f conftest.err conftest.$ac_ext
5035
5036done
5037# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038rm -f conftest.err conftest.$ac_ext
5039if $ac_preproc_ok; then
5040 break
John Criswell7a73b802003-06-30 21:59:07 +00005041fi
5042
John Criswell47fdd832003-07-14 16:52:07 +00005043 done
5044 ac_cv_prog_CXXCPP=$CXXCPP
5045
5046fi
5047 CXXCPP=$ac_cv_prog_CXXCPP
5048else
5049 ac_cv_prog_CXXCPP=$CXXCPP
5050fi
5051echo "$as_me:$LINENO: result: $CXXCPP" >&5
5052echo "${ECHO_T}$CXXCPP" >&6
5053ac_preproc_ok=false
5054for ac_cxx_preproc_warn_flag in '' yes
5055do
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat >conftest.$ac_ext <<_ACEOF
5063#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005064/* confdefs.h. */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h. */
5069#ifdef __STDC__
5070# include <limits.h>
5071#else
5072# include <assert.h>
5073#endif
John Criswell47fdd832003-07-14 16:52:07 +00005074 Syntax error
5075_ACEOF
5076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005079 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null; then
5084 if test -s conftest.err; then
5085 ac_cpp_err=$ac_cxx_preproc_warn_flag
5086 else
5087 ac_cpp_err=
5088 fi
5089else
5090 ac_cpp_err=yes
5091fi
5092if test -z "$ac_cpp_err"; then
5093 :
5094else
5095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005096sed 's/^/| /' conftest.$ac_ext >&5
5097
John Criswell47fdd832003-07-14 16:52:07 +00005098 # Broken: fails on valid input.
5099continue
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103 # OK, works on sane cases. Now check whether non-existent headers
5104 # can be detected and how.
5105 cat >conftest.$ac_ext <<_ACEOF
5106#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005112#include <ac_nonexistent.h>
5113_ACEOF
5114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005117 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null; then
5122 if test -s conftest.err; then
5123 ac_cpp_err=$ac_cxx_preproc_warn_flag
5124 else
5125 ac_cpp_err=
5126 fi
5127else
5128 ac_cpp_err=yes
5129fi
5130if test -z "$ac_cpp_err"; then
5131 # Broken: success on invalid input.
5132continue
5133else
5134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005135sed 's/^/| /' conftest.$ac_ext >&5
5136
John Criswell47fdd832003-07-14 16:52:07 +00005137 # Passes both tests.
5138ac_preproc_ok=:
5139break
5140fi
5141rm -f conftest.err conftest.$ac_ext
5142
5143done
5144# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5145rm -f conftest.err conftest.$ac_ext
5146if $ac_preproc_ok; then
5147 :
5148else
John Criswell0c38eaf2003-09-10 15:17:25 +00005149 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5150See \`config.log' for more details." >&5
5151echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5152See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005153 { (exit 1); exit 1; }; }
5154fi
5155
5156ac_ext=cc
5157ac_cpp='$CXXCPP $CPPFLAGS'
5158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5161
5162
5163ac_ext=f
5164ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5165ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5167if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005168 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 +00005169 do
5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5172echo "$as_me:$LINENO: checking for $ac_word" >&5
5173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174if test "${ac_cv_prog_F77+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177 if test -n "$F77"; then
5178 ac_cv_prog_F77="$F77" # Let the user override the test.
5179else
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192done
5193
5194fi
5195fi
5196F77=$ac_cv_prog_F77
5197if test -n "$F77"; then
5198 echo "$as_me:$LINENO: result: $F77" >&5
5199echo "${ECHO_T}$F77" >&6
5200else
5201 echo "$as_me:$LINENO: result: no" >&5
5202echo "${ECHO_T}no" >&6
5203fi
5204
5205 test -n "$F77" && break
5206 done
5207fi
5208if test -z "$F77"; then
5209 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005210 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 +00005211do
5212 # Extract the first word of "$ac_prog", so it can be a program name with args.
5213set dummy $ac_prog; ac_word=$2
5214echo "$as_me:$LINENO: checking for $ac_word" >&5
5215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5216if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218else
5219 if test -n "$ac_ct_F77"; then
5220 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_prog_ac_ct_F77="$ac_prog"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233done
5234done
5235
5236fi
5237fi
5238ac_ct_F77=$ac_cv_prog_ac_ct_F77
5239if test -n "$ac_ct_F77"; then
5240 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5241echo "${ECHO_T}$ac_ct_F77" >&6
5242else
5243 echo "$as_me:$LINENO: result: no" >&5
5244echo "${ECHO_T}no" >&6
5245fi
5246
5247 test -n "$ac_ct_F77" && break
5248done
5249
5250 F77=$ac_ct_F77
5251fi
5252
5253
5254# Provide some information about the compiler.
John Criswellf5b55652003-09-30 13:52:11 +00005255echo "$as_me:5255:" \
John Criswell47fdd832003-07-14 16:52:07 +00005256 "checking for Fortran 77 compiler version" >&5
5257ac_compiler=`set X $ac_compile; echo $2`
5258{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5259 (eval $ac_compiler --version </dev/null >&5) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }
5263{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5264 (eval $ac_compiler -v </dev/null >&5) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }
5268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5269 (eval $ac_compiler -V </dev/null >&5) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }
5273
5274# If we don't use `.F' as extension, the preprocessor is not run on the
5275# input file.
5276ac_save_ext=$ac_ext
5277ac_ext=F
5278echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5279echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5280if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 cat >conftest.$ac_ext <<_ACEOF
5284 program main
5285#ifndef __GNUC__
5286 choke me
5287#endif
5288
5289 end
5290_ACEOF
5291rm -f conftest.$ac_objext
5292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_compiler_gnu=yes
5304else
5305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005306sed 's/^/| /' conftest.$ac_ext >&5
5307
John Criswell47fdd832003-07-14 16:52:07 +00005308ac_compiler_gnu=no
5309fi
5310rm -f conftest.$ac_objext conftest.$ac_ext
5311ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5312
5313fi
5314echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5315echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5316ac_ext=$ac_save_ext
5317G77=`test $ac_compiler_gnu = yes && echo yes`
5318ac_test_FFLAGS=${FFLAGS+set}
5319ac_save_FFLAGS=$FFLAGS
5320FFLAGS=
5321echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5322echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5323if test "${ac_cv_prog_f77_g+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326 FFLAGS=-g
5327cat >conftest.$ac_ext <<_ACEOF
5328 program main
5329
5330 end
5331_ACEOF
5332rm -f conftest.$ac_objext
5333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_prog_f77_g=yes
5345else
5346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005347sed 's/^/| /' conftest.$ac_ext >&5
5348
John Criswell47fdd832003-07-14 16:52:07 +00005349ac_cv_prog_f77_g=no
5350fi
5351rm -f conftest.$ac_objext conftest.$ac_ext
5352
5353fi
5354echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5355echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5356if test "$ac_test_FFLAGS" = set; then
5357 FFLAGS=$ac_save_FFLAGS
5358elif test $ac_cv_prog_f77_g = yes; then
5359 if test "$G77" = yes; then
5360 FFLAGS="-g -O2"
5361 else
5362 FFLAGS="-g"
5363 fi
5364else
5365 if test "$G77" = yes; then
5366 FFLAGS="-O2"
5367 else
5368 FFLAGS=
5369 fi
5370fi
5371ac_ext=c
5372ac_cpp='$CPP $CPPFLAGS'
5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376
5377
5378
5379# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5380
5381# find the maximum length of command line arguments
5382echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5383echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5384if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 i=0
5388 testring="ABCD"
5389
5390 case $build_os in
5391 msdosdjgpp*)
5392 # On DJGPP, this test can blow up pretty badly due to problems in libc
5393 # (any single argument exceeding 2000 bytes causes a buffer overrun
5394 # during glob expansion). Even if it were fixed, the result of this
5395 # check would be larger than it should be.
5396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5397 ;;
5398
5399 gnu*)
5400 # Under GNU Hurd, this test is not required because there is
5401 # no limit to the length of command line arguments.
5402 # Libtool will interpret -1 as no limit whatsoever
5403 lt_cv_sys_max_cmd_len=-1;
5404 ;;
5405
5406 cygwin* | mingw*)
5407 # On Win9x/ME, this test blows up -- it succeeds, but takes
5408 # about 5 minutes as the teststring grows exponentially.
5409 # Worse, since 9x/ME are not pre-emptively multitasking,
5410 # you end up with a "frozen" computer, even though with patience
5411 # the test eventually succeeds (with a max line length of 256k).
5412 # Instead, let's just punt: use the minimum linelength reported by
5413 # all of the supported platforms: 8192 (on NT/2K/XP).
5414 lt_cv_sys_max_cmd_len=8192;
5415 ;;
5416
5417 *)
5418 # If test is not a shell built-in, we'll probably end up computing a
5419 # maximum length that is only half of the actual maximum length, but
5420 # we can't tell.
5421 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5422 = "XX$testring") >/dev/null 2>&1 &&
5423 new_result=`expr "X$testring" : ".*" 2>&1` &&
5424 lt_cv_sys_max_cmd_len=$new_result &&
5425 test $i != 17 # 1/2 MB should be enough
5426 do
5427 i=`expr $i + 1`
5428 testring=$testring$testring
5429 done
5430 testring=
5431 # Add a significant safety factor because C++ compilers can tack on massive
5432 # amounts of additional arguments before passing them to the linker.
5433 # It appears as though 1/2 is a usable value.
5434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5435 ;;
5436 esac
5437
5438fi
5439
5440if test -n $lt_cv_sys_max_cmd_len ; then
5441 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5442echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5443else
5444 echo "$as_me:$LINENO: result: none" >&5
5445echo "${ECHO_T}none" >&6
5446fi
5447
5448
5449
5450
5451# Check for command to grab the raw symbol name followed by C symbol from nm.
5452echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5453echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5454if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457
5458# These are sane defaults that work on at least a few old systems.
5459# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5460
5461# Character class describing NM global symbol codes.
5462symcode='[BCDEGRST]'
5463
5464# Regexp to match symbols that can be accessed directly from C.
5465sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5466
5467# Transform the above into a raw symbol and a C symbol.
5468symxfrm='\1 \2\3 \3'
5469
5470# Transform an extracted symbol line into a proper C declaration
5471lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5472
5473# Transform an extracted symbol line into symbol name and symbol address
5474lt_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'"
5475
5476# Define system-specific variables.
5477case $host_os in
5478aix*)
5479 symcode='[BCDT]'
5480 ;;
5481cygwin* | mingw* | pw32*)
5482 symcode='[ABCDGISTW]'
5483 ;;
5484hpux*) # Its linker distinguishes data from code symbols
5485 if test "$host_cpu" = ia64; then
5486 symcode='[ABCDEGRST]'
5487 fi
5488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5489 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'"
5490 ;;
5491irix* | nonstopux*)
5492 symcode='[BCDEGRST]'
5493 ;;
5494osf*)
5495 symcode='[BCDEGQRST]'
5496 ;;
5497solaris* | sysv5*)
5498 symcode='[BDT]'
5499 ;;
5500sysv4)
5501 symcode='[DFNSTU]'
5502 ;;
5503esac
5504
5505# Handle CRLF in mingw tool chain
5506opt_cr=
5507case $build_os in
5508mingw*)
5509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5510 ;;
5511esac
5512
5513# If we're using GNU nm, then use its standard symbol codes.
5514case `$NM -V 2>&1` in
5515*GNU* | *'with BFD'*)
5516 symcode='[ABCDGISTW]' ;;
5517esac
5518
5519# Try without a prefix undercore, then with it.
5520for ac_symprfx in "" "_"; do
5521
5522 # Write the raw and C identifiers.
5523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5524
5525 # Check to see that the pipe works correctly.
5526 pipe_works=no
5527
5528 rm -f conftest*
5529 cat > conftest.$ac_ext <<EOF
5530#ifdef __cplusplus
5531extern "C" {
5532#endif
5533char nm_test_var;
5534void nm_test_func(){}
5535#ifdef __cplusplus
5536}
5537#endif
5538int main(){nm_test_var='a';nm_test_func();return(0);}
5539EOF
5540
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; then
5546 # Now try to grab the symbols.
5547 nlist=conftest.nm
5548 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5549 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && test -s "$nlist"; then
5553 # Try sorting and uniquifying the output.
5554 if sort "$nlist" | uniq > "$nlist"T; then
5555 mv -f "$nlist"T "$nlist"
5556 else
5557 rm -f "$nlist"T
5558 fi
5559
5560 # Make sure that we snagged all the symbols we need.
5561 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5562 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5563 cat <<EOF > conftest.$ac_ext
5564#ifdef __cplusplus
5565extern "C" {
5566#endif
5567
5568EOF
5569 # Now generate the symbol file.
5570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5571
5572 cat <<EOF >> conftest.$ac_ext
5573#if defined (__STDC__) && __STDC__
5574# define lt_ptr_t void *
5575#else
5576# define lt_ptr_t char *
5577# define const
5578#endif
5579
5580/* The mapping between symbol names and symbols. */
5581const struct {
5582 const char *name;
5583 lt_ptr_t address;
5584}
5585lt_preloaded_symbols[] =
5586{
5587EOF
5588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5589 cat <<\EOF >> conftest.$ac_ext
5590 {0, (lt_ptr_t) 0}
5591};
5592
5593#ifdef __cplusplus
5594}
5595#endif
5596EOF
5597 # Now try linking the two files.
5598 mv conftest.$ac_objext conftstm.$ac_objext
5599 lt_save_LIBS="$LIBS"
5600 lt_save_CFLAGS="$CFLAGS"
5601 LIBS="conftstm.$ac_objext"
5602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5608 pipe_works=yes
5609 fi
5610 LIBS="$lt_save_LIBS"
5611 CFLAGS="$lt_save_CFLAGS"
5612 else
5613 echo "cannot find nm_test_func in $nlist" >&5
5614 fi
5615 else
5616 echo "cannot find nm_test_var in $nlist" >&5
5617 fi
5618 else
5619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5620 fi
5621 else
5622 echo "$progname: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 fi
5625 rm -f conftest* conftst*
5626
5627 # Do not use the global_symbol_pipe unless it works.
5628 if test "$pipe_works" = yes; then
5629 break
5630 else
5631 lt_cv_sys_global_symbol_pipe=
5632 fi
5633done
5634
5635fi
5636
5637if test -z "$lt_cv_sys_global_symbol_pipe"; then
5638 lt_cv_sys_global_symbol_to_cdecl=
5639fi
5640if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5641 echo "$as_me:$LINENO: result: failed" >&5
5642echo "${ECHO_T}failed" >&6
5643else
5644 echo "$as_me:$LINENO: result: ok" >&5
5645echo "${ECHO_T}ok" >&6
5646fi
5647
5648echo "$as_me:$LINENO: checking for objdir" >&5
5649echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5650if test "${lt_cv_objdir+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 rm -f .libs 2>/dev/null
5654mkdir .libs 2>/dev/null
5655if test -d .libs; then
5656 lt_cv_objdir=.libs
5657else
5658 # MS-DOS does not allow filenames that begin with a dot.
5659 lt_cv_objdir=_libs
5660fi
5661rmdir .libs 2>/dev/null
5662fi
5663echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5664echo "${ECHO_T}$lt_cv_objdir" >&6
5665objdir=$lt_cv_objdir
5666
5667
5668
5669
5670
5671case $host_os in
5672aix3*)
5673 # AIX sometimes has problems with the GCC collect2 program. For some
5674 # reason, if we set the COLLECT_NAMES environment variable, the problems
5675 # vanish in a puff of smoke.
5676 if test "X${COLLECT_NAMES+set}" != Xset; then
5677 COLLECT_NAMES=
5678 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005679 fi
5680 ;;
5681esac
5682
John Criswell47fdd832003-07-14 16:52:07 +00005683# Sed substitution that helps us do robust quoting. It backslashifies
5684# metacharacters that are still active within double-quoted strings.
5685Xsed='sed -e s/^X//'
5686sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5687
5688# Same as above, but do not quote variable references.
5689double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5690
5691# Sed substitution to delay expansion of an escaped shell variable in a
5692# double_quote_subst'ed string.
5693delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5694
5695# Sed substitution to avoid accidental globbing in evaled expressions
5696no_glob_subst='s/\*/\\\*/g'
5697
5698# Constants:
5699rm="rm -f"
5700
5701# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005702default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005703can_build_shared=yes
5704
5705# All known linkers require a `.a' archive for static linking (except M$VC,
5706# which needs '.lib').
5707libext=a
5708ltmain="$ac_aux_dir/ltmain.sh"
5709ofile="$default_ofile"
5710with_gnu_ld="$lt_cv_prog_gnu_ld"
5711
5712if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5714set dummy ${ac_tool_prefix}ar; ac_word=$2
5715echo "$as_me:$LINENO: checking for $ac_word" >&5
5716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5717if test "${ac_cv_prog_AR+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720 if test -n "$AR"; then
5721 ac_cv_prog_AR="$AR" # Let the user override the test.
5722else
5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in $PATH
5725do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_AR="${ac_tool_prefix}ar"
5731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734done
5735done
5736
5737fi
5738fi
5739AR=$ac_cv_prog_AR
5740if test -n "$AR"; then
5741 echo "$as_me:$LINENO: result: $AR" >&5
5742echo "${ECHO_T}$AR" >&6
5743else
5744 echo "$as_me:$LINENO: result: no" >&5
5745echo "${ECHO_T}no" >&6
5746fi
5747
5748fi
5749if test -z "$ac_cv_prog_AR"; then
5750 ac_ct_AR=$AR
5751 # Extract the first word of "ar", so it can be a program name with args.
5752set dummy ar; ac_word=$2
5753echo "$as_me:$LINENO: checking for $ac_word" >&5
5754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5755if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758 if test -n "$ac_ct_AR"; then
5759 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5760else
5761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_ac_ct_AR="ar"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772done
5773done
5774
5775 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5776fi
5777fi
5778ac_ct_AR=$ac_cv_prog_ac_ct_AR
5779if test -n "$ac_ct_AR"; then
5780 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5781echo "${ECHO_T}$ac_ct_AR" >&6
5782else
5783 echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
5785fi
5786
5787 AR=$ac_ct_AR
5788else
5789 AR="$ac_cv_prog_AR"
5790fi
5791
John Criswell7a73b802003-06-30 21:59:07 +00005792if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5794set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5795echo "$as_me:$LINENO: checking for $ac_word" >&5
5796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5797if test "${ac_cv_prog_RANLIB+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 if test -n "$RANLIB"; then
5801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814done
5815done
5816
5817fi
5818fi
5819RANLIB=$ac_cv_prog_RANLIB
5820if test -n "$RANLIB"; then
5821 echo "$as_me:$LINENO: result: $RANLIB" >&5
5822echo "${ECHO_T}$RANLIB" >&6
5823else
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826fi
5827
5828fi
5829if test -z "$ac_cv_prog_RANLIB"; then
5830 ac_ct_RANLIB=$RANLIB
5831 # Extract the first word of "ranlib", so it can be a program name with args.
5832set dummy ranlib; ac_word=$2
5833echo "$as_me:$LINENO: checking for $ac_word" >&5
5834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838 if test -n "$ac_ct_RANLIB"; then
5839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_RANLIB="ranlib"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853done
5854
5855 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5856fi
5857fi
5858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5859if test -n "$ac_ct_RANLIB"; then
5860 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5861echo "${ECHO_T}$ac_ct_RANLIB" >&6
5862else
5863 echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6
5865fi
5866
5867 RANLIB=$ac_ct_RANLIB
5868else
5869 RANLIB="$ac_cv_prog_RANLIB"
5870fi
5871
5872if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}strip; ac_word=$2
5875echo "$as_me:$LINENO: checking for $ac_word" >&5
5876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877if test "${ac_cv_prog_STRIP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880 if test -n "$STRIP"; then
5881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895done
5896
5897fi
5898fi
5899STRIP=$ac_cv_prog_STRIP
5900if test -n "$STRIP"; then
5901 echo "$as_me:$LINENO: result: $STRIP" >&5
5902echo "${ECHO_T}$STRIP" >&6
5903else
5904 echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6
5906fi
5907
5908fi
5909if test -z "$ac_cv_prog_STRIP"; then
5910 ac_ct_STRIP=$STRIP
5911 # Extract the first word of "strip", so it can be a program name with args.
5912set dummy strip; ac_word=$2
5913echo "$as_me:$LINENO: checking for $ac_word" >&5
5914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917else
5918 if test -n "$ac_ct_STRIP"; then
5919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_ac_ct_STRIP="strip"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932done
5933done
5934
5935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5936fi
5937fi
5938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5939if test -n "$ac_ct_STRIP"; then
5940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5941echo "${ECHO_T}$ac_ct_STRIP" >&6
5942else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945fi
5946
5947 STRIP=$ac_ct_STRIP
5948else
5949 STRIP="$ac_cv_prog_STRIP"
5950fi
5951
5952
John Criswell7a73b802003-06-30 21:59:07 +00005953old_CC="$CC"
5954old_CFLAGS="$CFLAGS"
5955
5956# Set sane defaults for various variables
5957test -z "$AR" && AR=ar
5958test -z "$AR_FLAGS" && AR_FLAGS=cru
5959test -z "$AS" && AS=as
5960test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005961test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005962test -z "$DLLTOOL" && DLLTOOL=dlltool
5963test -z "$LD" && LD=ld
5964test -z "$LN_S" && LN_S="ln -s"
5965test -z "$MAGIC_CMD" && MAGIC_CMD=file
5966test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005967test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005968test -z "$OBJDUMP" && OBJDUMP=objdump
5969test -z "$RANLIB" && RANLIB=:
5970test -z "$STRIP" && STRIP=:
5971test -z "$ac_objext" && ac_objext=o
5972
John Criswell7a73b802003-06-30 21:59:07 +00005973# Determine commands to create old-style static archives.
5974old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5975old_postinstall_cmds='chmod 644 $oldlib'
5976old_postuninstall_cmds=
5977
5978if test -n "$RANLIB"; then
5979 case $host_os in
5980 openbsd*)
5981 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5982 ;;
5983 *)
5984 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5985 ;;
5986 esac
5987 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5988fi
5989
John Criswell47fdd832003-07-14 16:52:07 +00005990# Only perform the check for file, if the check method requires it
5991case $deplibs_check_method in
5992file_magic*)
5993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5994 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5995echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5996if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005998else
John Criswell47fdd832003-07-14 16:52:07 +00005999 case $MAGIC_CMD in
6000[\\/*] | ?:[\\/]*)
6001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6002 ;;
6003*)
6004 lt_save_MAGIC_CMD="$MAGIC_CMD"
6005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6007 for ac_dir in $ac_dummy; do
6008 IFS="$lt_save_ifs"
6009 test -z "$ac_dir" && ac_dir=.
6010 if test -f $ac_dir/${ac_tool_prefix}file; then
6011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6012 if test -n "$file_magic_test_file"; then
6013 case $deplibs_check_method in
6014 "file_magic "*)
6015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6018 $EGREP "$file_magic_regex" > /dev/null; then
6019 :
6020 else
6021 cat <<EOF 1>&2
6022
6023*** Warning: the command libtool uses to detect shared libraries,
6024*** $file_magic_cmd, produces output that libtool cannot recognize.
6025*** The result is that libtool may fail to recognize shared libraries
6026*** as such. This will affect the creation of libtool libraries that
6027*** depend on shared libraries, but programs linked with such libtool
6028*** libraries will work regardless of this problem. Nevertheless, you
6029*** may want to report the problem to your system manager and/or to
6030*** bug-libtool@gnu.org
6031
6032EOF
6033 fi ;;
6034 esac
6035 fi
6036 break
6037 fi
6038 done
6039 IFS="$lt_save_ifs"
6040 MAGIC_CMD="$lt_save_MAGIC_CMD"
6041 ;;
6042esac
John Criswell7a73b802003-06-30 21:59:07 +00006043fi
John Criswell7a73b802003-06-30 21:59:07 +00006044
John Criswell47fdd832003-07-14 16:52:07 +00006045MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6046if test -n "$MAGIC_CMD"; then
6047 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6048echo "${ECHO_T}$MAGIC_CMD" >&6
6049else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052fi
John Criswell7a73b802003-06-30 21:59:07 +00006053
John Criswell47fdd832003-07-14 16:52:07 +00006054if test -z "$lt_cv_path_MAGIC_CMD"; then
6055 if test -n "$ac_tool_prefix"; then
6056 echo "$as_me:$LINENO: checking for file" >&5
6057echo $ECHO_N "checking for file... $ECHO_C" >&6
6058if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061 case $MAGIC_CMD in
6062[\\/*] | ?:[\\/]*)
6063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6064 ;;
6065*)
6066 lt_save_MAGIC_CMD="$MAGIC_CMD"
6067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6069 for ac_dir in $ac_dummy; do
6070 IFS="$lt_save_ifs"
6071 test -z "$ac_dir" && ac_dir=.
6072 if test -f $ac_dir/file; then
6073 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6074 if test -n "$file_magic_test_file"; then
6075 case $deplibs_check_method in
6076 "file_magic "*)
6077 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6080 $EGREP "$file_magic_regex" > /dev/null; then
6081 :
6082 else
6083 cat <<EOF 1>&2
6084
6085*** Warning: the command libtool uses to detect shared libraries,
6086*** $file_magic_cmd, produces output that libtool cannot recognize.
6087*** The result is that libtool may fail to recognize shared libraries
6088*** as such. This will affect the creation of libtool libraries that
6089*** depend on shared libraries, but programs linked with such libtool
6090*** libraries will work regardless of this problem. Nevertheless, you
6091*** may want to report the problem to your system manager and/or to
6092*** bug-libtool@gnu.org
6093
6094EOF
6095 fi ;;
6096 esac
6097 fi
6098 break
6099 fi
6100 done
6101 IFS="$lt_save_ifs"
6102 MAGIC_CMD="$lt_save_MAGIC_CMD"
6103 ;;
6104esac
6105fi
6106
6107MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6108if test -n "$MAGIC_CMD"; then
6109 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6110echo "${ECHO_T}$MAGIC_CMD" >&6
6111else
6112 echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6
6114fi
6115
6116 else
6117 MAGIC_CMD=:
6118 fi
6119fi
6120
6121 fi
6122 ;;
6123esac
6124
6125enable_dlopen=no
6126enable_win32_dll=no
6127
6128# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6129if test "${enable_libtool_lock+set}" = set; then
6130 enableval="$enable_libtool_lock"
6131
6132fi;
6133test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6134
John Criswell7a73b802003-06-30 21:59:07 +00006135
6136# Check whether --with-pic or --without-pic was given.
6137if test "${with_pic+set}" = set; then
6138 withval="$with_pic"
6139 pic_mode="$withval"
6140else
6141 pic_mode=default
6142fi;
6143test -z "$pic_mode" && pic_mode=default
6144
John Criswell47fdd832003-07-14 16:52:07 +00006145# Use C for the default configuration in the libtool script
6146tagname=
6147lt_save_CC="$CC"
6148ac_ext=c
6149ac_cpp='$CPP $CPPFLAGS'
6150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154
6155# Source file extension for C test sources.
6156ac_ext=c
6157
6158# Object file extension for compiled C test sources.
6159objext=o
6160objext=$objext
6161
6162# Code to be used in simple compile tests
6163lt_simple_compile_test_code="int some_variable = 0;\n"
6164
6165# Code to be used in simple link tests
6166lt_simple_link_test_code='int main(){return(0);}\n'
6167
6168
6169# If no C compiler was specified, use CC.
6170LTCC=${LTCC-"$CC"}
6171
6172# Allow CC to be a program name with arguments.
6173compiler=$CC
6174
6175
6176#
6177# Check for any special shared library compilation flags.
6178#
6179lt_prog_cc_shlib=
6180if test "$GCC" = no; then
6181 case $host_os in
6182 sco3.2v5*)
6183 lt_prog_cc_shlib='-belf'
6184 ;;
6185 esac
6186fi
6187if test -n "$lt_prog_cc_shlib"; then
6188 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6189echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6190 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6191 else
6192 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6193echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6194 lt_cv_prog_cc_can_build_shared=no
6195 fi
6196fi
6197
6198
6199#
6200# Check to make sure the static flag actually works.
6201#
6202echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6203echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6204if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
John Criswell47fdd832003-07-14 16:52:07 +00006207 lt_prog_compiler_static_works=no
6208 save_LDFLAGS="$LDFLAGS"
6209 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6210 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6212 # The compiler can only warn and ignore the option if not recognized
6213 # So say no if there are warnings
6214 if test -s conftest.err; then
6215 # Append any errors to the config.log.
6216 cat conftest.err 1>&5
6217 else
6218 lt_prog_compiler_static_works=yes
6219 fi
6220 fi
6221 $rm conftest*
6222 LDFLAGS="$save_LDFLAGS"
6223
6224fi
6225echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6226echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6227
6228if test x"$lt_prog_compiler_static_works" = xyes; then
6229 :
6230else
6231 lt_prog_compiler_static=
6232fi
6233
6234
6235
6236## CAVEAT EMPTOR:
6237## There is no encapsulation within the following macros, do not change
6238## the running order or otherwise move them around unless you know exactly
6239## what you are doing...
6240
6241lt_prog_compiler_no_builtin_flag=
6242
6243if test "$GCC" = yes; then
6244 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6245
6246 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6247echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6248if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251 lt_cv_prog_compiler_rtti_exceptions=no
6252 ac_outfile=conftest.$ac_objext
6253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6254 lt_compiler_flag="-fno-rtti -fno-exceptions"
6255 # Insert the option either (1) after the last *FLAGS variable, or
6256 # (2) before a word containing "conftest.", or (3) at the end.
6257 # Note that $ac_compile itself does not contain backslashes and begins
6258 # with a dollar sign (not a hyphen), so the echo should work correctly.
6259 # The option is referenced via a variable to avoid confusing sed.
6260 lt_compile=`echo "$ac_compile" | $SED \
6261 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6263 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +00006264 (eval echo "\"\$as_me:6264: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006265 (eval "$lt_compile" 2>conftest.err)
6266 ac_status=$?
6267 cat conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +00006268 echo "$as_me:6268: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006269 if (exit $ac_status) && test -s "$ac_outfile"; then
6270 # The compiler can only warn and ignore the option if not recognized
6271 # So say no if there are warnings
6272 if test ! -s conftest.err; then
6273 lt_cv_prog_compiler_rtti_exceptions=yes
6274 fi
6275 fi
6276 $rm conftest*
6277
6278fi
6279echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6280echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6281
6282if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6283 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6284else
6285 :
6286fi
6287
6288fi
6289
6290lt_prog_compiler_wl=
6291lt_prog_compiler_pic=
6292lt_prog_compiler_static=
6293
6294echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6295echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006296
6297 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006298 lt_prog_compiler_wl='-Wl,'
6299 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006300
6301 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006302 aix*)
6303 # All AIX code is PIC.
6304 if test "$host_cpu" = ia64; then
6305 # AIX 5 now supports IA64 processor
6306 lt_prog_compiler_static='-Bstatic'
6307 fi
John Criswell7a73b802003-06-30 21:59:07 +00006308 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006309
John Criswell7a73b802003-06-30 21:59:07 +00006310 amigaos*)
6311 # FIXME: we need at least 68020 code to build shared libraries, but
6312 # adding the `-m68020' flag to GCC prevents building anything better,
6313 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006314 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006315 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006316
6317 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006318 # PIC is the default for these OSes.
6319 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006320
6321 mingw* | pw32* | os2*)
6322 # This hack is so that the source file can tell whether it is being
6323 # built for inclusion in a dll (and should export symbols for example).
6324 lt_prog_compiler_pic='-DDLL_EXPORT'
6325 ;;
6326
John Criswell7a73b802003-06-30 21:59:07 +00006327 darwin* | rhapsody*)
6328 # PIC is the default on this platform
6329 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006330 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006331 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006332
6333 msdosdjgpp*)
6334 # Just because we use GCC doesn't mean we suddenly get shared libraries
6335 # on systems that don't support them.
6336 lt_prog_compiler_can_build_shared=no
6337 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006338 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006339
John Criswell7a73b802003-06-30 21:59:07 +00006340 sysv4*MP*)
6341 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006342 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006343 fi
6344 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006345
6346 hpux*)
6347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6348 # not for PA HP-UX.
6349 case "$host_cpu" in
6350 hppa*64*|ia64*)
6351 # +Z the default
6352 ;;
6353 *)
6354 lt_prog_compiler_pic='-fPIC'
6355 ;;
6356 esac
6357 ;;
6358
John Criswell7a73b802003-06-30 21:59:07 +00006359 *)
John Criswell47fdd832003-07-14 16:52:07 +00006360 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006361 ;;
6362 esac
6363 else
John Criswell47fdd832003-07-14 16:52:07 +00006364 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006365 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006366 aix*)
6367 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006368 if test "$host_cpu" = ia64; then
6369 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006370 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006371 else
John Criswell47fdd832003-07-14 16:52:07 +00006372 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006373 fi
6374 ;;
6375
John Criswell47fdd832003-07-14 16:52:07 +00006376 mingw* | pw32* | os2*)
6377 # This hack is so that the source file can tell whether it is being
6378 # built for inclusion in a dll (and should export symbols for example).
6379 lt_prog_compiler_pic='-DDLL_EXPORT'
6380 ;;
6381
John Criswell7a73b802003-06-30 21:59:07 +00006382 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006383 lt_prog_compiler_wl='-Wl,'
6384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6385 # not for PA HP-UX.
6386 case "$host_cpu" in
6387 hppa*64*|ia64*)
6388 # +Z the default
6389 ;;
6390 *)
6391 lt_prog_compiler_pic='+Z'
6392 ;;
6393 esac
6394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6395 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006396 ;;
6397
John Criswell47fdd832003-07-14 16:52:07 +00006398 irix5* | irix6* | nonstopux*)
6399 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006400 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006401 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006402 ;;
6403
6404 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006405 lt_prog_compiler_pic='-KPIC'
6406 lt_prog_compiler_static='-Bstatic'
6407 ;;
6408
6409 linux*)
6410 case $CC in
6411 icc|ecc)
6412 lt_prog_compiler_wl='-Wl,'
6413 lt_prog_compiler_pic='-KPIC'
6414 lt_prog_compiler_static='-static'
6415 ;;
6416 ccc)
6417 lt_prog_compiler_wl='-Wl,'
6418 # All Alpha code is PIC.
6419 lt_prog_compiler_static='-non_shared'
6420 ;;
6421 esac
John Criswell7a73b802003-06-30 21:59:07 +00006422 ;;
6423
6424 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006425 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006426 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006427 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006428 ;;
6429
6430 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006431 lt_prog_compiler_pic='-Kpic'
6432 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006433 ;;
6434
6435 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006436 lt_prog_compiler_wl='-Wl,'
6437 lt_prog_compiler_pic='-KPIC'
6438 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006439 ;;
6440
6441 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006442 lt_prog_compiler_wl='-Qoption ld '
6443 lt_prog_compiler_pic='-PIC'
6444 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006445 ;;
6446
6447 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006448 lt_prog_compiler_wl='-Wl,'
6449 lt_prog_compiler_pic='-KPIC'
6450 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006451 ;;
6452
6453 sysv4*MP*)
6454 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006455 lt_prog_compiler_pic='-Kconform_pic'
6456 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006457 fi
6458 ;;
6459
John Criswell47fdd832003-07-14 16:52:07 +00006460 uts4*)
6461 lt_prog_compiler_pic='-pic'
6462 lt_prog_compiler_static='-Bstatic'
6463 ;;
6464
John Criswell7a73b802003-06-30 21:59:07 +00006465 *)
John Criswell47fdd832003-07-14 16:52:07 +00006466 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006467 ;;
6468 esac
6469 fi
6470
John Criswell47fdd832003-07-14 16:52:07 +00006471echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6472echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006473
John Criswell47fdd832003-07-14 16:52:07 +00006474#
6475# Check to make sure the PIC flag actually works.
6476#
6477if test -n "$lt_prog_compiler_pic"; then
6478 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6479echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6480if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482else
John Criswell47fdd832003-07-14 16:52:07 +00006483 lt_prog_compiler_pic_works=no
6484 ac_outfile=conftest.$ac_objext
6485 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6487 # Insert the option either (1) after the last *FLAGS variable, or
6488 # (2) before a word containing "conftest.", or (3) at the end.
6489 # Note that $ac_compile itself does not contain backslashes and begins
6490 # with a dollar sign (not a hyphen), so the echo should work correctly.
6491 # The option is referenced via a variable to avoid confusing sed.
6492 lt_compile=`echo "$ac_compile" | $SED \
6493 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +00006496 (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006497 (eval "$lt_compile" 2>conftest.err)
6498 ac_status=$?
6499 cat conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +00006500 echo "$as_me:6500: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006501 if (exit $ac_status) && test -s "$ac_outfile"; then
6502 # The compiler can only warn and ignore the option if not recognized
6503 # So say no if there are warnings
6504 if test ! -s conftest.err; then
6505 lt_prog_compiler_pic_works=yes
6506 fi
6507 fi
6508 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006509
John Criswell47fdd832003-07-14 16:52:07 +00006510fi
6511echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6512echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006513
John Criswell47fdd832003-07-14 16:52:07 +00006514if test x"$lt_prog_compiler_pic_works" = xyes; then
6515 case $lt_prog_compiler_pic in
6516 "" | " "*) ;;
6517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6518 esac
John Criswell7a73b802003-06-30 21:59:07 +00006519else
John Criswell47fdd832003-07-14 16:52:07 +00006520 lt_prog_compiler_pic=
6521 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006522fi
6523
John Criswell7a73b802003-06-30 21:59:07 +00006524fi
John Criswell47fdd832003-07-14 16:52:07 +00006525case "$host_os" in
6526 # For platforms which do not support PIC, -DPIC is meaningless:
6527 *djgpp*)
6528 lt_prog_compiler_pic=
6529 ;;
6530 *)
6531 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6532 ;;
6533esac
John Criswell7a73b802003-06-30 21:59:07 +00006534
John Criswell7a73b802003-06-30 21:59:07 +00006535echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6536echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006537if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
John Criswell47fdd832003-07-14 16:52:07 +00006540 lt_cv_prog_compiler_c_o=no
6541 $rm -r conftest 2>/dev/null
6542 mkdir conftest
6543 cd conftest
6544 mkdir out
6545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006546
John Criswell47fdd832003-07-14 16:52:07 +00006547 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6548 # that will create temporary files in the current directory regardless of
6549 # the output directory. Thus, making CWD read-only will cause this test
6550 # to fail, enabling locking or at least warning the user not to do parallel
6551 # builds.
6552 chmod -w .
6553
6554 lt_compiler_flag="-o out/conftest2.$ac_objext"
6555 # Insert the option either (1) after the last *FLAGS variable, or
6556 # (2) before a word containing "conftest.", or (3) at the end.
6557 # Note that $ac_compile itself does not contain backslashes and begins
6558 # with a dollar sign (not a hyphen), so the echo should work correctly.
6559 lt_compile=`echo "$ac_compile" | $SED \
6560 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6562 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +00006563 (eval echo "\"\$as_me:6563: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006564 (eval "$lt_compile" 2>out/conftest.err)
6565 ac_status=$?
6566 cat out/conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +00006567 echo "$as_me:6567: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6569 then
6570 # The compiler can only warn and ignore the option if not recognized
6571 # So say no if there are warnings
6572 if test ! -s out/conftest.err; then
6573 lt_cv_prog_compiler_c_o=yes
6574 fi
6575 fi
6576 chmod u+w .
6577 $rm conftest* out/*
6578 rmdir out
6579 cd ..
6580 rmdir conftest
6581 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006582
6583fi
John Criswell47fdd832003-07-14 16:52:07 +00006584echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6585echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006586
John Criswell7a73b802003-06-30 21:59:07 +00006587
John Criswell7a73b802003-06-30 21:59:07 +00006588hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006589if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006590 # do not overwrite the value of need_locks provided by the user
6591 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6592echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6593 hard_links=yes
6594 $rm conftest*
6595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6596 touch conftest.a
6597 ln conftest.a conftest.b 2>&5 || hard_links=no
6598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6599 echo "$as_me:$LINENO: result: $hard_links" >&5
6600echo "${ECHO_T}$hard_links" >&6
6601 if test "$hard_links" = no; then
6602 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6603echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6604 need_locks=warn
6605 fi
6606else
6607 need_locks=no
6608fi
John Criswell7a73b802003-06-30 21:59:07 +00006609
John Criswell47fdd832003-07-14 16:52:07 +00006610echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6611echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6612
6613 runpath_var=
6614 allow_undefined_flag=
6615 enable_shared_with_static_runtimes=no
6616 archive_cmds=
6617 archive_expsym_cmds=
6618 old_archive_From_new_cmds=
6619 old_archive_from_expsyms_cmds=
6620 export_dynamic_flag_spec=
6621 whole_archive_flag_spec=
6622 thread_safe_flag_spec=
6623 hardcode_libdir_flag_spec=
6624 hardcode_libdir_flag_spec_ld=
6625 hardcode_libdir_separator=
6626 hardcode_direct=no
6627 hardcode_minus_L=no
6628 hardcode_shlibpath_var=unsupported
6629 link_all_deplibs=unknown
6630 hardcode_automatic=no
6631 module_cmds=
6632 module_expsym_cmds=
6633 always_export_symbols=no
6634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6635 # include_expsyms should be a list of space-separated symbols to be *always*
6636 # included in the symbol list
6637 include_expsyms=
6638 # exclude_expsyms can be an extended regexp of symbols to exclude
6639 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6640 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6641 # as well as any symbol that contains `d'.
6642 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6643 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6644 # platforms (ab)use it in PIC code, but their linkers get confused if
6645 # the symbol is explicitly referenced. Since portable code cannot
6646 # rely on this symbol name, it's probably fine to never include it in
6647 # preloaded symbol tables.
6648 extract_expsyms_cmds=
6649
6650 case $host_os in
6651 cygwin* | mingw* | pw32*)
6652 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6653 # When not using gcc, we currently assume that we are using
6654 # Microsoft Visual C++.
6655 if test "$GCC" != yes; then
6656 with_gnu_ld=no
6657 fi
6658 ;;
6659 openbsd*)
6660 with_gnu_ld=no
6661 ;;
6662 esac
6663
6664 ld_shlibs=yes
6665 if test "$with_gnu_ld" = yes; then
6666 # If archive_cmds runs LD, not CC, wlarc should be empty
6667 wlarc='${wl}'
6668
6669 # See if GNU ld supports shared libraries.
6670 case $host_os in
6671 aix3* | aix4* | aix5*)
6672 # On AIX/PPC, the GNU linker is very broken
6673 if test "$host_cpu" != ia64; then
6674 ld_shlibs=no
6675 cat <<EOF 1>&2
6676
6677*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6678*** to be unable to reliably create shared libraries on AIX.
6679*** Therefore, libtool is disabling shared libraries support. If you
6680*** really care for shared libraries, you may want to modify your PATH
6681*** so that a non-GNU linker is found, and then restart.
6682
6683EOF
6684 fi
6685 ;;
6686
6687 amigaos*)
6688 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)'
6689 hardcode_libdir_flag_spec='-L$libdir'
6690 hardcode_minus_L=yes
6691
6692 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6693 # that the semantics of dynamic libraries on AmigaOS, at least up
6694 # to version 4, is to share data among multiple programs linked
6695 # with the same dynamic library. Since this doesn't match the
6696 # behavior of shared libraries on other platforms, we can't use
6697 # them.
6698 ld_shlibs=no
6699 ;;
6700
6701 beos*)
6702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6703 allow_undefined_flag=unsupported
6704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6705 # support --undefined. This deserves some investigation. FIXME
6706 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707 else
6708 ld_shlibs=no
6709 fi
6710 ;;
6711
6712 cygwin* | mingw* | pw32*)
6713 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6714 # as there is no search path for DLLs.
6715 hardcode_libdir_flag_spec='-L$libdir'
6716 allow_undefined_flag=unsupported
6717 always_export_symbols=no
6718 enable_shared_with_static_runtimes=yes
6719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6720
6721 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6723 # If the export-symbols file already is a .def file (1st line
6724 # is EXPORTS), use it as is; otherwise, prepend...
6725 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6726 cp $export_symbols $output_objdir/$soname.def;
6727 else
6728 echo EXPORTS > $output_objdir/$soname.def;
6729 cat $export_symbols >> $output_objdir/$soname.def;
6730 fi~
6731 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6732 else
6733 ld_shlibs=no
6734 fi
6735 ;;
6736
6737 netbsd*)
6738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6739 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6740 wlarc=
6741 else
6742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6744 fi
6745 ;;
6746
6747 solaris* | sysv5*)
6748 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6749 ld_shlibs=no
6750 cat <<EOF 1>&2
6751
6752*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6753*** create shared libraries on Solaris systems. Therefore, libtool
6754*** is disabling shared libraries support. We urge you to upgrade GNU
6755*** binutils to release 2.9.1 or newer. Another option is to modify
6756*** your PATH or compiler configuration so that the native linker is
6757*** used, and then restart.
6758
6759EOF
6760 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6763 else
6764 ld_shlibs=no
6765 fi
6766 ;;
6767
6768 sunos4*)
6769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6770 wlarc=
6771 hardcode_direct=yes
6772 hardcode_shlibpath_var=no
6773 ;;
6774
6775 *)
6776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6779 else
6780 ld_shlibs=no
6781 fi
6782 ;;
6783 esac
6784
6785 if test "$ld_shlibs" = yes; then
6786 runpath_var=LD_RUN_PATH
6787 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6788 export_dynamic_flag_spec='${wl}--export-dynamic'
6789 # ancient GNU ld didn't support --whole-archive et. al.
6790 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6791 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6792 else
6793 whole_archive_flag_spec=
6794 fi
6795 fi
6796 else
6797 # PORTME fill in a description of your system's linker (not GNU ld)
6798 case $host_os in
6799 aix3*)
6800 allow_undefined_flag=unsupported
6801 always_export_symbols=yes
6802 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'
6803 # Note: this linker hardcodes the directories in LIBPATH if there
6804 # are no directories specified by -L.
6805 hardcode_minus_L=yes
6806 if test "$GCC" = yes && test -z "$link_static_flag"; then
6807 # Neither direct hardcoding nor static linking is supported with a
6808 # broken collect2.
6809 hardcode_direct=unsupported
6810 fi
6811 ;;
6812
6813 aix4* | aix5*)
6814 if test "$host_cpu" = ia64; then
6815 # On IA64, the linker does run time linking by default, so we don't
6816 # have to do anything special.
6817 aix_use_runtimelinking=no
6818 exp_sym_flag='-Bexport'
6819 no_entry_flag=""
6820 else
6821 # If we're using GNU nm, then we don't want the "-C" option.
6822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6824 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'
6825 else
6826 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'
6827 fi
6828 aix_use_runtimelinking=no
6829
6830 # Test if we are trying to use run time linking or normal
6831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6832 # need to do runtime linking.
6833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6834 for ld_flag in $LDFLAGS; do
6835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6836 aix_use_runtimelinking=yes
6837 break
6838 fi
6839 done
6840 esac
6841
6842 exp_sym_flag='-bexport'
6843 no_entry_flag='-bnoentry'
6844 fi
6845
6846 # When large executables or shared objects are built, AIX ld can
6847 # have problems creating the table of contents. If linking a library
6848 # or program results in "error TOC overflow" add -mminimal-toc to
6849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6851
6852 archive_cmds=''
6853 hardcode_direct=yes
6854 hardcode_libdir_separator=':'
6855 link_all_deplibs=yes
6856
6857 if test "$GCC" = yes; then
6858 case $host_os in aix4.012|aix4.012.*)
6859 # We only want to do this on AIX 4.2 and lower, the check
6860 # below for broken collect2 doesn't work under 4.3+
6861 collect2name=`${CC} -print-prog-name=collect2`
6862 if test -f "$collect2name" && \
6863 strings "$collect2name" | grep resolve_lib_name >/dev/null
6864 then
6865 # We have reworked collect2
6866 hardcode_direct=yes
6867 else
6868 # We have old collect2
6869 hardcode_direct=unsupported
6870 # It fails to find uninstalled libraries when the uninstalled
6871 # path is not listed in the libpath. Setting hardcode_minus_L
6872 # to unsupported forces relinking
6873 hardcode_minus_L=yes
6874 hardcode_libdir_flag_spec='-L$libdir'
6875 hardcode_libdir_separator=
6876 fi
6877 esac
6878 shared_flag='-shared'
6879 else
6880 # not using gcc
6881 if test "$host_cpu" = ia64; then
6882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6883 # chokes on -Wl,-G. The following line is correct:
6884 shared_flag='-G'
6885 else
6886 if test "$aix_use_runtimelinking" = yes; then
6887 shared_flag='${wl}-G'
6888 else
6889 shared_flag='${wl}-bM:SRE'
6890 fi
6891 fi
6892 fi
6893
6894 # It seems that -bexpall does not export symbols beginning with
6895 # underscore (_), so it is better to generate a list of symbols to export.
6896 always_export_symbols=yes
6897 if test "$aix_use_runtimelinking" = yes; then
6898 # Warning - without using the other runtime loading flags (-brtl),
6899 # -berok will link without error, but may produce a broken library.
6900 allow_undefined_flag='-berok'
6901 # Determine the default libpath from the value encoded in an empty executable.
6902 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006903#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006904/* confdefs.h. */
6905_ACEOF
6906cat confdefs.h >>conftest.$ac_ext
6907cat >>conftest.$ac_ext <<_ACEOF
6908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006909
John Criswell7a73b802003-06-30 21:59:07 +00006910int
6911main ()
6912{
John Criswell47fdd832003-07-14 16:52:07 +00006913
John Criswell7a73b802003-06-30 21:59:07 +00006914 ;
6915 return 0;
6916}
6917_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006918rm -f conftest.$ac_objext conftest$ac_exeext
6919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006924 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006930
John Criswell47fdd832003-07-14 16:52:07 +00006931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6932}'`
6933# Check for a 64-bit object if we didn't find anything.
6934if 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; }
6935}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006936else
6937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006938sed 's/^/| /' conftest.$ac_ext >&5
6939
John Criswell7a73b802003-06-30 21:59:07 +00006940fi
John Criswell47fdd832003-07-14 16:52:07 +00006941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6942if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006943
John Criswell47fdd832003-07-14 16:52:07 +00006944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6945 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"
6946 else
6947 if test "$host_cpu" = ia64; then
6948 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6949 allow_undefined_flag="-z nodefs"
6950 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"
6951 else
6952 # Determine the default libpath from the value encoded in an empty executable.
6953 cat >conftest.$ac_ext <<_ACEOF
6954#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006960
John Criswell47fdd832003-07-14 16:52:07 +00006961int
6962main ()
6963{
John Criswell7a73b802003-06-30 21:59:07 +00006964
John Criswell47fdd832003-07-14 16:52:07 +00006965 ;
6966 return 0;
6967}
6968_ACEOF
6969rm -f conftest.$ac_objext conftest$ac_exeext
6970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -s conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006981
John Criswell47fdd832003-07-14 16:52:07 +00006982aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6983}'`
6984# Check for a 64-bit object if we didn't find anything.
6985if 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; }
6986}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006987else
John Criswell47fdd832003-07-14 16:52:07 +00006988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006989sed 's/^/| /' conftest.$ac_ext >&5
6990
John Criswell47fdd832003-07-14 16:52:07 +00006991fi
6992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006994
John Criswell47fdd832003-07-14 16:52:07 +00006995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6996 # Warning - without using the other run time loading flags,
6997 # -berok will link without error, but may produce a broken library.
6998 no_undefined_flag=' ${wl}-bernotok'
6999 allow_undefined_flag=' ${wl}-berok'
7000 # -bexpall does not export symbols beginning with underscore (_)
7001 always_export_symbols=yes
7002 # Exported symbols can be pulled into shared objects from archives
7003 whole_archive_flag_spec=' '
7004 archive_cmds_need_lc=yes
7005 # This is similar to how AIX traditionally builds it's shared libraries.
7006 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 +00007007 fi
7008 fi
John Criswell7a73b802003-06-30 21:59:07 +00007009 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007010
7011 amigaos*)
7012 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)'
7013 hardcode_libdir_flag_spec='-L$libdir'
7014 hardcode_minus_L=yes
7015 # see comment about different semantics on the GNU ld section
7016 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007017 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007018
John Criswell47fdd832003-07-14 16:52:07 +00007019 bsdi4*)
7020 export_dynamic_flag_spec=-rdynamic
7021 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007022
John Criswell47fdd832003-07-14 16:52:07 +00007023 cygwin* | mingw* | pw32*)
7024 # When not using gcc, we currently assume that we are using
7025 # Microsoft Visual C++.
7026 # hardcode_libdir_flag_spec is actually meaningless, as there is
7027 # no search path for DLLs.
7028 hardcode_libdir_flag_spec=' '
7029 allow_undefined_flag=unsupported
7030 # Tell ltmain to make .lib files, not .a files.
7031 libext=lib
7032 # Tell ltmain to make .dll files, not .so files.
7033 shrext=".dll"
7034 # FIXME: Setting linknames here is a bad hack.
7035 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7036 # The linker will automatically build a .lib file if we build a DLL.
7037 old_archive_From_new_cmds='true'
7038 # FIXME: Should let the user specify the lib program.
7039 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7040 fix_srcfile_path='`cygpath -w "$srcfile"`'
7041 enable_shared_with_static_runtimes=yes
7042 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007043
John Criswell47fdd832003-07-14 16:52:07 +00007044 darwin* | rhapsody*)
7045 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7046 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007047 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007048 rhapsody* | darwin1.[012])
7049 allow_undefined_flag='-undefined suppress'
7050 ;;
7051 *) # Darwin 1.3 on
7052 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007053 ;;
7054 esac
John Criswell47fdd832003-07-14 16:52:07 +00007055 # FIXME: Relying on posixy $() will cause problems for
7056 # cross-compilation, but unfortunately the echo tests do not
7057 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7058 # `"' quotes if we put them in here... so don't!
7059 lt_int_apple_cc_single_mod=no
7060 output_verbose_link_cmd='echo'
7061 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7062 lt_int_apple_cc_single_mod=yes
7063 fi
7064 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7065 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7066 else
7067 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'
7068 fi
7069 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7071 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7072 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}'
7073 else
7074 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}'
7075 fi
7076 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}'
7077 hardcode_direct=no
7078 hardcode_automatic=yes
7079 hardcode_shlibpath_var=unsupported
7080 whole_archive_flag_spec='-all_load $convenience'
7081 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007082 fi
John Criswell47fdd832003-07-14 16:52:07 +00007083 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007084
John Criswell47fdd832003-07-14 16:52:07 +00007085 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007087 hardcode_libdir_flag_spec='-L$libdir'
7088 hardcode_shlibpath_var=no
7089 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007090
John Criswell47fdd832003-07-14 16:52:07 +00007091 freebsd1*)
7092 ld_shlibs=no
7093 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007094
John Criswell47fdd832003-07-14 16:52:07 +00007095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7096 # support. Future versions do this automatically, but an explicit c++rt0.o
7097 # does not break anything, and helps significantly (at the cost of a little
7098 # extra space).
7099 freebsd2.2*)
7100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7101 hardcode_libdir_flag_spec='-R$libdir'
7102 hardcode_direct=yes
7103 hardcode_shlibpath_var=no
7104 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007105
John Criswell47fdd832003-07-14 16:52:07 +00007106 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7107 freebsd2*)
7108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7109 hardcode_direct=yes
7110 hardcode_minus_L=yes
7111 hardcode_shlibpath_var=no
7112 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007113
John Criswell47fdd832003-07-14 16:52:07 +00007114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7115 freebsd*)
7116 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7117 hardcode_libdir_flag_spec='-R$libdir'
7118 hardcode_direct=yes
7119 hardcode_shlibpath_var=no
7120 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007121
John Criswell47fdd832003-07-14 16:52:07 +00007122 hpux9*)
7123 if test "$GCC" = yes; then
7124 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'
7125 else
7126 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'
7127 fi
7128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7129 hardcode_libdir_separator=:
7130 hardcode_direct=yes
7131
7132 # hardcode_minus_L: Not really in the search PATH,
7133 # but as the default location of the library.
7134 hardcode_minus_L=yes
7135 export_dynamic_flag_spec='${wl}-E'
7136 ;;
7137
7138 hpux10* | hpux11*)
7139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7140 case "$host_cpu" in
7141 hppa*64*|ia64*)
7142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7143 ;;
7144 *)
7145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7146 ;;
7147 esac
7148 else
7149 case "$host_cpu" in
7150 hppa*64*|ia64*)
7151 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7152 ;;
7153 *)
7154 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7155 ;;
7156 esac
7157 fi
7158 if test "$with_gnu_ld" = no; then
7159 case "$host_cpu" in
7160 hppa*64*)
7161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7162 hardcode_libdir_flag_spec_ld='+b $libdir'
7163 hardcode_libdir_separator=:
7164 hardcode_direct=no
7165 hardcode_shlibpath_var=no
7166 ;;
7167 ia64*)
7168 hardcode_libdir_flag_spec='-L$libdir'
7169 hardcode_direct=no
7170 hardcode_shlibpath_var=no
7171
7172 # hardcode_minus_L: Not really in the search PATH,
7173 # but as the default location of the library.
7174 hardcode_minus_L=yes
7175 ;;
7176 *)
7177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7178 hardcode_libdir_separator=:
7179 hardcode_direct=yes
7180 export_dynamic_flag_spec='${wl}-E'
7181
7182 # hardcode_minus_L: Not really in the search PATH,
7183 # but as the default location of the library.
7184 hardcode_minus_L=yes
7185 ;;
7186 esac
7187 fi
7188 ;;
7189
7190 irix5* | irix6* | nonstopux*)
7191 if test "$GCC" = yes; then
7192 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'
7193 else
7194 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'
7195 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7196 fi
7197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7198 hardcode_libdir_separator=:
7199 link_all_deplibs=yes
7200 ;;
7201
7202 netbsd*)
7203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7205 else
7206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7207 fi
7208 hardcode_libdir_flag_spec='-R$libdir'
7209 hardcode_direct=yes
7210 hardcode_shlibpath_var=no
7211 ;;
7212
7213 newsos6)
7214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7215 hardcode_direct=yes
7216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7217 hardcode_libdir_separator=:
7218 hardcode_shlibpath_var=no
7219 ;;
7220
7221 openbsd*)
7222 hardcode_direct=yes
7223 hardcode_shlibpath_var=no
7224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227 export_dynamic_flag_spec='${wl}-E'
7228 else
7229 case $host_os in
7230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7232 hardcode_libdir_flag_spec='-R$libdir'
7233 ;;
7234 *)
7235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7237 ;;
7238 esac
7239 fi
7240 ;;
7241
7242 os2*)
7243 hardcode_libdir_flag_spec='-L$libdir'
7244 hardcode_minus_L=yes
7245 allow_undefined_flag=unsupported
7246 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'
7247 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7248 ;;
7249
7250 osf3*)
7251 if test "$GCC" = yes; then
7252 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7253 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'
7254 else
7255 allow_undefined_flag=' -expect_unresolved \*'
7256 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'
7257 fi
7258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7259 hardcode_libdir_separator=:
7260 ;;
7261
7262 osf4* | osf5*) # as osf3* with the addition of -msym flag
7263 if test "$GCC" = yes; then
7264 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7265 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'
7266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7267 else
7268 allow_undefined_flag=' -expect_unresolved \*'
7269 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'
7270 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7271 $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'
7272
7273 # Both c and cxx compiler support -rpath directly
7274 hardcode_libdir_flag_spec='-rpath $libdir'
7275 fi
7276 hardcode_libdir_separator=:
7277 ;;
7278
7279 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007282 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007283 runpath_var=LD_RUN_PATH
7284 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007285 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007286
John Criswell47fdd832003-07-14 16:52:07 +00007287 solaris*)
7288 no_undefined_flag=' -z text'
7289 if test "$GCC" = yes; then
7290 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7291 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7292 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7293 else
7294 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7297 fi
7298 hardcode_libdir_flag_spec='-R$libdir'
7299 hardcode_shlibpath_var=no
7300 case $host_os in
7301 solaris2.[0-5] | solaris2.[0-5].*) ;;
7302 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7303 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7304 esac
7305 link_all_deplibs=yes
7306 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007307
John Criswell47fdd832003-07-14 16:52:07 +00007308 sunos4*)
7309 if test "x$host_vendor" = xsequent; then
7310 # Use $CC to link under sequent, because it throws in some extra .o
7311 # files that make .init and .fini sections work.
7312 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7313 else
7314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7315 fi
7316 hardcode_libdir_flag_spec='-L$libdir'
7317 hardcode_direct=yes
7318 hardcode_minus_L=yes
7319 hardcode_shlibpath_var=no
7320 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007321
John Criswell47fdd832003-07-14 16:52:07 +00007322 sysv4)
7323 case $host_vendor in
7324 sni)
7325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7326 hardcode_direct=yes # is this really true???
7327 ;;
7328 siemens)
7329 ## LD is ld it makes a PLAMLIB
7330 ## CC just makes a GrossModule.
7331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7332 reload_cmds='$CC -r -o $output$reload_objs'
7333 hardcode_direct=no
7334 ;;
7335 motorola)
7336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7338 ;;
7339 esac
7340 runpath_var='LD_RUN_PATH'
7341 hardcode_shlibpath_var=no
7342 ;;
7343
7344 sysv4.3*)
7345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_shlibpath_var=no
7347 export_dynamic_flag_spec='-Bexport'
7348 ;;
7349
7350 sysv4*MP*)
7351 if test -d /usr/nec; then
7352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7353 hardcode_shlibpath_var=no
7354 runpath_var=LD_RUN_PATH
7355 hardcode_runpath_var=yes
7356 ld_shlibs=yes
7357 fi
7358 ;;
7359
7360 sysv4.2uw2*)
7361 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7362 hardcode_direct=yes
7363 hardcode_minus_L=no
7364 hardcode_shlibpath_var=no
7365 hardcode_runpath_var=yes
7366 runpath_var=LD_RUN_PATH
7367 ;;
7368
7369 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7370 no_undefined_flag='${wl}-z ${wl}text'
7371 if test "$GCC" = yes; then
7372 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7373 else
7374 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 fi
7376 runpath_var='LD_RUN_PATH'
7377 hardcode_shlibpath_var=no
7378 ;;
7379
7380 sysv5*)
7381 no_undefined_flag=' -z text'
7382 # $CC -shared without GNU ld will not create a library from C++
7383 # object files and a static libstdc++, better avoid it by now
7384 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7385 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7387 hardcode_libdir_flag_spec=
7388 hardcode_shlibpath_var=no
7389 runpath_var='LD_RUN_PATH'
7390 ;;
7391
7392 uts4*)
7393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7394 hardcode_libdir_flag_spec='-L$libdir'
7395 hardcode_shlibpath_var=no
7396 ;;
7397
7398 *)
7399 ld_shlibs=no
7400 ;;
7401 esac
7402 fi
7403
John Criswell7a73b802003-06-30 21:59:07 +00007404echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7405echo "${ECHO_T}$ld_shlibs" >&6
7406test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007407
John Criswell47fdd832003-07-14 16:52:07 +00007408variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7409if test "$GCC" = yes; then
7410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7411fi
7412
7413#
7414# Do we need to explicitly link libc?
7415#
7416case "x$archive_cmds_need_lc" in
7417x|xyes)
7418 # Assume -lc should be added
7419 archive_cmds_need_lc=yes
7420
7421 if test "$enable_shared" = yes && test "$GCC" = yes; then
7422 case $archive_cmds in
7423 *'~'*)
7424 # FIXME: we may have to deal with multi-command sequences.
7425 ;;
7426 '$CC '*)
7427 # Test whether the compiler implicitly links with -lc since on some
7428 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7429 # to ld, don't add -lc before -lgcc.
7430 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7431echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7432 $rm conftest*
7433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7434
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>&5
7437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } 2>conftest.err; then
7440 soname=conftest
7441 lib=conftest
7442 libobjs=conftest.$ac_objext
7443 deplibs=
7444 wl=$lt_prog_compiler_wl
7445 compiler_flags=-v
7446 linker_flags=-v
7447 verstring=
7448 output_objdir=.
7449 libname=conftest
7450 lt_save_allow_undefined_flag=$allow_undefined_flag
7451 allow_undefined_flag=
7452 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7453 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }
7457 then
7458 archive_cmds_need_lc=no
7459 else
7460 archive_cmds_need_lc=yes
7461 fi
7462 allow_undefined_flag=$lt_save_allow_undefined_flag
7463 else
7464 cat conftest.err 1>&5
7465 fi
7466 $rm conftest*
7467 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7468echo "${ECHO_T}$archive_cmds_need_lc" >&6
7469 ;;
7470 esac
7471 fi
7472 ;;
7473esac
7474
John Criswell7a73b802003-06-30 21:59:07 +00007475echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7476echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7477hardcode_action=
7478if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007479 test -n "$runpath_var " || \
7480 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007481
7482 # We can hardcode non-existant directories.
7483 if test "$hardcode_direct" != no &&
7484 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7485 # have to relink, otherwise we might link with an installed library
7486 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007487 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007488 test "$hardcode_minus_L" != no; then
7489 # Linking always hardcodes the temporary library directory.
7490 hardcode_action=relink
7491 else
7492 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7493 hardcode_action=immediate
7494 fi
7495else
7496 # We cannot hardcode anything, or else we can only hardcode existing
7497 # directories.
7498 hardcode_action=unsupported
7499fi
7500echo "$as_me:$LINENO: result: $hardcode_action" >&5
7501echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007502
John Criswell47fdd832003-07-14 16:52:07 +00007503if test "$hardcode_action" = relink; then
7504 # Fast installation is not supported
7505 enable_fast_install=no
7506elif test "$shlibpath_overrides_runpath" = yes ||
7507 test "$enable_shared" = no; then
7508 # Fast installation is not necessary
7509 enable_fast_install=needless
7510fi
7511
John Criswell7a73b802003-06-30 21:59:07 +00007512striplib=
7513old_striplib=
7514echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7515echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7516if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7517 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7518 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7519 echo "$as_me:$LINENO: result: yes" >&5
7520echo "${ECHO_T}yes" >&6
7521else
John Criswell47fdd832003-07-14 16:52:07 +00007522# FIXME - insert some real tests, host_os isn't really good enough
7523 case $host_os in
7524 darwin*)
7525 if test -n "$STRIP" ; then
7526 striplib="$STRIP -x"
7527 echo "$as_me:$LINENO: result: yes" >&5
7528echo "${ECHO_T}yes" >&6
7529 else
John Criswell7a73b802003-06-30 21:59:07 +00007530 echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6
7532fi
John Criswell47fdd832003-07-14 16:52:07 +00007533 ;;
7534 *)
7535 echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6
7537 ;;
7538 esac
7539fi
John Criswell7a73b802003-06-30 21:59:07 +00007540
John Criswell7a73b802003-06-30 21:59:07 +00007541echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7542echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7543library_names_spec=
7544libname_spec='lib$name'
7545soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007546shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007547postinstall_cmds=
7548postuninstall_cmds=
7549finish_cmds=
7550finish_eval=
7551shlibpath_var=
7552shlibpath_overrides_runpath=unknown
7553version_type=none
7554dynamic_linker="$host_os ld.so"
7555sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007556if test "$GCC" = yes; then
7557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7558 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7559 # if the path contains ";" then we assume it to be the separator
7560 # otherwise default to the standard path separator (i.e. ":") - it is
7561 # assumed that no part of a normal pathname contains ";" but that should
7562 # okay in the real world where ";" in dirpaths is itself problematic.
7563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7564 else
7565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7566 fi
7567else
7568 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7569fi
7570need_lib_prefix=unknown
7571hardcode_into_libs=no
7572
7573# when you set need_version to no, make sure it does not cause -set_version
7574# flags to be left without arguments
7575need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007576
7577case $host_os in
7578aix3*)
7579 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007581 shlibpath_var=LIBPATH
7582
John Criswell47fdd832003-07-14 16:52:07 +00007583 # AIX 3 has no versioning support, so we append a major version to the name.
7584 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007585 ;;
7586
7587aix4* | aix5*)
7588 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007589 need_lib_prefix=no
7590 need_version=no
7591 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007592 if test "$host_cpu" = ia64; then
7593 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007595 shlibpath_var=LD_LIBRARY_PATH
7596 else
7597 # With GCC up to 2.95.x, collect2 would create an import file
7598 # for dependence libraries. The import file would start with
7599 # the line `#! .'. This would cause the generated library to
7600 # depend on `.', always an invalid library. This was fixed in
7601 # development snapshots of GCC prior to 3.0.
7602 case $host_os in
7603 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7605 echo ' yes '
7606 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7607 :
7608 else
7609 can_build_shared=no
7610 fi
7611 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007612 esac
John Criswell47fdd832003-07-14 16:52:07 +00007613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7614 # soname into executable. Probably we can add versioning support to
7615 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007616 if test "$aix_use_runtimelinking" = yes; then
7617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7618 # instead of lib<name>.a to let people know that these are not
7619 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007621 else
7622 # We preserve .a as extension for shared libraries through AIX4.2
7623 # and later when we are not doing run time linking.
7624 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007625 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007626 fi
7627 shlibpath_var=LIBPATH
7628 fi
7629 ;;
7630
7631amigaos*)
7632 library_names_spec='$libname.ixlibrary $libname.a'
7633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7634 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'
7635 ;;
7636
7637beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007638 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007639 dynamic_linker="$host_os ld.so"
7640 shlibpath_var=LIBRARY_PATH
7641 ;;
7642
7643bsdi4*)
7644 version_type=linux
7645 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7647 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7649 shlibpath_var=LD_LIBRARY_PATH
7650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007652 # the default ld.so.conf also contains /usr/contrib/lib and
7653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7654 # libtool to hard-code these into programs
7655 ;;
7656
7657cygwin* | mingw* | pw32*)
7658 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007659 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007660 need_version=no
7661 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007662
John Criswell7a73b802003-06-30 21:59:07 +00007663 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007664 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007665 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7667 postinstall_cmds='base_file=`basename \${file}`~
7668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007669 dldir=$destdir/`dirname \$dlpath`~
7670 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007671 $install_prog $dir/$dlname \$dldir/$dlname'
7672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007673 dlpath=$dir/\$dldll~
7674 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007675 shlibpath_overrides_runpath=yes
7676
7677 case $host_os in
7678 cygwin*)
7679 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7680 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7681 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7682 ;;
7683 mingw*)
7684 # MinGW DLLs use traditional 'lib' prefix
7685 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7686 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7687 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7688 # It is most probably a Windows format PATH printed by
7689 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7690 # path with ; separators, and with drive letters. We can handle the
7691 # drive letters (cygwin fileutils understands them), so leave them,
7692 # especially as we might pass files found there to a mingw objdump,
7693 # which wouldn't understand a cygwinified path. Ahh.
7694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7695 else
7696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7697 fi
7698 ;;
7699 pw32*)
7700 # pw32 DLLs use 'pw' prefix rather than 'lib'
7701 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7702 ;;
7703 esac
John Criswell7a73b802003-06-30 21:59:07 +00007704 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007705
John Criswell7a73b802003-06-30 21:59:07 +00007706 *)
John Criswell47fdd832003-07-14 16:52:07 +00007707 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007708 ;;
7709 esac
7710 dynamic_linker='Win32 ld.exe'
7711 # FIXME: first we should search . and the directory the executable is in
7712 shlibpath_var=PATH
7713 ;;
7714
7715darwin* | rhapsody*)
7716 dynamic_linker="$host_os dyld"
7717 version_type=darwin
7718 need_lib_prefix=no
7719 need_version=no
7720 # FIXME: Relying on posixy $() will cause problems for
7721 # cross-compilation, but unfortunately the echo tests do not
7722 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7724 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007725 shlibpath_overrides_runpath=yes
7726 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007727 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7729 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7730 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"`
7731 fi
7732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7733 ;;
7734
7735dgux*)
7736 version_type=linux
7737 need_lib_prefix=no
7738 need_version=no
7739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7740 soname_spec='${libname}${release}${shared_ext}$major'
7741 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007742 ;;
7743
7744freebsd1*)
7745 dynamic_linker=no
7746 ;;
7747
7748freebsd*)
7749 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7750 version_type=freebsd-$objformat
7751 case $version_type in
7752 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007754 need_version=no
7755 need_lib_prefix=no
7756 ;;
7757 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007758 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007759 need_version=yes
7760 ;;
7761 esac
7762 shlibpath_var=LD_LIBRARY_PATH
7763 case $host_os in
7764 freebsd2*)
7765 shlibpath_overrides_runpath=yes
7766 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007767 freebsd3.01* | freebsdelf3.01*)
7768 shlibpath_overrides_runpath=yes
7769 hardcode_into_libs=yes
7770 ;;
7771 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007772 shlibpath_overrides_runpath=no
7773 hardcode_into_libs=yes
7774 ;;
7775 esac
7776 ;;
7777
7778gnu*)
7779 version_type=linux
7780 need_lib_prefix=no
7781 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7783 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007784 shlibpath_var=LD_LIBRARY_PATH
7785 hardcode_into_libs=yes
7786 ;;
7787
7788hpux9* | hpux10* | hpux11*)
7789 # Give a soname corresponding to the major version so that dld.sl refuses to
7790 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007791 version_type=sunos
7792 need_lib_prefix=no
7793 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007794 case "$host_cpu" in
7795 ia64*)
7796 shrext='.so'
7797 hardcode_into_libs=yes
7798 dynamic_linker="$host_os dld.so"
7799 shlibpath_var=LD_LIBRARY_PATH
7800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7802 soname_spec='${libname}${release}${shared_ext}$major'
7803 if test "X$HPUX_IA64_MODE" = X32; then
7804 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7805 else
7806 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7807 fi
7808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7809 ;;
7810 hppa*64*)
7811 shrext='.sl'
7812 hardcode_into_libs=yes
7813 dynamic_linker="$host_os dld.sl"
7814 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817 soname_spec='${libname}${release}${shared_ext}$major'
7818 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7820 ;;
7821 *)
7822 shrext='.sl'
7823 dynamic_linker="$host_os dld.sl"
7824 shlibpath_var=SHLIB_PATH
7825 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 ;;
7829 esac
John Criswell7a73b802003-06-30 21:59:07 +00007830 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7831 postinstall_cmds='chmod 555 $lib'
7832 ;;
7833
John Criswell47fdd832003-07-14 16:52:07 +00007834irix5* | irix6* | nonstopux*)
7835 case $host_os in
7836 nonstopux*) version_type=nonstopux ;;
7837 *)
7838 if test "$lt_cv_prog_gnu_ld" = yes; then
7839 version_type=linux
7840 else
7841 version_type=irix
7842 fi ;;
7843 esac
John Criswell7a73b802003-06-30 21:59:07 +00007844 need_lib_prefix=no
7845 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007846 soname_spec='${libname}${release}${shared_ext}$major'
7847 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 +00007848 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007849 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007850 libsuff= shlibsuff=
7851 ;;
7852 *)
7853 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007854 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7855 libsuff= shlibsuff= libmagic=32-bit;;
7856 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7857 libsuff=32 shlibsuff=N32 libmagic=N32;;
7858 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7859 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007860 *) libsuff= shlibsuff= libmagic=never-match;;
7861 esac
7862 ;;
7863 esac
7864 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7865 shlibpath_overrides_runpath=no
7866 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7867 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007868 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007869 ;;
7870
7871# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007872linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007873 dynamic_linker=no
7874 ;;
7875
7876# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007877linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007878 version_type=linux
7879 need_lib_prefix=no
7880 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7882 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7884 shlibpath_var=LD_LIBRARY_PATH
7885 shlibpath_overrides_runpath=no
7886 # This implies no fast_install, which is unacceptable.
7887 # Some rework will be needed to allow for fast_install
7888 # before this can be enabled.
7889 hardcode_into_libs=yes
7890
7891 # We used to test for /lib/ld.so.1 and disable shared libraries on
7892 # powerpc, because MkLinux only supported shared libraries with the
7893 # GNU dynamic linker. Since this was broken with cross compilers,
7894 # most powerpc-linux boxes support dynamic linking these days and
7895 # people can always --disable-shared, the test was removed, and we
7896 # assume the GNU/Linux dynamic linker is in use.
7897 dynamic_linker='GNU/Linux ld.so'
7898 ;;
7899
7900netbsd*)
7901 version_type=sunos
7902 need_lib_prefix=no
7903 need_version=no
7904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7907 dynamic_linker='NetBSD (a.out) ld.so'
7908 else
John Criswell47fdd832003-07-14 16:52:07 +00007909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7910 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007911 dynamic_linker='NetBSD ld.elf_so'
7912 fi
7913 shlibpath_var=LD_LIBRARY_PATH
7914 shlibpath_overrides_runpath=yes
7915 hardcode_into_libs=yes
7916 ;;
7917
7918newsos6)
7919 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921 shlibpath_var=LD_LIBRARY_PATH
7922 shlibpath_overrides_runpath=yes
7923 ;;
7924
7925nto-qnx)
7926 version_type=linux
7927 need_lib_prefix=no
7928 need_version=no
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007931 shlibpath_var=LD_LIBRARY_PATH
7932 shlibpath_overrides_runpath=yes
7933 ;;
7934
7935openbsd*)
7936 version_type=sunos
7937 need_lib_prefix=no
7938 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7941 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007942 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 +00007943 case $host_os in
7944 openbsd2.[89] | openbsd2.[89].*)
7945 shlibpath_overrides_runpath=no
7946 ;;
7947 *)
7948 shlibpath_overrides_runpath=yes
7949 ;;
7950 esac
John Criswell7a73b802003-06-30 21:59:07 +00007951 else
7952 shlibpath_overrides_runpath=yes
7953 fi
John Criswell7a73b802003-06-30 21:59:07 +00007954 ;;
7955
7956os2*)
7957 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007958 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007959 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007960 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007961 dynamic_linker='OS/2 ld.exe'
7962 shlibpath_var=LIBPATH
7963 ;;
7964
7965osf3* | osf4* | osf5*)
7966 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007967 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007968 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007969 soname_spec='${libname}${release}${shared_ext}$major'
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007971 shlibpath_var=LD_LIBRARY_PATH
7972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7974 ;;
7975
7976sco3.2v5*)
7977 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007978 soname_spec='${libname}${release}${shared_ext}$major'
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007980 shlibpath_var=LD_LIBRARY_PATH
7981 ;;
7982
7983solaris*)
7984 version_type=linux
7985 need_lib_prefix=no
7986 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7988 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007989 shlibpath_var=LD_LIBRARY_PATH
7990 shlibpath_overrides_runpath=yes
7991 hardcode_into_libs=yes
7992 # ldd complains unless libraries are executable
7993 postinstall_cmds='chmod +x $lib'
7994 ;;
7995
7996sunos4*)
7997 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8000 shlibpath_var=LD_LIBRARY_PATH
8001 shlibpath_overrides_runpath=yes
8002 if test "$with_gnu_ld" = yes; then
8003 need_lib_prefix=no
8004 fi
8005 need_version=yes
8006 ;;
8007
8008sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8009 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008012 shlibpath_var=LD_LIBRARY_PATH
8013 case $host_vendor in
8014 sni)
8015 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008016 need_lib_prefix=no
8017 export_dynamic_flag_spec='${wl}-Blargedynsym'
8018 runpath_var=LD_RUN_PATH
8019 ;;
8020 siemens)
8021 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008022 ;;
8023 motorola)
8024 need_lib_prefix=no
8025 need_version=no
8026 shlibpath_overrides_runpath=no
8027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8028 ;;
8029 esac
8030 ;;
8031
John Criswell7a73b802003-06-30 21:59:07 +00008032sysv4*MP*)
8033 if test -d /usr/nec ;then
8034 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8036 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008037 shlibpath_var=LD_LIBRARY_PATH
8038 fi
8039 ;;
8040
John Criswell47fdd832003-07-14 16:52:07 +00008041uts4*)
8042 version_type=linux
8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8044 soname_spec='${libname}${release}${shared_ext}$major'
8045 shlibpath_var=LD_LIBRARY_PATH
8046 ;;
8047
John Criswell7a73b802003-06-30 21:59:07 +00008048*)
8049 dynamic_linker=no
8050 ;;
8051esac
8052echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8053echo "${ECHO_T}$dynamic_linker" >&6
8054test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008055
8056if test "x$enable_dlopen" != xyes; then
8057 enable_dlopen=unknown
8058 enable_dlopen_self=unknown
8059 enable_dlopen_self_static=unknown
8060else
8061 lt_cv_dlopen=no
8062 lt_cv_dlopen_libs=
8063
8064 case $host_os in
8065 beos*)
8066 lt_cv_dlopen="load_add_on"
8067 lt_cv_dlopen_libs=
8068 lt_cv_dlopen_self=yes
8069 ;;
8070
John Criswell47fdd832003-07-14 16:52:07 +00008071 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008072 lt_cv_dlopen="LoadLibrary"
8073 lt_cv_dlopen_libs=
8074 ;;
8075
John Criswell47fdd832003-07-14 16:52:07 +00008076 cygwin*)
8077 lt_cv_dlopen="dlopen"
8078 lt_cv_dlopen_libs=
8079 ;;
8080
8081 darwin*)
8082 # if libdl is installed we need to link against it
8083 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8084echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8085if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 ac_check_lib_save_LIBS=$LIBS
8089LIBS="-ldl $LIBS"
8090cat >conftest.$ac_ext <<_ACEOF
8091#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008092/* confdefs.h. */
8093_ACEOF
8094cat confdefs.h >>conftest.$ac_ext
8095cat >>conftest.$ac_ext <<_ACEOF
8096/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008097
8098/* Override any gcc2 internal prototype to avoid an error. */
8099#ifdef __cplusplus
8100extern "C"
8101#endif
8102/* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8104char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008105int
8106main ()
8107{
8108dlopen ();
8109 ;
8110 return 0;
8111}
8112_ACEOF
8113rm -f conftest.$ac_objext conftest$ac_exeext
8114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -s conftest$ac_exeext'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; }; then
8125 ac_cv_lib_dl_dlopen=yes
8126else
8127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008128sed 's/^/| /' conftest.$ac_ext >&5
8129
John Criswell47fdd832003-07-14 16:52:07 +00008130ac_cv_lib_dl_dlopen=no
8131fi
8132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8133LIBS=$ac_check_lib_save_LIBS
8134fi
8135echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8136echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8137if test $ac_cv_lib_dl_dlopen = yes; then
8138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8139else
8140
8141 lt_cv_dlopen="dyld"
8142 lt_cv_dlopen_libs=
8143 lt_cv_dlopen_self=yes
8144
8145fi
8146
8147 ;;
8148
John Criswell7a73b802003-06-30 21:59:07 +00008149 *)
8150 echo "$as_me:$LINENO: checking for shl_load" >&5
8151echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8152if test "${ac_cv_func_shl_load+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155 cat >conftest.$ac_ext <<_ACEOF
8156#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008157/* confdefs.h. */
8158_ACEOF
8159cat confdefs.h >>conftest.$ac_ext
8160cat >>conftest.$ac_ext <<_ACEOF
8161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008162/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008163 which can conflict with char shl_load (); below.
8164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165 <limits.h> exists even on freestanding compilers. */
8166#ifdef __STDC__
8167# include <limits.h>
8168#else
8169# include <assert.h>
8170#endif
John Criswell7a73b802003-06-30 21:59:07 +00008171/* Override any gcc2 internal prototype to avoid an error. */
8172#ifdef __cplusplus
8173extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008174{
John Criswell7a73b802003-06-30 21:59:07 +00008175#endif
8176/* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8178char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008179/* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182#if defined (__stub_shl_load) || defined (__stub___shl_load)
8183choke me
8184#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008185char (*f) () = shl_load;
8186#endif
8187#ifdef __cplusplus
8188}
John Criswell7a73b802003-06-30 21:59:07 +00008189#endif
8190
John Criswell0c38eaf2003-09-10 15:17:25 +00008191int
8192main ()
8193{
8194return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008195 ;
8196 return 0;
8197}
8198_ACEOF
8199rm -f conftest.$ac_objext conftest$ac_exeext
8200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_func_shl_load=yes
8212else
8213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008214sed 's/^/| /' conftest.$ac_ext >&5
8215
John Criswell7a73b802003-06-30 21:59:07 +00008216ac_cv_func_shl_load=no
8217fi
8218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8219fi
8220echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8221echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8222if test $ac_cv_func_shl_load = yes; then
8223 lt_cv_dlopen="shl_load"
8224else
8225 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8226echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8227if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230 ac_check_lib_save_LIBS=$LIBS
8231LIBS="-ldld $LIBS"
8232cat >conftest.$ac_ext <<_ACEOF
8233#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008234/* confdefs.h. */
8235_ACEOF
8236cat confdefs.h >>conftest.$ac_ext
8237cat >>conftest.$ac_ext <<_ACEOF
8238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008239
8240/* Override any gcc2 internal prototype to avoid an error. */
8241#ifdef __cplusplus
8242extern "C"
8243#endif
8244/* We use char because int might match the return type of a gcc2
8245 builtin and then its argument prototype would still apply. */
8246char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008247int
8248main ()
8249{
8250shl_load ();
8251 ;
8252 return 0;
8253}
8254_ACEOF
8255rm -f conftest.$ac_objext conftest$ac_exeext
8256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8257 (eval $ac_link) 2>&5
8258 ac_status=$?
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -s conftest$ac_exeext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_lib_dld_shl_load=yes
8268else
8269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008270sed 's/^/| /' conftest.$ac_ext >&5
8271
John Criswell7a73b802003-06-30 21:59:07 +00008272ac_cv_lib_dld_shl_load=no
8273fi
8274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8275LIBS=$ac_check_lib_save_LIBS
8276fi
8277echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8278echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8279if test $ac_cv_lib_dld_shl_load = yes; then
8280 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8281else
8282 echo "$as_me:$LINENO: checking for dlopen" >&5
8283echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8284if test "${ac_cv_func_dlopen+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286else
8287 cat >conftest.$ac_ext <<_ACEOF
8288#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008289/* confdefs.h. */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008294/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008295 which can conflict with char dlopen (); below.
8296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8297 <limits.h> exists even on freestanding compilers. */
8298#ifdef __STDC__
8299# include <limits.h>
8300#else
8301# include <assert.h>
8302#endif
John Criswell7a73b802003-06-30 21:59:07 +00008303/* Override any gcc2 internal prototype to avoid an error. */
8304#ifdef __cplusplus
8305extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008306{
John Criswell7a73b802003-06-30 21:59:07 +00008307#endif
8308/* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8310char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008311/* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314#if defined (__stub_dlopen) || defined (__stub___dlopen)
8315choke me
8316#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008317char (*f) () = dlopen;
8318#endif
8319#ifdef __cplusplus
8320}
John Criswell7a73b802003-06-30 21:59:07 +00008321#endif
8322
John Criswell0c38eaf2003-09-10 15:17:25 +00008323int
8324main ()
8325{
8326return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008327 ;
8328 return 0;
8329}
8330_ACEOF
8331rm -f conftest.$ac_objext conftest$ac_exeext
8332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -s conftest$ac_exeext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_cv_func_dlopen=yes
8344else
8345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008346sed 's/^/| /' conftest.$ac_ext >&5
8347
John Criswell7a73b802003-06-30 21:59:07 +00008348ac_cv_func_dlopen=no
8349fi
8350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8351fi
8352echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8353echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8354if test $ac_cv_func_dlopen = yes; then
8355 lt_cv_dlopen="dlopen"
8356else
8357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8358echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8359if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 ac_check_lib_save_LIBS=$LIBS
8363LIBS="-ldl $LIBS"
8364cat >conftest.$ac_ext <<_ACEOF
8365#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008371
8372/* Override any gcc2 internal prototype to avoid an error. */
8373#ifdef __cplusplus
8374extern "C"
8375#endif
8376/* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008379int
8380main ()
8381{
8382dlopen ();
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext conftest$ac_exeext
8388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_lib_dl_dlopen=yes
8400else
8401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008402sed 's/^/| /' conftest.$ac_ext >&5
8403
John Criswell7a73b802003-06-30 21:59:07 +00008404ac_cv_lib_dl_dlopen=no
8405fi
8406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8407LIBS=$ac_check_lib_save_LIBS
8408fi
8409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8411if test $ac_cv_lib_dl_dlopen = yes; then
8412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8413else
8414 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8415echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8416if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418else
8419 ac_check_lib_save_LIBS=$LIBS
8420LIBS="-lsvld $LIBS"
8421cat >conftest.$ac_ext <<_ACEOF
8422#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008428
8429/* Override any gcc2 internal prototype to avoid an error. */
8430#ifdef __cplusplus
8431extern "C"
8432#endif
8433/* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8435char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008436int
8437main ()
8438{
8439dlopen ();
8440 ;
8441 return 0;
8442}
8443_ACEOF
8444rm -f conftest.$ac_objext conftest$ac_exeext
8445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_lib_svld_dlopen=yes
8457else
8458 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008459sed 's/^/| /' conftest.$ac_ext >&5
8460
John Criswell7a73b802003-06-30 21:59:07 +00008461ac_cv_lib_svld_dlopen=no
8462fi
8463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464LIBS=$ac_check_lib_save_LIBS
8465fi
8466echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8467echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8468if test $ac_cv_lib_svld_dlopen = yes; then
8469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8470else
8471 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8472echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8473if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475else
8476 ac_check_lib_save_LIBS=$LIBS
8477LIBS="-ldld $LIBS"
8478cat >conftest.$ac_ext <<_ACEOF
8479#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008480/* confdefs.h. */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008485
8486/* Override any gcc2 internal prototype to avoid an error. */
8487#ifdef __cplusplus
8488extern "C"
8489#endif
8490/* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8492char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008493int
8494main ()
8495{
8496dld_link ();
8497 ;
8498 return 0;
8499}
8500_ACEOF
8501rm -f conftest.$ac_objext conftest$ac_exeext
8502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_lib_dld_dld_link=yes
8514else
8515 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008516sed 's/^/| /' conftest.$ac_ext >&5
8517
John Criswell7a73b802003-06-30 21:59:07 +00008518ac_cv_lib_dld_dld_link=no
8519fi
8520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521LIBS=$ac_check_lib_save_LIBS
8522fi
8523echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8524echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8525if test $ac_cv_lib_dld_dld_link = yes; then
8526 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8527fi
8528
8529
8530fi
8531
8532
8533fi
8534
8535
8536fi
8537
8538
8539fi
8540
8541
8542fi
8543
8544 ;;
8545 esac
8546
8547 if test "x$lt_cv_dlopen" != xno; then
8548 enable_dlopen=yes
8549 else
8550 enable_dlopen=no
8551 fi
8552
8553 case $lt_cv_dlopen in
8554 dlopen)
8555 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008556 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008557
8558 save_LDFLAGS="$LDFLAGS"
8559 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8560
8561 save_LIBS="$LIBS"
8562 LIBS="$lt_cv_dlopen_libs $LIBS"
8563
8564 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8565echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8566if test "${lt_cv_dlopen_self+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568else
8569 if test "$cross_compiling" = yes; then :
8570 lt_cv_dlopen_self=cross
8571else
John Criswell47fdd832003-07-14 16:52:07 +00008572 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008573 lt_status=$lt_dlunknown
8574 cat > conftest.$ac_ext <<EOF
John Criswellf5b55652003-09-30 13:52:11 +00008575#line 8575 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008576#include "confdefs.h"
8577
8578#if HAVE_DLFCN_H
8579#include <dlfcn.h>
8580#endif
8581
8582#include <stdio.h>
8583
8584#ifdef RTLD_GLOBAL
8585# define LT_DLGLOBAL RTLD_GLOBAL
8586#else
8587# ifdef DL_GLOBAL
8588# define LT_DLGLOBAL DL_GLOBAL
8589# else
8590# define LT_DLGLOBAL 0
8591# endif
8592#endif
8593
8594/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8595 find out it does not work in some platform. */
8596#ifndef LT_DLLAZY_OR_NOW
8597# ifdef RTLD_LAZY
8598# define LT_DLLAZY_OR_NOW RTLD_LAZY
8599# else
8600# ifdef DL_LAZY
8601# define LT_DLLAZY_OR_NOW DL_LAZY
8602# else
8603# ifdef RTLD_NOW
8604# define LT_DLLAZY_OR_NOW RTLD_NOW
8605# else
8606# ifdef DL_NOW
8607# define LT_DLLAZY_OR_NOW DL_NOW
8608# else
8609# define LT_DLLAZY_OR_NOW 0
8610# endif
8611# endif
8612# endif
8613# endif
8614#endif
8615
8616#ifdef __cplusplus
8617extern "C" void exit (int);
8618#endif
8619
8620void fnord() { int i=42;}
8621int main ()
8622{
8623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8624 int status = $lt_dlunknown;
8625
8626 if (self)
8627 {
8628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8629 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8630 /* dlclose (self); */
8631 }
8632
8633 exit (status);
8634}
8635EOF
8636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637 (eval $ac_link) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8641 (./conftest; exit; ) 2>/dev/null
8642 lt_status=$?
8643 case x$lt_status in
8644 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8645 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8646 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8647 esac
8648 else :
8649 # compilation failed
8650 lt_cv_dlopen_self=no
8651 fi
8652fi
8653rm -fr conftest*
8654
8655
8656fi
8657echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8658echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8659
8660 if test "x$lt_cv_dlopen_self" = xyes; then
8661 LDFLAGS="$LDFLAGS $link_static_flag"
8662 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8663echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8664if test "${lt_cv_dlopen_self_static+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8666else
8667 if test "$cross_compiling" = yes; then :
8668 lt_cv_dlopen_self_static=cross
8669else
John Criswell47fdd832003-07-14 16:52:07 +00008670 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008671 lt_status=$lt_dlunknown
8672 cat > conftest.$ac_ext <<EOF
John Criswellf5b55652003-09-30 13:52:11 +00008673#line 8673 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008674#include "confdefs.h"
8675
8676#if HAVE_DLFCN_H
8677#include <dlfcn.h>
8678#endif
8679
8680#include <stdio.h>
8681
8682#ifdef RTLD_GLOBAL
8683# define LT_DLGLOBAL RTLD_GLOBAL
8684#else
8685# ifdef DL_GLOBAL
8686# define LT_DLGLOBAL DL_GLOBAL
8687# else
8688# define LT_DLGLOBAL 0
8689# endif
8690#endif
8691
8692/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8693 find out it does not work in some platform. */
8694#ifndef LT_DLLAZY_OR_NOW
8695# ifdef RTLD_LAZY
8696# define LT_DLLAZY_OR_NOW RTLD_LAZY
8697# else
8698# ifdef DL_LAZY
8699# define LT_DLLAZY_OR_NOW DL_LAZY
8700# else
8701# ifdef RTLD_NOW
8702# define LT_DLLAZY_OR_NOW RTLD_NOW
8703# else
8704# ifdef DL_NOW
8705# define LT_DLLAZY_OR_NOW DL_NOW
8706# else
8707# define LT_DLLAZY_OR_NOW 0
8708# endif
8709# endif
8710# endif
8711# endif
8712#endif
8713
8714#ifdef __cplusplus
8715extern "C" void exit (int);
8716#endif
8717
8718void fnord() { int i=42;}
8719int main ()
8720{
8721 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8722 int status = $lt_dlunknown;
8723
8724 if (self)
8725 {
8726 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8727 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8728 /* dlclose (self); */
8729 }
8730
8731 exit (status);
8732}
8733EOF
8734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8739 (./conftest; exit; ) 2>/dev/null
8740 lt_status=$?
8741 case x$lt_status in
8742 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8743 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8744 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8745 esac
8746 else :
8747 # compilation failed
8748 lt_cv_dlopen_self_static=no
8749 fi
8750fi
8751rm -fr conftest*
8752
8753
8754fi
8755echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8756echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8757 fi
8758
8759 CPPFLAGS="$save_CPPFLAGS"
8760 LDFLAGS="$save_LDFLAGS"
8761 LIBS="$save_LIBS"
8762 ;;
8763 esac
8764
8765 case $lt_cv_dlopen_self in
8766 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8767 *) enable_dlopen_self=unknown ;;
8768 esac
8769
8770 case $lt_cv_dlopen_self_static in
8771 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8772 *) enable_dlopen_self_static=unknown ;;
8773 esac
8774fi
8775
8776
John Criswell47fdd832003-07-14 16:52:07 +00008777# Report which librarie types wil actually be built
8778echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8779echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8780echo "$as_me:$LINENO: result: $can_build_shared" >&5
8781echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008782
John Criswell47fdd832003-07-14 16:52:07 +00008783echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8784echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8785test "$can_build_shared" = "no" && enable_shared=no
8786
8787# On AIX, shared libraries and static libraries use the same namespace, and
8788# are all built from PIC.
8789case "$host_os" in
8790aix3*)
8791 test "$enable_shared" = yes && enable_static=no
8792 if test -n "$RANLIB"; then
8793 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8794 postinstall_cmds='$RANLIB $lib'
8795 fi
8796 ;;
8797
8798aix4*)
8799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8800 test "$enable_shared" = yes && enable_static=no
8801 fi
8802 ;;
8803 darwin* | rhapsody*)
8804 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8805 archive_cmds_need_lc=no
8806 case "$host_os" in
8807 rhapsody* | darwin1.[012])
8808 allow_undefined_flag='-undefined suppress'
8809 ;;
8810 *) # Darwin 1.3 on
8811 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8812 ;;
8813 esac
8814 # FIXME: Relying on posixy $() will cause problems for
8815 # cross-compilation, but unfortunately the echo tests do not
8816 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8817 # `"' quotes if we put them in here... so don't!
8818 output_verbose_link_cmd='echo'
8819 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8820 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8822 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}'
8823 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}'
8824 hardcode_direct=no
8825 hardcode_automatic=yes
8826 hardcode_shlibpath_var=unsupported
8827 whole_archive_flag_spec='-all_load $convenience'
8828 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008829 fi
John Criswell7a73b802003-06-30 21:59:07 +00008830 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008831esac
8832echo "$as_me:$LINENO: result: $enable_shared" >&5
8833echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008834
John Criswell47fdd832003-07-14 16:52:07 +00008835echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8836echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8837# Make sure either enable_shared or enable_static is yes.
8838test "$enable_shared" = yes || enable_static=yes
8839echo "$as_me:$LINENO: result: $enable_static" >&5
8840echo "${ECHO_T}$enable_static" >&6
8841
8842# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008843# libtool distribution, otherwise you forgot to ship ltmain.sh
8844# with your package, and you will get complaints that there are
8845# no rules to generate ltmain.sh.
8846if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008847 # See if we are running on zsh, and set the options which allow our commands through
8848 # without removal of \ escapes.
8849 if test -n "${ZSH_VERSION+set}" ; then
8850 setopt NO_GLOB_SUBST
8851 fi
John Criswell7a73b802003-06-30 21:59:07 +00008852 # Now quote all the things that may contain metacharacters while being
8853 # careful not to overquote the AC_SUBSTed values. We take copies of the
8854 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8856 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8857 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8858 deplibs_check_method reload_flag reload_cmds need_locks \
8859 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8860 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008861 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008862 old_postinstall_cmds old_postuninstall_cmds \
8863 compiler \
8864 CC \
8865 LD \
8866 lt_prog_compiler_wl \
8867 lt_prog_compiler_pic \
8868 lt_prog_compiler_static \
8869 lt_prog_compiler_no_builtin_flag \
8870 export_dynamic_flag_spec \
8871 thread_safe_flag_spec \
8872 whole_archive_flag_spec \
8873 enable_shared_with_static_runtimes \
8874 old_archive_cmds \
8875 old_archive_from_new_cmds \
8876 predep_objects \
8877 postdep_objects \
8878 predeps \
8879 postdeps \
8880 compiler_lib_search_path \
8881 archive_cmds \
8882 archive_expsym_cmds \
8883 postinstall_cmds \
8884 postuninstall_cmds \
8885 old_archive_from_expsyms_cmds \
8886 allow_undefined_flag \
8887 no_undefined_flag \
8888 export_symbols_cmds \
8889 hardcode_libdir_flag_spec \
8890 hardcode_libdir_flag_spec_ld \
8891 hardcode_libdir_separator \
8892 hardcode_automatic \
8893 module_cmds \
8894 module_expsym_cmds \
8895 lt_cv_prog_compiler_c_o \
8896 exclude_expsyms \
8897 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008898
8899 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008900 old_archive_cmds | \
8901 old_archive_from_new_cmds | \
8902 archive_cmds | \
8903 archive_expsym_cmds | \
8904 module_cmds | \
8905 module_expsym_cmds | \
8906 old_archive_from_expsyms_cmds | \
8907 export_symbols_cmds | \
8908 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008909 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008910 old_postinstall_cmds | old_postuninstall_cmds | \
8911 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008912 # Double-quote double-evaled strings.
8913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8914 ;;
8915 *)
8916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8917 ;;
8918 esac
8919 done
8920
John Criswell47fdd832003-07-14 16:52:07 +00008921 case $lt_echo in
8922 *'\$0 --fallback-echo"')
8923 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8924 ;;
8925 esac
8926
8927cfgfile="${ofile}T"
8928 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8929 $rm -f "$cfgfile"
8930 { echo "$as_me:$LINENO: creating $ofile" >&5
8931echo "$as_me: creating $ofile" >&6;}
8932
8933 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008934#! $SHELL
8935
John Criswell47fdd832003-07-14 16:52:07 +00008936# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008937# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8938# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8939#
John Criswell47fdd832003-07-14 16:52:07 +00008940# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8941# Free Software Foundation, Inc.
8942#
8943# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008944# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8945#
8946# This program is free software; you can redistribute it and/or modify
8947# it under the terms of the GNU General Public License as published by
8948# the Free Software Foundation; either version 2 of the License, or
8949# (at your option) any later version.
8950#
8951# This program is distributed in the hope that it will be useful, but
8952# WITHOUT ANY WARRANTY; without even the implied warranty of
8953# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8954# General Public License for more details.
8955#
8956# You should have received a copy of the GNU General Public License
8957# along with this program; if not, write to the Free Software
8958# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8959#
8960# As a special exception to the GNU General Public License, if you
8961# distribute this file as part of a program that contains a
8962# configuration script generated by Autoconf, you may include it under
8963# the same distribution terms that you use for the rest of that program.
8964
John Criswell47fdd832003-07-14 16:52:07 +00008965# A sed program that does not truncate output.
8966SED=$lt_SED
8967
John Criswell7a73b802003-06-30 21:59:07 +00008968# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008969Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008970
8971# The HP-UX ksh and POSIX shell print the target directory to stdout
8972# if CDPATH is set.
8973if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8974
John Criswell47fdd832003-07-14 16:52:07 +00008975# The names of the tagged configurations supported by this script.
8976available_tags=
8977
John Criswell7a73b802003-06-30 21:59:07 +00008978# ### BEGIN LIBTOOL CONFIG
8979
8980# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8981
8982# Shell to use when invoking shell scripts.
8983SHELL=$lt_SHELL
8984
8985# Whether or not to build shared libraries.
8986build_libtool_libs=$enable_shared
8987
8988# Whether or not to build static libraries.
8989build_old_libs=$enable_static
8990
8991# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008992build_libtool_need_lc=$archive_cmds_need_lc
8993
8994# Whether or not to disallow shared libs when runtime libs are static
8995allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008996
8997# Whether or not to optimize for fast installation.
8998fast_install=$enable_fast_install
8999
9000# The host system.
9001host_alias=$host_alias
9002host=$host
9003
9004# An echo program that does not interpret backslashes.
9005echo=$lt_echo
9006
9007# The archiver.
9008AR=$lt_AR
9009AR_FLAGS=$lt_AR_FLAGS
9010
John Criswell47fdd832003-07-14 16:52:07 +00009011# A C compiler.
9012LTCC=$lt_LTCC
9013
9014# A language-specific compiler.
9015CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009016
9017# Is the compiler the GNU C compiler?
9018with_gcc=$GCC
9019
John Criswell47fdd832003-07-14 16:52:07 +00009020# An ERE matcher.
9021EGREP=$lt_EGREP
9022
John Criswell7a73b802003-06-30 21:59:07 +00009023# The linker used to build libraries.
9024LD=$lt_LD
9025
9026# Whether we need hard or soft links.
9027LN_S=$lt_LN_S
9028
9029# A BSD-compatible nm program.
9030NM=$lt_NM
9031
9032# A symbol stripping program
9033STRIP=$STRIP
9034
9035# Used to examine libraries when file_magic_cmd begins "file"
9036MAGIC_CMD=$MAGIC_CMD
9037
9038# Used on cygwin: DLL creation program.
9039DLLTOOL="$DLLTOOL"
9040
9041# Used on cygwin: object dumper.
9042OBJDUMP="$OBJDUMP"
9043
9044# Used on cygwin: assembler.
9045AS="$AS"
9046
9047# The name of the directory that contains temporary libtool files.
9048objdir=$objdir
9049
9050# How to create reloadable object files.
9051reload_flag=$lt_reload_flag
9052reload_cmds=$lt_reload_cmds
9053
9054# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009055wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009056
9057# Object file suffix (normally "o").
9058objext="$ac_objext"
9059
9060# Old archive suffix (normally "a").
9061libext="$libext"
9062
John Criswell47fdd832003-07-14 16:52:07 +00009063# Shared library suffix (normally ".so").
9064shrext='$shrext'
9065
John Criswell7a73b802003-06-30 21:59:07 +00009066# Executable file suffix (normally "").
9067exeext="$exeext"
9068
9069# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009070pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009071pic_mode=$pic_mode
9072
John Criswell47fdd832003-07-14 16:52:07 +00009073# What is the maximum length of a command?
9074max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009075
John Criswell47fdd832003-07-14 16:52:07 +00009076# Does compiler simultaneously support -c and -o options?
9077compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009078
9079# Must we lock files when doing compilation ?
9080need_locks=$lt_need_locks
9081
9082# Do we need the lib prefix for modules?
9083need_lib_prefix=$need_lib_prefix
9084
9085# Do we need a version for libraries?
9086need_version=$need_version
9087
9088# Whether dlopen is supported.
9089dlopen_support=$enable_dlopen
9090
9091# Whether dlopen of programs is supported.
9092dlopen_self=$enable_dlopen_self
9093
9094# Whether dlopen of statically linked programs is supported.
9095dlopen_self_static=$enable_dlopen_self_static
9096
9097# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009098link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009099
9100# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009101no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009102
9103# Compiler flag to allow reflexive dlopens.
9104export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9105
9106# Compiler flag to generate shared objects directly from archives.
9107whole_archive_flag_spec=$lt_whole_archive_flag_spec
9108
9109# Compiler flag to generate thread-safe objects.
9110thread_safe_flag_spec=$lt_thread_safe_flag_spec
9111
9112# Library versioning type.
9113version_type=$version_type
9114
9115# Format of library name prefix.
9116libname_spec=$lt_libname_spec
9117
9118# List of archive names. First name is the real one, the rest are links.
9119# The last name is the one that the linker finds with -lNAME.
9120library_names_spec=$lt_library_names_spec
9121
9122# The coded name of the library, if different from the real name.
9123soname_spec=$lt_soname_spec
9124
9125# Commands used to build and install an old-style archive.
9126RANLIB=$lt_RANLIB
9127old_archive_cmds=$lt_old_archive_cmds
9128old_postinstall_cmds=$lt_old_postinstall_cmds
9129old_postuninstall_cmds=$lt_old_postuninstall_cmds
9130
9131# Create an old-style archive from a shared archive.
9132old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9133
9134# Create a temporary old-style archive to link instead of a shared archive.
9135old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9136
9137# Commands used to build and install a shared archive.
9138archive_cmds=$lt_archive_cmds
9139archive_expsym_cmds=$lt_archive_expsym_cmds
9140postinstall_cmds=$lt_postinstall_cmds
9141postuninstall_cmds=$lt_postuninstall_cmds
9142
John Criswell47fdd832003-07-14 16:52:07 +00009143# Commands used to build a loadable module (assumed same as above if empty)
9144module_cmds=$lt_module_cmds
9145module_expsym_cmds=$lt_module_expsym_cmds
9146
John Criswell7a73b802003-06-30 21:59:07 +00009147# Commands to strip libraries.
9148old_striplib=$lt_old_striplib
9149striplib=$lt_striplib
9150
John Criswell47fdd832003-07-14 16:52:07 +00009151# Dependencies to place before the objects being linked to create a
9152# shared library.
9153predep_objects=$lt_predep_objects
9154
9155# Dependencies to place after the objects being linked to create a
9156# shared library.
9157postdep_objects=$lt_postdep_objects
9158
9159# Dependencies to place before the objects being linked to create a
9160# shared library.
9161predeps=$lt_predeps
9162
9163# Dependencies to place after the objects being linked to create a
9164# shared library.
9165postdeps=$lt_postdeps
9166
9167# The library search path used internally by the compiler when linking
9168# a shared library.
9169compiler_lib_search_path=$lt_compiler_lib_search_path
9170
John Criswell7a73b802003-06-30 21:59:07 +00009171# Method to check whether dependent libraries are shared objects.
9172deplibs_check_method=$lt_deplibs_check_method
9173
9174# Command to use when deplibs_check_method == file_magic.
9175file_magic_cmd=$lt_file_magic_cmd
9176
9177# Flag that allows shared libraries with undefined symbols to be built.
9178allow_undefined_flag=$lt_allow_undefined_flag
9179
9180# Flag that forces no undefined symbols.
9181no_undefined_flag=$lt_no_undefined_flag
9182
9183# Commands used to finish a libtool library installation in a directory.
9184finish_cmds=$lt_finish_cmds
9185
9186# Same as above, but a single script fragment to be evaled but not shown.
9187finish_eval=$lt_finish_eval
9188
9189# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009190global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009191
9192# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009193global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009194
9195# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009196global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009197
9198# This is the shared library runtime path variable.
9199runpath_var=$runpath_var
9200
9201# This is the shared library path variable.
9202shlibpath_var=$shlibpath_var
9203
9204# Is shlibpath searched before the hard-coded library search path?
9205shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9206
9207# How to hardcode a shared library path into an executable.
9208hardcode_action=$hardcode_action
9209
9210# Whether we should hardcode library paths into libraries.
9211hardcode_into_libs=$hardcode_into_libs
9212
9213# Flag to hardcode \$libdir into a binary during linking.
9214# This must work even if \$libdir does not exist.
9215hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9216
John Criswell47fdd832003-07-14 16:52:07 +00009217# If ld is used when linking, flag to hardcode \$libdir into
9218# a binary during linking. This must work even if \$libdir does
9219# not exist.
9220hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9221
John Criswell7a73b802003-06-30 21:59:07 +00009222# Whether we need a single -rpath flag with a separated argument.
9223hardcode_libdir_separator=$lt_hardcode_libdir_separator
9224
John Criswell47fdd832003-07-14 16:52:07 +00009225# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009226# resulting binary.
9227hardcode_direct=$hardcode_direct
9228
9229# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9230# resulting binary.
9231hardcode_minus_L=$hardcode_minus_L
9232
9233# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9234# the resulting binary.
9235hardcode_shlibpath_var=$hardcode_shlibpath_var
9236
John Criswell47fdd832003-07-14 16:52:07 +00009237# Set to yes if building a shared library automatically hardcodes DIR into the library
9238# and all subsequent libraries and executables linked against it.
9239hardcode_automatic=$hardcode_automatic
9240
John Criswell7a73b802003-06-30 21:59:07 +00009241# Variables whose values should be saved in libtool wrapper scripts and
9242# restored at relink time.
9243variables_saved_for_relink="$variables_saved_for_relink"
9244
9245# Whether libtool must link a program against all its dependency libraries.
9246link_all_deplibs=$link_all_deplibs
9247
9248# Compile-time system search path for libraries
9249sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9250
9251# Run-time system search path for libraries
9252sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9253
9254# Fix the shell variable \$srcfile for the compiler.
9255fix_srcfile_path="$fix_srcfile_path"
9256
9257# Set to yes if exported symbols are required.
9258always_export_symbols=$always_export_symbols
9259
9260# The commands to list exported symbols.
9261export_symbols_cmds=$lt_export_symbols_cmds
9262
9263# The commands to extract the exported symbol list from a shared archive.
9264extract_expsyms_cmds=$lt_extract_expsyms_cmds
9265
9266# Symbols that should not be listed in the preloaded symbols.
9267exclude_expsyms=$lt_exclude_expsyms
9268
9269# Symbols that must always be exported.
9270include_expsyms=$lt_include_expsyms
9271
9272# ### END LIBTOOL CONFIG
9273
9274__EOF__
9275
John Criswell47fdd832003-07-14 16:52:07 +00009276
John Criswell7a73b802003-06-30 21:59:07 +00009277 case $host_os in
9278 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009279 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009280
9281# AIX sometimes has problems with the GCC collect2 program. For some
9282# reason, if we set the COLLECT_NAMES environment variable, the problems
9283# vanish in a puff of smoke.
9284if test "X${COLLECT_NAMES+set}" != Xset; then
9285 COLLECT_NAMES=
9286 export COLLECT_NAMES
9287fi
9288EOF
9289 ;;
9290 esac
9291
John Criswell7a73b802003-06-30 21:59:07 +00009292 # We use sed instead of cat because bash on DJGPP gets confused if
9293 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9294 # text mode, it properly converts lines to CR/LF. This bash problem
9295 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009296 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009297
John Criswell47fdd832003-07-14 16:52:07 +00009298 mv -f "$cfgfile" "$ofile" || \
9299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009300 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009301
9302else
9303 # If there is no Makefile yet, we rely on a make rule to execute
9304 # `config.status --recheck' to rerun these tests and create the
9305 # libtool script then.
9306 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009307fi
John Criswell7a73b802003-06-30 21:59:07 +00009308
9309
John Criswell47fdd832003-07-14 16:52:07 +00009310ac_ext=c
9311ac_cpp='$CPP $CPPFLAGS'
9312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314ac_compiler_gnu=$ac_cv_c_compiler_gnu
9315
9316CC="$lt_save_CC"
9317
9318
9319# Check whether --with-tags or --without-tags was given.
9320if test "${with_tags+set}" = set; then
9321 withval="$with_tags"
9322 tagnames="$withval"
9323fi;
9324
9325if test -f "$ltmain" && test -n "$tagnames"; then
9326 if test ! -f "${ofile}"; then
9327 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9328echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9329 fi
9330
9331 if test -z "$LTCC"; then
9332 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9333 if test -z "$LTCC"; then
9334 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9335echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9336 else
9337 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9338echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9339 fi
9340 fi
9341
9342 # Extract list of available tagged configurations in $ofile.
9343 # Note that this assumes the entire list is on one line.
9344 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9345
9346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9347 for tagname in $tagnames; do
9348 IFS="$lt_save_ifs"
9349 # Check whether tagname contains only valid characters
9350 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9351 "") ;;
9352 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9353echo "$as_me: error: invalid tag name: $tagname" >&2;}
9354 { (exit 1); exit 1; }; }
9355 ;;
9356 esac
9357
9358 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9359 then
9360 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9361echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9362 { (exit 1); exit 1; }; }
9363 fi
9364
9365 # Update the list of available tags.
9366 if test -n "$tagname"; then
9367 echo appending configuration tag \"$tagname\" to $ofile
9368
9369 case $tagname in
9370 CXX)
9371 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9372 ac_ext=cc
9373ac_cpp='$CXXCPP $CPPFLAGS'
9374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377
9378
9379
9380
9381archive_cmds_need_lc_CXX=no
9382allow_undefined_flag_CXX=
9383always_export_symbols_CXX=no
9384archive_expsym_cmds_CXX=
9385export_dynamic_flag_spec_CXX=
9386hardcode_direct_CXX=no
9387hardcode_libdir_flag_spec_CXX=
9388hardcode_libdir_flag_spec_ld_CXX=
9389hardcode_libdir_separator_CXX=
9390hardcode_minus_L_CXX=no
9391hardcode_automatic_CXX=no
9392module_cmds_CXX=
9393module_expsym_cmds_CXX=
9394link_all_deplibs_CXX=unknown
9395old_archive_cmds_CXX=$old_archive_cmds
9396no_undefined_flag_CXX=
9397whole_archive_flag_spec_CXX=
9398enable_shared_with_static_runtimes_CXX=no
9399
9400# Dependencies to place before and after the object being linked:
9401predep_objects_CXX=
9402postdep_objects_CXX=
9403predeps_CXX=
9404postdeps_CXX=
9405compiler_lib_search_path_CXX=
9406
9407# Source file extension for C++ test sources.
9408ac_ext=cc
9409
9410# Object file extension for compiled C++ test sources.
9411objext=o
9412objext_CXX=$objext
9413
9414# Code to be used in simple compile tests
9415lt_simple_compile_test_code="int some_variable = 0;\n"
9416
9417# Code to be used in simple link tests
9418lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9419
9420# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9421
9422# If no C compiler was specified, use CC.
9423LTCC=${LTCC-"$CC"}
9424
9425# Allow CC to be a program name with arguments.
9426compiler=$CC
9427
9428
9429# Allow CC to be a program name with arguments.
9430lt_save_CC=$CC
9431lt_save_LD=$LD
9432lt_save_GCC=$GCC
9433GCC=$GXX
9434lt_save_with_gnu_ld=$with_gnu_ld
9435lt_save_path_LD=$lt_cv_path_LD
9436if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9437 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9438else
9439 unset lt_cv_prog_gnu_ld
9440fi
9441if test -n "${lt_cv_path_LDCXX+set}"; then
9442 lt_cv_path_LD=$lt_cv_path_LDCXX
9443else
9444 unset lt_cv_path_LD
9445fi
9446test -z "${LDCXX+set}" || LD=$LDCXX
9447CC=${CXX-"c++"}
9448compiler=$CC
9449compiler_CXX=$CC
9450cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9451
9452# We don't want -fno-exception wen compiling C++ code, so set the
9453# no_builtin_flag separately
9454if test "$GXX" = yes; then
9455 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9456else
9457 lt_prog_compiler_no_builtin_flag_CXX=
9458fi
9459
9460if test "$GXX" = yes; then
9461 # Set up default GNU C++ configuration
9462
9463
9464# Check whether --with-gnu-ld or --without-gnu-ld was given.
9465if test "${with_gnu_ld+set}" = set; then
9466 withval="$with_gnu_ld"
9467 test "$withval" = no || with_gnu_ld=yes
9468else
9469 with_gnu_ld=no
9470fi;
9471ac_prog=ld
9472if test "$GCC" = yes; then
9473 # Check if gcc -print-prog-name=ld gives a path.
9474 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9475echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9476 case $host in
9477 *-*-mingw*)
9478 # gcc leaves a trailing carriage return which upsets mingw
9479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9480 *)
9481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9482 esac
9483 case $ac_prog in
9484 # Accept absolute paths.
9485 [\\/]* | ?:[\\/]*)
9486 re_direlt='/[^/][^/]*/\.\./'
9487 # Canonicalize the path of ld
9488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9491 done
9492 test -z "$LD" && LD="$ac_prog"
9493 ;;
9494 "")
9495 # If it fails, then pretend we aren't using GCC.
9496 ac_prog=ld
9497 ;;
9498 *)
9499 # If it is relative, then search for the first ld in PATH.
9500 with_gnu_ld=unknown
9501 ;;
9502 esac
9503elif test "$with_gnu_ld" = yes; then
9504 echo "$as_me:$LINENO: checking for GNU ld" >&5
9505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9506else
9507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9509fi
9510if test "${lt_cv_path_LD+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513 if test -z "$LD"; then
9514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515 for ac_dir in $PATH; do
9516 IFS="$lt_save_ifs"
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9519 lt_cv_path_LD="$ac_dir/$ac_prog"
9520 # Check to see if the program is GNU ld. I'd rather use --version,
9521 # but apparently some GNU ld's only accept -v.
9522 # Break only if it was the GNU/non-GNU ld that we prefer.
9523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9524 *GNU* | *'with BFD'*)
9525 test "$with_gnu_ld" != no && break
9526 ;;
9527 *)
9528 test "$with_gnu_ld" != yes && break
9529 ;;
9530 esac
9531 fi
9532 done
9533 IFS="$lt_save_ifs"
9534else
9535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9536fi
9537fi
9538
9539LD="$lt_cv_path_LD"
9540if test -n "$LD"; then
9541 echo "$as_me:$LINENO: result: $LD" >&5
9542echo "${ECHO_T}$LD" >&6
9543else
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
9546fi
9547test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9548echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9549 { (exit 1); exit 1; }; }
9550echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9551echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9552if test "${lt_cv_prog_gnu_ld+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9556case `"$LD" -v 2>&1 </dev/null` in
9557*GNU* | *'with BFD'*)
9558 lt_cv_prog_gnu_ld=yes
9559 ;;
9560*)
9561 lt_cv_prog_gnu_ld=no
9562 ;;
9563esac
9564fi
9565echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9566echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9567with_gnu_ld=$lt_cv_prog_gnu_ld
9568
9569
9570
9571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9572 # archiving commands below assume that GNU ld is being used.
9573 if test "$with_gnu_ld" = yes; then
9574 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 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'
9576
9577 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9579
9580 # If archive_cmds runs LD, not CC, wlarc should be empty
9581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9582 # investigate it a little bit more. (MM)
9583 wlarc='${wl}'
9584
9585 # ancient GNU ld didn't support --whole-archive et. al.
9586 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9587 grep 'no-whole-archive' > /dev/null; then
9588 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9589 else
9590 whole_archive_flag_spec_CXX=
9591 fi
9592 else
9593 with_gnu_ld=no
9594 wlarc=
9595
9596 # A generic and very simple default shared library creation
9597 # command for GNU C++ for the case where it uses the native
9598 # linker, instead of GNU ld. If possible, this setting should
9599 # overridden to take advantage of the native linker features on
9600 # the platform it is being used on.
9601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9602 fi
9603
9604 # Commands to make compiler produce verbose output that lists
9605 # what "hidden" libraries, object files and flags are used when
9606 # linking a shared library.
9607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9608
9609else
9610 GXX=no
9611 with_gnu_ld=no
9612 wlarc=
9613fi
9614
9615# PORTME: fill in a description of your system's C++ link characteristics
9616echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9618ld_shlibs_CXX=yes
9619case $host_os in
9620 aix3*)
9621 # FIXME: insert proper C++ library support
9622 ld_shlibs_CXX=no
9623 ;;
9624 aix4* | aix5*)
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9630 no_entry_flag=""
9631 else
9632 aix_use_runtimelinking=no
9633
9634 # Test if we are trying to use run time linking or normal
9635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636 # need to do runtime linking.
9637 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9638 for ld_flag in $LDFLAGS; do
9639 case $ld_flag in
9640 *-brtl*)
9641 aix_use_runtimelinking=yes
9642 break
9643 ;;
9644 esac
9645 done
9646 esac
9647
9648 exp_sym_flag='-bexport'
9649 no_entry_flag='-bnoentry'
9650 fi
9651
9652 # When large executables or shared objects are built, AIX ld can
9653 # have problems creating the table of contents. If linking a library
9654 # or program results in "error TOC overflow" add -mminimal-toc to
9655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657
9658 archive_cmds_CXX=''
9659 hardcode_direct_CXX=yes
9660 hardcode_libdir_separator_CXX=':'
9661 link_all_deplibs_CXX=yes
9662
9663 if test "$GXX" = yes; then
9664 case $host_os in aix4.012|aix4.012.*)
9665 # We only want to do this on AIX 4.2 and lower, the check
9666 # below for broken collect2 doesn't work under 4.3+
9667 collect2name=`${CC} -print-prog-name=collect2`
9668 if test -f "$collect2name" && \
9669 strings "$collect2name" | grep resolve_lib_name >/dev/null
9670 then
9671 # We have reworked collect2
9672 hardcode_direct_CXX=yes
9673 else
9674 # We have old collect2
9675 hardcode_direct_CXX=unsupported
9676 # It fails to find uninstalled libraries when the uninstalled
9677 # path is not listed in the libpath. Setting hardcode_minus_L
9678 # to unsupported forces relinking
9679 hardcode_minus_L_CXX=yes
9680 hardcode_libdir_flag_spec_CXX='-L$libdir'
9681 hardcode_libdir_separator_CXX=
9682 fi
9683 esac
9684 shared_flag='-shared'
9685 else
9686 # not using gcc
9687 if test "$host_cpu" = ia64; then
9688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9689 # chokes on -Wl,-G. The following line is correct:
9690 shared_flag='-G'
9691 else
9692 if test "$aix_use_runtimelinking" = yes; then
9693 shared_flag='${wl}-G'
9694 else
9695 shared_flag='${wl}-bM:SRE'
9696 fi
9697 fi
9698 fi
9699
9700 # It seems that -bexpall does not export symbols beginning with
9701 # underscore (_), so it is better to generate a list of symbols to export.
9702 always_export_symbols_CXX=yes
9703 if test "$aix_use_runtimelinking" = yes; then
9704 # Warning - without using the other runtime loading flags (-brtl),
9705 # -berok will link without error, but may produce a broken library.
9706 allow_undefined_flag_CXX='-berok'
9707 # Determine the default libpath from the value encoded in an empty executable.
9708 cat >conftest.$ac_ext <<_ACEOF
9709#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009710/* confdefs.h. */
9711_ACEOF
9712cat confdefs.h >>conftest.$ac_ext
9713cat >>conftest.$ac_ext <<_ACEOF
9714/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009715
John Criswell47fdd832003-07-14 16:52:07 +00009716int
9717main ()
9718{
9719
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext conftest$ac_exeext
9725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
9730 { ac_try='test -s conftest$ac_exeext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736
9737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9738}'`
9739# Check for a 64-bit object if we didn't find anything.
9740if 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; }
9741}'`; fi
9742else
9743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009744sed 's/^/| /' conftest.$ac_ext >&5
9745
John Criswell47fdd832003-07-14 16:52:07 +00009746fi
9747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9749
9750 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9751
9752 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"
9753 else
9754 if test "$host_cpu" = ia64; then
9755 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9756 allow_undefined_flag_CXX="-z nodefs"
9757 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"
9758 else
9759 # Determine the default libpath from the value encoded in an empty executable.
9760 cat >conftest.$ac_ext <<_ACEOF
9761#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009762/* confdefs.h. */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009767
John Criswell47fdd832003-07-14 16:52:07 +00009768int
9769main ()
9770{
9771
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
9777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788
9789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9790}'`
9791# Check for a 64-bit object if we didn't find anything.
9792if 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; }
9793}'`; fi
9794else
9795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009796sed 's/^/| /' conftest.$ac_ext >&5
9797
John Criswell47fdd832003-07-14 16:52:07 +00009798fi
9799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9800if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9801
9802 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9803 # Warning - without using the other run time loading flags,
9804 # -berok will link without error, but may produce a broken library.
9805 no_undefined_flag_CXX=' ${wl}-bernotok'
9806 allow_undefined_flag_CXX=' ${wl}-berok'
9807 # -bexpall does not export symbols beginning with underscore (_)
9808 always_export_symbols_CXX=yes
9809 # Exported symbols can be pulled into shared objects from archives
9810 whole_archive_flag_spec_CXX=' '
9811 archive_cmds_need_lc_CXX=yes
9812 # This is similar to how AIX traditionally builds it's shared libraries.
9813 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'
9814 fi
9815 fi
9816 ;;
9817 chorus*)
9818 case $cc_basename in
9819 *)
9820 # FIXME: insert proper C++ library support
9821 ld_shlibs_CXX=no
9822 ;;
9823 esac
9824 ;;
9825
9826 cygwin* | mingw* | pw32*)
9827 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9828 # as there is no search path for DLLs.
9829 hardcode_libdir_flag_spec_CXX='-L$libdir'
9830 allow_undefined_flag_CXX=unsupported
9831 always_export_symbols_CXX=no
9832 enable_shared_with_static_runtimes_CXX=yes
9833
9834 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9835 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'
9836 # If the export-symbols file already is a .def file (1st line
9837 # is EXPORTS), use it as is; otherwise, prepend...
9838 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9839 cp $export_symbols $output_objdir/$soname.def;
9840 else
9841 echo EXPORTS > $output_objdir/$soname.def;
9842 cat $export_symbols >> $output_objdir/$soname.def;
9843 fi~
9844 $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'
9845 else
9846 ld_shlibs_CXX=no
9847 fi
9848 ;;
9849
9850 darwin* | rhapsody*)
9851 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9852 archive_cmds_need_lc_CXX=no
9853 case "$host_os" in
9854 rhapsody* | darwin1.[012])
9855 allow_undefined_flag_CXX='-undefined suppress'
9856 ;;
9857 *) # Darwin 1.3 on
9858 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9859 ;;
9860 esac
9861 lt_int_apple_cc_single_mod=no
9862 output_verbose_link_cmd='echo'
9863 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9864 lt_int_apple_cc_single_mod=yes
9865 fi
9866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9867 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9868 else
9869 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'
9870 fi
9871 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9872
9873 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9874 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9875 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}'
9876 else
9877 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}'
9878 fi
9879 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}'
9880 hardcode_direct_CXX=no
9881 hardcode_automatic_CXX=yes
9882 hardcode_shlibpath_var_CXX=unsupported
9883 whole_archive_flag_spec_CXX='-all_load $convenience'
9884 link_all_deplibs_CXX=yes
9885 fi
9886 ;;
9887
9888 dgux*)
9889 case $cc_basename in
9890 ec++)
9891 # FIXME: insert proper C++ library support
9892 ld_shlibs_CXX=no
9893 ;;
9894 ghcx)
9895 # Green Hills C++ Compiler
9896 # FIXME: insert proper C++ library support
9897 ld_shlibs_CXX=no
9898 ;;
9899 *)
9900 # FIXME: insert proper C++ library support
9901 ld_shlibs_CXX=no
9902 ;;
9903 esac
9904 ;;
9905 freebsd12*)
9906 # C++ shared libraries reported to be fairly broken before switch to ELF
9907 ld_shlibs_CXX=no
9908 ;;
9909 freebsd-elf*)
9910 archive_cmds_need_lc_CXX=no
9911 ;;
9912 freebsd*)
9913 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9914 # conventions
9915 ld_shlibs_CXX=yes
9916 ;;
9917 gnu*)
9918 ;;
9919 hpux9*)
9920 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9921 hardcode_libdir_separator_CXX=:
9922 export_dynamic_flag_spec_CXX='${wl}-E'
9923 hardcode_direct_CXX=yes
9924 hardcode_minus_L_CXX=yes # Not in the search PATH,
9925 # but as the default
9926 # location of the library.
9927
9928 case $cc_basename in
9929 CC)
9930 # FIXME: insert proper C++ library support
9931 ld_shlibs_CXX=no
9932 ;;
9933 aCC)
9934 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'
9935 # Commands to make compiler produce verbose output that lists
9936 # what "hidden" libraries, object files and flags are used when
9937 # linking a shared library.
9938 #
9939 # There doesn't appear to be a way to prevent this compiler from
9940 # explicitly linking system object files so we need to strip them
9941 # from the output so that they don't get included in the library
9942 # dependencies.
9943 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'
9944 ;;
9945 *)
9946 if test "$GXX" = yes; then
9947 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'
9948 else
9949 # FIXME: insert proper C++ library support
9950 ld_shlibs_CXX=no
9951 fi
9952 ;;
9953 esac
9954 ;;
9955 hpux10*|hpux11*)
9956 if test $with_gnu_ld = no; then
9957 case "$host_cpu" in
9958 hppa*64*)
9959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9960 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9961 hardcode_libdir_separator_CXX=:
9962 ;;
9963 ia64*)
9964 hardcode_libdir_flag_spec_CXX='-L$libdir'
9965 ;;
9966 *)
9967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9968 hardcode_libdir_separator_CXX=:
9969 export_dynamic_flag_spec_CXX='${wl}-E'
9970 ;;
9971 esac
9972 fi
9973 case "$host_cpu" in
9974 hppa*64*)
9975 hardcode_direct_CXX=no
9976 hardcode_shlibpath_var_CXX=no
9977 ;;
9978 ia64*)
9979 hardcode_direct_CXX=no
9980 hardcode_shlibpath_var_CXX=no
9981 hardcode_minus_L_CXX=yes # Not in the search PATH,
9982 # but as the default
9983 # location of the library.
9984 ;;
9985 *)
9986 hardcode_direct_CXX=yes
9987 hardcode_minus_L_CXX=yes # Not in the search PATH,
9988 # but as the default
9989 # location of the library.
9990 ;;
9991 esac
9992
9993 case $cc_basename in
9994 CC)
9995 # FIXME: insert proper C++ library support
9996 ld_shlibs_CXX=no
9997 ;;
9998 aCC)
9999 case "$host_cpu" in
10000 hppa*64*|ia64*)
10001 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10002 ;;
10003 *)
10004 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10005 ;;
10006 esac
10007 # Commands to make compiler produce verbose output that lists
10008 # what "hidden" libraries, object files and flags are used when
10009 # linking a shared library.
10010 #
10011 # There doesn't appear to be a way to prevent this compiler from
10012 # explicitly linking system object files so we need to strip them
10013 # from the output so that they don't get included in the library
10014 # dependencies.
10015 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'
10016 ;;
10017 *)
10018 if test "$GXX" = yes; then
10019 if test $with_gnu_ld = no; then
10020 case "$host_cpu" in
10021 ia64*|hppa*64*)
10022 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10023 ;;
10024 *)
10025 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'
10026 ;;
10027 esac
10028 fi
10029 else
10030 # FIXME: insert proper C++ library support
10031 ld_shlibs_CXX=no
10032 fi
10033 ;;
10034 esac
10035 ;;
10036 irix5* | irix6*)
10037 case $cc_basename in
10038 CC)
10039 # SGI C++
10040 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'
10041
10042 # Archives containing C++ object files must be created using
10043 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10044 # necessary to make sure instantiated templates are included
10045 # in the archive.
10046 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10047 ;;
10048 *)
10049 if test "$GXX" = yes; then
10050 if test "$with_gnu_ld" = no; then
10051 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'
10052 else
10053 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'
10054 fi
10055 fi
10056 link_all_deplibs_CXX=yes
10057 ;;
10058 esac
10059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10060 hardcode_libdir_separator_CXX=:
10061 ;;
10062 linux*)
10063 case $cc_basename in
10064 KCC)
10065 # Kuck and Associates, Inc. (KAI) C++ Compiler
10066
10067 # KCC will only create a shared library if the output file
10068 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10069 # to its proper name (with version) after linking.
10070 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'
10071 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'
10072 # Commands to make compiler produce verbose output that lists
10073 # what "hidden" libraries, object files and flags are used when
10074 # linking a shared library.
10075 #
10076 # There doesn't appear to be a way to prevent this compiler from
10077 # explicitly linking system object files so we need to strip them
10078 # from the output so that they don't get included in the library
10079 # dependencies.
10080 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'
10081
10082 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10084
10085 # Archives containing C++ object files must be created using
10086 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10087 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10088 ;;
10089 icpc)
10090 # Intel C++
10091 with_gnu_ld=yes
10092 archive_cmds_need_lc_CXX=no
10093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 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'
10095 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10096 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10097 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10098 ;;
10099 cxx)
10100 # Compaq C++
10101 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 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'
10103
10104 runpath_var=LD_RUN_PATH
10105 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10106 hardcode_libdir_separator_CXX=:
10107
10108 # Commands to make compiler produce verbose output that lists
10109 # what "hidden" libraries, object files and flags are used when
10110 # linking a shared library.
10111 #
10112 # There doesn't appear to be a way to prevent this compiler from
10113 # explicitly linking system object files so we need to strip them
10114 # from the output so that they don't get included in the library
10115 # dependencies.
10116 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'
10117 ;;
10118 esac
10119 ;;
10120 lynxos*)
10121 # FIXME: insert proper C++ library support
10122 ld_shlibs_CXX=no
10123 ;;
10124 m88k*)
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128 mvs*)
10129 case $cc_basename in
10130 cxx)
10131 # FIXME: insert proper C++ library support
10132 ld_shlibs_CXX=no
10133 ;;
10134 *)
10135 # FIXME: insert proper C++ library support
10136 ld_shlibs_CXX=no
10137 ;;
10138 esac
10139 ;;
10140 netbsd*)
10141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10142 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10143 wlarc=
10144 hardcode_libdir_flag_spec_CXX='-R$libdir'
10145 hardcode_direct_CXX=yes
10146 hardcode_shlibpath_var_CXX=no
10147 fi
10148 # Workaround some broken pre-1.5 toolchains
10149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10150 ;;
10151 osf3*)
10152 case $cc_basename in
10153 KCC)
10154 # Kuck and Associates, Inc. (KAI) C++ Compiler
10155
10156 # KCC will only create a shared library if the output file
10157 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10158 # to its proper name (with version) after linking.
10159 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'
10160
10161 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10162 hardcode_libdir_separator_CXX=:
10163
10164 # Archives containing C++ object files must be created using
10165 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10166 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10167
10168 ;;
10169 RCC)
10170 # Rational C++ 2.4.1
10171 # FIXME: insert proper C++ library support
10172 ld_shlibs_CXX=no
10173 ;;
10174 cxx)
10175 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10176 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'
10177
10178 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10179 hardcode_libdir_separator_CXX=:
10180
10181 # Commands to make compiler produce verbose output that lists
10182 # what "hidden" libraries, object files and flags are used when
10183 # linking a shared library.
10184 #
10185 # There doesn't appear to be a way to prevent this compiler from
10186 # explicitly linking system object files so we need to strip them
10187 # from the output so that they don't get included in the library
10188 # dependencies.
10189 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'
10190 ;;
10191 *)
10192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10194 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'
10195
10196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10198
10199 # Commands to make compiler produce verbose output that lists
10200 # what "hidden" libraries, object files and flags are used when
10201 # linking a shared library.
10202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10203
10204 else
10205 # FIXME: insert proper C++ library support
10206 ld_shlibs_CXX=no
10207 fi
10208 ;;
10209 esac
10210 ;;
10211 osf4* | osf5*)
10212 case $cc_basename in
10213 KCC)
10214 # Kuck and Associates, Inc. (KAI) C++ Compiler
10215
10216 # KCC will only create a shared library if the output file
10217 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10218 # to its proper name (with version) after linking.
10219 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'
10220
10221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10222 hardcode_libdir_separator_CXX=:
10223
10224 # Archives containing C++ object files must be created using
10225 # the KAI C++ compiler.
10226 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10227 ;;
10228 RCC)
10229 # Rational C++ 2.4.1
10230 # FIXME: insert proper C++ library support
10231 ld_shlibs_CXX=no
10232 ;;
10233 cxx)
10234 allow_undefined_flag_CXX=' -expect_unresolved \*'
10235 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'
10236 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10237 echo "-hidden">> $lib.exp~
10238 $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~
10239 $rm $lib.exp'
10240
10241 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10242 hardcode_libdir_separator_CXX=:
10243
10244 # Commands to make compiler produce verbose output that lists
10245 # what "hidden" libraries, object files and flags are used when
10246 # linking a shared library.
10247 #
10248 # There doesn't appear to be a way to prevent this compiler from
10249 # explicitly linking system object files so we need to strip them
10250 # from the output so that they don't get included in the library
10251 # dependencies.
10252 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'
10253 ;;
10254 *)
10255 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10256 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10257 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'
10258
10259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10260 hardcode_libdir_separator_CXX=:
10261
10262 # Commands to make compiler produce verbose output that lists
10263 # what "hidden" libraries, object files and flags are used when
10264 # linking a shared library.
10265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10266
10267 else
10268 # FIXME: insert proper C++ library support
10269 ld_shlibs_CXX=no
10270 fi
10271 ;;
10272 esac
10273 ;;
10274 psos*)
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 ;;
10278 sco*)
10279 archive_cmds_need_lc_CXX=no
10280 case $cc_basename in
10281 CC)
10282 # FIXME: insert proper C++ library support
10283 ld_shlibs_CXX=no
10284 ;;
10285 *)
10286 # FIXME: insert proper C++ library support
10287 ld_shlibs_CXX=no
10288 ;;
10289 esac
10290 ;;
10291 sunos4*)
10292 case $cc_basename in
10293 CC)
10294 # Sun C++ 4.x
10295 # FIXME: insert proper C++ library support
10296 ld_shlibs_CXX=no
10297 ;;
10298 lcc)
10299 # Lucid
10300 # FIXME: insert proper C++ library support
10301 ld_shlibs_CXX=no
10302 ;;
10303 *)
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 ;;
10307 esac
10308 ;;
10309 solaris*)
10310 case $cc_basename in
10311 CC)
10312 # Sun C++ 4.2, 5.x and Centerline C++
10313 no_undefined_flag_CXX=' -zdefs'
10314 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10315 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10316 $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'
10317
10318 hardcode_libdir_flag_spec_CXX='-R$libdir'
10319 hardcode_shlibpath_var_CXX=no
10320 case $host_os in
10321 solaris2.0-5 | solaris2.0-5.*) ;;
10322 *)
10323 # The C++ compiler is used as linker so we must use $wl
10324 # flag to pass the commands to the underlying system
10325 # linker.
10326 # Supported since Solaris 2.6 (maybe 2.5.1?)
10327 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10328 ;;
10329 esac
10330 link_all_deplibs_CXX=yes
10331
10332 # Commands to make compiler produce verbose output that lists
10333 # what "hidden" libraries, object files and flags are used when
10334 # linking a shared library.
10335 #
10336 # There doesn't appear to be a way to prevent this compiler from
10337 # explicitly linking system object files so we need to strip them
10338 # from the output so that they don't get included in the library
10339 # dependencies.
10340 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'
10341
10342 # Archives containing C++ object files must be created using
10343 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10344 # necessary to make sure instantiated templates are included
10345 # in the archive.
10346 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10347 ;;
10348 gcx)
10349 # Green Hills C++ Compiler
10350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10351
10352 # The C++ compiler must be used to create the archive.
10353 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10354 ;;
10355 *)
10356 # GNU C++ compiler with Solaris linker
10357 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10358 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10359 if $CC --version | grep -v '^2\.7' > /dev/null; then
10360 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10361 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10362 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10363
10364 # Commands to make compiler produce verbose output that lists
10365 # what "hidden" libraries, object files and flags are used when
10366 # linking a shared library.
10367 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10368 else
10369 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10370 # platform.
10371 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10372 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10373 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10374
10375 # Commands to make compiler produce verbose output that lists
10376 # what "hidden" libraries, object files and flags are used when
10377 # linking a shared library.
10378 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10379 fi
10380
10381 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10382 fi
10383 ;;
10384 esac
10385 ;;
10386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10387 archive_cmds_need_lc_CXX=no
10388 ;;
10389 tandem*)
10390 case $cc_basename in
10391 NCC)
10392 # NonStop-UX NCC 3.20
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 *)
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10399 ;;
10400 esac
10401 ;;
10402 vxworks*)
10403 # FIXME: insert proper C++ library support
10404 ld_shlibs_CXX=no
10405 ;;
10406 *)
10407 # FIXME: insert proper C++ library support
10408 ld_shlibs_CXX=no
10409 ;;
10410esac
10411echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10412echo "${ECHO_T}$ld_shlibs_CXX" >&6
10413test "$ld_shlibs_CXX" = no && can_build_shared=no
10414
10415GCC_CXX="$GXX"
10416LD_CXX="$LD"
10417
10418## CAVEAT EMPTOR:
10419## There is no encapsulation within the following macros, do not change
10420## the running order or otherwise move them around unless you know exactly
10421## what you are doing...
10422
10423cat > conftest.$ac_ext <<EOF
10424class Foo
10425{
10426public:
10427 Foo (void) { a = 0; }
10428private:
10429 int a;
10430};
10431EOF
10432
10433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; then
10438 # Parse the compiler output and extract the necessary
10439 # objects, libraries and library flags.
10440
10441 # Sentinel used to keep track of whether or not we are before
10442 # the conftest object file.
10443 pre_test_object_deps_done=no
10444
10445 # The `*' in the case matches for architectures that use `case' in
10446 # $output_verbose_cmd can trigger glob expansion during the loop
10447 # eval without this substitution.
10448 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10449
10450 for p in `eval $output_verbose_link_cmd`; do
10451 case $p in
10452
10453 -L* | -R* | -l*)
10454 # Some compilers place space between "-{L,R}" and the path.
10455 # Remove the space.
10456 if test $p = "-L" \
10457 || test $p = "-R"; then
10458 prev=$p
10459 continue
10460 else
10461 prev=
10462 fi
10463
10464 if test "$pre_test_object_deps_done" = no; then
10465 case $p in
10466 -L* | -R*)
10467 # Internal compiler library paths should come after those
10468 # provided the user. The postdeps already come after the
10469 # user supplied libs so there is no need to process them.
10470 if test -z "$compiler_lib_search_path_CXX"; then
10471 compiler_lib_search_path_CXX="${prev}${p}"
10472 else
10473 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10474 fi
10475 ;;
10476 # The "-l" case would never come before the object being
10477 # linked, so don't bother handling this case.
10478 esac
10479 else
10480 if test -z "$postdeps_CXX"; then
10481 postdeps_CXX="${prev}${p}"
10482 else
10483 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10484 fi
10485 fi
10486 ;;
10487
10488 *.$objext)
10489 # This assumes that the test object file only shows up
10490 # once in the compiler output.
10491 if test "$p" = "conftest.$objext"; then
10492 pre_test_object_deps_done=yes
10493 continue
10494 fi
10495
10496 if test "$pre_test_object_deps_done" = no; then
10497 if test -z "$predep_objects_CXX"; then
10498 predep_objects_CXX="$p"
10499 else
10500 predep_objects_CXX="$predep_objects_CXX $p"
10501 fi
10502 else
10503 if test -z "$postdep_objects_CXX"; then
10504 postdep_objects_CXX="$p"
10505 else
10506 postdep_objects_CXX="$postdep_objects_CXX $p"
10507 fi
10508 fi
10509 ;;
10510
10511 *) ;; # Ignore the rest.
10512
10513 esac
10514 done
10515
10516 # Clean up.
10517 rm -f a.out a.exe
10518else
10519 echo "libtool.m4: error: problem compiling CXX test program"
10520fi
10521
10522$rm -f confest.$objext
10523
10524case " $postdeps_CXX " in
10525*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10526esac
10527
10528lt_prog_compiler_wl_CXX=
10529lt_prog_compiler_pic_CXX=
10530lt_prog_compiler_static_CXX=
10531
10532echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10533echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10534
10535 # C++ specific cases for pic, static, wl, etc.
10536 if test "$GXX" = yes; then
10537 lt_prog_compiler_wl_CXX='-Wl,'
10538 lt_prog_compiler_static_CXX='-static'
10539
10540 case $host_os in
10541 aix*)
10542 # All AIX code is PIC.
10543 if test "$host_cpu" = ia64; then
10544 # AIX 5 now supports IA64 processor
10545 lt_prog_compiler_static_CXX='-Bstatic'
10546 fi
10547 ;;
10548 amigaos*)
10549 # FIXME: we need at least 68020 code to build shared libraries, but
10550 # adding the `-m68020' flag to GCC prevents building anything better,
10551 # like `-m68040'.
10552 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10553 ;;
10554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10555 # PIC is the default for these OSes.
10556 ;;
10557 mingw* | os2* | pw32*)
10558 # This hack is so that the source file can tell whether it is being
10559 # built for inclusion in a dll (and should export symbols for example).
10560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10561 ;;
10562 darwin* | rhapsody*)
10563 # PIC is the default on this platform
10564 # Common symbols not allowed in MH_DYLIB files
10565 lt_prog_compiler_pic_CXX='-fno-common'
10566 ;;
10567 *djgpp*)
10568 # DJGPP does not support shared libraries at all
10569 lt_prog_compiler_pic_CXX=
10570 ;;
10571 sysv4*MP*)
10572 if test -d /usr/nec; then
10573 lt_prog_compiler_pic_CXX=-Kconform_pic
10574 fi
10575 ;;
10576 hpux*)
10577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10578 # not for PA HP-UX.
10579 case "$host_cpu" in
10580 hppa*64*|ia64*)
10581 ;;
10582 *)
10583 lt_prog_compiler_pic_CXX='-fPIC'
10584 ;;
10585 esac
10586 ;;
10587 *)
10588 lt_prog_compiler_pic_CXX='-fPIC'
10589 ;;
10590 esac
10591 else
10592 case $host_os in
10593 aix4* | aix5*)
10594 # All AIX code is PIC.
10595 if test "$host_cpu" = ia64; then
10596 # AIX 5 now supports IA64 processor
10597 lt_prog_compiler_static_CXX='-Bstatic'
10598 else
10599 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10600 fi
10601 ;;
10602 chorus*)
10603 case $cc_basename in
10604 cxch68)
10605 # Green Hills C++ Compiler
10606 # _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"
10607 ;;
10608 esac
10609 ;;
10610 dgux*)
10611 case $cc_basename in
10612 ec++)
10613 lt_prog_compiler_pic_CXX='-KPIC'
10614 ;;
10615 ghcx)
10616 # Green Hills C++ Compiler
10617 lt_prog_compiler_pic_CXX='-pic'
10618 ;;
10619 *)
10620 ;;
10621 esac
10622 ;;
10623 freebsd*)
10624 # FreeBSD uses GNU C++
10625 ;;
10626 hpux9* | hpux10* | hpux11*)
10627 case $cc_basename in
10628 CC)
10629 lt_prog_compiler_wl_CXX='-Wl,'
10630 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10631 if test "$host_cpu" != ia64; then
10632 lt_prog_compiler_pic_CXX='+Z'
10633 fi
10634 ;;
10635 aCC)
10636 lt_prog_compiler_wl_CXX='-Wl,'
10637 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10638 case "$host_cpu" in
10639 hppa*64*|ia64*)
10640 # +Z the default
10641 ;;
10642 *)
10643 lt_prog_compiler_pic_CXX='+Z'
10644 ;;
10645 esac
10646 ;;
10647 *)
10648 ;;
10649 esac
10650 ;;
10651 irix5* | irix6* | nonstopux*)
10652 case $cc_basename in
10653 CC)
10654 lt_prog_compiler_wl_CXX='-Wl,'
10655 lt_prog_compiler_static_CXX='-non_shared'
10656 # CC pic flag -KPIC is the default.
10657 ;;
10658 *)
10659 ;;
10660 esac
10661 ;;
10662 linux*)
10663 case $cc_basename in
10664 KCC)
10665 # KAI C++ Compiler
10666 lt_prog_compiler_wl_CXX='--backend -Wl,'
10667 lt_prog_compiler_pic_CXX='-fPIC'
10668 ;;
10669 icpc)
10670 # Intel C++
10671 lt_prog_compiler_wl_CXX='-Wl,'
10672 lt_prog_compiler_pic_CXX='-KPIC'
10673 lt_prog_compiler_static_CXX='-static'
10674 ;;
10675 cxx)
10676 # Compaq C++
10677 # Make sure the PIC flag is empty. It appears that all Alpha
10678 # Linux and Compaq Tru64 Unix objects are PIC.
10679 lt_prog_compiler_pic_CXX=
10680 lt_prog_compiler_static_CXX='-non_shared'
10681 ;;
10682 *)
10683 ;;
10684 esac
10685 ;;
10686 lynxos*)
10687 ;;
10688 m88k*)
10689 ;;
10690 mvs*)
10691 case $cc_basename in
10692 cxx)
10693 lt_prog_compiler_pic_CXX='-W c,exportall'
10694 ;;
10695 *)
10696 ;;
10697 esac
10698 ;;
10699 netbsd*)
10700 ;;
10701 osf3* | osf4* | osf5*)
10702 case $cc_basename in
10703 KCC)
10704 lt_prog_compiler_wl_CXX='--backend -Wl,'
10705 ;;
10706 RCC)
10707 # Rational C++ 2.4.1
10708 lt_prog_compiler_pic_CXX='-pic'
10709 ;;
10710 cxx)
10711 # Digital/Compaq C++
10712 lt_prog_compiler_wl_CXX='-Wl,'
10713 # Make sure the PIC flag is empty. It appears that all Alpha
10714 # Linux and Compaq Tru64 Unix objects are PIC.
10715 lt_prog_compiler_pic_CXX=
10716 lt_prog_compiler_static_CXX='-non_shared'
10717 ;;
10718 *)
10719 ;;
10720 esac
10721 ;;
10722 psos*)
10723 ;;
10724 sco*)
10725 case $cc_basename in
10726 CC)
10727 lt_prog_compiler_pic_CXX='-fPIC'
10728 ;;
10729 *)
10730 ;;
10731 esac
10732 ;;
10733 solaris*)
10734 case $cc_basename in
10735 CC)
10736 # Sun C++ 4.2, 5.x and Centerline C++
10737 lt_prog_compiler_pic_CXX='-KPIC'
10738 lt_prog_compiler_static_CXX='-Bstatic'
10739 lt_prog_compiler_wl_CXX='-Qoption ld '
10740 ;;
10741 gcx)
10742 # Green Hills C++ Compiler
10743 lt_prog_compiler_pic_CXX='-PIC'
10744 ;;
10745 *)
10746 ;;
10747 esac
10748 ;;
10749 sunos4*)
10750 case $cc_basename in
10751 CC)
10752 # Sun C++ 4.x
10753 lt_prog_compiler_pic_CXX='-pic'
10754 lt_prog_compiler_static_CXX='-Bstatic'
10755 ;;
10756 lcc)
10757 # Lucid
10758 lt_prog_compiler_pic_CXX='-pic'
10759 ;;
10760 *)
10761 ;;
10762 esac
10763 ;;
10764 tandem*)
10765 case $cc_basename in
10766 NCC)
10767 # NonStop-UX NCC 3.20
10768 lt_prog_compiler_pic_CXX='-KPIC'
10769 ;;
10770 *)
10771 ;;
10772 esac
10773 ;;
10774 unixware*)
10775 ;;
10776 vxworks*)
10777 ;;
10778 *)
10779 lt_prog_compiler_can_build_shared_CXX=no
10780 ;;
10781 esac
10782 fi
10783
10784echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10785echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10786
10787#
10788# Check to make sure the PIC flag actually works.
10789#
10790if test -n "$lt_prog_compiler_pic_CXX"; then
10791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10792echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10793if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 lt_prog_compiler_pic_works_CXX=no
10797 ac_outfile=conftest.$ac_objext
10798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10799 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10800 # Insert the option either (1) after the last *FLAGS variable, or
10801 # (2) before a word containing "conftest.", or (3) at the end.
10802 # Note that $ac_compile itself does not contain backslashes and begins
10803 # with a dollar sign (not a hyphen), so the echo should work correctly.
10804 # The option is referenced via a variable to avoid confusing sed.
10805 lt_compile=`echo "$ac_compile" | $SED \
10806 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10808 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000010809 (eval echo "\"\$as_me:10809: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010810 (eval "$lt_compile" 2>conftest.err)
10811 ac_status=$?
10812 cat conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000010813 echo "$as_me:10813: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010814 if (exit $ac_status) && test -s "$ac_outfile"; then
10815 # The compiler can only warn and ignore the option if not recognized
10816 # So say no if there are warnings
10817 if test ! -s conftest.err; then
10818 lt_prog_compiler_pic_works_CXX=yes
10819 fi
10820 fi
10821 $rm conftest*
10822
10823fi
10824echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10825echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10826
10827if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10828 case $lt_prog_compiler_pic_CXX in
10829 "" | " "*) ;;
10830 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10831 esac
10832else
10833 lt_prog_compiler_pic_CXX=
10834 lt_prog_compiler_can_build_shared_CXX=no
10835fi
10836
10837fi
10838case "$host_os" in
10839 # For platforms which do not support PIC, -DPIC is meaningless:
10840 *djgpp*)
10841 lt_prog_compiler_pic_CXX=
10842 ;;
10843 *)
10844 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10845 ;;
10846esac
10847
10848echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10849echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10850if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 lt_cv_prog_compiler_c_o_CXX=no
10854 $rm -r conftest 2>/dev/null
10855 mkdir conftest
10856 cd conftest
10857 mkdir out
10858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10859
10860 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10861 # that will create temporary files in the current directory regardless of
10862 # the output directory. Thus, making CWD read-only will cause this test
10863 # to fail, enabling locking or at least warning the user not to do parallel
10864 # builds.
10865 chmod -w .
10866
10867 lt_compiler_flag="-o out/conftest2.$ac_objext"
10868 # Insert the option either (1) after the last *FLAGS variable, or
10869 # (2) before a word containing "conftest.", or (3) at the end.
10870 # Note that $ac_compile itself does not contain backslashes and begins
10871 # with a dollar sign (not a hyphen), so the echo should work correctly.
10872 lt_compile=`echo "$ac_compile" | $SED \
10873 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10875 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000010876 (eval echo "\"\$as_me:10876: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010877 (eval "$lt_compile" 2>out/conftest.err)
10878 ac_status=$?
10879 cat out/conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000010880 echo "$as_me:10880: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10882 then
10883 # The compiler can only warn and ignore the option if not recognized
10884 # So say no if there are warnings
10885 if test ! -s out/conftest.err; then
10886 lt_cv_prog_compiler_c_o_CXX=yes
10887 fi
10888 fi
10889 chmod u+w .
10890 $rm conftest* out/*
10891 rmdir out
10892 cd ..
10893 rmdir conftest
10894 $rm conftest*
10895
10896fi
10897echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10898echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10899
10900
10901hard_links="nottested"
10902if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10903 # do not overwrite the value of need_locks provided by the user
10904 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10905echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10906 hard_links=yes
10907 $rm conftest*
10908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10909 touch conftest.a
10910 ln conftest.a conftest.b 2>&5 || hard_links=no
10911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10912 echo "$as_me:$LINENO: result: $hard_links" >&5
10913echo "${ECHO_T}$hard_links" >&6
10914 if test "$hard_links" = no; then
10915 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10916echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10917 need_locks=warn
10918 fi
10919else
10920 need_locks=no
10921fi
10922
10923echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10924echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10925
10926 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10927 case $host_os in
10928 aix4* | aix5*)
10929 # If we're using GNU nm, then we don't want the "-C" option.
10930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10932 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'
10933 else
10934 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'
10935 fi
10936 ;;
10937 pw32*)
10938 export_symbols_cmds_CXX="$ltdll_cmds"
10939 ;;
10940 cygwin* | mingw*)
10941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10942 ;;
10943 *)
10944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945 ;;
10946 esac
10947
10948echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10949echo "${ECHO_T}$ld_shlibs_CXX" >&6
10950test "$ld_shlibs_CXX" = no && can_build_shared=no
10951
10952variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10953if test "$GCC" = yes; then
10954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10955fi
10956
10957#
10958# Do we need to explicitly link libc?
10959#
10960case "x$archive_cmds_need_lc_CXX" in
10961x|xyes)
10962 # Assume -lc should be added
10963 archive_cmds_need_lc_CXX=yes
10964
10965 if test "$enable_shared" = yes && test "$GCC" = yes; then
10966 case $archive_cmds_CXX in
10967 *'~'*)
10968 # FIXME: we may have to deal with multi-command sequences.
10969 ;;
10970 '$CC '*)
10971 # Test whether the compiler implicitly links with -lc since on some
10972 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10973 # to ld, don't add -lc before -lgcc.
10974 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10975echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10976 $rm conftest*
10977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10978
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } 2>conftest.err; then
10984 soname=conftest
10985 lib=conftest
10986 libobjs=conftest.$ac_objext
10987 deplibs=
10988 wl=$lt_prog_compiler_wl_CXX
10989 compiler_flags=-v
10990 linker_flags=-v
10991 verstring=
10992 output_objdir=.
10993 libname=conftest
10994 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10995 allow_undefined_flag_CXX=
10996 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10997 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }
11001 then
11002 archive_cmds_need_lc_CXX=no
11003 else
11004 archive_cmds_need_lc_CXX=yes
11005 fi
11006 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11007 else
11008 cat conftest.err 1>&5
11009 fi
11010 $rm conftest*
11011 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11012echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11013 ;;
11014 esac
11015 fi
11016 ;;
11017esac
11018
11019echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11020echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11021hardcode_action_CXX=
11022if test -n "$hardcode_libdir_flag_spec_CXX" || \
11023 test -n "$runpath_var CXX" || \
11024 test "X$hardcode_automatic_CXX"="Xyes" ; then
11025
11026 # We can hardcode non-existant directories.
11027 if test "$hardcode_direct_CXX" != no &&
11028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11029 # have to relink, otherwise we might link with an installed library
11030 # when we should be linking with a yet-to-be-installed one
11031 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11032 test "$hardcode_minus_L_CXX" != no; then
11033 # Linking always hardcodes the temporary library directory.
11034 hardcode_action_CXX=relink
11035 else
11036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11037 hardcode_action_CXX=immediate
11038 fi
11039else
11040 # We cannot hardcode anything, or else we can only hardcode existing
11041 # directories.
11042 hardcode_action_CXX=unsupported
11043fi
11044echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11045echo "${ECHO_T}$hardcode_action_CXX" >&6
11046
11047if test "$hardcode_action_CXX" = relink; then
11048 # Fast installation is not supported
11049 enable_fast_install=no
11050elif test "$shlibpath_overrides_runpath" = yes ||
11051 test "$enable_shared" = no; then
11052 # Fast installation is not necessary
11053 enable_fast_install=needless
11054fi
11055
11056striplib=
11057old_striplib=
11058echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11059echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11060if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11061 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11062 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11063 echo "$as_me:$LINENO: result: yes" >&5
11064echo "${ECHO_T}yes" >&6
11065else
11066# FIXME - insert some real tests, host_os isn't really good enough
11067 case $host_os in
11068 darwin*)
11069 if test -n "$STRIP" ; then
11070 striplib="$STRIP -x"
11071 echo "$as_me:$LINENO: result: yes" >&5
11072echo "${ECHO_T}yes" >&6
11073 else
11074 echo "$as_me:$LINENO: result: no" >&5
11075echo "${ECHO_T}no" >&6
11076fi
11077 ;;
11078 *)
11079 echo "$as_me:$LINENO: result: no" >&5
11080echo "${ECHO_T}no" >&6
11081 ;;
11082 esac
11083fi
11084
11085echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11086echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11087library_names_spec=
11088libname_spec='lib$name'
11089soname_spec=
11090shrext=".so"
11091postinstall_cmds=
11092postuninstall_cmds=
11093finish_cmds=
11094finish_eval=
11095shlibpath_var=
11096shlibpath_overrides_runpath=unknown
11097version_type=none
11098dynamic_linker="$host_os ld.so"
11099sys_lib_dlsearch_path_spec="/lib /usr/lib"
11100if test "$GCC" = yes; then
11101 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11102 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11103 # if the path contains ";" then we assume it to be the separator
11104 # otherwise default to the standard path separator (i.e. ":") - it is
11105 # assumed that no part of a normal pathname contains ";" but that should
11106 # okay in the real world where ";" in dirpaths is itself problematic.
11107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11108 else
11109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11110 fi
11111else
11112 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11113fi
11114need_lib_prefix=unknown
11115hardcode_into_libs=no
11116
11117# when you set need_version to no, make sure it does not cause -set_version
11118# flags to be left without arguments
11119need_version=unknown
11120
11121case $host_os in
11122aix3*)
11123 version_type=linux
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11125 shlibpath_var=LIBPATH
11126
11127 # AIX 3 has no versioning support, so we append a major version to the name.
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 ;;
11130
11131aix4* | aix5*)
11132 version_type=linux
11133 need_lib_prefix=no
11134 need_version=no
11135 hardcode_into_libs=yes
11136 if test "$host_cpu" = ia64; then
11137 # AIX 5 supports IA64
11138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 else
11141 # With GCC up to 2.95.x, collect2 would create an import file
11142 # for dependence libraries. The import file would start with
11143 # the line `#! .'. This would cause the generated library to
11144 # depend on `.', always an invalid library. This was fixed in
11145 # development snapshots of GCC prior to 3.0.
11146 case $host_os in
11147 aix4 | aix4.[01] | aix4.[01].*)
11148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11149 echo ' yes '
11150 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11151 :
11152 else
11153 can_build_shared=no
11154 fi
11155 ;;
11156 esac
11157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11158 # soname into executable. Probably we can add versioning support to
11159 # collect2, so additional links can be useful in future.
11160 if test "$aix_use_runtimelinking" = yes; then
11161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11162 # instead of lib<name>.a to let people know that these are not
11163 # typical AIX shared libraries.
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 else
11166 # We preserve .a as extension for shared libraries through AIX4.2
11167 # and later when we are not doing run time linking.
11168 library_names_spec='${libname}${release}.a $libname.a'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 fi
11171 shlibpath_var=LIBPATH
11172 fi
11173 ;;
11174
11175amigaos*)
11176 library_names_spec='$libname.ixlibrary $libname.a'
11177 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11178 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'
11179 ;;
11180
11181beos*)
11182 library_names_spec='${libname}${shared_ext}'
11183 dynamic_linker="$host_os ld.so"
11184 shlibpath_var=LIBRARY_PATH
11185 ;;
11186
11187bsdi4*)
11188 version_type=linux
11189 need_version=no
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11196 # the default ld.so.conf also contains /usr/contrib/lib and
11197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11198 # libtool to hard-code these into programs
11199 ;;
11200
11201cygwin* | mingw* | pw32*)
11202 version_type=windows
11203 shrext=".dll"
11204 need_version=no
11205 need_lib_prefix=no
11206
11207 case $GCC,$host_os in
11208 yes,cygwin* | yes,mingw* | yes,pw32*)
11209 library_names_spec='$libname.dll.a'
11210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11211 postinstall_cmds='base_file=`basename \${file}`~
11212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11213 dldir=$destdir/`dirname \$dlpath`~
11214 test -d \$dldir || mkdir -p \$dldir~
11215 $install_prog $dir/$dlname \$dldir/$dlname'
11216 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11217 dlpath=$dir/\$dldll~
11218 $rm \$dlpath'
11219 shlibpath_overrides_runpath=yes
11220
11221 case $host_os in
11222 cygwin*)
11223 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11224 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11225 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11226 ;;
11227 mingw*)
11228 # MinGW DLLs use traditional 'lib' prefix
11229 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11231 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11232 # It is most probably a Windows format PATH printed by
11233 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11234 # path with ; separators, and with drive letters. We can handle the
11235 # drive letters (cygwin fileutils understands them), so leave them,
11236 # especially as we might pass files found there to a mingw objdump,
11237 # which wouldn't understand a cygwinified path. Ahh.
11238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11239 else
11240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11241 fi
11242 ;;
11243 pw32*)
11244 # pw32 DLLs use 'pw' prefix rather than 'lib'
11245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11246 ;;
11247 esac
11248 ;;
11249
11250 *)
11251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11252 ;;
11253 esac
11254 dynamic_linker='Win32 ld.exe'
11255 # FIXME: first we should search . and the directory the executable is in
11256 shlibpath_var=PATH
11257 ;;
11258
11259darwin* | rhapsody*)
11260 dynamic_linker="$host_os dyld"
11261 version_type=darwin
11262 need_lib_prefix=no
11263 need_version=no
11264 # FIXME: Relying on posixy $() will cause problems for
11265 # cross-compilation, but unfortunately the echo tests do not
11266 # yet detect zsh echo's removal of \ escapes.
11267 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11268 soname_spec='${libname}${release}${major}$shared_ext'
11269 shlibpath_overrides_runpath=yes
11270 shlibpath_var=DYLD_LIBRARY_PATH
11271 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11272 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11273 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11274 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"`
11275 fi
11276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11277 ;;
11278
11279dgux*)
11280 version_type=linux
11281 need_lib_prefix=no
11282 need_version=no
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 ;;
11287
11288freebsd1*)
11289 dynamic_linker=no
11290 ;;
11291
11292freebsd*)
11293 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11294 version_type=freebsd-$objformat
11295 case $version_type in
11296 freebsd-elf*)
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298 need_version=no
11299 need_lib_prefix=no
11300 ;;
11301 freebsd-*)
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11303 need_version=yes
11304 ;;
11305 esac
11306 shlibpath_var=LD_LIBRARY_PATH
11307 case $host_os in
11308 freebsd2*)
11309 shlibpath_overrides_runpath=yes
11310 ;;
11311 freebsd3.01* | freebsdelf3.01*)
11312 shlibpath_overrides_runpath=yes
11313 hardcode_into_libs=yes
11314 ;;
11315 *) # from 3.2 on
11316 shlibpath_overrides_runpath=no
11317 hardcode_into_libs=yes
11318 ;;
11319 esac
11320 ;;
11321
11322gnu*)
11323 version_type=linux
11324 need_lib_prefix=no
11325 need_version=no
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11327 soname_spec='${libname}${release}${shared_ext}$major'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 hardcode_into_libs=yes
11330 ;;
11331
11332hpux9* | hpux10* | hpux11*)
11333 # Give a soname corresponding to the major version so that dld.sl refuses to
11334 # link against other versions.
11335 version_type=sunos
11336 need_lib_prefix=no
11337 need_version=no
11338 case "$host_cpu" in
11339 ia64*)
11340 shrext='.so'
11341 hardcode_into_libs=yes
11342 dynamic_linker="$host_os dld.so"
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 soname_spec='${libname}${release}${shared_ext}$major'
11347 if test "X$HPUX_IA64_MODE" = X32; then
11348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11349 else
11350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11351 fi
11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11353 ;;
11354 hppa*64*)
11355 shrext='.sl'
11356 hardcode_into_libs=yes
11357 dynamic_linker="$host_os dld.sl"
11358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364 ;;
11365 *)
11366 shrext='.sl'
11367 dynamic_linker="$host_os dld.sl"
11368 shlibpath_var=SHLIB_PATH
11369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 ;;
11373 esac
11374 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11375 postinstall_cmds='chmod 555 $lib'
11376 ;;
11377
11378irix5* | irix6* | nonstopux*)
11379 case $host_os in
11380 nonstopux*) version_type=nonstopux ;;
11381 *)
11382 if test "$lt_cv_prog_gnu_ld" = yes; then
11383 version_type=linux
11384 else
11385 version_type=irix
11386 fi ;;
11387 esac
11388 need_lib_prefix=no
11389 need_version=no
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11392 case $host_os in
11393 irix5* | nonstopux*)
11394 libsuff= shlibsuff=
11395 ;;
11396 *)
11397 case $LD in # libtool.m4 will add one of these switches to LD
11398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11399 libsuff= shlibsuff= libmagic=32-bit;;
11400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11401 libsuff=32 shlibsuff=N32 libmagic=N32;;
11402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11404 *) libsuff= shlibsuff= libmagic=never-match;;
11405 esac
11406 ;;
11407 esac
11408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11409 shlibpath_overrides_runpath=no
11410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11412 hardcode_into_libs=yes
11413 ;;
11414
11415# No shared lib support for Linux oldld, aout, or coff.
11416linux*oldld* | linux*aout* | linux*coff*)
11417 dynamic_linker=no
11418 ;;
11419
11420# This must be Linux ELF.
11421linux*)
11422 version_type=linux
11423 need_lib_prefix=no
11424 need_version=no
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 shlibpath_overrides_runpath=no
11430 # This implies no fast_install, which is unacceptable.
11431 # Some rework will be needed to allow for fast_install
11432 # before this can be enabled.
11433 hardcode_into_libs=yes
11434
11435 # We used to test for /lib/ld.so.1 and disable shared libraries on
11436 # powerpc, because MkLinux only supported shared libraries with the
11437 # GNU dynamic linker. Since this was broken with cross compilers,
11438 # most powerpc-linux boxes support dynamic linking these days and
11439 # people can always --disable-shared, the test was removed, and we
11440 # assume the GNU/Linux dynamic linker is in use.
11441 dynamic_linker='GNU/Linux ld.so'
11442 ;;
11443
11444netbsd*)
11445 version_type=sunos
11446 need_lib_prefix=no
11447 need_version=no
11448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451 dynamic_linker='NetBSD (a.out) ld.so'
11452 else
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 dynamic_linker='NetBSD ld.elf_so'
11456 fi
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11459 hardcode_into_libs=yes
11460 ;;
11461
11462newsos6)
11463 version_type=linux
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes
11467 ;;
11468
11469nto-qnx)
11470 version_type=linux
11471 need_lib_prefix=no
11472 need_version=no
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 ;;
11478
11479openbsd*)
11480 version_type=sunos
11481 need_lib_prefix=no
11482 need_version=no
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11487 case $host_os in
11488 openbsd2.[89] | openbsd2.[89].*)
11489 shlibpath_overrides_runpath=no
11490 ;;
11491 *)
11492 shlibpath_overrides_runpath=yes
11493 ;;
11494 esac
11495 else
11496 shlibpath_overrides_runpath=yes
11497 fi
11498 ;;
11499
11500os2*)
11501 libname_spec='$name'
11502 shrext=".dll"
11503 need_lib_prefix=no
11504 library_names_spec='$libname${shared_ext} $libname.a'
11505 dynamic_linker='OS/2 ld.exe'
11506 shlibpath_var=LIBPATH
11507 ;;
11508
11509osf3* | osf4* | osf5*)
11510 version_type=osf
11511 need_lib_prefix=no
11512 need_version=no
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11517 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11518 ;;
11519
11520sco3.2v5*)
11521 version_type=osf
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 shlibpath_var=LD_LIBRARY_PATH
11525 ;;
11526
11527solaris*)
11528 version_type=linux
11529 need_lib_prefix=no
11530 need_version=no
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 hardcode_into_libs=yes
11536 # ldd complains unless libraries are executable
11537 postinstall_cmds='chmod +x $lib'
11538 ;;
11539
11540sunos4*)
11541 version_type=sunos
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=yes
11546 if test "$with_gnu_ld" = yes; then
11547 need_lib_prefix=no
11548 fi
11549 need_version=yes
11550 ;;
11551
11552sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11553 version_type=linux
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 soname_spec='${libname}${release}${shared_ext}$major'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 case $host_vendor in
11558 sni)
11559 shlibpath_overrides_runpath=no
11560 need_lib_prefix=no
11561 export_dynamic_flag_spec='${wl}-Blargedynsym'
11562 runpath_var=LD_RUN_PATH
11563 ;;
11564 siemens)
11565 need_lib_prefix=no
11566 ;;
11567 motorola)
11568 need_lib_prefix=no
11569 need_version=no
11570 shlibpath_overrides_runpath=no
11571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11572 ;;
11573 esac
11574 ;;
11575
11576sysv4*MP*)
11577 if test -d /usr/nec ;then
11578 version_type=linux
11579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11580 soname_spec='$libname${shared_ext}.$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 fi
11583 ;;
11584
11585uts4*)
11586 version_type=linux
11587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11588 soname_spec='${libname}${release}${shared_ext}$major'
11589 shlibpath_var=LD_LIBRARY_PATH
11590 ;;
11591
11592*)
11593 dynamic_linker=no
11594 ;;
11595esac
11596echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11597echo "${ECHO_T}$dynamic_linker" >&6
11598test "$dynamic_linker" = no && can_build_shared=no
11599
11600if test "x$enable_dlopen" != xyes; then
11601 enable_dlopen=unknown
11602 enable_dlopen_self=unknown
11603 enable_dlopen_self_static=unknown
11604else
11605 lt_cv_dlopen=no
11606 lt_cv_dlopen_libs=
11607
11608 case $host_os in
11609 beos*)
11610 lt_cv_dlopen="load_add_on"
11611 lt_cv_dlopen_libs=
11612 lt_cv_dlopen_self=yes
11613 ;;
11614
11615 mingw* | pw32*)
11616 lt_cv_dlopen="LoadLibrary"
11617 lt_cv_dlopen_libs=
11618 ;;
11619
11620 cygwin*)
11621 lt_cv_dlopen="dlopen"
11622 lt_cv_dlopen_libs=
11623 ;;
11624
11625 darwin*)
11626 # if libdl is installed we need to link against it
11627 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11628echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11629if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 ac_check_lib_save_LIBS=$LIBS
11633LIBS="-ldl $LIBS"
11634cat >conftest.$ac_ext <<_ACEOF
11635#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011641
11642/* Override any gcc2 internal prototype to avoid an error. */
11643#ifdef __cplusplus
11644extern "C"
11645#endif
11646/* We use char because int might match the return type of a gcc2
11647 builtin and then its argument prototype would still apply. */
11648char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011649int
11650main ()
11651{
11652dlopen ();
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657rm -f conftest.$ac_objext conftest$ac_exeext
11658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
11663 { ac_try='test -s conftest$ac_exeext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_lib_dl_dlopen=yes
11670else
11671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011672sed 's/^/| /' conftest.$ac_ext >&5
11673
John Criswell47fdd832003-07-14 16:52:07 +000011674ac_cv_lib_dl_dlopen=no
11675fi
11676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11677LIBS=$ac_check_lib_save_LIBS
11678fi
11679echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11680echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11681if test $ac_cv_lib_dl_dlopen = yes; then
11682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11683else
11684
11685 lt_cv_dlopen="dyld"
11686 lt_cv_dlopen_libs=
11687 lt_cv_dlopen_self=yes
11688
11689fi
11690
11691 ;;
11692
11693 *)
11694 echo "$as_me:$LINENO: checking for shl_load" >&5
11695echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11696if test "${ac_cv_func_shl_load+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699 cat >conftest.$ac_ext <<_ACEOF
11700#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011706/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011707 which can conflict with char shl_load (); below.
11708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709 <limits.h> exists even on freestanding compilers. */
11710#ifdef __STDC__
11711# include <limits.h>
11712#else
11713# include <assert.h>
11714#endif
John Criswell47fdd832003-07-14 16:52:07 +000011715/* Override any gcc2 internal prototype to avoid an error. */
11716#ifdef __cplusplus
11717extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011718{
John Criswell47fdd832003-07-14 16:52:07 +000011719#endif
11720/* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011723/* The GNU C library defines this for functions which it implements
11724 to always fail with ENOSYS. Some functions are actually named
11725 something starting with __ and the normal name is an alias. */
11726#if defined (__stub_shl_load) || defined (__stub___shl_load)
11727choke me
11728#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011729char (*f) () = shl_load;
11730#endif
11731#ifdef __cplusplus
11732}
John Criswell47fdd832003-07-14 16:52:07 +000011733#endif
11734
John Criswell0c38eaf2003-09-10 15:17:25 +000011735int
11736main ()
11737{
11738return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011739 ;
11740 return 0;
11741}
11742_ACEOF
11743rm -f conftest.$ac_objext conftest$ac_exeext
11744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11745 (eval $ac_link) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -s conftest$ac_exeext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_cv_func_shl_load=yes
11756else
11757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011758sed 's/^/| /' conftest.$ac_ext >&5
11759
John Criswell47fdd832003-07-14 16:52:07 +000011760ac_cv_func_shl_load=no
11761fi
11762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11763fi
11764echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11765echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11766if test $ac_cv_func_shl_load = yes; then
11767 lt_cv_dlopen="shl_load"
11768else
11769 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11770echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11771if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
11774 ac_check_lib_save_LIBS=$LIBS
11775LIBS="-ldld $LIBS"
11776cat >conftest.$ac_ext <<_ACEOF
11777#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011783
11784/* Override any gcc2 internal prototype to avoid an error. */
11785#ifdef __cplusplus
11786extern "C"
11787#endif
11788/* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11790char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011791int
11792main ()
11793{
11794shl_load ();
11795 ;
11796 return 0;
11797}
11798_ACEOF
11799rm -f conftest.$ac_objext conftest$ac_exeext
11800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11801 (eval $ac_link) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -s conftest$ac_exeext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_lib_dld_shl_load=yes
11812else
11813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011814sed 's/^/| /' conftest.$ac_ext >&5
11815
John Criswell47fdd832003-07-14 16:52:07 +000011816ac_cv_lib_dld_shl_load=no
11817fi
11818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11819LIBS=$ac_check_lib_save_LIBS
11820fi
11821echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11822echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11823if test $ac_cv_lib_dld_shl_load = yes; then
11824 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11825else
11826 echo "$as_me:$LINENO: checking for dlopen" >&5
11827echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11828if test "${ac_cv_func_dlopen+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011833/* confdefs.h. */
11834_ACEOF
11835cat confdefs.h >>conftest.$ac_ext
11836cat >>conftest.$ac_ext <<_ACEOF
11837/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011838/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011839 which can conflict with char dlopen (); below.
11840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11841 <limits.h> exists even on freestanding compilers. */
11842#ifdef __STDC__
11843# include <limits.h>
11844#else
11845# include <assert.h>
11846#endif
John Criswell47fdd832003-07-14 16:52:07 +000011847/* Override any gcc2 internal prototype to avoid an error. */
11848#ifdef __cplusplus
11849extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011850{
John Criswell47fdd832003-07-14 16:52:07 +000011851#endif
11852/* We use char because int might match the return type of a gcc2
11853 builtin and then its argument prototype would still apply. */
11854char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011855/* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858#if defined (__stub_dlopen) || defined (__stub___dlopen)
11859choke me
11860#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011861char (*f) () = dlopen;
11862#endif
11863#ifdef __cplusplus
11864}
John Criswell47fdd832003-07-14 16:52:07 +000011865#endif
11866
John Criswell0c38eaf2003-09-10 15:17:25 +000011867int
11868main ()
11869{
11870return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011871 ;
11872 return 0;
11873}
11874_ACEOF
11875rm -f conftest.$ac_objext conftest$ac_exeext
11876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 ac_cv_func_dlopen=yes
11888else
11889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011890sed 's/^/| /' conftest.$ac_ext >&5
11891
John Criswell47fdd832003-07-14 16:52:07 +000011892ac_cv_func_dlopen=no
11893fi
11894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11895fi
11896echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11897echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11898if test $ac_cv_func_dlopen = yes; then
11899 lt_cv_dlopen="dlopen"
11900else
11901 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11902echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11903if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 ac_check_lib_save_LIBS=$LIBS
11907LIBS="-ldl $LIBS"
11908cat >conftest.$ac_ext <<_ACEOF
11909#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011915
11916/* Override any gcc2 internal prototype to avoid an error. */
11917#ifdef __cplusplus
11918extern "C"
11919#endif
11920/* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11922char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011923int
11924main ()
11925{
11926dlopen ();
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext conftest$ac_exeext
11932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 ac_cv_lib_dl_dlopen=yes
11944else
11945 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011946sed 's/^/| /' conftest.$ac_ext >&5
11947
John Criswell47fdd832003-07-14 16:52:07 +000011948ac_cv_lib_dl_dlopen=no
11949fi
11950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11951LIBS=$ac_check_lib_save_LIBS
11952fi
11953echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11955if test $ac_cv_lib_dl_dlopen = yes; then
11956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11957else
11958 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11959echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11960if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 ac_check_lib_save_LIBS=$LIBS
11964LIBS="-lsvld $LIBS"
11965cat >conftest.$ac_ext <<_ACEOF
11966#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011972
11973/* Override any gcc2 internal prototype to avoid an error. */
11974#ifdef __cplusplus
11975extern "C"
11976#endif
11977/* We use char because int might match the return type of a gcc2
11978 builtin and then its argument prototype would still apply. */
11979char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011980int
11981main ()
11982{
11983dlopen ();
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext conftest$ac_exeext
11989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_lib_svld_dlopen=yes
12001else
12002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012003sed 's/^/| /' conftest.$ac_ext >&5
12004
John Criswell47fdd832003-07-14 16:52:07 +000012005ac_cv_lib_svld_dlopen=no
12006fi
12007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12008LIBS=$ac_check_lib_save_LIBS
12009fi
12010echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12011echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12012if test $ac_cv_lib_svld_dlopen = yes; then
12013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12014else
12015 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12016echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12017if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 ac_check_lib_save_LIBS=$LIBS
12021LIBS="-ldld $LIBS"
12022cat >conftest.$ac_ext <<_ACEOF
12023#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012029
12030/* Override any gcc2 internal prototype to avoid an error. */
12031#ifdef __cplusplus
12032extern "C"
12033#endif
12034/* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12036char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012037int
12038main ()
12039{
12040dld_link ();
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_lib_dld_dld_link=yes
12058else
12059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012060sed 's/^/| /' conftest.$ac_ext >&5
12061
John Criswell47fdd832003-07-14 16:52:07 +000012062ac_cv_lib_dld_dld_link=no
12063fi
12064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12065LIBS=$ac_check_lib_save_LIBS
12066fi
12067echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12068echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12069if test $ac_cv_lib_dld_dld_link = yes; then
12070 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12071fi
12072
12073
12074fi
12075
12076
12077fi
12078
12079
12080fi
12081
12082
12083fi
12084
12085
12086fi
12087
12088 ;;
12089 esac
12090
12091 if test "x$lt_cv_dlopen" != xno; then
12092 enable_dlopen=yes
12093 else
12094 enable_dlopen=no
12095 fi
12096
12097 case $lt_cv_dlopen in
12098 dlopen)
12099 save_CPPFLAGS="$CPPFLAGS"
12100 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12101
12102 save_LDFLAGS="$LDFLAGS"
12103 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12104
12105 save_LIBS="$LIBS"
12106 LIBS="$lt_cv_dlopen_libs $LIBS"
12107
12108 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12109echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12110if test "${lt_cv_dlopen_self+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112else
12113 if test "$cross_compiling" = yes; then :
12114 lt_cv_dlopen_self=cross
12115else
12116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12117 lt_status=$lt_dlunknown
12118 cat > conftest.$ac_ext <<EOF
John Criswellf5b55652003-09-30 13:52:11 +000012119#line 12119 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012120#include "confdefs.h"
12121
12122#if HAVE_DLFCN_H
12123#include <dlfcn.h>
12124#endif
12125
12126#include <stdio.h>
12127
12128#ifdef RTLD_GLOBAL
12129# define LT_DLGLOBAL RTLD_GLOBAL
12130#else
12131# ifdef DL_GLOBAL
12132# define LT_DLGLOBAL DL_GLOBAL
12133# else
12134# define LT_DLGLOBAL 0
12135# endif
12136#endif
12137
12138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12139 find out it does not work in some platform. */
12140#ifndef LT_DLLAZY_OR_NOW
12141# ifdef RTLD_LAZY
12142# define LT_DLLAZY_OR_NOW RTLD_LAZY
12143# else
12144# ifdef DL_LAZY
12145# define LT_DLLAZY_OR_NOW DL_LAZY
12146# else
12147# ifdef RTLD_NOW
12148# define LT_DLLAZY_OR_NOW RTLD_NOW
12149# else
12150# ifdef DL_NOW
12151# define LT_DLLAZY_OR_NOW DL_NOW
12152# else
12153# define LT_DLLAZY_OR_NOW 0
12154# endif
12155# endif
12156# endif
12157# endif
12158#endif
12159
12160#ifdef __cplusplus
12161extern "C" void exit (int);
12162#endif
12163
12164void fnord() { int i=42;}
12165int main ()
12166{
12167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12168 int status = $lt_dlunknown;
12169
12170 if (self)
12171 {
12172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12173 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12174 /* dlclose (self); */
12175 }
12176
12177 exit (status);
12178}
12179EOF
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12185 (./conftest; exit; ) 2>/dev/null
12186 lt_status=$?
12187 case x$lt_status in
12188 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12189 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12190 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12191 esac
12192 else :
12193 # compilation failed
12194 lt_cv_dlopen_self=no
12195 fi
12196fi
12197rm -fr conftest*
12198
12199
12200fi
12201echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12202echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12203
12204 if test "x$lt_cv_dlopen_self" = xyes; then
12205 LDFLAGS="$LDFLAGS $link_static_flag"
12206 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12207echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12208if test "${lt_cv_dlopen_self_static+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211 if test "$cross_compiling" = yes; then :
12212 lt_cv_dlopen_self_static=cross
12213else
12214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12215 lt_status=$lt_dlunknown
12216 cat > conftest.$ac_ext <<EOF
John Criswellf5b55652003-09-30 13:52:11 +000012217#line 12217 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012218#include "confdefs.h"
12219
12220#if HAVE_DLFCN_H
12221#include <dlfcn.h>
12222#endif
12223
12224#include <stdio.h>
12225
12226#ifdef RTLD_GLOBAL
12227# define LT_DLGLOBAL RTLD_GLOBAL
12228#else
12229# ifdef DL_GLOBAL
12230# define LT_DLGLOBAL DL_GLOBAL
12231# else
12232# define LT_DLGLOBAL 0
12233# endif
12234#endif
12235
12236/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12237 find out it does not work in some platform. */
12238#ifndef LT_DLLAZY_OR_NOW
12239# ifdef RTLD_LAZY
12240# define LT_DLLAZY_OR_NOW RTLD_LAZY
12241# else
12242# ifdef DL_LAZY
12243# define LT_DLLAZY_OR_NOW DL_LAZY
12244# else
12245# ifdef RTLD_NOW
12246# define LT_DLLAZY_OR_NOW RTLD_NOW
12247# else
12248# ifdef DL_NOW
12249# define LT_DLLAZY_OR_NOW DL_NOW
12250# else
12251# define LT_DLLAZY_OR_NOW 0
12252# endif
12253# endif
12254# endif
12255# endif
12256#endif
12257
12258#ifdef __cplusplus
12259extern "C" void exit (int);
12260#endif
12261
12262void fnord() { int i=42;}
12263int main ()
12264{
12265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12266 int status = $lt_dlunknown;
12267
12268 if (self)
12269 {
12270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12271 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12272 /* dlclose (self); */
12273 }
12274
12275 exit (status);
12276}
12277EOF
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12283 (./conftest; exit; ) 2>/dev/null
12284 lt_status=$?
12285 case x$lt_status in
12286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12288 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12289 esac
12290 else :
12291 # compilation failed
12292 lt_cv_dlopen_self_static=no
12293 fi
12294fi
12295rm -fr conftest*
12296
12297
12298fi
12299echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12300echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12301 fi
12302
12303 CPPFLAGS="$save_CPPFLAGS"
12304 LDFLAGS="$save_LDFLAGS"
12305 LIBS="$save_LIBS"
12306 ;;
12307 esac
12308
12309 case $lt_cv_dlopen_self in
12310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12311 *) enable_dlopen_self=unknown ;;
12312 esac
12313
12314 case $lt_cv_dlopen_self_static in
12315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12316 *) enable_dlopen_self_static=unknown ;;
12317 esac
12318fi
12319
12320
12321# The else clause should only fire when bootstrapping the
12322# libtool distribution, otherwise you forgot to ship ltmain.sh
12323# with your package, and you will get complaints that there are
12324# no rules to generate ltmain.sh.
12325if test -f "$ltmain"; then
12326 # See if we are running on zsh, and set the options which allow our commands through
12327 # without removal of \ escapes.
12328 if test -n "${ZSH_VERSION+set}" ; then
12329 setopt NO_GLOB_SUBST
12330 fi
12331 # Now quote all the things that may contain metacharacters while being
12332 # careful not to overquote the AC_SUBSTed values. We take copies of the
12333 # variables and quote the copies for generation of the libtool script.
12334 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12335 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12336 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12337 deplibs_check_method reload_flag reload_cmds need_locks \
12338 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12339 lt_cv_sys_global_symbol_to_c_name_address \
12340 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12341 old_postinstall_cmds old_postuninstall_cmds \
12342 compiler_CXX \
12343 CC_CXX \
12344 LD_CXX \
12345 lt_prog_compiler_wl_CXX \
12346 lt_prog_compiler_pic_CXX \
12347 lt_prog_compiler_static_CXX \
12348 lt_prog_compiler_no_builtin_flag_CXX \
12349 export_dynamic_flag_spec_CXX \
12350 thread_safe_flag_spec_CXX \
12351 whole_archive_flag_spec_CXX \
12352 enable_shared_with_static_runtimes_CXX \
12353 old_archive_cmds_CXX \
12354 old_archive_from_new_cmds_CXX \
12355 predep_objects_CXX \
12356 postdep_objects_CXX \
12357 predeps_CXX \
12358 postdeps_CXX \
12359 compiler_lib_search_path_CXX \
12360 archive_cmds_CXX \
12361 archive_expsym_cmds_CXX \
12362 postinstall_cmds_CXX \
12363 postuninstall_cmds_CXX \
12364 old_archive_from_expsyms_cmds_CXX \
12365 allow_undefined_flag_CXX \
12366 no_undefined_flag_CXX \
12367 export_symbols_cmds_CXX \
12368 hardcode_libdir_flag_spec_CXX \
12369 hardcode_libdir_flag_spec_ld_CXX \
12370 hardcode_libdir_separator_CXX \
12371 hardcode_automatic_CXX \
12372 module_cmds_CXX \
12373 module_expsym_cmds_CXX \
12374 lt_cv_prog_compiler_c_o_CXX \
12375 exclude_expsyms_CXX \
12376 include_expsyms_CXX; do
12377
12378 case $var in
12379 old_archive_cmds_CXX | \
12380 old_archive_from_new_cmds_CXX | \
12381 archive_cmds_CXX | \
12382 archive_expsym_cmds_CXX | \
12383 module_cmds_CXX | \
12384 module_expsym_cmds_CXX | \
12385 old_archive_from_expsyms_cmds_CXX | \
12386 export_symbols_cmds_CXX | \
12387 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12388 postinstall_cmds | postuninstall_cmds | \
12389 old_postinstall_cmds | old_postuninstall_cmds | \
12390 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12391 # Double-quote double-evaled strings.
12392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12393 ;;
12394 *)
12395 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12396 ;;
12397 esac
12398 done
12399
12400 case $lt_echo in
12401 *'\$0 --fallback-echo"')
12402 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12403 ;;
12404 esac
12405
12406cfgfile="$ofile"
12407
12408 cat <<__EOF__ >> "$cfgfile"
12409# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12410
12411# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12412
12413# Shell to use when invoking shell scripts.
12414SHELL=$lt_SHELL
12415
12416# Whether or not to build shared libraries.
12417build_libtool_libs=$enable_shared
12418
12419# Whether or not to build static libraries.
12420build_old_libs=$enable_static
12421
12422# Whether or not to add -lc for building shared libraries.
12423build_libtool_need_lc=$archive_cmds_need_lc_CXX
12424
12425# Whether or not to disallow shared libs when runtime libs are static
12426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12427
12428# Whether or not to optimize for fast installation.
12429fast_install=$enable_fast_install
12430
12431# The host system.
12432host_alias=$host_alias
12433host=$host
12434
12435# An echo program that does not interpret backslashes.
12436echo=$lt_echo
12437
12438# The archiver.
12439AR=$lt_AR
12440AR_FLAGS=$lt_AR_FLAGS
12441
12442# A C compiler.
12443LTCC=$lt_LTCC
12444
12445# A language-specific compiler.
12446CC=$lt_compiler_CXX
12447
12448# Is the compiler the GNU C compiler?
12449with_gcc=$GCC_CXX
12450
12451# An ERE matcher.
12452EGREP=$lt_EGREP
12453
12454# The linker used to build libraries.
12455LD=$lt_LD_CXX
12456
12457# Whether we need hard or soft links.
12458LN_S=$lt_LN_S
12459
12460# A BSD-compatible nm program.
12461NM=$lt_NM
12462
12463# A symbol stripping program
12464STRIP=$STRIP
12465
12466# Used to examine libraries when file_magic_cmd begins "file"
12467MAGIC_CMD=$MAGIC_CMD
12468
12469# Used on cygwin: DLL creation program.
12470DLLTOOL="$DLLTOOL"
12471
12472# Used on cygwin: object dumper.
12473OBJDUMP="$OBJDUMP"
12474
12475# Used on cygwin: assembler.
12476AS="$AS"
12477
12478# The name of the directory that contains temporary libtool files.
12479objdir=$objdir
12480
12481# How to create reloadable object files.
12482reload_flag=$lt_reload_flag
12483reload_cmds=$lt_reload_cmds
12484
12485# How to pass a linker flag through the compiler.
12486wl=$lt_lt_prog_compiler_wl_CXX
12487
12488# Object file suffix (normally "o").
12489objext="$ac_objext"
12490
12491# Old archive suffix (normally "a").
12492libext="$libext"
12493
12494# Shared library suffix (normally ".so").
12495shrext='$shrext'
12496
12497# Executable file suffix (normally "").
12498exeext="$exeext"
12499
12500# Additional compiler flags for building library objects.
12501pic_flag=$lt_lt_prog_compiler_pic_CXX
12502pic_mode=$pic_mode
12503
12504# What is the maximum length of a command?
12505max_cmd_len=$lt_cv_sys_max_cmd_len
12506
12507# Does compiler simultaneously support -c and -o options?
12508compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12509
12510# Must we lock files when doing compilation ?
12511need_locks=$lt_need_locks
12512
12513# Do we need the lib prefix for modules?
12514need_lib_prefix=$need_lib_prefix
12515
12516# Do we need a version for libraries?
12517need_version=$need_version
12518
12519# Whether dlopen is supported.
12520dlopen_support=$enable_dlopen
12521
12522# Whether dlopen of programs is supported.
12523dlopen_self=$enable_dlopen_self
12524
12525# Whether dlopen of statically linked programs is supported.
12526dlopen_self_static=$enable_dlopen_self_static
12527
12528# Compiler flag to prevent dynamic linking.
12529link_static_flag=$lt_lt_prog_compiler_static_CXX
12530
12531# Compiler flag to turn off builtin functions.
12532no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12533
12534# Compiler flag to allow reflexive dlopens.
12535export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12536
12537# Compiler flag to generate shared objects directly from archives.
12538whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12539
12540# Compiler flag to generate thread-safe objects.
12541thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12542
12543# Library versioning type.
12544version_type=$version_type
12545
12546# Format of library name prefix.
12547libname_spec=$lt_libname_spec
12548
12549# List of archive names. First name is the real one, the rest are links.
12550# The last name is the one that the linker finds with -lNAME.
12551library_names_spec=$lt_library_names_spec
12552
12553# The coded name of the library, if different from the real name.
12554soname_spec=$lt_soname_spec
12555
12556# Commands used to build and install an old-style archive.
12557RANLIB=$lt_RANLIB
12558old_archive_cmds=$lt_old_archive_cmds_CXX
12559old_postinstall_cmds=$lt_old_postinstall_cmds
12560old_postuninstall_cmds=$lt_old_postuninstall_cmds
12561
12562# Create an old-style archive from a shared archive.
12563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12564
12565# Create a temporary old-style archive to link instead of a shared archive.
12566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12567
12568# Commands used to build and install a shared archive.
12569archive_cmds=$lt_archive_cmds_CXX
12570archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12571postinstall_cmds=$lt_postinstall_cmds
12572postuninstall_cmds=$lt_postuninstall_cmds
12573
12574# Commands used to build a loadable module (assumed same as above if empty)
12575module_cmds=$lt_module_cmds_CXX
12576module_expsym_cmds=$lt_module_expsym_cmds_CXX
12577
12578# Commands to strip libraries.
12579old_striplib=$lt_old_striplib
12580striplib=$lt_striplib
12581
12582# Dependencies to place before the objects being linked to create a
12583# shared library.
12584predep_objects=$lt_predep_objects_CXX
12585
12586# Dependencies to place after the objects being linked to create a
12587# shared library.
12588postdep_objects=$lt_postdep_objects_CXX
12589
12590# Dependencies to place before the objects being linked to create a
12591# shared library.
12592predeps=$lt_predeps_CXX
12593
12594# Dependencies to place after the objects being linked to create a
12595# shared library.
12596postdeps=$lt_postdeps_CXX
12597
12598# The library search path used internally by the compiler when linking
12599# a shared library.
12600compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12601
12602# Method to check whether dependent libraries are shared objects.
12603deplibs_check_method=$lt_deplibs_check_method
12604
12605# Command to use when deplibs_check_method == file_magic.
12606file_magic_cmd=$lt_file_magic_cmd
12607
12608# Flag that allows shared libraries with undefined symbols to be built.
12609allow_undefined_flag=$lt_allow_undefined_flag_CXX
12610
12611# Flag that forces no undefined symbols.
12612no_undefined_flag=$lt_no_undefined_flag_CXX
12613
12614# Commands used to finish a libtool library installation in a directory.
12615finish_cmds=$lt_finish_cmds
12616
12617# Same as above, but a single script fragment to be evaled but not shown.
12618finish_eval=$lt_finish_eval
12619
12620# Take the output of nm and produce a listing of raw symbols and C names.
12621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12622
12623# Transform the output of nm in a proper C declaration
12624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12625
12626# Transform the output of nm in a C name address pair
12627global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12628
12629# This is the shared library runtime path variable.
12630runpath_var=$runpath_var
12631
12632# This is the shared library path variable.
12633shlibpath_var=$shlibpath_var
12634
12635# Is shlibpath searched before the hard-coded library search path?
12636shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12637
12638# How to hardcode a shared library path into an executable.
12639hardcode_action=$hardcode_action_CXX
12640
12641# Whether we should hardcode library paths into libraries.
12642hardcode_into_libs=$hardcode_into_libs
12643
12644# Flag to hardcode \$libdir into a binary during linking.
12645# This must work even if \$libdir does not exist.
12646hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12647
12648# If ld is used when linking, flag to hardcode \$libdir into
12649# a binary during linking. This must work even if \$libdir does
12650# not exist.
12651hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12652
12653# Whether we need a single -rpath flag with a separated argument.
12654hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12655
12656# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12657# resulting binary.
12658hardcode_direct=$hardcode_direct_CXX
12659
12660# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12661# resulting binary.
12662hardcode_minus_L=$hardcode_minus_L_CXX
12663
12664# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12665# the resulting binary.
12666hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12667
12668# Set to yes if building a shared library automatically hardcodes DIR into the library
12669# and all subsequent libraries and executables linked against it.
12670hardcode_automatic=$hardcode_automatic_CXX
12671
12672# Variables whose values should be saved in libtool wrapper scripts and
12673# restored at relink time.
12674variables_saved_for_relink="$variables_saved_for_relink"
12675
12676# Whether libtool must link a program against all its dependency libraries.
12677link_all_deplibs=$link_all_deplibs_CXX
12678
12679# Compile-time system search path for libraries
12680sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12681
12682# Run-time system search path for libraries
12683sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12684
12685# Fix the shell variable \$srcfile for the compiler.
12686fix_srcfile_path="$fix_srcfile_path_CXX"
12687
12688# Set to yes if exported symbols are required.
12689always_export_symbols=$always_export_symbols_CXX
12690
12691# The commands to list exported symbols.
12692export_symbols_cmds=$lt_export_symbols_cmds_CXX
12693
12694# The commands to extract the exported symbol list from a shared archive.
12695extract_expsyms_cmds=$lt_extract_expsyms_cmds
12696
12697# Symbols that should not be listed in the preloaded symbols.
12698exclude_expsyms=$lt_exclude_expsyms_CXX
12699
12700# Symbols that must always be exported.
12701include_expsyms=$lt_include_expsyms_CXX
12702
12703# ### END LIBTOOL TAG CONFIG: $tagname
12704
12705__EOF__
12706
12707
12708else
12709 # If there is no Makefile yet, we rely on a make rule to execute
12710 # `config.status --recheck' to rerun these tests and create the
12711 # libtool script then.
12712 test -f Makefile && make "$ltmain"
12713fi
12714
12715
12716ac_ext=c
12717ac_cpp='$CPP $CPPFLAGS'
12718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721
12722CC=$lt_save_CC
12723LDCXX=$LD
12724LD=$lt_save_LD
12725GCC=$lt_save_GCC
12726with_gnu_ldcxx=$with_gnu_ld
12727with_gnu_ld=$lt_save_with_gnu_ld
12728lt_cv_path_LDCXX=$lt_cv_path_LD
12729lt_cv_path_LD=$lt_save_path_LD
12730lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12731lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12732
12733 else
12734 tagname=""
12735 fi
12736 ;;
12737
12738 F77)
12739 if test -n "$F77" && test "X$F77" != "Xno"; then
12740
12741ac_ext=f
12742ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12743ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12745
12746
12747archive_cmds_need_lc_F77=no
12748allow_undefined_flag_F77=
12749always_export_symbols_F77=no
12750archive_expsym_cmds_F77=
12751export_dynamic_flag_spec_F77=
12752hardcode_direct_F77=no
12753hardcode_libdir_flag_spec_F77=
12754hardcode_libdir_flag_spec_ld_F77=
12755hardcode_libdir_separator_F77=
12756hardcode_minus_L_F77=no
12757hardcode_automatic_F77=no
12758module_cmds_F77=
12759module_expsym_cmds_F77=
12760link_all_deplibs_F77=unknown
12761old_archive_cmds_F77=$old_archive_cmds
12762no_undefined_flag_F77=
12763whole_archive_flag_spec_F77=
12764enable_shared_with_static_runtimes_F77=no
12765
12766# Source file extension for f77 test sources.
12767ac_ext=f
12768
12769# Object file extension for compiled f77 test sources.
12770objext=o
12771objext_F77=$objext
12772
12773# Code to be used in simple compile tests
12774lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12775
12776# Code to be used in simple link tests
12777lt_simple_link_test_code=" program t\n end\n"
12778
12779# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12780
12781# If no C compiler was specified, use CC.
12782LTCC=${LTCC-"$CC"}
12783
12784# Allow CC to be a program name with arguments.
12785compiler=$CC
12786
12787
12788# Allow CC to be a program name with arguments.
12789lt_save_CC="$CC"
12790CC=${F77-"f77"}
12791compiler=$CC
12792compiler_F77=$CC
12793cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12794
12795echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12796echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12797echo "$as_me:$LINENO: result: $can_build_shared" >&5
12798echo "${ECHO_T}$can_build_shared" >&6
12799
12800echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12801echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12802test "$can_build_shared" = "no" && enable_shared=no
12803
12804# On AIX, shared libraries and static libraries use the same namespace, and
12805# are all built from PIC.
12806case "$host_os" in
12807aix3*)
12808 test "$enable_shared" = yes && enable_static=no
12809 if test -n "$RANLIB"; then
12810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12811 postinstall_cmds='$RANLIB $lib'
12812 fi
12813 ;;
12814aix4*)
12815 test "$enable_shared" = yes && enable_static=no
12816 ;;
12817esac
12818echo "$as_me:$LINENO: result: $enable_shared" >&5
12819echo "${ECHO_T}$enable_shared" >&6
12820
12821echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12822echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12823# Make sure either enable_shared or enable_static is yes.
12824test "$enable_shared" = yes || enable_static=yes
12825echo "$as_me:$LINENO: result: $enable_static" >&5
12826echo "${ECHO_T}$enable_static" >&6
12827
12828test "$ld_shlibs_F77" = no && can_build_shared=no
12829
12830GCC_F77="$G77"
12831LD_F77="$LD"
12832
12833lt_prog_compiler_wl_F77=
12834lt_prog_compiler_pic_F77=
12835lt_prog_compiler_static_F77=
12836
12837echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12838echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12839
12840 if test "$GCC" = yes; then
12841 lt_prog_compiler_wl_F77='-Wl,'
12842 lt_prog_compiler_static_F77='-static'
12843
12844 case $host_os in
12845 aix*)
12846 # All AIX code is PIC.
12847 if test "$host_cpu" = ia64; then
12848 # AIX 5 now supports IA64 processor
12849 lt_prog_compiler_static_F77='-Bstatic'
12850 fi
12851 ;;
12852
12853 amigaos*)
12854 # FIXME: we need at least 68020 code to build shared libraries, but
12855 # adding the `-m68020' flag to GCC prevents building anything better,
12856 # like `-m68040'.
12857 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12858 ;;
12859
12860 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12861 # PIC is the default for these OSes.
12862 ;;
12863
12864 mingw* | pw32* | os2*)
12865 # This hack is so that the source file can tell whether it is being
12866 # built for inclusion in a dll (and should export symbols for example).
12867 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12868 ;;
12869
12870 darwin* | rhapsody*)
12871 # PIC is the default on this platform
12872 # Common symbols not allowed in MH_DYLIB files
12873 lt_prog_compiler_pic_F77='-fno-common'
12874 ;;
12875
12876 msdosdjgpp*)
12877 # Just because we use GCC doesn't mean we suddenly get shared libraries
12878 # on systems that don't support them.
12879 lt_prog_compiler_can_build_shared_F77=no
12880 enable_shared=no
12881 ;;
12882
12883 sysv4*MP*)
12884 if test -d /usr/nec; then
12885 lt_prog_compiler_pic_F77=-Kconform_pic
12886 fi
12887 ;;
12888
12889 hpux*)
12890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12891 # not for PA HP-UX.
12892 case "$host_cpu" in
12893 hppa*64*|ia64*)
12894 # +Z the default
12895 ;;
12896 *)
12897 lt_prog_compiler_pic_F77='-fPIC'
12898 ;;
12899 esac
12900 ;;
12901
12902 *)
12903 lt_prog_compiler_pic_F77='-fPIC'
12904 ;;
12905 esac
12906 else
12907 # PORTME Check for flag to pass linker flags through the system compiler.
12908 case $host_os in
12909 aix*)
12910 lt_prog_compiler_wl_F77='-Wl,'
12911 if test "$host_cpu" = ia64; then
12912 # AIX 5 now supports IA64 processor
12913 lt_prog_compiler_static_F77='-Bstatic'
12914 else
12915 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12916 fi
12917 ;;
12918
12919 mingw* | pw32* | os2*)
12920 # This hack is so that the source file can tell whether it is being
12921 # built for inclusion in a dll (and should export symbols for example).
12922 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12923 ;;
12924
12925 hpux9* | hpux10* | hpux11*)
12926 lt_prog_compiler_wl_F77='-Wl,'
12927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12928 # not for PA HP-UX.
12929 case "$host_cpu" in
12930 hppa*64*|ia64*)
12931 # +Z the default
12932 ;;
12933 *)
12934 lt_prog_compiler_pic_F77='+Z'
12935 ;;
12936 esac
12937 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12938 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12939 ;;
12940
12941 irix5* | irix6* | nonstopux*)
12942 lt_prog_compiler_wl_F77='-Wl,'
12943 # PIC (with -KPIC) is the default.
12944 lt_prog_compiler_static_F77='-non_shared'
12945 ;;
12946
12947 newsos6)
12948 lt_prog_compiler_pic_F77='-KPIC'
12949 lt_prog_compiler_static_F77='-Bstatic'
12950 ;;
12951
12952 linux*)
12953 case $CC in
12954 icc|ecc)
12955 lt_prog_compiler_wl_F77='-Wl,'
12956 lt_prog_compiler_pic_F77='-KPIC'
12957 lt_prog_compiler_static_F77='-static'
12958 ;;
12959 ccc)
12960 lt_prog_compiler_wl_F77='-Wl,'
12961 # All Alpha code is PIC.
12962 lt_prog_compiler_static_F77='-non_shared'
12963 ;;
12964 esac
12965 ;;
12966
12967 osf3* | osf4* | osf5*)
12968 lt_prog_compiler_wl_F77='-Wl,'
12969 # All OSF/1 code is PIC.
12970 lt_prog_compiler_static_F77='-non_shared'
12971 ;;
12972
12973 sco3.2v5*)
12974 lt_prog_compiler_pic_F77='-Kpic'
12975 lt_prog_compiler_static_F77='-dn'
12976 ;;
12977
12978 solaris*)
12979 lt_prog_compiler_wl_F77='-Wl,'
12980 lt_prog_compiler_pic_F77='-KPIC'
12981 lt_prog_compiler_static_F77='-Bstatic'
12982 ;;
12983
12984 sunos4*)
12985 lt_prog_compiler_wl_F77='-Qoption ld '
12986 lt_prog_compiler_pic_F77='-PIC'
12987 lt_prog_compiler_static_F77='-Bstatic'
12988 ;;
12989
12990 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12991 lt_prog_compiler_wl_F77='-Wl,'
12992 lt_prog_compiler_pic_F77='-KPIC'
12993 lt_prog_compiler_static_F77='-Bstatic'
12994 ;;
12995
12996 sysv4*MP*)
12997 if test -d /usr/nec ;then
12998 lt_prog_compiler_pic_F77='-Kconform_pic'
12999 lt_prog_compiler_static_F77='-Bstatic'
13000 fi
13001 ;;
13002
13003 uts4*)
13004 lt_prog_compiler_pic_F77='-pic'
13005 lt_prog_compiler_static_F77='-Bstatic'
13006 ;;
13007
13008 *)
13009 lt_prog_compiler_can_build_shared_F77=no
13010 ;;
13011 esac
13012 fi
13013
13014echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13015echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13016
13017#
13018# Check to make sure the PIC flag actually works.
13019#
13020if test -n "$lt_prog_compiler_pic_F77"; then
13021 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13022echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13023if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026 lt_prog_compiler_pic_works_F77=no
13027 ac_outfile=conftest.$ac_objext
13028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13029 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13030 # Insert the option either (1) after the last *FLAGS variable, or
13031 # (2) before a word containing "conftest.", or (3) at the end.
13032 # Note that $ac_compile itself does not contain backslashes and begins
13033 # with a dollar sign (not a hyphen), so the echo should work correctly.
13034 # The option is referenced via a variable to avoid confusing sed.
13035 lt_compile=`echo "$ac_compile" | $SED \
13036 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13038 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000013039 (eval echo "\"\$as_me:13039: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013040 (eval "$lt_compile" 2>conftest.err)
13041 ac_status=$?
13042 cat conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000013043 echo "$as_me:13043: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013044 if (exit $ac_status) && test -s "$ac_outfile"; then
13045 # The compiler can only warn and ignore the option if not recognized
13046 # So say no if there are warnings
13047 if test ! -s conftest.err; then
13048 lt_prog_compiler_pic_works_F77=yes
13049 fi
13050 fi
13051 $rm conftest*
13052
13053fi
13054echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13055echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13056
13057if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13058 case $lt_prog_compiler_pic_F77 in
13059 "" | " "*) ;;
13060 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13061 esac
13062else
13063 lt_prog_compiler_pic_F77=
13064 lt_prog_compiler_can_build_shared_F77=no
13065fi
13066
13067fi
13068case "$host_os" in
13069 # For platforms which do not support PIC, -DPIC is meaningless:
13070 *djgpp*)
13071 lt_prog_compiler_pic_F77=
13072 ;;
13073 *)
13074 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13075 ;;
13076esac
13077
13078echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13079echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13080if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082else
13083 lt_cv_prog_compiler_c_o_F77=no
13084 $rm -r conftest 2>/dev/null
13085 mkdir conftest
13086 cd conftest
13087 mkdir out
13088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13089
13090 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13091 # that will create temporary files in the current directory regardless of
13092 # the output directory. Thus, making CWD read-only will cause this test
13093 # to fail, enabling locking or at least warning the user not to do parallel
13094 # builds.
13095 chmod -w .
13096
13097 lt_compiler_flag="-o out/conftest2.$ac_objext"
13098 # Insert the option either (1) after the last *FLAGS variable, or
13099 # (2) before a word containing "conftest.", or (3) at the end.
13100 # Note that $ac_compile itself does not contain backslashes and begins
13101 # with a dollar sign (not a hyphen), so the echo should work correctly.
13102 lt_compile=`echo "$ac_compile" | $SED \
13103 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13105 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000013106 (eval echo "\"\$as_me:13106: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013107 (eval "$lt_compile" 2>out/conftest.err)
13108 ac_status=$?
13109 cat out/conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000013110 echo "$as_me:13110: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13112 then
13113 # The compiler can only warn and ignore the option if not recognized
13114 # So say no if there are warnings
13115 if test ! -s out/conftest.err; then
13116 lt_cv_prog_compiler_c_o_F77=yes
13117 fi
13118 fi
13119 chmod u+w .
13120 $rm conftest* out/*
13121 rmdir out
13122 cd ..
13123 rmdir conftest
13124 $rm conftest*
13125
13126fi
13127echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13128echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13129
13130
13131hard_links="nottested"
13132if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13133 # do not overwrite the value of need_locks provided by the user
13134 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13135echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13136 hard_links=yes
13137 $rm conftest*
13138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13139 touch conftest.a
13140 ln conftest.a conftest.b 2>&5 || hard_links=no
13141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13142 echo "$as_me:$LINENO: result: $hard_links" >&5
13143echo "${ECHO_T}$hard_links" >&6
13144 if test "$hard_links" = no; then
13145 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13146echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13147 need_locks=warn
13148 fi
13149else
13150 need_locks=no
13151fi
13152
13153echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13154echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13155
13156 runpath_var=
13157 allow_undefined_flag_F77=
13158 enable_shared_with_static_runtimes_F77=no
13159 archive_cmds_F77=
13160 archive_expsym_cmds_F77=
13161 old_archive_From_new_cmds_F77=
13162 old_archive_from_expsyms_cmds_F77=
13163 export_dynamic_flag_spec_F77=
13164 whole_archive_flag_spec_F77=
13165 thread_safe_flag_spec_F77=
13166 hardcode_libdir_flag_spec_F77=
13167 hardcode_libdir_flag_spec_ld_F77=
13168 hardcode_libdir_separator_F77=
13169 hardcode_direct_F77=no
13170 hardcode_minus_L_F77=no
13171 hardcode_shlibpath_var_F77=unsupported
13172 link_all_deplibs_F77=unknown
13173 hardcode_automatic_F77=no
13174 module_cmds_F77=
13175 module_expsym_cmds_F77=
13176 always_export_symbols_F77=no
13177 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13178 # include_expsyms should be a list of space-separated symbols to be *always*
13179 # included in the symbol list
13180 include_expsyms_F77=
13181 # exclude_expsyms can be an extended regexp of symbols to exclude
13182 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13183 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13184 # as well as any symbol that contains `d'.
13185 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13186 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13187 # platforms (ab)use it in PIC code, but their linkers get confused if
13188 # the symbol is explicitly referenced. Since portable code cannot
13189 # rely on this symbol name, it's probably fine to never include it in
13190 # preloaded symbol tables.
13191 extract_expsyms_cmds=
13192
13193 case $host_os in
13194 cygwin* | mingw* | pw32*)
13195 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13196 # When not using gcc, we currently assume that we are using
13197 # Microsoft Visual C++.
13198 if test "$GCC" != yes; then
13199 with_gnu_ld=no
13200 fi
13201 ;;
13202 openbsd*)
13203 with_gnu_ld=no
13204 ;;
13205 esac
13206
13207 ld_shlibs_F77=yes
13208 if test "$with_gnu_ld" = yes; then
13209 # If archive_cmds runs LD, not CC, wlarc should be empty
13210 wlarc='${wl}'
13211
13212 # See if GNU ld supports shared libraries.
13213 case $host_os in
13214 aix3* | aix4* | aix5*)
13215 # On AIX/PPC, the GNU linker is very broken
13216 if test "$host_cpu" != ia64; then
13217 ld_shlibs_F77=no
13218 cat <<EOF 1>&2
13219
13220*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13221*** to be unable to reliably create shared libraries on AIX.
13222*** Therefore, libtool is disabling shared libraries support. If you
13223*** really care for shared libraries, you may want to modify your PATH
13224*** so that a non-GNU linker is found, and then restart.
13225
13226EOF
13227 fi
13228 ;;
13229
13230 amigaos*)
13231 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)'
13232 hardcode_libdir_flag_spec_F77='-L$libdir'
13233 hardcode_minus_L_F77=yes
13234
13235 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13236 # that the semantics of dynamic libraries on AmigaOS, at least up
13237 # to version 4, is to share data among multiple programs linked
13238 # with the same dynamic library. Since this doesn't match the
13239 # behavior of shared libraries on other platforms, we can't use
13240 # them.
13241 ld_shlibs_F77=no
13242 ;;
13243
13244 beos*)
13245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13246 allow_undefined_flag_F77=unsupported
13247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13248 # support --undefined. This deserves some investigation. FIXME
13249 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13250 else
13251 ld_shlibs_F77=no
13252 fi
13253 ;;
13254
13255 cygwin* | mingw* | pw32*)
13256 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13257 # as there is no search path for DLLs.
13258 hardcode_libdir_flag_spec_F77='-L$libdir'
13259 allow_undefined_flag_F77=unsupported
13260 always_export_symbols_F77=no
13261 enable_shared_with_static_runtimes_F77=yes
13262 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13263
13264 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13266 # If the export-symbols file already is a .def file (1st line
13267 # is EXPORTS), use it as is; otherwise, prepend...
13268 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13269 cp $export_symbols $output_objdir/$soname.def;
13270 else
13271 echo EXPORTS > $output_objdir/$soname.def;
13272 cat $export_symbols >> $output_objdir/$soname.def;
13273 fi~
13274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13275 else
13276 ld_shlibs=no
13277 fi
13278 ;;
13279
13280 netbsd*)
13281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13282 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13283 wlarc=
13284 else
13285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13287 fi
13288 ;;
13289
13290 solaris* | sysv5*)
13291 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13292 ld_shlibs_F77=no
13293 cat <<EOF 1>&2
13294
13295*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13296*** create shared libraries on Solaris systems. Therefore, libtool
13297*** is disabling shared libraries support. We urge you to upgrade GNU
13298*** binutils to release 2.9.1 or newer. Another option is to modify
13299*** your PATH or compiler configuration so that the native linker is
13300*** used, and then restart.
13301
13302EOF
13303 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13304 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13306 else
13307 ld_shlibs_F77=no
13308 fi
13309 ;;
13310
13311 sunos4*)
13312 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13313 wlarc=
13314 hardcode_direct_F77=yes
13315 hardcode_shlibpath_var_F77=no
13316 ;;
13317
13318 *)
13319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13320 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13321 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13322 else
13323 ld_shlibs_F77=no
13324 fi
13325 ;;
13326 esac
13327
13328 if test "$ld_shlibs_F77" = yes; then
13329 runpath_var=LD_RUN_PATH
13330 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13331 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13332 # ancient GNU ld didn't support --whole-archive et. al.
13333 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13334 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13335 else
13336 whole_archive_flag_spec_F77=
13337 fi
13338 fi
13339 else
13340 # PORTME fill in a description of your system's linker (not GNU ld)
13341 case $host_os in
13342 aix3*)
13343 allow_undefined_flag_F77=unsupported
13344 always_export_symbols_F77=yes
13345 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'
13346 # Note: this linker hardcodes the directories in LIBPATH if there
13347 # are no directories specified by -L.
13348 hardcode_minus_L_F77=yes
13349 if test "$GCC" = yes && test -z "$link_static_flag"; then
13350 # Neither direct hardcoding nor static linking is supported with a
13351 # broken collect2.
13352 hardcode_direct_F77=unsupported
13353 fi
13354 ;;
13355
13356 aix4* | aix5*)
13357 if test "$host_cpu" = ia64; then
13358 # On IA64, the linker does run time linking by default, so we don't
13359 # have to do anything special.
13360 aix_use_runtimelinking=no
13361 exp_sym_flag='-Bexport'
13362 no_entry_flag=""
13363 else
13364 # If we're using GNU nm, then we don't want the "-C" option.
13365 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13366 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13367 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'
13368 else
13369 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'
13370 fi
13371 aix_use_runtimelinking=no
13372
13373 # Test if we are trying to use run time linking or normal
13374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13375 # need to do runtime linking.
13376 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13377 for ld_flag in $LDFLAGS; do
13378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13379 aix_use_runtimelinking=yes
13380 break
13381 fi
13382 done
13383 esac
13384
13385 exp_sym_flag='-bexport'
13386 no_entry_flag='-bnoentry'
13387 fi
13388
13389 # When large executables or shared objects are built, AIX ld can
13390 # have problems creating the table of contents. If linking a library
13391 # or program results in "error TOC overflow" add -mminimal-toc to
13392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13394
13395 archive_cmds_F77=''
13396 hardcode_direct_F77=yes
13397 hardcode_libdir_separator_F77=':'
13398 link_all_deplibs_F77=yes
13399
13400 if test "$GCC" = yes; then
13401 case $host_os in aix4.012|aix4.012.*)
13402 # We only want to do this on AIX 4.2 and lower, the check
13403 # below for broken collect2 doesn't work under 4.3+
13404 collect2name=`${CC} -print-prog-name=collect2`
13405 if test -f "$collect2name" && \
13406 strings "$collect2name" | grep resolve_lib_name >/dev/null
13407 then
13408 # We have reworked collect2
13409 hardcode_direct_F77=yes
13410 else
13411 # We have old collect2
13412 hardcode_direct_F77=unsupported
13413 # It fails to find uninstalled libraries when the uninstalled
13414 # path is not listed in the libpath. Setting hardcode_minus_L
13415 # to unsupported forces relinking
13416 hardcode_minus_L_F77=yes
13417 hardcode_libdir_flag_spec_F77='-L$libdir'
13418 hardcode_libdir_separator_F77=
13419 fi
13420 esac
13421 shared_flag='-shared'
13422 else
13423 # not using gcc
13424 if test "$host_cpu" = ia64; then
13425 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13426 # chokes on -Wl,-G. The following line is correct:
13427 shared_flag='-G'
13428 else
13429 if test "$aix_use_runtimelinking" = yes; then
13430 shared_flag='${wl}-G'
13431 else
13432 shared_flag='${wl}-bM:SRE'
13433 fi
13434 fi
13435 fi
13436
13437 # It seems that -bexpall does not export symbols beginning with
13438 # underscore (_), so it is better to generate a list of symbols to export.
13439 always_export_symbols_F77=yes
13440 if test "$aix_use_runtimelinking" = yes; then
13441 # Warning - without using the other runtime loading flags (-brtl),
13442 # -berok will link without error, but may produce a broken library.
13443 allow_undefined_flag_F77='-berok'
13444 # Determine the default libpath from the value encoded in an empty executable.
13445 cat >conftest.$ac_ext <<_ACEOF
13446 program main
13447
13448 end
13449_ACEOF
13450rm -f conftest.$ac_objext conftest$ac_exeext
13451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13452 (eval $ac_link) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -s conftest$ac_exeext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462
13463aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13464}'`
13465# Check for a 64-bit object if we didn't find anything.
13466if 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; }
13467}'`; fi
13468else
13469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013470sed 's/^/| /' conftest.$ac_ext >&5
13471
John Criswell47fdd832003-07-14 16:52:07 +000013472fi
13473rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13475
13476 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13477 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"
13478 else
13479 if test "$host_cpu" = ia64; then
13480 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13481 allow_undefined_flag_F77="-z nodefs"
13482 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"
13483 else
13484 # Determine the default libpath from the value encoded in an empty executable.
13485 cat >conftest.$ac_ext <<_ACEOF
13486 program main
13487
13488 end
13489_ACEOF
13490rm -f conftest.$ac_objext conftest$ac_exeext
13491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492 (eval $ac_link) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -s conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502
13503aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13504}'`
13505# Check for a 64-bit object if we didn't find anything.
13506if 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; }
13507}'`; fi
13508else
13509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013510sed 's/^/| /' conftest.$ac_ext >&5
13511
John Criswell47fdd832003-07-14 16:52:07 +000013512fi
13513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13515
13516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13517 # Warning - without using the other run time loading flags,
13518 # -berok will link without error, but may produce a broken library.
13519 no_undefined_flag_F77=' ${wl}-bernotok'
13520 allow_undefined_flag_F77=' ${wl}-berok'
13521 # -bexpall does not export symbols beginning with underscore (_)
13522 always_export_symbols_F77=yes
13523 # Exported symbols can be pulled into shared objects from archives
13524 whole_archive_flag_spec_F77=' '
13525 archive_cmds_need_lc_F77=yes
13526 # This is similar to how AIX traditionally builds it's shared libraries.
13527 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'
13528 fi
13529 fi
13530 ;;
13531
13532 amigaos*)
13533 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)'
13534 hardcode_libdir_flag_spec_F77='-L$libdir'
13535 hardcode_minus_L_F77=yes
13536 # see comment about different semantics on the GNU ld section
13537 ld_shlibs_F77=no
13538 ;;
13539
13540 bsdi4*)
13541 export_dynamic_flag_spec_F77=-rdynamic
13542 ;;
13543
13544 cygwin* | mingw* | pw32*)
13545 # When not using gcc, we currently assume that we are using
13546 # Microsoft Visual C++.
13547 # hardcode_libdir_flag_spec is actually meaningless, as there is
13548 # no search path for DLLs.
13549 hardcode_libdir_flag_spec_F77=' '
13550 allow_undefined_flag_F77=unsupported
13551 # Tell ltmain to make .lib files, not .a files.
13552 libext=lib
13553 # Tell ltmain to make .dll files, not .so files.
13554 shrext=".dll"
13555 # FIXME: Setting linknames here is a bad hack.
13556 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13557 # The linker will automatically build a .lib file if we build a DLL.
13558 old_archive_From_new_cmds_F77='true'
13559 # FIXME: Should let the user specify the lib program.
13560 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13561 fix_srcfile_path='`cygpath -w "$srcfile"`'
13562 enable_shared_with_static_runtimes_F77=yes
13563 ;;
13564
13565 darwin* | rhapsody*)
13566 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13567 archive_cmds_need_lc_F77=no
13568 case "$host_os" in
13569 rhapsody* | darwin1.[012])
13570 allow_undefined_flag_F77='-undefined suppress'
13571 ;;
13572 *) # Darwin 1.3 on
13573 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13574 ;;
13575 esac
13576 # FIXME: Relying on posixy $() will cause problems for
13577 # cross-compilation, but unfortunately the echo tests do not
13578 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13579 # `"' quotes if we put them in here... so don't!
13580 lt_int_apple_cc_single_mod=no
13581 output_verbose_link_cmd='echo'
13582 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13583 lt_int_apple_cc_single_mod=yes
13584 fi
13585 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13586 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13587 else
13588 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'
13589 fi
13590 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13592 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13593 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}'
13594 else
13595 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}'
13596 fi
13597 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}'
13598 hardcode_direct_F77=no
13599 hardcode_automatic_F77=yes
13600 hardcode_shlibpath_var_F77=unsupported
13601 whole_archive_flag_spec_F77='-all_load $convenience'
13602 link_all_deplibs_F77=yes
13603 fi
13604 ;;
13605
13606 dgux*)
13607 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13608 hardcode_libdir_flag_spec_F77='-L$libdir'
13609 hardcode_shlibpath_var_F77=no
13610 ;;
13611
13612 freebsd1*)
13613 ld_shlibs_F77=no
13614 ;;
13615
13616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13617 # support. Future versions do this automatically, but an explicit c++rt0.o
13618 # does not break anything, and helps significantly (at the cost of a little
13619 # extra space).
13620 freebsd2.2*)
13621 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13622 hardcode_libdir_flag_spec_F77='-R$libdir'
13623 hardcode_direct_F77=yes
13624 hardcode_shlibpath_var_F77=no
13625 ;;
13626
13627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13628 freebsd2*)
13629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13630 hardcode_direct_F77=yes
13631 hardcode_minus_L_F77=yes
13632 hardcode_shlibpath_var_F77=no
13633 ;;
13634
13635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13636 freebsd*)
13637 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13638 hardcode_libdir_flag_spec_F77='-R$libdir'
13639 hardcode_direct_F77=yes
13640 hardcode_shlibpath_var_F77=no
13641 ;;
13642
13643 hpux9*)
13644 if test "$GCC" = yes; then
13645 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'
13646 else
13647 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'
13648 fi
13649 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13650 hardcode_libdir_separator_F77=:
13651 hardcode_direct_F77=yes
13652
13653 # hardcode_minus_L: Not really in the search PATH,
13654 # but as the default location of the library.
13655 hardcode_minus_L_F77=yes
13656 export_dynamic_flag_spec_F77='${wl}-E'
13657 ;;
13658
13659 hpux10* | hpux11*)
13660 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13661 case "$host_cpu" in
13662 hppa*64*|ia64*)
13663 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13664 ;;
13665 *)
13666 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13667 ;;
13668 esac
13669 else
13670 case "$host_cpu" in
13671 hppa*64*|ia64*)
13672 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13673 ;;
13674 *)
13675 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13676 ;;
13677 esac
13678 fi
13679 if test "$with_gnu_ld" = no; then
13680 case "$host_cpu" in
13681 hppa*64*)
13682 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13683 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13684 hardcode_libdir_separator_F77=:
13685 hardcode_direct_F77=no
13686 hardcode_shlibpath_var_F77=no
13687 ;;
13688 ia64*)
13689 hardcode_libdir_flag_spec_F77='-L$libdir'
13690 hardcode_direct_F77=no
13691 hardcode_shlibpath_var_F77=no
13692
13693 # hardcode_minus_L: Not really in the search PATH,
13694 # but as the default location of the library.
13695 hardcode_minus_L_F77=yes
13696 ;;
13697 *)
13698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13699 hardcode_libdir_separator_F77=:
13700 hardcode_direct_F77=yes
13701 export_dynamic_flag_spec_F77='${wl}-E'
13702
13703 # hardcode_minus_L: Not really in the search PATH,
13704 # but as the default location of the library.
13705 hardcode_minus_L_F77=yes
13706 ;;
13707 esac
13708 fi
13709 ;;
13710
13711 irix5* | irix6* | nonstopux*)
13712 if test "$GCC" = yes; then
13713 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'
13714 else
13715 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'
13716 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13717 fi
13718 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13719 hardcode_libdir_separator_F77=:
13720 link_all_deplibs_F77=yes
13721 ;;
13722
13723 netbsd*)
13724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13725 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13726 else
13727 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13728 fi
13729 hardcode_libdir_flag_spec_F77='-R$libdir'
13730 hardcode_direct_F77=yes
13731 hardcode_shlibpath_var_F77=no
13732 ;;
13733
13734 newsos6)
13735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13736 hardcode_direct_F77=yes
13737 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13738 hardcode_libdir_separator_F77=:
13739 hardcode_shlibpath_var_F77=no
13740 ;;
13741
13742 openbsd*)
13743 hardcode_direct_F77=yes
13744 hardcode_shlibpath_var_F77=no
13745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13746 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13747 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13748 export_dynamic_flag_spec_F77='${wl}-E'
13749 else
13750 case $host_os in
13751 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13752 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13753 hardcode_libdir_flag_spec_F77='-R$libdir'
13754 ;;
13755 *)
13756 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13757 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13758 ;;
13759 esac
13760 fi
13761 ;;
13762
13763 os2*)
13764 hardcode_libdir_flag_spec_F77='-L$libdir'
13765 hardcode_minus_L_F77=yes
13766 allow_undefined_flag_F77=unsupported
13767 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'
13768 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13769 ;;
13770
13771 osf3*)
13772 if test "$GCC" = yes; then
13773 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13774 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'
13775 else
13776 allow_undefined_flag_F77=' -expect_unresolved \*'
13777 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'
13778 fi
13779 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13780 hardcode_libdir_separator_F77=:
13781 ;;
13782
13783 osf4* | osf5*) # as osf3* with the addition of -msym flag
13784 if test "$GCC" = yes; then
13785 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13786 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'
13787 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13788 else
13789 allow_undefined_flag_F77=' -expect_unresolved \*'
13790 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'
13791 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~
13792 $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'
13793
13794 # Both c and cxx compiler support -rpath directly
13795 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13796 fi
13797 hardcode_libdir_separator_F77=:
13798 ;;
13799
13800 sco3.2v5*)
13801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13802 hardcode_shlibpath_var_F77=no
13803 export_dynamic_flag_spec_F77='${wl}-Bexport'
13804 runpath_var=LD_RUN_PATH
13805 hardcode_runpath_var=yes
13806 ;;
13807
13808 solaris*)
13809 no_undefined_flag_F77=' -z text'
13810 if test "$GCC" = yes; then
13811 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13812 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13813 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13814 else
13815 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13816 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13818 fi
13819 hardcode_libdir_flag_spec_F77='-R$libdir'
13820 hardcode_shlibpath_var_F77=no
13821 case $host_os in
13822 solaris2.[0-5] | solaris2.[0-5].*) ;;
13823 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13824 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13825 esac
13826 link_all_deplibs_F77=yes
13827 ;;
13828
13829 sunos4*)
13830 if test "x$host_vendor" = xsequent; then
13831 # Use $CC to link under sequent, because it throws in some extra .o
13832 # files that make .init and .fini sections work.
13833 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13834 else
13835 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13836 fi
13837 hardcode_libdir_flag_spec_F77='-L$libdir'
13838 hardcode_direct_F77=yes
13839 hardcode_minus_L_F77=yes
13840 hardcode_shlibpath_var_F77=no
13841 ;;
13842
13843 sysv4)
13844 case $host_vendor in
13845 sni)
13846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847 hardcode_direct_F77=yes # is this really true???
13848 ;;
13849 siemens)
13850 ## LD is ld it makes a PLAMLIB
13851 ## CC just makes a GrossModule.
13852 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13853 reload_cmds_F77='$CC -r -o $output$reload_objs'
13854 hardcode_direct_F77=no
13855 ;;
13856 motorola)
13857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13858 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13859 ;;
13860 esac
13861 runpath_var='LD_RUN_PATH'
13862 hardcode_shlibpath_var_F77=no
13863 ;;
13864
13865 sysv4.3*)
13866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_shlibpath_var_F77=no
13868 export_dynamic_flag_spec_F77='-Bexport'
13869 ;;
13870
13871 sysv4*MP*)
13872 if test -d /usr/nec; then
13873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13874 hardcode_shlibpath_var_F77=no
13875 runpath_var=LD_RUN_PATH
13876 hardcode_runpath_var=yes
13877 ld_shlibs_F77=yes
13878 fi
13879 ;;
13880
13881 sysv4.2uw2*)
13882 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_direct_F77=yes
13884 hardcode_minus_L_F77=no
13885 hardcode_shlibpath_var_F77=no
13886 hardcode_runpath_var=yes
13887 runpath_var=LD_RUN_PATH
13888 ;;
13889
13890 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13891 no_undefined_flag_F77='${wl}-z ${wl}text'
13892 if test "$GCC" = yes; then
13893 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13894 else
13895 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13896 fi
13897 runpath_var='LD_RUN_PATH'
13898 hardcode_shlibpath_var_F77=no
13899 ;;
13900
13901 sysv5*)
13902 no_undefined_flag_F77=' -z text'
13903 # $CC -shared without GNU ld will not create a library from C++
13904 # object files and a static libstdc++, better avoid it by now
13905 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13906 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13908 hardcode_libdir_flag_spec_F77=
13909 hardcode_shlibpath_var_F77=no
13910 runpath_var='LD_RUN_PATH'
13911 ;;
13912
13913 uts4*)
13914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915 hardcode_libdir_flag_spec_F77='-L$libdir'
13916 hardcode_shlibpath_var_F77=no
13917 ;;
13918
13919 *)
13920 ld_shlibs_F77=no
13921 ;;
13922 esac
13923 fi
13924
13925echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13926echo "${ECHO_T}$ld_shlibs_F77" >&6
13927test "$ld_shlibs_F77" = no && can_build_shared=no
13928
13929variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13930if test "$GCC" = yes; then
13931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13932fi
13933
13934#
13935# Do we need to explicitly link libc?
13936#
13937case "x$archive_cmds_need_lc_F77" in
13938x|xyes)
13939 # Assume -lc should be added
13940 archive_cmds_need_lc_F77=yes
13941
13942 if test "$enable_shared" = yes && test "$GCC" = yes; then
13943 case $archive_cmds_F77 in
13944 *'~'*)
13945 # FIXME: we may have to deal with multi-command sequences.
13946 ;;
13947 '$CC '*)
13948 # Test whether the compiler implicitly links with -lc since on some
13949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13950 # to ld, don't add -lc before -lgcc.
13951 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13952echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13953 $rm conftest*
13954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955
13956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957 (eval $ac_compile) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } 2>conftest.err; then
13961 soname=conftest
13962 lib=conftest
13963 libobjs=conftest.$ac_objext
13964 deplibs=
13965 wl=$lt_prog_compiler_wl_F77
13966 compiler_flags=-v
13967 linker_flags=-v
13968 verstring=
13969 output_objdir=.
13970 libname=conftest
13971 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13972 allow_undefined_flag_F77=
13973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13974 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }
13978 then
13979 archive_cmds_need_lc_F77=no
13980 else
13981 archive_cmds_need_lc_F77=yes
13982 fi
13983 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13984 else
13985 cat conftest.err 1>&5
13986 fi
13987 $rm conftest*
13988 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13989echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13990 ;;
13991 esac
13992 fi
13993 ;;
13994esac
13995
13996echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13997echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13998hardcode_action_F77=
13999if test -n "$hardcode_libdir_flag_spec_F77" || \
14000 test -n "$runpath_var F77" || \
14001 test "X$hardcode_automatic_F77"="Xyes" ; then
14002
14003 # We can hardcode non-existant directories.
14004 if test "$hardcode_direct_F77" != no &&
14005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14006 # have to relink, otherwise we might link with an installed library
14007 # when we should be linking with a yet-to-be-installed one
14008 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14009 test "$hardcode_minus_L_F77" != no; then
14010 # Linking always hardcodes the temporary library directory.
14011 hardcode_action_F77=relink
14012 else
14013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14014 hardcode_action_F77=immediate
14015 fi
14016else
14017 # We cannot hardcode anything, or else we can only hardcode existing
14018 # directories.
14019 hardcode_action_F77=unsupported
14020fi
14021echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14022echo "${ECHO_T}$hardcode_action_F77" >&6
14023
14024if test "$hardcode_action_F77" = relink; then
14025 # Fast installation is not supported
14026 enable_fast_install=no
14027elif test "$shlibpath_overrides_runpath" = yes ||
14028 test "$enable_shared" = no; then
14029 # Fast installation is not necessary
14030 enable_fast_install=needless
14031fi
14032
14033striplib=
14034old_striplib=
14035echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14036echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14037if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14038 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14039 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14040 echo "$as_me:$LINENO: result: yes" >&5
14041echo "${ECHO_T}yes" >&6
14042else
14043# FIXME - insert some real tests, host_os isn't really good enough
14044 case $host_os in
14045 darwin*)
14046 if test -n "$STRIP" ; then
14047 striplib="$STRIP -x"
14048 echo "$as_me:$LINENO: result: yes" >&5
14049echo "${ECHO_T}yes" >&6
14050 else
14051 echo "$as_me:$LINENO: result: no" >&5
14052echo "${ECHO_T}no" >&6
14053fi
14054 ;;
14055 *)
14056 echo "$as_me:$LINENO: result: no" >&5
14057echo "${ECHO_T}no" >&6
14058 ;;
14059 esac
14060fi
14061
14062echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14063echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14064library_names_spec=
14065libname_spec='lib$name'
14066soname_spec=
14067shrext=".so"
14068postinstall_cmds=
14069postuninstall_cmds=
14070finish_cmds=
14071finish_eval=
14072shlibpath_var=
14073shlibpath_overrides_runpath=unknown
14074version_type=none
14075dynamic_linker="$host_os ld.so"
14076sys_lib_dlsearch_path_spec="/lib /usr/lib"
14077if test "$GCC" = yes; then
14078 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14079 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14080 # if the path contains ";" then we assume it to be the separator
14081 # otherwise default to the standard path separator (i.e. ":") - it is
14082 # assumed that no part of a normal pathname contains ";" but that should
14083 # okay in the real world where ";" in dirpaths is itself problematic.
14084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14085 else
14086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14087 fi
14088else
14089 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14090fi
14091need_lib_prefix=unknown
14092hardcode_into_libs=no
14093
14094# when you set need_version to no, make sure it does not cause -set_version
14095# flags to be left without arguments
14096need_version=unknown
14097
14098case $host_os in
14099aix3*)
14100 version_type=linux
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14102 shlibpath_var=LIBPATH
14103
14104 # AIX 3 has no versioning support, so we append a major version to the name.
14105 soname_spec='${libname}${release}${shared_ext}$major'
14106 ;;
14107
14108aix4* | aix5*)
14109 version_type=linux
14110 need_lib_prefix=no
14111 need_version=no
14112 hardcode_into_libs=yes
14113 if test "$host_cpu" = ia64; then
14114 # AIX 5 supports IA64
14115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 else
14118 # With GCC up to 2.95.x, collect2 would create an import file
14119 # for dependence libraries. The import file would start with
14120 # the line `#! .'. This would cause the generated library to
14121 # depend on `.', always an invalid library. This was fixed in
14122 # development snapshots of GCC prior to 3.0.
14123 case $host_os in
14124 aix4 | aix4.[01] | aix4.[01].*)
14125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14126 echo ' yes '
14127 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14128 :
14129 else
14130 can_build_shared=no
14131 fi
14132 ;;
14133 esac
14134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14135 # soname into executable. Probably we can add versioning support to
14136 # collect2, so additional links can be useful in future.
14137 if test "$aix_use_runtimelinking" = yes; then
14138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14139 # instead of lib<name>.a to let people know that these are not
14140 # typical AIX shared libraries.
14141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14142 else
14143 # We preserve .a as extension for shared libraries through AIX4.2
14144 # and later when we are not doing run time linking.
14145 library_names_spec='${libname}${release}.a $libname.a'
14146 soname_spec='${libname}${release}${shared_ext}$major'
14147 fi
14148 shlibpath_var=LIBPATH
14149 fi
14150 ;;
14151
14152amigaos*)
14153 library_names_spec='$libname.ixlibrary $libname.a'
14154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14155 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'
14156 ;;
14157
14158beos*)
14159 library_names_spec='${libname}${shared_ext}'
14160 dynamic_linker="$host_os ld.so"
14161 shlibpath_var=LIBRARY_PATH
14162 ;;
14163
14164bsdi4*)
14165 version_type=linux
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14170 shlibpath_var=LD_LIBRARY_PATH
14171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14173 # the default ld.so.conf also contains /usr/contrib/lib and
14174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14175 # libtool to hard-code these into programs
14176 ;;
14177
14178cygwin* | mingw* | pw32*)
14179 version_type=windows
14180 shrext=".dll"
14181 need_version=no
14182 need_lib_prefix=no
14183
14184 case $GCC,$host_os in
14185 yes,cygwin* | yes,mingw* | yes,pw32*)
14186 library_names_spec='$libname.dll.a'
14187 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14188 postinstall_cmds='base_file=`basename \${file}`~
14189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14190 dldir=$destdir/`dirname \$dlpath`~
14191 test -d \$dldir || mkdir -p \$dldir~
14192 $install_prog $dir/$dlname \$dldir/$dlname'
14193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14194 dlpath=$dir/\$dldll~
14195 $rm \$dlpath'
14196 shlibpath_overrides_runpath=yes
14197
14198 case $host_os in
14199 cygwin*)
14200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14202 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14203 ;;
14204 mingw*)
14205 # MinGW DLLs use traditional 'lib' prefix
14206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14208 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14209 # It is most probably a Windows format PATH printed by
14210 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14211 # path with ; separators, and with drive letters. We can handle the
14212 # drive letters (cygwin fileutils understands them), so leave them,
14213 # especially as we might pass files found there to a mingw objdump,
14214 # which wouldn't understand a cygwinified path. Ahh.
14215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14216 else
14217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14218 fi
14219 ;;
14220 pw32*)
14221 # pw32 DLLs use 'pw' prefix rather than 'lib'
14222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14223 ;;
14224 esac
14225 ;;
14226
14227 *)
14228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14229 ;;
14230 esac
14231 dynamic_linker='Win32 ld.exe'
14232 # FIXME: first we should search . and the directory the executable is in
14233 shlibpath_var=PATH
14234 ;;
14235
14236darwin* | rhapsody*)
14237 dynamic_linker="$host_os dyld"
14238 version_type=darwin
14239 need_lib_prefix=no
14240 need_version=no
14241 # FIXME: Relying on posixy $() will cause problems for
14242 # cross-compilation, but unfortunately the echo tests do not
14243 # yet detect zsh echo's removal of \ escapes.
14244 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14245 soname_spec='${libname}${release}${major}$shared_ext'
14246 shlibpath_overrides_runpath=yes
14247 shlibpath_var=DYLD_LIBRARY_PATH
14248 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14249 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14250 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14251 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"`
14252 fi
14253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14254 ;;
14255
14256dgux*)
14257 version_type=linux
14258 need_lib_prefix=no
14259 need_version=no
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 ;;
14264
14265freebsd1*)
14266 dynamic_linker=no
14267 ;;
14268
14269freebsd*)
14270 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14271 version_type=freebsd-$objformat
14272 case $version_type in
14273 freebsd-elf*)
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14275 need_version=no
14276 need_lib_prefix=no
14277 ;;
14278 freebsd-*)
14279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14280 need_version=yes
14281 ;;
14282 esac
14283 shlibpath_var=LD_LIBRARY_PATH
14284 case $host_os in
14285 freebsd2*)
14286 shlibpath_overrides_runpath=yes
14287 ;;
14288 freebsd3.01* | freebsdelf3.01*)
14289 shlibpath_overrides_runpath=yes
14290 hardcode_into_libs=yes
14291 ;;
14292 *) # from 3.2 on
14293 shlibpath_overrides_runpath=no
14294 hardcode_into_libs=yes
14295 ;;
14296 esac
14297 ;;
14298
14299gnu*)
14300 version_type=linux
14301 need_lib_prefix=no
14302 need_version=no
14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14304 soname_spec='${libname}${release}${shared_ext}$major'
14305 shlibpath_var=LD_LIBRARY_PATH
14306 hardcode_into_libs=yes
14307 ;;
14308
14309hpux9* | hpux10* | hpux11*)
14310 # Give a soname corresponding to the major version so that dld.sl refuses to
14311 # link against other versions.
14312 version_type=sunos
14313 need_lib_prefix=no
14314 need_version=no
14315 case "$host_cpu" in
14316 ia64*)
14317 shrext='.so'
14318 hardcode_into_libs=yes
14319 dynamic_linker="$host_os dld.so"
14320 shlibpath_var=LD_LIBRARY_PATH
14321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 if test "X$HPUX_IA64_MODE" = X32; then
14325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14326 else
14327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14328 fi
14329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14330 ;;
14331 hppa*64*)
14332 shrext='.sl'
14333 hardcode_into_libs=yes
14334 dynamic_linker="$host_os dld.sl"
14335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14341 ;;
14342 *)
14343 shrext='.sl'
14344 dynamic_linker="$host_os dld.sl"
14345 shlibpath_var=SHLIB_PATH
14346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 soname_spec='${libname}${release}${shared_ext}$major'
14349 ;;
14350 esac
14351 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14352 postinstall_cmds='chmod 555 $lib'
14353 ;;
14354
14355irix5* | irix6* | nonstopux*)
14356 case $host_os in
14357 nonstopux*) version_type=nonstopux ;;
14358 *)
14359 if test "$lt_cv_prog_gnu_ld" = yes; then
14360 version_type=linux
14361 else
14362 version_type=irix
14363 fi ;;
14364 esac
14365 need_lib_prefix=no
14366 need_version=no
14367 soname_spec='${libname}${release}${shared_ext}$major'
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14369 case $host_os in
14370 irix5* | nonstopux*)
14371 libsuff= shlibsuff=
14372 ;;
14373 *)
14374 case $LD in # libtool.m4 will add one of these switches to LD
14375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14376 libsuff= shlibsuff= libmagic=32-bit;;
14377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14378 libsuff=32 shlibsuff=N32 libmagic=N32;;
14379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14380 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14381 *) libsuff= shlibsuff= libmagic=never-match;;
14382 esac
14383 ;;
14384 esac
14385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14386 shlibpath_overrides_runpath=no
14387 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14388 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14389 hardcode_into_libs=yes
14390 ;;
14391
14392# No shared lib support for Linux oldld, aout, or coff.
14393linux*oldld* | linux*aout* | linux*coff*)
14394 dynamic_linker=no
14395 ;;
14396
14397# This must be Linux ELF.
14398linux*)
14399 version_type=linux
14400 need_lib_prefix=no
14401 need_version=no
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 shlibpath_overrides_runpath=no
14407 # This implies no fast_install, which is unacceptable.
14408 # Some rework will be needed to allow for fast_install
14409 # before this can be enabled.
14410 hardcode_into_libs=yes
14411
14412 # We used to test for /lib/ld.so.1 and disable shared libraries on
14413 # powerpc, because MkLinux only supported shared libraries with the
14414 # GNU dynamic linker. Since this was broken with cross compilers,
14415 # most powerpc-linux boxes support dynamic linking these days and
14416 # people can always --disable-shared, the test was removed, and we
14417 # assume the GNU/Linux dynamic linker is in use.
14418 dynamic_linker='GNU/Linux ld.so'
14419 ;;
14420
14421netbsd*)
14422 version_type=sunos
14423 need_lib_prefix=no
14424 need_version=no
14425 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14428 dynamic_linker='NetBSD (a.out) ld.so'
14429 else
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 dynamic_linker='NetBSD ld.elf_so'
14433 fi
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=yes
14436 hardcode_into_libs=yes
14437 ;;
14438
14439newsos6)
14440 version_type=linux
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=yes
14444 ;;
14445
14446nto-qnx)
14447 version_type=linux
14448 need_lib_prefix=no
14449 need_version=no
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 soname_spec='${libname}${release}${shared_ext}$major'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=yes
14454 ;;
14455
14456openbsd*)
14457 version_type=sunos
14458 need_lib_prefix=no
14459 need_version=no
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14464 case $host_os in
14465 openbsd2.[89] | openbsd2.[89].*)
14466 shlibpath_overrides_runpath=no
14467 ;;
14468 *)
14469 shlibpath_overrides_runpath=yes
14470 ;;
14471 esac
14472 else
14473 shlibpath_overrides_runpath=yes
14474 fi
14475 ;;
14476
14477os2*)
14478 libname_spec='$name'
14479 shrext=".dll"
14480 need_lib_prefix=no
14481 library_names_spec='$libname${shared_ext} $libname.a'
14482 dynamic_linker='OS/2 ld.exe'
14483 shlibpath_var=LIBPATH
14484 ;;
14485
14486osf3* | osf4* | osf5*)
14487 version_type=osf
14488 need_lib_prefix=no
14489 need_version=no
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492 shlibpath_var=LD_LIBRARY_PATH
14493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14495 ;;
14496
14497sco3.2v5*)
14498 version_type=osf
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 ;;
14503
14504solaris*)
14505 version_type=linux
14506 need_lib_prefix=no
14507 need_version=no
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 soname_spec='${libname}${release}${shared_ext}$major'
14510 shlibpath_var=LD_LIBRARY_PATH
14511 shlibpath_overrides_runpath=yes
14512 hardcode_into_libs=yes
14513 # ldd complains unless libraries are executable
14514 postinstall_cmds='chmod +x $lib'
14515 ;;
14516
14517sunos4*)
14518 version_type=sunos
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 shlibpath_overrides_runpath=yes
14523 if test "$with_gnu_ld" = yes; then
14524 need_lib_prefix=no
14525 fi
14526 need_version=yes
14527 ;;
14528
14529sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14530 version_type=linux
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 case $host_vendor in
14535 sni)
14536 shlibpath_overrides_runpath=no
14537 need_lib_prefix=no
14538 export_dynamic_flag_spec='${wl}-Blargedynsym'
14539 runpath_var=LD_RUN_PATH
14540 ;;
14541 siemens)
14542 need_lib_prefix=no
14543 ;;
14544 motorola)
14545 need_lib_prefix=no
14546 need_version=no
14547 shlibpath_overrides_runpath=no
14548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14549 ;;
14550 esac
14551 ;;
14552
14553sysv4*MP*)
14554 if test -d /usr/nec ;then
14555 version_type=linux
14556 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14557 soname_spec='$libname${shared_ext}.$major'
14558 shlibpath_var=LD_LIBRARY_PATH
14559 fi
14560 ;;
14561
14562uts4*)
14563 version_type=linux
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 ;;
14568
14569*)
14570 dynamic_linker=no
14571 ;;
14572esac
14573echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14574echo "${ECHO_T}$dynamic_linker" >&6
14575test "$dynamic_linker" = no && can_build_shared=no
14576
14577
14578# The else clause should only fire when bootstrapping the
14579# libtool distribution, otherwise you forgot to ship ltmain.sh
14580# with your package, and you will get complaints that there are
14581# no rules to generate ltmain.sh.
14582if test -f "$ltmain"; then
14583 # See if we are running on zsh, and set the options which allow our commands through
14584 # without removal of \ escapes.
14585 if test -n "${ZSH_VERSION+set}" ; then
14586 setopt NO_GLOB_SUBST
14587 fi
14588 # Now quote all the things that may contain metacharacters while being
14589 # careful not to overquote the AC_SUBSTed values. We take copies of the
14590 # variables and quote the copies for generation of the libtool script.
14591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14594 deplibs_check_method reload_flag reload_cmds need_locks \
14595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14596 lt_cv_sys_global_symbol_to_c_name_address \
14597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14598 old_postinstall_cmds old_postuninstall_cmds \
14599 compiler_F77 \
14600 CC_F77 \
14601 LD_F77 \
14602 lt_prog_compiler_wl_F77 \
14603 lt_prog_compiler_pic_F77 \
14604 lt_prog_compiler_static_F77 \
14605 lt_prog_compiler_no_builtin_flag_F77 \
14606 export_dynamic_flag_spec_F77 \
14607 thread_safe_flag_spec_F77 \
14608 whole_archive_flag_spec_F77 \
14609 enable_shared_with_static_runtimes_F77 \
14610 old_archive_cmds_F77 \
14611 old_archive_from_new_cmds_F77 \
14612 predep_objects_F77 \
14613 postdep_objects_F77 \
14614 predeps_F77 \
14615 postdeps_F77 \
14616 compiler_lib_search_path_F77 \
14617 archive_cmds_F77 \
14618 archive_expsym_cmds_F77 \
14619 postinstall_cmds_F77 \
14620 postuninstall_cmds_F77 \
14621 old_archive_from_expsyms_cmds_F77 \
14622 allow_undefined_flag_F77 \
14623 no_undefined_flag_F77 \
14624 export_symbols_cmds_F77 \
14625 hardcode_libdir_flag_spec_F77 \
14626 hardcode_libdir_flag_spec_ld_F77 \
14627 hardcode_libdir_separator_F77 \
14628 hardcode_automatic_F77 \
14629 module_cmds_F77 \
14630 module_expsym_cmds_F77 \
14631 lt_cv_prog_compiler_c_o_F77 \
14632 exclude_expsyms_F77 \
14633 include_expsyms_F77; do
14634
14635 case $var in
14636 old_archive_cmds_F77 | \
14637 old_archive_from_new_cmds_F77 | \
14638 archive_cmds_F77 | \
14639 archive_expsym_cmds_F77 | \
14640 module_cmds_F77 | \
14641 module_expsym_cmds_F77 | \
14642 old_archive_from_expsyms_cmds_F77 | \
14643 export_symbols_cmds_F77 | \
14644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14645 postinstall_cmds | postuninstall_cmds | \
14646 old_postinstall_cmds | old_postuninstall_cmds | \
14647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14648 # Double-quote double-evaled strings.
14649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14650 ;;
14651 *)
14652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14653 ;;
14654 esac
14655 done
14656
14657 case $lt_echo in
14658 *'\$0 --fallback-echo"')
14659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14660 ;;
14661 esac
14662
14663cfgfile="$ofile"
14664
14665 cat <<__EOF__ >> "$cfgfile"
14666# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14667
14668# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14669
14670# Shell to use when invoking shell scripts.
14671SHELL=$lt_SHELL
14672
14673# Whether or not to build shared libraries.
14674build_libtool_libs=$enable_shared
14675
14676# Whether or not to build static libraries.
14677build_old_libs=$enable_static
14678
14679# Whether or not to add -lc for building shared libraries.
14680build_libtool_need_lc=$archive_cmds_need_lc_F77
14681
14682# Whether or not to disallow shared libs when runtime libs are static
14683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14684
14685# Whether or not to optimize for fast installation.
14686fast_install=$enable_fast_install
14687
14688# The host system.
14689host_alias=$host_alias
14690host=$host
14691
14692# An echo program that does not interpret backslashes.
14693echo=$lt_echo
14694
14695# The archiver.
14696AR=$lt_AR
14697AR_FLAGS=$lt_AR_FLAGS
14698
14699# A C compiler.
14700LTCC=$lt_LTCC
14701
14702# A language-specific compiler.
14703CC=$lt_compiler_F77
14704
14705# Is the compiler the GNU C compiler?
14706with_gcc=$GCC_F77
14707
14708# An ERE matcher.
14709EGREP=$lt_EGREP
14710
14711# The linker used to build libraries.
14712LD=$lt_LD_F77
14713
14714# Whether we need hard or soft links.
14715LN_S=$lt_LN_S
14716
14717# A BSD-compatible nm program.
14718NM=$lt_NM
14719
14720# A symbol stripping program
14721STRIP=$STRIP
14722
14723# Used to examine libraries when file_magic_cmd begins "file"
14724MAGIC_CMD=$MAGIC_CMD
14725
14726# Used on cygwin: DLL creation program.
14727DLLTOOL="$DLLTOOL"
14728
14729# Used on cygwin: object dumper.
14730OBJDUMP="$OBJDUMP"
14731
14732# Used on cygwin: assembler.
14733AS="$AS"
14734
14735# The name of the directory that contains temporary libtool files.
14736objdir=$objdir
14737
14738# How to create reloadable object files.
14739reload_flag=$lt_reload_flag
14740reload_cmds=$lt_reload_cmds
14741
14742# How to pass a linker flag through the compiler.
14743wl=$lt_lt_prog_compiler_wl_F77
14744
14745# Object file suffix (normally "o").
14746objext="$ac_objext"
14747
14748# Old archive suffix (normally "a").
14749libext="$libext"
14750
14751# Shared library suffix (normally ".so").
14752shrext='$shrext'
14753
14754# Executable file suffix (normally "").
14755exeext="$exeext"
14756
14757# Additional compiler flags for building library objects.
14758pic_flag=$lt_lt_prog_compiler_pic_F77
14759pic_mode=$pic_mode
14760
14761# What is the maximum length of a command?
14762max_cmd_len=$lt_cv_sys_max_cmd_len
14763
14764# Does compiler simultaneously support -c and -o options?
14765compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14766
14767# Must we lock files when doing compilation ?
14768need_locks=$lt_need_locks
14769
14770# Do we need the lib prefix for modules?
14771need_lib_prefix=$need_lib_prefix
14772
14773# Do we need a version for libraries?
14774need_version=$need_version
14775
14776# Whether dlopen is supported.
14777dlopen_support=$enable_dlopen
14778
14779# Whether dlopen of programs is supported.
14780dlopen_self=$enable_dlopen_self
14781
14782# Whether dlopen of statically linked programs is supported.
14783dlopen_self_static=$enable_dlopen_self_static
14784
14785# Compiler flag to prevent dynamic linking.
14786link_static_flag=$lt_lt_prog_compiler_static_F77
14787
14788# Compiler flag to turn off builtin functions.
14789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14790
14791# Compiler flag to allow reflexive dlopens.
14792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14793
14794# Compiler flag to generate shared objects directly from archives.
14795whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14796
14797# Compiler flag to generate thread-safe objects.
14798thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14799
14800# Library versioning type.
14801version_type=$version_type
14802
14803# Format of library name prefix.
14804libname_spec=$lt_libname_spec
14805
14806# List of archive names. First name is the real one, the rest are links.
14807# The last name is the one that the linker finds with -lNAME.
14808library_names_spec=$lt_library_names_spec
14809
14810# The coded name of the library, if different from the real name.
14811soname_spec=$lt_soname_spec
14812
14813# Commands used to build and install an old-style archive.
14814RANLIB=$lt_RANLIB
14815old_archive_cmds=$lt_old_archive_cmds_F77
14816old_postinstall_cmds=$lt_old_postinstall_cmds
14817old_postuninstall_cmds=$lt_old_postuninstall_cmds
14818
14819# Create an old-style archive from a shared archive.
14820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14821
14822# Create a temporary old-style archive to link instead of a shared archive.
14823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14824
14825# Commands used to build and install a shared archive.
14826archive_cmds=$lt_archive_cmds_F77
14827archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14828postinstall_cmds=$lt_postinstall_cmds
14829postuninstall_cmds=$lt_postuninstall_cmds
14830
14831# Commands used to build a loadable module (assumed same as above if empty)
14832module_cmds=$lt_module_cmds_F77
14833module_expsym_cmds=$lt_module_expsym_cmds_F77
14834
14835# Commands to strip libraries.
14836old_striplib=$lt_old_striplib
14837striplib=$lt_striplib
14838
14839# Dependencies to place before the objects being linked to create a
14840# shared library.
14841predep_objects=$lt_predep_objects_F77
14842
14843# Dependencies to place after the objects being linked to create a
14844# shared library.
14845postdep_objects=$lt_postdep_objects_F77
14846
14847# Dependencies to place before the objects being linked to create a
14848# shared library.
14849predeps=$lt_predeps_F77
14850
14851# Dependencies to place after the objects being linked to create a
14852# shared library.
14853postdeps=$lt_postdeps_F77
14854
14855# The library search path used internally by the compiler when linking
14856# a shared library.
14857compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14858
14859# Method to check whether dependent libraries are shared objects.
14860deplibs_check_method=$lt_deplibs_check_method
14861
14862# Command to use when deplibs_check_method == file_magic.
14863file_magic_cmd=$lt_file_magic_cmd
14864
14865# Flag that allows shared libraries with undefined symbols to be built.
14866allow_undefined_flag=$lt_allow_undefined_flag_F77
14867
14868# Flag that forces no undefined symbols.
14869no_undefined_flag=$lt_no_undefined_flag_F77
14870
14871# Commands used to finish a libtool library installation in a directory.
14872finish_cmds=$lt_finish_cmds
14873
14874# Same as above, but a single script fragment to be evaled but not shown.
14875finish_eval=$lt_finish_eval
14876
14877# Take the output of nm and produce a listing of raw symbols and C names.
14878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14879
14880# Transform the output of nm in a proper C declaration
14881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14882
14883# Transform the output of nm in a C name address pair
14884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14885
14886# This is the shared library runtime path variable.
14887runpath_var=$runpath_var
14888
14889# This is the shared library path variable.
14890shlibpath_var=$shlibpath_var
14891
14892# Is shlibpath searched before the hard-coded library search path?
14893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14894
14895# How to hardcode a shared library path into an executable.
14896hardcode_action=$hardcode_action_F77
14897
14898# Whether we should hardcode library paths into libraries.
14899hardcode_into_libs=$hardcode_into_libs
14900
14901# Flag to hardcode \$libdir into a binary during linking.
14902# This must work even if \$libdir does not exist.
14903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14904
14905# If ld is used when linking, flag to hardcode \$libdir into
14906# a binary during linking. This must work even if \$libdir does
14907# not exist.
14908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14909
14910# Whether we need a single -rpath flag with a separated argument.
14911hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14912
14913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14914# resulting binary.
14915hardcode_direct=$hardcode_direct_F77
14916
14917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14918# resulting binary.
14919hardcode_minus_L=$hardcode_minus_L_F77
14920
14921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14922# the resulting binary.
14923hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14924
14925# Set to yes if building a shared library automatically hardcodes DIR into the library
14926# and all subsequent libraries and executables linked against it.
14927hardcode_automatic=$hardcode_automatic_F77
14928
14929# Variables whose values should be saved in libtool wrapper scripts and
14930# restored at relink time.
14931variables_saved_for_relink="$variables_saved_for_relink"
14932
14933# Whether libtool must link a program against all its dependency libraries.
14934link_all_deplibs=$link_all_deplibs_F77
14935
14936# Compile-time system search path for libraries
14937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14938
14939# Run-time system search path for libraries
14940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14941
14942# Fix the shell variable \$srcfile for the compiler.
14943fix_srcfile_path="$fix_srcfile_path_F77"
14944
14945# Set to yes if exported symbols are required.
14946always_export_symbols=$always_export_symbols_F77
14947
14948# The commands to list exported symbols.
14949export_symbols_cmds=$lt_export_symbols_cmds_F77
14950
14951# The commands to extract the exported symbol list from a shared archive.
14952extract_expsyms_cmds=$lt_extract_expsyms_cmds
14953
14954# Symbols that should not be listed in the preloaded symbols.
14955exclude_expsyms=$lt_exclude_expsyms_F77
14956
14957# Symbols that must always be exported.
14958include_expsyms=$lt_include_expsyms_F77
14959
14960# ### END LIBTOOL TAG CONFIG: $tagname
14961
14962__EOF__
14963
14964
14965else
14966 # If there is no Makefile yet, we rely on a make rule to execute
14967 # `config.status --recheck' to rerun these tests and create the
14968 # libtool script then.
14969 test -f Makefile && make "$ltmain"
14970fi
14971
14972
14973ac_ext=c
14974ac_cpp='$CPP $CPPFLAGS'
14975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14977ac_compiler_gnu=$ac_cv_c_compiler_gnu
14978
14979CC="$lt_save_CC"
14980
14981 else
14982 tagname=""
14983 fi
14984 ;;
14985
14986 GCJ)
14987 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14988
14989
14990
14991# Source file extension for Java test sources.
14992ac_ext=java
14993
14994# Object file extension for compiled Java test sources.
14995objext=o
14996objext_GCJ=$objext
14997
14998# Code to be used in simple compile tests
14999lt_simple_compile_test_code="class foo {}\n"
15000
15001# Code to be used in simple link tests
15002lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15003
15004# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15005
15006# If no C compiler was specified, use CC.
15007LTCC=${LTCC-"$CC"}
15008
15009# Allow CC to be a program name with arguments.
15010compiler=$CC
15011
15012
15013# Allow CC to be a program name with arguments.
15014lt_save_CC="$CC"
15015CC=${GCJ-"gcj"}
15016compiler=$CC
15017compiler_GCJ=$CC
15018
15019# GCJ did not exist at the time GCC didn't implicitly link libc in.
15020archive_cmds_need_lc_GCJ=no
15021
15022## CAVEAT EMPTOR:
15023## There is no encapsulation within the following macros, do not change
15024## the running order or otherwise move them around unless you know exactly
15025## what you are doing...
15026
15027lt_prog_compiler_no_builtin_flag_GCJ=
15028
15029if test "$GCC" = yes; then
15030 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15031
15032 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15033echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15034if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036else
15037 lt_cv_prog_compiler_rtti_exceptions=no
15038 ac_outfile=conftest.$ac_objext
15039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15040 lt_compiler_flag="-fno-rtti -fno-exceptions"
15041 # Insert the option either (1) after the last *FLAGS variable, or
15042 # (2) before a word containing "conftest.", or (3) at the end.
15043 # Note that $ac_compile itself does not contain backslashes and begins
15044 # with a dollar sign (not a hyphen), so the echo should work correctly.
15045 # The option is referenced via a variable to avoid confusing sed.
15046 lt_compile=`echo "$ac_compile" | $SED \
15047 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15049 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000015050 (eval echo "\"\$as_me:15050: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015051 (eval "$lt_compile" 2>conftest.err)
15052 ac_status=$?
15053 cat conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000015054 echo "$as_me:15054: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015055 if (exit $ac_status) && test -s "$ac_outfile"; then
15056 # The compiler can only warn and ignore the option if not recognized
15057 # So say no if there are warnings
15058 if test ! -s conftest.err; then
15059 lt_cv_prog_compiler_rtti_exceptions=yes
15060 fi
15061 fi
15062 $rm conftest*
15063
15064fi
15065echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15066echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15067
15068if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15069 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15070else
15071 :
15072fi
15073
15074fi
15075
15076lt_prog_compiler_wl_GCJ=
15077lt_prog_compiler_pic_GCJ=
15078lt_prog_compiler_static_GCJ=
15079
15080echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15081echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15082
15083 if test "$GCC" = yes; then
15084 lt_prog_compiler_wl_GCJ='-Wl,'
15085 lt_prog_compiler_static_GCJ='-static'
15086
15087 case $host_os in
15088 aix*)
15089 # All AIX code is PIC.
15090 if test "$host_cpu" = ia64; then
15091 # AIX 5 now supports IA64 processor
15092 lt_prog_compiler_static_GCJ='-Bstatic'
15093 fi
15094 ;;
15095
15096 amigaos*)
15097 # FIXME: we need at least 68020 code to build shared libraries, but
15098 # adding the `-m68020' flag to GCC prevents building anything better,
15099 # like `-m68040'.
15100 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15101 ;;
15102
15103 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15104 # PIC is the default for these OSes.
15105 ;;
15106
15107 mingw* | pw32* | os2*)
15108 # This hack is so that the source file can tell whether it is being
15109 # built for inclusion in a dll (and should export symbols for example).
15110 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15111 ;;
15112
15113 darwin* | rhapsody*)
15114 # PIC is the default on this platform
15115 # Common symbols not allowed in MH_DYLIB files
15116 lt_prog_compiler_pic_GCJ='-fno-common'
15117 ;;
15118
15119 msdosdjgpp*)
15120 # Just because we use GCC doesn't mean we suddenly get shared libraries
15121 # on systems that don't support them.
15122 lt_prog_compiler_can_build_shared_GCJ=no
15123 enable_shared=no
15124 ;;
15125
15126 sysv4*MP*)
15127 if test -d /usr/nec; then
15128 lt_prog_compiler_pic_GCJ=-Kconform_pic
15129 fi
15130 ;;
15131
15132 hpux*)
15133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15134 # not for PA HP-UX.
15135 case "$host_cpu" in
15136 hppa*64*|ia64*)
15137 # +Z the default
15138 ;;
15139 *)
15140 lt_prog_compiler_pic_GCJ='-fPIC'
15141 ;;
15142 esac
15143 ;;
15144
15145 *)
15146 lt_prog_compiler_pic_GCJ='-fPIC'
15147 ;;
15148 esac
15149 else
15150 # PORTME Check for flag to pass linker flags through the system compiler.
15151 case $host_os in
15152 aix*)
15153 lt_prog_compiler_wl_GCJ='-Wl,'
15154 if test "$host_cpu" = ia64; then
15155 # AIX 5 now supports IA64 processor
15156 lt_prog_compiler_static_GCJ='-Bstatic'
15157 else
15158 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15159 fi
15160 ;;
15161
15162 mingw* | pw32* | os2*)
15163 # This hack is so that the source file can tell whether it is being
15164 # built for inclusion in a dll (and should export symbols for example).
15165 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15166 ;;
15167
15168 hpux9* | hpux10* | hpux11*)
15169 lt_prog_compiler_wl_GCJ='-Wl,'
15170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15171 # not for PA HP-UX.
15172 case "$host_cpu" in
15173 hppa*64*|ia64*)
15174 # +Z the default
15175 ;;
15176 *)
15177 lt_prog_compiler_pic_GCJ='+Z'
15178 ;;
15179 esac
15180 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15181 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15182 ;;
15183
15184 irix5* | irix6* | nonstopux*)
15185 lt_prog_compiler_wl_GCJ='-Wl,'
15186 # PIC (with -KPIC) is the default.
15187 lt_prog_compiler_static_GCJ='-non_shared'
15188 ;;
15189
15190 newsos6)
15191 lt_prog_compiler_pic_GCJ='-KPIC'
15192 lt_prog_compiler_static_GCJ='-Bstatic'
15193 ;;
15194
15195 linux*)
15196 case $CC in
15197 icc|ecc)
15198 lt_prog_compiler_wl_GCJ='-Wl,'
15199 lt_prog_compiler_pic_GCJ='-KPIC'
15200 lt_prog_compiler_static_GCJ='-static'
15201 ;;
15202 ccc)
15203 lt_prog_compiler_wl_GCJ='-Wl,'
15204 # All Alpha code is PIC.
15205 lt_prog_compiler_static_GCJ='-non_shared'
15206 ;;
15207 esac
15208 ;;
15209
15210 osf3* | osf4* | osf5*)
15211 lt_prog_compiler_wl_GCJ='-Wl,'
15212 # All OSF/1 code is PIC.
15213 lt_prog_compiler_static_GCJ='-non_shared'
15214 ;;
15215
15216 sco3.2v5*)
15217 lt_prog_compiler_pic_GCJ='-Kpic'
15218 lt_prog_compiler_static_GCJ='-dn'
15219 ;;
15220
15221 solaris*)
15222 lt_prog_compiler_wl_GCJ='-Wl,'
15223 lt_prog_compiler_pic_GCJ='-KPIC'
15224 lt_prog_compiler_static_GCJ='-Bstatic'
15225 ;;
15226
15227 sunos4*)
15228 lt_prog_compiler_wl_GCJ='-Qoption ld '
15229 lt_prog_compiler_pic_GCJ='-PIC'
15230 lt_prog_compiler_static_GCJ='-Bstatic'
15231 ;;
15232
15233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 lt_prog_compiler_pic_GCJ='-KPIC'
15236 lt_prog_compiler_static_GCJ='-Bstatic'
15237 ;;
15238
15239 sysv4*MP*)
15240 if test -d /usr/nec ;then
15241 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15242 lt_prog_compiler_static_GCJ='-Bstatic'
15243 fi
15244 ;;
15245
15246 uts4*)
15247 lt_prog_compiler_pic_GCJ='-pic'
15248 lt_prog_compiler_static_GCJ='-Bstatic'
15249 ;;
15250
15251 *)
15252 lt_prog_compiler_can_build_shared_GCJ=no
15253 ;;
15254 esac
15255 fi
15256
15257echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15258echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15259
15260#
15261# Check to make sure the PIC flag actually works.
15262#
15263if test -n "$lt_prog_compiler_pic_GCJ"; then
15264 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15265echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15266if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268else
15269 lt_prog_compiler_pic_works_GCJ=no
15270 ac_outfile=conftest.$ac_objext
15271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15272 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15273 # Insert the option either (1) after the last *FLAGS variable, or
15274 # (2) before a word containing "conftest.", or (3) at the end.
15275 # Note that $ac_compile itself does not contain backslashes and begins
15276 # with a dollar sign (not a hyphen), so the echo should work correctly.
15277 # The option is referenced via a variable to avoid confusing sed.
15278 lt_compile=`echo "$ac_compile" | $SED \
15279 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000015282 (eval echo "\"\$as_me:15282: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015283 (eval "$lt_compile" 2>conftest.err)
15284 ac_status=$?
15285 cat conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000015286 echo "$as_me:15286: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015287 if (exit $ac_status) && test -s "$ac_outfile"; then
15288 # The compiler can only warn and ignore the option if not recognized
15289 # So say no if there are warnings
15290 if test ! -s conftest.err; then
15291 lt_prog_compiler_pic_works_GCJ=yes
15292 fi
15293 fi
15294 $rm conftest*
15295
15296fi
15297echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15298echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15299
15300if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15301 case $lt_prog_compiler_pic_GCJ in
15302 "" | " "*) ;;
15303 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15304 esac
15305else
15306 lt_prog_compiler_pic_GCJ=
15307 lt_prog_compiler_can_build_shared_GCJ=no
15308fi
15309
15310fi
15311case "$host_os" in
15312 # For platforms which do not support PIC, -DPIC is meaningless:
15313 *djgpp*)
15314 lt_prog_compiler_pic_GCJ=
15315 ;;
15316 *)
15317 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15318 ;;
15319esac
15320
15321echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15322echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15323if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15325else
15326 lt_cv_prog_compiler_c_o_GCJ=no
15327 $rm -r conftest 2>/dev/null
15328 mkdir conftest
15329 cd conftest
15330 mkdir out
15331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15332
15333 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15334 # that will create temporary files in the current directory regardless of
15335 # the output directory. Thus, making CWD read-only will cause this test
15336 # to fail, enabling locking or at least warning the user not to do parallel
15337 # builds.
15338 chmod -w .
15339
15340 lt_compiler_flag="-o out/conftest2.$ac_objext"
15341 # Insert the option either (1) after the last *FLAGS variable, or
15342 # (2) before a word containing "conftest.", or (3) at the end.
15343 # Note that $ac_compile itself does not contain backslashes and begins
15344 # with a dollar sign (not a hyphen), so the echo should work correctly.
15345 lt_compile=`echo "$ac_compile" | $SED \
15346 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15348 -e 's:$: $lt_compiler_flag:'`
John Criswellf5b55652003-09-30 13:52:11 +000015349 (eval echo "\"\$as_me:15349: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015350 (eval "$lt_compile" 2>out/conftest.err)
15351 ac_status=$?
15352 cat out/conftest.err >&5
John Criswellf5b55652003-09-30 13:52:11 +000015353 echo "$as_me:15353: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15355 then
15356 # The compiler can only warn and ignore the option if not recognized
15357 # So say no if there are warnings
15358 if test ! -s out/conftest.err; then
15359 lt_cv_prog_compiler_c_o_GCJ=yes
15360 fi
15361 fi
15362 chmod u+w .
15363 $rm conftest* out/*
15364 rmdir out
15365 cd ..
15366 rmdir conftest
15367 $rm conftest*
15368
15369fi
15370echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15371echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15372
15373
15374hard_links="nottested"
15375if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15376 # do not overwrite the value of need_locks provided by the user
15377 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15378echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15379 hard_links=yes
15380 $rm conftest*
15381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382 touch conftest.a
15383 ln conftest.a conftest.b 2>&5 || hard_links=no
15384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385 echo "$as_me:$LINENO: result: $hard_links" >&5
15386echo "${ECHO_T}$hard_links" >&6
15387 if test "$hard_links" = no; then
15388 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15389echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15390 need_locks=warn
15391 fi
15392else
15393 need_locks=no
15394fi
15395
15396echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15397echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15398
15399 runpath_var=
15400 allow_undefined_flag_GCJ=
15401 enable_shared_with_static_runtimes_GCJ=no
15402 archive_cmds_GCJ=
15403 archive_expsym_cmds_GCJ=
15404 old_archive_From_new_cmds_GCJ=
15405 old_archive_from_expsyms_cmds_GCJ=
15406 export_dynamic_flag_spec_GCJ=
15407 whole_archive_flag_spec_GCJ=
15408 thread_safe_flag_spec_GCJ=
15409 hardcode_libdir_flag_spec_GCJ=
15410 hardcode_libdir_flag_spec_ld_GCJ=
15411 hardcode_libdir_separator_GCJ=
15412 hardcode_direct_GCJ=no
15413 hardcode_minus_L_GCJ=no
15414 hardcode_shlibpath_var_GCJ=unsupported
15415 link_all_deplibs_GCJ=unknown
15416 hardcode_automatic_GCJ=no
15417 module_cmds_GCJ=
15418 module_expsym_cmds_GCJ=
15419 always_export_symbols_GCJ=no
15420 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15421 # include_expsyms should be a list of space-separated symbols to be *always*
15422 # included in the symbol list
15423 include_expsyms_GCJ=
15424 # exclude_expsyms can be an extended regexp of symbols to exclude
15425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15427 # as well as any symbol that contains `d'.
15428 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15430 # platforms (ab)use it in PIC code, but their linkers get confused if
15431 # the symbol is explicitly referenced. Since portable code cannot
15432 # rely on this symbol name, it's probably fine to never include it in
15433 # preloaded symbol tables.
15434 extract_expsyms_cmds=
15435
15436 case $host_os in
15437 cygwin* | mingw* | pw32*)
15438 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15439 # When not using gcc, we currently assume that we are using
15440 # Microsoft Visual C++.
15441 if test "$GCC" != yes; then
15442 with_gnu_ld=no
15443 fi
15444 ;;
15445 openbsd*)
15446 with_gnu_ld=no
15447 ;;
15448 esac
15449
15450 ld_shlibs_GCJ=yes
15451 if test "$with_gnu_ld" = yes; then
15452 # If archive_cmds runs LD, not CC, wlarc should be empty
15453 wlarc='${wl}'
15454
15455 # See if GNU ld supports shared libraries.
15456 case $host_os in
15457 aix3* | aix4* | aix5*)
15458 # On AIX/PPC, the GNU linker is very broken
15459 if test "$host_cpu" != ia64; then
15460 ld_shlibs_GCJ=no
15461 cat <<EOF 1>&2
15462
15463*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15464*** to be unable to reliably create shared libraries on AIX.
15465*** Therefore, libtool is disabling shared libraries support. If you
15466*** really care for shared libraries, you may want to modify your PATH
15467*** so that a non-GNU linker is found, and then restart.
15468
15469EOF
15470 fi
15471 ;;
15472
15473 amigaos*)
15474 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)'
15475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476 hardcode_minus_L_GCJ=yes
15477
15478 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15479 # that the semantics of dynamic libraries on AmigaOS, at least up
15480 # to version 4, is to share data among multiple programs linked
15481 # with the same dynamic library. Since this doesn't match the
15482 # behavior of shared libraries on other platforms, we can't use
15483 # them.
15484 ld_shlibs_GCJ=no
15485 ;;
15486
15487 beos*)
15488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15489 allow_undefined_flag_GCJ=unsupported
15490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15491 # support --undefined. This deserves some investigation. FIXME
15492 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15493 else
15494 ld_shlibs_GCJ=no
15495 fi
15496 ;;
15497
15498 cygwin* | mingw* | pw32*)
15499 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15500 # as there is no search path for DLLs.
15501 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15502 allow_undefined_flag_GCJ=unsupported
15503 always_export_symbols_GCJ=no
15504 enable_shared_with_static_runtimes_GCJ=yes
15505 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15506
15507 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15509 # If the export-symbols file already is a .def file (1st line
15510 # is EXPORTS), use it as is; otherwise, prepend...
15511 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15512 cp $export_symbols $output_objdir/$soname.def;
15513 else
15514 echo EXPORTS > $output_objdir/$soname.def;
15515 cat $export_symbols >> $output_objdir/$soname.def;
15516 fi~
15517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15518 else
15519 ld_shlibs=no
15520 fi
15521 ;;
15522
15523 netbsd*)
15524 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15525 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15526 wlarc=
15527 else
15528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15530 fi
15531 ;;
15532
15533 solaris* | sysv5*)
15534 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15535 ld_shlibs_GCJ=no
15536 cat <<EOF 1>&2
15537
15538*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15539*** create shared libraries on Solaris systems. Therefore, libtool
15540*** is disabling shared libraries support. We urge you to upgrade GNU
15541*** binutils to release 2.9.1 or newer. Another option is to modify
15542*** your PATH or compiler configuration so that the native linker is
15543*** used, and then restart.
15544
15545EOF
15546 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15547 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15548 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15549 else
15550 ld_shlibs_GCJ=no
15551 fi
15552 ;;
15553
15554 sunos4*)
15555 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15556 wlarc=
15557 hardcode_direct_GCJ=yes
15558 hardcode_shlibpath_var_GCJ=no
15559 ;;
15560
15561 *)
15562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15565 else
15566 ld_shlibs_GCJ=no
15567 fi
15568 ;;
15569 esac
15570
15571 if test "$ld_shlibs_GCJ" = yes; then
15572 runpath_var=LD_RUN_PATH
15573 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15574 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15575 # ancient GNU ld didn't support --whole-archive et. al.
15576 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15577 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15578 else
15579 whole_archive_flag_spec_GCJ=
15580 fi
15581 fi
15582 else
15583 # PORTME fill in a description of your system's linker (not GNU ld)
15584 case $host_os in
15585 aix3*)
15586 allow_undefined_flag_GCJ=unsupported
15587 always_export_symbols_GCJ=yes
15588 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'
15589 # Note: this linker hardcodes the directories in LIBPATH if there
15590 # are no directories specified by -L.
15591 hardcode_minus_L_GCJ=yes
15592 if test "$GCC" = yes && test -z "$link_static_flag"; then
15593 # Neither direct hardcoding nor static linking is supported with a
15594 # broken collect2.
15595 hardcode_direct_GCJ=unsupported
15596 fi
15597 ;;
15598
15599 aix4* | aix5*)
15600 if test "$host_cpu" = ia64; then
15601 # On IA64, the linker does run time linking by default, so we don't
15602 # have to do anything special.
15603 aix_use_runtimelinking=no
15604 exp_sym_flag='-Bexport'
15605 no_entry_flag=""
15606 else
15607 # If we're using GNU nm, then we don't want the "-C" option.
15608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15609 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15610 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'
15611 else
15612 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'
15613 fi
15614 aix_use_runtimelinking=no
15615
15616 # Test if we are trying to use run time linking or normal
15617 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15618 # need to do runtime linking.
15619 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15620 for ld_flag in $LDFLAGS; do
15621 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15622 aix_use_runtimelinking=yes
15623 break
15624 fi
15625 done
15626 esac
15627
15628 exp_sym_flag='-bexport'
15629 no_entry_flag='-bnoentry'
15630 fi
15631
15632 # When large executables or shared objects are built, AIX ld can
15633 # have problems creating the table of contents. If linking a library
15634 # or program results in "error TOC overflow" add -mminimal-toc to
15635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15637
15638 archive_cmds_GCJ=''
15639 hardcode_direct_GCJ=yes
15640 hardcode_libdir_separator_GCJ=':'
15641 link_all_deplibs_GCJ=yes
15642
15643 if test "$GCC" = yes; then
15644 case $host_os in aix4.012|aix4.012.*)
15645 # We only want to do this on AIX 4.2 and lower, the check
15646 # below for broken collect2 doesn't work under 4.3+
15647 collect2name=`${CC} -print-prog-name=collect2`
15648 if test -f "$collect2name" && \
15649 strings "$collect2name" | grep resolve_lib_name >/dev/null
15650 then
15651 # We have reworked collect2
15652 hardcode_direct_GCJ=yes
15653 else
15654 # We have old collect2
15655 hardcode_direct_GCJ=unsupported
15656 # It fails to find uninstalled libraries when the uninstalled
15657 # path is not listed in the libpath. Setting hardcode_minus_L
15658 # to unsupported forces relinking
15659 hardcode_minus_L_GCJ=yes
15660 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15661 hardcode_libdir_separator_GCJ=
15662 fi
15663 esac
15664 shared_flag='-shared'
15665 else
15666 # not using gcc
15667 if test "$host_cpu" = ia64; then
15668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15669 # chokes on -Wl,-G. The following line is correct:
15670 shared_flag='-G'
15671 else
15672 if test "$aix_use_runtimelinking" = yes; then
15673 shared_flag='${wl}-G'
15674 else
15675 shared_flag='${wl}-bM:SRE'
15676 fi
15677 fi
15678 fi
15679
15680 # It seems that -bexpall does not export symbols beginning with
15681 # underscore (_), so it is better to generate a list of symbols to export.
15682 always_export_symbols_GCJ=yes
15683 if test "$aix_use_runtimelinking" = yes; then
15684 # Warning - without using the other runtime loading flags (-brtl),
15685 # -berok will link without error, but may produce a broken library.
15686 allow_undefined_flag_GCJ='-berok'
15687 # Determine the default libpath from the value encoded in an empty executable.
15688 cat >conftest.$ac_ext <<_ACEOF
15689#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015695
John Criswell47fdd832003-07-14 16:52:07 +000015696int
15697main ()
15698{
15699
15700 ;
15701 return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext conftest$ac_exeext
15705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15706 (eval $ac_link) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } &&
15710 { ac_try='test -s conftest$ac_exeext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716
15717aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15718}'`
15719# Check for a 64-bit object if we didn't find anything.
15720if 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; }
15721}'`; fi
15722else
15723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015724sed 's/^/| /' conftest.$ac_ext >&5
15725
John Criswell47fdd832003-07-14 16:52:07 +000015726fi
15727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15729
15730 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15731 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"
15732 else
15733 if test "$host_cpu" = ia64; then
15734 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15735 allow_undefined_flag_GCJ="-z nodefs"
15736 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"
15737 else
15738 # Determine the default libpath from the value encoded in an empty executable.
15739 cat >conftest.$ac_ext <<_ACEOF
15740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015741/* confdefs.h. */
15742_ACEOF
15743cat confdefs.h >>conftest.$ac_ext
15744cat >>conftest.$ac_ext <<_ACEOF
15745/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015746
John Criswell47fdd832003-07-14 16:52:07 +000015747int
15748main ()
15749{
15750
15751 ;
15752 return 0;
15753}
15754_ACEOF
15755rm -f conftest.$ac_objext conftest$ac_exeext
15756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15757 (eval $ac_link) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767
15768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15769}'`
15770# Check for a 64-bit object if we didn't find anything.
15771if 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; }
15772}'`; fi
15773else
15774 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015775sed 's/^/| /' conftest.$ac_ext >&5
15776
John Criswell47fdd832003-07-14 16:52:07 +000015777fi
15778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15780
15781 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15782 # Warning - without using the other run time loading flags,
15783 # -berok will link without error, but may produce a broken library.
15784 no_undefined_flag_GCJ=' ${wl}-bernotok'
15785 allow_undefined_flag_GCJ=' ${wl}-berok'
15786 # -bexpall does not export symbols beginning with underscore (_)
15787 always_export_symbols_GCJ=yes
15788 # Exported symbols can be pulled into shared objects from archives
15789 whole_archive_flag_spec_GCJ=' '
15790 archive_cmds_need_lc_GCJ=yes
15791 # This is similar to how AIX traditionally builds it's shared libraries.
15792 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'
15793 fi
15794 fi
15795 ;;
15796
15797 amigaos*)
15798 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)'
15799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15800 hardcode_minus_L_GCJ=yes
15801 # see comment about different semantics on the GNU ld section
15802 ld_shlibs_GCJ=no
15803 ;;
15804
15805 bsdi4*)
15806 export_dynamic_flag_spec_GCJ=-rdynamic
15807 ;;
15808
15809 cygwin* | mingw* | pw32*)
15810 # When not using gcc, we currently assume that we are using
15811 # Microsoft Visual C++.
15812 # hardcode_libdir_flag_spec is actually meaningless, as there is
15813 # no search path for DLLs.
15814 hardcode_libdir_flag_spec_GCJ=' '
15815 allow_undefined_flag_GCJ=unsupported
15816 # Tell ltmain to make .lib files, not .a files.
15817 libext=lib
15818 # Tell ltmain to make .dll files, not .so files.
15819 shrext=".dll"
15820 # FIXME: Setting linknames here is a bad hack.
15821 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15822 # The linker will automatically build a .lib file if we build a DLL.
15823 old_archive_From_new_cmds_GCJ='true'
15824 # FIXME: Should let the user specify the lib program.
15825 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15826 fix_srcfile_path='`cygpath -w "$srcfile"`'
15827 enable_shared_with_static_runtimes_GCJ=yes
15828 ;;
15829
15830 darwin* | rhapsody*)
15831 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15832 archive_cmds_need_lc_GCJ=no
15833 case "$host_os" in
15834 rhapsody* | darwin1.[012])
15835 allow_undefined_flag_GCJ='-undefined suppress'
15836 ;;
15837 *) # Darwin 1.3 on
15838 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15839 ;;
15840 esac
15841 # FIXME: Relying on posixy $() will cause problems for
15842 # cross-compilation, but unfortunately the echo tests do not
15843 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15844 # `"' quotes if we put them in here... so don't!
15845 lt_int_apple_cc_single_mod=no
15846 output_verbose_link_cmd='echo'
15847 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15848 lt_int_apple_cc_single_mod=yes
15849 fi
15850 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15851 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15852 else
15853 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'
15854 fi
15855 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15856 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15857 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15858 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}'
15859 else
15860 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}'
15861 fi
15862 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}'
15863 hardcode_direct_GCJ=no
15864 hardcode_automatic_GCJ=yes
15865 hardcode_shlibpath_var_GCJ=unsupported
15866 whole_archive_flag_spec_GCJ='-all_load $convenience'
15867 link_all_deplibs_GCJ=yes
15868 fi
15869 ;;
15870
15871 dgux*)
15872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15874 hardcode_shlibpath_var_GCJ=no
15875 ;;
15876
15877 freebsd1*)
15878 ld_shlibs_GCJ=no
15879 ;;
15880
15881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15882 # support. Future versions do this automatically, but an explicit c++rt0.o
15883 # does not break anything, and helps significantly (at the cost of a little
15884 # extra space).
15885 freebsd2.2*)
15886 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15887 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15888 hardcode_direct_GCJ=yes
15889 hardcode_shlibpath_var_GCJ=no
15890 ;;
15891
15892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15893 freebsd2*)
15894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_direct_GCJ=yes
15896 hardcode_minus_L_GCJ=yes
15897 hardcode_shlibpath_var_GCJ=no
15898 ;;
15899
15900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15901 freebsd*)
15902 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15903 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15904 hardcode_direct_GCJ=yes
15905 hardcode_shlibpath_var_GCJ=no
15906 ;;
15907
15908 hpux9*)
15909 if test "$GCC" = yes; then
15910 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'
15911 else
15912 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'
15913 fi
15914 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15915 hardcode_libdir_separator_GCJ=:
15916 hardcode_direct_GCJ=yes
15917
15918 # hardcode_minus_L: Not really in the search PATH,
15919 # but as the default location of the library.
15920 hardcode_minus_L_GCJ=yes
15921 export_dynamic_flag_spec_GCJ='${wl}-E'
15922 ;;
15923
15924 hpux10* | hpux11*)
15925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15926 case "$host_cpu" in
15927 hppa*64*|ia64*)
15928 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 ;;
15930 *)
15931 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15932 ;;
15933 esac
15934 else
15935 case "$host_cpu" in
15936 hppa*64*|ia64*)
15937 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15938 ;;
15939 *)
15940 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15941 ;;
15942 esac
15943 fi
15944 if test "$with_gnu_ld" = no; then
15945 case "$host_cpu" in
15946 hppa*64*)
15947 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15948 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15949 hardcode_libdir_separator_GCJ=:
15950 hardcode_direct_GCJ=no
15951 hardcode_shlibpath_var_GCJ=no
15952 ;;
15953 ia64*)
15954 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15955 hardcode_direct_GCJ=no
15956 hardcode_shlibpath_var_GCJ=no
15957
15958 # hardcode_minus_L: Not really in the search PATH,
15959 # but as the default location of the library.
15960 hardcode_minus_L_GCJ=yes
15961 ;;
15962 *)
15963 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15964 hardcode_libdir_separator_GCJ=:
15965 hardcode_direct_GCJ=yes
15966 export_dynamic_flag_spec_GCJ='${wl}-E'
15967
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L_GCJ=yes
15971 ;;
15972 esac
15973 fi
15974 ;;
15975
15976 irix5* | irix6* | nonstopux*)
15977 if test "$GCC" = yes; then
15978 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'
15979 else
15980 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'
15981 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15982 fi
15983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15984 hardcode_libdir_separator_GCJ=:
15985 link_all_deplibs_GCJ=yes
15986 ;;
15987
15988 netbsd*)
15989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15991 else
15992 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15993 fi
15994 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15995 hardcode_direct_GCJ=yes
15996 hardcode_shlibpath_var_GCJ=no
15997 ;;
15998
15999 newsos6)
16000 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001 hardcode_direct_GCJ=yes
16002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16003 hardcode_libdir_separator_GCJ=:
16004 hardcode_shlibpath_var_GCJ=no
16005 ;;
16006
16007 openbsd*)
16008 hardcode_direct_GCJ=yes
16009 hardcode_shlibpath_var_GCJ=no
16010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16013 export_dynamic_flag_spec_GCJ='${wl}-E'
16014 else
16015 case $host_os in
16016 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16017 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16018 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16019 ;;
16020 *)
16021 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16023 ;;
16024 esac
16025 fi
16026 ;;
16027
16028 os2*)
16029 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16030 hardcode_minus_L_GCJ=yes
16031 allow_undefined_flag_GCJ=unsupported
16032 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'
16033 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16034 ;;
16035
16036 osf3*)
16037 if test "$GCC" = yes; then
16038 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16039 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'
16040 else
16041 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16042 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'
16043 fi
16044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16045 hardcode_libdir_separator_GCJ=:
16046 ;;
16047
16048 osf4* | osf5*) # as osf3* with the addition of -msym flag
16049 if test "$GCC" = yes; then
16050 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16051 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'
16052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16053 else
16054 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16055 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'
16056 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~
16057 $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'
16058
16059 # Both c and cxx compiler support -rpath directly
16060 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16061 fi
16062 hardcode_libdir_separator_GCJ=:
16063 ;;
16064
16065 sco3.2v5*)
16066 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_shlibpath_var_GCJ=no
16068 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16069 runpath_var=LD_RUN_PATH
16070 hardcode_runpath_var=yes
16071 ;;
16072
16073 solaris*)
16074 no_undefined_flag_GCJ=' -z text'
16075 if test "$GCC" = yes; then
16076 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16077 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16078 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16079 else
16080 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16081 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16082 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16083 fi
16084 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16085 hardcode_shlibpath_var_GCJ=no
16086 case $host_os in
16087 solaris2.[0-5] | solaris2.[0-5].*) ;;
16088 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16089 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16090 esac
16091 link_all_deplibs_GCJ=yes
16092 ;;
16093
16094 sunos4*)
16095 if test "x$host_vendor" = xsequent; then
16096 # Use $CC to link under sequent, because it throws in some extra .o
16097 # files that make .init and .fini sections work.
16098 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16099 else
16100 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16101 fi
16102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16103 hardcode_direct_GCJ=yes
16104 hardcode_minus_L_GCJ=yes
16105 hardcode_shlibpath_var_GCJ=no
16106 ;;
16107
16108 sysv4)
16109 case $host_vendor in
16110 sni)
16111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112 hardcode_direct_GCJ=yes # is this really true???
16113 ;;
16114 siemens)
16115 ## LD is ld it makes a PLAMLIB
16116 ## CC just makes a GrossModule.
16117 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16118 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16119 hardcode_direct_GCJ=no
16120 ;;
16121 motorola)
16122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16124 ;;
16125 esac
16126 runpath_var='LD_RUN_PATH'
16127 hardcode_shlibpath_var_GCJ=no
16128 ;;
16129
16130 sysv4.3*)
16131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132 hardcode_shlibpath_var_GCJ=no
16133 export_dynamic_flag_spec_GCJ='-Bexport'
16134 ;;
16135
16136 sysv4*MP*)
16137 if test -d /usr/nec; then
16138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16139 hardcode_shlibpath_var_GCJ=no
16140 runpath_var=LD_RUN_PATH
16141 hardcode_runpath_var=yes
16142 ld_shlibs_GCJ=yes
16143 fi
16144 ;;
16145
16146 sysv4.2uw2*)
16147 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16148 hardcode_direct_GCJ=yes
16149 hardcode_minus_L_GCJ=no
16150 hardcode_shlibpath_var_GCJ=no
16151 hardcode_runpath_var=yes
16152 runpath_var=LD_RUN_PATH
16153 ;;
16154
16155 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16156 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16157 if test "$GCC" = yes; then
16158 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16159 else
16160 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 fi
16162 runpath_var='LD_RUN_PATH'
16163 hardcode_shlibpath_var_GCJ=no
16164 ;;
16165
16166 sysv5*)
16167 no_undefined_flag_GCJ=' -z text'
16168 # $CC -shared without GNU ld will not create a library from C++
16169 # object files and a static libstdc++, better avoid it by now
16170 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16172 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16173 hardcode_libdir_flag_spec_GCJ=
16174 hardcode_shlibpath_var_GCJ=no
16175 runpath_var='LD_RUN_PATH'
16176 ;;
16177
16178 uts4*)
16179 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16181 hardcode_shlibpath_var_GCJ=no
16182 ;;
16183
16184 *)
16185 ld_shlibs_GCJ=no
16186 ;;
16187 esac
16188 fi
16189
16190echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16191echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16192test "$ld_shlibs_GCJ" = no && can_build_shared=no
16193
16194variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16195if test "$GCC" = yes; then
16196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16197fi
16198
16199#
16200# Do we need to explicitly link libc?
16201#
16202case "x$archive_cmds_need_lc_GCJ" in
16203x|xyes)
16204 # Assume -lc should be added
16205 archive_cmds_need_lc_GCJ=yes
16206
16207 if test "$enable_shared" = yes && test "$GCC" = yes; then
16208 case $archive_cmds_GCJ in
16209 *'~'*)
16210 # FIXME: we may have to deal with multi-command sequences.
16211 ;;
16212 '$CC '*)
16213 # Test whether the compiler implicitly links with -lc since on some
16214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16215 # to ld, don't add -lc before -lgcc.
16216 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16217echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16218 $rm conftest*
16219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16220
16221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } 2>conftest.err; then
16226 soname=conftest
16227 lib=conftest
16228 libobjs=conftest.$ac_objext
16229 deplibs=
16230 wl=$lt_prog_compiler_wl_GCJ
16231 compiler_flags=-v
16232 linker_flags=-v
16233 verstring=
16234 output_objdir=.
16235 libname=conftest
16236 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16237 allow_undefined_flag_GCJ=
16238 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16239 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16240 ac_status=$?
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }
16243 then
16244 archive_cmds_need_lc_GCJ=no
16245 else
16246 archive_cmds_need_lc_GCJ=yes
16247 fi
16248 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16249 else
16250 cat conftest.err 1>&5
16251 fi
16252 $rm conftest*
16253 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16254echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16255 ;;
16256 esac
16257 fi
16258 ;;
16259esac
16260
16261echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16262echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16263hardcode_action_GCJ=
16264if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16265 test -n "$runpath_var GCJ" || \
16266 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16267
16268 # We can hardcode non-existant directories.
16269 if test "$hardcode_direct_GCJ" != no &&
16270 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16271 # have to relink, otherwise we might link with an installed library
16272 # when we should be linking with a yet-to-be-installed one
16273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16274 test "$hardcode_minus_L_GCJ" != no; then
16275 # Linking always hardcodes the temporary library directory.
16276 hardcode_action_GCJ=relink
16277 else
16278 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16279 hardcode_action_GCJ=immediate
16280 fi
16281else
16282 # We cannot hardcode anything, or else we can only hardcode existing
16283 # directories.
16284 hardcode_action_GCJ=unsupported
16285fi
16286echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16287echo "${ECHO_T}$hardcode_action_GCJ" >&6
16288
16289if test "$hardcode_action_GCJ" = relink; then
16290 # Fast installation is not supported
16291 enable_fast_install=no
16292elif test "$shlibpath_overrides_runpath" = yes ||
16293 test "$enable_shared" = no; then
16294 # Fast installation is not necessary
16295 enable_fast_install=needless
16296fi
16297
16298striplib=
16299old_striplib=
16300echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16301echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16302if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16303 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16304 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16305 echo "$as_me:$LINENO: result: yes" >&5
16306echo "${ECHO_T}yes" >&6
16307else
16308# FIXME - insert some real tests, host_os isn't really good enough
16309 case $host_os in
16310 darwin*)
16311 if test -n "$STRIP" ; then
16312 striplib="$STRIP -x"
16313 echo "$as_me:$LINENO: result: yes" >&5
16314echo "${ECHO_T}yes" >&6
16315 else
16316 echo "$as_me:$LINENO: result: no" >&5
16317echo "${ECHO_T}no" >&6
16318fi
16319 ;;
16320 *)
16321 echo "$as_me:$LINENO: result: no" >&5
16322echo "${ECHO_T}no" >&6
16323 ;;
16324 esac
16325fi
16326
16327echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16328echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16329library_names_spec=
16330libname_spec='lib$name'
16331soname_spec=
16332shrext=".so"
16333postinstall_cmds=
16334postuninstall_cmds=
16335finish_cmds=
16336finish_eval=
16337shlibpath_var=
16338shlibpath_overrides_runpath=unknown
16339version_type=none
16340dynamic_linker="$host_os ld.so"
16341sys_lib_dlsearch_path_spec="/lib /usr/lib"
16342if test "$GCC" = yes; then
16343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16344 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16345 # if the path contains ";" then we assume it to be the separator
16346 # otherwise default to the standard path separator (i.e. ":") - it is
16347 # assumed that no part of a normal pathname contains ";" but that should
16348 # okay in the real world where ";" in dirpaths is itself problematic.
16349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16350 else
16351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16352 fi
16353else
16354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16355fi
16356need_lib_prefix=unknown
16357hardcode_into_libs=no
16358
16359# when you set need_version to no, make sure it does not cause -set_version
16360# flags to be left without arguments
16361need_version=unknown
16362
16363case $host_os in
16364aix3*)
16365 version_type=linux
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16367 shlibpath_var=LIBPATH
16368
16369 # AIX 3 has no versioning support, so we append a major version to the name.
16370 soname_spec='${libname}${release}${shared_ext}$major'
16371 ;;
16372
16373aix4* | aix5*)
16374 version_type=linux
16375 need_lib_prefix=no
16376 need_version=no
16377 hardcode_into_libs=yes
16378 if test "$host_cpu" = ia64; then
16379 # AIX 5 supports IA64
16380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 else
16383 # With GCC up to 2.95.x, collect2 would create an import file
16384 # for dependence libraries. The import file would start with
16385 # the line `#! .'. This would cause the generated library to
16386 # depend on `.', always an invalid library. This was fixed in
16387 # development snapshots of GCC prior to 3.0.
16388 case $host_os in
16389 aix4 | aix4.[01] | aix4.[01].*)
16390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16391 echo ' yes '
16392 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16393 :
16394 else
16395 can_build_shared=no
16396 fi
16397 ;;
16398 esac
16399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16400 # soname into executable. Probably we can add versioning support to
16401 # collect2, so additional links can be useful in future.
16402 if test "$aix_use_runtimelinking" = yes; then
16403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16404 # instead of lib<name>.a to let people know that these are not
16405 # typical AIX shared libraries.
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 else
16408 # We preserve .a as extension for shared libraries through AIX4.2
16409 # and later when we are not doing run time linking.
16410 library_names_spec='${libname}${release}.a $libname.a'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 fi
16413 shlibpath_var=LIBPATH
16414 fi
16415 ;;
16416
16417amigaos*)
16418 library_names_spec='$libname.ixlibrary $libname.a'
16419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16420 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'
16421 ;;
16422
16423beos*)
16424 library_names_spec='${libname}${shared_ext}'
16425 dynamic_linker="$host_os ld.so"
16426 shlibpath_var=LIBRARY_PATH
16427 ;;
16428
16429bsdi4*)
16430 version_type=linux
16431 need_version=no
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 soname_spec='${libname}${release}${shared_ext}$major'
16434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16438 # the default ld.so.conf also contains /usr/contrib/lib and
16439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16440 # libtool to hard-code these into programs
16441 ;;
16442
16443cygwin* | mingw* | pw32*)
16444 version_type=windows
16445 shrext=".dll"
16446 need_version=no
16447 need_lib_prefix=no
16448
16449 case $GCC,$host_os in
16450 yes,cygwin* | yes,mingw* | yes,pw32*)
16451 library_names_spec='$libname.dll.a'
16452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16453 postinstall_cmds='base_file=`basename \${file}`~
16454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16455 dldir=$destdir/`dirname \$dlpath`~
16456 test -d \$dldir || mkdir -p \$dldir~
16457 $install_prog $dir/$dlname \$dldir/$dlname'
16458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16459 dlpath=$dir/\$dldll~
16460 $rm \$dlpath'
16461 shlibpath_overrides_runpath=yes
16462
16463 case $host_os in
16464 cygwin*)
16465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16467 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16468 ;;
16469 mingw*)
16470 # MinGW DLLs use traditional 'lib' prefix
16471 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16473 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16474 # It is most probably a Windows format PATH printed by
16475 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16476 # path with ; separators, and with drive letters. We can handle the
16477 # drive letters (cygwin fileutils understands them), so leave them,
16478 # especially as we might pass files found there to a mingw objdump,
16479 # which wouldn't understand a cygwinified path. Ahh.
16480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16481 else
16482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16483 fi
16484 ;;
16485 pw32*)
16486 # pw32 DLLs use 'pw' prefix rather than 'lib'
16487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16488 ;;
16489 esac
16490 ;;
16491
16492 *)
16493 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16494 ;;
16495 esac
16496 dynamic_linker='Win32 ld.exe'
16497 # FIXME: first we should search . and the directory the executable is in
16498 shlibpath_var=PATH
16499 ;;
16500
16501darwin* | rhapsody*)
16502 dynamic_linker="$host_os dyld"
16503 version_type=darwin
16504 need_lib_prefix=no
16505 need_version=no
16506 # FIXME: Relying on posixy $() will cause problems for
16507 # cross-compilation, but unfortunately the echo tests do not
16508 # yet detect zsh echo's removal of \ escapes.
16509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16510 soname_spec='${libname}${release}${major}$shared_ext'
16511 shlibpath_overrides_runpath=yes
16512 shlibpath_var=DYLD_LIBRARY_PATH
16513 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16515 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16516 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"`
16517 fi
16518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16519 ;;
16520
16521dgux*)
16522 version_type=linux
16523 need_lib_prefix=no
16524 need_version=no
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 ;;
16529
16530freebsd1*)
16531 dynamic_linker=no
16532 ;;
16533
16534freebsd*)
16535 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16536 version_type=freebsd-$objformat
16537 case $version_type in
16538 freebsd-elf*)
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 need_version=no
16541 need_lib_prefix=no
16542 ;;
16543 freebsd-*)
16544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16545 need_version=yes
16546 ;;
16547 esac
16548 shlibpath_var=LD_LIBRARY_PATH
16549 case $host_os in
16550 freebsd2*)
16551 shlibpath_overrides_runpath=yes
16552 ;;
16553 freebsd3.01* | freebsdelf3.01*)
16554 shlibpath_overrides_runpath=yes
16555 hardcode_into_libs=yes
16556 ;;
16557 *) # from 3.2 on
16558 shlibpath_overrides_runpath=no
16559 hardcode_into_libs=yes
16560 ;;
16561 esac
16562 ;;
16563
16564gnu*)
16565 version_type=linux
16566 need_lib_prefix=no
16567 need_version=no
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 hardcode_into_libs=yes
16572 ;;
16573
16574hpux9* | hpux10* | hpux11*)
16575 # Give a soname corresponding to the major version so that dld.sl refuses to
16576 # link against other versions.
16577 version_type=sunos
16578 need_lib_prefix=no
16579 need_version=no
16580 case "$host_cpu" in
16581 ia64*)
16582 shrext='.so'
16583 hardcode_into_libs=yes
16584 dynamic_linker="$host_os dld.so"
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16588 soname_spec='${libname}${release}${shared_ext}$major'
16589 if test "X$HPUX_IA64_MODE" = X32; then
16590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16591 else
16592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16593 fi
16594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16595 ;;
16596 hppa*64*)
16597 shrext='.sl'
16598 hardcode_into_libs=yes
16599 dynamic_linker="$host_os dld.sl"
16600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16606 ;;
16607 *)
16608 shrext='.sl'
16609 dynamic_linker="$host_os dld.sl"
16610 shlibpath_var=SHLIB_PATH
16611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 ;;
16615 esac
16616 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16617 postinstall_cmds='chmod 555 $lib'
16618 ;;
16619
16620irix5* | irix6* | nonstopux*)
16621 case $host_os in
16622 nonstopux*) version_type=nonstopux ;;
16623 *)
16624 if test "$lt_cv_prog_gnu_ld" = yes; then
16625 version_type=linux
16626 else
16627 version_type=irix
16628 fi ;;
16629 esac
16630 need_lib_prefix=no
16631 need_version=no
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16634 case $host_os in
16635 irix5* | nonstopux*)
16636 libsuff= shlibsuff=
16637 ;;
16638 *)
16639 case $LD in # libtool.m4 will add one of these switches to LD
16640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16641 libsuff= shlibsuff= libmagic=32-bit;;
16642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16643 libsuff=32 shlibsuff=N32 libmagic=N32;;
16644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16646 *) libsuff= shlibsuff= libmagic=never-match;;
16647 esac
16648 ;;
16649 esac
16650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16651 shlibpath_overrides_runpath=no
16652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16654 hardcode_into_libs=yes
16655 ;;
16656
16657# No shared lib support for Linux oldld, aout, or coff.
16658linux*oldld* | linux*aout* | linux*coff*)
16659 dynamic_linker=no
16660 ;;
16661
16662# This must be Linux ELF.
16663linux*)
16664 version_type=linux
16665 need_lib_prefix=no
16666 need_version=no
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 soname_spec='${libname}${release}${shared_ext}$major'
16669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=no
16672 # This implies no fast_install, which is unacceptable.
16673 # Some rework will be needed to allow for fast_install
16674 # before this can be enabled.
16675 hardcode_into_libs=yes
16676
16677 # We used to test for /lib/ld.so.1 and disable shared libraries on
16678 # powerpc, because MkLinux only supported shared libraries with the
16679 # GNU dynamic linker. Since this was broken with cross compilers,
16680 # most powerpc-linux boxes support dynamic linking these days and
16681 # people can always --disable-shared, the test was removed, and we
16682 # assume the GNU/Linux dynamic linker is in use.
16683 dynamic_linker='GNU/Linux ld.so'
16684 ;;
16685
16686netbsd*)
16687 version_type=sunos
16688 need_lib_prefix=no
16689 need_version=no
16690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16693 dynamic_linker='NetBSD (a.out) ld.so'
16694 else
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 dynamic_linker='NetBSD ld.elf_so'
16698 fi
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=yes
16701 hardcode_into_libs=yes
16702 ;;
16703
16704newsos6)
16705 version_type=linux
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 ;;
16710
16711nto-qnx)
16712 version_type=linux
16713 need_lib_prefix=no
16714 need_version=no
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 ;;
16720
16721openbsd*)
16722 version_type=sunos
16723 need_lib_prefix=no
16724 need_version=no
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16729 case $host_os in
16730 openbsd2.[89] | openbsd2.[89].*)
16731 shlibpath_overrides_runpath=no
16732 ;;
16733 *)
16734 shlibpath_overrides_runpath=yes
16735 ;;
16736 esac
16737 else
16738 shlibpath_overrides_runpath=yes
16739 fi
16740 ;;
16741
16742os2*)
16743 libname_spec='$name'
16744 shrext=".dll"
16745 need_lib_prefix=no
16746 library_names_spec='$libname${shared_ext} $libname.a'
16747 dynamic_linker='OS/2 ld.exe'
16748 shlibpath_var=LIBPATH
16749 ;;
16750
16751osf3* | osf4* | osf5*)
16752 version_type=osf
16753 need_lib_prefix=no
16754 need_version=no
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 shlibpath_var=LD_LIBRARY_PATH
16758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16759 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16760 ;;
16761
16762sco3.2v5*)
16763 version_type=osf
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 ;;
16768
16769solaris*)
16770 version_type=linux
16771 need_lib_prefix=no
16772 need_version=no
16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16774 soname_spec='${libname}${release}${shared_ext}$major'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=yes
16777 hardcode_into_libs=yes
16778 # ldd complains unless libraries are executable
16779 postinstall_cmds='chmod +x $lib'
16780 ;;
16781
16782sunos4*)
16783 version_type=sunos
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 shlibpath_overrides_runpath=yes
16788 if test "$with_gnu_ld" = yes; then
16789 need_lib_prefix=no
16790 fi
16791 need_version=yes
16792 ;;
16793
16794sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16795 version_type=linux
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 soname_spec='${libname}${release}${shared_ext}$major'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 case $host_vendor in
16800 sni)
16801 shlibpath_overrides_runpath=no
16802 need_lib_prefix=no
16803 export_dynamic_flag_spec='${wl}-Blargedynsym'
16804 runpath_var=LD_RUN_PATH
16805 ;;
16806 siemens)
16807 need_lib_prefix=no
16808 ;;
16809 motorola)
16810 need_lib_prefix=no
16811 need_version=no
16812 shlibpath_overrides_runpath=no
16813 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16814 ;;
16815 esac
16816 ;;
16817
16818sysv4*MP*)
16819 if test -d /usr/nec ;then
16820 version_type=linux
16821 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16822 soname_spec='$libname${shared_ext}.$major'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 fi
16825 ;;
16826
16827uts4*)
16828 version_type=linux
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 shlibpath_var=LD_LIBRARY_PATH
16832 ;;
16833
16834*)
16835 dynamic_linker=no
16836 ;;
16837esac
16838echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16839echo "${ECHO_T}$dynamic_linker" >&6
16840test "$dynamic_linker" = no && can_build_shared=no
16841
16842if test "x$enable_dlopen" != xyes; then
16843 enable_dlopen=unknown
16844 enable_dlopen_self=unknown
16845 enable_dlopen_self_static=unknown
16846else
16847 lt_cv_dlopen=no
16848 lt_cv_dlopen_libs=
16849
16850 case $host_os in
16851 beos*)
16852 lt_cv_dlopen="load_add_on"
16853 lt_cv_dlopen_libs=
16854 lt_cv_dlopen_self=yes
16855 ;;
16856
16857 mingw* | pw32*)
16858 lt_cv_dlopen="LoadLibrary"
16859 lt_cv_dlopen_libs=
16860 ;;
16861
16862 cygwin*)
16863 lt_cv_dlopen="dlopen"
16864 lt_cv_dlopen_libs=
16865 ;;
16866
16867 darwin*)
16868 # if libdl is installed we need to link against it
16869 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16871if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16873else
16874 ac_check_lib_save_LIBS=$LIBS
16875LIBS="-ldl $LIBS"
16876cat >conftest.$ac_ext <<_ACEOF
16877#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016883
16884/* Override any gcc2 internal prototype to avoid an error. */
16885#ifdef __cplusplus
16886extern "C"
16887#endif
16888/* We use char because int might match the return type of a gcc2
16889 builtin and then its argument prototype would still apply. */
16890char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016891int
16892main ()
16893{
16894dlopen ();
16895 ;
16896 return 0;
16897}
16898_ACEOF
16899rm -f conftest.$ac_objext conftest$ac_exeext
16900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901 (eval $ac_link) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -s conftest$ac_exeext'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 ac_cv_lib_dl_dlopen=yes
16912else
16913 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016914sed 's/^/| /' conftest.$ac_ext >&5
16915
John Criswell47fdd832003-07-14 16:52:07 +000016916ac_cv_lib_dl_dlopen=no
16917fi
16918rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16919LIBS=$ac_check_lib_save_LIBS
16920fi
16921echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16922echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16923if test $ac_cv_lib_dl_dlopen = yes; then
16924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16925else
16926
16927 lt_cv_dlopen="dyld"
16928 lt_cv_dlopen_libs=
16929 lt_cv_dlopen_self=yes
16930
16931fi
16932
16933 ;;
16934
16935 *)
16936 echo "$as_me:$LINENO: checking for shl_load" >&5
16937echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16938if test "${ac_cv_func_shl_load+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 cat >conftest.$ac_ext <<_ACEOF
16942#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016948/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016949 which can conflict with char shl_load (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16952#ifdef __STDC__
16953# include <limits.h>
16954#else
16955# include <assert.h>
16956#endif
John Criswell47fdd832003-07-14 16:52:07 +000016957/* Override any gcc2 internal prototype to avoid an error. */
16958#ifdef __cplusplus
16959extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016960{
John Criswell47fdd832003-07-14 16:52:07 +000016961#endif
16962/* We use char because int might match the return type of a gcc2
16963 builtin and then its argument prototype would still apply. */
16964char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016965/* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
16968#if defined (__stub_shl_load) || defined (__stub___shl_load)
16969choke me
16970#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016971char (*f) () = shl_load;
16972#endif
16973#ifdef __cplusplus
16974}
John Criswell47fdd832003-07-14 16:52:07 +000016975#endif
16976
John Criswell0c38eaf2003-09-10 15:17:25 +000016977int
16978main ()
16979{
16980return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016981 ;
16982 return 0;
16983}
16984_ACEOF
16985rm -f conftest.$ac_objext conftest$ac_exeext
16986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987 (eval $ac_link) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -s conftest$ac_exeext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_func_shl_load=yes
16998else
16999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017000sed 's/^/| /' conftest.$ac_ext >&5
17001
John Criswell47fdd832003-07-14 16:52:07 +000017002ac_cv_func_shl_load=no
17003fi
17004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17005fi
17006echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17007echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17008if test $ac_cv_func_shl_load = yes; then
17009 lt_cv_dlopen="shl_load"
17010else
17011 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17012echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17013if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 ac_check_lib_save_LIBS=$LIBS
17017LIBS="-ldld $LIBS"
17018cat >conftest.$ac_ext <<_ACEOF
17019#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017025
17026/* Override any gcc2 internal prototype to avoid an error. */
17027#ifdef __cplusplus
17028extern "C"
17029#endif
17030/* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17032char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017033int
17034main ()
17035{
17036shl_load ();
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext conftest$ac_exeext
17042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043 (eval $ac_link) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_lib_dld_shl_load=yes
17054else
17055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017056sed 's/^/| /' conftest.$ac_ext >&5
17057
John Criswell47fdd832003-07-14 16:52:07 +000017058ac_cv_lib_dld_shl_load=no
17059fi
17060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061LIBS=$ac_check_lib_save_LIBS
17062fi
17063echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17064echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17065if test $ac_cv_lib_dld_shl_load = yes; then
17066 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17067else
17068 echo "$as_me:$LINENO: checking for dlopen" >&5
17069echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17070if test "${ac_cv_func_dlopen+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072else
17073 cat >conftest.$ac_ext <<_ACEOF
17074#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017075/* confdefs.h. */
17076_ACEOF
17077cat confdefs.h >>conftest.$ac_ext
17078cat >>conftest.$ac_ext <<_ACEOF
17079/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017080/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017081 which can conflict with char dlopen (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17084#ifdef __STDC__
17085# include <limits.h>
17086#else
17087# include <assert.h>
17088#endif
John Criswell47fdd832003-07-14 16:52:07 +000017089/* Override any gcc2 internal prototype to avoid an error. */
17090#ifdef __cplusplus
17091extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017092{
John Criswell47fdd832003-07-14 16:52:07 +000017093#endif
17094/* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
17096char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017097/* The GNU C library defines this for functions which it implements
17098 to always fail with ENOSYS. Some functions are actually named
17099 something starting with __ and the normal name is an alias. */
17100#if defined (__stub_dlopen) || defined (__stub___dlopen)
17101choke me
17102#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017103char (*f) () = dlopen;
17104#endif
17105#ifdef __cplusplus
17106}
John Criswell47fdd832003-07-14 16:52:07 +000017107#endif
17108
John Criswell0c38eaf2003-09-10 15:17:25 +000017109int
17110main ()
17111{
17112return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017113 ;
17114 return 0;
17115}
17116_ACEOF
17117rm -f conftest.$ac_objext conftest$ac_exeext
17118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_cv_func_dlopen=yes
17130else
17131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017132sed 's/^/| /' conftest.$ac_ext >&5
17133
John Criswell47fdd832003-07-14 16:52:07 +000017134ac_cv_func_dlopen=no
17135fi
17136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17137fi
17138echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17139echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17140if test $ac_cv_func_dlopen = yes; then
17141 lt_cv_dlopen="dlopen"
17142else
17143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147else
17148 ac_check_lib_save_LIBS=$LIBS
17149LIBS="-ldl $LIBS"
17150cat >conftest.$ac_ext <<_ACEOF
17151#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017152/* confdefs.h. */
17153_ACEOF
17154cat confdefs.h >>conftest.$ac_ext
17155cat >>conftest.$ac_ext <<_ACEOF
17156/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017157
17158/* Override any gcc2 internal prototype to avoid an error. */
17159#ifdef __cplusplus
17160extern "C"
17161#endif
17162/* We use char because int might match the return type of a gcc2
17163 builtin and then its argument prototype would still apply. */
17164char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017165int
17166main ()
17167{
17168dlopen ();
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173rm -f conftest.$ac_objext conftest$ac_exeext
17174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175 (eval $ac_link) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try='test -s conftest$ac_exeext'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_cv_lib_dl_dlopen=yes
17186else
17187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017188sed 's/^/| /' conftest.$ac_ext >&5
17189
John Criswell47fdd832003-07-14 16:52:07 +000017190ac_cv_lib_dl_dlopen=no
17191fi
17192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17193LIBS=$ac_check_lib_save_LIBS
17194fi
17195echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17196echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17197if test $ac_cv_lib_dl_dlopen = yes; then
17198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17199else
17200 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17201echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17202if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17204else
17205 ac_check_lib_save_LIBS=$LIBS
17206LIBS="-lsvld $LIBS"
17207cat >conftest.$ac_ext <<_ACEOF
17208#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017214
17215/* Override any gcc2 internal prototype to avoid an error. */
17216#ifdef __cplusplus
17217extern "C"
17218#endif
17219/* We use char because int might match the return type of a gcc2
17220 builtin and then its argument prototype would still apply. */
17221char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017222int
17223main ()
17224{
17225dlopen ();
17226 ;
17227 return 0;
17228}
17229_ACEOF
17230rm -f conftest.$ac_objext conftest$ac_exeext
17231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 (eval $ac_link) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_lib_svld_dlopen=yes
17243else
17244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017245sed 's/^/| /' conftest.$ac_ext >&5
17246
John Criswell47fdd832003-07-14 16:52:07 +000017247ac_cv_lib_svld_dlopen=no
17248fi
17249rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17250LIBS=$ac_check_lib_save_LIBS
17251fi
17252echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17253echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17254if test $ac_cv_lib_svld_dlopen = yes; then
17255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17256else
17257 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17258echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17259if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261else
17262 ac_check_lib_save_LIBS=$LIBS
17263LIBS="-ldld $LIBS"
17264cat >conftest.$ac_ext <<_ACEOF
17265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017271
17272/* Override any gcc2 internal prototype to avoid an error. */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276/* We use char because int might match the return type of a gcc2
17277 builtin and then its argument prototype would still apply. */
17278char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017279int
17280main ()
17281{
17282dld_link ();
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
17288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289 (eval $ac_link) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -s conftest$ac_exeext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_cv_lib_dld_dld_link=yes
17300else
17301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017302sed 's/^/| /' conftest.$ac_ext >&5
17303
John Criswell47fdd832003-07-14 16:52:07 +000017304ac_cv_lib_dld_dld_link=no
17305fi
17306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17307LIBS=$ac_check_lib_save_LIBS
17308fi
17309echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17310echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17311if test $ac_cv_lib_dld_dld_link = yes; then
17312 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17313fi
17314
17315
17316fi
17317
17318
17319fi
17320
17321
17322fi
17323
17324
17325fi
17326
17327
17328fi
17329
17330 ;;
17331 esac
17332
17333 if test "x$lt_cv_dlopen" != xno; then
17334 enable_dlopen=yes
17335 else
17336 enable_dlopen=no
17337 fi
17338
17339 case $lt_cv_dlopen in
17340 dlopen)
17341 save_CPPFLAGS="$CPPFLAGS"
17342 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17343
17344 save_LDFLAGS="$LDFLAGS"
17345 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17346
17347 save_LIBS="$LIBS"
17348 LIBS="$lt_cv_dlopen_libs $LIBS"
17349
17350 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17351echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17352if test "${lt_cv_dlopen_self+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354else
17355 if test "$cross_compiling" = yes; then :
17356 lt_cv_dlopen_self=cross
17357else
17358 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17359 lt_status=$lt_dlunknown
17360 cat > conftest.$ac_ext <<EOF
John Criswellf5b55652003-09-30 13:52:11 +000017361#line 17361 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017362#include "confdefs.h"
17363
17364#if HAVE_DLFCN_H
17365#include <dlfcn.h>
17366#endif
17367
17368#include <stdio.h>
17369
17370#ifdef RTLD_GLOBAL
17371# define LT_DLGLOBAL RTLD_GLOBAL
17372#else
17373# ifdef DL_GLOBAL
17374# define LT_DLGLOBAL DL_GLOBAL
17375# else
17376# define LT_DLGLOBAL 0
17377# endif
17378#endif
17379
17380/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17381 find out it does not work in some platform. */
17382#ifndef LT_DLLAZY_OR_NOW
17383# ifdef RTLD_LAZY
17384# define LT_DLLAZY_OR_NOW RTLD_LAZY
17385# else
17386# ifdef DL_LAZY
17387# define LT_DLLAZY_OR_NOW DL_LAZY
17388# else
17389# ifdef RTLD_NOW
17390# define LT_DLLAZY_OR_NOW RTLD_NOW
17391# else
17392# ifdef DL_NOW
17393# define LT_DLLAZY_OR_NOW DL_NOW
17394# else
17395# define LT_DLLAZY_OR_NOW 0
17396# endif
17397# endif
17398# endif
17399# endif
17400#endif
17401
17402#ifdef __cplusplus
17403extern "C" void exit (int);
17404#endif
17405
17406void fnord() { int i=42;}
17407int main ()
17408{
17409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17410 int status = $lt_dlunknown;
17411
17412 if (self)
17413 {
17414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17415 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17416 /* dlclose (self); */
17417 }
17418
17419 exit (status);
17420}
17421EOF
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17427 (./conftest; exit; ) 2>/dev/null
17428 lt_status=$?
17429 case x$lt_status in
17430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17432 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17433 esac
17434 else :
17435 # compilation failed
17436 lt_cv_dlopen_self=no
17437 fi
17438fi
17439rm -fr conftest*
17440
17441
17442fi
17443echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17444echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17445
17446 if test "x$lt_cv_dlopen_self" = xyes; then
17447 LDFLAGS="$LDFLAGS $link_static_flag"
17448 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17449echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17450if test "${lt_cv_dlopen_self_static+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453 if test "$cross_compiling" = yes; then :
17454 lt_cv_dlopen_self_static=cross
17455else
17456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17457 lt_status=$lt_dlunknown
17458 cat > conftest.$ac_ext <<EOF
John Criswellf5b55652003-09-30 13:52:11 +000017459#line 17459 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017460#include "confdefs.h"
17461
17462#if HAVE_DLFCN_H
17463#include <dlfcn.h>
17464#endif
17465
17466#include <stdio.h>
17467
17468#ifdef RTLD_GLOBAL
17469# define LT_DLGLOBAL RTLD_GLOBAL
17470#else
17471# ifdef DL_GLOBAL
17472# define LT_DLGLOBAL DL_GLOBAL
17473# else
17474# define LT_DLGLOBAL 0
17475# endif
17476#endif
17477
17478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17479 find out it does not work in some platform. */
17480#ifndef LT_DLLAZY_OR_NOW
17481# ifdef RTLD_LAZY
17482# define LT_DLLAZY_OR_NOW RTLD_LAZY
17483# else
17484# ifdef DL_LAZY
17485# define LT_DLLAZY_OR_NOW DL_LAZY
17486# else
17487# ifdef RTLD_NOW
17488# define LT_DLLAZY_OR_NOW RTLD_NOW
17489# else
17490# ifdef DL_NOW
17491# define LT_DLLAZY_OR_NOW DL_NOW
17492# else
17493# define LT_DLLAZY_OR_NOW 0
17494# endif
17495# endif
17496# endif
17497# endif
17498#endif
17499
17500#ifdef __cplusplus
17501extern "C" void exit (int);
17502#endif
17503
17504void fnord() { int i=42;}
17505int main ()
17506{
17507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17508 int status = $lt_dlunknown;
17509
17510 if (self)
17511 {
17512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17514 /* dlclose (self); */
17515 }
17516
17517 exit (status);
17518}
17519EOF
17520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521 (eval $ac_link) 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17525 (./conftest; exit; ) 2>/dev/null
17526 lt_status=$?
17527 case x$lt_status in
17528 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17529 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17530 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17531 esac
17532 else :
17533 # compilation failed
17534 lt_cv_dlopen_self_static=no
17535 fi
17536fi
17537rm -fr conftest*
17538
17539
17540fi
17541echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17542echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17543 fi
17544
17545 CPPFLAGS="$save_CPPFLAGS"
17546 LDFLAGS="$save_LDFLAGS"
17547 LIBS="$save_LIBS"
17548 ;;
17549 esac
17550
17551 case $lt_cv_dlopen_self in
17552 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17553 *) enable_dlopen_self=unknown ;;
17554 esac
17555
17556 case $lt_cv_dlopen_self_static in
17557 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17558 *) enable_dlopen_self_static=unknown ;;
17559 esac
17560fi
17561
17562
17563# The else clause should only fire when bootstrapping the
17564# libtool distribution, otherwise you forgot to ship ltmain.sh
17565# with your package, and you will get complaints that there are
17566# no rules to generate ltmain.sh.
17567if test -f "$ltmain"; then
17568 # See if we are running on zsh, and set the options which allow our commands through
17569 # without removal of \ escapes.
17570 if test -n "${ZSH_VERSION+set}" ; then
17571 setopt NO_GLOB_SUBST
17572 fi
17573 # Now quote all the things that may contain metacharacters while being
17574 # careful not to overquote the AC_SUBSTed values. We take copies of the
17575 # variables and quote the copies for generation of the libtool script.
17576 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17579 deplibs_check_method reload_flag reload_cmds need_locks \
17580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17581 lt_cv_sys_global_symbol_to_c_name_address \
17582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17583 old_postinstall_cmds old_postuninstall_cmds \
17584 compiler_GCJ \
17585 CC_GCJ \
17586 LD_GCJ \
17587 lt_prog_compiler_wl_GCJ \
17588 lt_prog_compiler_pic_GCJ \
17589 lt_prog_compiler_static_GCJ \
17590 lt_prog_compiler_no_builtin_flag_GCJ \
17591 export_dynamic_flag_spec_GCJ \
17592 thread_safe_flag_spec_GCJ \
17593 whole_archive_flag_spec_GCJ \
17594 enable_shared_with_static_runtimes_GCJ \
17595 old_archive_cmds_GCJ \
17596 old_archive_from_new_cmds_GCJ \
17597 predep_objects_GCJ \
17598 postdep_objects_GCJ \
17599 predeps_GCJ \
17600 postdeps_GCJ \
17601 compiler_lib_search_path_GCJ \
17602 archive_cmds_GCJ \
17603 archive_expsym_cmds_GCJ \
17604 postinstall_cmds_GCJ \
17605 postuninstall_cmds_GCJ \
17606 old_archive_from_expsyms_cmds_GCJ \
17607 allow_undefined_flag_GCJ \
17608 no_undefined_flag_GCJ \
17609 export_symbols_cmds_GCJ \
17610 hardcode_libdir_flag_spec_GCJ \
17611 hardcode_libdir_flag_spec_ld_GCJ \
17612 hardcode_libdir_separator_GCJ \
17613 hardcode_automatic_GCJ \
17614 module_cmds_GCJ \
17615 module_expsym_cmds_GCJ \
17616 lt_cv_prog_compiler_c_o_GCJ \
17617 exclude_expsyms_GCJ \
17618 include_expsyms_GCJ; do
17619
17620 case $var in
17621 old_archive_cmds_GCJ | \
17622 old_archive_from_new_cmds_GCJ | \
17623 archive_cmds_GCJ | \
17624 archive_expsym_cmds_GCJ | \
17625 module_cmds_GCJ | \
17626 module_expsym_cmds_GCJ | \
17627 old_archive_from_expsyms_cmds_GCJ | \
17628 export_symbols_cmds_GCJ | \
17629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17630 postinstall_cmds | postuninstall_cmds | \
17631 old_postinstall_cmds | old_postuninstall_cmds | \
17632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17633 # Double-quote double-evaled strings.
17634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17635 ;;
17636 *)
17637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17638 ;;
17639 esac
17640 done
17641
17642 case $lt_echo in
17643 *'\$0 --fallback-echo"')
17644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17645 ;;
17646 esac
17647
17648cfgfile="$ofile"
17649
17650 cat <<__EOF__ >> "$cfgfile"
17651# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17652
17653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17654
17655# Shell to use when invoking shell scripts.
17656SHELL=$lt_SHELL
17657
17658# Whether or not to build shared libraries.
17659build_libtool_libs=$enable_shared
17660
17661# Whether or not to build static libraries.
17662build_old_libs=$enable_static
17663
17664# Whether or not to add -lc for building shared libraries.
17665build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17666
17667# Whether or not to disallow shared libs when runtime libs are static
17668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17669
17670# Whether or not to optimize for fast installation.
17671fast_install=$enable_fast_install
17672
17673# The host system.
17674host_alias=$host_alias
17675host=$host
17676
17677# An echo program that does not interpret backslashes.
17678echo=$lt_echo
17679
17680# The archiver.
17681AR=$lt_AR
17682AR_FLAGS=$lt_AR_FLAGS
17683
17684# A C compiler.
17685LTCC=$lt_LTCC
17686
17687# A language-specific compiler.
17688CC=$lt_compiler_GCJ
17689
17690# Is the compiler the GNU C compiler?
17691with_gcc=$GCC_GCJ
17692
17693# An ERE matcher.
17694EGREP=$lt_EGREP
17695
17696# The linker used to build libraries.
17697LD=$lt_LD_GCJ
17698
17699# Whether we need hard or soft links.
17700LN_S=$lt_LN_S
17701
17702# A BSD-compatible nm program.
17703NM=$lt_NM
17704
17705# A symbol stripping program
17706STRIP=$STRIP
17707
17708# Used to examine libraries when file_magic_cmd begins "file"
17709MAGIC_CMD=$MAGIC_CMD
17710
17711# Used on cygwin: DLL creation program.
17712DLLTOOL="$DLLTOOL"
17713
17714# Used on cygwin: object dumper.
17715OBJDUMP="$OBJDUMP"
17716
17717# Used on cygwin: assembler.
17718AS="$AS"
17719
17720# The name of the directory that contains temporary libtool files.
17721objdir=$objdir
17722
17723# How to create reloadable object files.
17724reload_flag=$lt_reload_flag
17725reload_cmds=$lt_reload_cmds
17726
17727# How to pass a linker flag through the compiler.
17728wl=$lt_lt_prog_compiler_wl_GCJ
17729
17730# Object file suffix (normally "o").
17731objext="$ac_objext"
17732
17733# Old archive suffix (normally "a").
17734libext="$libext"
17735
17736# Shared library suffix (normally ".so").
17737shrext='$shrext'
17738
17739# Executable file suffix (normally "").
17740exeext="$exeext"
17741
17742# Additional compiler flags for building library objects.
17743pic_flag=$lt_lt_prog_compiler_pic_GCJ
17744pic_mode=$pic_mode
17745
17746# What is the maximum length of a command?
17747max_cmd_len=$lt_cv_sys_max_cmd_len
17748
17749# Does compiler simultaneously support -c and -o options?
17750compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17751
17752# Must we lock files when doing compilation ?
17753need_locks=$lt_need_locks
17754
17755# Do we need the lib prefix for modules?
17756need_lib_prefix=$need_lib_prefix
17757
17758# Do we need a version for libraries?
17759need_version=$need_version
17760
17761# Whether dlopen is supported.
17762dlopen_support=$enable_dlopen
17763
17764# Whether dlopen of programs is supported.
17765dlopen_self=$enable_dlopen_self
17766
17767# Whether dlopen of statically linked programs is supported.
17768dlopen_self_static=$enable_dlopen_self_static
17769
17770# Compiler flag to prevent dynamic linking.
17771link_static_flag=$lt_lt_prog_compiler_static_GCJ
17772
17773# Compiler flag to turn off builtin functions.
17774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17775
17776# Compiler flag to allow reflexive dlopens.
17777export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17778
17779# Compiler flag to generate shared objects directly from archives.
17780whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17781
17782# Compiler flag to generate thread-safe objects.
17783thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17784
17785# Library versioning type.
17786version_type=$version_type
17787
17788# Format of library name prefix.
17789libname_spec=$lt_libname_spec
17790
17791# List of archive names. First name is the real one, the rest are links.
17792# The last name is the one that the linker finds with -lNAME.
17793library_names_spec=$lt_library_names_spec
17794
17795# The coded name of the library, if different from the real name.
17796soname_spec=$lt_soname_spec
17797
17798# Commands used to build and install an old-style archive.
17799RANLIB=$lt_RANLIB
17800old_archive_cmds=$lt_old_archive_cmds_GCJ
17801old_postinstall_cmds=$lt_old_postinstall_cmds
17802old_postuninstall_cmds=$lt_old_postuninstall_cmds
17803
17804# Create an old-style archive from a shared archive.
17805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17806
17807# Create a temporary old-style archive to link instead of a shared archive.
17808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17809
17810# Commands used to build and install a shared archive.
17811archive_cmds=$lt_archive_cmds_GCJ
17812archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17813postinstall_cmds=$lt_postinstall_cmds
17814postuninstall_cmds=$lt_postuninstall_cmds
17815
17816# Commands used to build a loadable module (assumed same as above if empty)
17817module_cmds=$lt_module_cmds_GCJ
17818module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17819
17820# Commands to strip libraries.
17821old_striplib=$lt_old_striplib
17822striplib=$lt_striplib
17823
17824# Dependencies to place before the objects being linked to create a
17825# shared library.
17826predep_objects=$lt_predep_objects_GCJ
17827
17828# Dependencies to place after the objects being linked to create a
17829# shared library.
17830postdep_objects=$lt_postdep_objects_GCJ
17831
17832# Dependencies to place before the objects being linked to create a
17833# shared library.
17834predeps=$lt_predeps_GCJ
17835
17836# Dependencies to place after the objects being linked to create a
17837# shared library.
17838postdeps=$lt_postdeps_GCJ
17839
17840# The library search path used internally by the compiler when linking
17841# a shared library.
17842compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17843
17844# Method to check whether dependent libraries are shared objects.
17845deplibs_check_method=$lt_deplibs_check_method
17846
17847# Command to use when deplibs_check_method == file_magic.
17848file_magic_cmd=$lt_file_magic_cmd
17849
17850# Flag that allows shared libraries with undefined symbols to be built.
17851allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17852
17853# Flag that forces no undefined symbols.
17854no_undefined_flag=$lt_no_undefined_flag_GCJ
17855
17856# Commands used to finish a libtool library installation in a directory.
17857finish_cmds=$lt_finish_cmds
17858
17859# Same as above, but a single script fragment to be evaled but not shown.
17860finish_eval=$lt_finish_eval
17861
17862# Take the output of nm and produce a listing of raw symbols and C names.
17863global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17864
17865# Transform the output of nm in a proper C declaration
17866global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17867
17868# Transform the output of nm in a C name address pair
17869global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17870
17871# This is the shared library runtime path variable.
17872runpath_var=$runpath_var
17873
17874# This is the shared library path variable.
17875shlibpath_var=$shlibpath_var
17876
17877# Is shlibpath searched before the hard-coded library search path?
17878shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17879
17880# How to hardcode a shared library path into an executable.
17881hardcode_action=$hardcode_action_GCJ
17882
17883# Whether we should hardcode library paths into libraries.
17884hardcode_into_libs=$hardcode_into_libs
17885
17886# Flag to hardcode \$libdir into a binary during linking.
17887# This must work even if \$libdir does not exist.
17888hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17889
17890# If ld is used when linking, flag to hardcode \$libdir into
17891# a binary during linking. This must work even if \$libdir does
17892# not exist.
17893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17894
17895# Whether we need a single -rpath flag with a separated argument.
17896hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17897
17898# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17899# resulting binary.
17900hardcode_direct=$hardcode_direct_GCJ
17901
17902# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17903# resulting binary.
17904hardcode_minus_L=$hardcode_minus_L_GCJ
17905
17906# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17907# the resulting binary.
17908hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17909
17910# Set to yes if building a shared library automatically hardcodes DIR into the library
17911# and all subsequent libraries and executables linked against it.
17912hardcode_automatic=$hardcode_automatic_GCJ
17913
17914# Variables whose values should be saved in libtool wrapper scripts and
17915# restored at relink time.
17916variables_saved_for_relink="$variables_saved_for_relink"
17917
17918# Whether libtool must link a program against all its dependency libraries.
17919link_all_deplibs=$link_all_deplibs_GCJ
17920
17921# Compile-time system search path for libraries
17922sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17923
17924# Run-time system search path for libraries
17925sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17926
17927# Fix the shell variable \$srcfile for the compiler.
17928fix_srcfile_path="$fix_srcfile_path_GCJ"
17929
17930# Set to yes if exported symbols are required.
17931always_export_symbols=$always_export_symbols_GCJ
17932
17933# The commands to list exported symbols.
17934export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17935
17936# The commands to extract the exported symbol list from a shared archive.
17937extract_expsyms_cmds=$lt_extract_expsyms_cmds
17938
17939# Symbols that should not be listed in the preloaded symbols.
17940exclude_expsyms=$lt_exclude_expsyms_GCJ
17941
17942# Symbols that must always be exported.
17943include_expsyms=$lt_include_expsyms_GCJ
17944
17945# ### END LIBTOOL TAG CONFIG: $tagname
17946
17947__EOF__
17948
17949
17950else
17951 # If there is no Makefile yet, we rely on a make rule to execute
17952 # `config.status --recheck' to rerun these tests and create the
17953 # libtool script then.
17954 test -f Makefile && make "$ltmain"
17955fi
17956
17957
17958ac_ext=c
17959ac_cpp='$CPP $CPPFLAGS'
17960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962ac_compiler_gnu=$ac_cv_c_compiler_gnu
17963
17964CC="$lt_save_CC"
17965
17966 else
17967 tagname=""
17968 fi
17969 ;;
17970
17971 RC)
17972
17973
17974
17975# Source file extension for RC test sources.
17976ac_ext=rc
17977
17978# Object file extension for compiled RC test sources.
17979objext=o
17980objext_RC=$objext
17981
17982# Code to be used in simple compile tests
17983lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17984
17985# Code to be used in simple link tests
17986lt_simple_link_test_code="$lt_simple_compile_test_code"
17987
17988# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17989
17990# If no C compiler was specified, use CC.
17991LTCC=${LTCC-"$CC"}
17992
17993# Allow CC to be a program name with arguments.
17994compiler=$CC
17995
17996
17997# Allow CC to be a program name with arguments.
17998lt_save_CC="$CC"
17999CC=${RC-"windres"}
18000compiler=$CC
18001compiler_RC=$CC
18002lt_cv_prog_compiler_c_o_RC=yes
18003
18004# The else clause should only fire when bootstrapping the
18005# libtool distribution, otherwise you forgot to ship ltmain.sh
18006# with your package, and you will get complaints that there are
18007# no rules to generate ltmain.sh.
18008if test -f "$ltmain"; then
18009 # See if we are running on zsh, and set the options which allow our commands through
18010 # without removal of \ escapes.
18011 if test -n "${ZSH_VERSION+set}" ; then
18012 setopt NO_GLOB_SUBST
18013 fi
18014 # Now quote all the things that may contain metacharacters while being
18015 # careful not to overquote the AC_SUBSTed values. We take copies of the
18016 # variables and quote the copies for generation of the libtool script.
18017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18018 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18019 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18020 deplibs_check_method reload_flag reload_cmds need_locks \
18021 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18022 lt_cv_sys_global_symbol_to_c_name_address \
18023 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18024 old_postinstall_cmds old_postuninstall_cmds \
18025 compiler_RC \
18026 CC_RC \
18027 LD_RC \
18028 lt_prog_compiler_wl_RC \
18029 lt_prog_compiler_pic_RC \
18030 lt_prog_compiler_static_RC \
18031 lt_prog_compiler_no_builtin_flag_RC \
18032 export_dynamic_flag_spec_RC \
18033 thread_safe_flag_spec_RC \
18034 whole_archive_flag_spec_RC \
18035 enable_shared_with_static_runtimes_RC \
18036 old_archive_cmds_RC \
18037 old_archive_from_new_cmds_RC \
18038 predep_objects_RC \
18039 postdep_objects_RC \
18040 predeps_RC \
18041 postdeps_RC \
18042 compiler_lib_search_path_RC \
18043 archive_cmds_RC \
18044 archive_expsym_cmds_RC \
18045 postinstall_cmds_RC \
18046 postuninstall_cmds_RC \
18047 old_archive_from_expsyms_cmds_RC \
18048 allow_undefined_flag_RC \
18049 no_undefined_flag_RC \
18050 export_symbols_cmds_RC \
18051 hardcode_libdir_flag_spec_RC \
18052 hardcode_libdir_flag_spec_ld_RC \
18053 hardcode_libdir_separator_RC \
18054 hardcode_automatic_RC \
18055 module_cmds_RC \
18056 module_expsym_cmds_RC \
18057 lt_cv_prog_compiler_c_o_RC \
18058 exclude_expsyms_RC \
18059 include_expsyms_RC; do
18060
18061 case $var in
18062 old_archive_cmds_RC | \
18063 old_archive_from_new_cmds_RC | \
18064 archive_cmds_RC | \
18065 archive_expsym_cmds_RC | \
18066 module_cmds_RC | \
18067 module_expsym_cmds_RC | \
18068 old_archive_from_expsyms_cmds_RC | \
18069 export_symbols_cmds_RC | \
18070 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18071 postinstall_cmds | postuninstall_cmds | \
18072 old_postinstall_cmds | old_postuninstall_cmds | \
18073 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18074 # Double-quote double-evaled strings.
18075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18076 ;;
18077 *)
18078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18079 ;;
18080 esac
18081 done
18082
18083 case $lt_echo in
18084 *'\$0 --fallback-echo"')
18085 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18086 ;;
18087 esac
18088
18089cfgfile="$ofile"
18090
18091 cat <<__EOF__ >> "$cfgfile"
18092# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18093
18094# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18095
18096# Shell to use when invoking shell scripts.
18097SHELL=$lt_SHELL
18098
18099# Whether or not to build shared libraries.
18100build_libtool_libs=$enable_shared
18101
18102# Whether or not to build static libraries.
18103build_old_libs=$enable_static
18104
18105# Whether or not to add -lc for building shared libraries.
18106build_libtool_need_lc=$archive_cmds_need_lc_RC
18107
18108# Whether or not to disallow shared libs when runtime libs are static
18109allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18110
18111# Whether or not to optimize for fast installation.
18112fast_install=$enable_fast_install
18113
18114# The host system.
18115host_alias=$host_alias
18116host=$host
18117
18118# An echo program that does not interpret backslashes.
18119echo=$lt_echo
18120
18121# The archiver.
18122AR=$lt_AR
18123AR_FLAGS=$lt_AR_FLAGS
18124
18125# A C compiler.
18126LTCC=$lt_LTCC
18127
18128# A language-specific compiler.
18129CC=$lt_compiler_RC
18130
18131# Is the compiler the GNU C compiler?
18132with_gcc=$GCC_RC
18133
18134# An ERE matcher.
18135EGREP=$lt_EGREP
18136
18137# The linker used to build libraries.
18138LD=$lt_LD_RC
18139
18140# Whether we need hard or soft links.
18141LN_S=$lt_LN_S
18142
18143# A BSD-compatible nm program.
18144NM=$lt_NM
18145
18146# A symbol stripping program
18147STRIP=$STRIP
18148
18149# Used to examine libraries when file_magic_cmd begins "file"
18150MAGIC_CMD=$MAGIC_CMD
18151
18152# Used on cygwin: DLL creation program.
18153DLLTOOL="$DLLTOOL"
18154
18155# Used on cygwin: object dumper.
18156OBJDUMP="$OBJDUMP"
18157
18158# Used on cygwin: assembler.
18159AS="$AS"
18160
18161# The name of the directory that contains temporary libtool files.
18162objdir=$objdir
18163
18164# How to create reloadable object files.
18165reload_flag=$lt_reload_flag
18166reload_cmds=$lt_reload_cmds
18167
18168# How to pass a linker flag through the compiler.
18169wl=$lt_lt_prog_compiler_wl_RC
18170
18171# Object file suffix (normally "o").
18172objext="$ac_objext"
18173
18174# Old archive suffix (normally "a").
18175libext="$libext"
18176
18177# Shared library suffix (normally ".so").
18178shrext='$shrext'
18179
18180# Executable file suffix (normally "").
18181exeext="$exeext"
18182
18183# Additional compiler flags for building library objects.
18184pic_flag=$lt_lt_prog_compiler_pic_RC
18185pic_mode=$pic_mode
18186
18187# What is the maximum length of a command?
18188max_cmd_len=$lt_cv_sys_max_cmd_len
18189
18190# Does compiler simultaneously support -c and -o options?
18191compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18192
18193# Must we lock files when doing compilation ?
18194need_locks=$lt_need_locks
18195
18196# Do we need the lib prefix for modules?
18197need_lib_prefix=$need_lib_prefix
18198
18199# Do we need a version for libraries?
18200need_version=$need_version
18201
18202# Whether dlopen is supported.
18203dlopen_support=$enable_dlopen
18204
18205# Whether dlopen of programs is supported.
18206dlopen_self=$enable_dlopen_self
18207
18208# Whether dlopen of statically linked programs is supported.
18209dlopen_self_static=$enable_dlopen_self_static
18210
18211# Compiler flag to prevent dynamic linking.
18212link_static_flag=$lt_lt_prog_compiler_static_RC
18213
18214# Compiler flag to turn off builtin functions.
18215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18216
18217# Compiler flag to allow reflexive dlopens.
18218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18219
18220# Compiler flag to generate shared objects directly from archives.
18221whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18222
18223# Compiler flag to generate thread-safe objects.
18224thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18225
18226# Library versioning type.
18227version_type=$version_type
18228
18229# Format of library name prefix.
18230libname_spec=$lt_libname_spec
18231
18232# List of archive names. First name is the real one, the rest are links.
18233# The last name is the one that the linker finds with -lNAME.
18234library_names_spec=$lt_library_names_spec
18235
18236# The coded name of the library, if different from the real name.
18237soname_spec=$lt_soname_spec
18238
18239# Commands used to build and install an old-style archive.
18240RANLIB=$lt_RANLIB
18241old_archive_cmds=$lt_old_archive_cmds_RC
18242old_postinstall_cmds=$lt_old_postinstall_cmds
18243old_postuninstall_cmds=$lt_old_postuninstall_cmds
18244
18245# Create an old-style archive from a shared archive.
18246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18247
18248# Create a temporary old-style archive to link instead of a shared archive.
18249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18250
18251# Commands used to build and install a shared archive.
18252archive_cmds=$lt_archive_cmds_RC
18253archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18254postinstall_cmds=$lt_postinstall_cmds
18255postuninstall_cmds=$lt_postuninstall_cmds
18256
18257# Commands used to build a loadable module (assumed same as above if empty)
18258module_cmds=$lt_module_cmds_RC
18259module_expsym_cmds=$lt_module_expsym_cmds_RC
18260
18261# Commands to strip libraries.
18262old_striplib=$lt_old_striplib
18263striplib=$lt_striplib
18264
18265# Dependencies to place before the objects being linked to create a
18266# shared library.
18267predep_objects=$lt_predep_objects_RC
18268
18269# Dependencies to place after the objects being linked to create a
18270# shared library.
18271postdep_objects=$lt_postdep_objects_RC
18272
18273# Dependencies to place before the objects being linked to create a
18274# shared library.
18275predeps=$lt_predeps_RC
18276
18277# Dependencies to place after the objects being linked to create a
18278# shared library.
18279postdeps=$lt_postdeps_RC
18280
18281# The library search path used internally by the compiler when linking
18282# a shared library.
18283compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18284
18285# Method to check whether dependent libraries are shared objects.
18286deplibs_check_method=$lt_deplibs_check_method
18287
18288# Command to use when deplibs_check_method == file_magic.
18289file_magic_cmd=$lt_file_magic_cmd
18290
18291# Flag that allows shared libraries with undefined symbols to be built.
18292allow_undefined_flag=$lt_allow_undefined_flag_RC
18293
18294# Flag that forces no undefined symbols.
18295no_undefined_flag=$lt_no_undefined_flag_RC
18296
18297# Commands used to finish a libtool library installation in a directory.
18298finish_cmds=$lt_finish_cmds
18299
18300# Same as above, but a single script fragment to be evaled but not shown.
18301finish_eval=$lt_finish_eval
18302
18303# Take the output of nm and produce a listing of raw symbols and C names.
18304global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18305
18306# Transform the output of nm in a proper C declaration
18307global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18308
18309# Transform the output of nm in a C name address pair
18310global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18311
18312# This is the shared library runtime path variable.
18313runpath_var=$runpath_var
18314
18315# This is the shared library path variable.
18316shlibpath_var=$shlibpath_var
18317
18318# Is shlibpath searched before the hard-coded library search path?
18319shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18320
18321# How to hardcode a shared library path into an executable.
18322hardcode_action=$hardcode_action_RC
18323
18324# Whether we should hardcode library paths into libraries.
18325hardcode_into_libs=$hardcode_into_libs
18326
18327# Flag to hardcode \$libdir into a binary during linking.
18328# This must work even if \$libdir does not exist.
18329hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18330
18331# If ld is used when linking, flag to hardcode \$libdir into
18332# a binary during linking. This must work even if \$libdir does
18333# not exist.
18334hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18335
18336# Whether we need a single -rpath flag with a separated argument.
18337hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18338
18339# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18340# resulting binary.
18341hardcode_direct=$hardcode_direct_RC
18342
18343# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18344# resulting binary.
18345hardcode_minus_L=$hardcode_minus_L_RC
18346
18347# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18348# the resulting binary.
18349hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18350
18351# Set to yes if building a shared library automatically hardcodes DIR into the library
18352# and all subsequent libraries and executables linked against it.
18353hardcode_automatic=$hardcode_automatic_RC
18354
18355# Variables whose values should be saved in libtool wrapper scripts and
18356# restored at relink time.
18357variables_saved_for_relink="$variables_saved_for_relink"
18358
18359# Whether libtool must link a program against all its dependency libraries.
18360link_all_deplibs=$link_all_deplibs_RC
18361
18362# Compile-time system search path for libraries
18363sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18364
18365# Run-time system search path for libraries
18366sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18367
18368# Fix the shell variable \$srcfile for the compiler.
18369fix_srcfile_path="$fix_srcfile_path_RC"
18370
18371# Set to yes if exported symbols are required.
18372always_export_symbols=$always_export_symbols_RC
18373
18374# The commands to list exported symbols.
18375export_symbols_cmds=$lt_export_symbols_cmds_RC
18376
18377# The commands to extract the exported symbol list from a shared archive.
18378extract_expsyms_cmds=$lt_extract_expsyms_cmds
18379
18380# Symbols that should not be listed in the preloaded symbols.
18381exclude_expsyms=$lt_exclude_expsyms_RC
18382
18383# Symbols that must always be exported.
18384include_expsyms=$lt_include_expsyms_RC
18385
18386# ### END LIBTOOL TAG CONFIG: $tagname
18387
18388__EOF__
18389
18390
18391else
18392 # If there is no Makefile yet, we rely on a make rule to execute
18393 # `config.status --recheck' to rerun these tests and create the
18394 # libtool script then.
18395 test -f Makefile && make "$ltmain"
18396fi
18397
18398
18399ac_ext=c
18400ac_cpp='$CPP $CPPFLAGS'
18401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404
18405CC="$lt_save_CC"
18406
18407 ;;
18408
18409 *)
18410 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18411echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18412 { (exit 1); exit 1; }; }
18413 ;;
18414 esac
18415
18416 # Append the new tag name to the list of available tags.
18417 if test -n "$tagname" ; then
18418 available_tags="$available_tags $tagname"
18419 fi
18420 fi
18421 done
18422 IFS="$lt_save_ifs"
18423
18424 # Now substitute the updated list of available tags.
18425 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18426 mv "${ofile}T" "$ofile"
18427 chmod +x "$ofile"
18428 else
18429 rm -f "${ofile}T"
18430 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18431echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18432 { (exit 1); exit 1; }; }
18433 fi
18434fi
John Criswell7a73b802003-06-30 21:59:07 +000018435
18436
18437
18438# This can be used to rebuild libtool when needed
18439LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18440
18441# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018442LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018443
18444# Prevent multiple expansion
18445
18446
18447
John Criswell47fdd832003-07-14 16:52:07 +000018448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
John Criswellde00db22003-08-25 16:49:54 +000018466# Extract the first word of "pwd", so it can be a program name with args.
18467set dummy pwd; ac_word=$2
18468echo "$as_me:$LINENO: checking for $ac_word" >&5
18469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18470if test "${ac_cv_path_RPWD+set}" = set; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472else
18473 case $RPWD in
18474 [\\/]* | ?:[\\/]*)
18475 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18476 ;;
18477 *)
18478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18479for as_dir in $PATH
18480do
18481 IFS=$as_save_IFS
18482 test -z "$as_dir" && as_dir=.
18483 for ac_exec_ext in '' $ac_executable_extensions; do
18484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18485 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18487 break 2
18488 fi
18489done
18490done
18491
John Criswell39827c82003-09-23 15:28:52 +000018492 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018493 ;;
18494esac
18495fi
18496RPWD=$ac_cv_path_RPWD
18497
18498if test -n "$RPWD"; then
18499 echo "$as_me:$LINENO: result: $RPWD" >&5
18500echo "${ECHO_T}$RPWD" >&6
18501else
18502 echo "$as_me:$LINENO: result: no" >&5
18503echo "${ECHO_T}no" >&6
18504fi
18505
John Criswell39827c82003-09-23 15:28:52 +000018506if test ${RPWD} = "false"
18507then
18508 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18509echo "$as_me: error: pwd required but not found" >&2;}
18510 { (exit 1); exit 1; }; }
18511fi
18512
John Criswell7a73b802003-06-30 21:59:07 +000018513# Extract the first word of "ar", so it can be a program name with args.
18514set dummy ar; ac_word=$2
18515echo "$as_me:$LINENO: checking for $ac_word" >&5
18516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18517if test "${ac_cv_path_AR+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18519else
18520 case $AR in
18521 [\\/]* | ?:[\\/]*)
18522 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18523 ;;
18524 *)
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526for as_dir in $PATH
18527do
18528 IFS=$as_save_IFS
18529 test -z "$as_dir" && as_dir=.
18530 for ac_exec_ext in '' $ac_executable_extensions; do
18531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18532 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18534 break 2
18535 fi
18536done
18537done
18538
John Criswell39827c82003-09-23 15:28:52 +000018539 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018540 ;;
18541esac
18542fi
18543AR=$ac_cv_path_AR
18544
18545if test -n "$AR"; then
18546 echo "$as_me:$LINENO: result: $AR" >&5
18547echo "${ECHO_T}$AR" >&6
18548else
18549 echo "$as_me:$LINENO: result: no" >&5
18550echo "${ECHO_T}no" >&6
18551fi
18552
John Criswell39827c82003-09-23 15:28:52 +000018553if test ${AR} = "false"
18554then
18555 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18556echo "$as_me: error: ar required but not found" >&2;}
18557 { (exit 1); exit 1; }; }
18558fi
18559
John Criswell7a73b802003-06-30 21:59:07 +000018560# Extract the first word of "sed", so it can be a program name with args.
18561set dummy sed; ac_word=$2
18562echo "$as_me:$LINENO: checking for $ac_word" >&5
18563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18564if test "${ac_cv_path_SED+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566else
18567 case $SED in
18568 [\\/]* | ?:[\\/]*)
18569 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18570 ;;
18571 *)
18572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18573for as_dir in $PATH
18574do
18575 IFS=$as_save_IFS
18576 test -z "$as_dir" && as_dir=.
18577 for ac_exec_ext in '' $ac_executable_extensions; do
18578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18579 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18581 break 2
18582 fi
18583done
18584done
18585
John Criswell39827c82003-09-23 15:28:52 +000018586 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018587 ;;
18588esac
18589fi
18590SED=$ac_cv_path_SED
18591
18592if test -n "$SED"; then
18593 echo "$as_me:$LINENO: result: $SED" >&5
18594echo "${ECHO_T}$SED" >&6
18595else
18596 echo "$as_me:$LINENO: result: no" >&5
18597echo "${ECHO_T}no" >&6
18598fi
18599
John Criswell39827c82003-09-23 15:28:52 +000018600if test ${SED} = "false"
18601then
18602 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18603echo "$as_me: error: sed required but not found" >&2;}
18604 { (exit 1); exit 1; }; }
18605fi
18606
John Criswell7a73b802003-06-30 21:59:07 +000018607# Extract the first word of "rm", so it can be a program name with args.
18608set dummy rm; ac_word=$2
18609echo "$as_me:$LINENO: checking for $ac_word" >&5
18610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18611if test "${ac_cv_path_RM+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614 case $RM in
18615 [\\/]* | ?:[\\/]*)
18616 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18617 ;;
18618 *)
18619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18620for as_dir in $PATH
18621do
18622 IFS=$as_save_IFS
18623 test -z "$as_dir" && as_dir=.
18624 for ac_exec_ext in '' $ac_executable_extensions; do
18625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18626 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18628 break 2
18629 fi
18630done
18631done
18632
John Criswell39827c82003-09-23 15:28:52 +000018633 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018634 ;;
18635esac
18636fi
18637RM=$ac_cv_path_RM
18638
18639if test -n "$RM"; then
18640 echo "$as_me:$LINENO: result: $RM" >&5
18641echo "${ECHO_T}$RM" >&6
18642else
18643 echo "$as_me:$LINENO: result: no" >&5
18644echo "${ECHO_T}no" >&6
18645fi
18646
John Criswell39827c82003-09-23 15:28:52 +000018647if test ${RM} = "false"
18648then
18649 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18650echo "$as_me: error: rm required but not found" >&2;}
18651 { (exit 1); exit 1; }; }
18652fi
18653
John Criswell7a73b802003-06-30 21:59:07 +000018654# Extract the first word of "echo", so it can be a program name with args.
18655set dummy echo; ac_word=$2
18656echo "$as_me:$LINENO: checking for $ac_word" >&5
18657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18658if test "${ac_cv_path_ECHO+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 case $ECHO in
18662 [\\/]* | ?:[\\/]*)
18663 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18664 ;;
18665 *)
18666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667for as_dir in $PATH
18668do
18669 IFS=$as_save_IFS
18670 test -z "$as_dir" && as_dir=.
18671 for ac_exec_ext in '' $ac_executable_extensions; do
18672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18673 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18675 break 2
18676 fi
18677done
18678done
18679
John Criswell39827c82003-09-23 15:28:52 +000018680 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018681 ;;
18682esac
18683fi
18684ECHO=$ac_cv_path_ECHO
18685
18686if test -n "$ECHO"; then
18687 echo "$as_me:$LINENO: result: $ECHO" >&5
18688echo "${ECHO_T}$ECHO" >&6
18689else
18690 echo "$as_me:$LINENO: result: no" >&5
18691echo "${ECHO_T}no" >&6
18692fi
18693
John Criswell39827c82003-09-23 15:28:52 +000018694if test ${ECHO} = "false"
18695then
18696 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18697echo "$as_me: error: echo required but not found" >&2;}
18698 { (exit 1); exit 1; }; }
18699fi
18700
John Criswell7a73b802003-06-30 21:59:07 +000018701# Extract the first word of "mkdir", so it can be a program name with args.
18702set dummy mkdir; ac_word=$2
18703echo "$as_me:$LINENO: checking for $ac_word" >&5
18704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18705if test "${ac_cv_path_MKDIR+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707else
18708 case $MKDIR in
18709 [\\/]* | ?:[\\/]*)
18710 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18711 ;;
18712 *)
18713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18714for as_dir in $PATH
18715do
18716 IFS=$as_save_IFS
18717 test -z "$as_dir" && as_dir=.
18718 for ac_exec_ext in '' $ac_executable_extensions; do
18719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18720 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18722 break 2
18723 fi
18724done
18725done
18726
John Criswell39827c82003-09-23 15:28:52 +000018727 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018728 ;;
18729esac
18730fi
18731MKDIR=$ac_cv_path_MKDIR
18732
18733if test -n "$MKDIR"; then
18734 echo "$as_me:$LINENO: result: $MKDIR" >&5
18735echo "${ECHO_T}$MKDIR" >&6
18736else
18737 echo "$as_me:$LINENO: result: no" >&5
18738echo "${ECHO_T}no" >&6
18739fi
18740
John Criswell39827c82003-09-23 15:28:52 +000018741if test ${MKDIR} = "false"
18742then
18743 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18744echo "$as_me: error: mkdir required but not found" >&2;}
18745 { (exit 1); exit 1; }; }
18746fi
18747
John Criswell7a73b802003-06-30 21:59:07 +000018748# Extract the first word of "date", so it can be a program name with args.
18749set dummy date; ac_word=$2
18750echo "$as_me:$LINENO: checking for $ac_word" >&5
18751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752if test "${ac_cv_path_DATE+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754else
18755 case $DATE in
18756 [\\/]* | ?:[\\/]*)
18757 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18758 ;;
18759 *)
18760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18761for as_dir in $PATH
18762do
18763 IFS=$as_save_IFS
18764 test -z "$as_dir" && as_dir=.
18765 for ac_exec_ext in '' $ac_executable_extensions; do
18766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18767 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18769 break 2
18770 fi
18771done
18772done
18773
John Criswell39827c82003-09-23 15:28:52 +000018774 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018775 ;;
18776esac
18777fi
18778DATE=$ac_cv_path_DATE
18779
18780if test -n "$DATE"; then
18781 echo "$as_me:$LINENO: result: $DATE" >&5
18782echo "${ECHO_T}$DATE" >&6
18783else
18784 echo "$as_me:$LINENO: result: no" >&5
18785echo "${ECHO_T}no" >&6
18786fi
18787
John Criswell39827c82003-09-23 15:28:52 +000018788if test ${DATE} = "false"
18789then
18790 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18791echo "$as_me: error: date required but not found" >&2;}
18792 { (exit 1); exit 1; }; }
18793fi
18794
John Criswell7a73b802003-06-30 21:59:07 +000018795# Extract the first word of "mv", so it can be a program name with args.
18796set dummy mv; ac_word=$2
18797echo "$as_me:$LINENO: checking for $ac_word" >&5
18798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18799if test "${ac_cv_path_MV+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 case $MV in
18803 [\\/]* | ?:[\\/]*)
18804 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18805 ;;
18806 *)
18807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808for as_dir in $PATH
18809do
18810 IFS=$as_save_IFS
18811 test -z "$as_dir" && as_dir=.
18812 for ac_exec_ext in '' $ac_executable_extensions; do
18813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18816 break 2
18817 fi
18818done
18819done
18820
John Criswell39827c82003-09-23 15:28:52 +000018821 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018822 ;;
18823esac
18824fi
18825MV=$ac_cv_path_MV
18826
18827if test -n "$MV"; then
18828 echo "$as_me:$LINENO: result: $MV" >&5
18829echo "${ECHO_T}$MV" >&6
18830else
18831 echo "$as_me:$LINENO: result: no" >&5
18832echo "${ECHO_T}no" >&6
18833fi
18834
John Criswell39827c82003-09-23 15:28:52 +000018835if test ${MV} = "false"
18836then
18837 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18838echo "$as_me: error: mv required but not found" >&2;}
18839 { (exit 1); exit 1; }; }
18840fi
18841
John Criswell7a73b802003-06-30 21:59:07 +000018842# Extract the first word of "dot", so it can be a program name with args.
18843set dummy dot; ac_word=$2
18844echo "$as_me:$LINENO: checking for $ac_word" >&5
18845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18846if test "${ac_cv_path_DOT+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18848else
18849 case $DOT in
18850 [\\/]* | ?:[\\/]*)
18851 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18852 ;;
18853 *)
18854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18855for as_dir in $PATH
18856do
18857 IFS=$as_save_IFS
18858 test -z "$as_dir" && as_dir=.
18859 for ac_exec_ext in '' $ac_executable_extensions; do
18860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18861 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18863 break 2
18864 fi
18865done
18866done
18867
John Criswell39827c82003-09-23 15:28:52 +000018868 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018869 ;;
18870esac
18871fi
18872DOT=$ac_cv_path_DOT
18873
18874if test -n "$DOT"; then
18875 echo "$as_me:$LINENO: result: $DOT" >&5
18876echo "${ECHO_T}$DOT" >&6
18877else
18878 echo "$as_me:$LINENO: result: no" >&5
18879echo "${ECHO_T}no" >&6
18880fi
18881
John Criswell39827c82003-09-23 15:28:52 +000018882
John Criswell7a73b802003-06-30 21:59:07 +000018883# Extract the first word of "etags", so it can be a program name with args.
18884set dummy etags; ac_word=$2
18885echo "$as_me:$LINENO: checking for $ac_word" >&5
18886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18887if test "${ac_cv_path_ETAGS+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890 case $ETAGS in
18891 [\\/]* | ?:[\\/]*)
18892 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18893 ;;
18894 *)
18895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896for as_dir in $PATH
18897do
18898 IFS=$as_save_IFS
18899 test -z "$as_dir" && as_dir=.
18900 for ac_exec_ext in '' $ac_executable_extensions; do
18901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18902 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904 break 2
18905 fi
18906done
18907done
18908
John Criswell39827c82003-09-23 15:28:52 +000018909 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018910 ;;
18911esac
18912fi
18913ETAGS=$ac_cv_path_ETAGS
18914
18915if test -n "$ETAGS"; then
18916 echo "$as_me:$LINENO: result: $ETAGS" >&5
18917echo "${ECHO_T}$ETAGS" >&6
18918else
18919 echo "$as_me:$LINENO: result: no" >&5
18920echo "${ECHO_T}no" >&6
18921fi
18922
John Criswell39827c82003-09-23 15:28:52 +000018923
John Criswell7a73b802003-06-30 21:59:07 +000018924# Extract the first word of "purify", so it can be a program name with args.
18925set dummy purify; ac_word=$2
18926echo "$as_me:$LINENO: checking for $ac_word" >&5
18927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18928if test "${ac_cv_path_PURIFY+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930else
18931 case $PURIFY in
18932 [\\/]* | ?:[\\/]*)
18933 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18934 ;;
18935 *)
18936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18937for as_dir in $PATH
18938do
18939 IFS=$as_save_IFS
18940 test -z "$as_dir" && as_dir=.
18941 for ac_exec_ext in '' $ac_executable_extensions; do
18942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18943 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18945 break 2
18946 fi
18947done
18948done
18949
John Criswell39827c82003-09-23 15:28:52 +000018950 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018951 ;;
18952esac
18953fi
18954PURIFY=$ac_cv_path_PURIFY
18955
18956if test -n "$PURIFY"; then
18957 echo "$as_me:$LINENO: result: $PURIFY" >&5
18958echo "${ECHO_T}$PURIFY" >&6
18959else
18960 echo "$as_me:$LINENO: result: no" >&5
18961echo "${ECHO_T}no" >&6
18962fi
18963
John Criswell39827c82003-09-23 15:28:52 +000018964
John Criswellde00db22003-08-25 16:49:54 +000018965# Extract the first word of "python", so it can be a program name with args.
18966set dummy python; ac_word=$2
18967echo "$as_me:$LINENO: checking for $ac_word" >&5
18968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969if test "${ac_cv_path_PYTHON+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972 case $PYTHON in
18973 [\\/]* | ?:[\\/]*)
18974 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18975 ;;
18976 *)
18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978for as_dir in $PATH
18979do
18980 IFS=$as_save_IFS
18981 test -z "$as_dir" && as_dir=.
18982 for ac_exec_ext in '' $ac_executable_extensions; do
18983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986 break 2
18987 fi
18988done
18989done
18990
John Criswell39827c82003-09-23 15:28:52 +000018991 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018992 ;;
18993esac
18994fi
18995PYTHON=$ac_cv_path_PYTHON
18996
18997if test -n "$PYTHON"; then
18998 echo "$as_me:$LINENO: result: $PYTHON" >&5
18999echo "${ECHO_T}$PYTHON" >&6
19000else
19001 echo "$as_me:$LINENO: result: no" >&5
19002echo "${ECHO_T}no" >&6
19003fi
19004
John Criswell39827c82003-09-23 15:28:52 +000019005if test ${PYTHON} = "false"
19006then
John Criswell61095982003-09-23 20:46:32 +000019007 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19008echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019009fi
19010
John Criswellde00db22003-08-25 16:49:54 +000019011# Extract the first word of "qmtest", so it can be a program name with args.
19012set dummy qmtest; ac_word=$2
19013echo "$as_me:$LINENO: checking for $ac_word" >&5
19014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19015if test "${ac_cv_path_QMTEST+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018 case $QMTEST in
19019 [\\/]* | ?:[\\/]*)
19020 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19021 ;;
19022 *)
19023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19024for as_dir in $PATH
19025do
19026 IFS=$as_save_IFS
19027 test -z "$as_dir" && as_dir=.
19028 for ac_exec_ext in '' $ac_executable_extensions; do
19029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19030 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19032 break 2
19033 fi
19034done
19035done
19036
John Criswell39827c82003-09-23 15:28:52 +000019037 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019038 ;;
19039esac
19040fi
19041QMTEST=$ac_cv_path_QMTEST
19042
19043if test -n "$QMTEST"; then
19044 echo "$as_me:$LINENO: result: $QMTEST" >&5
19045echo "${ECHO_T}$QMTEST" >&6
19046else
19047 echo "$as_me:$LINENO: result: no" >&5
19048echo "${ECHO_T}no" >&6
19049fi
19050
John Criswell39827c82003-09-23 15:28:52 +000019051if test ${QMTEST} = "false"
19052then
John Criswell61095982003-09-23 20:46:32 +000019053 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19054echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019055fi
John Criswellde00db22003-08-25 16:49:54 +000019056
19057pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19058pymajor=`echo $pyversion | cut -d. -f1`
19059pyminor=`echo $pyversion | cut -d. -f2`
19060
19061if test "$pymajor" -ge "2"
19062then
19063 if test "$pymajor" -eq "2"
19064 then
19065 if test "$pyminor" -lt "2"
19066 then
19067 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19068echo "$as_me: error: Python 2.2 or greater required" >&2;}
19069 { (exit 1); exit 1; }; }
19070 fi
19071 fi
19072else
19073 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19074echo "$as_me: error: Python 2.2 or greater required" >&2;}
19075 { (exit 1); exit 1; }; }
19076fi
John Criswell7a73b802003-06-30 21:59:07 +000019077
19078
19079
19080
19081
19082echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19083echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19084if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086else
19087 ac_check_lib_save_LIBS=$LIBS
19088LIBS="-lelf $LIBS"
19089cat >conftest.$ac_ext <<_ACEOF
19090#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019096
19097/* Override any gcc2 internal prototype to avoid an error. */
19098#ifdef __cplusplus
19099extern "C"
19100#endif
19101/* We use char because int might match the return type of a gcc2
19102 builtin and then its argument prototype would still apply. */
19103char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019104int
19105main ()
19106{
19107elf_begin ();
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext conftest$ac_exeext
19113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114 (eval $ac_link) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; }; then
19124 ac_cv_lib_elf_elf_begin=yes
19125else
19126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019127sed 's/^/| /' conftest.$ac_ext >&5
19128
John Criswell7a73b802003-06-30 21:59:07 +000019129ac_cv_lib_elf_elf_begin=no
19130fi
19131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19132LIBS=$ac_check_lib_save_LIBS
19133fi
19134echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19135echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19136if test $ac_cv_lib_elf_elf_begin = yes; then
19137 cat >>confdefs.h <<_ACEOF
19138#define HAVE_LIBELF 1
19139_ACEOF
19140
19141 LIBS="-lelf $LIBS"
19142
19143fi
19144
19145
19146echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19147echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19148if test "${ac_cv_search_dlopen+set}" = set; then
19149 echo $ECHO_N "(cached) $ECHO_C" >&6
19150else
19151 ac_func_search_save_LIBS=$LIBS
19152ac_cv_search_dlopen=no
19153cat >conftest.$ac_ext <<_ACEOF
19154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019160
19161/* Override any gcc2 internal prototype to avoid an error. */
19162#ifdef __cplusplus
19163extern "C"
19164#endif
19165/* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19167char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019168int
19169main ()
19170{
19171dlopen ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19178 (eval $ac_link) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_search_dlopen="none required"
19189else
19190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019191sed 's/^/| /' conftest.$ac_ext >&5
19192
John Criswell7a73b802003-06-30 21:59:07 +000019193fi
19194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19195if test "$ac_cv_search_dlopen" = no; then
19196 for ac_lib in dl; do
19197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19198 cat >conftest.$ac_ext <<_ACEOF
19199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019205
19206/* Override any gcc2 internal prototype to avoid an error. */
19207#ifdef __cplusplus
19208extern "C"
19209#endif
19210/* We use char because int might match the return type of a gcc2
19211 builtin and then its argument prototype would still apply. */
19212char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019213int
19214main ()
19215{
19216dlopen ();
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext conftest$ac_exeext
19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -s conftest$ac_exeext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_cv_search_dlopen="-l$ac_lib"
19234break
19235else
19236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019237sed 's/^/| /' conftest.$ac_ext >&5
19238
John Criswell7a73b802003-06-30 21:59:07 +000019239fi
19240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19241 done
19242fi
19243LIBS=$ac_func_search_save_LIBS
19244fi
19245echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19246echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19247if test "$ac_cv_search_dlopen" != no; then
19248 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19249
19250else
19251 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19252echo "$as_me: error: dlopen() required but not found" >&2;}
19253 { (exit 1); exit 1; }; }
19254fi
19255
19256
19257echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19258echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19259if test "${ac_cv_search_mallinfo+set}" = set; then
19260 echo $ECHO_N "(cached) $ECHO_C" >&6
19261else
19262 ac_func_search_save_LIBS=$LIBS
19263ac_cv_search_mallinfo=no
19264cat >conftest.$ac_ext <<_ACEOF
19265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019266/* confdefs.h. */
19267_ACEOF
19268cat confdefs.h >>conftest.$ac_ext
19269cat >>conftest.$ac_ext <<_ACEOF
19270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019271
19272/* Override any gcc2 internal prototype to avoid an error. */
19273#ifdef __cplusplus
19274extern "C"
19275#endif
19276/* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19278char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019279int
19280main ()
19281{
19282mallinfo ();
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext conftest$ac_exeext
19288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -s conftest$ac_exeext'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_cv_search_mallinfo="none required"
19300else
19301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019302sed 's/^/| /' conftest.$ac_ext >&5
19303
John Criswell7a73b802003-06-30 21:59:07 +000019304fi
19305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19306if test "$ac_cv_search_mallinfo" = no; then
19307 for ac_lib in malloc; do
19308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19309 cat >conftest.$ac_ext <<_ACEOF
19310#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019316
19317/* Override any gcc2 internal prototype to avoid an error. */
19318#ifdef __cplusplus
19319extern "C"
19320#endif
19321/* We use char because int might match the return type of a gcc2
19322 builtin and then its argument prototype would still apply. */
19323char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019324int
19325main ()
19326{
19327mallinfo ();
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext conftest$ac_exeext
19333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19334 (eval $ac_link) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -s conftest$ac_exeext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_search_mallinfo="-l$ac_lib"
19345break
19346else
19347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019348sed 's/^/| /' conftest.$ac_ext >&5
19349
John Criswell7a73b802003-06-30 21:59:07 +000019350fi
19351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19352 done
19353fi
19354LIBS=$ac_func_search_save_LIBS
19355fi
19356echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19357echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19358if test "$ac_cv_search_mallinfo" != no; then
19359 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19360 cat >>confdefs.h <<\_ACEOF
19361#define HAVE_MALLINFO 1
19362_ACEOF
19363
19364fi
19365
19366
19367
19368echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19369echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19370if test "${ac_cv_header_stdc+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
19372else
19373 cat >conftest.$ac_ext <<_ACEOF
19374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019380#include <stdlib.h>
19381#include <stdarg.h>
19382#include <string.h>
19383#include <float.h>
19384
John Criswell0c38eaf2003-09-10 15:17:25 +000019385int
19386main ()
19387{
19388
19389 ;
19390 return 0;
19391}
John Criswell7a73b802003-06-30 21:59:07 +000019392_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019393rm -f conftest.$ac_objext
19394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019396 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019398 (exit $ac_status); } &&
19399 { ac_try='test -s conftest.$ac_objext'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019405 ac_cv_header_stdc=yes
19406else
19407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019408sed 's/^/| /' conftest.$ac_ext >&5
19409
19410ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019411fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019412rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019413
19414if test $ac_cv_header_stdc = yes; then
19415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19416 cat >conftest.$ac_ext <<_ACEOF
19417#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019423#include <string.h>
19424
19425_ACEOF
19426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019427 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019428 :
19429else
19430 ac_cv_header_stdc=no
19431fi
19432rm -f conftest*
19433
19434fi
19435
19436if test $ac_cv_header_stdc = yes; then
19437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19438 cat >conftest.$ac_ext <<_ACEOF
19439#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019440/* confdefs.h. */
19441_ACEOF
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019445#include <stdlib.h>
19446
19447_ACEOF
19448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019449 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019450 :
19451else
19452 ac_cv_header_stdc=no
19453fi
19454rm -f conftest*
19455
19456fi
19457
19458if test $ac_cv_header_stdc = yes; then
19459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19460 if test "$cross_compiling" = yes; then
19461 :
19462else
19463 cat >conftest.$ac_ext <<_ACEOF
19464#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019465/* confdefs.h. */
19466_ACEOF
19467cat confdefs.h >>conftest.$ac_ext
19468cat >>conftest.$ac_ext <<_ACEOF
19469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019470#include <ctype.h>
19471#if ((' ' & 0x0FF) == 0x020)
19472# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19473# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19474#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019475# define ISLOWER(c) \
19476 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019477 || ('j' <= (c) && (c) <= 'r') \
19478 || ('s' <= (c) && (c) <= 'z'))
19479# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19480#endif
19481
19482#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19483int
19484main ()
19485{
19486 int i;
19487 for (i = 0; i < 256; i++)
19488 if (XOR (islower (i), ISLOWER (i))
19489 || toupper (i) != TOUPPER (i))
19490 exit(2);
19491 exit (0);
19492}
19493_ACEOF
19494rm -f conftest$ac_exeext
19495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19496 (eval $ac_link) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19502 ac_status=$?
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; }; then
19505 :
19506else
19507 echo "$as_me: program exited with status $ac_status" >&5
19508echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019509sed 's/^/| /' conftest.$ac_ext >&5
19510
John Criswell7a73b802003-06-30 21:59:07 +000019511( exit $ac_status )
19512ac_cv_header_stdc=no
19513fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019514rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019515fi
19516fi
19517fi
19518echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19519echo "${ECHO_T}$ac_cv_header_stdc" >&6
19520if test $ac_cv_header_stdc = yes; then
19521
19522cat >>confdefs.h <<\_ACEOF
19523#define STDC_HEADERS 1
19524_ACEOF
19525
19526fi
19527
19528echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19529echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19530if test "${ac_cv_header_sys_wait_h+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532else
19533 cat >conftest.$ac_ext <<_ACEOF
19534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019535/* confdefs.h. */
19536_ACEOF
19537cat confdefs.h >>conftest.$ac_ext
19538cat >>conftest.$ac_ext <<_ACEOF
19539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019540#include <sys/types.h>
19541#include <sys/wait.h>
19542#ifndef WEXITSTATUS
19543# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19544#endif
19545#ifndef WIFEXITED
19546# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19547#endif
19548
John Criswell7a73b802003-06-30 21:59:07 +000019549int
19550main ()
19551{
19552 int s;
19553 wait (&s);
19554 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19555 ;
19556 return 0;
19557}
19558_ACEOF
19559rm -f conftest.$ac_objext
19560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_header_sys_wait_h=yes
19572else
19573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019574sed 's/^/| /' conftest.$ac_ext >&5
19575
John Criswell7a73b802003-06-30 21:59:07 +000019576ac_cv_header_sys_wait_h=no
19577fi
19578rm -f conftest.$ac_objext conftest.$ac_ext
19579fi
19580echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19581echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19582if test $ac_cv_header_sys_wait_h = yes; then
19583
19584cat >>confdefs.h <<\_ACEOF
19585#define HAVE_SYS_WAIT_H 1
19586_ACEOF
19587
19588fi
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19600do
19601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19602if eval "test \"\${$as_ac_Header+set}\" = set"; then
19603 echo "$as_me:$LINENO: checking for $ac_header" >&5
19604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19605if eval "test \"\${$as_ac_Header+set}\" = set"; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19607fi
19608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19610else
19611 # Is the header compilable?
19612echo "$as_me:$LINENO: checking $ac_header usability" >&5
19613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19614cat >conftest.$ac_ext <<_ACEOF
19615#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019616/* confdefs.h. */
19617_ACEOF
19618cat confdefs.h >>conftest.$ac_ext
19619cat >>conftest.$ac_ext <<_ACEOF
19620/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019621$ac_includes_default
19622#include <$ac_header>
19623_ACEOF
19624rm -f conftest.$ac_objext
19625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>&5
19627 ac_status=$?
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -s conftest.$ac_objext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_header_compiler=yes
19637else
19638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019639sed 's/^/| /' conftest.$ac_ext >&5
19640
John Criswell7a73b802003-06-30 21:59:07 +000019641ac_header_compiler=no
19642fi
19643rm -f conftest.$ac_objext conftest.$ac_ext
19644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19645echo "${ECHO_T}$ac_header_compiler" >&6
19646
19647# Is the header present?
19648echo "$as_me:$LINENO: checking $ac_header presence" >&5
19649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19650cat >conftest.$ac_ext <<_ACEOF
19651#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019657#include <$ac_header>
19658_ACEOF
19659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19661 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019662 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev/null; then
19667 if test -s conftest.err; then
19668 ac_cpp_err=$ac_c_preproc_warn_flag
19669 else
19670 ac_cpp_err=
19671 fi
19672else
19673 ac_cpp_err=yes
19674fi
19675if test -z "$ac_cpp_err"; then
19676 ac_header_preproc=yes
19677else
19678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019679sed 's/^/| /' conftest.$ac_ext >&5
19680
John Criswell7a73b802003-06-30 21:59:07 +000019681 ac_header_preproc=no
19682fi
19683rm -f conftest.err conftest.$ac_ext
19684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19685echo "${ECHO_T}$ac_header_preproc" >&6
19686
19687# So? What about this header?
19688case $ac_header_compiler:$ac_header_preproc in
19689 yes:no )
19690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19694 (
19695 cat <<\_ASBOX
19696## ------------------------------------ ##
19697## Report this to bug-autoconf@gnu.org. ##
19698## ------------------------------------ ##
19699_ASBOX
19700 ) |
19701 sed "s/^/$as_me: WARNING: /" >&2
19702 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019703 no:yes )
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19710 (
19711 cat <<\_ASBOX
19712## ------------------------------------ ##
19713## Report this to bug-autoconf@gnu.org. ##
19714## ------------------------------------ ##
19715_ASBOX
19716 ) |
19717 sed "s/^/$as_me: WARNING: /" >&2
19718 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019719esac
19720echo "$as_me:$LINENO: checking for $ac_header" >&5
19721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724else
19725 eval "$as_ac_Header=$ac_header_preproc"
19726fi
19727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729
19730fi
19731if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734_ACEOF
19735
19736fi
19737
19738done
19739
19740
19741
19742
19743
19744
19745for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19746do
19747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19748if eval "test \"\${$as_ac_Header+set}\" = set"; then
19749 echo "$as_me:$LINENO: checking for $ac_header" >&5
19750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19751if eval "test \"\${$as_ac_Header+set}\" = set"; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753fi
19754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19756else
19757 # Is the header compilable?
19758echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19760cat >conftest.$ac_ext <<_ACEOF
19761#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019767$ac_includes_default
19768#include <$ac_header>
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -s conftest.$ac_objext'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_header_compiler=yes
19783else
19784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019785sed 's/^/| /' conftest.$ac_ext >&5
19786
John Criswell7a73b802003-06-30 21:59:07 +000019787ac_header_compiler=no
19788fi
19789rm -f conftest.$ac_objext conftest.$ac_ext
19790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19791echo "${ECHO_T}$ac_header_compiler" >&6
19792
19793# Is the header present?
19794echo "$as_me:$LINENO: checking $ac_header presence" >&5
19795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19796cat >conftest.$ac_ext <<_ACEOF
19797#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019798/* confdefs.h. */
19799_ACEOF
19800cat confdefs.h >>conftest.$ac_ext
19801cat >>conftest.$ac_ext <<_ACEOF
19802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019803#include <$ac_header>
19804_ACEOF
19805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19807 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019808 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev/null; then
19813 if test -s conftest.err; then
19814 ac_cpp_err=$ac_c_preproc_warn_flag
19815 else
19816 ac_cpp_err=
19817 fi
19818else
19819 ac_cpp_err=yes
19820fi
19821if test -z "$ac_cpp_err"; then
19822 ac_header_preproc=yes
19823else
19824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019825sed 's/^/| /' conftest.$ac_ext >&5
19826
John Criswell7a73b802003-06-30 21:59:07 +000019827 ac_header_preproc=no
19828fi
19829rm -f conftest.err conftest.$ac_ext
19830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19831echo "${ECHO_T}$ac_header_preproc" >&6
19832
19833# So? What about this header?
19834case $ac_header_compiler:$ac_header_preproc in
19835 yes:no )
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019839echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19840 (
19841 cat <<\_ASBOX
19842## ------------------------------------ ##
19843## Report this to bug-autoconf@gnu.org. ##
19844## ------------------------------------ ##
19845_ASBOX
19846 ) |
19847 sed "s/^/$as_me: WARNING: /" >&2
19848 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019849 no:yes )
19850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19856 (
19857 cat <<\_ASBOX
19858## ------------------------------------ ##
19859## Report this to bug-autoconf@gnu.org. ##
19860## ------------------------------------ ##
19861_ASBOX
19862 ) |
19863 sed "s/^/$as_me: WARNING: /" >&2
19864 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019865esac
19866echo "$as_me:$LINENO: checking for $ac_header" >&5
19867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19868if eval "test \"\${$as_ac_Header+set}\" = set"; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871 eval "$as_ac_Header=$ac_header_preproc"
19872fi
19873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19875
19876fi
19877if test `eval echo '${'$as_ac_Header'}'` = yes; then
19878 cat >>confdefs.h <<_ACEOF
19879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19880_ACEOF
19881
19882fi
19883
19884done
19885
19886
19887
19888
19889for ac_header in dlfcn.h link.h
19890do
19891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19892if eval "test \"\${$as_ac_Header+set}\" = set"; then
19893 echo "$as_me:$LINENO: checking for $ac_header" >&5
19894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19895if eval "test \"\${$as_ac_Header+set}\" = set"; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897fi
19898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19900else
19901 # Is the header compilable?
19902echo "$as_me:$LINENO: checking $ac_header usability" >&5
19903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19904cat >conftest.$ac_ext <<_ACEOF
19905#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019906/* confdefs.h. */
19907_ACEOF
19908cat confdefs.h >>conftest.$ac_ext
19909cat >>conftest.$ac_ext <<_ACEOF
19910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019911$ac_includes_default
19912#include <$ac_header>
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 ac_header_compiler=yes
19927else
19928 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019929sed 's/^/| /' conftest.$ac_ext >&5
19930
John Criswell7a73b802003-06-30 21:59:07 +000019931ac_header_compiler=no
19932fi
19933rm -f conftest.$ac_objext conftest.$ac_ext
19934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935echo "${ECHO_T}$ac_header_compiler" >&6
19936
19937# Is the header present?
19938echo "$as_me:$LINENO: checking $ac_header presence" >&5
19939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19940cat >conftest.$ac_ext <<_ACEOF
19941#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019947#include <$ac_header>
19948_ACEOF
19949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19951 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019952 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } >/dev/null; then
19957 if test -s conftest.err; then
19958 ac_cpp_err=$ac_c_preproc_warn_flag
19959 else
19960 ac_cpp_err=
19961 fi
19962else
19963 ac_cpp_err=yes
19964fi
19965if test -z "$ac_cpp_err"; then
19966 ac_header_preproc=yes
19967else
19968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019969sed 's/^/| /' conftest.$ac_ext >&5
19970
John Criswell7a73b802003-06-30 21:59:07 +000019971 ac_header_preproc=no
19972fi
19973rm -f conftest.err conftest.$ac_ext
19974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975echo "${ECHO_T}$ac_header_preproc" >&6
19976
19977# So? What about this header?
19978case $ac_header_compiler:$ac_header_preproc in
19979 yes:no )
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19984 (
19985 cat <<\_ASBOX
19986## ------------------------------------ ##
19987## Report this to bug-autoconf@gnu.org. ##
19988## ------------------------------------ ##
19989_ASBOX
19990 ) |
19991 sed "s/^/$as_me: WARNING: /" >&2
19992 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019993 no:yes )
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000 (
20001 cat <<\_ASBOX
20002## ------------------------------------ ##
20003## Report this to bug-autoconf@gnu.org. ##
20004## ------------------------------------ ##
20005_ASBOX
20006 ) |
20007 sed "s/^/$as_me: WARNING: /" >&2
20008 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020009esac
20010echo "$as_me:$LINENO: checking for $ac_header" >&5
20011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20012if eval "test \"\${$as_ac_Header+set}\" = set"; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014else
20015 eval "$as_ac_Header=$ac_header_preproc"
20016fi
20017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20018echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20019
20020fi
20021if test `eval echo '${'$as_ac_Header'}'` = yes; then
20022 cat >>confdefs.h <<_ACEOF
20023#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024_ACEOF
20025
20026fi
20027
20028done
20029
20030
20031
John Criswell7a73b802003-06-30 21:59:07 +000020032echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20033echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20034if test "${ac_cv_c_const+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037 cat >conftest.$ac_ext <<_ACEOF
20038#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020039/* confdefs.h. */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020044
John Criswell7a73b802003-06-30 21:59:07 +000020045int
20046main ()
20047{
20048/* FIXME: Include the comments suggested by Paul. */
20049#ifndef __cplusplus
20050 /* Ultrix mips cc rejects this. */
20051 typedef int charset[2];
20052 const charset x;
20053 /* SunOS 4.1.1 cc rejects this. */
20054 char const *const *ccp;
20055 char **p;
20056 /* NEC SVR4.0.2 mips cc rejects this. */
20057 struct point {int x, y;};
20058 static struct point const zero = {0,0};
20059 /* AIX XL C 1.02.0.0 rejects this.
20060 It does not let you subtract one const X* pointer from another in
20061 an arm of an if-expression whose if-part is not a constant
20062 expression */
20063 const char *g = "string";
20064 ccp = &g + (g ? g-g : 0);
20065 /* HPUX 7.0 cc rejects these. */
20066 ++ccp;
20067 p = (char**) ccp;
20068 ccp = (char const *const *) p;
20069 { /* SCO 3.2v4 cc rejects this. */
20070 char *t;
20071 char const *s = 0 ? (char *) 0 : (char const *) 0;
20072
20073 *t++ = 0;
20074 }
20075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20076 int x[] = {25, 17};
20077 const int *foo = &x[0];
20078 ++foo;
20079 }
20080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20081 typedef const int *iptr;
20082 iptr p = 0;
20083 ++p;
20084 }
20085 { /* AIX XL C 1.02.0.0 rejects this saying
20086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20087 struct s { int j; const int *ap[3]; };
20088 struct s *b; b->j = 5;
20089 }
20090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20091 const int foo = 10;
20092 }
20093#endif
20094
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099rm -f conftest.$ac_objext
20100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20101 (eval $ac_compile) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_c_const=yes
20112else
20113 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020114sed 's/^/| /' conftest.$ac_ext >&5
20115
John Criswell7a73b802003-06-30 21:59:07 +000020116ac_cv_c_const=no
20117fi
20118rm -f conftest.$ac_objext conftest.$ac_ext
20119fi
20120echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20121echo "${ECHO_T}$ac_cv_c_const" >&6
20122if test $ac_cv_c_const = no; then
20123
20124cat >>confdefs.h <<\_ACEOF
20125#define const
20126_ACEOF
20127
20128fi
20129
20130echo "$as_me:$LINENO: checking for inline" >&5
20131echo $ECHO_N "checking for inline... $ECHO_C" >&6
20132if test "${ac_cv_c_inline+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134else
20135 ac_cv_c_inline=no
20136for ac_kw in inline __inline__ __inline; do
20137 cat >conftest.$ac_ext <<_ACEOF
20138#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020144#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020145typedef int foo_t;
20146static $ac_kw foo_t static_foo () {return 0; }
20147$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020148#endif
20149
20150_ACEOF
20151rm -f conftest.$ac_objext
20152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20153 (eval $ac_compile) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -s conftest.$ac_objext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_c_inline=$ac_kw; break
20164else
20165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020166sed 's/^/| /' conftest.$ac_ext >&5
20167
John Criswell7a73b802003-06-30 21:59:07 +000020168fi
20169rm -f conftest.$ac_objext conftest.$ac_ext
20170done
20171
20172fi
20173echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20174echo "${ECHO_T}$ac_cv_c_inline" >&6
20175case $ac_cv_c_inline in
20176 inline | yes) ;;
20177 no)
20178cat >>confdefs.h <<\_ACEOF
20179#define inline
20180_ACEOF
20181 ;;
20182 *) cat >>confdefs.h <<_ACEOF
20183#define inline $ac_cv_c_inline
20184_ACEOF
20185 ;;
20186esac
20187
20188
20189echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20190echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20191if test "${ac_cv_c_bigendian+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193else
20194 # See if sys/param.h defines the BYTE_ORDER macro.
20195cat >conftest.$ac_ext <<_ACEOF
20196#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020202#include <sys/types.h>
20203#include <sys/param.h>
20204
John Criswell7a73b802003-06-30 21:59:07 +000020205int
20206main ()
20207{
20208#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20209 bogus endian macros
20210#endif
20211
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218 (eval $ac_compile) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 # It does; now see whether it defined to BIG_ENDIAN or not.
20229cat >conftest.$ac_ext <<_ACEOF
20230#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020236#include <sys/types.h>
20237#include <sys/param.h>
20238
John Criswell7a73b802003-06-30 21:59:07 +000020239int
20240main ()
20241{
20242#if BYTE_ORDER != BIG_ENDIAN
20243 not big endian
20244#endif
20245
20246 ;
20247 return 0;
20248}
20249_ACEOF
20250rm -f conftest.$ac_objext
20251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252 (eval $ac_compile) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_cv_c_bigendian=yes
20263else
20264 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020265sed 's/^/| /' conftest.$ac_ext >&5
20266
John Criswell7a73b802003-06-30 21:59:07 +000020267ac_cv_c_bigendian=no
20268fi
20269rm -f conftest.$ac_objext conftest.$ac_ext
20270else
20271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020272sed 's/^/| /' conftest.$ac_ext >&5
20273
John Criswell7a73b802003-06-30 21:59:07 +000020274# It does not; compile a test program.
20275if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020276 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020277 ac_cv_c_bigendian=unknown
20278 cat >conftest.$ac_ext <<_ACEOF
20279#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020285short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20286short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20287void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20288short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20289short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20290void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020291int
20292main ()
20293{
20294 _ascii (); _ebcdic ();
20295 ;
20296 return 0;
20297}
20298_ACEOF
20299rm -f conftest.$ac_objext
20300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20301 (eval $ac_compile) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -s conftest.$ac_objext'
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020312 ac_cv_c_bigendian=yes
20313fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020314if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020315 if test "$ac_cv_c_bigendian" = unknown; then
20316 ac_cv_c_bigendian=no
20317 else
20318 # finding both strings is unlikely to happen, but who knows?
20319 ac_cv_c_bigendian=unknown
20320 fi
20321fi
20322else
20323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020324sed 's/^/| /' conftest.$ac_ext >&5
20325
John Criswell7a73b802003-06-30 21:59:07 +000020326fi
20327rm -f conftest.$ac_objext conftest.$ac_ext
20328else
20329 cat >conftest.$ac_ext <<_ACEOF
20330#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020331/* confdefs.h. */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020336int
20337main ()
20338{
20339 /* Are we little or big endian? From Harbison&Steele. */
20340 union
20341 {
20342 long l;
20343 char c[sizeof (long)];
20344 } u;
20345 u.l = 1;
20346 exit (u.c[sizeof (long) - 1] == 1);
20347}
20348_ACEOF
20349rm -f conftest$ac_exeext
20350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20351 (eval $ac_link) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_cv_c_bigendian=no
20361else
20362 echo "$as_me: program exited with status $ac_status" >&5
20363echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020364sed 's/^/| /' conftest.$ac_ext >&5
20365
John Criswell7a73b802003-06-30 21:59:07 +000020366( exit $ac_status )
20367ac_cv_c_bigendian=yes
20368fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020369rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020370fi
20371fi
20372rm -f conftest.$ac_objext conftest.$ac_ext
20373fi
20374echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20375echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20376case $ac_cv_c_bigendian in
20377 yes)
20378 cat >>confdefs.h <<\_ACEOF
20379#define ENDIAN_BIG 1
20380_ACEOF
20381 ;;
20382 no)
20383 cat >>confdefs.h <<\_ACEOF
20384#define ENDIAN_LITTLE 1
20385_ACEOF
20386 ;;
20387 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020388 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020389presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020390echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020391presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20392 { (exit 1); exit 1; }; } ;;
20393esac
20394
20395
20396echo "$as_me:$LINENO: checking for pid_t" >&5
20397echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20398if test "${ac_cv_type_pid_t+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
20401 cat >conftest.$ac_ext <<_ACEOF
20402#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020408$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020409int
20410main ()
20411{
20412if ((pid_t *) 0)
20413 return 0;
20414if (sizeof (pid_t))
20415 return 0;
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext
20421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
20426 { ac_try='test -s conftest.$ac_objext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_type_pid_t=yes
20433else
20434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020435sed 's/^/| /' conftest.$ac_ext >&5
20436
John Criswell7a73b802003-06-30 21:59:07 +000020437ac_cv_type_pid_t=no
20438fi
20439rm -f conftest.$ac_objext conftest.$ac_ext
20440fi
20441echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20442echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20443if test $ac_cv_type_pid_t = yes; then
20444 :
20445else
20446
20447cat >>confdefs.h <<_ACEOF
20448#define pid_t int
20449_ACEOF
20450
20451fi
20452
20453echo "$as_me:$LINENO: checking for size_t" >&5
20454echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20455if test "${ac_cv_type_size_t+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20457else
20458 cat >conftest.$ac_ext <<_ACEOF
20459#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020465$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020466int
20467main ()
20468{
20469if ((size_t *) 0)
20470 return 0;
20471if (sizeof (size_t))
20472 return 0;
20473 ;
20474 return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479 (eval $ac_compile) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -s conftest.$ac_objext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20486 ac_status=$?
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_type_size_t=yes
20490else
20491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020492sed 's/^/| /' conftest.$ac_ext >&5
20493
John Criswell7a73b802003-06-30 21:59:07 +000020494ac_cv_type_size_t=no
20495fi
20496rm -f conftest.$ac_objext conftest.$ac_ext
20497fi
20498echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20499echo "${ECHO_T}$ac_cv_type_size_t" >&6
20500if test $ac_cv_type_size_t = yes; then
20501 :
20502else
20503
20504cat >>confdefs.h <<_ACEOF
20505#define size_t unsigned
20506_ACEOF
20507
20508fi
20509
20510echo "$as_me:$LINENO: checking for int64_t" >&5
20511echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20512if test "${ac_cv_type_int64_t+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514else
20515 cat >conftest.$ac_ext <<_ACEOF
20516#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020522$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020523int
20524main ()
20525{
20526if ((int64_t *) 0)
20527 return 0;
20528if (sizeof (int64_t))
20529 return 0;
20530 ;
20531 return 0;
20532}
20533_ACEOF
20534rm -f conftest.$ac_objext
20535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20536 (eval $ac_compile) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -s conftest.$ac_objext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_cv_type_int64_t=yes
20547else
20548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020549sed 's/^/| /' conftest.$ac_ext >&5
20550
John Criswell7a73b802003-06-30 21:59:07 +000020551ac_cv_type_int64_t=no
20552fi
20553rm -f conftest.$ac_objext conftest.$ac_ext
20554fi
20555echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20556echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20557if test $ac_cv_type_int64_t = yes; then
20558
20559cat >>confdefs.h <<_ACEOF
20560#define HAVE_INT64_T 1
20561_ACEOF
20562
20563
20564else
20565 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20566echo "$as_me: error: Type int64_t required but not found" >&2;}
20567 { (exit 1); exit 1; }; }
20568fi
20569
20570echo "$as_me:$LINENO: checking for uint64_t" >&5
20571echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20572if test "${ac_cv_type_uint64_t+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574else
20575 cat >conftest.$ac_ext <<_ACEOF
20576#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020582$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020583int
20584main ()
20585{
20586if ((uint64_t *) 0)
20587 return 0;
20588if (sizeof (uint64_t))
20589 return 0;
20590 ;
20591 return 0;
20592}
20593_ACEOF
20594rm -f conftest.$ac_objext
20595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } &&
20600 { ac_try='test -s conftest.$ac_objext'
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_cv_type_uint64_t=yes
20607else
20608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020609sed 's/^/| /' conftest.$ac_ext >&5
20610
John Criswell7a73b802003-06-30 21:59:07 +000020611ac_cv_type_uint64_t=no
20612fi
20613rm -f conftest.$ac_objext conftest.$ac_ext
20614fi
20615echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20616echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20617if test $ac_cv_type_uint64_t = yes; then
20618
20619cat >>confdefs.h <<_ACEOF
20620#define HAVE_UINT64_T 1
20621_ACEOF
20622
20623
20624else
20625 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20626echo "$as_me: error: Type uint64_t required but not found" >&2;}
20627 { (exit 1); exit 1; }; }
20628fi
20629
20630echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20631echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20632if test "${ac_cv_header_time+set}" = set; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20634else
20635 cat >conftest.$ac_ext <<_ACEOF
20636#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020637/* confdefs.h. */
20638_ACEOF
20639cat confdefs.h >>conftest.$ac_ext
20640cat >>conftest.$ac_ext <<_ACEOF
20641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020642#include <sys/types.h>
20643#include <sys/time.h>
20644#include <time.h>
20645
John Criswell7a73b802003-06-30 21:59:07 +000020646int
20647main ()
20648{
20649if ((struct tm *) 0)
20650return 0;
20651 ;
20652 return 0;
20653}
20654_ACEOF
20655rm -f conftest.$ac_objext
20656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20657 (eval $ac_compile) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } &&
20661 { ac_try='test -s conftest.$ac_objext'
20662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663 (eval $ac_try) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); }; }; then
20667 ac_cv_header_time=yes
20668else
20669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020670sed 's/^/| /' conftest.$ac_ext >&5
20671
John Criswell7a73b802003-06-30 21:59:07 +000020672ac_cv_header_time=no
20673fi
20674rm -f conftest.$ac_objext conftest.$ac_ext
20675fi
20676echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20677echo "${ECHO_T}$ac_cv_header_time" >&6
20678if test $ac_cv_header_time = yes; then
20679
20680cat >>confdefs.h <<\_ACEOF
20681#define TIME_WITH_SYS_TIME 1
20682_ACEOF
20683
20684fi
20685
20686echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20687echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20688if test "${ac_cv_struct_tm+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691 cat >conftest.$ac_ext <<_ACEOF
20692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020693/* confdefs.h. */
20694_ACEOF
20695cat confdefs.h >>conftest.$ac_ext
20696cat >>conftest.$ac_ext <<_ACEOF
20697/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020698#include <sys/types.h>
20699#include <time.h>
20700
John Criswell7a73b802003-06-30 21:59:07 +000020701int
20702main ()
20703{
20704struct tm *tp; tp->tm_sec;
20705 ;
20706 return 0;
20707}
20708_ACEOF
20709rm -f conftest.$ac_objext
20710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20711 (eval $ac_compile) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } &&
20715 { ac_try='test -s conftest.$ac_objext'
20716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717 (eval $ac_try) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); }; }; then
20721 ac_cv_struct_tm=time.h
20722else
20723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020724sed 's/^/| /' conftest.$ac_ext >&5
20725
John Criswell7a73b802003-06-30 21:59:07 +000020726ac_cv_struct_tm=sys/time.h
20727fi
20728rm -f conftest.$ac_objext conftest.$ac_ext
20729fi
20730echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20731echo "${ECHO_T}$ac_cv_struct_tm" >&6
20732if test $ac_cv_struct_tm = sys/time.h; then
20733
20734cat >>confdefs.h <<\_ACEOF
20735#define TM_IN_SYS_TIME 1
20736_ACEOF
20737
20738fi
20739
20740
John Criswell7a73b802003-06-30 21:59:07 +000020741echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20742echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20743if test "${ac_cv_cxx_namespaces+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745else
20746
20747
20748 ac_ext=cc
20749ac_cpp='$CXXCPP $CPPFLAGS'
20750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20753
20754 cat >conftest.$ac_ext <<_ACEOF
20755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020756/* confdefs.h. */
20757_ACEOF
20758cat confdefs.h >>conftest.$ac_ext
20759cat >>conftest.$ac_ext <<_ACEOF
20760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020761namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020762int
20763main ()
20764{
20765using namespace Outer::Inner; return i;
20766 ;
20767 return 0;
20768}
20769_ACEOF
20770rm -f conftest.$ac_objext
20771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20772 (eval $ac_compile) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } &&
20776 { ac_try='test -s conftest.$ac_objext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_cxx_namespaces=yes
20783else
20784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020785sed 's/^/| /' conftest.$ac_ext >&5
20786
John Criswell7a73b802003-06-30 21:59:07 +000020787ac_cv_cxx_namespaces=no
20788fi
20789rm -f conftest.$ac_objext conftest.$ac_ext
20790 ac_ext=c
20791ac_cpp='$CPP $CPPFLAGS'
20792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794ac_compiler_gnu=$ac_cv_c_compiler_gnu
20795
20796
20797fi
20798echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20799echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20800if test "$ac_cv_cxx_namespaces" = yes; then
20801
20802cat >>confdefs.h <<\_ACEOF
20803#define HAVE_NAMESPACES
20804_ACEOF
20805
20806fi
20807
20808echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20809echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20810if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20811 echo $ECHO_N "(cached) $ECHO_C" >&6
20812else
20813
20814
20815
20816 ac_ext=cc
20817ac_cpp='$CXXCPP $CPPFLAGS'
20818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20821
20822 cat >conftest.$ac_ext <<_ACEOF
20823#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020824/* confdefs.h. */
20825_ACEOF
20826cat confdefs.h >>conftest.$ac_ext
20827cat >>conftest.$ac_ext <<_ACEOF
20828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020829#include <ext/hash_map>
20830#ifdef HAVE_NAMESPACES
20831using namespace std;
20832#endif
John Criswell7a73b802003-06-30 21:59:07 +000020833int
20834main ()
20835{
20836hash_map<int, int> t; return 0;
20837 ;
20838 return 0;
20839}
20840_ACEOF
20841rm -f conftest.$ac_objext
20842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20843 (eval $ac_compile) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -s conftest.$ac_objext'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 ac_cv_cxx_have_ext_hash_map=std
20854else
20855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020856sed 's/^/| /' conftest.$ac_ext >&5
20857
John Criswell7a73b802003-06-30 21:59:07 +000020858ac_cv_cxx_have_ext_hash_map=no
20859fi
20860rm -f conftest.$ac_objext conftest.$ac_ext
20861 cat >conftest.$ac_ext <<_ACEOF
20862#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020863/* confdefs.h. */
20864_ACEOF
20865cat confdefs.h >>conftest.$ac_ext
20866cat >>conftest.$ac_ext <<_ACEOF
20867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020868#include <ext/hash_map>
20869#ifdef HAVE_NAMESPACES
20870using namespace __gnu_cxx;
20871#endif
John Criswell7a73b802003-06-30 21:59:07 +000020872int
20873main ()
20874{
20875hash_map<int, int> t; return 0;
20876 ;
20877 return 0;
20878}
20879_ACEOF
20880rm -f conftest.$ac_objext
20881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882 (eval $ac_compile) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -s conftest.$ac_objext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_cxx_have_ext_hash_map=gnu
20893else
20894 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020895sed 's/^/| /' conftest.$ac_ext >&5
20896
John Criswell7a73b802003-06-30 21:59:07 +000020897ac_cv_cxx_have_ext_hash_map=no
20898fi
20899rm -f conftest.$ac_objext conftest.$ac_ext
20900 ac_ext=c
20901ac_cpp='$CPP $CPPFLAGS'
20902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906
20907fi
20908echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20909echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20910if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20911
20912cat >>confdefs.h <<\_ACEOF
20913#define HAVE_STD_EXT_HASH_MAP
20914_ACEOF
20915
20916fi
20917if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20918
20919cat >>confdefs.h <<\_ACEOF
20920#define HAVE_GNU_EXT_HASH_MAP
20921_ACEOF
20922
20923fi
20924
20925echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20926echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20927if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929else
20930
20931
20932
20933 ac_ext=cc
20934ac_cpp='$CXXCPP $CPPFLAGS'
20935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20938
20939 cat >conftest.$ac_ext <<_ACEOF
20940#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020941/* confdefs.h. */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020946#include <ext/hash_set>
20947#ifdef HAVE_NAMESPACES
20948using namespace std;
20949#endif
John Criswell7a73b802003-06-30 21:59:07 +000020950int
20951main ()
20952{
20953hash_set<int> t; return 0;
20954 ;
20955 return 0;
20956}
20957_ACEOF
20958rm -f conftest.$ac_objext
20959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20960 (eval $ac_compile) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -s conftest.$ac_objext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_cxx_have_ext_hash_set=std
20971else
20972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020973sed 's/^/| /' conftest.$ac_ext >&5
20974
John Criswell7a73b802003-06-30 21:59:07 +000020975ac_cv_cxx_have_ext_hash_set=no
20976fi
20977rm -f conftest.$ac_objext conftest.$ac_ext
20978 cat >conftest.$ac_ext <<_ACEOF
20979#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020985#include <ext/hash_set>
20986#ifdef HAVE_NAMESPACES
20987using namespace __gnu_cxx;
20988#endif
John Criswell7a73b802003-06-30 21:59:07 +000020989int
20990main ()
20991{
20992hash_set<int> t; return 0;
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
21003 { ac_try='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_cxx_have_ext_hash_set=gnu
21010else
21011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021012sed 's/^/| /' conftest.$ac_ext >&5
21013
John Criswell7a73b802003-06-30 21:59:07 +000021014ac_cv_cxx_have_ext_hash_set=no
21015fi
21016rm -f conftest.$ac_objext conftest.$ac_ext
21017 ac_ext=c
21018ac_cpp='$CPP $CPPFLAGS'
21019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21021ac_compiler_gnu=$ac_cv_c_compiler_gnu
21022
21023
21024fi
21025echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21026echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21027if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21028
21029cat >>confdefs.h <<\_ACEOF
21030#define HAVE_STD_EXT_HASH_SET
21031_ACEOF
21032
21033fi
21034if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21035
21036cat >>confdefs.h <<\_ACEOF
21037#define HAVE_GNU_EXT_HASH_SET
21038_ACEOF
21039
21040fi
21041
21042echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21043echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21044if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047
21048
21049
21050 ac_ext=cc
21051ac_cpp='$CXXCPP $CPPFLAGS'
21052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21055
21056 cat >conftest.$ac_ext <<_ACEOF
21057#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021058/* confdefs.h. */
21059_ACEOF
21060cat confdefs.h >>conftest.$ac_ext
21061cat >>conftest.$ac_ext <<_ACEOF
21062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021063#include <ext/slist>
21064#ifdef HAVE_NAMESPACES
21065using namespace std;
21066#endif
John Criswell7a73b802003-06-30 21:59:07 +000021067int
21068main ()
21069{
21070slist<int> s; return 0;
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21077 (eval $ac_compile) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_cxx_have_ext_slist=std
21088else
21089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021090sed 's/^/| /' conftest.$ac_ext >&5
21091
John Criswell7a73b802003-06-30 21:59:07 +000021092ac_cv_cxx_have_ext_slist=no
21093fi
21094rm -f conftest.$ac_objext conftest.$ac_ext
21095 cat >conftest.$ac_ext <<_ACEOF
21096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021102#include <ext/slist>
21103#ifdef HAVE_NAMESPACES
21104using namespace __gnu_cxx;
21105#endif
John Criswell7a73b802003-06-30 21:59:07 +000021106int
21107main ()
21108{
21109slist<int> s; return 0;
21110 ;
21111 return 0;
21112}
21113_ACEOF
21114rm -f conftest.$ac_objext
21115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116 (eval $ac_compile) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } &&
21120 { ac_try='test -s conftest.$ac_objext'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ac_cv_cxx_have_ext_slist=gnu
21127else
21128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021129sed 's/^/| /' conftest.$ac_ext >&5
21130
John Criswell7a73b802003-06-30 21:59:07 +000021131ac_cv_cxx_have_ext_slist=no
21132fi
21133rm -f conftest.$ac_objext conftest.$ac_ext
21134
21135 ac_ext=c
21136ac_cpp='$CPP $CPPFLAGS'
21137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21139ac_compiler_gnu=$ac_cv_c_compiler_gnu
21140
21141
21142fi
21143echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21144echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21145if test "$ac_cv_cxx_have_ext_slist" = std; then
21146
21147cat >>confdefs.h <<\_ACEOF
21148#define HAVE_EXT_SLIST std
21149_ACEOF
21150
21151fi
21152if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21153
21154cat >>confdefs.h <<\_ACEOF
21155#define HAVE_EXT_SLIST gnu
21156_ACEOF
21157
21158fi
21159
21160echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21161echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21162if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164else
21165
21166
21167
21168 ac_ext=cc
21169ac_cpp='$CXXCPP $CPPFLAGS'
21170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21173
21174 cat >conftest.$ac_ext <<_ACEOF
21175#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021176/* confdefs.h. */
21177_ACEOF
21178cat confdefs.h >>conftest.$ac_ext
21179cat >>conftest.$ac_ext <<_ACEOF
21180/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021181#include <iterator>
21182#ifdef HAVE_NAMESPACES
21183using namespace std;
21184#endif
John Criswell7a73b802003-06-30 21:59:07 +000021185int
21186main ()
21187{
21188iterator<int,int,int> t; return 0;
21189 ;
21190 return 0;
21191}
21192_ACEOF
21193rm -f conftest.$ac_objext
21194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21195 (eval $ac_compile) 2>&5
21196 ac_status=$?
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
21199 { ac_try='test -s conftest.$ac_objext'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; }; then
21205 ac_cv_cxx_have_std_iterator=yes
21206else
21207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021208sed 's/^/| /' conftest.$ac_ext >&5
21209
John Criswell7a73b802003-06-30 21:59:07 +000021210ac_cv_cxx_have_std_iterator=no
21211fi
21212rm -f conftest.$ac_objext conftest.$ac_ext
21213 ac_ext=c
21214ac_cpp='$CPP $CPPFLAGS'
21215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21217ac_compiler_gnu=$ac_cv_c_compiler_gnu
21218
21219
21220fi
21221echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21222echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21223if test "$ac_cv_cxx_have_std_iterator" = yes; then
21224
21225cat >>confdefs.h <<\_ACEOF
21226#define HAVE_STD_ITERATOR
21227_ACEOF
21228
21229fi
21230
21231echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21232echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21233if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21235else
21236
21237
21238
21239 ac_ext=cc
21240ac_cpp='$CXXCPP $CPPFLAGS'
21241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21244
21245 cat >conftest.$ac_ext <<_ACEOF
21246#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021247/* confdefs.h. */
21248_ACEOF
21249cat confdefs.h >>conftest.$ac_ext
21250cat >>conftest.$ac_ext <<_ACEOF
21251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021252#include <iterator>
21253#ifdef HAVE_NAMESPACES
21254using namespace std;
21255#endif
John Criswell7a73b802003-06-30 21:59:07 +000021256int
21257main ()
21258{
John Criswellc78022e2003-07-29 19:11:58 +000021259bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021260 ;
21261 return 0;
21262}
21263_ACEOF
21264rm -f conftest.$ac_objext
21265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21266 (eval $ac_compile) 2>&5
21267 ac_status=$?
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
21270 { ac_try='test -s conftest.$ac_objext'
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21276 ac_cv_cxx_have_bi_iterator=yes
21277else
21278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021279sed 's/^/| /' conftest.$ac_ext >&5
21280
John Criswell7a73b802003-06-30 21:59:07 +000021281ac_cv_cxx_have_bi_iterator=no
21282fi
21283rm -f conftest.$ac_objext conftest.$ac_ext
21284 ac_ext=c
21285ac_cpp='$CPP $CPPFLAGS'
21286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21288ac_compiler_gnu=$ac_cv_c_compiler_gnu
21289
21290
21291fi
21292echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21293echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21294if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21295
21296cat >>confdefs.h <<\_ACEOF
21297#define HAVE_BI_ITERATOR
21298_ACEOF
21299
21300fi
21301
21302echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21303echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21304if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306else
21307
21308
21309
21310 ac_ext=cc
21311ac_cpp='$CXXCPP $CPPFLAGS'
21312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21315
21316 cat >conftest.$ac_ext <<_ACEOF
21317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021318/* confdefs.h. */
21319_ACEOF
21320cat confdefs.h >>conftest.$ac_ext
21321cat >>conftest.$ac_ext <<_ACEOF
21322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021323#include <iterator>
21324#ifdef HAVE_NAMESPACES
21325using namespace std;
21326#endif
John Criswell7a73b802003-06-30 21:59:07 +000021327int
21328main ()
21329{
John Criswellc78022e2003-07-29 19:11:58 +000021330forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext
21336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21337 (eval $ac_compile) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try='test -s conftest.$ac_objext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_cv_cxx_have_fwd_iterator=yes
21348else
21349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021350sed 's/^/| /' conftest.$ac_ext >&5
21351
John Criswell7a73b802003-06-30 21:59:07 +000021352ac_cv_cxx_have_fwd_iterator=no
21353fi
21354rm -f conftest.$ac_objext conftest.$ac_ext
21355 ac_ext=c
21356ac_cpp='$CPP $CPPFLAGS'
21357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359ac_compiler_gnu=$ac_cv_c_compiler_gnu
21360
21361
21362fi
21363echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21364echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21365if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21366
21367cat >>confdefs.h <<\_ACEOF
21368#define HAVE_FWD_ITERATOR
21369_ACEOF
21370
21371fi
21372
21373
21374# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21375# for constant arguments. Useless!
21376echo "$as_me:$LINENO: checking for working alloca.h" >&5
21377echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21378if test "${ac_cv_working_alloca_h+set}" = set; then
21379 echo $ECHO_N "(cached) $ECHO_C" >&6
21380else
21381 cat >conftest.$ac_ext <<_ACEOF
21382#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021388#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021389int
21390main ()
21391{
21392char *p = (char *) alloca (2 * sizeof (int));
21393 ;
21394 return 0;
21395}
21396_ACEOF
21397rm -f conftest.$ac_objext conftest$ac_exeext
21398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21399 (eval $ac_link) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -s conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 ac_cv_working_alloca_h=yes
21410else
21411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021412sed 's/^/| /' conftest.$ac_ext >&5
21413
John Criswell7a73b802003-06-30 21:59:07 +000021414ac_cv_working_alloca_h=no
21415fi
21416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21417fi
21418echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21419echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21420if test $ac_cv_working_alloca_h = yes; then
21421
21422cat >>confdefs.h <<\_ACEOF
21423#define HAVE_ALLOCA_H 1
21424_ACEOF
21425
21426fi
21427
21428echo "$as_me:$LINENO: checking for alloca" >&5
21429echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21430if test "${ac_cv_func_alloca_works+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21432else
21433 cat >conftest.$ac_ext <<_ACEOF
21434#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021435/* confdefs.h. */
21436_ACEOF
21437cat confdefs.h >>conftest.$ac_ext
21438cat >>conftest.$ac_ext <<_ACEOF
21439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021440#ifdef __GNUC__
21441# define alloca __builtin_alloca
21442#else
21443# ifdef _MSC_VER
21444# include <malloc.h>
21445# define alloca _alloca
21446# else
21447# if HAVE_ALLOCA_H
21448# include <alloca.h>
21449# else
21450# ifdef _AIX
21451 #pragma alloca
21452# else
21453# ifndef alloca /* predefined by HP cc +Olibcalls */
21454char *alloca ();
21455# endif
21456# endif
21457# endif
21458# endif
21459#endif
21460
John Criswell7a73b802003-06-30 21:59:07 +000021461int
21462main ()
21463{
21464char *p = (char *) alloca (1);
21465 ;
21466 return 0;
21467}
21468_ACEOF
21469rm -f conftest.$ac_objext conftest$ac_exeext
21470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21471 (eval $ac_link) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -s conftest$ac_exeext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_func_alloca_works=yes
21482else
21483 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021484sed 's/^/| /' conftest.$ac_ext >&5
21485
John Criswell7a73b802003-06-30 21:59:07 +000021486ac_cv_func_alloca_works=no
21487fi
21488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21489fi
21490echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21491echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21492
21493if test $ac_cv_func_alloca_works = yes; then
21494
21495cat >>confdefs.h <<\_ACEOF
21496#define HAVE_ALLOCA 1
21497_ACEOF
21498
21499else
21500 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21501# that cause trouble. Some versions do not even contain alloca or
21502# contain a buggy version. If you still want to use their alloca,
21503# use ar to extract alloca.o from them instead of compiling alloca.c.
21504
21505ALLOCA=alloca.$ac_objext
21506
21507cat >>confdefs.h <<\_ACEOF
21508#define C_ALLOCA 1
21509_ACEOF
21510
21511
21512echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21513echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21514if test "${ac_cv_os_cray+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 cat >conftest.$ac_ext <<_ACEOF
21518#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021519/* confdefs.h. */
21520_ACEOF
21521cat confdefs.h >>conftest.$ac_ext
21522cat >>conftest.$ac_ext <<_ACEOF
21523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021524#if defined(CRAY) && ! defined(CRAY2)
21525webecray
21526#else
21527wenotbecray
21528#endif
21529
21530_ACEOF
21531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021532 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021533 ac_cv_os_cray=yes
21534else
21535 ac_cv_os_cray=no
21536fi
21537rm -f conftest*
21538
21539fi
21540echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21541echo "${ECHO_T}$ac_cv_os_cray" >&6
21542if test $ac_cv_os_cray = yes; then
21543 for ac_func in _getb67 GETB67 getb67; do
21544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21545echo "$as_me:$LINENO: checking for $ac_func" >&5
21546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21547if eval "test \"\${$as_ac_var+set}\" = set"; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21549else
21550 cat >conftest.$ac_ext <<_ACEOF
21551#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021557/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021558 which can conflict with char $ac_func (); below.
21559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21560 <limits.h> exists even on freestanding compilers. */
21561#ifdef __STDC__
21562# include <limits.h>
21563#else
21564# include <assert.h>
21565#endif
John Criswell7a73b802003-06-30 21:59:07 +000021566/* Override any gcc2 internal prototype to avoid an error. */
21567#ifdef __cplusplus
21568extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021569{
John Criswell7a73b802003-06-30 21:59:07 +000021570#endif
21571/* We use char because int might match the return type of a gcc2
21572 builtin and then its argument prototype would still apply. */
21573char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021574/* The GNU C library defines this for functions which it implements
21575 to always fail with ENOSYS. Some functions are actually named
21576 something starting with __ and the normal name is an alias. */
21577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21578choke me
21579#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021580char (*f) () = $ac_func;
21581#endif
21582#ifdef __cplusplus
21583}
John Criswell7a73b802003-06-30 21:59:07 +000021584#endif
21585
John Criswell0c38eaf2003-09-10 15:17:25 +000021586int
21587main ()
21588{
21589return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021590 ;
21591 return 0;
21592}
21593_ACEOF
21594rm -f conftest.$ac_objext conftest$ac_exeext
21595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21596 (eval $ac_link) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } &&
21600 { ac_try='test -s conftest$ac_exeext'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 eval "$as_ac_var=yes"
21607else
21608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021609sed 's/^/| /' conftest.$ac_ext >&5
21610
John Criswell7a73b802003-06-30 21:59:07 +000021611eval "$as_ac_var=no"
21612fi
21613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21614fi
21615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21617if test `eval echo '${'$as_ac_var'}'` = yes; then
21618
21619cat >>confdefs.h <<_ACEOF
21620#define CRAY_STACKSEG_END $ac_func
21621_ACEOF
21622
21623 break
21624fi
21625
21626 done
21627fi
21628
21629echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21630echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21631if test "${ac_cv_c_stack_direction+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634 if test "$cross_compiling" = yes; then
21635 ac_cv_c_stack_direction=0
21636else
21637 cat >conftest.$ac_ext <<_ACEOF
21638#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021639/* confdefs.h. */
21640_ACEOF
21641cat confdefs.h >>conftest.$ac_ext
21642cat >>conftest.$ac_ext <<_ACEOF
21643/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021644int
21645find_stack_direction ()
21646{
21647 static char *addr = 0;
21648 auto char dummy;
21649 if (addr == 0)
21650 {
21651 addr = &dummy;
21652 return find_stack_direction ();
21653 }
21654 else
21655 return (&dummy > addr) ? 1 : -1;
21656}
21657
21658int
21659main ()
21660{
21661 exit (find_stack_direction () < 0);
21662}
21663_ACEOF
21664rm -f conftest$ac_exeext
21665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21666 (eval $ac_link) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675 ac_cv_c_stack_direction=1
21676else
21677 echo "$as_me: program exited with status $ac_status" >&5
21678echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021679sed 's/^/| /' conftest.$ac_ext >&5
21680
John Criswell7a73b802003-06-30 21:59:07 +000021681( exit $ac_status )
21682ac_cv_c_stack_direction=-1
21683fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021684rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021685fi
21686fi
21687echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21688echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21689
21690cat >>confdefs.h <<_ACEOF
21691#define STACK_DIRECTION $ac_cv_c_stack_direction
21692_ACEOF
21693
21694
21695fi
21696
21697if test $ac_cv_c_compiler_gnu = yes; then
21698 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21699echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21700if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21702else
21703 ac_pattern="Autoconf.*'x'"
21704 cat >conftest.$ac_ext <<_ACEOF
21705#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021706/* confdefs.h. */
21707_ACEOF
21708cat confdefs.h >>conftest.$ac_ext
21709cat >>conftest.$ac_ext <<_ACEOF
21710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021711#include <sgtty.h>
21712Autoconf TIOCGETP
21713_ACEOF
21714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021715 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021716 ac_cv_prog_gcc_traditional=yes
21717else
21718 ac_cv_prog_gcc_traditional=no
21719fi
21720rm -f conftest*
21721
21722
21723 if test $ac_cv_prog_gcc_traditional = no; then
21724 cat >conftest.$ac_ext <<_ACEOF
21725#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021726/* confdefs.h. */
21727_ACEOF
21728cat confdefs.h >>conftest.$ac_ext
21729cat >>conftest.$ac_ext <<_ACEOF
21730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021731#include <termio.h>
21732Autoconf TCGETA
21733_ACEOF
21734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021735 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021736 ac_cv_prog_gcc_traditional=yes
21737fi
21738rm -f conftest*
21739
21740 fi
21741fi
21742echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21743echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21744 if test $ac_cv_prog_gcc_traditional = yes; then
21745 CC="$CC -traditional"
21746 fi
21747fi
21748
21749echo "$as_me:$LINENO: checking for working memcmp" >&5
21750echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21751if test "${ac_cv_func_memcmp_working+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21753else
21754 if test "$cross_compiling" = yes; then
21755 ac_cv_func_memcmp_working=no
21756else
21757 cat >conftest.$ac_ext <<_ACEOF
21758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021759/* confdefs.h. */
21760_ACEOF
21761cat confdefs.h >>conftest.$ac_ext
21762cat >>conftest.$ac_ext <<_ACEOF
21763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021764
John Criswell7a73b802003-06-30 21:59:07 +000021765int
21766main ()
21767{
21768
21769 /* Some versions of memcmp are not 8-bit clean. */
21770 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21771 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21772 exit (1);
21773
21774 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21775 or more and with at least one buffer not starting on a 4-byte boundary.
21776 William Lewis provided this test program. */
21777 {
21778 char foo[21];
21779 char bar[21];
21780 int i;
21781 for (i = 0; i < 4; i++)
21782 {
21783 char *a = foo + i;
21784 char *b = bar + i;
21785 strcpy (a, "--------01111111");
21786 strcpy (b, "--------10000000");
21787 if (memcmp (a, b, 16) >= 0)
21788 exit (1);
21789 }
21790 exit (0);
21791 }
21792
21793 ;
21794 return 0;
21795}
21796_ACEOF
21797rm -f conftest$ac_exeext
21798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799 (eval $ac_link) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; }; then
21808 ac_cv_func_memcmp_working=yes
21809else
21810 echo "$as_me: program exited with status $ac_status" >&5
21811echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021812sed 's/^/| /' conftest.$ac_ext >&5
21813
John Criswell7a73b802003-06-30 21:59:07 +000021814( exit $ac_status )
21815ac_cv_func_memcmp_working=no
21816fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021817rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021818fi
21819fi
21820echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21821echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21822test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21823
21824
21825
21826for ac_header in stdlib.h unistd.h
21827do
21828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21829if eval "test \"\${$as_ac_Header+set}\" = set"; then
21830 echo "$as_me:$LINENO: checking for $ac_header" >&5
21831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21832if eval "test \"\${$as_ac_Header+set}\" = set"; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834fi
21835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21837else
21838 # Is the header compilable?
21839echo "$as_me:$LINENO: checking $ac_header usability" >&5
21840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21841cat >conftest.$ac_ext <<_ACEOF
21842#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021843/* confdefs.h. */
21844_ACEOF
21845cat confdefs.h >>conftest.$ac_ext
21846cat >>conftest.$ac_ext <<_ACEOF
21847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021848$ac_includes_default
21849#include <$ac_header>
21850_ACEOF
21851rm -f conftest.$ac_objext
21852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21853 (eval $ac_compile) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
21857 { ac_try='test -s conftest.$ac_objext'
21858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21859 (eval $ac_try) 2>&5
21860 ac_status=$?
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); }; }; then
21863 ac_header_compiler=yes
21864else
21865 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021866sed 's/^/| /' conftest.$ac_ext >&5
21867
John Criswell7a73b802003-06-30 21:59:07 +000021868ac_header_compiler=no
21869fi
21870rm -f conftest.$ac_objext conftest.$ac_ext
21871echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21872echo "${ECHO_T}$ac_header_compiler" >&6
21873
21874# Is the header present?
21875echo "$as_me:$LINENO: checking $ac_header presence" >&5
21876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21877cat >conftest.$ac_ext <<_ACEOF
21878#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021879/* confdefs.h. */
21880_ACEOF
21881cat confdefs.h >>conftest.$ac_ext
21882cat >>conftest.$ac_ext <<_ACEOF
21883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021884#include <$ac_header>
21885_ACEOF
21886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21888 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021889 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } >/dev/null; then
21894 if test -s conftest.err; then
21895 ac_cpp_err=$ac_c_preproc_warn_flag
21896 else
21897 ac_cpp_err=
21898 fi
21899else
21900 ac_cpp_err=yes
21901fi
21902if test -z "$ac_cpp_err"; then
21903 ac_header_preproc=yes
21904else
21905 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021906sed 's/^/| /' conftest.$ac_ext >&5
21907
John Criswell7a73b802003-06-30 21:59:07 +000021908 ac_header_preproc=no
21909fi
21910rm -f conftest.err conftest.$ac_ext
21911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21912echo "${ECHO_T}$ac_header_preproc" >&6
21913
21914# So? What about this header?
21915case $ac_header_compiler:$ac_header_preproc in
21916 yes:no )
21917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21921 (
21922 cat <<\_ASBOX
21923## ------------------------------------ ##
21924## Report this to bug-autoconf@gnu.org. ##
21925## ------------------------------------ ##
21926_ASBOX
21927 ) |
21928 sed "s/^/$as_me: WARNING: /" >&2
21929 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021930 no:yes )
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21937 (
21938 cat <<\_ASBOX
21939## ------------------------------------ ##
21940## Report this to bug-autoconf@gnu.org. ##
21941## ------------------------------------ ##
21942_ASBOX
21943 ) |
21944 sed "s/^/$as_me: WARNING: /" >&2
21945 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021946esac
21947echo "$as_me:$LINENO: checking for $ac_header" >&5
21948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21949if eval "test \"\${$as_ac_Header+set}\" = set"; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951else
21952 eval "$as_ac_Header=$ac_header_preproc"
21953fi
21954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21956
21957fi
21958if test `eval echo '${'$as_ac_Header'}'` = yes; then
21959 cat >>confdefs.h <<_ACEOF
21960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21961_ACEOF
21962
21963fi
21964
21965done
21966
21967
21968for ac_func in getpagesize
21969do
21970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21971echo "$as_me:$LINENO: checking for $ac_func" >&5
21972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21973if eval "test \"\${$as_ac_var+set}\" = set"; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21975else
21976 cat >conftest.$ac_ext <<_ACEOF
21977#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021978/* confdefs.h. */
21979_ACEOF
21980cat confdefs.h >>conftest.$ac_ext
21981cat >>conftest.$ac_ext <<_ACEOF
21982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021983/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021984 which can conflict with char $ac_func (); below.
21985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21986 <limits.h> exists even on freestanding compilers. */
21987#ifdef __STDC__
21988# include <limits.h>
21989#else
21990# include <assert.h>
21991#endif
John Criswell7a73b802003-06-30 21:59:07 +000021992/* Override any gcc2 internal prototype to avoid an error. */
21993#ifdef __cplusplus
21994extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021995{
John Criswell7a73b802003-06-30 21:59:07 +000021996#endif
21997/* We use char because int might match the return type of a gcc2
21998 builtin and then its argument prototype would still apply. */
21999char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022000/* The GNU C library defines this for functions which it implements
22001 to always fail with ENOSYS. Some functions are actually named
22002 something starting with __ and the normal name is an alias. */
22003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22004choke me
22005#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022006char (*f) () = $ac_func;
22007#endif
22008#ifdef __cplusplus
22009}
John Criswell7a73b802003-06-30 21:59:07 +000022010#endif
22011
John Criswell0c38eaf2003-09-10 15:17:25 +000022012int
22013main ()
22014{
22015return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022016 ;
22017 return 0;
22018}
22019_ACEOF
22020rm -f conftest.$ac_objext conftest$ac_exeext
22021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22022 (eval $ac_link) 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 eval "$as_ac_var=yes"
22033else
22034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022035sed 's/^/| /' conftest.$ac_ext >&5
22036
John Criswell7a73b802003-06-30 21:59:07 +000022037eval "$as_ac_var=no"
22038fi
22039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22040fi
22041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22043if test `eval echo '${'$as_ac_var'}'` = yes; then
22044 cat >>confdefs.h <<_ACEOF
22045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22046_ACEOF
22047
22048fi
22049done
22050
22051echo "$as_me:$LINENO: checking for working mmap" >&5
22052echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22053if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22055else
22056 if test "$cross_compiling" = yes; then
22057 ac_cv_func_mmap_fixed_mapped=no
22058else
22059 cat >conftest.$ac_ext <<_ACEOF
22060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022061/* confdefs.h. */
22062_ACEOF
22063cat confdefs.h >>conftest.$ac_ext
22064cat >>conftest.$ac_ext <<_ACEOF
22065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022066$ac_includes_default
22067/* malloc might have been renamed as rpl_malloc. */
22068#undef malloc
22069
22070/* Thanks to Mike Haertel and Jim Avera for this test.
22071 Here is a matrix of mmap possibilities:
22072 mmap private not fixed
22073 mmap private fixed at somewhere currently unmapped
22074 mmap private fixed at somewhere already mapped
22075 mmap shared not fixed
22076 mmap shared fixed at somewhere currently unmapped
22077 mmap shared fixed at somewhere already mapped
22078 For private mappings, we should verify that changes cannot be read()
22079 back from the file, nor mmap's back from the file at a different
22080 address. (There have been systems where private was not correctly
22081 implemented like the infamous i386 svr4.0, and systems where the
22082 VM page cache was not coherent with the file system buffer cache
22083 like early versions of FreeBSD and possibly contemporary NetBSD.)
22084 For shared mappings, we should conversely verify that changes get
22085 propagated back to all the places they're supposed to be.
22086
22087 Grep wants private fixed already mapped.
22088 The main things grep needs to know about mmap are:
22089 * does it exist and is it safe to write into the mmap'd area
22090 * how to use it (BSD variants) */
22091
22092#include <fcntl.h>
22093#include <sys/mman.h>
22094
22095#if !STDC_HEADERS && !HAVE_STDLIB_H
22096char *malloc ();
22097#endif
22098
22099/* This mess was copied from the GNU getpagesize.h. */
22100#if !HAVE_GETPAGESIZE
22101/* Assume that all systems that can run configure have sys/param.h. */
22102# if !HAVE_SYS_PARAM_H
22103# define HAVE_SYS_PARAM_H 1
22104# endif
22105
22106# ifdef _SC_PAGESIZE
22107# define getpagesize() sysconf(_SC_PAGESIZE)
22108# else /* no _SC_PAGESIZE */
22109# if HAVE_SYS_PARAM_H
22110# include <sys/param.h>
22111# ifdef EXEC_PAGESIZE
22112# define getpagesize() EXEC_PAGESIZE
22113# else /* no EXEC_PAGESIZE */
22114# ifdef NBPG
22115# define getpagesize() NBPG * CLSIZE
22116# ifndef CLSIZE
22117# define CLSIZE 1
22118# endif /* no CLSIZE */
22119# else /* no NBPG */
22120# ifdef NBPC
22121# define getpagesize() NBPC
22122# else /* no NBPC */
22123# ifdef PAGESIZE
22124# define getpagesize() PAGESIZE
22125# endif /* PAGESIZE */
22126# endif /* no NBPC */
22127# endif /* no NBPG */
22128# endif /* no EXEC_PAGESIZE */
22129# else /* no HAVE_SYS_PARAM_H */
22130# define getpagesize() 8192 /* punt totally */
22131# endif /* no HAVE_SYS_PARAM_H */
22132# endif /* no _SC_PAGESIZE */
22133
22134#endif /* no HAVE_GETPAGESIZE */
22135
22136int
22137main ()
22138{
22139 char *data, *data2, *data3;
22140 int i, pagesize;
22141 int fd;
22142
22143 pagesize = getpagesize ();
22144
22145 /* First, make a file with some known garbage in it. */
22146 data = (char *) malloc (pagesize);
22147 if (!data)
22148 exit (1);
22149 for (i = 0; i < pagesize; ++i)
22150 *(data + i) = rand ();
22151 umask (0);
22152 fd = creat ("conftest.mmap", 0600);
22153 if (fd < 0)
22154 exit (1);
22155 if (write (fd, data, pagesize) != pagesize)
22156 exit (1);
22157 close (fd);
22158
22159 /* Next, try to mmap the file at a fixed address which already has
22160 something else allocated at it. If we can, also make sure that
22161 we see the same garbage. */
22162 fd = open ("conftest.mmap", O_RDWR);
22163 if (fd < 0)
22164 exit (1);
22165 data2 = (char *) malloc (2 * pagesize);
22166 if (!data2)
22167 exit (1);
22168 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22169 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22170 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22171 exit (1);
22172 for (i = 0; i < pagesize; ++i)
22173 if (*(data + i) != *(data2 + i))
22174 exit (1);
22175
22176 /* Finally, make sure that changes to the mapped area do not
22177 percolate back to the file as seen by read(). (This is a bug on
22178 some variants of i386 svr4.0.) */
22179 for (i = 0; i < pagesize; ++i)
22180 *(data2 + i) = *(data2 + i) + 1;
22181 data3 = (char *) malloc (pagesize);
22182 if (!data3)
22183 exit (1);
22184 if (read (fd, data3, pagesize) != pagesize)
22185 exit (1);
22186 for (i = 0; i < pagesize; ++i)
22187 if (*(data + i) != *(data3 + i))
22188 exit (1);
22189 close (fd);
22190 exit (0);
22191}
22192_ACEOF
22193rm -f conftest$ac_exeext
22194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22195 (eval $ac_link) 2>&5
22196 ac_status=$?
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; }; then
22204 ac_cv_func_mmap_fixed_mapped=yes
22205else
22206 echo "$as_me: program exited with status $ac_status" >&5
22207echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022208sed 's/^/| /' conftest.$ac_ext >&5
22209
John Criswell7a73b802003-06-30 21:59:07 +000022210( exit $ac_status )
22211ac_cv_func_mmap_fixed_mapped=no
22212fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022213rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022214fi
22215fi
22216echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22217echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22218if test $ac_cv_func_mmap_fixed_mapped = yes; then
22219
22220cat >>confdefs.h <<\_ACEOF
22221#define HAVE_MMAP 1
22222_ACEOF
22223
22224fi
22225rm -f conftest.mmap
22226
22227echo "$as_me:$LINENO: checking for mmap of files" >&5
22228echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22229if test "${ac_cv_func_mmap_file+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22231else
22232
22233
22234 ac_ext=c
22235ac_cpp='$CPP $CPPFLAGS'
22236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22238ac_compiler_gnu=$ac_cv_c_compiler_gnu
22239
22240 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022241 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22242See \`config.log' for more details." >&5
22243echo "$as_me: error: cannot run test program while cross compiling
22244See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022245 { (exit 1); exit 1; }; }
22246else
22247 cat >conftest.$ac_ext <<_ACEOF
22248#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022249/* confdefs.h. */
22250_ACEOF
22251cat confdefs.h >>conftest.$ac_ext
22252cat >>conftest.$ac_ext <<_ACEOF
22253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022254
22255#ifdef HAVE_SYS_MMAN_H
22256#include <sys/mman.h>
22257#endif
22258
22259#ifdef HAVE_SYS_TYPES_H
22260#include <sys/types.h>
22261#endif
22262
22263#ifdef HAVE_FCNTL_H
22264#include <fcntl.h>
22265#endif
22266
22267 int fd;
22268 int main () {
22269 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22270_ACEOF
22271rm -f conftest$ac_exeext
22272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273 (eval $ac_link) 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ac_cv_func_mmap_file=yes
22283else
22284 echo "$as_me: program exited with status $ac_status" >&5
22285echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022286sed 's/^/| /' conftest.$ac_ext >&5
22287
John Criswell7a73b802003-06-30 21:59:07 +000022288( exit $ac_status )
22289ac_cv_func_mmap_file=no
22290fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022291rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022292fi
22293 ac_ext=c
22294ac_cpp='$CPP $CPPFLAGS'
22295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22297ac_compiler_gnu=$ac_cv_c_compiler_gnu
22298
22299
22300fi
22301echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22302echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22303if test "$ac_cv_func_mmap_file" = yes; then
22304 cat >>confdefs.h <<\_ACEOF
22305#define HAVE_MMAP_FILE 1
22306_ACEOF
22307
22308 MMAP_FILE=yes
22309
22310fi
22311
22312if test ${ac_cv_func_mmap_file} = "no"
22313then
22314 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22315echo "$as_me: error: mmap() of files required but not found" >&2;}
22316 { (exit 1); exit 1; }; }
22317fi
22318echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22319echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22320if test "${ac_cv_header_mmap_anon+set}" = set; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322else
22323
22324
22325 ac_ext=c
22326ac_cpp='$CPP $CPPFLAGS'
22327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22329ac_compiler_gnu=$ac_cv_c_compiler_gnu
22330
22331 cat >conftest.$ac_ext <<_ACEOF
22332#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022338#include <sys/mman.h>
22339 #include <unistd.h>
22340 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022341int
22342main ()
22343{
22344mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22345 ;
22346 return 0;
22347}
22348_ACEOF
22349rm -f conftest.$ac_objext
22350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22351 (eval $ac_compile) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } &&
22355 { ac_try='test -s conftest.$ac_objext'
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; }; then
22361 ac_cv_header_mmap_anon=yes
22362else
22363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022364sed 's/^/| /' conftest.$ac_ext >&5
22365
John Criswell7a73b802003-06-30 21:59:07 +000022366ac_cv_header_mmap_anon=no
22367fi
22368rm -f conftest.$ac_objext conftest.$ac_ext
22369 ac_ext=c
22370ac_cpp='$CPP $CPPFLAGS'
22371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22373ac_compiler_gnu=$ac_cv_c_compiler_gnu
22374
22375
22376fi
22377echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22378echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22379if test "$ac_cv_header_mmap_anon" = yes; then
22380 cat >>confdefs.h <<\_ACEOF
22381#define HAVE_MMAP_ANONYMOUS 1
22382_ACEOF
22383
22384fi
22385
22386echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22387echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22388if test "${ac_cv_type_signal+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22390else
22391 cat >conftest.$ac_ext <<_ACEOF
22392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022393/* confdefs.h. */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022398#include <sys/types.h>
22399#include <signal.h>
22400#ifdef signal
22401# undef signal
22402#endif
22403#ifdef __cplusplus
22404extern "C" void (*signal (int, void (*)(int)))(int);
22405#else
22406void (*signal ()) ();
22407#endif
22408
John Criswell7a73b802003-06-30 21:59:07 +000022409int
22410main ()
22411{
22412int i;
22413 ;
22414 return 0;
22415}
22416_ACEOF
22417rm -f conftest.$ac_objext
22418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22419 (eval $ac_compile) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } &&
22423 { ac_try='test -s conftest.$ac_objext'
22424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425 (eval $ac_try) 2>&5
22426 ac_status=$?
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); }; }; then
22429 ac_cv_type_signal=void
22430else
22431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022432sed 's/^/| /' conftest.$ac_ext >&5
22433
John Criswell7a73b802003-06-30 21:59:07 +000022434ac_cv_type_signal=int
22435fi
22436rm -f conftest.$ac_objext conftest.$ac_ext
22437fi
22438echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22439echo "${ECHO_T}$ac_cv_type_signal" >&6
22440
22441cat >>confdefs.h <<_ACEOF
22442#define RETSIGTYPE $ac_cv_type_signal
22443_ACEOF
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22456do
22457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22458echo "$as_me:$LINENO: checking for $ac_func" >&5
22459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22460if eval "test \"\${$as_ac_var+set}\" = set"; then
22461 echo $ECHO_N "(cached) $ECHO_C" >&6
22462else
22463 cat >conftest.$ac_ext <<_ACEOF
22464#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022465/* confdefs.h. */
22466_ACEOF
22467cat confdefs.h >>conftest.$ac_ext
22468cat >>conftest.$ac_ext <<_ACEOF
22469/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022470/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022471 which can conflict with char $ac_func (); below.
22472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22473 <limits.h> exists even on freestanding compilers. */
22474#ifdef __STDC__
22475# include <limits.h>
22476#else
22477# include <assert.h>
22478#endif
John Criswell7a73b802003-06-30 21:59:07 +000022479/* Override any gcc2 internal prototype to avoid an error. */
22480#ifdef __cplusplus
22481extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022482{
John Criswell7a73b802003-06-30 21:59:07 +000022483#endif
22484/* We use char because int might match the return type of a gcc2
22485 builtin and then its argument prototype would still apply. */
22486char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022487/* The GNU C library defines this for functions which it implements
22488 to always fail with ENOSYS. Some functions are actually named
22489 something starting with __ and the normal name is an alias. */
22490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22491choke me
22492#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022493char (*f) () = $ac_func;
22494#endif
22495#ifdef __cplusplus
22496}
John Criswell7a73b802003-06-30 21:59:07 +000022497#endif
22498
John Criswell0c38eaf2003-09-10 15:17:25 +000022499int
22500main ()
22501{
22502return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022503 ;
22504 return 0;
22505}
22506_ACEOF
22507rm -f conftest.$ac_objext conftest$ac_exeext
22508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509 (eval $ac_link) 2>&5
22510 ac_status=$?
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } &&
22513 { ac_try='test -s conftest$ac_exeext'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; }; then
22519 eval "$as_ac_var=yes"
22520else
22521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022522sed 's/^/| /' conftest.$ac_ext >&5
22523
John Criswell7a73b802003-06-30 21:59:07 +000022524eval "$as_ac_var=no"
22525fi
22526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22527fi
22528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22530if test `eval echo '${'$as_ac_var'}'` = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22533_ACEOF
22534
22535fi
22536done
22537
22538
22539
22540echo "$as_me:$LINENO: checking for mmap" >&5
22541echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22542if test "${ac_cv_func_mmap+set}" = set; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22544else
22545 cat >conftest.$ac_ext <<_ACEOF
22546#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022552/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022553 which can conflict with char mmap (); below.
22554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22555 <limits.h> exists even on freestanding compilers. */
22556#ifdef __STDC__
22557# include <limits.h>
22558#else
22559# include <assert.h>
22560#endif
John Criswell7a73b802003-06-30 21:59:07 +000022561/* Override any gcc2 internal prototype to avoid an error. */
22562#ifdef __cplusplus
22563extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022564{
John Criswell7a73b802003-06-30 21:59:07 +000022565#endif
22566/* We use char because int might match the return type of a gcc2
22567 builtin and then its argument prototype would still apply. */
22568char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022569/* The GNU C library defines this for functions which it implements
22570 to always fail with ENOSYS. Some functions are actually named
22571 something starting with __ and the normal name is an alias. */
22572#if defined (__stub_mmap) || defined (__stub___mmap)
22573choke me
22574#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022575char (*f) () = mmap;
22576#endif
22577#ifdef __cplusplus
22578}
John Criswell7a73b802003-06-30 21:59:07 +000022579#endif
22580
John Criswell0c38eaf2003-09-10 15:17:25 +000022581int
22582main ()
22583{
22584return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022585 ;
22586 return 0;
22587}
22588_ACEOF
22589rm -f conftest.$ac_objext conftest$ac_exeext
22590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591 (eval $ac_link) 2>&5
22592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try='test -s conftest$ac_exeext'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 ac_cv_func_mmap=yes
22602else
22603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022604sed 's/^/| /' conftest.$ac_ext >&5
22605
John Criswell7a73b802003-06-30 21:59:07 +000022606ac_cv_func_mmap=no
22607fi
22608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22609fi
22610echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22611echo "${ECHO_T}$ac_cv_func_mmap" >&6
22612if test $ac_cv_func_mmap = yes; then
22613 :
22614else
22615 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22616echo "$as_me: error: Function mmap() required but not found" >&2;}
22617 { (exit 1); exit 1; }; }
22618fi
22619
22620echo "$as_me:$LINENO: checking for mprotect" >&5
22621echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22622if test "${ac_cv_func_mprotect+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22624else
22625 cat >conftest.$ac_ext <<_ACEOF
22626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022627/* confdefs.h. */
22628_ACEOF
22629cat confdefs.h >>conftest.$ac_ext
22630cat >>conftest.$ac_ext <<_ACEOF
22631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022632/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022633 which can conflict with char mprotect (); below.
22634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22635 <limits.h> exists even on freestanding compilers. */
22636#ifdef __STDC__
22637# include <limits.h>
22638#else
22639# include <assert.h>
22640#endif
John Criswell7a73b802003-06-30 21:59:07 +000022641/* Override any gcc2 internal prototype to avoid an error. */
22642#ifdef __cplusplus
22643extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022644{
John Criswell7a73b802003-06-30 21:59:07 +000022645#endif
22646/* We use char because int might match the return type of a gcc2
22647 builtin and then its argument prototype would still apply. */
22648char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022649/* The GNU C library defines this for functions which it implements
22650 to always fail with ENOSYS. Some functions are actually named
22651 something starting with __ and the normal name is an alias. */
22652#if defined (__stub_mprotect) || defined (__stub___mprotect)
22653choke me
22654#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022655char (*f) () = mprotect;
22656#endif
22657#ifdef __cplusplus
22658}
John Criswell7a73b802003-06-30 21:59:07 +000022659#endif
22660
John Criswell0c38eaf2003-09-10 15:17:25 +000022661int
22662main ()
22663{
22664return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022665 ;
22666 return 0;
22667}
22668_ACEOF
22669rm -f conftest.$ac_objext conftest$ac_exeext
22670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22671 (eval $ac_link) 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } &&
22675 { ac_try='test -s conftest$ac_exeext'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 ac_cv_func_mprotect=yes
22682else
22683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022684sed 's/^/| /' conftest.$ac_ext >&5
22685
John Criswell7a73b802003-06-30 21:59:07 +000022686ac_cv_func_mprotect=no
22687fi
22688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22689fi
22690echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22691echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22692if test $ac_cv_func_mprotect = yes; then
22693 :
22694else
22695 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22696echo "$as_me: error: Function mprotect() required but not found" >&2;}
22697 { (exit 1); exit 1; }; }
22698fi
22699
22700
John Criswellb13092b2003-07-22 21:00:24 +000022701
John Criswell7a73b802003-06-30 21:59:07 +000022702# Check whether --enable-purify or --disable-purify was given.
22703if test "${enable_purify+set}" = set; then
22704 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022705
22706else
John Criswellb13092b2003-07-22 21:00:24 +000022707 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022708fi;
John Criswellb13092b2003-07-22 21:00:24 +000022709if test ${enableval} = "no"
22710then
22711 ENABLE_PURIFY=
22712
22713else
22714 ENABLE_PURIFY=ENABLE_PURIFY=1
22715
22716fi
22717
John Criswell7a73b802003-06-30 21:59:07 +000022718# Check whether --enable-optimized or --disable-optimized was given.
22719if test "${enable_optimized+set}" = set; then
22720 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022721
22722else
John Criswellb13092b2003-07-22 21:00:24 +000022723 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022724fi;
John Criswellb13092b2003-07-22 21:00:24 +000022725if test ${enableval} = "no"
22726then
22727 ENABLE_OPTIMIZED=
22728
22729else
22730 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22731
22732fi
22733
John Criswell7a73b802003-06-30 21:59:07 +000022734# Check whether --enable-spec or --disable-spec was given.
22735if test "${enable_spec+set}" = set; then
22736 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022737
22738else
John Criswellb13092b2003-07-22 21:00:24 +000022739 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022740fi;
John Criswellb13092b2003-07-22 21:00:24 +000022741if test ${enableval} = "no"
22742then
22743 USE_SPEC=
22744
22745else
22746 USE_SPEC=USE_SPEC=1
22747
22748fi
22749
John Criswell7a73b802003-06-30 21:59:07 +000022750# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22751if test "${enable_precompiled_bytecode+set}" = set; then
22752 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022753
22754else
John Criswellb13092b2003-07-22 21:00:24 +000022755 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022756fi;
John Criswellb13092b2003-07-22 21:00:24 +000022757if test ${enableval} = "no"
22758then
22759 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022760
John Criswellb13092b2003-07-22 21:00:24 +000022761else
22762 UPB=USE_PRECOMPILED_BYTECODE=1
22763
22764fi
John Criswellf02dbf02003-07-22 20:07:49 +000022765
22766
22767# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22768if test "${enable_llc_diffs+set}" = set; then
22769 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022770
22771else
John Criswellb13092b2003-07-22 21:00:24 +000022772 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022773fi;
John Criswellb13092b2003-07-22 21:00:24 +000022774if test ${enableval} = "no"
22775then
22776 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022777
John Criswellb13092b2003-07-22 21:00:24 +000022778else
22779 DISABLE_LLC_DIFFS=
22780
22781fi
22782
22783# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022784if test "${enable_jit+set}" = set; then
22785 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022786
22787else
John Criswellc78022e2003-07-29 19:11:58 +000022788 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022789fi;
John Criswellb13092b2003-07-22 21:00:24 +000022790
22791if test ${enableval} = "no"
22792then
22793 JIT=
22794
22795else
John Criswellc78022e2003-07-29 19:11:58 +000022796 case $target in
22797 *i*86*)
22798 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022799
John Criswellc78022e2003-07-29 19:11:58 +000022800 ;;
22801 *sparc*)
22802 JIT=TARGET_HAS_JIT=1
22803
22804 ;;
22805 *)
22806 JIT=
22807
22808 ;;
22809 esac
John Criswellb13092b2003-07-22 21:00:24 +000022810fi
John Criswell7a73b802003-06-30 21:59:07 +000022811
22812
John Criswellc78022e2003-07-29 19:11:58 +000022813
John Criswell7a73b802003-06-30 21:59:07 +000022814# Check whether --with-spec or --without-spec was given.
22815if test "${with_spec+set}" = set; then
22816 withval="$with_spec"
22817 SPEC_ROOT=$withval
22818
22819else
22820 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22821
22822fi;
22823
John Criswellc78022e2003-07-29 19:11:58 +000022824
John Criswell7a73b802003-06-30 21:59:07 +000022825# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22826if test "${with_llvmgccdir+set}" = set; then
22827 withval="$with_llvmgccdir"
22828 LLVMGCCDIR=$withval
22829
22830fi;
22831
John Criswellc78022e2003-07-29 19:11:58 +000022832
John Criswell7a73b802003-06-30 21:59:07 +000022833# Check whether --with-bcrepos or --without-bcrepos was given.
22834if test "${with_bcrepos+set}" = set; then
22835 withval="$with_bcrepos"
22836 BCR=$withval
22837
22838else
22839 BCR=/home/vadve/lattner/LLVMPrograms
22840
22841fi;
22842
John Criswellc78022e2003-07-29 19:11:58 +000022843
John Criswell7a73b802003-06-30 21:59:07 +000022844# Check whether --with-papi or --without-papi was given.
22845if test "${with_papi+set}" = set; then
22846 withval="$with_papi"
22847 PAPIDIR=$withval
22848
22849else
John Criswellde00db22003-08-25 16:49:54 +000022850 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022851
22852fi;
22853
John Criswell7a73b802003-06-30 21:59:07 +000022854
22855# Check whether --with-purify or --without-purify was given.
22856if test "${with_purify+set}" = set; then
22857 withval="$with_purify"
22858 PURIFY=$withval
22859
22860fi;
22861
John Criswellde00db22003-08-25 16:49:54 +000022862
John Criswell0c38eaf2003-09-10 15:17:25 +000022863 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022864cat >confcache <<\_ACEOF
22865# This file is a shell script that caches the results of configure
22866# tests run on this system so they can be shared between configure
22867# scripts and configure runs, see configure's option --config-cache.
22868# It is not useful on other systems. If it contains results you don't
22869# want to keep, you may remove or edit it.
22870#
22871# config.status only pays attention to the cache file if you give it
22872# the --recheck option to rerun configure.
22873#
John Criswell0c38eaf2003-09-10 15:17:25 +000022874# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022875# loading this file, other *unset* `ac_cv_foo' will be assigned the
22876# following values.
22877
22878_ACEOF
22879
22880# The following way of writing the cache mishandles newlines in values,
22881# but we know of no workaround that is simple, portable, and efficient.
22882# So, don't put newlines in cache variables' values.
22883# Ultrix sh set writes to stderr and can't be redirected directly,
22884# and sets the high bit in the cache file unless we assign to the vars.
22885{
22886 (set) 2>&1 |
22887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22888 *ac_space=\ *)
22889 # `set' does not quote correctly, so add quotes (double-quote
22890 # substitution turns \\\\ into \\, and sed turns \\ into \).
22891 sed -n \
22892 "s/'/'\\\\''/g;
22893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22894 ;;
22895 *)
22896 # `set' quotes correctly as required by POSIX, so do not add quotes.
22897 sed -n \
22898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22899 ;;
22900 esac;
22901} |
22902 sed '
22903 t clear
22904 : clear
22905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22906 t end
22907 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22908 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022909if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022910 if test -w $cache_file; then
22911 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22912 cat confcache >$cache_file
22913 else
22914 echo "not updating unwritable cache $cache_file"
22915 fi
22916fi
22917rm -f confcache
22918
22919test "x$prefix" = xNONE && prefix=$ac_default_prefix
22920# Let make expand exec_prefix.
22921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22922
22923# VPATH may cause trouble with some makes, so we remove $(srcdir),
22924# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22925# trailing colons and then remove the whole line if VPATH becomes empty
22926# (actually we leave an empty line to preserve line numbers).
22927if test "x$srcdir" = x.; then
22928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22929s/:*\$(srcdir):*/:/;
22930s/:*\${srcdir}:*/:/;
22931s/:*@srcdir@:*/:/;
22932s/^\([^=]*=[ ]*\):*/\1/;
22933s/:*$//;
22934s/^[^=]*=[ ]*$//;
22935}'
22936fi
22937
22938DEFS=-DHAVE_CONFIG_H
22939
John Criswell0c38eaf2003-09-10 15:17:25 +000022940ac_libobjs=
22941ac_ltlibobjs=
22942for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22943 # 1. Remove the extension, and $U if already installed.
22944 ac_i=`echo "$ac_i" |
22945 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22946 # 2. Add them.
22947 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22948 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22949done
22950LIBOBJS=$ac_libobjs
22951
22952LTLIBOBJS=$ac_ltlibobjs
22953
22954
John Criswell7a73b802003-06-30 21:59:07 +000022955
22956: ${CONFIG_STATUS=./config.status}
22957ac_clean_files_save=$ac_clean_files
22958ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22959{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22960echo "$as_me: creating $CONFIG_STATUS" >&6;}
22961cat >$CONFIG_STATUS <<_ACEOF
22962#! $SHELL
22963# Generated by $as_me.
22964# Run this file to recreate the current configuration.
22965# Compiler output produced by configure, useful for debugging
22966# configure, is in config.log if it exists.
22967
22968debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022969ac_cs_recheck=false
22970ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022971SHELL=\${CONFIG_SHELL-$SHELL}
22972_ACEOF
22973
22974cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022975## --------------------- ##
22976## M4sh Initialization. ##
22977## --------------------- ##
22978
22979# Be Bourne compatible
22980if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22981 emulate sh
22982 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22984 # is contrary to our usage. Disable this feature.
22985 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022986elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22987 set -o posix
22988fi
22989
John Criswell7a73b802003-06-30 21:59:07 +000022990# Support unset when possible.
22991if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22992 as_unset=unset
22993else
22994 as_unset=false
22995fi
22996
John Criswell0c38eaf2003-09-10 15:17:25 +000022997
22998# Work around bugs in pre-3.0 UWIN ksh.
22999$as_unset ENV MAIL MAILPATH
23000PS1='$ '
23001PS2='> '
23002PS4='+ '
23003
23004# NLS nuisances.
23005for as_var in \
23006 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23007 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23008 LC_TELEPHONE LC_TIME
23009do
23010 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23011 eval $as_var=C; export $as_var
23012 else
23013 $as_unset $as_var
23014 fi
23015done
23016
23017# Required to use basename.
23018if expr a : '\(a\)' >/dev/null 2>&1; then
23019 as_expr=expr
23020else
23021 as_expr=false
23022fi
23023
23024if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23025 as_basename=basename
23026else
23027 as_basename=false
23028fi
John Criswell7a73b802003-06-30 21:59:07 +000023029
23030
23031# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023032as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023033$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23034 X"$0" : 'X\(//\)$' \| \
23035 X"$0" : 'X\(/\)$' \| \
23036 . : '\(.\)' 2>/dev/null ||
23037echo X/"$0" |
23038 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23039 /^X\/\(\/\/\)$/{ s//\1/; q; }
23040 /^X\/\(\/\).*/{ s//\1/; q; }
23041 s/.*/./; q'`
23042
John Criswell0c38eaf2003-09-10 15:17:25 +000023043
John Criswell7a73b802003-06-30 21:59:07 +000023044# PATH needs CR, and LINENO needs CR and PATH.
23045# Avoid depending upon Character Ranges.
23046as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23047as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23048as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23049as_cr_digits='0123456789'
23050as_cr_alnum=$as_cr_Letters$as_cr_digits
23051
23052# The user is always right.
23053if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023054 echo "#! /bin/sh" >conf$$.sh
23055 echo "exit 0" >>conf$$.sh
23056 chmod +x conf$$.sh
23057 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023058 PATH_SEPARATOR=';'
23059 else
23060 PATH_SEPARATOR=:
23061 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023062 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023063fi
23064
23065
23066 as_lineno_1=$LINENO
23067 as_lineno_2=$LINENO
23068 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23069 test "x$as_lineno_1" != "x$as_lineno_2" &&
23070 test "x$as_lineno_3" = "x$as_lineno_2" || {
23071 # Find who we are. Look in the path if we contain no path at all
23072 # relative or not.
23073 case $0 in
23074 *[\\/]* ) as_myself=$0 ;;
23075 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23076for as_dir in $PATH
23077do
23078 IFS=$as_save_IFS
23079 test -z "$as_dir" && as_dir=.
23080 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23081done
23082
23083 ;;
23084 esac
23085 # We did not find ourselves, most probably we were run as `sh COMMAND'
23086 # in which case we are not to be found in the path.
23087 if test "x$as_myself" = x; then
23088 as_myself=$0
23089 fi
23090 if test ! -f "$as_myself"; then
23091 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23092echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23093 { (exit 1); exit 1; }; }
23094 fi
23095 case $CONFIG_SHELL in
23096 '')
23097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23098for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23099do
23100 IFS=$as_save_IFS
23101 test -z "$as_dir" && as_dir=.
23102 for as_base in sh bash ksh sh5; do
23103 case $as_dir in
23104 /*)
23105 if ("$as_dir/$as_base" -c '
23106 as_lineno_1=$LINENO
23107 as_lineno_2=$LINENO
23108 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23109 test "x$as_lineno_1" != "x$as_lineno_2" &&
23110 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023111 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23112 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023113 CONFIG_SHELL=$as_dir/$as_base
23114 export CONFIG_SHELL
23115 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23116 fi;;
23117 esac
23118 done
23119done
23120;;
23121 esac
23122
23123 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23124 # uniformly replaced by the line number. The first 'sed' inserts a
23125 # line-number line before each line; the second 'sed' does the real
23126 # work. The second script uses 'N' to pair each line-number line
23127 # with the numbered line, and appends trailing '-' during
23128 # substitution so that $LINENO is not a special case at line end.
23129 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23130 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23131 sed '=' <$as_myself |
23132 sed '
23133 N
23134 s,$,-,
23135 : loop
23136 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23137 t loop
23138 s,-$,,
23139 s,^['$as_cr_digits']*\n,,
23140 ' >$as_me.lineno &&
23141 chmod +x $as_me.lineno ||
23142 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23143echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23144 { (exit 1); exit 1; }; }
23145
23146 # Don't try to exec as it changes $[0], causing all sort of problems
23147 # (the dirname of $[0] is not the place where we might find the
23148 # original and so on. Autoconf is especially sensible to this).
23149 . ./$as_me.lineno
23150 # Exit status is that of the last command.
23151 exit
23152}
23153
23154
23155case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23156 *c*,-n*) ECHO_N= ECHO_C='
23157' ECHO_T=' ' ;;
23158 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23159 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23160esac
23161
23162if expr a : '\(a\)' >/dev/null 2>&1; then
23163 as_expr=expr
23164else
23165 as_expr=false
23166fi
23167
23168rm -f conf$$ conf$$.exe conf$$.file
23169echo >conf$$.file
23170if ln -s conf$$.file conf$$ 2>/dev/null; then
23171 # We could just check for DJGPP; but this test a) works b) is more generic
23172 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23173 if test -f conf$$.exe; then
23174 # Don't use ln at all; we don't have any links
23175 as_ln_s='cp -p'
23176 else
23177 as_ln_s='ln -s'
23178 fi
23179elif ln conf$$.file conf$$ 2>/dev/null; then
23180 as_ln_s=ln
23181else
23182 as_ln_s='cp -p'
23183fi
23184rm -f conf$$ conf$$.exe conf$$.file
23185
John Criswell0c38eaf2003-09-10 15:17:25 +000023186if mkdir -p . 2>/dev/null; then
23187 as_mkdir_p=:
23188else
23189 as_mkdir_p=false
23190fi
23191
John Criswell7a73b802003-06-30 21:59:07 +000023192as_executable_p="test -f"
23193
23194# Sed expression to map a string onto a valid CPP name.
23195as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23196
23197# Sed expression to map a string onto a valid variable name.
23198as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23199
23200
23201# IFS
23202# We need space, tab and new line, in precisely that order.
23203as_nl='
23204'
23205IFS=" $as_nl"
23206
23207# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023208$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023209
23210exec 6>&1
23211
23212# Open the log real soon, to keep \$[0] and so on meaningful, and to
23213# report actual input values of CONFIG_FILES etc. instead of their
23214# values after options handling. Logging --version etc. is OK.
23215exec 5>>config.log
23216{
23217 echo
23218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23219## Running $as_me. ##
23220_ASBOX
23221} >&5
23222cat >&5 <<_CSEOF
23223
23224This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023225generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023226
23227 CONFIG_FILES = $CONFIG_FILES
23228 CONFIG_HEADERS = $CONFIG_HEADERS
23229 CONFIG_LINKS = $CONFIG_LINKS
23230 CONFIG_COMMANDS = $CONFIG_COMMANDS
23231 $ $0 $@
23232
23233_CSEOF
23234echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23235echo >&5
23236_ACEOF
23237
23238# Files that config.status was made for.
23239if test -n "$ac_config_files"; then
23240 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23241fi
23242
23243if test -n "$ac_config_headers"; then
23244 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23245fi
23246
23247if test -n "$ac_config_links"; then
23248 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23249fi
23250
23251if test -n "$ac_config_commands"; then
23252 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23253fi
23254
23255cat >>$CONFIG_STATUS <<\_ACEOF
23256
23257ac_cs_usage="\
23258\`$as_me' instantiates files from templates according to the
23259current configuration.
23260
23261Usage: $0 [OPTIONS] [FILE]...
23262
23263 -h, --help print this help, then exit
23264 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023265 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023266 -d, --debug don't remove temporary files
23267 --recheck update $as_me by reconfiguring in the same conditions
23268 --file=FILE[:TEMPLATE]
23269 instantiate the configuration file FILE
23270 --header=FILE[:TEMPLATE]
23271 instantiate the configuration header FILE
23272
23273Configuration files:
23274$config_files
23275
23276Configuration headers:
23277$config_headers
23278
John Criswellc764fbc2003-09-06 15:17:13 +000023279Configuration commands:
23280$config_commands
23281
John Criswell7a73b802003-06-30 21:59:07 +000023282Report bugs to <bug-autoconf@gnu.org>."
23283_ACEOF
23284
23285cat >>$CONFIG_STATUS <<_ACEOF
23286ac_cs_version="\\
23287[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023288configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23290
23291Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23292Free Software Foundation, Inc.
23293This config.status script is free software; the Free Software Foundation
23294gives unlimited permission to copy, distribute and modify it."
23295srcdir=$srcdir
23296INSTALL="$INSTALL"
23297_ACEOF
23298
23299cat >>$CONFIG_STATUS <<\_ACEOF
23300# If no file are specified by the user, then we need to provide default
23301# value. By we need to know if files were specified by the user.
23302ac_need_defaults=:
23303while test $# != 0
23304do
23305 case $1 in
23306 --*=*)
23307 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23308 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023309 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023310 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023311 -*)
23312 ac_option=$1
23313 ac_optarg=$2
23314 ac_shift=shift
23315 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023316 *) # This is not an option, so the user has probably given explicit
23317 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023318 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023319 ac_need_defaults=false;;
23320 esac
23321
John Criswell0c38eaf2003-09-10 15:17:25 +000023322 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023323 # Handling of the options.
23324_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023325cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023326 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23327 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023328 --version | --vers* | -V )
23329 echo "$ac_cs_version"; exit 0 ;;
23330 --he | --h)
23331 # Conflict between --help and --header
23332 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23333Try \`$0 --help' for more information." >&5
23334echo "$as_me: error: ambiguous option: $1
23335Try \`$0 --help' for more information." >&2;}
23336 { (exit 1); exit 1; }; };;
23337 --help | --hel | -h )
23338 echo "$ac_cs_usage"; exit 0 ;;
23339 --debug | --d* | -d )
23340 debug=: ;;
23341 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023342 $ac_shift
23343 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023344 ac_need_defaults=false;;
23345 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023346 $ac_shift
23347 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023348 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23350 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23351 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023352
23353 # This is an error.
23354 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23355Try \`$0 --help' for more information." >&5
23356echo "$as_me: error: unrecognized option: $1
23357Try \`$0 --help' for more information." >&2;}
23358 { (exit 1); exit 1; }; } ;;
23359
23360 *) ac_config_targets="$ac_config_targets $1" ;;
23361
23362 esac
23363 shift
23364done
23365
John Criswell0c38eaf2003-09-10 15:17:25 +000023366ac_configure_extra_args=
23367
23368if $ac_cs_silent; then
23369 exec 6>/dev/null
23370 ac_configure_extra_args="$ac_configure_extra_args --silent"
23371fi
23372
23373_ACEOF
23374cat >>$CONFIG_STATUS <<_ACEOF
23375if \$ac_cs_recheck; then
23376 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23377 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23378fi
23379
John Criswell7a73b802003-06-30 21:59:07 +000023380_ACEOF
23381
John Criswellc764fbc2003-09-06 15:17:13 +000023382cat >>$CONFIG_STATUS <<_ACEOF
23383#
23384# INIT-COMMANDS section.
23385#
John Criswell7a73b802003-06-30 21:59:07 +000023386
John Criswellc764fbc2003-09-06 15:17:13 +000023387${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23389${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023404${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023409${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23419${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023424${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023425${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023429${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023430${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023431${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023433${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023437${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/CompileFail/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023534${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023536${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023537${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023540${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023541${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023542${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023543${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023544${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023545${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023546${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023548${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23552${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23553${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23559${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23560${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
John Criswell4e079782003-09-29 14:52:28 +000023561${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23562${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023568
23569_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023570
23571
23572
23573cat >>$CONFIG_STATUS <<\_ACEOF
23574for ac_config_target in $ac_config_targets
23575do
23576 case "$ac_config_target" in
23577 # Handling of arguments.
23578 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023579 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23580 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23581 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23582 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23583 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23584 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23585 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23586 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23587 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23588 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23589 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23590 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23591 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23592 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23593 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23594 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23595 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023596 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23597 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23598 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23599 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23600 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023601 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23602 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23603 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23604 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23605 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23606 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23607 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23608 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23609 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23610 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23611 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23612 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23613 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23614 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23615 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023616 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023617 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23618 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23619 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23620 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023621 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023622 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023623 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23624 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023625 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23626 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23627 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23628 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023629 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023630 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23631 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23632 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23633 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23634 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23635 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23636 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23637 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23638 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23639 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23640 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23641 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23642 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23643 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23644 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23645 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23646 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23647 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023648 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023649 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23650 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23651 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23652 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23653 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23654 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23655 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23656 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23657 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23658 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23659 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23660 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23661 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23662 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23663 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23664 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23665 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23666 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023667 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23668 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023669 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23670 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023671 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23672 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23673 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23674 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23675 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23676 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23677 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23678 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23679 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23680 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23681 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23682 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23683 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23684 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23685 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23686 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23687 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23688 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23689 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23690 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23691 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23692 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23693 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23694 "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 +000023695 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023696 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23697 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23698 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23699 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23700 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23701 "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 +000023702 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023703 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023704 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23705 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23706 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23707 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23708 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023709 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23710 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23711 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023712 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23713 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23714 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23715 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23716 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23717 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023718 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023719 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023720 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023721 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023722 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23723 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023724 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
23725 "test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/CompileFail/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023726 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23727 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023728 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023729 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23730 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23731 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023732 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023733 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023734 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023735 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023736 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023737 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023738 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23739 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023740 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23741 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23742 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23743 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23744 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23745 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23746 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23747 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23748 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23749 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23750 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23751 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23752 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell4e079782003-09-29 14:52:28 +000023753 "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23754 "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23755 "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23756 "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23757 "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23758 "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23759 "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023760 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23762echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23763 { (exit 1); exit 1; }; };;
23764 esac
23765done
23766
23767# If the user did not use the arguments to specify the items to instantiate,
23768# then the envvar interface is used. Set only those that are not.
23769# We use the long form for the default assignment because of an extremely
23770# bizarre bug on SunOS 4.1.3.
23771if $ac_need_defaults; then
23772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023775fi
23776
John Criswell0c38eaf2003-09-10 15:17:25 +000023777# Have a temporary directory for convenience. Make it in the build tree
23778# simply because there is no reason to put it here, and in addition,
23779# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023780# Create a temporary directory, and hook for its removal unless debugging.
23781$debug ||
23782{
23783 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23784 trap '{ (exit 1); exit 1; }' 1 2 13 15
23785}
23786
23787# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023788
John Criswell7a73b802003-06-30 21:59:07 +000023789{
John Criswell0c38eaf2003-09-10 15:17:25 +000023790 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023791 test -n "$tmp" && test -d "$tmp"
23792} ||
23793{
John Criswell0c38eaf2003-09-10 15:17:25 +000023794 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023795 (umask 077 && mkdir $tmp)
23796} ||
23797{
John Criswell0c38eaf2003-09-10 15:17:25 +000023798 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023799 { (exit 1); exit 1; }
23800}
23801
23802_ACEOF
23803
23804cat >>$CONFIG_STATUS <<_ACEOF
23805
23806#
23807# CONFIG_FILES section.
23808#
23809
23810# No need to generate the scripts if there are no CONFIG_FILES.
23811# This happens for instance when ./config.status config.h
23812if test -n "\$CONFIG_FILES"; then
23813 # Protect against being on the right side of a sed subst in config.status.
23814 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23815 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23816s,@SHELL@,$SHELL,;t t
23817s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23818s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23819s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23820s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23821s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23822s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23823s,@exec_prefix@,$exec_prefix,;t t
23824s,@prefix@,$prefix,;t t
23825s,@program_transform_name@,$program_transform_name,;t t
23826s,@bindir@,$bindir,;t t
23827s,@sbindir@,$sbindir,;t t
23828s,@libexecdir@,$libexecdir,;t t
23829s,@datadir@,$datadir,;t t
23830s,@sysconfdir@,$sysconfdir,;t t
23831s,@sharedstatedir@,$sharedstatedir,;t t
23832s,@localstatedir@,$localstatedir,;t t
23833s,@libdir@,$libdir,;t t
23834s,@includedir@,$includedir,;t t
23835s,@oldincludedir@,$oldincludedir,;t t
23836s,@infodir@,$infodir,;t t
23837s,@mandir@,$mandir,;t t
23838s,@build_alias@,$build_alias,;t t
23839s,@host_alias@,$host_alias,;t t
23840s,@target_alias@,$target_alias,;t t
23841s,@DEFS@,$DEFS,;t t
23842s,@ECHO_C@,$ECHO_C,;t t
23843s,@ECHO_N@,$ECHO_N,;t t
23844s,@ECHO_T@,$ECHO_T,;t t
23845s,@LIBS@,$LIBS,;t t
23846s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23847s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23848s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23849s,@build@,$build,;t t
23850s,@build_cpu@,$build_cpu,;t t
23851s,@build_vendor@,$build_vendor,;t t
23852s,@build_os@,$build_os,;t t
23853s,@host@,$host,;t t
23854s,@host_cpu@,$host_cpu,;t t
23855s,@host_vendor@,$host_vendor,;t t
23856s,@host_os@,$host_os,;t t
23857s,@target@,$target,;t t
23858s,@target_cpu@,$target_cpu,;t t
23859s,@target_vendor@,$target_vendor,;t t
23860s,@target_os@,$target_os,;t t
23861s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023862s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023863s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023864s,@CXX@,$CXX,;t t
23865s,@CXXFLAGS@,$CXXFLAGS,;t t
23866s,@LDFLAGS@,$LDFLAGS,;t t
23867s,@CPPFLAGS@,$CPPFLAGS,;t t
23868s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23869s,@EXEEXT@,$EXEEXT,;t t
23870s,@OBJEXT@,$OBJEXT,;t t
23871s,@CC@,$CC,;t t
23872s,@CFLAGS@,$CFLAGS,;t t
23873s,@ac_ct_CC@,$ac_ct_CC,;t t
23874s,@CPP@,$CPP,;t t
23875s,@ifGNUmake@,$ifGNUmake,;t t
23876s,@LEX@,$LEX,;t t
23877s,@LEXLIB@,$LEXLIB,;t t
23878s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23879s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023880s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023881s,@LN_S@,$LN_S,;t t
23882s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023883s,@AR@,$AR,;t t
23884s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023885s,@RANLIB@,$RANLIB,;t t
23886s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23887s,@STRIP@,$STRIP,;t t
23888s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023889s,@CXXCPP@,$CXXCPP,;t t
23890s,@F77@,$F77,;t t
23891s,@FFLAGS@,$FFLAGS,;t t
23892s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023893s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023894s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023895s,@SED@,$SED,;t t
23896s,@RM@,$RM,;t t
23897s,@MKDIR@,$MKDIR,;t t
23898s,@DATE@,$DATE,;t t
23899s,@MV@,$MV,;t t
23900s,@DOT@,$DOT,;t t
23901s,@ETAGS@,$ETAGS,;t t
23902s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023903s,@PYTHON@,$PYTHON,;t t
23904s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023905s,@ALLOCA@,$ALLOCA,;t t
23906s,@LIBOBJS@,$LIBOBJS,;t t
23907s,@MMAP_FILE@,$MMAP_FILE,;t t
23908s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023909s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23910s,@USE_SPEC@,$USE_SPEC,;t t
23911s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023912s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023913s,@JIT@,$JIT,;t t
23914s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23915s,@BCR@,$BCR,;t t
23916s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023917s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023918CEOF
23919
23920_ACEOF
23921
23922 cat >>$CONFIG_STATUS <<\_ACEOF
23923 # Split the substitutions into bite-sized pieces for seds with
23924 # small command number limits, like on Digital OSF/1 and HP-UX.
23925 ac_max_sed_lines=48
23926 ac_sed_frag=1 # Number of current file.
23927 ac_beg=1 # First line for current file.
23928 ac_end=$ac_max_sed_lines # Line after last line for current file.
23929 ac_more_lines=:
23930 ac_sed_cmds=
23931 while $ac_more_lines; do
23932 if test $ac_beg -gt 1; then
23933 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23934 else
23935 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23936 fi
23937 if test ! -s $tmp/subs.frag; then
23938 ac_more_lines=false
23939 else
23940 # The purpose of the label and of the branching condition is to
23941 # speed up the sed processing (if there are no `@' at all, there
23942 # is no need to browse any of the substitutions).
23943 # These are the two extra sed commands mentioned above.
23944 (echo ':t
23945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23946 if test -z "$ac_sed_cmds"; then
23947 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23948 else
23949 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23950 fi
23951 ac_sed_frag=`expr $ac_sed_frag + 1`
23952 ac_beg=$ac_end
23953 ac_end=`expr $ac_end + $ac_max_sed_lines`
23954 fi
23955 done
23956 if test -z "$ac_sed_cmds"; then
23957 ac_sed_cmds=cat
23958 fi
23959fi # test -n "$CONFIG_FILES"
23960
23961_ACEOF
23962cat >>$CONFIG_STATUS <<\_ACEOF
23963for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23965 case $ac_file in
23966 - | *:- | *:-:* ) # input from stdin
23967 cat >$tmp/stdin
23968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23972 * ) ac_file_in=$ac_file.in ;;
23973 esac
23974
23975 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23978 X"$ac_file" : 'X\(//\)[^/]' \| \
23979 X"$ac_file" : 'X\(//\)$' \| \
23980 X"$ac_file" : 'X\(/\)' \| \
23981 . : '\(.\)' 2>/dev/null ||
23982echo X"$ac_file" |
23983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23985 /^X\(\/\/\)$/{ s//\1/; q; }
23986 /^X\(\/\).*/{ s//\1/; q; }
23987 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023988 { if $as_mkdir_p; then
23989 mkdir -p "$ac_dir"
23990 else
23991 as_dir="$ac_dir"
23992 as_dirs=
23993 while test ! -d "$as_dir"; do
23994 as_dirs="$as_dir $as_dirs"
23995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23997 X"$as_dir" : 'X\(//\)[^/]' \| \
23998 X"$as_dir" : 'X\(//\)$' \| \
23999 X"$as_dir" : 'X\(/\)' \| \
24000 . : '\(.\)' 2>/dev/null ||
24001echo X"$as_dir" |
24002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24004 /^X\(\/\/\)$/{ s//\1/; q; }
24005 /^X\(\/\).*/{ s//\1/; q; }
24006 s/.*/./; q'`
24007 done
24008 test ! -n "$as_dirs" || mkdir $as_dirs
24009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24010echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24011 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024012
24013 ac_builddir=.
24014
24015if test "$ac_dir" != .; then
24016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24017 # A "../" for each directory in $ac_dir_suffix.
24018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24019else
24020 ac_dir_suffix= ac_top_builddir=
24021fi
24022
24023case $srcdir in
24024 .) # No --srcdir option. We are building in place.
24025 ac_srcdir=.
24026 if test -z "$ac_top_builddir"; then
24027 ac_top_srcdir=.
24028 else
24029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24030 fi ;;
24031 [\\/]* | ?:[\\/]* ) # Absolute path.
24032 ac_srcdir=$srcdir$ac_dir_suffix;
24033 ac_top_srcdir=$srcdir ;;
24034 *) # Relative path.
24035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24037esac
24038# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24039# absolute.
24040ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024041ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024042ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24043ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24044
24045
24046 case $INSTALL in
24047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24048 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24049 esac
24050
24051 if test x"$ac_file" != x-; then
24052 { echo "$as_me:$LINENO: creating $ac_file" >&5
24053echo "$as_me: creating $ac_file" >&6;}
24054 rm -f "$ac_file"
24055 fi
24056 # Let's still pretend it is `configure' which instantiates (i.e., don't
24057 # use $as_me), people would be surprised to read:
24058 # /* config.h. Generated by config.status. */
24059 if test x"$ac_file" = x-; then
24060 configure_input=
24061 else
24062 configure_input="$ac_file. "
24063 fi
24064 configure_input=$configure_input"Generated from `echo $ac_file_in |
24065 sed 's,.*/,,'` by configure."
24066
24067 # First look for the input files in the build tree, otherwise in the
24068 # src tree.
24069 ac_file_inputs=`IFS=:
24070 for f in $ac_file_in; do
24071 case $f in
24072 -) echo $tmp/stdin ;;
24073 [\\/$]*)
24074 # Absolute (can't be DOS-style, as IFS=:)
24075 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24076echo "$as_me: error: cannot find input file: $f" >&2;}
24077 { (exit 1); exit 1; }; }
24078 echo $f;;
24079 *) # Relative
24080 if test -f "$f"; then
24081 # Build tree
24082 echo $f
24083 elif test -f "$srcdir/$f"; then
24084 # Source tree
24085 echo $srcdir/$f
24086 else
24087 # /dev/null tree
24088 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24089echo "$as_me: error: cannot find input file: $f" >&2;}
24090 { (exit 1); exit 1; }; }
24091 fi;;
24092 esac
24093 done` || { (exit 1); exit 1; }
24094_ACEOF
24095cat >>$CONFIG_STATUS <<_ACEOF
24096 sed "$ac_vpsub
24097$extrasub
24098_ACEOF
24099cat >>$CONFIG_STATUS <<\_ACEOF
24100:t
24101/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24102s,@configure_input@,$configure_input,;t t
24103s,@srcdir@,$ac_srcdir,;t t
24104s,@abs_srcdir@,$ac_abs_srcdir,;t t
24105s,@top_srcdir@,$ac_top_srcdir,;t t
24106s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24107s,@builddir@,$ac_builddir,;t t
24108s,@abs_builddir@,$ac_abs_builddir,;t t
24109s,@top_builddir@,$ac_top_builddir,;t t
24110s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24111s,@INSTALL@,$ac_INSTALL,;t t
24112" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24113 rm -f $tmp/stdin
24114 if test x"$ac_file" != x-; then
24115 mv $tmp/out $ac_file
24116 else
24117 cat $tmp/out
24118 rm -f $tmp/out
24119 fi
24120
24121done
24122_ACEOF
24123cat >>$CONFIG_STATUS <<\_ACEOF
24124
24125#
24126# CONFIG_HEADER section.
24127#
24128
24129# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24130# NAME is the cpp macro being defined and VALUE is the value it is being given.
24131#
24132# ac_d sets the value in "#define NAME VALUE" lines.
24133ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24134ac_dB='[ ].*$,\1#\2'
24135ac_dC=' '
24136ac_dD=',;t'
24137# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24138ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24139ac_uB='$,\1#\2define\3'
24140ac_uC=' '
24141ac_uD=',;t'
24142
24143for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24145 case $ac_file in
24146 - | *:- | *:-:* ) # input from stdin
24147 cat >$tmp/stdin
24148 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24150 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24152 * ) ac_file_in=$ac_file.in ;;
24153 esac
24154
24155 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24156echo "$as_me: creating $ac_file" >&6;}
24157
24158 # First look for the input files in the build tree, otherwise in the
24159 # src tree.
24160 ac_file_inputs=`IFS=:
24161 for f in $ac_file_in; do
24162 case $f in
24163 -) echo $tmp/stdin ;;
24164 [\\/$]*)
24165 # Absolute (can't be DOS-style, as IFS=:)
24166 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24167echo "$as_me: error: cannot find input file: $f" >&2;}
24168 { (exit 1); exit 1; }; }
24169 echo $f;;
24170 *) # Relative
24171 if test -f "$f"; then
24172 # Build tree
24173 echo $f
24174 elif test -f "$srcdir/$f"; then
24175 # Source tree
24176 echo $srcdir/$f
24177 else
24178 # /dev/null tree
24179 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24180echo "$as_me: error: cannot find input file: $f" >&2;}
24181 { (exit 1); exit 1; }; }
24182 fi;;
24183 esac
24184 done` || { (exit 1); exit 1; }
24185 # Remove the trailing spaces.
24186 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24187
24188_ACEOF
24189
24190# Transform confdefs.h into two sed scripts, `conftest.defines' and
24191# `conftest.undefs', that substitutes the proper values into
24192# config.h.in to produce config.h. The first handles `#define'
24193# templates, and the second `#undef' templates.
24194# And first: Protect against being on the right side of a sed subst in
24195# config.status. Protect against being in an unquoted here document
24196# in config.status.
24197rm -f conftest.defines conftest.undefs
24198# Using a here document instead of a string reduces the quoting nightmare.
24199# Putting comments in sed scripts is not portable.
24200#
24201# `end' is used to avoid that the second main sed command (meant for
24202# 0-ary CPP macros) applies to n-ary macro definitions.
24203# See the Autoconf documentation for `clear'.
24204cat >confdef2sed.sed <<\_ACEOF
24205s/[\\&,]/\\&/g
24206s,[\\$`],\\&,g
24207t clear
24208: clear
24209s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24210t end
24211s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24212: end
24213_ACEOF
24214# If some macros were called several times there might be several times
24215# the same #defines, which is useless. Nevertheless, we may not want to
24216# sort them, since we want the *last* AC-DEFINE to be honored.
24217uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24218sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24219rm -f confdef2sed.sed
24220
24221# This sed command replaces #undef with comments. This is necessary, for
24222# example, in the case of _POSIX_SOURCE, which is predefined and required
24223# on some systems where configure will not decide to define it.
24224cat >>conftest.undefs <<\_ACEOF
24225s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24226_ACEOF
24227
24228# Break up conftest.defines because some shells have a limit on the size
24229# of here documents, and old seds have small limits too (100 cmds).
24230echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024231echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024232echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24233echo ' :' >>$CONFIG_STATUS
24234rm -f conftest.tail
24235while grep . conftest.defines >/dev/null
24236do
24237 # Write a limited-size here document to $tmp/defines.sed.
24238 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24239 # Speed up: don't consider the non `#define' lines.
24240 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24241 # Work around the forget-to-reset-the-flag bug.
24242 echo 't clr' >>$CONFIG_STATUS
24243 echo ': clr' >>$CONFIG_STATUS
24244 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24245 echo 'CEOF
24246 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24247 rm -f $tmp/in
24248 mv $tmp/out $tmp/in
24249' >>$CONFIG_STATUS
24250 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24251 rm -f conftest.defines
24252 mv conftest.tail conftest.defines
24253done
24254rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024255echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024256echo >>$CONFIG_STATUS
24257
24258# Break up conftest.undefs because some shells have a limit on the size
24259# of here documents, and old seds have small limits too (100 cmds).
24260echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24261rm -f conftest.tail
24262while grep . conftest.undefs >/dev/null
24263do
24264 # Write a limited-size here document to $tmp/undefs.sed.
24265 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24266 # Speed up: don't consider the non `#undef'
24267 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24268 # Work around the forget-to-reset-the-flag bug.
24269 echo 't clr' >>$CONFIG_STATUS
24270 echo ': clr' >>$CONFIG_STATUS
24271 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24272 echo 'CEOF
24273 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24274 rm -f $tmp/in
24275 mv $tmp/out $tmp/in
24276' >>$CONFIG_STATUS
24277 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24278 rm -f conftest.undefs
24279 mv conftest.tail conftest.undefs
24280done
24281rm -f conftest.undefs
24282
24283cat >>$CONFIG_STATUS <<\_ACEOF
24284 # Let's still pretend it is `configure' which instantiates (i.e., don't
24285 # use $as_me), people would be surprised to read:
24286 # /* config.h. Generated by config.status. */
24287 if test x"$ac_file" = x-; then
24288 echo "/* Generated by configure. */" >$tmp/config.h
24289 else
24290 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24291 fi
24292 cat $tmp/in >>$tmp/config.h
24293 rm -f $tmp/in
24294 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024295 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24297echo "$as_me: $ac_file is unchanged" >&6;}
24298 else
24299 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24300$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24301 X"$ac_file" : 'X\(//\)[^/]' \| \
24302 X"$ac_file" : 'X\(//\)$' \| \
24303 X"$ac_file" : 'X\(/\)' \| \
24304 . : '\(.\)' 2>/dev/null ||
24305echo X"$ac_file" |
24306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24308 /^X\(\/\/\)$/{ s//\1/; q; }
24309 /^X\(\/\).*/{ s//\1/; q; }
24310 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024311 { if $as_mkdir_p; then
24312 mkdir -p "$ac_dir"
24313 else
24314 as_dir="$ac_dir"
24315 as_dirs=
24316 while test ! -d "$as_dir"; do
24317 as_dirs="$as_dir $as_dirs"
24318 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24320 X"$as_dir" : 'X\(//\)[^/]' \| \
24321 X"$as_dir" : 'X\(//\)$' \| \
24322 X"$as_dir" : 'X\(/\)' \| \
24323 . : '\(.\)' 2>/dev/null ||
24324echo X"$as_dir" |
24325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24326 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24327 /^X\(\/\/\)$/{ s//\1/; q; }
24328 /^X\(\/\).*/{ s//\1/; q; }
24329 s/.*/./; q'`
24330 done
24331 test ! -n "$as_dirs" || mkdir $as_dirs
24332 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24333echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24334 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024335
24336 rm -f $ac_file
24337 mv $tmp/config.h $ac_file
24338 fi
24339 else
24340 cat $tmp/config.h
24341 rm -f $tmp/config.h
24342 fi
24343done
24344_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024345cat >>$CONFIG_STATUS <<\_ACEOF
24346
24347#
24348# CONFIG_COMMANDS section.
24349#
24350for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24351 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24352 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24353 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24354$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24355 X"$ac_dest" : 'X\(//\)[^/]' \| \
24356 X"$ac_dest" : 'X\(//\)$' \| \
24357 X"$ac_dest" : 'X\(/\)' \| \
24358 . : '\(.\)' 2>/dev/null ||
24359echo X"$ac_dest" |
24360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24362 /^X\(\/\/\)$/{ s//\1/; q; }
24363 /^X\(\/\).*/{ s//\1/; q; }
24364 s/.*/./; q'`
24365 ac_builddir=.
24366
24367if test "$ac_dir" != .; then
24368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24369 # A "../" for each directory in $ac_dir_suffix.
24370 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24371else
24372 ac_dir_suffix= ac_top_builddir=
24373fi
24374
24375case $srcdir in
24376 .) # No --srcdir option. We are building in place.
24377 ac_srcdir=.
24378 if test -z "$ac_top_builddir"; then
24379 ac_top_srcdir=.
24380 else
24381 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24382 fi ;;
24383 [\\/]* | ?:[\\/]* ) # Absolute path.
24384 ac_srcdir=$srcdir$ac_dir_suffix;
24385 ac_top_srcdir=$srcdir ;;
24386 *) # Relative path.
24387 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24388 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24389esac
24390# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24391# absolute.
24392ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024393ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024394ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24395ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24396
24397
24398 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24399echo "$as_me: executing $ac_dest commands" >&6;}
24400 case $ac_dest in
24401 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24402 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24403 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24404 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24405 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24406 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24407 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24408 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24409 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24410 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24411 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24412 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24413 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24414 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24415 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24416 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24417 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 +000024418 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24419 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24420 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24421 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24422 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024423 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24424 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24425 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24426 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24427 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24428 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24429 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24430 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24431 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24432 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24433 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24434 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24435 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24436 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24437 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 +000024438 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 +000024439 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24440 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24441 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24442 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 +000024443 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 +000024444 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 +000024445 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24446 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 +000024447 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24448 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24449 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24450 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024451 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 +000024452 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24453 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24454 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24455 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24456 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24457 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24458 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24459 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24460 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24461 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24462 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24463 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24464 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24465 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24466 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24467 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24468 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24469 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 +000024470 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 +000024471 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 ;;
24472 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 ;;
24473 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 ;;
24474 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 ;;
24475 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 ;;
24476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 ;;
24485 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 ;;
24486 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24487 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24488 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 +000024489 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24490 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 +000024491 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 ;;
24492 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 +000024493 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24494 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 ;;
24495 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 ;;
24496 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 ;;
24497 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 ;;
24498 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 ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 ;;
24505 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 ;;
24506 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 ;;
24507 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 ;;
24508 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 ;;
24509 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 ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 +000024517 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 +000024518 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 ;;
24519 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 ;;
24520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 +000024524 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 +000024525 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 +000024526 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24527 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24528 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24529 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 ;;
24530 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 +000024531 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24532 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24533 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 +000024534 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24535 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24536 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 ;;
24537 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 ;;
24538 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 ;;
24539 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 +000024540 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 +000024541 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 +000024542 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 Criswell67181ca2003-09-26 14:53:17 +000024543 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswell68886d42003-09-26 19:51:42 +000024544 test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24545 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024546 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
24547 test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/CompileFail/Makefile test/Programs/SingleSource/Regression/C++/CompileFail/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024548 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24549 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024550 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024551 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24552 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24553 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024554 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024555 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024556 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024557 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 +000024558 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 +000024559 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 +000024560 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24561 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024562 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24563 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24564 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24565 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24566 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24567 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24568 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24569 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24570 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24571 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24572 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24573 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24574 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
John Criswell4e079782003-09-29 14:52:28 +000024575 support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24576 support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24577 support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24578 support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24579 support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24580 support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24581 support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024582 esac
24583done
24584_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024585
24586cat >>$CONFIG_STATUS <<\_ACEOF
24587
24588{ (exit 0); exit 0; }
24589_ACEOF
24590chmod +x $CONFIG_STATUS
24591ac_clean_files=$ac_clean_files_save
24592
24593
24594# configure is writing to config.log, and then calls config.status.
24595# config.status does its own redirection, appending to config.log.
24596# Unfortunately, on DOS this fails, as config.log is still kept open
24597# by configure, so config.status won't be able to write to it; its
24598# output is simply discarded. So we exec the FD to /dev/null,
24599# effectively closing config.log, so it can be properly (re)opened and
24600# appended to by config.status. When coming back to configure, we
24601# need to make the FD available again.
24602if test "$no_create" != yes; then
24603 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024604 ac_config_status_args=
24605 test "$silent" = yes &&
24606 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024607 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024609 exec 5>>config.log
24610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24611 # would make configure fail if this is the last instruction.
24612 $ac_cs_success || { (exit 1); exit 1; }
24613fi
24614